예제 #1
0
        public void MergeFrom(BuffDuration other)
        {
            if (other == null)
            {
                return;
            }
            switch (other.TypeCase)
            {
            case TypeOneofCase.Time:
                if (Time == null)
                {
                    Time = new global::WUProtos.Data.Buff.TimeBuffDuration();
                }
                Time.MergeFrom(other.Time);
                break;

            case TypeOneofCase.Charges:
                if (Charges == null)
                {
                    Charges = new global::WUProtos.Data.ChargesBuffDuration();
                }
                Charges.MergeFrom(other.Charges);
                break;

            case TypeOneofCase.Profession:
                if (Profession == null)
                {
                    Profession = new global::WUProtos.Data.Profession.ProfessionBuffDuration();
                }
                Profession.MergeFrom(other.Profession);
                break;

            case TypeOneofCase.Permanent:
                if (Permanent == null)
                {
                    Permanent = new global::WUProtos.Data.Buff.PermanentBuffDuration();
                }
                Permanent.MergeFrom(other.Permanent);
                break;

            case TypeOneofCase.Instant:
                if (Instant == null)
                {
                    Instant = new global::WUProtos.Data.Buff.InstantBuffDuration();
                }
                Instant.MergeFrom(other.Instant);
                break;

            case TypeOneofCase.Challenge:
                if (Challenge == null)
                {
                    Challenge = new global::WUProtos.Data.Challenge.ChallengeBuffDuration();
                }
                Challenge.MergeFrom(other.Challenge);
                break;
            }

            _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
        }
 public void MergeFrom(ReservationInvoiceMapping other)
 {
     if (other == null)
     {
         return;
     }
     if (other.invoiceId_ != null)
     {
         if (invoiceId_ == null)
         {
             invoiceId_ = new global::HOLMS.Types.Primitive.Uuid();
         }
         InvoiceId.MergeFrom(other.InvoiceId);
     }
     if (other.reservationId_ != null)
     {
         if (reservationId_ == null)
         {
             reservationId_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator();
         }
         ReservationId.MergeFrom(other.ReservationId);
     }
     if (other.amount_ != null)
     {
         if (amount_ == null)
         {
             amount_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         Amount.MergeFrom(other.Amount);
     }
     if (other.payment_ != null)
     {
         if (payment_ == null)
         {
             payment_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         Payment.MergeFrom(other.Payment);
     }
     if (other.taxes_ != null)
     {
         if (taxes_ == null)
         {
             taxes_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         Taxes.MergeFrom(other.Taxes);
     }
     if (other.fees_ != null)
     {
         if (fees_ == null)
         {
             fees_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         Fees.MergeFrom(other.Fees);
     }
     if (other.charges_ != null)
     {
         if (charges_ == null)
         {
             charges_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         Charges.MergeFrom(other.Charges);
     }
     if (other.Voided != false)
     {
         Voided = other.Voided;
     }
 }