示例#1
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 10: {
                    Id = input.ReadString();
                    break;
                }

                case 18: {
                    Name = input.ReadString();
                    break;
                }

                case 25: {
                    Lat = input.ReadDouble();
                    break;
                }

                case 33: {
                    Lon = input.ReadDouble();
                    break;
                }

                case 40: {
                    Alt = input.ReadInt32();
                    break;
                }

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

                case 58: {
                    if (localizedLockScreenMessage_ == null)
                    {
                        LocalizedLockScreenMessage = new global::PKIo.LocalizedString();
                    }
                    input.ReadMessage(LocalizedLockScreenMessage);
                    break;
                }

                case 64: {
                    Position = input.ReadUInt32();
                    break;
                }
                }
            }
        }
示例#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 10: {
                    IataCarrierCode = input.ReadString();
                    break;
                }

                case 18: {
                    IcaoCarrierCode = input.ReadString();
                    break;
                }

                case 24: {
                    IataAccountingCode = input.ReadInt32();
                    break;
                }

                case 34: {
                    AirlineName = input.ReadString();
                    break;
                }

                case 42: {
                    if (localizedAirlineName_ == null)
                    {
                        LocalizedAirlineName = new global::PKIo.LocalizedString();
                    }
                    input.ReadMessage(LocalizedAirlineName);
                    break;
                }

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

                case 58: {
                    PrivateKeyId = input.ReadString();
                    break;
                }
                }
            }
        }
