public void MergeFrom(GetOutpostDetailsResponse other) { if (other == null) { return; } imageUrls_.Add(other.imageUrls_); if (other.currentMenu_ != null) { if (currentMenu_ == null) { CurrentMenu = new global::WUProtos.Data.OutpostMenu(); } CurrentMenu.MergeFrom(other.CurrentMenu); } if (other.PartnerId.Length != 0) { PartnerId = other.PartnerId; } if (other.poiDetails_ != null) { if (poiDetails_ == null) { PoiDetails = new global::WUProtos.Data.PoiDetails(); } PoiDetails.MergeFrom(other.PoiDetails); } if (other.PoiAccessibility != 0) { PoiAccessibility = other.PoiAccessibility; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
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: { imageUrls_.AddEntriesFrom(input, _repeated_imageUrls_codec); break; } case 18: { if (currentMenu_ == null) { CurrentMenu = new global::WUProtos.Data.OutpostMenu(); } input.ReadMessage(CurrentMenu); break; } case 26: { PartnerId = input.ReadString(); break; } case 34: { if (poiDetails_ == null) { PoiDetails = new global::WUProtos.Data.PoiDetails(); } input.ReadMessage(PoiDetails); break; } case 40: { PoiAccessibility = (global::WUProtos.Enums.PoiAccessibility)input.ReadEnum(); break; } } } }