public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { global::Prisel.Protobuf.PlayerInfo subBuilder = new global::Prisel.Protobuf.PlayerInfo(); if (changeCase_ == ChangeOneofCase.PlayerJoin) { subBuilder.MergeFrom(PlayerJoin); } input.ReadMessage(subBuilder); PlayerJoin = subBuilder; break; } case 18: { PlayerLeave = input.ReadString(); break; } case 26: { global::Prisel.Protobuf.RoomStateChangePayload.Types.HostLeaveData subBuilder = new global::Prisel.Protobuf.RoomStateChangePayload.Types.HostLeaveData(); if (changeCase_ == ChangeOneofCase.HostLeave) { subBuilder.MergeFrom(HostLeave); } input.ReadMessage(subBuilder); HostLeave = subBuilder; break; } case 34: { if (token_ == null) { Token = new global::Prisel.Protobuf.UpdateToken(); } input.ReadMessage(Token); break; } } } #endif }
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { global::Prisel.Protobuf.PlayerInfo subBuilder = new global::Prisel.Protobuf.PlayerInfo(); if (changeCase_ == ChangeOneofCase.PlayerJoin) { subBuilder.MergeFrom(PlayerJoin); } input.ReadMessage(subBuilder); PlayerJoin = subBuilder; break; } case 18: { PlayerLeave = input.ReadString(); break; } case 26: { global::Prisel.Protobuf.RoomStateChangePayload.Types.HostLeaveData subBuilder = new global::Prisel.Protobuf.RoomStateChangePayload.Types.HostLeaveData(); if (changeCase_ == ChangeOneofCase.HostLeave) { subBuilder.MergeFrom(HostLeave); } input.ReadMessage(subBuilder); HostLeave = subBuilder; break; } case 34: { if (token_ == null) { Token = new global::Prisel.Protobuf.UpdateToken(); } input.ReadMessage(Token); break; } } } }