示例#3
0
 public void MergeFrom(CouponCampaign other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Id.Length != 0)
     {
         Id = other.Id;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.localizedName_ != null)
     {
         if (localizedName_ == null)
         {
             LocalizedName = new global::PKIo.LocalizedString();
         }
         LocalizedName.MergeFrom(other.LocalizedName);
     }
     status_.Add(other.status_);
     if (other.PassTypeIdentifier.Length != 0)
     {
         PassTypeIdentifier = other.PassTypeIdentifier;
     }
     if (other.IanaTimezone.Length != 0)
     {
         IanaTimezone = other.IanaTimezone;
     }
     if (other.created_ != null)
     {
         if (created_ == null)
         {
             Created = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         Created.MergeFrom(other.Created);
     }
     if (other.updated_ != null)
     {
         if (updated_ == null)
         {
             Updated = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         Updated.MergeFrom(other.Updated);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
示例#4
0
 public void MergeFrom(Port other)
 {
     if (other == null)
     {
         return;
     }
     if (other.IataAirportCode.Length != 0)
     {
         IataAirportCode = other.IataAirportCode;
     }
     if (other.IcaoAirportCode.Length != 0)
     {
         IcaoAirportCode = other.IcaoAirportCode;
     }
     if (other.CityName.Length != 0)
     {
         CityName = other.CityName;
     }
     if (other.localizedCityName_ != null)
     {
         if (localizedCityName_ == null)
         {
             LocalizedCityName = new global::PKIo.LocalizedString();
         }
         LocalizedCityName.MergeFrom(other.LocalizedCityName);
     }
     if (other.AirportName.Length != 0)
     {
         AirportName = other.AirportName;
     }
     if (other.localizedAirportName_ != null)
     {
         if (localizedAirportName_ == null)
         {
             LocalizedAirportName = new global::PKIo.LocalizedString();
         }
         LocalizedAirportName.MergeFrom(other.LocalizedAirportName);
     }
     if (other.CountryCode.Length != 0)
     {
         CountryCode = other.CountryCode;
     }
     if (other.Timezone.Length != 0)
     {
         Timezone = other.Timezone;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
示例#5
0
 public void MergeFrom(Link other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Id.Length != 0)
     {
         Id = other.Id;
     }
     if (other.Url.Length != 0)
     {
         Url = other.Url;
     }
     if (other.Title.Length != 0)
     {
         Title = other.Title;
     }
     if (other.Type != global::PKIo.LinkType.UriDoNotUse)
     {
         Type = other.Type;
     }
     if (other.localizedLink_ != null)
     {
         if (localizedLink_ == null)
         {
             LocalizedLink = new global::PKIo.LocalizedString();
         }
         LocalizedLink.MergeFrom(other.LocalizedLink);
     }
     if (other.localizedTitle_ != null)
     {
         if (localizedTitle_ == null)
         {
             LocalizedTitle = new global::PKIo.LocalizedString();
         }
         LocalizedTitle.MergeFrom(other.LocalizedTitle);
     }
     usage_.Add(other.usage_);
     if (other.Position != 0)
     {
         Position = other.Position;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
示例#6
0
 public void MergeFrom(GPSLocation other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Id.Length != 0)
     {
         Id = other.Id;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.Lat != 0D)
     {
         Lat = other.Lat;
     }
     if (other.Lon != 0D)
     {
         Lon = other.Lon;
     }
     if (other.Alt != 0)
     {
         Alt = other.Alt;
     }
     if (other.LockScreenMessage.Length != 0)
     {
         LockScreenMessage = other.LockScreenMessage;
     }
     if (other.localizedLockScreenMessage_ != null)
     {
         if (localizedLockScreenMessage_ == null)
         {
             LocalizedLockScreenMessage = new global::PKIo.LocalizedString();
         }
         LocalizedLockScreenMessage.MergeFrom(other.LocalizedLockScreenMessage);
     }
     if (other.Position != 0)
     {
         Position = other.Position;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
示例#7
0
 public void MergeFrom(Beacon other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Id.Length != 0)
     {
         Id = other.Id;
     }
     if (other.Uuid.Length != 0)
     {
         Uuid = other.Uuid;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.Major != 0)
     {
         Major = other.Major;
     }
     if (other.Minor != 0)
     {
         Minor = other.Minor;
     }
     if (other.LockScreenMessage.Length != 0)
     {
         LockScreenMessage = other.LockScreenMessage;
     }
     if (other.localizedLockScreenMessage_ != null)
     {
         if (localizedLockScreenMessage_ == null)
         {
             LocalizedLockScreenMessage = new global::PKIo.LocalizedString();
         }
         LocalizedLockScreenMessage.MergeFrom(other.LocalizedLockScreenMessage);
     }
     if (other.Position != 0)
     {
         Position = other.Position;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
示例#8
0
 public void MergeFrom(Carrier other)
 {
     if (other == null)
     {
         return;
     }
     if (other.IataCarrierCode.Length != 0)
     {
         IataCarrierCode = other.IataCarrierCode;
     }
     if (other.IcaoCarrierCode.Length != 0)
     {
         IcaoCarrierCode = other.IcaoCarrierCode;
     }
     if (other.IataAccountingCode != 0)
     {
         IataAccountingCode = other.IataAccountingCode;
     }
     if (other.AirlineName.Length != 0)
     {
         AirlineName = other.AirlineName;
     }
     if (other.localizedAirlineName_ != null)
     {
         if (localizedAirlineName_ == null)
         {
             LocalizedAirlineName = new global::PKIo.LocalizedString();
         }
         LocalizedAirlineName.MergeFrom(other.LocalizedAirlineName);
     }
     if (other.PassTypeIdentifier.Length != 0)
     {
         PassTypeIdentifier = other.PassTypeIdentifier;
     }
     if (other.PrivateKeyId.Length != 0)
     {
         PrivateKeyId = other.PrivateKeyId;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
示例#9
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 10: {
                    Id = input.ReadString();
                    break;
                }

                case 18: {
                    Url = input.ReadString();
                    break;
                }

                case 26: {
                    Title = input.ReadString();
                    break;
                }

                case 32: {
                    Type = (global::PKIo.LinkType)input.ReadEnum();
                    break;
                }

                case 42: {
                    if (localizedLink_ == null)
                    {
                        LocalizedLink = new global::PKIo.LocalizedString();
                    }
                    input.ReadMessage(LocalizedLink);
                    break;
                }

                case 50: {
                    if (localizedTitle_ == null)
                    {
                        LocalizedTitle = new global::PKIo.LocalizedString();
                    }
                    input.ReadMessage(LocalizedTitle);
                    break;
                }

                case 58:
                case 56: {
                    usage_.AddEntriesFrom(input, _repeated_usage_codec);
                    break;
                }

                case 64: {
                    Position = input.ReadUInt32();
                    break;
                }
                }
            }
        }
示例#10
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 10: {
                    IataAirportCode = input.ReadString();
                    break;
                }

                case 18: {
                    IcaoAirportCode = input.ReadString();
                    break;
                }

                case 26: {
                    CityName = input.ReadString();
                    break;
                }

                case 34: {
                    if (localizedCityName_ == null)
                    {
                        LocalizedCityName = new global::PKIo.LocalizedString();
                    }
                    input.ReadMessage(LocalizedCityName);
                    break;
                }

                case 42: {
                    AirportName = input.ReadString();
                    break;
                }

                case 50: {
                    if (localizedAirportName_ == null)
                    {
                        LocalizedAirportName = new global::PKIo.LocalizedString();
                    }
                    input.ReadMessage(LocalizedAirportName);
                    break;
                }

                case 58: {
                    CountryCode = input.ReadString();
                    break;
                }

                case 66: {
                    Timezone = input.ReadString();
                    break;
                }
                }
            }
        }
示例#11
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 10: {
                    Id = input.ReadString();
                    break;
                }

                case 18: {
                    Name = input.ReadString();
                    break;
                }

                case 26: {
                    if (localizedName_ == null)
                    {
                        LocalizedName = new global::PKIo.LocalizedString();
                    }
                    input.ReadMessage(LocalizedName);
                    break;
                }

                case 42:
                case 40: {
                    status_.AddEntriesFrom(input, _repeated_status_codec);
                    break;
                }

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

                case 58: {
                    IanaTimezone = input.ReadString();
                    break;
                }

                case 82: {
                    if (created_ == null)
                    {
                        Created = new global::Google.Protobuf.WellKnownTypes.Timestamp();
                    }
                    input.ReadMessage(Created);
                    break;
                }

                case 90: {
                    if (updated_ == null)
                    {
                        Updated = new global::Google.Protobuf.WellKnownTypes.Timestamp();
                    }
                    input.ReadMessage(Updated);
                    break;
                }
                }
            }
        }
示例#12
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 10: {
                    Id = input.ReadString();
                    break;
                }

                case 16: {
                    TierIndex = input.ReadUInt32();
                    break;
                }

                case 26: {
                    Name = input.ReadString();
                    break;
                }

                case 34: {
                    if (localizedName_ == null)
                    {
                        LocalizedName = new global::PKIo.LocalizedString();
                    }
                    input.ReadMessage(LocalizedName);
                    break;
                }

                case 42: {
                    SecondaryTierName = input.ReadString();
                    break;
                }

                case 50: {
                    if (localizedSecondaryTierName_ == null)
                    {
                        LocalizedSecondaryTierName = new global::PKIo.LocalizedString();
                    }
                    input.ReadMessage(LocalizedSecondaryTierName);
                    break;
                }

                case 58: {
                    ProgramId = input.ReadString();
                    break;
                }

                case 66: {
                    PassTemplateId = input.ReadString();
                    break;
                }

                case 74: {
                    TierUpgradeMessage = input.ReadString();
                    break;
                }

                case 82: {
                    if (localizedTierUpgradeMessage_ == null)
                    {
                        LocalizedTierUpgradeMessage = new global::PKIo.LocalizedString();
                    }
                    input.ReadMessage(LocalizedTierUpgradeMessage);
                    break;
                }

                case 90: {
                    TierDowngradeMessage = input.ReadString();
                    break;
                }

                case 98: {
                    if (localizedTierDowngradeMessage_ == null)
                    {
                        LocalizedTierDowngradeMessage = new global::PKIo.LocalizedString();
                    }
                    input.ReadMessage(LocalizedTierDowngradeMessage);
                    break;
                }

                case 106: {
                    if (created_ == null)
                    {
                        Created = new global::Google.Protobuf.WellKnownTypes.Timestamp();
                    }
                    input.ReadMessage(Created);
                    break;
                }

                case 114: {
                    if (updated_ == null)
                    {
                        Updated = new global::Google.Protobuf.WellKnownTypes.Timestamp();
                    }
                    input.ReadMessage(Updated);
                    break;
                }

                case 120: {
                    PointsOverdrawn = input.ReadBool();
                    break;
                }

                case 128: {
                    SecondaryPointsOverdrawn = input.ReadBool();
                    break;
                }

                case 138: {
                    if (expirySettings_ == null)
                    {
                        ExpirySettings = new global::PKIo.ExpirySettings();
                    }
                    input.ReadMessage(ExpirySettings);
                    break;
                }

                case 146: {
                    Timezone = input.ReadString();
                    break;
                }
                }
            }
        }
示例#13
0
 public void MergeFrom(Tier other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Id.Length != 0)
     {
         Id = other.Id;
     }
     if (other.TierIndex != 0)
     {
         TierIndex = other.TierIndex;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.localizedName_ != null)
     {
         if (localizedName_ == null)
         {
             LocalizedName = new global::PKIo.LocalizedString();
         }
         LocalizedName.MergeFrom(other.LocalizedName);
     }
     if (other.SecondaryTierName.Length != 0)
     {
         SecondaryTierName = other.SecondaryTierName;
     }
     if (other.localizedSecondaryTierName_ != null)
     {
         if (localizedSecondaryTierName_ == null)
         {
             LocalizedSecondaryTierName = new global::PKIo.LocalizedString();
         }
         LocalizedSecondaryTierName.MergeFrom(other.LocalizedSecondaryTierName);
     }
     if (other.ProgramId.Length != 0)
     {
         ProgramId = other.ProgramId;
     }
     if (other.PassTemplateId.Length != 0)
     {
         PassTemplateId = other.PassTemplateId;
     }
     if (other.TierUpgradeMessage.Length != 0)
     {
         TierUpgradeMessage = other.TierUpgradeMessage;
     }
     if (other.localizedTierUpgradeMessage_ != null)
     {
         if (localizedTierUpgradeMessage_ == null)
         {
             LocalizedTierUpgradeMessage = new global::PKIo.LocalizedString();
         }
         LocalizedTierUpgradeMessage.MergeFrom(other.LocalizedTierUpgradeMessage);
     }
     if (other.TierDowngradeMessage.Length != 0)
     {
         TierDowngradeMessage = other.TierDowngradeMessage;
     }
     if (other.localizedTierDowngradeMessage_ != null)
     {
         if (localizedTierDowngradeMessage_ == null)
         {
             LocalizedTierDowngradeMessage = new global::PKIo.LocalizedString();
         }
         LocalizedTierDowngradeMessage.MergeFrom(other.LocalizedTierDowngradeMessage);
     }
     if (other.created_ != null)
     {
         if (created_ == null)
         {
             Created = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         Created.MergeFrom(other.Created);
     }
     if (other.updated_ != null)
     {
         if (updated_ == null)
         {
             Updated = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         Updated.MergeFrom(other.Updated);
     }
     if (other.PointsOverdrawn != false)
     {
         PointsOverdrawn = other.PointsOverdrawn;
     }
     if (other.SecondaryPointsOverdrawn != false)
     {
         SecondaryPointsOverdrawn = other.SecondaryPointsOverdrawn;
     }
     if (other.expirySettings_ != null)
     {
         if (expirySettings_ == null)
         {
             ExpirySettings = new global::PKIo.ExpirySettings();
         }
         ExpirySettings.MergeFrom(other.ExpirySettings);
     }
     if (other.Timezone.Length != 0)
     {
         Timezone = other.Timezone;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
示例#14
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: {
                    Protocol = (global::PKIo.PassProtocol)input.ReadEnum();
                    break;
                }

                case 18: {
                    CompanyId = input.ReadString();
                    break;
                }

                case 26: {
                    ClassId = input.ReadString();
                    break;
                }

                case 34: {
                    Uuid = input.ReadString();
                    break;
                }

                case 40: {
                    Status = (global::PKIo.MessageStatus)input.ReadEnum();
                    break;
                }

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

                case 56: {
                    ImageId = input.ReadUInt32();
                    break;
                }

                case 66: {
                    Title = input.ReadString();
                    break;
                }

                case 74: {
                    if (localizedTitle_ == null)
                    {
                        LocalizedTitle = new global::PKIo.LocalizedString();
                    }
                    input.ReadMessage(LocalizedTitle);
                    break;
                }

                case 82: {
                    Content = input.ReadString();
                    break;
                }

                case 90: {
                    if (localizedContent_ == null)
                    {
                        LocalizedContent = new global::PKIo.LocalizedString();
                    }
                    input.ReadMessage(LocalizedContent);
                    break;
                }

                case 98: {
                    if (startDate_ == null)
                    {
                        StartDate = new global::Google.Protobuf.WellKnownTypes.Timestamp();
                    }
                    input.ReadMessage(StartDate);
                    break;
                }

                case 106: {
                    if (endDate_ == null)
                    {
                        EndDate = new global::Google.Protobuf.WellKnownTypes.Timestamp();
                    }
                    input.ReadMessage(EndDate);
                    break;
                }

                case 114: {
                    if (filter_ == null)
                    {
                        Filter = new global::PKIo.Filter();
                    }
                    input.ReadMessage(Filter);
                    break;
                }

                case 120: {
                    RecordsMatchingSegment = input.ReadUInt32();
                    break;
                }

                case 128: {
                    RecordsSuccessfullyUpdate = input.ReadUInt32();
                    break;
                }

                case 136: {
                    RecordsFailedToUpdate = input.ReadUInt32();
                    break;
                }

                case 146: {
                    if (created_ == null)
                    {
                        Created = new global::Google.Protobuf.WellKnownTypes.Timestamp();
                    }
                    input.ReadMessage(Created);
                    break;
                }
                }
            }
        }
示例#15
0
 public void MergeFrom(Message other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Protocol != global::PKIo.PassProtocol.DoNotUse)
     {
         Protocol = other.Protocol;
     }
     if (other.CompanyId.Length != 0)
     {
         CompanyId = other.CompanyId;
     }
     if (other.ClassId.Length != 0)
     {
         ClassId = other.ClassId;
     }
     if (other.Uuid.Length != 0)
     {
         Uuid = other.Uuid;
     }
     if (other.Status != global::PKIo.MessageStatus.Created)
     {
         Status = other.Status;
     }
     if (other.Warning.Length != 0)
     {
         Warning = other.Warning;
     }
     if (other.ImageId != 0)
     {
         ImageId = other.ImageId;
     }
     if (other.Title.Length != 0)
     {
         Title = other.Title;
     }
     if (other.localizedTitle_ != null)
     {
         if (localizedTitle_ == null)
         {
             LocalizedTitle = new global::PKIo.LocalizedString();
         }
         LocalizedTitle.MergeFrom(other.LocalizedTitle);
     }
     if (other.Content.Length != 0)
     {
         Content = other.Content;
     }
     if (other.localizedContent_ != null)
     {
         if (localizedContent_ == null)
         {
             LocalizedContent = new global::PKIo.LocalizedString();
         }
         LocalizedContent.MergeFrom(other.LocalizedContent);
     }
     if (other.startDate_ != null)
     {
         if (startDate_ == null)
         {
             StartDate = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         StartDate.MergeFrom(other.StartDate);
     }
     if (other.endDate_ != null)
     {
         if (endDate_ == null)
         {
             EndDate = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         EndDate.MergeFrom(other.EndDate);
     }
     if (other.filter_ != null)
     {
         if (filter_ == null)
         {
             Filter = new global::PKIo.Filter();
         }
         Filter.MergeFrom(other.Filter);
     }
     if (other.RecordsMatchingSegment != 0)
     {
         RecordsMatchingSegment = other.RecordsMatchingSegment;
     }
     if (other.RecordsSuccessfullyUpdate != 0)
     {
         RecordsSuccessfullyUpdate = other.RecordsSuccessfullyUpdate;
     }
     if (other.RecordsFailedToUpdate != 0)
     {
         RecordsFailedToUpdate = other.RecordsFailedToUpdate;
     }
     if (other.created_ != null)
     {
         if (created_ == null)
         {
             Created = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         Created.MergeFrom(other.Created);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }