public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { UserId = input.ReadInt32(); break; } case 16: { ModuleId = (global::Lspb.ModuleId)input.ReadEnum(); break; } case 24: { MethodId = (global::Lspb.ClientMsgType)input.ReadEnum(); break; } case 810: { if (cliEnterRoom_ == null) { CliEnterRoom = new global::Lspb.CliEnterRoom(); } input.ReadMessage(CliEnterRoom); break; } case 818: { if (cliInitOver_ == null) { CliInitOver = new global::Lspb.CliInitOver(); } input.ReadMessage(CliInitOver); break; } case 826: { if (cliOperate_ == null) { CliOperate = new global::Lspb.CliOperate(); } input.ReadMessage(CliOperate); break; } } } }
public void MergeFrom(CliReq other) { if (other == null) { return; } if (other.UserId != 0) { UserId = other.UserId; } if (other.ModuleId != global::Lspb.ModuleId.UnknownModel) { ModuleId = other.ModuleId; } if (other.MethodId != global::Lspb.ClientMsgType.ErrorClientType) { MethodId = other.MethodId; } if (other.cliEnterRoom_ != null) { if (cliEnterRoom_ == null) { CliEnterRoom = new global::Lspb.CliEnterRoom(); } CliEnterRoom.MergeFrom(other.CliEnterRoom); } if (other.cliInitOver_ != null) { if (cliInitOver_ == null) { CliInitOver = new global::Lspb.CliInitOver(); } CliInitOver.MergeFrom(other.CliInitOver); } if (other.cliOperate_ != null) { if (cliOperate_ == null) { CliOperate = new global::Lspb.CliOperate(); } CliOperate.MergeFrom(other.CliOperate); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }