public void MergeFrom(Config other) { if (other == null) { return; } if (other.confenum_ != null) { if (confenum_ == null) { confenum_ = new global::UF.Config.ConfTestEnum(); } Confenum.MergeFrom(other.Confenum); } if (other.confprimitive_ != null) { if (confprimitive_ == null) { confprimitive_ = new global::UF.Config.ConfTestPrimitive(); } Confprimitive.MergeFrom(other.Confprimitive); } serverList_.Add(other.serverList_); testIntDict_.Add(other.testIntDict_); testStrDict_.Add(other.testStrDict_); testHeroes_.Add(other.testHeroes_); listoflist_.Add(other.listoflist_); if (other.testlistAndDict_ != null) { if (testlistAndDict_ == null) { testlistAndDict_ = new global::UF.Config.ConfTestListAndDict(); } TestlistAndDict.MergeFrom(other.TestlistAndDict); } testIntList_.Add(other.testIntList_); testStrList_.Add(other.testStrList_); testEnumList_.Add(other.testEnumList_); testFloatList_.Add(other.testFloatList_); }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { if (confenum_ == null) { confenum_ = new global::UF.Config.ConfTestEnum(); } input.ReadMessage(confenum_); break; } case 18: { if (confprimitive_ == null) { confprimitive_ = new global::UF.Config.ConfTestPrimitive(); } input.ReadMessage(confprimitive_); break; } case 26: { serverList_.AddEntriesFrom(input, _repeated_serverList_codec); break; } case 58: { testIntDict_.AddEntriesFrom(input, _map_testIntDict_codec); break; } case 66: { testStrDict_.AddEntriesFrom(input, _map_testStrDict_codec); break; } case 74: { testHeroes_.AddEntriesFrom(input, _map_testHeroes_codec); break; } case 82: { listoflist_.AddEntriesFrom(input, _repeated_listoflist_codec); break; } case 90: { if (testlistAndDict_ == null) { testlistAndDict_ = new global::UF.Config.ConfTestListAndDict(); } input.ReadMessage(testlistAndDict_); break; } case 98: case 96: { testIntList_.AddEntriesFrom(input, _repeated_testIntList_codec); break; } case 106: { testStrList_.AddEntriesFrom(input, _repeated_testStrList_codec); break; } case 114: case 112: { testEnumList_.AddEntriesFrom(input, _repeated_testEnumList_codec); break; } case 122: case 125: { testFloatList_.AddEntriesFrom(input, _repeated_testFloatList_codec); break; } } } }