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: { ExpiryType = (global::PKIo.ExpiryType)input.ReadEnum(); break; } case 18: { global::PKIo.Date subBuilder = new global::PKIo.Date(); if (expiryOneofCase_ == ExpiryOneofOneofCase.FixedExpiryDate) { subBuilder.MergeFrom(FixedExpiryDate); } input.ReadMessage(subBuilder); FixedExpiryDate = subBuilder; break; } case 24: { ExpireAfterXDays = input.ReadUInt32(); break; } } } }
public void MergeFrom(ExpirySettings other) { if (other == null) { return; } if (other.ExpiryType != global::PKIo.ExpiryType.ExpireNone) { ExpiryType = other.ExpiryType; } switch (other.ExpiryOneofCase) { case ExpiryOneofOneofCase.FixedExpiryDate: if (FixedExpiryDate == null) { FixedExpiryDate = new global::PKIo.Date(); } FixedExpiryDate.MergeFrom(other.FixedExpiryDate); break; case ExpiryOneofOneofCase.ExpireAfterXDays: ExpireAfterXDays = other.ExpireAfterXDays; break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public void MergeFrom(Person other) { if (other == null) { return; } if (other.Surname.Length != 0) { Surname = other.Surname; } if (other.Forename.Length != 0) { Forename = other.Forename; } otherNames_.Add(other.otherNames_); if (other.Salutation.Length != 0) { Salutation = other.Salutation; } if (other.Suffix.Length != 0) { Suffix = other.Suffix; } if (other.DisplayName.Length != 0) { DisplayName = other.DisplayName; } if (other.Gender != global::PKIo.Gender.NotKnown) { Gender = other.Gender; } if (other.dateOfBirth_ != null) { if (dateOfBirth_ == null) { DateOfBirth = new global::PKIo.Date(); } DateOfBirth.MergeFrom(other.DateOfBirth); } if (other.EmailAddress.Length != 0) { EmailAddress = other.EmailAddress; } if (other.MobileNumber.Length != 0) { MobileNumber = other.MobileNumber; } if (other.ExternalId.Length != 0) { ExternalId = other.ExternalId; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
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 void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { Surname = input.ReadString(); break; } case 18: { Forename = input.ReadString(); break; } case 26: { otherNames_.AddEntriesFrom(input, _repeated_otherNames_codec); break; } case 34: { Salutation = input.ReadString(); break; } case 42: { Suffix = input.ReadString(); break; } case 50: { DisplayName = input.ReadString(); break; } case 56: { Gender = (global::PKIo.Gender)input.ReadEnum(); break; } case 66: { if (dateOfBirth_ == null) { DateOfBirth = new global::PKIo.Date(); } input.ReadMessage(DateOfBirth); break; } case 74: { EmailAddress = input.ReadString(); break; } case 82: { MobileNumber = input.ReadString(); break; } case 90: { ExternalId = input.ReadString(); break; } } } }
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; } } } }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { ReferenceId = input.ReadString(); break; } case 21: { TotalPrice = input.ReadFloat(); break; } case 26: { orderItems_.AddEntriesFrom(input, _repeated_orderItems_codec); break; } case 37: { Discount = input.ReadFloat(); break; } case 42: { discountItems_.AddEntriesFrom(input, _repeated_discountItems_codec); break; } case 53: { ServiceCharge = input.ReadFloat(); break; } case 61: { TotalTax = input.ReadFloat(); break; } case 69: { FinalPrice = input.ReadFloat(); break; } case 77: { RoundingDifference = input.ReadFloat(); break; } case 80: { IsRefunded = input.ReadBool(); break; } case 90: { if (timestamp_ == null) { Timestamp = new global::PKIo.Date(); } input.ReadMessage(Timestamp); break; } case 98: { Currency = input.ReadString(); break; } case 106: { if (location_ == null) { Location = new global::PKIo.GPSLocation(); } input.ReadMessage(Location); break; } case 114: { TransactionSource = input.ReadString(); break; } } } }
public void MergeFrom(Transaction other) { if (other == null) { return; } if (other.ReferenceId.Length != 0) { ReferenceId = other.ReferenceId; } if (other.TotalPrice != 0F) { TotalPrice = other.TotalPrice; } orderItems_.Add(other.orderItems_); if (other.Discount != 0F) { Discount = other.Discount; } discountItems_.Add(other.discountItems_); if (other.ServiceCharge != 0F) { ServiceCharge = other.ServiceCharge; } if (other.TotalTax != 0F) { TotalTax = other.TotalTax; } if (other.FinalPrice != 0F) { FinalPrice = other.FinalPrice; } if (other.RoundingDifference != 0F) { RoundingDifference = other.RoundingDifference; } if (other.IsRefunded != false) { IsRefunded = other.IsRefunded; } if (other.timestamp_ != null) { if (timestamp_ == null) { Timestamp = new global::PKIo.Date(); } Timestamp.MergeFrom(other.Timestamp); } if (other.Currency.Length != 0) { Currency = other.Currency; } if (other.location_ != null) { if (location_ == null) { Location = new global::PKIo.GPSLocation(); } Location.MergeFrom(other.Location); } if (other.TransactionSource.Length != 0) { TransactionSource = other.TransactionSource; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }