public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 8: { Ret = input.ReadSInt32(); break; } case 18: { if (mainVersion_ == null) { mainVersion_ = new global::Com.Proto.Server.MainVersionPB(); } input.ReadMessage(mainVersion_); break; } case 26: { if (hotVersion_ == null) { hotVersion_ = new global::Com.Proto.Server.HotVersionPB(); } input.ReadMessage(hotVersion_); break; } case 34: { cacheVersion_.AddEntriesFrom(input, _repeated_cacheVersion_codec); break; } case 42: { gameServerInfo_.AddEntriesFrom(input, _repeated_gameServerInfo_codec); break; } case 50: { if (imgServerInfo_ == null) { imgServerInfo_ = new global::Com.Proto.Server.ImgServerInfoPB(); } input.ReadMessage(imgServerInfo_); break; } case 58: { if (reserveImgServerInfo_ == null) { reserveImgServerInfo_ = new global::Com.Proto.Server.ImgServerInfoPB(); } input.ReadMessage(reserveImgServerInfo_); break; } case 66: { if (matchingServerInfo_ == null) { matchingServerInfo_ = new global::Com.Proto.Server.MatchingServiceInfoPB(); } input.ReadMessage(matchingServerInfo_); break; } case 74: { notice_.AddEntriesFrom(input, _repeated_notice_codec); break; } case 82: { if (switchControl_ == null) { switchControl_ = new global::Com.Proto.Server.SwitchControlPB(); } input.ReadMessage(switchControl_); break; } case 88: { DisclaimerVersion = input.ReadSInt32(); break; } } } }
public void MergeFrom(GameServerRes other) { if (other == null) { return; } if (other.Ret != 0) { Ret = other.Ret; } if (other.mainVersion_ != null) { if (mainVersion_ == null) { mainVersion_ = new global::Com.Proto.Server.MainVersionPB(); } MainVersion.MergeFrom(other.MainVersion); } if (other.hotVersion_ != null) { if (hotVersion_ == null) { hotVersion_ = new global::Com.Proto.Server.HotVersionPB(); } HotVersion.MergeFrom(other.HotVersion); } cacheVersion_.Add(other.cacheVersion_); gameServerInfo_.Add(other.gameServerInfo_); if (other.imgServerInfo_ != null) { if (imgServerInfo_ == null) { imgServerInfo_ = new global::Com.Proto.Server.ImgServerInfoPB(); } ImgServerInfo.MergeFrom(other.ImgServerInfo); } if (other.reserveImgServerInfo_ != null) { if (reserveImgServerInfo_ == null) { reserveImgServerInfo_ = new global::Com.Proto.Server.ImgServerInfoPB(); } ReserveImgServerInfo.MergeFrom(other.ReserveImgServerInfo); } if (other.matchingServerInfo_ != null) { if (matchingServerInfo_ == null) { matchingServerInfo_ = new global::Com.Proto.Server.MatchingServiceInfoPB(); } MatchingServerInfo.MergeFrom(other.MatchingServerInfo); } notice_.Add(other.notice_); if (other.switchControl_ != null) { if (switchControl_ == null) { switchControl_ = new global::Com.Proto.Server.SwitchControlPB(); } SwitchControl.MergeFrom(other.SwitchControl); } if (other.DisclaimerVersion != 0) { DisclaimerVersion = other.DisclaimerVersion; } }