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: { items_.AddEntriesFrom(input, _map_items_codec); break; } case 18: { if (locations_ == null) { Locations = new global::FactSet.Protobuf.Stach.Table.MetadataLocations(); } input.ReadMessage(Locations); break; } } } }
public void MergeFrom(MetadataCollection other) { if (other == null) { return; } items_.Add(other.items_); if (other.locations_ != null) { if (locations_ == null) { Locations = new global::FactSet.Protobuf.Stach.Table.MetadataLocations(); } Locations.MergeFrom(other.Locations); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }