public void MergeFrom(ClientMapPoi other) { if (other == null) { return; } if (other.Id.Length != 0) { Id = other.Id; } if (other.Name.Length != 0) { Name = other.Name; } if (other.Latitude != 0D) { Latitude = other.Latitude; } if (other.Longitude != 0D) { Longitude = other.Longitude; } if (other.Description.Length != 0) { Description = other.Description; } if (other.PoiAccessibility != 0) { PoiAccessibility = other.PoiAccessibility; } switch (other.TypeCase) { case TypeOneofCase.Outpost: if (Outpost == null) { Outpost = new global::WUProtos.Data.Client.ClientMapOutpost(); } Outpost.MergeFrom(other.Outpost); break; case TypeOneofCase.Fortress: if (Fortress == null) { Fortress = new global::WUProtos.Data.Client.ClientMapFortress(); } Fortress.MergeFrom(other.Fortress); break; case TypeOneofCase.Greenhouse: if (Greenhouse == null) { Greenhouse = new global::WUProtos.Data.Client.ClientMapGreenhouse(); } Greenhouse.MergeFrom(other.Greenhouse); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }