public void MergeFrom(MetadataLocations other) { if (other == null) { return; } table_.Add(other.table_); columns_.Add(other.columns_); rows_.Add(other.rows_); if (other.cells_ != null) { if (cells_ == null) { Cells = new global::FactSet.Protobuf.Stach.Table.MetadataLocations.Types.CellsColumnMap(); } Cells.MergeFrom(other.Cells); } _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: { table_.AddEntriesFrom(input, _repeated_table_codec); break; } case 18: { columns_.AddEntriesFrom(input, _map_columns_codec); break; } case 26: { rows_.AddEntriesFrom(input, _map_rows_codec); break; } case 34: { if (cells_ == null) { Cells = new global::FactSet.Protobuf.Stach.Table.MetadataLocations.Types.CellsColumnMap(); } input.ReadMessage(Cells); break; } } } }