Ejemplo n.º 1
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);
 }
Ejemplo n.º 2
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);
 }