Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

                case 8: {
                    PassengerDescription = (global::PKFlights.PassengerDescription)input.ReadEnum();
                    break;
                }

                case 16: {
                    CheckInSource = (global::PKFlights.Source)input.ReadEnum();
                    break;
                }

                case 24: {
                    BoardingPassIssuanceSource = (global::PKFlights.Source)input.ReadEnum();
                    break;
                }

                case 34: {
                    if (boardingPassIssueDate_ == null)
                    {
                        BoardingPassIssueDate = new global::PKIo.Date();
                    }
                    input.ReadMessage(BoardingPassIssueDate);
                    break;
                }

                case 40: {
                    DocumentType = (global::PKFlights.DocType)input.ReadEnum();
                    break;
                }

                case 50: {
                    BoardingPassIssuer = input.ReadString();
                    break;
                }

                case 58: {
                    baggageTagNumber_.AddEntriesFrom(input, _repeated_baggageTagNumber_codec);
                    break;
                }

                case 64: {
                    SelecteeIndicator = (global::PKFlights.SelecteeIndicator)input.ReadEnum();
                    break;
                }

                case 72: {
                    InternationalDocVerification = (global::PKFlights.InternationalDocVerification)input.ReadEnum();
                    break;
                }

                case 80: {
                    IdadIndicator = (global::PKFlights.IDADIndicator)input.ReadEnum();
                    break;
                }

                case 88: {
                    FastTrack = (global::PKFlights.FastTrack)input.ReadEnum();
                    break;
                }
                }
            }
        }