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(MakeMeOneWithEverything other) { if (other == null) { return; } if (other.duration_ != null) { if (duration_ == null) { Duration = new global::Google.Protobuf.WellKnownTypes.Duration(); } Duration.MergeFrom(other.Duration); } if (other.instant_ != null) { if (instant_ == null) { Instant = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } Instant.MergeFrom(other.Instant); } if (other.localDate_ != null) { if (localDate_ == null) { LocalDate = new global::Google.Type.Date(); } LocalDate.MergeFrom(other.LocalDate); } if (other.localTime_ != null) { if (localTime_ == null) { LocalTime = new global::Google.Type.TimeOfDay(); } LocalTime.MergeFrom(other.LocalTime); } if (other.IsoDayOfWeek != global::Google.Type.DayOfWeek.Unspecified) { IsoDayOfWeek = other.IsoDayOfWeek; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }