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: { rows_.AddEntriesFrom(input, _repeated_rows_codec); break; } case 18: { columns_.AddEntriesFrom(input, _map_columns_codec); break; } case 26: { if (metadata_ == null) { Metadata = new global::FactSet.Protobuf.Stach.Table.MetadataCollection(); } input.ReadMessage(Metadata); break; } } } }
public void MergeFrom(TableData other) { if (other == null) { return; } rows_.Add(other.rows_); columns_.Add(other.columns_); if (other.metadata_ != null) { if (metadata_ == null) { Metadata = new global::FactSet.Protobuf.Stach.Table.MetadataCollection(); } Metadata.MergeFrom(other.Metadata); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }