diff --git a/README.md b/README.md index 08792c2df..b29a3bb81 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -![LunarCore](https://socialify.git.ci/Melledy/LunarCore/image?description=1&descriptionEditable=A%20game%20server%20reimplementation%20for%20version%201.5.0%20of%20a%20certain%20turn-based%20anime%20game%20for%20educational%20purposes.%20&font=Inter&forks=1&issues=1&language=1&name=1&owner=1&pulls=1&stargazers=1&theme=Light) +![LunarCore](https://socialify.git.ci/Melledy/LunarCore/image?description=1&descriptionEditable=A%20game%20server%20reimplementation%20for%20version%201.6.0%20of%20a%20certain%20turn-based%20anime%20game%20for%20educational%20purposes.%20&font=Inter&forks=1&issues=1&language=1&name=1&owner=1&pulls=1&stargazers=1&theme=Light)
GitHub release (latest by date) GitHub GitHub last commit GitHub Workflow Status
Discord - Grasscutter
@@ -18,7 +18,7 @@ - Mail system - Friend system (Assists are not working yet) - Forgotten hall -- Simulated universe (Runs can be finished, but many features are missing) +- ~~Simulated universe (Runs can be finished, but many features are missing)~~ # Running the server and client diff --git a/data/Banners.json b/data/Banners.json index 95efc49bb..51474988d 100644 --- a/data/Banners.json +++ b/data/Banners.json @@ -370,5 +370,117 @@ 21000, 21006 ] + }, + { + "id": 2017, + "gachaType": "AvatarUp", + "beginTime": 0, + "endTime": 1924992000, + "rateUpItems5": [ + 1303 + ], + "rateUpItems4": [ + 1001, + 1202, + 1214 + ] + }, + { + "id": 3017, + "gachaType": "WeaponUp", + "beginTime": 0, + "endTime": 1924992000, + "rateUpItems5": [ + 23019 + ], + "rateUpItems4": [ + 21002, + 21011, + 21012 + ] + }, + { + "id": 2018, + "gachaType": "AvatarUp", + "beginTime": 0, + "endTime": 1924992000, + "rateUpItems5": [ + 1205 + ], + "rateUpItems4": [ + 1001, + 1202, + 1214 + ] + }, + { + "id": 3018, + "gachaType": "WeaponUp", + "beginTime": 0, + "endTime": 1924992000, + "rateUpItems5": [ + 23009 + ], + "rateUpItems4": [ + 21002, + 21011, + 21012 + ] + }, + { + "id": 2019, + "gachaType": "AvatarUp", + "beginTime": 0, + "endTime": 1924992000, + "rateUpItems5": [ + 1305 + ], + "rateUpItems4": [ + 1105, + 1109, + 1206 + ] + }, + { + "id": 3019, + "gachaType": "WeaponUp", + "beginTime": 0, + "endTime": 1924992000, + "rateUpItems5": [ + 23020 + ], + "rateUpItems4": [ + 21003, + 21009, + 21014 + ] + }, + { + "id": 2020, + "gachaType": "AvatarUp", + "beginTime": 0, + "endTime": 1924992000, + "rateUpItems5": [ + 1005 + ], + "rateUpItems4": [ + 1105, + 1109, + 1206 + ] + }, + { + "id": 3020, + "gachaType": "WeaponUp", + "beginTime": 0, + "endTime": 1924992000, + "rateUpItems5": [ + 23006 + ], + "rateUpItems4": [ + 21003, + 21009, + 21014 + ] } ] \ No newline at end of file diff --git a/src/generated/main/emu/lunarcore/proto/ActivateFarmElementCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/ActivateFarmElementCsReqOuterClass.java index fd8037fea..9a445fd0d 100644 --- a/src/generated/main/emu/lunarcore/proto/ActivateFarmElementCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ActivateFarmElementCsReqOuterClass.java @@ -19,12 +19,12 @@ public static final class ActivateFarmElementCsReq extends ProtoMessageoptional uint32 world_level = 10; + * optional uint32 world_level = 4; */ private int worldLevel; /** - * optional uint32 entity_id = 13; + * optional uint32 entity_id = 6; */ private int entityId; @@ -39,7 +39,7 @@ public static ActivateFarmElementCsReq newInstance() { } /** - * optional uint32 world_level = 10; + * optional uint32 world_level = 4; * @return whether the worldLevel field is set */ public boolean hasWorldLevel() { @@ -47,7 +47,7 @@ public boolean hasWorldLevel() { } /** - * optional uint32 world_level = 10; + * optional uint32 world_level = 4; * @return this */ public ActivateFarmElementCsReq clearWorldLevel() { @@ -57,7 +57,7 @@ public ActivateFarmElementCsReq clearWorldLevel() { } /** - * optional uint32 world_level = 10; + * optional uint32 world_level = 4; * @return the worldLevel */ public int getWorldLevel() { @@ -65,7 +65,7 @@ public int getWorldLevel() { } /** - * optional uint32 world_level = 10; + * optional uint32 world_level = 4; * @param value the worldLevel to set * @return this */ @@ -76,7 +76,7 @@ public ActivateFarmElementCsReq setWorldLevel(final int value) { } /** - * optional uint32 entity_id = 13; + * optional uint32 entity_id = 6; * @return whether the entityId field is set */ public boolean hasEntityId() { @@ -84,7 +84,7 @@ public boolean hasEntityId() { } /** - * optional uint32 entity_id = 13; + * optional uint32 entity_id = 6; * @return this */ public ActivateFarmElementCsReq clearEntityId() { @@ -94,7 +94,7 @@ public ActivateFarmElementCsReq clearEntityId() { } /** - * optional uint32 entity_id = 13; + * optional uint32 entity_id = 6; * @return the entityId */ public int getEntityId() { @@ -102,7 +102,7 @@ public int getEntityId() { } /** - * optional uint32 entity_id = 13; + * optional uint32 entity_id = 6; * @param value the entityId to set * @return this */ @@ -177,11 +177,11 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(worldLevel); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 48); output.writeUInt32NoTag(entityId); } } @@ -205,16 +205,16 @@ public ActivateFarmElementCsReq mergeFrom(final ProtoSource input) throws IOExce int tag = input.readTag(); while (true) { switch (tag) { - case 80: { + case 32: { // worldLevel worldLevel = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 104) { + if (tag != 48) { break; } } - case 104: { + case 48: { // entityId entityId = input.readUInt32(); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/ActivateFarmElementScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/ActivateFarmElementScRspOuterClass.java index 823e65e14..859febdf7 100644 --- a/src/generated/main/emu/lunarcore/proto/ActivateFarmElementScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ActivateFarmElementScRspOuterClass.java @@ -19,17 +19,17 @@ public static final class ActivateFarmElementScRsp extends ProtoMessageoptional uint32 world_level = 4; + * optional uint32 entity_id = 6; */ - private int worldLevel; + private int entityId; /** - * optional uint32 entity_id = 11; + * optional uint32 world_level = 13; */ - private int entityId; + private int worldLevel; /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 15; */ private int retcode; @@ -44,81 +44,81 @@ public static ActivateFarmElementScRsp newInstance() { } /** - * optional uint32 world_level = 4; - * @return whether the worldLevel field is set + * optional uint32 entity_id = 6; + * @return whether the entityId field is set */ - public boolean hasWorldLevel() { + public boolean hasEntityId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 world_level = 4; + * optional uint32 entity_id = 6; * @return this */ - public ActivateFarmElementScRsp clearWorldLevel() { + public ActivateFarmElementScRsp clearEntityId() { bitField0_ &= ~0x00000001; - worldLevel = 0; + entityId = 0; return this; } /** - * optional uint32 world_level = 4; - * @return the worldLevel + * optional uint32 entity_id = 6; + * @return the entityId */ - public int getWorldLevel() { - return worldLevel; + public int getEntityId() { + return entityId; } /** - * optional uint32 world_level = 4; - * @param value the worldLevel to set + * optional uint32 entity_id = 6; + * @param value the entityId to set * @return this */ - public ActivateFarmElementScRsp setWorldLevel(final int value) { + public ActivateFarmElementScRsp setEntityId(final int value) { bitField0_ |= 0x00000001; - worldLevel = value; + entityId = value; return this; } /** - * optional uint32 entity_id = 11; - * @return whether the entityId field is set + * optional uint32 world_level = 13; + * @return whether the worldLevel field is set */ - public boolean hasEntityId() { + public boolean hasWorldLevel() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 entity_id = 11; + * optional uint32 world_level = 13; * @return this */ - public ActivateFarmElementScRsp clearEntityId() { + public ActivateFarmElementScRsp clearWorldLevel() { bitField0_ &= ~0x00000002; - entityId = 0; + worldLevel = 0; return this; } /** - * optional uint32 entity_id = 11; - * @return the entityId + * optional uint32 world_level = 13; + * @return the worldLevel */ - public int getEntityId() { - return entityId; + public int getWorldLevel() { + return worldLevel; } /** - * optional uint32 entity_id = 11; - * @param value the entityId to set + * optional uint32 world_level = 13; + * @param value the worldLevel to set * @return this */ - public ActivateFarmElementScRsp setEntityId(final int value) { + public ActivateFarmElementScRsp setWorldLevel(final int value) { bitField0_ |= 0x00000002; - entityId = value; + worldLevel = value; return this; } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 15; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -126,7 +126,7 @@ public boolean hasRetcode() { } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 15; * @return this */ public ActivateFarmElementScRsp clearRetcode() { @@ -136,7 +136,7 @@ public ActivateFarmElementScRsp clearRetcode() { } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 15; * @return the retcode */ public int getRetcode() { @@ -144,7 +144,7 @@ public int getRetcode() { } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 15; * @param value the retcode to set * @return this */ @@ -159,8 +159,8 @@ public ActivateFarmElementScRsp copyFrom(final ActivateFarmElementScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - worldLevel = other.worldLevel; entityId = other.entityId; + worldLevel = other.worldLevel; retcode = other.retcode; } return this; @@ -172,12 +172,12 @@ public ActivateFarmElementScRsp mergeFrom(final ActivateFarmElementScRsp other) return this; } cachedSize = -1; - if (other.hasWorldLevel()) { - setWorldLevel(other.worldLevel); - } if (other.hasEntityId()) { setEntityId(other.entityId); } + if (other.hasWorldLevel()) { + setWorldLevel(other.worldLevel); + } if (other.hasRetcode()) { setRetcode(other.retcode); } @@ -191,8 +191,8 @@ public ActivateFarmElementScRsp clear() { } cachedSize = -1; bitField0_ = 0; - worldLevel = 0; entityId = 0; + worldLevel = 0; retcode = 0; return this; } @@ -217,23 +217,23 @@ public boolean equals(Object o) { } ActivateFarmElementScRsp other = (ActivateFarmElementScRsp) o; return bitField0_ == other.bitField0_ - && (!hasWorldLevel() || worldLevel == other.worldLevel) && (!hasEntityId() || entityId == other.entityId) + && (!hasWorldLevel() || worldLevel == other.worldLevel) && (!hasRetcode() || retcode == other.retcode); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 32); - output.writeUInt32NoTag(worldLevel); + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(entityId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 88); - output.writeUInt32NoTag(entityId); + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(worldLevel); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 120); output.writeUInt32NoTag(retcode); } } @@ -242,10 +242,10 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(worldLevel); + size += 1 + ProtoSink.computeUInt32SizeNoTag(entityId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(entityId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(worldLevel); } if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); @@ -260,25 +260,25 @@ public ActivateFarmElementScRsp mergeFrom(final ProtoSource input) throws IOExce int tag = input.readTag(); while (true) { switch (tag) { - case 32: { - // worldLevel - worldLevel = input.readUInt32(); + case 48: { + // entityId + entityId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 88) { + if (tag != 104) { break; } } - case 88: { - // entityId - entityId = input.readUInt32(); + case 104: { + // worldLevel + worldLevel = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 112) { + if (tag != 120) { break; } } - case 112: { + case 120: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000004; @@ -305,10 +305,10 @@ public ActivateFarmElementScRsp mergeFrom(final ProtoSource input) throws IOExce public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.worldLevel, worldLevel); + output.writeUInt32(FieldNames.entityId, entityId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.entityId, entityId); + output.writeUInt32(FieldNames.worldLevel, worldLevel); } if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.retcode, retcode); @@ -323,11 +323,11 @@ public ActivateFarmElementScRsp mergeFrom(final JsonSource input) throws IOExcep } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 440007442: - case 1305257111: { - if (input.isAtField(FieldNames.worldLevel)) { + case -2102099874: + case -740565257: { + if (input.isAtField(FieldNames.entityId)) { if (!input.trySkipNullValue()) { - worldLevel = input.readUInt32(); + entityId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -335,11 +335,11 @@ public ActivateFarmElementScRsp mergeFrom(final JsonSource input) throws IOExcep } break; } - case -2102099874: - case -740565257: { - if (input.isAtField(FieldNames.entityId)) { + case 440007442: + case 1305257111: { + if (input.isAtField(FieldNames.worldLevel)) { if (!input.trySkipNullValue()) { - entityId = input.readUInt32(); + worldLevel = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -411,10 +411,10 @@ public ActivateFarmElementScRsp create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName worldLevel = FieldName.forField("worldLevel", "world_level"); - static final FieldName entityId = FieldName.forField("entityId", "entity_id"); + static final FieldName worldLevel = FieldName.forField("worldLevel", "world_level"); + static final FieldName retcode = FieldName.forField("retcode"); } } diff --git a/src/generated/main/emu/lunarcore/proto/ApplyFriendCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/ApplyFriendCsReqOuterClass.java index f6ba0505d..5379d6cd6 100644 --- a/src/generated/main/emu/lunarcore/proto/ApplyFriendCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ApplyFriendCsReqOuterClass.java @@ -19,12 +19,12 @@ public static final class ApplyFriendCsReq extends ProtoMessageoptional uint32 uid = 6; + * optional uint32 uid = 11; */ private int uid; /** - * optional .FriendApplySource source = 8; + * optional .FriendApplySource source = 12; */ private int source; @@ -39,7 +39,7 @@ public static ApplyFriendCsReq newInstance() { } /** - * optional uint32 uid = 6; + * optional uint32 uid = 11; * @return whether the uid field is set */ public boolean hasUid() { @@ -47,7 +47,7 @@ public boolean hasUid() { } /** - * optional uint32 uid = 6; + * optional uint32 uid = 11; * @return this */ public ApplyFriendCsReq clearUid() { @@ -57,7 +57,7 @@ public ApplyFriendCsReq clearUid() { } /** - * optional uint32 uid = 6; + * optional uint32 uid = 11; * @return the uid */ public int getUid() { @@ -65,7 +65,7 @@ public int getUid() { } /** - * optional uint32 uid = 6; + * optional uint32 uid = 11; * @param value the uid to set * @return this */ @@ -76,7 +76,7 @@ public ApplyFriendCsReq setUid(final int value) { } /** - * optional .FriendApplySource source = 8; + * optional .FriendApplySource source = 12; * @return whether the source field is set */ public boolean hasSource() { @@ -84,7 +84,7 @@ public boolean hasSource() { } /** - * optional .FriendApplySource source = 8; + * optional .FriendApplySource source = 12; * @return this */ public ApplyFriendCsReq clearSource() { @@ -94,7 +94,7 @@ public ApplyFriendCsReq clearSource() { } /** - * optional .FriendApplySource source = 8; + * optional .FriendApplySource source = 12; * @return the source */ public FriendApplySourceOuterClass.FriendApplySource getSource() { @@ -127,7 +127,7 @@ public ApplyFriendCsReq setSourceValue(final int value) { } /** - * optional .FriendApplySource source = 8; + * optional .FriendApplySource source = 12; * @param value the source to set * @return this */ @@ -202,11 +202,11 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 88); output.writeUInt32NoTag(uid); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 96); output.writeEnumNoTag(source); } } @@ -230,16 +230,16 @@ public ApplyFriendCsReq mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 48: { + case 88: { // uid uid = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 64) { + if (tag != 96) { break; } } - case 64: { + case 96: { // source final int value = input.readInt32(); if (FriendApplySourceOuterClass.FriendApplySource.forNumber(value) != null) { diff --git a/src/generated/main/emu/lunarcore/proto/ArchiveDataOuterClass.java b/src/generated/main/emu/lunarcore/proto/ArchiveDataOuterClass.java index 3d6019653..049a1c0bc 100644 --- a/src/generated/main/emu/lunarcore/proto/ArchiveDataOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ArchiveDataOuterClass.java @@ -21,24 +21,24 @@ public static final class ArchiveData extends ProtoMessage implemen private static final long serialVersionUID = 0L; /** - * repeated uint32 archive_equipment_id_list = 3; + * repeated uint32 archive_avatar_id_list = 7; */ - private final RepeatedInt archiveEquipmentIdList = RepeatedInt.newEmptyInstance(); + private final RepeatedInt archiveAvatarIdList = RepeatedInt.newEmptyInstance(); /** - * repeated uint32 archive_avatar_id_list = 4; + * repeated uint32 archive_equipment_id_list = 10; */ - private final RepeatedInt archiveAvatarIdList = RepeatedInt.newEmptyInstance(); + private final RepeatedInt archiveEquipmentIdList = RepeatedInt.newEmptyInstance(); /** - * repeated .MonsterArchive archive_monster_id_list = 7; + * repeated .RelicArchive relic_list = 3; */ - private final RepeatedMessage archiveMonsterIdList = RepeatedMessage.newEmptyInstance(MonsterArchiveOuterClass.MonsterArchive.getFactory()); + private final RepeatedMessage relicList = RepeatedMessage.newEmptyInstance(RelicArchiveOuterClass.RelicArchive.getFactory()); /** - * repeated .RelicArchive archive_relic_list = 11; + * repeated .MonsterArchive archive_monster_id_list = 14; */ - private final RepeatedMessage archiveRelicList = RepeatedMessage.newEmptyInstance(RelicArchiveOuterClass.RelicArchive.getFactory()); + private final RepeatedMessage archiveMonsterIdList = RepeatedMessage.newEmptyInstance(MonsterArchiveOuterClass.MonsterArchive.getFactory()); private ArchiveData() { } @@ -51,39 +51,39 @@ public static ArchiveData newInstance() { } /** - * repeated uint32 archive_equipment_id_list = 3; - * @return whether the archiveEquipmentIdList field is set + * repeated uint32 archive_avatar_id_list = 7; + * @return whether the archiveAvatarIdList field is set */ - public boolean hasArchiveEquipmentIdList() { + public boolean hasArchiveAvatarIdList() { return (bitField0_ & 0x00000001) != 0; } /** - * repeated uint32 archive_equipment_id_list = 3; + * repeated uint32 archive_avatar_id_list = 7; * @return this */ - public ArchiveData clearArchiveEquipmentIdList() { + public ArchiveData clearArchiveAvatarIdList() { bitField0_ &= ~0x00000001; - archiveEquipmentIdList.clear(); + archiveAvatarIdList.clear(); return this; } /** - * repeated uint32 archive_equipment_id_list = 3; + * repeated uint32 archive_avatar_id_list = 7; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableArchiveEquipmentIdList()} if you want to modify it. + * Use {@link #getMutableArchiveAvatarIdList()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedInt getArchiveEquipmentIdList() { - return archiveEquipmentIdList; + public RepeatedInt getArchiveAvatarIdList() { + return archiveAvatarIdList; } /** - * repeated uint32 archive_equipment_id_list = 3; + * repeated uint32 archive_avatar_id_list = 7; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -91,67 +91,67 @@ public RepeatedInt getArchiveEquipmentIdList() { * * @return internal storage object for modifications */ - public RepeatedInt getMutableArchiveEquipmentIdList() { + public RepeatedInt getMutableArchiveAvatarIdList() { bitField0_ |= 0x00000001; - return archiveEquipmentIdList; + return archiveAvatarIdList; } /** - * repeated uint32 archive_equipment_id_list = 3; - * @param value the archiveEquipmentIdList to add + * repeated uint32 archive_avatar_id_list = 7; + * @param value the archiveAvatarIdList to add * @return this */ - public ArchiveData addArchiveEquipmentIdList(final int value) { + public ArchiveData addArchiveAvatarIdList(final int value) { bitField0_ |= 0x00000001; - archiveEquipmentIdList.add(value); + archiveAvatarIdList.add(value); return this; } /** - * repeated uint32 archive_equipment_id_list = 3; - * @param values the archiveEquipmentIdList to add + * repeated uint32 archive_avatar_id_list = 7; + * @param values the archiveAvatarIdList to add * @return this */ - public ArchiveData addAllArchiveEquipmentIdList(final int... values) { + public ArchiveData addAllArchiveAvatarIdList(final int... values) { bitField0_ |= 0x00000001; - archiveEquipmentIdList.addAll(values); + archiveAvatarIdList.addAll(values); return this; } /** - * repeated uint32 archive_avatar_id_list = 4; - * @return whether the archiveAvatarIdList field is set + * repeated uint32 archive_equipment_id_list = 10; + * @return whether the archiveEquipmentIdList field is set */ - public boolean hasArchiveAvatarIdList() { + public boolean hasArchiveEquipmentIdList() { return (bitField0_ & 0x00000002) != 0; } /** - * repeated uint32 archive_avatar_id_list = 4; + * repeated uint32 archive_equipment_id_list = 10; * @return this */ - public ArchiveData clearArchiveAvatarIdList() { + public ArchiveData clearArchiveEquipmentIdList() { bitField0_ &= ~0x00000002; - archiveAvatarIdList.clear(); + archiveEquipmentIdList.clear(); return this; } /** - * repeated uint32 archive_avatar_id_list = 4; + * repeated uint32 archive_equipment_id_list = 10; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableArchiveAvatarIdList()} if you want to modify it. + * Use {@link #getMutableArchiveEquipmentIdList()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedInt getArchiveAvatarIdList() { - return archiveAvatarIdList; + public RepeatedInt getArchiveEquipmentIdList() { + return archiveEquipmentIdList; } /** - * repeated uint32 archive_avatar_id_list = 4; + * repeated uint32 archive_equipment_id_list = 10; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -159,67 +159,67 @@ public RepeatedInt getArchiveAvatarIdList() { * * @return internal storage object for modifications */ - public RepeatedInt getMutableArchiveAvatarIdList() { + public RepeatedInt getMutableArchiveEquipmentIdList() { bitField0_ |= 0x00000002; - return archiveAvatarIdList; + return archiveEquipmentIdList; } /** - * repeated uint32 archive_avatar_id_list = 4; - * @param value the archiveAvatarIdList to add + * repeated uint32 archive_equipment_id_list = 10; + * @param value the archiveEquipmentIdList to add * @return this */ - public ArchiveData addArchiveAvatarIdList(final int value) { + public ArchiveData addArchiveEquipmentIdList(final int value) { bitField0_ |= 0x00000002; - archiveAvatarIdList.add(value); + archiveEquipmentIdList.add(value); return this; } /** - * repeated uint32 archive_avatar_id_list = 4; - * @param values the archiveAvatarIdList to add + * repeated uint32 archive_equipment_id_list = 10; + * @param values the archiveEquipmentIdList to add * @return this */ - public ArchiveData addAllArchiveAvatarIdList(final int... values) { + public ArchiveData addAllArchiveEquipmentIdList(final int... values) { bitField0_ |= 0x00000002; - archiveAvatarIdList.addAll(values); + archiveEquipmentIdList.addAll(values); return this; } /** - * repeated .MonsterArchive archive_monster_id_list = 7; - * @return whether the archiveMonsterIdList field is set + * repeated .RelicArchive relic_list = 3; + * @return whether the relicList field is set */ - public boolean hasArchiveMonsterIdList() { + public boolean hasRelicList() { return (bitField0_ & 0x00000004) != 0; } /** - * repeated .MonsterArchive archive_monster_id_list = 7; + * repeated .RelicArchive relic_list = 3; * @return this */ - public ArchiveData clearArchiveMonsterIdList() { + public ArchiveData clearRelicList() { bitField0_ &= ~0x00000004; - archiveMonsterIdList.clear(); + relicList.clear(); return this; } /** - * repeated .MonsterArchive archive_monster_id_list = 7; + * repeated .RelicArchive relic_list = 3; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableArchiveMonsterIdList()} if you want to modify it. + * Use {@link #getMutableRelicList()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedMessage getArchiveMonsterIdList() { - return archiveMonsterIdList; + public RepeatedMessage getRelicList() { + return relicList; } /** - * repeated .MonsterArchive archive_monster_id_list = 7; + * repeated .RelicArchive relic_list = 3; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -227,70 +227,67 @@ public RepeatedMessage getArchiveMonste * * @return internal storage object for modifications */ - public RepeatedMessage getMutableArchiveMonsterIdList( - ) { + public RepeatedMessage getMutableRelicList() { bitField0_ |= 0x00000004; - return archiveMonsterIdList; + return relicList; } /** - * repeated .MonsterArchive archive_monster_id_list = 7; - * @param value the archiveMonsterIdList to add + * repeated .RelicArchive relic_list = 3; + * @param value the relicList to add * @return this */ - public ArchiveData addArchiveMonsterIdList( - final MonsterArchiveOuterClass.MonsterArchive value) { + public ArchiveData addRelicList(final RelicArchiveOuterClass.RelicArchive value) { bitField0_ |= 0x00000004; - archiveMonsterIdList.add(value); + relicList.add(value); return this; } /** - * repeated .MonsterArchive archive_monster_id_list = 7; - * @param values the archiveMonsterIdList to add + * repeated .RelicArchive relic_list = 3; + * @param values the relicList to add * @return this */ - public ArchiveData addAllArchiveMonsterIdList( - final MonsterArchiveOuterClass.MonsterArchive... values) { + public ArchiveData addAllRelicList(final RelicArchiveOuterClass.RelicArchive... values) { bitField0_ |= 0x00000004; - archiveMonsterIdList.addAll(values); + relicList.addAll(values); return this; } /** - * repeated .RelicArchive archive_relic_list = 11; - * @return whether the archiveRelicList field is set + * repeated .MonsterArchive archive_monster_id_list = 14; + * @return whether the archiveMonsterIdList field is set */ - public boolean hasArchiveRelicList() { + public boolean hasArchiveMonsterIdList() { return (bitField0_ & 0x00000008) != 0; } /** - * repeated .RelicArchive archive_relic_list = 11; + * repeated .MonsterArchive archive_monster_id_list = 14; * @return this */ - public ArchiveData clearArchiveRelicList() { + public ArchiveData clearArchiveMonsterIdList() { bitField0_ &= ~0x00000008; - archiveRelicList.clear(); + archiveMonsterIdList.clear(); return this; } /** - * repeated .RelicArchive archive_relic_list = 11; + * repeated .MonsterArchive archive_monster_id_list = 14; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableArchiveRelicList()} if you want to modify it. + * Use {@link #getMutableArchiveMonsterIdList()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedMessage getArchiveRelicList() { - return archiveRelicList; + public RepeatedMessage getArchiveMonsterIdList() { + return archiveMonsterIdList; } /** - * repeated .RelicArchive archive_relic_list = 11; + * repeated .MonsterArchive archive_monster_id_list = 14; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -298,30 +295,33 @@ public RepeatedMessage getArchiveRelicList( * * @return internal storage object for modifications */ - public RepeatedMessage getMutableArchiveRelicList() { + public RepeatedMessage getMutableArchiveMonsterIdList( + ) { bitField0_ |= 0x00000008; - return archiveRelicList; + return archiveMonsterIdList; } /** - * repeated .RelicArchive archive_relic_list = 11; - * @param value the archiveRelicList to add + * repeated .MonsterArchive archive_monster_id_list = 14; + * @param value the archiveMonsterIdList to add * @return this */ - public ArchiveData addArchiveRelicList(final RelicArchiveOuterClass.RelicArchive value) { + public ArchiveData addArchiveMonsterIdList( + final MonsterArchiveOuterClass.MonsterArchive value) { bitField0_ |= 0x00000008; - archiveRelicList.add(value); + archiveMonsterIdList.add(value); return this; } /** - * repeated .RelicArchive archive_relic_list = 11; - * @param values the archiveRelicList to add + * repeated .MonsterArchive archive_monster_id_list = 14; + * @param values the archiveMonsterIdList to add * @return this */ - public ArchiveData addAllArchiveRelicList(final RelicArchiveOuterClass.RelicArchive... values) { + public ArchiveData addAllArchiveMonsterIdList( + final MonsterArchiveOuterClass.MonsterArchive... values) { bitField0_ |= 0x00000008; - archiveRelicList.addAll(values); + archiveMonsterIdList.addAll(values); return this; } @@ -330,10 +330,10 @@ public ArchiveData copyFrom(final ArchiveData other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - archiveEquipmentIdList.copyFrom(other.archiveEquipmentIdList); archiveAvatarIdList.copyFrom(other.archiveAvatarIdList); + archiveEquipmentIdList.copyFrom(other.archiveEquipmentIdList); + relicList.copyFrom(other.relicList); archiveMonsterIdList.copyFrom(other.archiveMonsterIdList); - archiveRelicList.copyFrom(other.archiveRelicList); } return this; } @@ -344,18 +344,18 @@ public ArchiveData mergeFrom(final ArchiveData other) { return this; } cachedSize = -1; + if (other.hasArchiveAvatarIdList()) { + getMutableArchiveAvatarIdList().addAll(other.archiveAvatarIdList); + } if (other.hasArchiveEquipmentIdList()) { getMutableArchiveEquipmentIdList().addAll(other.archiveEquipmentIdList); } - if (other.hasArchiveAvatarIdList()) { - getMutableArchiveAvatarIdList().addAll(other.archiveAvatarIdList); + if (other.hasRelicList()) { + getMutableRelicList().addAll(other.relicList); } if (other.hasArchiveMonsterIdList()) { getMutableArchiveMonsterIdList().addAll(other.archiveMonsterIdList); } - if (other.hasArchiveRelicList()) { - getMutableArchiveRelicList().addAll(other.archiveRelicList); - } return this; } @@ -366,10 +366,10 @@ public ArchiveData clear() { } cachedSize = -1; bitField0_ = 0; - archiveEquipmentIdList.clear(); archiveAvatarIdList.clear(); + archiveEquipmentIdList.clear(); + relicList.clear(); archiveMonsterIdList.clear(); - archiveRelicList.clear(); return this; } @@ -380,10 +380,10 @@ public ArchiveData clearQuick() { } cachedSize = -1; bitField0_ = 0; - archiveEquipmentIdList.clear(); archiveAvatarIdList.clear(); + archiveEquipmentIdList.clear(); + relicList.clearQuick(); archiveMonsterIdList.clearQuick(); - archiveRelicList.clearQuick(); return this; } @@ -397,36 +397,36 @@ public boolean equals(Object o) { } ArchiveData other = (ArchiveData) o; return bitField0_ == other.bitField0_ - && (!hasArchiveEquipmentIdList() || archiveEquipmentIdList.equals(other.archiveEquipmentIdList)) && (!hasArchiveAvatarIdList() || archiveAvatarIdList.equals(other.archiveAvatarIdList)) - && (!hasArchiveMonsterIdList() || archiveMonsterIdList.equals(other.archiveMonsterIdList)) - && (!hasArchiveRelicList() || archiveRelicList.equals(other.archiveRelicList)); + && (!hasArchiveEquipmentIdList() || archiveEquipmentIdList.equals(other.archiveEquipmentIdList)) + && (!hasRelicList() || relicList.equals(other.relicList)) + && (!hasArchiveMonsterIdList() || archiveMonsterIdList.equals(other.archiveMonsterIdList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - for (int i = 0; i < archiveEquipmentIdList.length(); i++) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(archiveEquipmentIdList.array()[i]); + for (int i = 0; i < archiveAvatarIdList.length(); i++) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(archiveAvatarIdList.array()[i]); } } if ((bitField0_ & 0x00000002) != 0) { - for (int i = 0; i < archiveAvatarIdList.length(); i++) { - output.writeRawByte((byte) 32); - output.writeUInt32NoTag(archiveAvatarIdList.array()[i]); + for (int i = 0; i < archiveEquipmentIdList.length(); i++) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(archiveEquipmentIdList.array()[i]); } } if ((bitField0_ & 0x00000004) != 0) { - for (int i = 0; i < archiveMonsterIdList.length(); i++) { - output.writeRawByte((byte) 58); - output.writeMessageNoTag(archiveMonsterIdList.get(i)); + for (int i = 0; i < relicList.length(); i++) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(relicList.get(i)); } } if ((bitField0_ & 0x00000008) != 0) { - for (int i = 0; i < archiveRelicList.length(); i++) { - output.writeRawByte((byte) 90); - output.writeMessageNoTag(archiveRelicList.get(i)); + for (int i = 0; i < archiveMonsterIdList.length(); i++) { + output.writeRawByte((byte) 114); + output.writeMessageNoTag(archiveMonsterIdList.get(i)); } } } @@ -435,16 +435,16 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += (1 * archiveEquipmentIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(archiveEquipmentIdList); + size += (1 * archiveAvatarIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(archiveAvatarIdList); } if ((bitField0_ & 0x00000002) != 0) { - size += (1 * archiveAvatarIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(archiveAvatarIdList); + size += (1 * archiveEquipmentIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(archiveEquipmentIdList); } if ((bitField0_ & 0x00000004) != 0) { - size += (1 * archiveMonsterIdList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(archiveMonsterIdList); + size += (1 * relicList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(relicList); } if ((bitField0_ & 0x00000008) != 0) { - size += (1 * archiveRelicList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(archiveRelicList); + size += (1 * archiveMonsterIdList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(archiveMonsterIdList); } return size; } @@ -456,35 +456,35 @@ public ArchiveData mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 26: { - // archiveEquipmentIdList [packed=true] - input.readPackedUInt32(archiveEquipmentIdList, tag); + case 58: { + // archiveAvatarIdList [packed=true] + input.readPackedUInt32(archiveAvatarIdList, tag); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 34) { + if (tag != 82) { break; } } - case 34: { - // archiveAvatarIdList [packed=true] - input.readPackedUInt32(archiveAvatarIdList, tag); + case 82: { + // archiveEquipmentIdList [packed=true] + input.readPackedUInt32(archiveEquipmentIdList, tag); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 58) { + if (tag != 26) { break; } } - case 58: { - // archiveMonsterIdList - tag = input.readRepeatedMessage(archiveMonsterIdList, tag); + case 26: { + // relicList + tag = input.readRepeatedMessage(relicList, tag); bitField0_ |= 0x00000004; - if (tag != 90) { + if (tag != 114) { break; } } - case 90: { - // archiveRelicList - tag = input.readRepeatedMessage(archiveRelicList, tag); + case 114: { + // archiveMonsterIdList + tag = input.readRepeatedMessage(archiveMonsterIdList, tag); bitField0_ |= 0x00000008; if (tag != 0) { break; @@ -500,15 +500,15 @@ public ArchiveData mergeFrom(final ProtoSource input) throws IOException { tag = input.readTag(); break; } - case 24: { - // archiveEquipmentIdList [packed=false] - tag = input.readRepeatedUInt32(archiveEquipmentIdList, tag); + case 56: { + // archiveAvatarIdList [packed=false] + tag = input.readRepeatedUInt32(archiveAvatarIdList, tag); bitField0_ |= 0x00000001; break; } - case 32: { - // archiveAvatarIdList [packed=false] - tag = input.readRepeatedUInt32(archiveAvatarIdList, tag); + case 80: { + // archiveEquipmentIdList [packed=false] + tag = input.readRepeatedUInt32(archiveEquipmentIdList, tag); bitField0_ |= 0x00000002; break; } @@ -520,16 +520,16 @@ public ArchiveData mergeFrom(final ProtoSource input) throws IOException { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeRepeatedUInt32(FieldNames.archiveEquipmentIdList, archiveEquipmentIdList); + output.writeRepeatedUInt32(FieldNames.archiveAvatarIdList, archiveAvatarIdList); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRepeatedUInt32(FieldNames.archiveAvatarIdList, archiveAvatarIdList); + output.writeRepeatedUInt32(FieldNames.archiveEquipmentIdList, archiveEquipmentIdList); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRepeatedMessage(FieldNames.archiveMonsterIdList, archiveMonsterIdList); + output.writeRepeatedMessage(FieldNames.relicList, relicList); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRepeatedMessage(FieldNames.archiveRelicList, archiveRelicList); + output.writeRepeatedMessage(FieldNames.archiveMonsterIdList, archiveMonsterIdList); } output.endObject(); } @@ -541,11 +541,11 @@ public ArchiveData mergeFrom(final JsonSource input) throws IOException { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1521227365: - case 967463252: { - if (input.isAtField(FieldNames.archiveEquipmentIdList)) { + case 500094196: + case 1198392697: { + if (input.isAtField(FieldNames.archiveAvatarIdList)) { if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(archiveEquipmentIdList); + input.readRepeatedUInt32(archiveAvatarIdList); bitField0_ |= 0x00000001; } } else { @@ -553,11 +553,11 @@ public ArchiveData mergeFrom(final JsonSource input) throws IOException { } break; } - case 500094196: - case 1198392697: { - if (input.isAtField(FieldNames.archiveAvatarIdList)) { + case 1521227365: + case 967463252: { + if (input.isAtField(FieldNames.archiveEquipmentIdList)) { if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(archiveAvatarIdList); + input.readRepeatedUInt32(archiveEquipmentIdList); bitField0_ |= 0x00000002; } } else { @@ -565,11 +565,11 @@ public ArchiveData mergeFrom(final JsonSource input) throws IOException { } break; } - case 912174897: - case 1817787488: { - if (input.isAtField(FieldNames.archiveMonsterIdList)) { + case 204814001: + case 2071893482: { + if (input.isAtField(FieldNames.relicList)) { if (!input.trySkipNullValue()) { - input.readRepeatedMessage(archiveMonsterIdList); + input.readRepeatedMessage(relicList); bitField0_ |= 0x00000004; } } else { @@ -577,11 +577,11 @@ public ArchiveData mergeFrom(final JsonSource input) throws IOException { } break; } - case 1742876687: - case 2101828999: { - if (input.isAtField(FieldNames.archiveRelicList)) { + case 912174897: + case 1817787488: { + if (input.isAtField(FieldNames.archiveMonsterIdList)) { if (!input.trySkipNullValue()) { - input.readRepeatedMessage(archiveRelicList); + input.readRepeatedMessage(archiveMonsterIdList); bitField0_ |= 0x00000008; } } else { @@ -641,13 +641,13 @@ public ArchiveData create() { * Contains name constants used for serializing JSON */ static class FieldNames { + static final FieldName archiveAvatarIdList = FieldName.forField("archiveAvatarIdList", "archive_avatar_id_list"); + static final FieldName archiveEquipmentIdList = FieldName.forField("archiveEquipmentIdList", "archive_equipment_id_list"); - static final FieldName archiveAvatarIdList = FieldName.forField("archiveAvatarIdList", "archive_avatar_id_list"); + static final FieldName relicList = FieldName.forField("relicList", "relic_list"); static final FieldName archiveMonsterIdList = FieldName.forField("archiveMonsterIdList", "archive_monster_id_list"); - - static final FieldName archiveRelicList = FieldName.forField("archiveRelicList", "archive_relic_list"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/AvatarExpUpCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/AvatarExpUpCsReqOuterClass.java index e8fe02406..0ae25b900 100644 --- a/src/generated/main/emu/lunarcore/proto/AvatarExpUpCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/AvatarExpUpCsReqOuterClass.java @@ -19,12 +19,12 @@ public static final class AvatarExpUpCsReq extends ProtoMessageoptional uint32 base_avatar_id = 1; + * optional uint32 base_avatar_id = 8; */ private int baseAvatarId; /** - * optional .ItemCostList item_cost_list = 2; + * optional .ItemCostList item_cost_list = 7; */ private final ItemCostListOuterClass.ItemCostList itemCostList = ItemCostListOuterClass.ItemCostList.newInstance(); @@ -39,7 +39,7 @@ public static AvatarExpUpCsReq newInstance() { } /** - * optional uint32 base_avatar_id = 1; + * optional uint32 base_avatar_id = 8; * @return whether the baseAvatarId field is set */ public boolean hasBaseAvatarId() { @@ -47,7 +47,7 @@ public boolean hasBaseAvatarId() { } /** - * optional uint32 base_avatar_id = 1; + * optional uint32 base_avatar_id = 8; * @return this */ public AvatarExpUpCsReq clearBaseAvatarId() { @@ -57,7 +57,7 @@ public AvatarExpUpCsReq clearBaseAvatarId() { } /** - * optional uint32 base_avatar_id = 1; + * optional uint32 base_avatar_id = 8; * @return the baseAvatarId */ public int getBaseAvatarId() { @@ -65,7 +65,7 @@ public int getBaseAvatarId() { } /** - * optional uint32 base_avatar_id = 1; + * optional uint32 base_avatar_id = 8; * @param value the baseAvatarId to set * @return this */ @@ -76,7 +76,7 @@ public AvatarExpUpCsReq setBaseAvatarId(final int value) { } /** - * optional .ItemCostList item_cost_list = 2; + * optional .ItemCostList item_cost_list = 7; * @return whether the itemCostList field is set */ public boolean hasItemCostList() { @@ -84,7 +84,7 @@ public boolean hasItemCostList() { } /** - * optional .ItemCostList item_cost_list = 2; + * optional .ItemCostList item_cost_list = 7; * @return this */ public AvatarExpUpCsReq clearItemCostList() { @@ -94,7 +94,7 @@ public AvatarExpUpCsReq clearItemCostList() { } /** - * optional .ItemCostList item_cost_list = 2; + * optional .ItemCostList item_cost_list = 7; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -108,7 +108,7 @@ public ItemCostListOuterClass.ItemCostList getItemCostList() { } /** - * optional .ItemCostList item_cost_list = 2; + * optional .ItemCostList item_cost_list = 7; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -122,7 +122,7 @@ public ItemCostListOuterClass.ItemCostList getMutableItemCostList() { } /** - * optional .ItemCostList item_cost_list = 2; + * optional .ItemCostList item_cost_list = 7; * @param value the itemCostList to set * @return this */ @@ -198,11 +198,11 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); + output.writeRawByte((byte) 64); output.writeUInt32NoTag(baseAvatarId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 18); + output.writeRawByte((byte) 58); output.writeMessageNoTag(itemCostList); } } @@ -226,16 +226,16 @@ public AvatarExpUpCsReq mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 8: { + case 64: { // baseAvatarId baseAvatarId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 18) { + if (tag != 58) { break; } } - case 18: { + case 58: { // itemCostList input.readMessage(itemCostList); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/AvatarExpUpScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/AvatarExpUpScRspOuterClass.java index a9113e6bf..a1ce56759 100644 --- a/src/generated/main/emu/lunarcore/proto/AvatarExpUpScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/AvatarExpUpScRspOuterClass.java @@ -20,12 +20,12 @@ public static final class AvatarExpUpScRsp extends ProtoMessageoptional uint32 retcode = 6; + * optional uint32 retcode = 12; */ private int retcode; /** - * repeated .PileItem return_item_list = 1; + * repeated .PileItem return_item_list = 4; */ private final RepeatedMessage returnItemList = RepeatedMessage.newEmptyInstance(PileItemOuterClass.PileItem.getFactory()); @@ -40,7 +40,7 @@ public static AvatarExpUpScRsp newInstance() { } /** - * optional uint32 retcode = 6; + * optional uint32 retcode = 12; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -48,7 +48,7 @@ public boolean hasRetcode() { } /** - * optional uint32 retcode = 6; + * optional uint32 retcode = 12; * @return this */ public AvatarExpUpScRsp clearRetcode() { @@ -58,7 +58,7 @@ public AvatarExpUpScRsp clearRetcode() { } /** - * optional uint32 retcode = 6; + * optional uint32 retcode = 12; * @return the retcode */ public int getRetcode() { @@ -66,7 +66,7 @@ public int getRetcode() { } /** - * optional uint32 retcode = 6; + * optional uint32 retcode = 12; * @param value the retcode to set * @return this */ @@ -77,7 +77,7 @@ public AvatarExpUpScRsp setRetcode(final int value) { } /** - * repeated .PileItem return_item_list = 1; + * repeated .PileItem return_item_list = 4; * @return whether the returnItemList field is set */ public boolean hasReturnItemList() { @@ -85,7 +85,7 @@ public boolean hasReturnItemList() { } /** - * repeated .PileItem return_item_list = 1; + * repeated .PileItem return_item_list = 4; * @return this */ public AvatarExpUpScRsp clearReturnItemList() { @@ -95,7 +95,7 @@ public AvatarExpUpScRsp clearReturnItemList() { } /** - * repeated .PileItem return_item_list = 1; + * repeated .PileItem return_item_list = 4; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -109,7 +109,7 @@ public RepeatedMessage getReturnItemList() { } /** - * repeated .PileItem return_item_list = 1; + * repeated .PileItem return_item_list = 4; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -123,7 +123,7 @@ public RepeatedMessage getMutableReturnItemList() { } /** - * repeated .PileItem return_item_list = 1; + * repeated .PileItem return_item_list = 4; * @param value the returnItemList to add * @return this */ @@ -134,7 +134,7 @@ public AvatarExpUpScRsp addReturnItemList(final PileItemOuterClass.PileItem valu } /** - * repeated .PileItem return_item_list = 1; + * repeated .PileItem return_item_list = 4; * @param values the returnItemList to add * @return this */ @@ -210,12 +210,12 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 96); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < returnItemList.length(); i++) { - output.writeRawByte((byte) 10); + output.writeRawByte((byte) 34); output.writeMessageNoTag(returnItemList.get(i)); } } @@ -240,16 +240,16 @@ public AvatarExpUpScRsp mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 48: { + case 96: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 10) { + if (tag != 34) { break; } } - case 10: { + case 34: { // returnItemList tag = input.readRepeatedMessage(returnItemList, tag); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/AvatarOuterClass.java b/src/generated/main/emu/lunarcore/proto/AvatarOuterClass.java index 75f242647..e1ab2dd79 100644 --- a/src/generated/main/emu/lunarcore/proto/AvatarOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/AvatarOuterClass.java @@ -26,49 +26,54 @@ public static final class Avatar extends ProtoMessage implements Cloneab private long firstMetTimestamp; /** - * optional uint32 equipment_unique_id = 1; + * optional uint32 dressed_skin_id = 1; */ - private int equipmentUniqueId; + private int dressedSkinId; /** - * optional uint32 base_avatar_id = 2; + * optional uint32 promotion = 3; */ - private int baseAvatarId; + private int promotion; /** - * optional uint32 promotion = 5; + * optional uint32 base_avatar_id = 5; */ - private int promotion; + private int baseAvatarId; /** - * optional uint32 rank = 6; + * optional uint32 rank = 7; */ private int rank; /** - * optional uint32 level = 7; + * optional uint32 level = 9; */ private int level; /** - * optional uint32 exp = 14; + * optional uint32 exp = 11; */ private int exp; + /** + * optional uint32 equipment_unique_id = 12; + */ + private int equipmentUniqueId; + /** * repeated uint32 taken_rewards = 13; */ private final RepeatedInt takenRewards = RepeatedInt.newEmptyInstance(); /** - * repeated .EquipRelic equip_relic_list = 8; + * repeated .AvatarSkillTree skilltree_list = 4; */ - private final RepeatedMessage equipRelicList = RepeatedMessage.newEmptyInstance(EquipRelicOuterClass.EquipRelic.getFactory()); + private final RepeatedMessage skilltreeList = RepeatedMessage.newEmptyInstance(AvatarSkillTreeOuterClass.AvatarSkillTree.getFactory()); /** - * repeated .AvatarSkillTree skilltree_list = 12; + * repeated .EquipRelic equip_relic_list = 8; */ - private final RepeatedMessage skilltreeList = RepeatedMessage.newEmptyInstance(AvatarSkillTreeOuterClass.AvatarSkillTree.getFactory()); + private final RepeatedMessage equipRelicList = RepeatedMessage.newEmptyInstance(EquipRelicOuterClass.EquipRelic.getFactory()); private Avatar() { } @@ -118,118 +123,118 @@ public Avatar setFirstMetTimestamp(final long value) { } /** - * optional uint32 equipment_unique_id = 1; - * @return whether the equipmentUniqueId field is set + * optional uint32 dressed_skin_id = 1; + * @return whether the dressedSkinId field is set */ - public boolean hasEquipmentUniqueId() { + public boolean hasDressedSkinId() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 equipment_unique_id = 1; + * optional uint32 dressed_skin_id = 1; * @return this */ - public Avatar clearEquipmentUniqueId() { + public Avatar clearDressedSkinId() { bitField0_ &= ~0x00000002; - equipmentUniqueId = 0; + dressedSkinId = 0; return this; } /** - * optional uint32 equipment_unique_id = 1; - * @return the equipmentUniqueId + * optional uint32 dressed_skin_id = 1; + * @return the dressedSkinId */ - public int getEquipmentUniqueId() { - return equipmentUniqueId; + public int getDressedSkinId() { + return dressedSkinId; } /** - * optional uint32 equipment_unique_id = 1; - * @param value the equipmentUniqueId to set + * optional uint32 dressed_skin_id = 1; + * @param value the dressedSkinId to set * @return this */ - public Avatar setEquipmentUniqueId(final int value) { + public Avatar setDressedSkinId(final int value) { bitField0_ |= 0x00000002; - equipmentUniqueId = value; + dressedSkinId = value; return this; } /** - * optional uint32 base_avatar_id = 2; - * @return whether the baseAvatarId field is set + * optional uint32 promotion = 3; + * @return whether the promotion field is set */ - public boolean hasBaseAvatarId() { + public boolean hasPromotion() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 base_avatar_id = 2; + * optional uint32 promotion = 3; * @return this */ - public Avatar clearBaseAvatarId() { + public Avatar clearPromotion() { bitField0_ &= ~0x00000004; - baseAvatarId = 0; + promotion = 0; return this; } /** - * optional uint32 base_avatar_id = 2; - * @return the baseAvatarId + * optional uint32 promotion = 3; + * @return the promotion */ - public int getBaseAvatarId() { - return baseAvatarId; + public int getPromotion() { + return promotion; } /** - * optional uint32 base_avatar_id = 2; - * @param value the baseAvatarId to set + * optional uint32 promotion = 3; + * @param value the promotion to set * @return this */ - public Avatar setBaseAvatarId(final int value) { + public Avatar setPromotion(final int value) { bitField0_ |= 0x00000004; - baseAvatarId = value; + promotion = value; return this; } /** - * optional uint32 promotion = 5; - * @return whether the promotion field is set + * optional uint32 base_avatar_id = 5; + * @return whether the baseAvatarId field is set */ - public boolean hasPromotion() { + public boolean hasBaseAvatarId() { return (bitField0_ & 0x00000008) != 0; } /** - * optional uint32 promotion = 5; + * optional uint32 base_avatar_id = 5; * @return this */ - public Avatar clearPromotion() { + public Avatar clearBaseAvatarId() { bitField0_ &= ~0x00000008; - promotion = 0; + baseAvatarId = 0; return this; } /** - * optional uint32 promotion = 5; - * @return the promotion + * optional uint32 base_avatar_id = 5; + * @return the baseAvatarId */ - public int getPromotion() { - return promotion; + public int getBaseAvatarId() { + return baseAvatarId; } /** - * optional uint32 promotion = 5; - * @param value the promotion to set + * optional uint32 base_avatar_id = 5; + * @param value the baseAvatarId to set * @return this */ - public Avatar setPromotion(final int value) { + public Avatar setBaseAvatarId(final int value) { bitField0_ |= 0x00000008; - promotion = value; + baseAvatarId = value; return this; } /** - * optional uint32 rank = 6; + * optional uint32 rank = 7; * @return whether the rank field is set */ public boolean hasRank() { @@ -237,7 +242,7 @@ public boolean hasRank() { } /** - * optional uint32 rank = 6; + * optional uint32 rank = 7; * @return this */ public Avatar clearRank() { @@ -247,7 +252,7 @@ public Avatar clearRank() { } /** - * optional uint32 rank = 6; + * optional uint32 rank = 7; * @return the rank */ public int getRank() { @@ -255,7 +260,7 @@ public int getRank() { } /** - * optional uint32 rank = 6; + * optional uint32 rank = 7; * @param value the rank to set * @return this */ @@ -266,7 +271,7 @@ public Avatar setRank(final int value) { } /** - * optional uint32 level = 7; + * optional uint32 level = 9; * @return whether the level field is set */ public boolean hasLevel() { @@ -274,7 +279,7 @@ public boolean hasLevel() { } /** - * optional uint32 level = 7; + * optional uint32 level = 9; * @return this */ public Avatar clearLevel() { @@ -284,7 +289,7 @@ public Avatar clearLevel() { } /** - * optional uint32 level = 7; + * optional uint32 level = 9; * @return the level */ public int getLevel() { @@ -292,7 +297,7 @@ public int getLevel() { } /** - * optional uint32 level = 7; + * optional uint32 level = 9; * @param value the level to set * @return this */ @@ -303,7 +308,7 @@ public Avatar setLevel(final int value) { } /** - * optional uint32 exp = 14; + * optional uint32 exp = 11; * @return whether the exp field is set */ public boolean hasExp() { @@ -311,7 +316,7 @@ public boolean hasExp() { } /** - * optional uint32 exp = 14; + * optional uint32 exp = 11; * @return this */ public Avatar clearExp() { @@ -321,7 +326,7 @@ public Avatar clearExp() { } /** - * optional uint32 exp = 14; + * optional uint32 exp = 11; * @return the exp */ public int getExp() { @@ -329,7 +334,7 @@ public int getExp() { } /** - * optional uint32 exp = 14; + * optional uint32 exp = 11; * @param value the exp to set * @return this */ @@ -339,12 +344,49 @@ public Avatar setExp(final int value) { return this; } + /** + * optional uint32 equipment_unique_id = 12; + * @return whether the equipmentUniqueId field is set + */ + public boolean hasEquipmentUniqueId() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * optional uint32 equipment_unique_id = 12; + * @return this + */ + public Avatar clearEquipmentUniqueId() { + bitField0_ &= ~0x00000080; + equipmentUniqueId = 0; + return this; + } + + /** + * optional uint32 equipment_unique_id = 12; + * @return the equipmentUniqueId + */ + public int getEquipmentUniqueId() { + return equipmentUniqueId; + } + + /** + * optional uint32 equipment_unique_id = 12; + * @param value the equipmentUniqueId to set + * @return this + */ + public Avatar setEquipmentUniqueId(final int value) { + bitField0_ |= 0x00000080; + equipmentUniqueId = value; + return this; + } + /** * repeated uint32 taken_rewards = 13; * @return whether the takenRewards field is set */ public boolean hasTakenRewards() { - return (bitField0_ & 0x00000080) != 0; + return (bitField0_ & 0x00000100) != 0; } /** @@ -352,7 +394,7 @@ public boolean hasTakenRewards() { * @return this */ public Avatar clearTakenRewards() { - bitField0_ &= ~0x00000080; + bitField0_ &= ~0x00000100; takenRewards.clear(); return this; } @@ -381,7 +423,7 @@ public RepeatedInt getTakenRewards() { * @return internal storage object for modifications */ public RepeatedInt getMutableTakenRewards() { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; return takenRewards; } @@ -391,7 +433,7 @@ public RepeatedInt getMutableTakenRewards() { * @return this */ public Avatar addTakenRewards(final int value) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; takenRewards.add(value); return this; } @@ -402,45 +444,45 @@ public Avatar addTakenRewards(final int value) { * @return this */ public Avatar addAllTakenRewards(final int... values) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; takenRewards.addAll(values); return this; } /** - * repeated .EquipRelic equip_relic_list = 8; - * @return whether the equipRelicList field is set + * repeated .AvatarSkillTree skilltree_list = 4; + * @return whether the skilltreeList field is set */ - public boolean hasEquipRelicList() { - return (bitField0_ & 0x00000100) != 0; + public boolean hasSkilltreeList() { + return (bitField0_ & 0x00000200) != 0; } /** - * repeated .EquipRelic equip_relic_list = 8; + * repeated .AvatarSkillTree skilltree_list = 4; * @return this */ - public Avatar clearEquipRelicList() { - bitField0_ &= ~0x00000100; - equipRelicList.clear(); + public Avatar clearSkilltreeList() { + bitField0_ &= ~0x00000200; + skilltreeList.clear(); return this; } /** - * repeated .EquipRelic equip_relic_list = 8; + * repeated .AvatarSkillTree skilltree_list = 4; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableEquipRelicList()} if you want to modify it. + * Use {@link #getMutableSkilltreeList()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedMessage getEquipRelicList() { - return equipRelicList; + public RepeatedMessage getSkilltreeList() { + return skilltreeList; } /** - * repeated .EquipRelic equip_relic_list = 8; + * repeated .AvatarSkillTree skilltree_list = 4; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -448,67 +490,67 @@ public RepeatedMessage getEquipRelicList() { * * @return internal storage object for modifications */ - public RepeatedMessage getMutableEquipRelicList() { - bitField0_ |= 0x00000100; - return equipRelicList; + public RepeatedMessage getMutableSkilltreeList() { + bitField0_ |= 0x00000200; + return skilltreeList; } /** - * repeated .EquipRelic equip_relic_list = 8; - * @param value the equipRelicList to add + * repeated .AvatarSkillTree skilltree_list = 4; + * @param value the skilltreeList to add * @return this */ - public Avatar addEquipRelicList(final EquipRelicOuterClass.EquipRelic value) { - bitField0_ |= 0x00000100; - equipRelicList.add(value); + public Avatar addSkilltreeList(final AvatarSkillTreeOuterClass.AvatarSkillTree value) { + bitField0_ |= 0x00000200; + skilltreeList.add(value); return this; } /** - * repeated .EquipRelic equip_relic_list = 8; - * @param values the equipRelicList to add + * repeated .AvatarSkillTree skilltree_list = 4; + * @param values the skilltreeList to add * @return this */ - public Avatar addAllEquipRelicList(final EquipRelicOuterClass.EquipRelic... values) { - bitField0_ |= 0x00000100; - equipRelicList.addAll(values); + public Avatar addAllSkilltreeList(final AvatarSkillTreeOuterClass.AvatarSkillTree... values) { + bitField0_ |= 0x00000200; + skilltreeList.addAll(values); return this; } /** - * repeated .AvatarSkillTree skilltree_list = 12; - * @return whether the skilltreeList field is set + * repeated .EquipRelic equip_relic_list = 8; + * @return whether the equipRelicList field is set */ - public boolean hasSkilltreeList() { - return (bitField0_ & 0x00000200) != 0; + public boolean hasEquipRelicList() { + return (bitField0_ & 0x00000400) != 0; } /** - * repeated .AvatarSkillTree skilltree_list = 12; + * repeated .EquipRelic equip_relic_list = 8; * @return this */ - public Avatar clearSkilltreeList() { - bitField0_ &= ~0x00000200; - skilltreeList.clear(); + public Avatar clearEquipRelicList() { + bitField0_ &= ~0x00000400; + equipRelicList.clear(); return this; } /** - * repeated .AvatarSkillTree skilltree_list = 12; + * repeated .EquipRelic equip_relic_list = 8; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableSkilltreeList()} if you want to modify it. + * Use {@link #getMutableEquipRelicList()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedMessage getSkilltreeList() { - return skilltreeList; + public RepeatedMessage getEquipRelicList() { + return equipRelicList; } /** - * repeated .AvatarSkillTree skilltree_list = 12; + * repeated .EquipRelic equip_relic_list = 8; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -516,30 +558,30 @@ public RepeatedMessage getSkilltreeLi * * @return internal storage object for modifications */ - public RepeatedMessage getMutableSkilltreeList() { - bitField0_ |= 0x00000200; - return skilltreeList; + public RepeatedMessage getMutableEquipRelicList() { + bitField0_ |= 0x00000400; + return equipRelicList; } /** - * repeated .AvatarSkillTree skilltree_list = 12; - * @param value the skilltreeList to add + * repeated .EquipRelic equip_relic_list = 8; + * @param value the equipRelicList to add * @return this */ - public Avatar addSkilltreeList(final AvatarSkillTreeOuterClass.AvatarSkillTree value) { - bitField0_ |= 0x00000200; - skilltreeList.add(value); + public Avatar addEquipRelicList(final EquipRelicOuterClass.EquipRelic value) { + bitField0_ |= 0x00000400; + equipRelicList.add(value); return this; } /** - * repeated .AvatarSkillTree skilltree_list = 12; - * @param values the skilltreeList to add + * repeated .EquipRelic equip_relic_list = 8; + * @param values the equipRelicList to add * @return this */ - public Avatar addAllSkilltreeList(final AvatarSkillTreeOuterClass.AvatarSkillTree... values) { - bitField0_ |= 0x00000200; - skilltreeList.addAll(values); + public Avatar addAllEquipRelicList(final EquipRelicOuterClass.EquipRelic... values) { + bitField0_ |= 0x00000400; + equipRelicList.addAll(values); return this; } @@ -549,15 +591,16 @@ public Avatar copyFrom(final Avatar other) { if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; firstMetTimestamp = other.firstMetTimestamp; - equipmentUniqueId = other.equipmentUniqueId; - baseAvatarId = other.baseAvatarId; + dressedSkinId = other.dressedSkinId; promotion = other.promotion; + baseAvatarId = other.baseAvatarId; rank = other.rank; level = other.level; exp = other.exp; + equipmentUniqueId = other.equipmentUniqueId; takenRewards.copyFrom(other.takenRewards); - equipRelicList.copyFrom(other.equipRelicList); skilltreeList.copyFrom(other.skilltreeList); + equipRelicList.copyFrom(other.equipRelicList); } return this; } @@ -571,15 +614,15 @@ public Avatar mergeFrom(final Avatar other) { if (other.hasFirstMetTimestamp()) { setFirstMetTimestamp(other.firstMetTimestamp); } - if (other.hasEquipmentUniqueId()) { - setEquipmentUniqueId(other.equipmentUniqueId); - } - if (other.hasBaseAvatarId()) { - setBaseAvatarId(other.baseAvatarId); + if (other.hasDressedSkinId()) { + setDressedSkinId(other.dressedSkinId); } if (other.hasPromotion()) { setPromotion(other.promotion); } + if (other.hasBaseAvatarId()) { + setBaseAvatarId(other.baseAvatarId); + } if (other.hasRank()) { setRank(other.rank); } @@ -589,15 +632,18 @@ public Avatar mergeFrom(final Avatar other) { if (other.hasExp()) { setExp(other.exp); } + if (other.hasEquipmentUniqueId()) { + setEquipmentUniqueId(other.equipmentUniqueId); + } if (other.hasTakenRewards()) { getMutableTakenRewards().addAll(other.takenRewards); } - if (other.hasEquipRelicList()) { - getMutableEquipRelicList().addAll(other.equipRelicList); - } if (other.hasSkilltreeList()) { getMutableSkilltreeList().addAll(other.skilltreeList); } + if (other.hasEquipRelicList()) { + getMutableEquipRelicList().addAll(other.equipRelicList); + } return this; } @@ -609,15 +655,16 @@ public Avatar clear() { cachedSize = -1; bitField0_ = 0; firstMetTimestamp = 0L; - equipmentUniqueId = 0; - baseAvatarId = 0; + dressedSkinId = 0; promotion = 0; + baseAvatarId = 0; rank = 0; level = 0; exp = 0; + equipmentUniqueId = 0; takenRewards.clear(); - equipRelicList.clear(); skilltreeList.clear(); + equipRelicList.clear(); return this; } @@ -629,8 +676,8 @@ public Avatar clearQuick() { cachedSize = -1; bitField0_ = 0; takenRewards.clear(); - equipRelicList.clearQuick(); skilltreeList.clearQuick(); + equipRelicList.clearQuick(); return this; } @@ -645,15 +692,16 @@ public boolean equals(Object o) { Avatar other = (Avatar) o; return bitField0_ == other.bitField0_ && (!hasFirstMetTimestamp() || firstMetTimestamp == other.firstMetTimestamp) - && (!hasEquipmentUniqueId() || equipmentUniqueId == other.equipmentUniqueId) - && (!hasBaseAvatarId() || baseAvatarId == other.baseAvatarId) + && (!hasDressedSkinId() || dressedSkinId == other.dressedSkinId) && (!hasPromotion() || promotion == other.promotion) + && (!hasBaseAvatarId() || baseAvatarId == other.baseAvatarId) && (!hasRank() || rank == other.rank) && (!hasLevel() || level == other.level) && (!hasExp() || exp == other.exp) + && (!hasEquipmentUniqueId() || equipmentUniqueId == other.equipmentUniqueId) && (!hasTakenRewards() || takenRewards.equals(other.takenRewards)) - && (!hasEquipRelicList() || equipRelicList.equals(other.equipRelicList)) - && (!hasSkilltreeList() || skilltreeList.equals(other.skilltreeList)); + && (!hasSkilltreeList() || skilltreeList.equals(other.skilltreeList)) + && (!hasEquipRelicList() || equipRelicList.equals(other.equipRelicList)); } @Override @@ -664,46 +712,50 @@ public void writeTo(final ProtoSink output) throws IOException { } if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 8); - output.writeUInt32NoTag(equipmentUniqueId); + output.writeUInt32NoTag(dressedSkinId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(baseAvatarId); + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(promotion); } if ((bitField0_ & 0x00000008) != 0) { output.writeRawByte((byte) 40); - output.writeUInt32NoTag(promotion); + output.writeUInt32NoTag(baseAvatarId); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 56); output.writeUInt32NoTag(rank); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 72); output.writeUInt32NoTag(level); } if ((bitField0_ & 0x00000040) != 0) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 88); output.writeUInt32NoTag(exp); } if ((bitField0_ & 0x00000080) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(equipmentUniqueId); + } + if ((bitField0_ & 0x00000100) != 0) { for (int i = 0; i < takenRewards.length(); i++) { output.writeRawByte((byte) 104); output.writeUInt32NoTag(takenRewards.array()[i]); } } - if ((bitField0_ & 0x00000100) != 0) { - for (int i = 0; i < equipRelicList.length(); i++) { - output.writeRawByte((byte) 66); - output.writeMessageNoTag(equipRelicList.get(i)); - } - } if ((bitField0_ & 0x00000200) != 0) { for (int i = 0; i < skilltreeList.length(); i++) { - output.writeRawByte((byte) 98); + output.writeRawByte((byte) 34); output.writeMessageNoTag(skilltreeList.get(i)); } } + if ((bitField0_ & 0x00000400) != 0) { + for (int i = 0; i < equipRelicList.length(); i++) { + output.writeRawByte((byte) 66); + output.writeMessageNoTag(equipRelicList.get(i)); + } + } } @Override @@ -713,13 +765,13 @@ protected int computeSerializedSize() { size += 1 + ProtoSink.computeUInt64SizeNoTag(firstMetTimestamp); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(equipmentUniqueId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(dressedSkinId); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(promotion); } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(promotion); + size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); } if ((bitField0_ & 0x00000010) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(rank); @@ -731,14 +783,17 @@ protected int computeSerializedSize() { size += 1 + ProtoSink.computeUInt32SizeNoTag(exp); } if ((bitField0_ & 0x00000080) != 0) { - size += (1 * takenRewards.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(takenRewards); + size += 1 + ProtoSink.computeUInt32SizeNoTag(equipmentUniqueId); } if ((bitField0_ & 0x00000100) != 0) { - size += (1 * equipRelicList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(equipRelicList); + size += (1 * takenRewards.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(takenRewards); } if ((bitField0_ & 0x00000200) != 0) { size += (1 * skilltreeList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(skilltreeList); } + if ((bitField0_ & 0x00000400) != 0) { + size += (1 * equipRelicList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(equipRelicList); + } return size; } @@ -759,17 +814,17 @@ public Avatar mergeFrom(final ProtoSource input) throws IOException { } } case 8: { - // equipmentUniqueId - equipmentUniqueId = input.readUInt32(); + // dressedSkinId + dressedSkinId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 16) { + if (tag != 24) { break; } } - case 16: { - // baseAvatarId - baseAvatarId = input.readUInt32(); + case 24: { + // promotion + promotion = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 40) { @@ -777,62 +832,71 @@ public Avatar mergeFrom(final ProtoSource input) throws IOException { } } case 40: { - // promotion - promotion = input.readUInt32(); + // baseAvatarId + baseAvatarId = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 48) { + if (tag != 56) { break; } } - case 48: { + case 56: { // rank rank = input.readUInt32(); bitField0_ |= 0x00000010; tag = input.readTag(); - if (tag != 56) { + if (tag != 72) { break; } } - case 56: { + case 72: { // level level = input.readUInt32(); bitField0_ |= 0x00000020; tag = input.readTag(); - if (tag != 112) { + if (tag != 88) { break; } } - case 112: { + case 88: { // exp exp = input.readUInt32(); bitField0_ |= 0x00000040; tag = input.readTag(); - if (tag != 106) { + if (tag != 96) { break; } } - case 106: { - // takenRewards [packed=true] - input.readPackedUInt32(takenRewards, tag); + case 96: { + // equipmentUniqueId + equipmentUniqueId = input.readUInt32(); bitField0_ |= 0x00000080; tag = input.readTag(); - if (tag != 66) { + if (tag != 106) { break; } } - case 66: { - // equipRelicList - tag = input.readRepeatedMessage(equipRelicList, tag); + case 106: { + // takenRewards [packed=true] + input.readPackedUInt32(takenRewards, tag); bitField0_ |= 0x00000100; - if (tag != 98) { + tag = input.readTag(); + if (tag != 34) { break; } } - case 98: { + case 34: { // skilltreeList tag = input.readRepeatedMessage(skilltreeList, tag); bitField0_ |= 0x00000200; + if (tag != 66) { + break; + } + } + case 66: { + // equipRelicList + tag = input.readRepeatedMessage(equipRelicList, tag); + bitField0_ |= 0x00000400; if (tag != 0) { break; } @@ -850,7 +914,7 @@ public Avatar mergeFrom(final ProtoSource input) throws IOException { case 104: { // takenRewards [packed=false] tag = input.readRepeatedUInt32(takenRewards, tag); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } } @@ -864,13 +928,13 @@ public void writeTo(final JsonSink output) throws IOException { output.writeUInt64(FieldNames.firstMetTimestamp, firstMetTimestamp); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.equipmentUniqueId, equipmentUniqueId); + output.writeUInt32(FieldNames.dressedSkinId, dressedSkinId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.baseAvatarId, baseAvatarId); + output.writeUInt32(FieldNames.promotion, promotion); } if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.promotion, promotion); + output.writeUInt32(FieldNames.baseAvatarId, baseAvatarId); } if ((bitField0_ & 0x00000010) != 0) { output.writeUInt32(FieldNames.rank, rank); @@ -882,14 +946,17 @@ public void writeTo(final JsonSink output) throws IOException { output.writeUInt32(FieldNames.exp, exp); } if ((bitField0_ & 0x00000080) != 0) { - output.writeRepeatedUInt32(FieldNames.takenRewards, takenRewards); + output.writeUInt32(FieldNames.equipmentUniqueId, equipmentUniqueId); } if ((bitField0_ & 0x00000100) != 0) { - output.writeRepeatedMessage(FieldNames.equipRelicList, equipRelicList); + output.writeRepeatedUInt32(FieldNames.takenRewards, takenRewards); } if ((bitField0_ & 0x00000200) != 0) { output.writeRepeatedMessage(FieldNames.skilltreeList, skilltreeList); } + if ((bitField0_ & 0x00000400) != 0) { + output.writeRepeatedMessage(FieldNames.equipRelicList, equipRelicList); + } output.endObject(); } @@ -912,11 +979,11 @@ public Avatar mergeFrom(final JsonSource input) throws IOException { } break; } - case -1867136902: - case 760467160: { - if (input.isAtField(FieldNames.equipmentUniqueId)) { + case -407000018: + case 2012697844: { + if (input.isAtField(FieldNames.dressedSkinId)) { if (!input.trySkipNullValue()) { - equipmentUniqueId = input.readUInt32(); + dressedSkinId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -924,11 +991,10 @@ public Avatar mergeFrom(final JsonSource input) throws IOException { } break; } - case 118022725: - case -1756826157: { - if (input.isAtField(FieldNames.baseAvatarId)) { + case -799212381: { + if (input.isAtField(FieldNames.promotion)) { if (!input.trySkipNullValue()) { - baseAvatarId = input.readUInt32(); + promotion = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -936,10 +1002,11 @@ public Avatar mergeFrom(final JsonSource input) throws IOException { } break; } - case -799212381: { - if (input.isAtField(FieldNames.promotion)) { + case 118022725: + case -1756826157: { + if (input.isAtField(FieldNames.baseAvatarId)) { if (!input.trySkipNullValue()) { - promotion = input.readUInt32(); + baseAvatarId = input.readUInt32(); bitField0_ |= 0x00000008; } } else { @@ -980,11 +1047,11 @@ public Avatar mergeFrom(final JsonSource input) throws IOException { } break; } - case -932367267: - case 500229036: { - if (input.isAtField(FieldNames.takenRewards)) { + case -1867136902: + case 760467160: { + if (input.isAtField(FieldNames.equipmentUniqueId)) { if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(takenRewards); + equipmentUniqueId = input.readUInt32(); bitField0_ |= 0x00000080; } } else { @@ -992,11 +1059,11 @@ public Avatar mergeFrom(final JsonSource input) throws IOException { } break; } - case 1578968161: - case -795441831: { - if (input.isAtField(FieldNames.equipRelicList)) { + case -932367267: + case 500229036: { + if (input.isAtField(FieldNames.takenRewards)) { if (!input.trySkipNullValue()) { - input.readRepeatedMessage(equipRelicList); + input.readRepeatedUInt32(takenRewards); bitField0_ |= 0x00000100; } } else { @@ -1016,6 +1083,18 @@ public Avatar mergeFrom(final JsonSource input) throws IOException { } break; } + case 1578968161: + case -795441831: { + if (input.isAtField(FieldNames.equipRelicList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(equipRelicList); + bitField0_ |= 0x00000400; + } + } else { + input.skipUnknownField(); + } + break; + } default: { input.skipUnknownField(); break; @@ -1070,23 +1149,25 @@ public Avatar create() { static class FieldNames { static final FieldName firstMetTimestamp = FieldName.forField("firstMetTimestamp", "first_met_timestamp"); - static final FieldName equipmentUniqueId = FieldName.forField("equipmentUniqueId", "equipment_unique_id"); - - static final FieldName baseAvatarId = FieldName.forField("baseAvatarId", "base_avatar_id"); + static final FieldName dressedSkinId = FieldName.forField("dressedSkinId", "dressed_skin_id"); static final FieldName promotion = FieldName.forField("promotion"); + static final FieldName baseAvatarId = FieldName.forField("baseAvatarId", "base_avatar_id"); + static final FieldName rank = FieldName.forField("rank"); static final FieldName level = FieldName.forField("level"); static final FieldName exp = FieldName.forField("exp"); - static final FieldName takenRewards = FieldName.forField("takenRewards", "taken_rewards"); + static final FieldName equipmentUniqueId = FieldName.forField("equipmentUniqueId", "equipment_unique_id"); - static final FieldName equipRelicList = FieldName.forField("equipRelicList", "equip_relic_list"); + static final FieldName takenRewards = FieldName.forField("takenRewards", "taken_rewards"); static final FieldName skilltreeList = FieldName.forField("skilltreeList", "skilltree_list"); + + static final FieldName equipRelicList = FieldName.forField("equipRelicList", "equip_relic_list"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/AvatarSyncOuterClass.java b/src/generated/main/emu/lunarcore/proto/AvatarSyncOuterClass.java index a24bb4693..138cc2713 100644 --- a/src/generated/main/emu/lunarcore/proto/AvatarSyncOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/AvatarSyncOuterClass.java @@ -20,7 +20,7 @@ public static final class AvatarSync extends ProtoMessage implements private static final long serialVersionUID = 0L; /** - * repeated .Avatar avatar_list = 10; + * repeated .Avatar avatar_list = 1; */ private final RepeatedMessage avatarList = RepeatedMessage.newEmptyInstance(AvatarOuterClass.Avatar.getFactory()); @@ -35,7 +35,7 @@ public static AvatarSync newInstance() { } /** - * repeated .Avatar avatar_list = 10; + * repeated .Avatar avatar_list = 1; * @return whether the avatarList field is set */ public boolean hasAvatarList() { @@ -43,7 +43,7 @@ public boolean hasAvatarList() { } /** - * repeated .Avatar avatar_list = 10; + * repeated .Avatar avatar_list = 1; * @return this */ public AvatarSync clearAvatarList() { @@ -53,7 +53,7 @@ public AvatarSync clearAvatarList() { } /** - * repeated .Avatar avatar_list = 10; + * repeated .Avatar avatar_list = 1; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -67,7 +67,7 @@ public RepeatedMessage getAvatarList() { } /** - * repeated .Avatar avatar_list = 10; + * repeated .Avatar avatar_list = 1; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -81,7 +81,7 @@ public RepeatedMessage getMutableAvatarList() { } /** - * repeated .Avatar avatar_list = 10; + * repeated .Avatar avatar_list = 1; * @param value the avatarList to add * @return this */ @@ -92,7 +92,7 @@ public AvatarSync addAvatarList(final AvatarOuterClass.Avatar value) { } /** - * repeated .Avatar avatar_list = 10; + * repeated .Avatar avatar_list = 1; * @param values the avatarList to add * @return this */ @@ -163,7 +163,7 @@ public boolean equals(Object o) { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { for (int i = 0; i < avatarList.length(); i++) { - output.writeRawByte((byte) 82); + output.writeRawByte((byte) 10); output.writeMessageNoTag(avatarList.get(i)); } } @@ -185,7 +185,7 @@ public AvatarSync mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 82: { + case 10: { // avatarList tag = input.readRepeatedMessage(avatarList, tag); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/ClientTurnSnapshotOuterClass.java b/src/generated/main/emu/lunarcore/proto/BattleEventBattleInfoOuterClass.java similarity index 71% rename from src/generated/main/emu/lunarcore/proto/ClientTurnSnapshotOuterClass.java rename to src/generated/main/emu/lunarcore/proto/BattleEventBattleInfoOuterClass.java index 9d97d0e3b..3688ee778 100644 --- a/src/generated/main/emu/lunarcore/proto/ClientTurnSnapshotOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/BattleEventBattleInfoOuterClass.java @@ -11,11 +11,11 @@ import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; -public final class ClientTurnSnapshotOuterClass { +public final class BattleEventBattleInfoOuterClass { /** - * Protobuf type {@code ClientTurnSnapshot} + * Protobuf type {@code BattleEventBattleInfo} */ - public static final class ClientTurnSnapshot extends ProtoMessage implements Cloneable { + public static final class BattleEventBattleInfo extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** @@ -24,18 +24,18 @@ public static final class ClientTurnSnapshot extends ProtoMessageoptional .ClientTurnSnapshotStatus status = 2; + * optional .BattleEventInitedData status = 2; */ - private final ClientTurnSnapshotStatusOuterClass.ClientTurnSnapshotStatus status = ClientTurnSnapshotStatusOuterClass.ClientTurnSnapshotStatus.newInstance(); + private final BattleEventInitedDataOuterClass.BattleEventInitedData status = BattleEventInitedDataOuterClass.BattleEventInitedData.newInstance(); - private ClientTurnSnapshot() { + private BattleEventBattleInfo() { } /** - * @return a new empty instance of {@code ClientTurnSnapshot} + * @return a new empty instance of {@code BattleEventBattleInfo} */ - public static ClientTurnSnapshot newInstance() { - return new ClientTurnSnapshot(); + public static BattleEventBattleInfo newInstance() { + return new BattleEventBattleInfo(); } /** @@ -50,7 +50,7 @@ public boolean hasBattleEventId() { * optional uint32 battle_event_id = 1; * @return this */ - public ClientTurnSnapshot clearBattleEventId() { + public BattleEventBattleInfo clearBattleEventId() { bitField0_ &= ~0x00000001; battleEventId = 0; return this; @@ -69,14 +69,14 @@ public int getBattleEventId() { * @param value the battleEventId to set * @return this */ - public ClientTurnSnapshot setBattleEventId(final int value) { + public BattleEventBattleInfo setBattleEventId(final int value) { bitField0_ |= 0x00000001; battleEventId = value; return this; } /** - * optional .ClientTurnSnapshotStatus status = 2; + * optional .BattleEventInitedData status = 2; * @return whether the status field is set */ public boolean hasStatus() { @@ -84,17 +84,17 @@ public boolean hasStatus() { } /** - * optional .ClientTurnSnapshotStatus status = 2; + * optional .BattleEventInitedData status = 2; * @return this */ - public ClientTurnSnapshot clearStatus() { + public BattleEventBattleInfo clearStatus() { bitField0_ &= ~0x00000002; status.clear(); return this; } /** - * optional .ClientTurnSnapshotStatus status = 2; + * optional .BattleEventInitedData status = 2; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -103,12 +103,12 @@ public ClientTurnSnapshot clearStatus() { * * @return internal storage object for reading */ - public ClientTurnSnapshotStatusOuterClass.ClientTurnSnapshotStatus getStatus() { + public BattleEventInitedDataOuterClass.BattleEventInitedData getStatus() { return status; } /** - * optional .ClientTurnSnapshotStatus status = 2; + * optional .BattleEventInitedData status = 2; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -116,25 +116,25 @@ public ClientTurnSnapshotStatusOuterClass.ClientTurnSnapshotStatus getStatus() { * * @return internal storage object for modifications */ - public ClientTurnSnapshotStatusOuterClass.ClientTurnSnapshotStatus getMutableStatus() { + public BattleEventInitedDataOuterClass.BattleEventInitedData getMutableStatus() { bitField0_ |= 0x00000002; return status; } /** - * optional .ClientTurnSnapshotStatus status = 2; + * optional .BattleEventInitedData status = 2; * @param value the status to set * @return this */ - public ClientTurnSnapshot setStatus( - final ClientTurnSnapshotStatusOuterClass.ClientTurnSnapshotStatus value) { + public BattleEventBattleInfo setStatus( + final BattleEventInitedDataOuterClass.BattleEventInitedData value) { bitField0_ |= 0x00000002; status.copyFrom(value); return this; } @Override - public ClientTurnSnapshot copyFrom(final ClientTurnSnapshot other) { + public BattleEventBattleInfo copyFrom(final BattleEventBattleInfo other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; @@ -145,7 +145,7 @@ public ClientTurnSnapshot copyFrom(final ClientTurnSnapshot other) { } @Override - public ClientTurnSnapshot mergeFrom(final ClientTurnSnapshot other) { + public BattleEventBattleInfo mergeFrom(final BattleEventBattleInfo other) { if (other.isEmpty()) { return this; } @@ -160,7 +160,7 @@ public ClientTurnSnapshot mergeFrom(final ClientTurnSnapshot other) { } @Override - public ClientTurnSnapshot clear() { + public BattleEventBattleInfo clear() { if (isEmpty()) { return this; } @@ -172,7 +172,7 @@ public ClientTurnSnapshot clear() { } @Override - public ClientTurnSnapshot clearQuick() { + public BattleEventBattleInfo clearQuick() { if (isEmpty()) { return this; } @@ -187,10 +187,10 @@ public boolean equals(Object o) { if (o == this) { return true; } - if (!(o instanceof ClientTurnSnapshot)) { + if (!(o instanceof BattleEventBattleInfo)) { return false; } - ClientTurnSnapshot other = (ClientTurnSnapshot) o; + BattleEventBattleInfo other = (BattleEventBattleInfo) o; return bitField0_ == other.bitField0_ && (!hasBattleEventId() || battleEventId == other.battleEventId) && (!hasStatus() || status.equals(other.status)); @@ -222,7 +222,7 @@ protected int computeSerializedSize() { @Override @SuppressWarnings("fallthrough") - public ClientTurnSnapshot mergeFrom(final ProtoSource input) throws IOException { + public BattleEventBattleInfo mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { @@ -272,7 +272,7 @@ public void writeTo(final JsonSink output) throws IOException { } @Override - public ClientTurnSnapshot mergeFrom(final JsonSource input) throws IOException { + public BattleEventBattleInfo mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } @@ -312,8 +312,8 @@ public ClientTurnSnapshot mergeFrom(final JsonSource input) throws IOException { } @Override - public ClientTurnSnapshot clone() { - return new ClientTurnSnapshot().copyFrom(this); + public BattleEventBattleInfo clone() { + return new BattleEventBattleInfo().copyFrom(this); } @Override @@ -321,32 +321,32 @@ public boolean isEmpty() { return ((bitField0_) == 0); } - public static ClientTurnSnapshot parseFrom(final byte[] data) throws + public static BattleEventBattleInfo parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new ClientTurnSnapshot(), data).checkInitialized(); + return ProtoMessage.mergeFrom(new BattleEventBattleInfo(), data).checkInitialized(); } - public static ClientTurnSnapshot parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new ClientTurnSnapshot(), input).checkInitialized(); + public static BattleEventBattleInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new BattleEventBattleInfo(), input).checkInitialized(); } - public static ClientTurnSnapshot parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new ClientTurnSnapshot(), input).checkInitialized(); + public static BattleEventBattleInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new BattleEventBattleInfo(), input).checkInitialized(); } /** - * @return factory for creating ClientTurnSnapshot messages + * @return factory for creating BattleEventBattleInfo messages */ - public static MessageFactory getFactory() { - return ClientTurnSnapshotFactory.INSTANCE; + public static MessageFactory getFactory() { + return BattleEventBattleInfoFactory.INSTANCE; } - private enum ClientTurnSnapshotFactory implements MessageFactory { + private enum BattleEventBattleInfoFactory implements MessageFactory { INSTANCE; @Override - public ClientTurnSnapshot create() { - return ClientTurnSnapshot.newInstance(); + public BattleEventBattleInfo create() { + return BattleEventBattleInfo.newInstance(); } } diff --git a/src/generated/main/emu/lunarcore/proto/ClientTurnSnapshotStatusOuterClass.java b/src/generated/main/emu/lunarcore/proto/BattleEventInitedDataOuterClass.java similarity index 71% rename from src/generated/main/emu/lunarcore/proto/ClientTurnSnapshotStatusOuterClass.java rename to src/generated/main/emu/lunarcore/proto/BattleEventInitedDataOuterClass.java index 6d9f8cb12..e52faca9e 100644 --- a/src/generated/main/emu/lunarcore/proto/ClientTurnSnapshotStatusOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/BattleEventInitedDataOuterClass.java @@ -11,11 +11,11 @@ import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; -public final class ClientTurnSnapshotStatusOuterClass { +public final class BattleEventInitedDataOuterClass { /** - * Protobuf type {@code ClientTurnSnapshotStatus} + * Protobuf type {@code BattleEventInitedData} */ - public static final class ClientTurnSnapshotStatus extends ProtoMessage implements Cloneable { + public static final class BattleEventInitedData extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** @@ -23,14 +23,14 @@ public static final class ClientTurnSnapshotStatus extends ProtoMessageoptional .SpBarInfo sp_bar = 2; * @return this */ - public ClientTurnSnapshotStatus clearSpBar() { + public BattleEventInitedData clearSpBar() { bitField0_ &= ~0x00000001; spBar.clear(); return this; @@ -84,14 +84,14 @@ public SpBarInfoOuterClass.SpBarInfo getMutableSpBar() { * @param value the spBar to set * @return this */ - public ClientTurnSnapshotStatus setSpBar(final SpBarInfoOuterClass.SpBarInfo value) { + public BattleEventInitedData setSpBar(final SpBarInfoOuterClass.SpBarInfo value) { bitField0_ |= 0x00000001; spBar.copyFrom(value); return this; } @Override - public ClientTurnSnapshotStatus copyFrom(final ClientTurnSnapshotStatus other) { + public BattleEventInitedData copyFrom(final BattleEventInitedData other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; @@ -101,7 +101,7 @@ public ClientTurnSnapshotStatus copyFrom(final ClientTurnSnapshotStatus other) { } @Override - public ClientTurnSnapshotStatus mergeFrom(final ClientTurnSnapshotStatus other) { + public BattleEventInitedData mergeFrom(final BattleEventInitedData other) { if (other.isEmpty()) { return this; } @@ -113,7 +113,7 @@ public ClientTurnSnapshotStatus mergeFrom(final ClientTurnSnapshotStatus other) } @Override - public ClientTurnSnapshotStatus clear() { + public BattleEventInitedData clear() { if (isEmpty()) { return this; } @@ -124,7 +124,7 @@ public ClientTurnSnapshotStatus clear() { } @Override - public ClientTurnSnapshotStatus clearQuick() { + public BattleEventInitedData clearQuick() { if (isEmpty()) { return this; } @@ -139,10 +139,10 @@ public boolean equals(Object o) { if (o == this) { return true; } - if (!(o instanceof ClientTurnSnapshotStatus)) { + if (!(o instanceof BattleEventInitedData)) { return false; } - ClientTurnSnapshotStatus other = (ClientTurnSnapshotStatus) o; + BattleEventInitedData other = (BattleEventInitedData) o; return bitField0_ == other.bitField0_ && (!hasSpBar() || spBar.equals(other.spBar)); } @@ -166,7 +166,7 @@ protected int computeSerializedSize() { @Override @SuppressWarnings("fallthrough") - public ClientTurnSnapshotStatus mergeFrom(final ProtoSource input) throws IOException { + public BattleEventInitedData mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { @@ -204,7 +204,7 @@ public void writeTo(final JsonSink output) throws IOException { } @Override - public ClientTurnSnapshotStatus mergeFrom(final JsonSource input) throws IOException { + public BattleEventInitedData mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } @@ -233,8 +233,8 @@ public ClientTurnSnapshotStatus mergeFrom(final JsonSource input) throws IOExcep } @Override - public ClientTurnSnapshotStatus clone() { - return new ClientTurnSnapshotStatus().copyFrom(this); + public BattleEventInitedData clone() { + return new BattleEventInitedData().copyFrom(this); } @Override @@ -242,32 +242,32 @@ public boolean isEmpty() { return ((bitField0_) == 0); } - public static ClientTurnSnapshotStatus parseFrom(final byte[] data) throws + public static BattleEventInitedData parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new ClientTurnSnapshotStatus(), data).checkInitialized(); + return ProtoMessage.mergeFrom(new BattleEventInitedData(), data).checkInitialized(); } - public static ClientTurnSnapshotStatus parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new ClientTurnSnapshotStatus(), input).checkInitialized(); + public static BattleEventInitedData parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new BattleEventInitedData(), input).checkInitialized(); } - public static ClientTurnSnapshotStatus parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new ClientTurnSnapshotStatus(), input).checkInitialized(); + public static BattleEventInitedData parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new BattleEventInitedData(), input).checkInitialized(); } /** - * @return factory for creating ClientTurnSnapshotStatus messages + * @return factory for creating BattleEventInitedData messages */ - public static MessageFactory getFactory() { - return ClientTurnSnapshotStatusFactory.INSTANCE; + public static MessageFactory getFactory() { + return BattleEventInitedDataFactory.INSTANCE; } - private enum ClientTurnSnapshotStatusFactory implements MessageFactory { + private enum BattleEventInitedDataFactory implements MessageFactory { INSTANCE; @Override - public ClientTurnSnapshotStatus create() { - return ClientTurnSnapshotStatus.newInstance(); + public BattleEventInitedData create() { + return BattleEventInitedData.newInstance(); } } diff --git a/src/generated/main/emu/lunarcore/proto/BoardDataSyncOuterClass.java b/src/generated/main/emu/lunarcore/proto/BoardDataSyncOuterClass.java index e94ac5085..e6459cb7d 100644 --- a/src/generated/main/emu/lunarcore/proto/BoardDataSyncOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/BoardDataSyncOuterClass.java @@ -21,12 +21,12 @@ public static final class BoardDataSync extends ProtoMessage impl private static final long serialVersionUID = 0L; /** - * optional string signature = 5; + * optional string signature = 10; */ private final Utf8String signature = Utf8String.newEmptyInstance(); /** - * repeated .HeadIcon unlocked_head_icon_list = 4; + * repeated .HeadIcon unlocked_head_icon_list = 9; */ private final RepeatedMessage unlockedHeadIconList = RepeatedMessage.newEmptyInstance(HeadIconOuterClass.HeadIcon.getFactory()); @@ -41,7 +41,7 @@ public static BoardDataSync newInstance() { } /** - * optional string signature = 5; + * optional string signature = 10; * @return whether the signature field is set */ public boolean hasSignature() { @@ -49,7 +49,7 @@ public boolean hasSignature() { } /** - * optional string signature = 5; + * optional string signature = 10; * @return this */ public BoardDataSync clearSignature() { @@ -59,7 +59,7 @@ public BoardDataSync clearSignature() { } /** - * optional string signature = 5; + * optional string signature = 10; * @return the signature */ public String getSignature() { @@ -67,7 +67,7 @@ public String getSignature() { } /** - * optional string signature = 5; + * optional string signature = 10; * @return internal {@code Utf8String} representation of signature for reading */ public Utf8String getSignatureBytes() { @@ -75,7 +75,7 @@ public Utf8String getSignatureBytes() { } /** - * optional string signature = 5; + * optional string signature = 10; * @return internal {@code Utf8String} representation of signature for modifications */ public Utf8String getMutableSignatureBytes() { @@ -84,7 +84,7 @@ public Utf8String getMutableSignatureBytes() { } /** - * optional string signature = 5; + * optional string signature = 10; * @param value the signature to set * @return this */ @@ -95,7 +95,7 @@ public BoardDataSync setSignature(final CharSequence value) { } /** - * optional string signature = 5; + * optional string signature = 10; * @param value the signature to set * @return this */ @@ -106,7 +106,7 @@ public BoardDataSync setSignature(final Utf8String value) { } /** - * repeated .HeadIcon unlocked_head_icon_list = 4; + * repeated .HeadIcon unlocked_head_icon_list = 9; * @return whether the unlockedHeadIconList field is set */ public boolean hasUnlockedHeadIconList() { @@ -114,7 +114,7 @@ public boolean hasUnlockedHeadIconList() { } /** - * repeated .HeadIcon unlocked_head_icon_list = 4; + * repeated .HeadIcon unlocked_head_icon_list = 9; * @return this */ public BoardDataSync clearUnlockedHeadIconList() { @@ -124,7 +124,7 @@ public BoardDataSync clearUnlockedHeadIconList() { } /** - * repeated .HeadIcon unlocked_head_icon_list = 4; + * repeated .HeadIcon unlocked_head_icon_list = 9; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -138,7 +138,7 @@ public RepeatedMessage getUnlockedHeadIconList() { } /** - * repeated .HeadIcon unlocked_head_icon_list = 4; + * repeated .HeadIcon unlocked_head_icon_list = 9; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -152,7 +152,7 @@ public RepeatedMessage getMutableUnlockedHeadIconLi } /** - * repeated .HeadIcon unlocked_head_icon_list = 4; + * repeated .HeadIcon unlocked_head_icon_list = 9; * @param value the unlockedHeadIconList to add * @return this */ @@ -163,7 +163,7 @@ public BoardDataSync addUnlockedHeadIconList(final HeadIconOuterClass.HeadIcon v } /** - * repeated .HeadIcon unlocked_head_icon_list = 4; + * repeated .HeadIcon unlocked_head_icon_list = 9; * @param values the unlockedHeadIconList to add * @return this */ @@ -240,12 +240,12 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 42); + output.writeRawByte((byte) 82); output.writeStringNoTag(signature); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < unlockedHeadIconList.length(); i++) { - output.writeRawByte((byte) 34); + output.writeRawByte((byte) 74); output.writeMessageNoTag(unlockedHeadIconList.get(i)); } } @@ -270,16 +270,16 @@ public BoardDataSync mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 42: { + case 82: { // signature input.readString(signature); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 34) { + if (tag != 74) { break; } } - case 34: { + case 74: { // unlockedHeadIconList tag = input.readRepeatedMessage(unlockedHeadIconList, tag); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/BuffInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/BuffInfoOuterClass.java index c72a3e617..bdc8fbb6f 100644 --- a/src/generated/main/emu/lunarcore/proto/BuffInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/BuffInfoOuterClass.java @@ -22,37 +22,37 @@ public static final class BuffInfo extends ProtoMessage implements Clo private static final long serialVersionUID = 0L; /** - * optional uint64 add_time_ms = 2; + * optional uint64 add_time_ms = 13; */ private long addTimeMs; /** - * optional float life_time = 3; + * optional float life_time = 12; */ private float lifeTime; /** - * optional uint32 base_avatar_id = 5; + * optional uint32 base_avatar_id = 1; */ private int baseAvatarId; /** - * optional uint32 count = 6; + * optional uint32 level = 6; */ - private int count; + private int level; /** - * optional uint32 buff_id = 14; + * optional uint32 count = 7; */ - private int buffId; + private int count; /** - * optional uint32 level = 15; + * optional uint32 buff_id = 15; */ - private int level; + private int buffId; /** - * repeated .BuffInfo.DynamicValuesEntry dynamic_values = 7; + * repeated .BuffInfo.DynamicValuesEntry dynamic_values = 10; */ private final RepeatedMessage dynamicValues = RepeatedMessage.newEmptyInstance(DynamicValuesEntry.getFactory()); @@ -67,7 +67,7 @@ public static BuffInfo newInstance() { } /** - * optional uint64 add_time_ms = 2; + * optional uint64 add_time_ms = 13; * @return whether the addTimeMs field is set */ public boolean hasAddTimeMs() { @@ -75,7 +75,7 @@ public boolean hasAddTimeMs() { } /** - * optional uint64 add_time_ms = 2; + * optional uint64 add_time_ms = 13; * @return this */ public BuffInfo clearAddTimeMs() { @@ -85,7 +85,7 @@ public BuffInfo clearAddTimeMs() { } /** - * optional uint64 add_time_ms = 2; + * optional uint64 add_time_ms = 13; * @return the addTimeMs */ public long getAddTimeMs() { @@ -93,7 +93,7 @@ public long getAddTimeMs() { } /** - * optional uint64 add_time_ms = 2; + * optional uint64 add_time_ms = 13; * @param value the addTimeMs to set * @return this */ @@ -104,7 +104,7 @@ public BuffInfo setAddTimeMs(final long value) { } /** - * optional float life_time = 3; + * optional float life_time = 12; * @return whether the lifeTime field is set */ public boolean hasLifeTime() { @@ -112,7 +112,7 @@ public boolean hasLifeTime() { } /** - * optional float life_time = 3; + * optional float life_time = 12; * @return this */ public BuffInfo clearLifeTime() { @@ -122,7 +122,7 @@ public BuffInfo clearLifeTime() { } /** - * optional float life_time = 3; + * optional float life_time = 12; * @return the lifeTime */ public float getLifeTime() { @@ -130,7 +130,7 @@ public float getLifeTime() { } /** - * optional float life_time = 3; + * optional float life_time = 12; * @param value the lifeTime to set * @return this */ @@ -141,7 +141,7 @@ public BuffInfo setLifeTime(final float value) { } /** - * optional uint32 base_avatar_id = 5; + * optional uint32 base_avatar_id = 1; * @return whether the baseAvatarId field is set */ public boolean hasBaseAvatarId() { @@ -149,7 +149,7 @@ public boolean hasBaseAvatarId() { } /** - * optional uint32 base_avatar_id = 5; + * optional uint32 base_avatar_id = 1; * @return this */ public BuffInfo clearBaseAvatarId() { @@ -159,7 +159,7 @@ public BuffInfo clearBaseAvatarId() { } /** - * optional uint32 base_avatar_id = 5; + * optional uint32 base_avatar_id = 1; * @return the baseAvatarId */ public int getBaseAvatarId() { @@ -167,7 +167,7 @@ public int getBaseAvatarId() { } /** - * optional uint32 base_avatar_id = 5; + * optional uint32 base_avatar_id = 1; * @param value the baseAvatarId to set * @return this */ @@ -178,118 +178,118 @@ public BuffInfo setBaseAvatarId(final int value) { } /** - * optional uint32 count = 6; - * @return whether the count field is set + * optional uint32 level = 6; + * @return whether the level field is set */ - public boolean hasCount() { + public boolean hasLevel() { return (bitField0_ & 0x00000008) != 0; } /** - * optional uint32 count = 6; + * optional uint32 level = 6; * @return this */ - public BuffInfo clearCount() { + public BuffInfo clearLevel() { bitField0_ &= ~0x00000008; - count = 0; + level = 0; return this; } /** - * optional uint32 count = 6; - * @return the count + * optional uint32 level = 6; + * @return the level */ - public int getCount() { - return count; + public int getLevel() { + return level; } /** - * optional uint32 count = 6; - * @param value the count to set + * optional uint32 level = 6; + * @param value the level to set * @return this */ - public BuffInfo setCount(final int value) { + public BuffInfo setLevel(final int value) { bitField0_ |= 0x00000008; - count = value; + level = value; return this; } /** - * optional uint32 buff_id = 14; - * @return whether the buffId field is set + * optional uint32 count = 7; + * @return whether the count field is set */ - public boolean hasBuffId() { + public boolean hasCount() { return (bitField0_ & 0x00000010) != 0; } /** - * optional uint32 buff_id = 14; + * optional uint32 count = 7; * @return this */ - public BuffInfo clearBuffId() { + public BuffInfo clearCount() { bitField0_ &= ~0x00000010; - buffId = 0; + count = 0; return this; } /** - * optional uint32 buff_id = 14; - * @return the buffId + * optional uint32 count = 7; + * @return the count */ - public int getBuffId() { - return buffId; + public int getCount() { + return count; } /** - * optional uint32 buff_id = 14; - * @param value the buffId to set + * optional uint32 count = 7; + * @param value the count to set * @return this */ - public BuffInfo setBuffId(final int value) { + public BuffInfo setCount(final int value) { bitField0_ |= 0x00000010; - buffId = value; + count = value; return this; } /** - * optional uint32 level = 15; - * @return whether the level field is set + * optional uint32 buff_id = 15; + * @return whether the buffId field is set */ - public boolean hasLevel() { + public boolean hasBuffId() { return (bitField0_ & 0x00000020) != 0; } /** - * optional uint32 level = 15; + * optional uint32 buff_id = 15; * @return this */ - public BuffInfo clearLevel() { + public BuffInfo clearBuffId() { bitField0_ &= ~0x00000020; - level = 0; + buffId = 0; return this; } /** - * optional uint32 level = 15; - * @return the level + * optional uint32 buff_id = 15; + * @return the buffId */ - public int getLevel() { - return level; + public int getBuffId() { + return buffId; } /** - * optional uint32 level = 15; - * @param value the level to set + * optional uint32 buff_id = 15; + * @param value the buffId to set * @return this */ - public BuffInfo setLevel(final int value) { + public BuffInfo setBuffId(final int value) { bitField0_ |= 0x00000020; - level = value; + buffId = value; return this; } /** - * repeated .BuffInfo.DynamicValuesEntry dynamic_values = 7; + * repeated .BuffInfo.DynamicValuesEntry dynamic_values = 10; * @return whether the dynamicValues field is set */ public boolean hasDynamicValues() { @@ -297,7 +297,7 @@ public boolean hasDynamicValues() { } /** - * repeated .BuffInfo.DynamicValuesEntry dynamic_values = 7; + * repeated .BuffInfo.DynamicValuesEntry dynamic_values = 10; * @return this */ public BuffInfo clearDynamicValues() { @@ -307,7 +307,7 @@ public BuffInfo clearDynamicValues() { } /** - * repeated .BuffInfo.DynamicValuesEntry dynamic_values = 7; + * repeated .BuffInfo.DynamicValuesEntry dynamic_values = 10; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -321,7 +321,7 @@ public RepeatedMessage getDynamicValues() { } /** - * repeated .BuffInfo.DynamicValuesEntry dynamic_values = 7; + * repeated .BuffInfo.DynamicValuesEntry dynamic_values = 10; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -335,7 +335,7 @@ public RepeatedMessage getMutableDynamicValues() { } /** - * repeated .BuffInfo.DynamicValuesEntry dynamic_values = 7; + * repeated .BuffInfo.DynamicValuesEntry dynamic_values = 10; * @param value the dynamicValues to add * @return this */ @@ -346,7 +346,7 @@ public BuffInfo addDynamicValues(final DynamicValuesEntry value) { } /** - * repeated .BuffInfo.DynamicValuesEntry dynamic_values = 7; + * repeated .BuffInfo.DynamicValuesEntry dynamic_values = 10; * @param values the dynamicValues to add * @return this */ @@ -364,9 +364,9 @@ public BuffInfo copyFrom(final BuffInfo other) { addTimeMs = other.addTimeMs; lifeTime = other.lifeTime; baseAvatarId = other.baseAvatarId; + level = other.level; count = other.count; buffId = other.buffId; - level = other.level; dynamicValues.copyFrom(other.dynamicValues); } return this; @@ -387,15 +387,15 @@ public BuffInfo mergeFrom(final BuffInfo other) { if (other.hasBaseAvatarId()) { setBaseAvatarId(other.baseAvatarId); } + if (other.hasLevel()) { + setLevel(other.level); + } if (other.hasCount()) { setCount(other.count); } if (other.hasBuffId()) { setBuffId(other.buffId); } - if (other.hasLevel()) { - setLevel(other.level); - } if (other.hasDynamicValues()) { getMutableDynamicValues().addAll(other.dynamicValues); } @@ -412,9 +412,9 @@ public BuffInfo clear() { addTimeMs = 0L; lifeTime = 0F; baseAvatarId = 0; + level = 0; count = 0; buffId = 0; - level = 0; dynamicValues.clear(); return this; } @@ -443,41 +443,41 @@ public boolean equals(Object o) { && (!hasAddTimeMs() || addTimeMs == other.addTimeMs) && (!hasLifeTime() || ProtoUtil.isEqual(lifeTime, other.lifeTime)) && (!hasBaseAvatarId() || baseAvatarId == other.baseAvatarId) + && (!hasLevel() || level == other.level) && (!hasCount() || count == other.count) && (!hasBuffId() || buffId == other.buffId) - && (!hasLevel() || level == other.level) && (!hasDynamicValues() || dynamicValues.equals(other.dynamicValues)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); + output.writeRawByte((byte) 104); output.writeUInt64NoTag(addTimeMs); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 29); + output.writeRawByte((byte) 101); output.writeFloatNoTag(lifeTime); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 8); output.writeUInt32NoTag(baseAvatarId); } if ((bitField0_ & 0x00000008) != 0) { output.writeRawByte((byte) 48); - output.writeUInt32NoTag(count); + output.writeUInt32NoTag(level); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 112); - output.writeUInt32NoTag(buffId); + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(count); } if ((bitField0_ & 0x00000020) != 0) { output.writeRawByte((byte) 120); - output.writeUInt32NoTag(level); + output.writeUInt32NoTag(buffId); } if ((bitField0_ & 0x00000040) != 0) { for (int i = 0; i < dynamicValues.length(); i++) { - output.writeRawByte((byte) 58); + output.writeRawByte((byte) 82); output.writeMessageNoTag(dynamicValues.get(i)); } } @@ -496,13 +496,13 @@ protected int computeSerializedSize() { size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(count); + size += 1 + ProtoSink.computeUInt32SizeNoTag(level); } if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(buffId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(count); } if ((bitField0_ & 0x00000020) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(level); + size += 1 + ProtoSink.computeUInt32SizeNoTag(buffId); } if ((bitField0_ & 0x00000040) != 0) { size += (1 * dynamicValues.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(dynamicValues); @@ -517,25 +517,25 @@ public BuffInfo mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { + case 104: { // addTimeMs addTimeMs = input.readUInt64(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 29) { + if (tag != 101) { break; } } - case 29: { + case 101: { // lifeTime lifeTime = input.readFloat(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 40) { + if (tag != 8) { break; } } - case 40: { + case 8: { // baseAvatarId baseAvatarId = input.readUInt32(); bitField0_ |= 0x00000004; @@ -545,17 +545,17 @@ public BuffInfo mergeFrom(final ProtoSource input) throws IOException { } } case 48: { - // count - count = input.readUInt32(); + // level + level = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 112) { + if (tag != 56) { break; } } - case 112: { - // buffId - buffId = input.readUInt32(); + case 56: { + // count + count = input.readUInt32(); bitField0_ |= 0x00000010; tag = input.readTag(); if (tag != 120) { @@ -563,15 +563,15 @@ public BuffInfo mergeFrom(final ProtoSource input) throws IOException { } } case 120: { - // level - level = input.readUInt32(); + // buffId + buffId = input.readUInt32(); bitField0_ |= 0x00000020; tag = input.readTag(); - if (tag != 58) { + if (tag != 82) { break; } } - case 58: { + case 82: { // dynamicValues tag = input.readRepeatedMessage(dynamicValues, tag); bitField0_ |= 0x00000040; @@ -606,13 +606,13 @@ public void writeTo(final JsonSink output) throws IOException { output.writeUInt32(FieldNames.baseAvatarId, baseAvatarId); } if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.count, count); + output.writeUInt32(FieldNames.level, level); } if ((bitField0_ & 0x00000010) != 0) { - output.writeUInt32(FieldNames.buffId, buffId); + output.writeUInt32(FieldNames.count, count); } if ((bitField0_ & 0x00000020) != 0) { - output.writeUInt32(FieldNames.level, level); + output.writeUInt32(FieldNames.buffId, buffId); } if ((bitField0_ & 0x00000040) != 0) { output.writeRepeatedMessage(FieldNames.dynamicValues, dynamicValues); @@ -663,10 +663,10 @@ public BuffInfo mergeFrom(final JsonSource input) throws IOException { } break; } - case 94851343: { - if (input.isAtField(FieldNames.count)) { + case 102865796: { + if (input.isAtField(FieldNames.level)) { if (!input.trySkipNullValue()) { - count = input.readUInt32(); + level = input.readUInt32(); bitField0_ |= 0x00000008; } } else { @@ -674,11 +674,10 @@ public BuffInfo mergeFrom(final JsonSource input) throws IOException { } break; } - case -1378119474: - case 227990663: { - if (input.isAtField(FieldNames.buffId)) { + case 94851343: { + if (input.isAtField(FieldNames.count)) { if (!input.trySkipNullValue()) { - buffId = input.readUInt32(); + count = input.readUInt32(); bitField0_ |= 0x00000010; } } else { @@ -686,10 +685,11 @@ public BuffInfo mergeFrom(final JsonSource input) throws IOException { } break; } - case 102865796: { - if (input.isAtField(FieldNames.level)) { + case -1378119474: + case 227990663: { + if (input.isAtField(FieldNames.buffId)) { if (!input.trySkipNullValue()) { - level = input.readUInt32(); + buffId = input.readUInt32(); bitField0_ |= 0x00000020; } } else { @@ -1121,12 +1121,12 @@ static class FieldNames { static final FieldName baseAvatarId = FieldName.forField("baseAvatarId", "base_avatar_id"); + static final FieldName level = FieldName.forField("level"); + static final FieldName count = FieldName.forField("count"); static final FieldName buffId = FieldName.forField("buffId", "buff_id"); - static final FieldName level = FieldName.forField("level"); - static final FieldName dynamicValues = FieldName.forField("dynamicValues", "dynamic_values"); } } diff --git a/src/generated/main/emu/lunarcore/proto/BuyGoodsCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/BuyGoodsCsReqOuterClass.java index 50bc19b92..10c026178 100644 --- a/src/generated/main/emu/lunarcore/proto/BuyGoodsCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/BuyGoodsCsReqOuterClass.java @@ -19,14 +19,14 @@ public static final class BuyGoodsCsReq extends ProtoMessage impl private static final long serialVersionUID = 0L; /** - * optional uint32 item_id = 2; + * optional uint32 item_id = 5; */ private int itemId; /** - * optional uint32 shop_id = 8; + * optional uint32 goods_id = 7; */ - private int shopId; + private int goodsId; /** * optional uint32 goods_num = 9; @@ -34,9 +34,9 @@ public static final class BuyGoodsCsReq extends ProtoMessage impl private int goodsNum; /** - * optional uint32 goods_id = 12; + * optional uint32 shop_id = 12; */ - private int goodsId; + private int shopId; private BuyGoodsCsReq() { } @@ -49,7 +49,7 @@ public static BuyGoodsCsReq newInstance() { } /** - * optional uint32 item_id = 2; + * optional uint32 item_id = 5; * @return whether the itemId field is set */ public boolean hasItemId() { @@ -57,7 +57,7 @@ public boolean hasItemId() { } /** - * optional uint32 item_id = 2; + * optional uint32 item_id = 5; * @return this */ public BuyGoodsCsReq clearItemId() { @@ -67,7 +67,7 @@ public BuyGoodsCsReq clearItemId() { } /** - * optional uint32 item_id = 2; + * optional uint32 item_id = 5; * @return the itemId */ public int getItemId() { @@ -75,7 +75,7 @@ public int getItemId() { } /** - * optional uint32 item_id = 2; + * optional uint32 item_id = 5; * @param value the itemId to set * @return this */ @@ -86,39 +86,39 @@ public BuyGoodsCsReq setItemId(final int value) { } /** - * optional uint32 shop_id = 8; - * @return whether the shopId field is set + * optional uint32 goods_id = 7; + * @return whether the goodsId field is set */ - public boolean hasShopId() { + public boolean hasGoodsId() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 shop_id = 8; + * optional uint32 goods_id = 7; * @return this */ - public BuyGoodsCsReq clearShopId() { + public BuyGoodsCsReq clearGoodsId() { bitField0_ &= ~0x00000002; - shopId = 0; + goodsId = 0; return this; } /** - * optional uint32 shop_id = 8; - * @return the shopId + * optional uint32 goods_id = 7; + * @return the goodsId */ - public int getShopId() { - return shopId; + public int getGoodsId() { + return goodsId; } /** - * optional uint32 shop_id = 8; - * @param value the shopId to set + * optional uint32 goods_id = 7; + * @param value the goodsId to set * @return this */ - public BuyGoodsCsReq setShopId(final int value) { + public BuyGoodsCsReq setGoodsId(final int value) { bitField0_ |= 0x00000002; - shopId = value; + goodsId = value; return this; } @@ -160,39 +160,39 @@ public BuyGoodsCsReq setGoodsNum(final int value) { } /** - * optional uint32 goods_id = 12; - * @return whether the goodsId field is set + * optional uint32 shop_id = 12; + * @return whether the shopId field is set */ - public boolean hasGoodsId() { + public boolean hasShopId() { return (bitField0_ & 0x00000008) != 0; } /** - * optional uint32 goods_id = 12; + * optional uint32 shop_id = 12; * @return this */ - public BuyGoodsCsReq clearGoodsId() { + public BuyGoodsCsReq clearShopId() { bitField0_ &= ~0x00000008; - goodsId = 0; + shopId = 0; return this; } /** - * optional uint32 goods_id = 12; - * @return the goodsId + * optional uint32 shop_id = 12; + * @return the shopId */ - public int getGoodsId() { - return goodsId; + public int getShopId() { + return shopId; } /** - * optional uint32 goods_id = 12; - * @param value the goodsId to set + * optional uint32 shop_id = 12; + * @param value the shopId to set * @return this */ - public BuyGoodsCsReq setGoodsId(final int value) { + public BuyGoodsCsReq setShopId(final int value) { bitField0_ |= 0x00000008; - goodsId = value; + shopId = value; return this; } @@ -202,9 +202,9 @@ public BuyGoodsCsReq copyFrom(final BuyGoodsCsReq other) { if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; itemId = other.itemId; - shopId = other.shopId; - goodsNum = other.goodsNum; goodsId = other.goodsId; + goodsNum = other.goodsNum; + shopId = other.shopId; } return this; } @@ -218,14 +218,14 @@ public BuyGoodsCsReq mergeFrom(final BuyGoodsCsReq other) { if (other.hasItemId()) { setItemId(other.itemId); } - if (other.hasShopId()) { - setShopId(other.shopId); + if (other.hasGoodsId()) { + setGoodsId(other.goodsId); } if (other.hasGoodsNum()) { setGoodsNum(other.goodsNum); } - if (other.hasGoodsId()) { - setGoodsId(other.goodsId); + if (other.hasShopId()) { + setShopId(other.shopId); } return this; } @@ -238,9 +238,9 @@ public BuyGoodsCsReq clear() { cachedSize = -1; bitField0_ = 0; itemId = 0; - shopId = 0; - goodsNum = 0; goodsId = 0; + goodsNum = 0; + shopId = 0; return this; } @@ -265,20 +265,20 @@ public boolean equals(Object o) { BuyGoodsCsReq other = (BuyGoodsCsReq) o; return bitField0_ == other.bitField0_ && (!hasItemId() || itemId == other.itemId) - && (!hasShopId() || shopId == other.shopId) + && (!hasGoodsId() || goodsId == other.goodsId) && (!hasGoodsNum() || goodsNum == other.goodsNum) - && (!hasGoodsId() || goodsId == other.goodsId); + && (!hasShopId() || shopId == other.shopId); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); + output.writeRawByte((byte) 40); output.writeUInt32NoTag(itemId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 64); - output.writeUInt32NoTag(shopId); + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(goodsId); } if ((bitField0_ & 0x00000004) != 0) { output.writeRawByte((byte) 72); @@ -286,7 +286,7 @@ public void writeTo(final ProtoSink output) throws IOException { } if ((bitField0_ & 0x00000008) != 0) { output.writeRawByte((byte) 96); - output.writeUInt32NoTag(goodsId); + output.writeUInt32NoTag(shopId); } } @@ -297,13 +297,13 @@ protected int computeSerializedSize() { size += 1 + ProtoSink.computeUInt32SizeNoTag(itemId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(shopId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(goodsId); } if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(goodsNum); } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(goodsId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(shopId); } return size; } @@ -315,18 +315,18 @@ public BuyGoodsCsReq mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { + case 40: { // itemId itemId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 64) { + if (tag != 56) { break; } } - case 64: { - // shopId - shopId = input.readUInt32(); + case 56: { + // goodsId + goodsId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 72) { @@ -343,8 +343,8 @@ public BuyGoodsCsReq mergeFrom(final ProtoSource input) throws IOException { } } case 96: { - // goodsId - goodsId = input.readUInt32(); + // shopId + shopId = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 0) { @@ -372,13 +372,13 @@ public void writeTo(final JsonSink output) throws IOException { output.writeUInt32(FieldNames.itemId, itemId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.shopId, shopId); + output.writeUInt32(FieldNames.goodsId, goodsId); } if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.goodsNum, goodsNum); } if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.goodsId, goodsId); + output.writeUInt32(FieldNames.shopId, shopId); } output.endObject(); } @@ -402,11 +402,11 @@ public BuyGoodsCsReq mergeFrom(final JsonSource input) throws IOException { } break; } - case -903151951: - case 2067081988: { - if (input.isAtField(FieldNames.shopId)) { + case 207037201: + case 2123207332: { + if (input.isAtField(FieldNames.goodsId)) { if (!input.trySkipNullValue()) { - shopId = input.readUInt32(); + goodsId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -426,11 +426,11 @@ public BuyGoodsCsReq mergeFrom(final JsonSource input) throws IOException { } break; } - case 207037201: - case 2123207332: { - if (input.isAtField(FieldNames.goodsId)) { + case -903151951: + case 2067081988: { + if (input.isAtField(FieldNames.shopId)) { if (!input.trySkipNullValue()) { - goodsId = input.readUInt32(); + shopId = input.readUInt32(); bitField0_ |= 0x00000008; } } else { @@ -492,11 +492,11 @@ public BuyGoodsCsReq create() { static class FieldNames { static final FieldName itemId = FieldName.forField("itemId", "item_id"); - static final FieldName shopId = FieldName.forField("shopId", "shop_id"); + static final FieldName goodsId = FieldName.forField("goodsId", "goods_id"); static final FieldName goodsNum = FieldName.forField("goodsNum", "goods_num"); - static final FieldName goodsId = FieldName.forField("goodsId", "goods_id"); + static final FieldName shopId = FieldName.forField("shopId", "shop_id"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/BuyGoodsScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/BuyGoodsScRspOuterClass.java index 5edb52f1f..72773dc51 100644 --- a/src/generated/main/emu/lunarcore/proto/BuyGoodsScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/BuyGoodsScRspOuterClass.java @@ -24,22 +24,22 @@ public static final class BuyGoodsScRsp extends ProtoMessage impl private int goodsId; /** - * optional uint32 retcode = 3; + * optional uint32 retcode = 5; */ private int retcode; /** - * optional uint32 goods_buy_times = 11; + * optional uint32 goods_buy_times = 10; */ private int goodsBuyTimes; /** - * optional uint32 shop_id = 15; + * optional uint32 shop_id = 14; */ private int shopId; /** - * optional .ItemList return_item_list = 5; + * optional .ItemList return_item_list = 9; */ private final ItemListOuterClass.ItemList returnItemList = ItemListOuterClass.ItemList.newInstance(); @@ -91,7 +91,7 @@ public BuyGoodsScRsp setGoodsId(final int value) { } /** - * optional uint32 retcode = 3; + * optional uint32 retcode = 5; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -99,7 +99,7 @@ public boolean hasRetcode() { } /** - * optional uint32 retcode = 3; + * optional uint32 retcode = 5; * @return this */ public BuyGoodsScRsp clearRetcode() { @@ -109,7 +109,7 @@ public BuyGoodsScRsp clearRetcode() { } /** - * optional uint32 retcode = 3; + * optional uint32 retcode = 5; * @return the retcode */ public int getRetcode() { @@ -117,7 +117,7 @@ public int getRetcode() { } /** - * optional uint32 retcode = 3; + * optional uint32 retcode = 5; * @param value the retcode to set * @return this */ @@ -128,7 +128,7 @@ public BuyGoodsScRsp setRetcode(final int value) { } /** - * optional uint32 goods_buy_times = 11; + * optional uint32 goods_buy_times = 10; * @return whether the goodsBuyTimes field is set */ public boolean hasGoodsBuyTimes() { @@ -136,7 +136,7 @@ public boolean hasGoodsBuyTimes() { } /** - * optional uint32 goods_buy_times = 11; + * optional uint32 goods_buy_times = 10; * @return this */ public BuyGoodsScRsp clearGoodsBuyTimes() { @@ -146,7 +146,7 @@ public BuyGoodsScRsp clearGoodsBuyTimes() { } /** - * optional uint32 goods_buy_times = 11; + * optional uint32 goods_buy_times = 10; * @return the goodsBuyTimes */ public int getGoodsBuyTimes() { @@ -154,7 +154,7 @@ public int getGoodsBuyTimes() { } /** - * optional uint32 goods_buy_times = 11; + * optional uint32 goods_buy_times = 10; * @param value the goodsBuyTimes to set * @return this */ @@ -165,7 +165,7 @@ public BuyGoodsScRsp setGoodsBuyTimes(final int value) { } /** - * optional uint32 shop_id = 15; + * optional uint32 shop_id = 14; * @return whether the shopId field is set */ public boolean hasShopId() { @@ -173,7 +173,7 @@ public boolean hasShopId() { } /** - * optional uint32 shop_id = 15; + * optional uint32 shop_id = 14; * @return this */ public BuyGoodsScRsp clearShopId() { @@ -183,7 +183,7 @@ public BuyGoodsScRsp clearShopId() { } /** - * optional uint32 shop_id = 15; + * optional uint32 shop_id = 14; * @return the shopId */ public int getShopId() { @@ -191,7 +191,7 @@ public int getShopId() { } /** - * optional uint32 shop_id = 15; + * optional uint32 shop_id = 14; * @param value the shopId to set * @return this */ @@ -202,7 +202,7 @@ public BuyGoodsScRsp setShopId(final int value) { } /** - * optional .ItemList return_item_list = 5; + * optional .ItemList return_item_list = 9; * @return whether the returnItemList field is set */ public boolean hasReturnItemList() { @@ -210,7 +210,7 @@ public boolean hasReturnItemList() { } /** - * optional .ItemList return_item_list = 5; + * optional .ItemList return_item_list = 9; * @return this */ public BuyGoodsScRsp clearReturnItemList() { @@ -220,7 +220,7 @@ public BuyGoodsScRsp clearReturnItemList() { } /** - * optional .ItemList return_item_list = 5; + * optional .ItemList return_item_list = 9; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -234,7 +234,7 @@ public ItemListOuterClass.ItemList getReturnItemList() { } /** - * optional .ItemList return_item_list = 5; + * optional .ItemList return_item_list = 9; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -248,7 +248,7 @@ public ItemListOuterClass.ItemList getMutableReturnItemList() { } /** - * optional .ItemList return_item_list = 5; + * optional .ItemList return_item_list = 9; * @param value the returnItemList to set * @return this */ @@ -346,19 +346,19 @@ public void writeTo(final ProtoSink output) throws IOException { output.writeUInt32NoTag(goodsId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 40); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 80); output.writeUInt32NoTag(goodsBuyTimes); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 112); output.writeUInt32NoTag(shopId); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 42); + output.writeRawByte((byte) 74); output.writeMessageNoTag(returnItemList); } } @@ -396,38 +396,38 @@ public BuyGoodsScRsp mergeFrom(final ProtoSource input) throws IOException { goodsId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 24) { + if (tag != 40) { break; } } - case 24: { + case 40: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 88) { + if (tag != 80) { break; } } - case 88: { + case 80: { // goodsBuyTimes goodsBuyTimes = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 120) { + if (tag != 112) { break; } } - case 120: { + case 112: { // shopId shopId = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 42) { + if (tag != 74) { break; } } - case 42: { + case 74: { // returnItemList input.readMessage(returnItemList); bitField0_ |= 0x00000010; diff --git a/src/generated/main/emu/lunarcore/proto/ChallengeInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChallengeInfoOuterClass.java index 67d8c48c4..74499cb7c 100644 --- a/src/generated/main/emu/lunarcore/proto/ChallengeInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ChallengeInfoOuterClass.java @@ -19,22 +19,17 @@ public static final class ChallengeInfo extends ProtoMessage impl private static final long serialVersionUID = 0L; /** - * optional uint32 challenge_id = 2; + * optional uint32 challenge_id = 1; */ private int challengeId; /** - * optional uint32 round_count = 10; - */ - private int roundCount; - - /** - * optional .ChallengeStatus status = 1; + * optional .ChallengeStatus status = 6; */ private int status; /** - * optional .ExtraLineupType extra_lineup_type = 13; + * optional .ExtraLineupType extra_lineup_type = 15; */ private int extraLineupType; @@ -49,7 +44,7 @@ public static ChallengeInfo newInstance() { } /** - * optional uint32 challenge_id = 2; + * optional uint32 challenge_id = 1; * @return whether the challengeId field is set */ public boolean hasChallengeId() { @@ -57,7 +52,7 @@ public boolean hasChallengeId() { } /** - * optional uint32 challenge_id = 2; + * optional uint32 challenge_id = 1; * @return this */ public ChallengeInfo clearChallengeId() { @@ -67,7 +62,7 @@ public ChallengeInfo clearChallengeId() { } /** - * optional uint32 challenge_id = 2; + * optional uint32 challenge_id = 1; * @return the challengeId */ public int getChallengeId() { @@ -75,7 +70,7 @@ public int getChallengeId() { } /** - * optional uint32 challenge_id = 2; + * optional uint32 challenge_id = 1; * @param value the challengeId to set * @return this */ @@ -86,62 +81,25 @@ public ChallengeInfo setChallengeId(final int value) { } /** - * optional uint32 round_count = 10; - * @return whether the roundCount field is set - */ - public boolean hasRoundCount() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 round_count = 10; - * @return this - */ - public ChallengeInfo clearRoundCount() { - bitField0_ &= ~0x00000002; - roundCount = 0; - return this; - } - - /** - * optional uint32 round_count = 10; - * @return the roundCount - */ - public int getRoundCount() { - return roundCount; - } - - /** - * optional uint32 round_count = 10; - * @param value the roundCount to set - * @return this - */ - public ChallengeInfo setRoundCount(final int value) { - bitField0_ |= 0x00000002; - roundCount = value; - return this; - } - - /** - * optional .ChallengeStatus status = 1; + * optional .ChallengeStatus status = 6; * @return whether the status field is set */ public boolean hasStatus() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000002) != 0; } /** - * optional .ChallengeStatus status = 1; + * optional .ChallengeStatus status = 6; * @return this */ public ChallengeInfo clearStatus() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; status = 0; return this; } /** - * optional .ChallengeStatus status = 1; + * optional .ChallengeStatus status = 6; * @return the status */ public ChallengeStatusOuterClass.ChallengeStatus getStatus() { @@ -168,42 +126,42 @@ public int getStatusValue() { * @return this */ public ChallengeInfo setStatusValue(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; status = value; return this; } /** - * optional .ChallengeStatus status = 1; + * optional .ChallengeStatus status = 6; * @param value the status to set * @return this */ public ChallengeInfo setStatus(final ChallengeStatusOuterClass.ChallengeStatus value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; status = value.getNumber(); return this; } /** - * optional .ExtraLineupType extra_lineup_type = 13; + * optional .ExtraLineupType extra_lineup_type = 15; * @return whether the extraLineupType field is set */ public boolean hasExtraLineupType() { - return (bitField0_ & 0x00000008) != 0; + return (bitField0_ & 0x00000004) != 0; } /** - * optional .ExtraLineupType extra_lineup_type = 13; + * optional .ExtraLineupType extra_lineup_type = 15; * @return this */ public ChallengeInfo clearExtraLineupType() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000004; extraLineupType = 0; return this; } /** - * optional .ExtraLineupType extra_lineup_type = 13; + * optional .ExtraLineupType extra_lineup_type = 15; * @return the extraLineupType */ public ExtraLineupTypeOuterClass.ExtraLineupType getExtraLineupType() { @@ -230,18 +188,18 @@ public int getExtraLineupTypeValue() { * @return this */ public ChallengeInfo setExtraLineupTypeValue(final int value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; extraLineupType = value; return this; } /** - * optional .ExtraLineupType extra_lineup_type = 13; + * optional .ExtraLineupType extra_lineup_type = 15; * @param value the extraLineupType to set * @return this */ public ChallengeInfo setExtraLineupType(final ExtraLineupTypeOuterClass.ExtraLineupType value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; extraLineupType = value.getNumber(); return this; } @@ -252,7 +210,6 @@ public ChallengeInfo copyFrom(final ChallengeInfo other) { if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; challengeId = other.challengeId; - roundCount = other.roundCount; status = other.status; extraLineupType = other.extraLineupType; } @@ -268,9 +225,6 @@ public ChallengeInfo mergeFrom(final ChallengeInfo other) { if (other.hasChallengeId()) { setChallengeId(other.challengeId); } - if (other.hasRoundCount()) { - setRoundCount(other.roundCount); - } if (other.hasStatus()) { setStatusValue(other.status); } @@ -288,7 +242,6 @@ public ChallengeInfo clear() { cachedSize = -1; bitField0_ = 0; challengeId = 0; - roundCount = 0; status = 0; extraLineupType = 0; return this; @@ -315,7 +268,6 @@ public boolean equals(Object o) { ChallengeInfo other = (ChallengeInfo) o; return bitField0_ == other.bitField0_ && (!hasChallengeId() || challengeId == other.challengeId) - && (!hasRoundCount() || roundCount == other.roundCount) && (!hasStatus() || status == other.status) && (!hasExtraLineupType() || extraLineupType == other.extraLineupType); } @@ -323,19 +275,15 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); + output.writeRawByte((byte) 8); output.writeUInt32NoTag(challengeId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 80); - output.writeUInt32NoTag(roundCount); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 8); + output.writeRawByte((byte) 48); output.writeEnumNoTag(status); } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 104); + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 120); output.writeEnumNoTag(extraLineupType); } } @@ -347,12 +295,9 @@ protected int computeSerializedSize() { size += 1 + ProtoSink.computeUInt32SizeNoTag(challengeId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(roundCount); - } - if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeEnumSizeNoTag(status); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeEnumSizeNoTag(extraLineupType); } return size; @@ -365,42 +310,33 @@ public ChallengeInfo mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { + case 8: { // challengeId challengeId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 80) { - break; - } - } - case 80: { - // roundCount - roundCount = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 8) { + if (tag != 48) { break; } } - case 8: { + case 48: { // status final int value = input.readInt32(); if (ChallengeStatusOuterClass.ChallengeStatus.forNumber(value) != null) { status = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; } tag = input.readTag(); - if (tag != 104) { + if (tag != 120) { break; } } - case 104: { + case 120: { // extraLineupType final int value = input.readInt32(); if (ExtraLineupTypeOuterClass.ExtraLineupType.forNumber(value) != null) { extraLineupType = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; } tag = input.readTag(); if (tag != 0) { @@ -428,12 +364,9 @@ public void writeTo(final JsonSink output) throws IOException { output.writeUInt32(FieldNames.challengeId, challengeId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.roundCount, roundCount); - } - if ((bitField0_ & 0x00000004) != 0) { output.writeEnum(FieldNames.status, status, ChallengeStatusOuterClass.ChallengeStatus.converter()); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000004) != 0) { output.writeEnum(FieldNames.extraLineupType, extraLineupType, ExtraLineupTypeOuterClass.ExtraLineupType.converter()); } output.endObject(); @@ -458,25 +391,13 @@ public ChallengeInfo mergeFrom(final JsonSource input) throws IOException { } break; } - case -171935711: - case -244677858: { - if (input.isAtField(FieldNames.roundCount)) { - if (!input.trySkipNullValue()) { - roundCount = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } case -892481550: { if (input.isAtField(FieldNames.status)) { if (!input.trySkipNullValue()) { final ChallengeStatusOuterClass.ChallengeStatus value = input.readEnum(ChallengeStatusOuterClass.ChallengeStatus.converter()); if (value != null) { status = value.getNumber(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; } else { input.skipUnknownEnumValue(); } @@ -493,7 +414,7 @@ public ChallengeInfo mergeFrom(final JsonSource input) throws IOException { final ExtraLineupTypeOuterClass.ExtraLineupType value = input.readEnum(ExtraLineupTypeOuterClass.ExtraLineupType.converter()); if (value != null) { extraLineupType = value.getNumber(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; } else { input.skipUnknownEnumValue(); } @@ -557,8 +478,6 @@ public ChallengeInfo create() { static class FieldNames { static final FieldName challengeId = FieldName.forField("challengeId", "challenge_id"); - static final FieldName roundCount = FieldName.forField("roundCount", "round_count"); - static final FieldName status = FieldName.forField("status"); static final FieldName extraLineupType = FieldName.forField("extraLineupType", "extra_lineup_type"); diff --git a/src/generated/main/emu/lunarcore/proto/ChallengeLineupNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChallengeLineupNotifyOuterClass.java index 553f8c569..c9abd4f74 100644 --- a/src/generated/main/emu/lunarcore/proto/ChallengeLineupNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ChallengeLineupNotifyOuterClass.java @@ -19,7 +19,7 @@ public static final class ChallengeLineupNotify extends ProtoMessageoptional .ExtraLineupType extra_lineup_type = 1; + * optional .ExtraLineupType extra_lineup_type = 13; */ private int extraLineupType; @@ -34,7 +34,7 @@ public static ChallengeLineupNotify newInstance() { } /** - * optional .ExtraLineupType extra_lineup_type = 1; + * optional .ExtraLineupType extra_lineup_type = 13; * @return whether the extraLineupType field is set */ public boolean hasExtraLineupType() { @@ -42,7 +42,7 @@ public boolean hasExtraLineupType() { } /** - * optional .ExtraLineupType extra_lineup_type = 1; + * optional .ExtraLineupType extra_lineup_type = 13; * @return this */ public ChallengeLineupNotify clearExtraLineupType() { @@ -52,7 +52,7 @@ public ChallengeLineupNotify clearExtraLineupType() { } /** - * optional .ExtraLineupType extra_lineup_type = 1; + * optional .ExtraLineupType extra_lineup_type = 13; * @return the extraLineupType */ public ExtraLineupTypeOuterClass.ExtraLineupType getExtraLineupType() { @@ -85,7 +85,7 @@ public ChallengeLineupNotify setExtraLineupTypeValue(final int value) { } /** - * optional .ExtraLineupType extra_lineup_type = 1; + * optional .ExtraLineupType extra_lineup_type = 13; * @param value the extraLineupType to set * @return this */ @@ -155,7 +155,7 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); + output.writeRawByte((byte) 104); output.writeEnumNoTag(extraLineupType); } } @@ -176,7 +176,7 @@ public ChallengeLineupNotify mergeFrom(final ProtoSource input) throws IOExcepti int tag = input.readTag(); while (true) { switch (tag) { - case 8: { + case 104: { // extraLineupType final int value = input.readInt32(); if (ExtraLineupTypeOuterClass.ExtraLineupType.forNumber(value) != null) { diff --git a/src/generated/main/emu/lunarcore/proto/ChallengeOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChallengeOuterClass.java index f96901264..8b291cef3 100644 --- a/src/generated/main/emu/lunarcore/proto/ChallengeOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ChallengeOuterClass.java @@ -19,19 +19,19 @@ public static final class Challenge extends ProtoMessage implements C private static final long serialVersionUID = 0L; /** - * optional uint32 taken_reward = 10; + * optional uint32 stars = 10; */ - private int takenReward; + private int stars; /** - * optional uint32 stars = 11; + * optional uint32 challenge_id = 13; */ - private int stars; + private int challengeId; /** - * optional uint32 challenge_id = 14; + * optional uint32 taken_reward = 14; */ - private int challengeId; + private int takenReward; private Challenge() { } @@ -44,113 +44,113 @@ public static Challenge newInstance() { } /** - * optional uint32 taken_reward = 10; - * @return whether the takenReward field is set + * optional uint32 stars = 10; + * @return whether the stars field is set */ - public boolean hasTakenReward() { + public boolean hasStars() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 taken_reward = 10; + * optional uint32 stars = 10; * @return this */ - public Challenge clearTakenReward() { + public Challenge clearStars() { bitField0_ &= ~0x00000001; - takenReward = 0; + stars = 0; return this; } /** - * optional uint32 taken_reward = 10; - * @return the takenReward + * optional uint32 stars = 10; + * @return the stars */ - public int getTakenReward() { - return takenReward; + public int getStars() { + return stars; } /** - * optional uint32 taken_reward = 10; - * @param value the takenReward to set + * optional uint32 stars = 10; + * @param value the stars to set * @return this */ - public Challenge setTakenReward(final int value) { + public Challenge setStars(final int value) { bitField0_ |= 0x00000001; - takenReward = value; + stars = value; return this; } /** - * optional uint32 stars = 11; - * @return whether the stars field is set + * optional uint32 challenge_id = 13; + * @return whether the challengeId field is set */ - public boolean hasStars() { + public boolean hasChallengeId() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 stars = 11; + * optional uint32 challenge_id = 13; * @return this */ - public Challenge clearStars() { + public Challenge clearChallengeId() { bitField0_ &= ~0x00000002; - stars = 0; + challengeId = 0; return this; } /** - * optional uint32 stars = 11; - * @return the stars + * optional uint32 challenge_id = 13; + * @return the challengeId */ - public int getStars() { - return stars; + public int getChallengeId() { + return challengeId; } /** - * optional uint32 stars = 11; - * @param value the stars to set + * optional uint32 challenge_id = 13; + * @param value the challengeId to set * @return this */ - public Challenge setStars(final int value) { + public Challenge setChallengeId(final int value) { bitField0_ |= 0x00000002; - stars = value; + challengeId = value; return this; } /** - * optional uint32 challenge_id = 14; - * @return whether the challengeId field is set + * optional uint32 taken_reward = 14; + * @return whether the takenReward field is set */ - public boolean hasChallengeId() { + public boolean hasTakenReward() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 challenge_id = 14; + * optional uint32 taken_reward = 14; * @return this */ - public Challenge clearChallengeId() { + public Challenge clearTakenReward() { bitField0_ &= ~0x00000004; - challengeId = 0; + takenReward = 0; return this; } /** - * optional uint32 challenge_id = 14; - * @return the challengeId + * optional uint32 taken_reward = 14; + * @return the takenReward */ - public int getChallengeId() { - return challengeId; + public int getTakenReward() { + return takenReward; } /** - * optional uint32 challenge_id = 14; - * @param value the challengeId to set + * optional uint32 taken_reward = 14; + * @param value the takenReward to set * @return this */ - public Challenge setChallengeId(final int value) { + public Challenge setTakenReward(final int value) { bitField0_ |= 0x00000004; - challengeId = value; + takenReward = value; return this; } @@ -159,9 +159,9 @@ public Challenge copyFrom(final Challenge other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - takenReward = other.takenReward; stars = other.stars; challengeId = other.challengeId; + takenReward = other.takenReward; } return this; } @@ -172,15 +172,15 @@ public Challenge mergeFrom(final Challenge other) { return this; } cachedSize = -1; - if (other.hasTakenReward()) { - setTakenReward(other.takenReward); - } if (other.hasStars()) { setStars(other.stars); } if (other.hasChallengeId()) { setChallengeId(other.challengeId); } + if (other.hasTakenReward()) { + setTakenReward(other.takenReward); + } return this; } @@ -191,9 +191,9 @@ public Challenge clear() { } cachedSize = -1; bitField0_ = 0; - takenReward = 0; stars = 0; challengeId = 0; + takenReward = 0; return this; } @@ -217,24 +217,24 @@ public boolean equals(Object o) { } Challenge other = (Challenge) o; return bitField0_ == other.bitField0_ - && (!hasTakenReward() || takenReward == other.takenReward) && (!hasStars() || stars == other.stars) - && (!hasChallengeId() || challengeId == other.challengeId); + && (!hasChallengeId() || challengeId == other.challengeId) + && (!hasTakenReward() || takenReward == other.takenReward); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { output.writeRawByte((byte) 80); - output.writeUInt32NoTag(takenReward); + output.writeUInt32NoTag(stars); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 88); - output.writeUInt32NoTag(stars); + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(challengeId); } if ((bitField0_ & 0x00000004) != 0) { output.writeRawByte((byte) 112); - output.writeUInt32NoTag(challengeId); + output.writeUInt32NoTag(takenReward); } } @@ -242,13 +242,13 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(takenReward); + size += 1 + ProtoSink.computeUInt32SizeNoTag(stars); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(stars); + size += 1 + ProtoSink.computeUInt32SizeNoTag(challengeId); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(challengeId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(takenReward); } return size; } @@ -261,17 +261,17 @@ public Challenge mergeFrom(final ProtoSource input) throws IOException { while (true) { switch (tag) { case 80: { - // takenReward - takenReward = input.readUInt32(); + // stars + stars = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 88) { + if (tag != 104) { break; } } - case 88: { - // stars - stars = input.readUInt32(); + case 104: { + // challengeId + challengeId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 112) { @@ -279,8 +279,8 @@ public Challenge mergeFrom(final ProtoSource input) throws IOException { } } case 112: { - // challengeId - challengeId = input.readUInt32(); + // takenReward + takenReward = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 0) { @@ -305,13 +305,13 @@ public Challenge mergeFrom(final ProtoSource input) throws IOException { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.takenReward, takenReward); + output.writeUInt32(FieldNames.stars, stars); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.stars, stars); + output.writeUInt32(FieldNames.challengeId, challengeId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.challengeId, challengeId); + output.writeUInt32(FieldNames.takenReward, takenReward); } output.endObject(); } @@ -323,11 +323,10 @@ public Challenge mergeFrom(final JsonSource input) throws IOException { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1216849622: - case -1923526233: { - if (input.isAtField(FieldNames.takenReward)) { + case 109757537: { + if (input.isAtField(FieldNames.stars)) { if (!input.trySkipNullValue()) { - takenReward = input.readUInt32(); + stars = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -335,10 +334,11 @@ public Challenge mergeFrom(final JsonSource input) throws IOException { } break; } - case 109757537: { - if (input.isAtField(FieldNames.stars)) { + case -689112866: + case 112359031: { + if (input.isAtField(FieldNames.challengeId)) { if (!input.trySkipNullValue()) { - stars = input.readUInt32(); + challengeId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -346,11 +346,11 @@ public Challenge mergeFrom(final JsonSource input) throws IOException { } break; } - case -689112866: - case 112359031: { - if (input.isAtField(FieldNames.challengeId)) { + case 1216849622: + case -1923526233: { + if (input.isAtField(FieldNames.takenReward)) { if (!input.trySkipNullValue()) { - challengeId = input.readUInt32(); + takenReward = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -410,11 +410,11 @@ public Challenge create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName takenReward = FieldName.forField("takenReward", "taken_reward"); - static final FieldName stars = FieldName.forField("stars"); static final FieldName challengeId = FieldName.forField("challengeId", "challenge_id"); + + static final FieldName takenReward = FieldName.forField("takenReward", "taken_reward"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/ChallengeRewardOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChallengeRewardOuterClass.java index fed1d8464..8c96470b8 100644 --- a/src/generated/main/emu/lunarcore/proto/ChallengeRewardOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ChallengeRewardOuterClass.java @@ -19,12 +19,12 @@ public static final class ChallengeReward extends ProtoMessage private static final long serialVersionUID = 0L; /** - * optional uint64 taken_challenge_reward = 12; + * optional uint64 taken_challenge_reward = 10; */ private long takenChallengeReward; /** - * optional uint32 group_id = 6; + * optional uint32 group_id = 15; */ private int groupId; @@ -39,7 +39,7 @@ public static ChallengeReward newInstance() { } /** - * optional uint64 taken_challenge_reward = 12; + * optional uint64 taken_challenge_reward = 10; * @return whether the takenChallengeReward field is set */ public boolean hasTakenChallengeReward() { @@ -47,7 +47,7 @@ public boolean hasTakenChallengeReward() { } /** - * optional uint64 taken_challenge_reward = 12; + * optional uint64 taken_challenge_reward = 10; * @return this */ public ChallengeReward clearTakenChallengeReward() { @@ -57,7 +57,7 @@ public ChallengeReward clearTakenChallengeReward() { } /** - * optional uint64 taken_challenge_reward = 12; + * optional uint64 taken_challenge_reward = 10; * @return the takenChallengeReward */ public long getTakenChallengeReward() { @@ -65,7 +65,7 @@ public long getTakenChallengeReward() { } /** - * optional uint64 taken_challenge_reward = 12; + * optional uint64 taken_challenge_reward = 10; * @param value the takenChallengeReward to set * @return this */ @@ -76,7 +76,7 @@ public ChallengeReward setTakenChallengeReward(final long value) { } /** - * optional uint32 group_id = 6; + * optional uint32 group_id = 15; * @return whether the groupId field is set */ public boolean hasGroupId() { @@ -84,7 +84,7 @@ public boolean hasGroupId() { } /** - * optional uint32 group_id = 6; + * optional uint32 group_id = 15; * @return this */ public ChallengeReward clearGroupId() { @@ -94,7 +94,7 @@ public ChallengeReward clearGroupId() { } /** - * optional uint32 group_id = 6; + * optional uint32 group_id = 15; * @return the groupId */ public int getGroupId() { @@ -102,7 +102,7 @@ public int getGroupId() { } /** - * optional uint32 group_id = 6; + * optional uint32 group_id = 15; * @param value the groupId to set * @return this */ @@ -177,11 +177,11 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 80); output.writeUInt64NoTag(takenChallengeReward); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 120); output.writeUInt32NoTag(groupId); } } @@ -205,16 +205,16 @@ public ChallengeReward mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 96: { + case 80: { // takenChallengeReward takenChallengeReward = input.readUInt64(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 48) { + if (tag != 120) { break; } } - case 48: { + case 120: { // groupId groupId = input.readUInt32(); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/ChallengeSettleNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChallengeSettleNotifyOuterClass.java index 980abef1f..1ffab97dd 100644 --- a/src/generated/main/emu/lunarcore/proto/ChallengeSettleNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ChallengeSettleNotifyOuterClass.java @@ -24,17 +24,17 @@ public static final class ChallengeSettleNotify extends ProtoMessageoptional uint32 stars = 13; + * optional uint32 stars = 15; */ private int stars; /** - * optional bool is_win = 5; + * optional bool is_win = 13; */ private boolean isWin; /** - * optional .ItemList reward = 3; + * optional .ItemList reward = 8; */ private final ItemListOuterClass.ItemList reward = ItemListOuterClass.ItemList.newInstance(); @@ -86,7 +86,7 @@ public ChallengeSettleNotify setChallengeId(final int value) { } /** - * optional uint32 stars = 13; + * optional uint32 stars = 15; * @return whether the stars field is set */ public boolean hasStars() { @@ -94,7 +94,7 @@ public boolean hasStars() { } /** - * optional uint32 stars = 13; + * optional uint32 stars = 15; * @return this */ public ChallengeSettleNotify clearStars() { @@ -104,7 +104,7 @@ public ChallengeSettleNotify clearStars() { } /** - * optional uint32 stars = 13; + * optional uint32 stars = 15; * @return the stars */ public int getStars() { @@ -112,7 +112,7 @@ public int getStars() { } /** - * optional uint32 stars = 13; + * optional uint32 stars = 15; * @param value the stars to set * @return this */ @@ -123,7 +123,7 @@ public ChallengeSettleNotify setStars(final int value) { } /** - * optional bool is_win = 5; + * optional bool is_win = 13; * @return whether the isWin field is set */ public boolean hasIsWin() { @@ -131,7 +131,7 @@ public boolean hasIsWin() { } /** - * optional bool is_win = 5; + * optional bool is_win = 13; * @return this */ public ChallengeSettleNotify clearIsWin() { @@ -141,7 +141,7 @@ public ChallengeSettleNotify clearIsWin() { } /** - * optional bool is_win = 5; + * optional bool is_win = 13; * @return the isWin */ public boolean getIsWin() { @@ -149,7 +149,7 @@ public boolean getIsWin() { } /** - * optional bool is_win = 5; + * optional bool is_win = 13; * @param value the isWin to set * @return this */ @@ -160,7 +160,7 @@ public ChallengeSettleNotify setIsWin(final boolean value) { } /** - * optional .ItemList reward = 3; + * optional .ItemList reward = 8; * @return whether the reward field is set */ public boolean hasReward() { @@ -168,7 +168,7 @@ public boolean hasReward() { } /** - * optional .ItemList reward = 3; + * optional .ItemList reward = 8; * @return this */ public ChallengeSettleNotify clearReward() { @@ -178,7 +178,7 @@ public ChallengeSettleNotify clearReward() { } /** - * optional .ItemList reward = 3; + * optional .ItemList reward = 8; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -192,7 +192,7 @@ public ItemListOuterClass.ItemList getReward() { } /** - * optional .ItemList reward = 3; + * optional .ItemList reward = 8; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -206,7 +206,7 @@ public ItemListOuterClass.ItemList getMutableReward() { } /** - * optional .ItemList reward = 3; + * optional .ItemList reward = 8; * @param value the reward to set * @return this */ @@ -298,15 +298,15 @@ public void writeTo(final ProtoSink output) throws IOException { output.writeUInt32NoTag(challengeId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 120); output.writeUInt32NoTag(stars); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 104); output.writeBoolNoTag(isWin); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 26); + output.writeRawByte((byte) 66); output.writeMessageNoTag(reward); } } @@ -341,29 +341,29 @@ public ChallengeSettleNotify mergeFrom(final ProtoSource input) throws IOExcepti challengeId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 104) { + if (tag != 120) { break; } } - case 104: { + case 120: { // stars stars = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 40) { + if (tag != 104) { break; } } - case 40: { + case 104: { // isWin isWin = input.readBool(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 26) { + if (tag != 66) { break; } } - case 26: { + case 66: { // reward input.readMessage(reward); bitField0_ |= 0x00000008; diff --git a/src/generated/main/emu/lunarcore/proto/ChangeLineupLeaderCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChangeLineupLeaderCsReqOuterClass.java index c8de65b79..29461558e 100644 --- a/src/generated/main/emu/lunarcore/proto/ChangeLineupLeaderCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ChangeLineupLeaderCsReqOuterClass.java @@ -19,7 +19,7 @@ public static final class ChangeLineupLeaderCsReq extends ProtoMessageoptional uint32 slot = 7; + * optional uint32 slot = 10; */ private int slot; @@ -34,7 +34,7 @@ public static ChangeLineupLeaderCsReq newInstance() { } /** - * optional uint32 slot = 7; + * optional uint32 slot = 10; * @return whether the slot field is set */ public boolean hasSlot() { @@ -42,7 +42,7 @@ public boolean hasSlot() { } /** - * optional uint32 slot = 7; + * optional uint32 slot = 10; * @return this */ public ChangeLineupLeaderCsReq clearSlot() { @@ -52,7 +52,7 @@ public ChangeLineupLeaderCsReq clearSlot() { } /** - * optional uint32 slot = 7; + * optional uint32 slot = 10; * @return the slot */ public int getSlot() { @@ -60,7 +60,7 @@ public int getSlot() { } /** - * optional uint32 slot = 7; + * optional uint32 slot = 10; * @param value the slot to set * @return this */ @@ -129,7 +129,7 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 80); output.writeUInt32NoTag(slot); } } @@ -150,7 +150,7 @@ public ChangeLineupLeaderCsReq mergeFrom(final ProtoSource input) throws IOExcep int tag = input.readTag(); while (true) { switch (tag) { - case 56: { + case 80: { // slot slot = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/ChangeLineupLeaderScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChangeLineupLeaderScRspOuterClass.java index b34a5c650..89a8cebfa 100644 --- a/src/generated/main/emu/lunarcore/proto/ChangeLineupLeaderScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ChangeLineupLeaderScRspOuterClass.java @@ -19,12 +19,12 @@ public static final class ChangeLineupLeaderScRsp extends ProtoMessageoptional uint32 slot = 3; + * optional uint32 slot = 1; */ private int slot; /** - * optional uint32 retcode = 6; + * optional uint32 retcode = 15; */ private int retcode; @@ -39,7 +39,7 @@ public static ChangeLineupLeaderScRsp newInstance() { } /** - * optional uint32 slot = 3; + * optional uint32 slot = 1; * @return whether the slot field is set */ public boolean hasSlot() { @@ -47,7 +47,7 @@ public boolean hasSlot() { } /** - * optional uint32 slot = 3; + * optional uint32 slot = 1; * @return this */ public ChangeLineupLeaderScRsp clearSlot() { @@ -57,7 +57,7 @@ public ChangeLineupLeaderScRsp clearSlot() { } /** - * optional uint32 slot = 3; + * optional uint32 slot = 1; * @return the slot */ public int getSlot() { @@ -65,7 +65,7 @@ public int getSlot() { } /** - * optional uint32 slot = 3; + * optional uint32 slot = 1; * @param value the slot to set * @return this */ @@ -76,7 +76,7 @@ public ChangeLineupLeaderScRsp setSlot(final int value) { } /** - * optional uint32 retcode = 6; + * optional uint32 retcode = 15; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -84,7 +84,7 @@ public boolean hasRetcode() { } /** - * optional uint32 retcode = 6; + * optional uint32 retcode = 15; * @return this */ public ChangeLineupLeaderScRsp clearRetcode() { @@ -94,7 +94,7 @@ public ChangeLineupLeaderScRsp clearRetcode() { } /** - * optional uint32 retcode = 6; + * optional uint32 retcode = 15; * @return the retcode */ public int getRetcode() { @@ -102,7 +102,7 @@ public int getRetcode() { } /** - * optional uint32 retcode = 6; + * optional uint32 retcode = 15; * @param value the retcode to set * @return this */ @@ -177,11 +177,11 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 8); output.writeUInt32NoTag(slot); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 120); output.writeUInt32NoTag(retcode); } } @@ -205,16 +205,16 @@ public ChangeLineupLeaderScRsp mergeFrom(final ProtoSource input) throws IOExcep int tag = input.readTag(); while (true) { switch (tag) { - case 24: { + case 8: { // slot slot = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 48) { + if (tag != 120) { break; } } - case 48: { + case 120: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/ChatOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChatOuterClass.java index 3ca0ebf1b..72492167f 100644 --- a/src/generated/main/emu/lunarcore/proto/ChatOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ChatOuterClass.java @@ -25,22 +25,22 @@ public static final class Chat extends ProtoMessage implements Cloneable { private long sentTime; /** - * optional uint32 emote = 1; + * optional uint32 sender_uid = 1; */ - private int emote; + private int senderUid; /** - * optional uint32 sender_uid = 15; + * optional uint32 emote = 11; */ - private int senderUid; + private int emote; /** - * optional .MsgType msg_type = 4; + * optional .MsgType msg_type = 8; */ private int msgType; /** - * optional string text = 8; + * optional string text = 2; */ private final Utf8String text = Utf8String.newEmptyInstance(); @@ -92,81 +92,81 @@ public Chat setSentTime(final long value) { } /** - * optional uint32 emote = 1; - * @return whether the emote field is set + * optional uint32 sender_uid = 1; + * @return whether the senderUid field is set */ - public boolean hasEmote() { + public boolean hasSenderUid() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 emote = 1; + * optional uint32 sender_uid = 1; * @return this */ - public Chat clearEmote() { + public Chat clearSenderUid() { bitField0_ &= ~0x00000002; - emote = 0; + senderUid = 0; return this; } /** - * optional uint32 emote = 1; - * @return the emote + * optional uint32 sender_uid = 1; + * @return the senderUid */ - public int getEmote() { - return emote; + public int getSenderUid() { + return senderUid; } /** - * optional uint32 emote = 1; - * @param value the emote to set + * optional uint32 sender_uid = 1; + * @param value the senderUid to set * @return this */ - public Chat setEmote(final int value) { + public Chat setSenderUid(final int value) { bitField0_ |= 0x00000002; - emote = value; + senderUid = value; return this; } /** - * optional uint32 sender_uid = 15; - * @return whether the senderUid field is set + * optional uint32 emote = 11; + * @return whether the emote field is set */ - public boolean hasSenderUid() { + public boolean hasEmote() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 sender_uid = 15; + * optional uint32 emote = 11; * @return this */ - public Chat clearSenderUid() { + public Chat clearEmote() { bitField0_ &= ~0x00000004; - senderUid = 0; + emote = 0; return this; } /** - * optional uint32 sender_uid = 15; - * @return the senderUid + * optional uint32 emote = 11; + * @return the emote */ - public int getSenderUid() { - return senderUid; + public int getEmote() { + return emote; } /** - * optional uint32 sender_uid = 15; - * @param value the senderUid to set + * optional uint32 emote = 11; + * @param value the emote to set * @return this */ - public Chat setSenderUid(final int value) { + public Chat setEmote(final int value) { bitField0_ |= 0x00000004; - senderUid = value; + emote = value; return this; } /** - * optional .MsgType msg_type = 4; + * optional .MsgType msg_type = 8; * @return whether the msgType field is set */ public boolean hasMsgType() { @@ -174,7 +174,7 @@ public boolean hasMsgType() { } /** - * optional .MsgType msg_type = 4; + * optional .MsgType msg_type = 8; * @return this */ public Chat clearMsgType() { @@ -184,7 +184,7 @@ public Chat clearMsgType() { } /** - * optional .MsgType msg_type = 4; + * optional .MsgType msg_type = 8; * @return the msgType */ public MsgTypeOuterClass.MsgType getMsgType() { @@ -217,7 +217,7 @@ public Chat setMsgTypeValue(final int value) { } /** - * optional .MsgType msg_type = 4; + * optional .MsgType msg_type = 8; * @param value the msgType to set * @return this */ @@ -228,7 +228,7 @@ public Chat setMsgType(final MsgTypeOuterClass.MsgType value) { } /** - * optional string text = 8; + * optional string text = 2; * @return whether the text field is set */ public boolean hasText() { @@ -236,7 +236,7 @@ public boolean hasText() { } /** - * optional string text = 8; + * optional string text = 2; * @return this */ public Chat clearText() { @@ -246,7 +246,7 @@ public Chat clearText() { } /** - * optional string text = 8; + * optional string text = 2; * @return the text */ public String getText() { @@ -254,7 +254,7 @@ public String getText() { } /** - * optional string text = 8; + * optional string text = 2; * @return internal {@code Utf8String} representation of text for reading */ public Utf8String getTextBytes() { @@ -262,7 +262,7 @@ public Utf8String getTextBytes() { } /** - * optional string text = 8; + * optional string text = 2; * @return internal {@code Utf8String} representation of text for modifications */ public Utf8String getMutableTextBytes() { @@ -271,7 +271,7 @@ public Utf8String getMutableTextBytes() { } /** - * optional string text = 8; + * optional string text = 2; * @param value the text to set * @return this */ @@ -282,7 +282,7 @@ public Chat setText(final CharSequence value) { } /** - * optional string text = 8; + * optional string text = 2; * @param value the text to set * @return this */ @@ -298,8 +298,8 @@ public Chat copyFrom(final Chat other) { if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; sentTime = other.sentTime; - emote = other.emote; senderUid = other.senderUid; + emote = other.emote; msgType = other.msgType; text.copyFrom(other.text); } @@ -315,12 +315,12 @@ public Chat mergeFrom(final Chat other) { if (other.hasSentTime()) { setSentTime(other.sentTime); } - if (other.hasEmote()) { - setEmote(other.emote); - } if (other.hasSenderUid()) { setSenderUid(other.senderUid); } + if (other.hasEmote()) { + setEmote(other.emote); + } if (other.hasMsgType()) { setMsgTypeValue(other.msgType); } @@ -338,8 +338,8 @@ public Chat clear() { cachedSize = -1; bitField0_ = 0; sentTime = 0L; - emote = 0; senderUid = 0; + emote = 0; msgType = 0; text.clear(); return this; @@ -367,8 +367,8 @@ public boolean equals(Object o) { Chat other = (Chat) o; return bitField0_ == other.bitField0_ && (!hasSentTime() || sentTime == other.sentTime) - && (!hasEmote() || emote == other.emote) && (!hasSenderUid() || senderUid == other.senderUid) + && (!hasEmote() || emote == other.emote) && (!hasMsgType() || msgType == other.msgType) && (!hasText() || text.equals(other.text)); } @@ -381,18 +381,18 @@ public void writeTo(final ProtoSink output) throws IOException { } if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 8); - output.writeUInt32NoTag(emote); + output.writeUInt32NoTag(senderUid); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 120); - output.writeUInt32NoTag(senderUid); + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(emote); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 32); + output.writeRawByte((byte) 64); output.writeEnumNoTag(msgType); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 66); + output.writeRawByte((byte) 18); output.writeStringNoTag(text); } } @@ -404,10 +404,10 @@ protected int computeSerializedSize() { size += 1 + ProtoSink.computeUInt64SizeNoTag(sentTime); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(emote); + size += 1 + ProtoSink.computeUInt32SizeNoTag(senderUid); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(senderUid); + size += 1 + ProtoSink.computeUInt32SizeNoTag(emote); } if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeEnumSizeNoTag(msgType); @@ -435,24 +435,24 @@ public Chat mergeFrom(final ProtoSource input) throws IOException { } } case 8: { - // emote - emote = input.readUInt32(); + // senderUid + senderUid = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 120) { + if (tag != 88) { break; } } - case 120: { - // senderUid - senderUid = input.readUInt32(); + case 88: { + // emote + emote = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 32) { + if (tag != 64) { break; } } - case 32: { + case 64: { // msgType final int value = input.readInt32(); if (MsgTypeOuterClass.MsgType.forNumber(value) != null) { @@ -460,11 +460,11 @@ public Chat mergeFrom(final ProtoSource input) throws IOException { bitField0_ |= 0x00000008; } tag = input.readTag(); - if (tag != 66) { + if (tag != 18) { break; } } - case 66: { + case 18: { // text input.readString(text); bitField0_ |= 0x00000010; @@ -494,10 +494,10 @@ public void writeTo(final JsonSink output) throws IOException { output.writeUInt64(FieldNames.sentTime, sentTime); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.emote, emote); + output.writeUInt32(FieldNames.senderUid, senderUid); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.senderUid, senderUid); + output.writeUInt32(FieldNames.emote, emote); } if ((bitField0_ & 0x00000008) != 0) { output.writeEnum(FieldNames.msgType, msgType, MsgTypeOuterClass.MsgType.converter()); @@ -527,10 +527,11 @@ public Chat mergeFrom(final JsonSource input) throws IOException { } break; } - case 96633208: { - if (input.isAtField(FieldNames.emote)) { + case 32180699: + case 997911366: { + if (input.isAtField(FieldNames.senderUid)) { if (!input.trySkipNullValue()) { - emote = input.readUInt32(); + senderUid = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -538,11 +539,10 @@ public Chat mergeFrom(final JsonSource input) throws IOException { } break; } - case 32180699: - case 997911366: { - if (input.isAtField(FieldNames.senderUid)) { + case 96633208: { + if (input.isAtField(FieldNames.emote)) { if (!input.trySkipNullValue()) { - senderUid = input.readUInt32(); + emote = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -632,10 +632,10 @@ public Chat create() { static class FieldNames { static final FieldName sentTime = FieldName.forField("sentTime", "sent_time"); - static final FieldName emote = FieldName.forField("emote"); - static final FieldName senderUid = FieldName.forField("senderUid", "sender_uid"); + static final FieldName emote = FieldName.forField("emote"); + static final FieldName msgType = FieldName.forField("msgType", "msg_type"); static final FieldName text = FieldName.forField("text"); diff --git a/src/generated/main/emu/lunarcore/proto/ClientDownloadDataScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/ClientDownloadDataScNotifyOuterClass.java index 0e01e78d4..18115eca4 100644 --- a/src/generated/main/emu/lunarcore/proto/ClientDownloadDataScNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ClientDownloadDataScNotifyOuterClass.java @@ -20,7 +20,7 @@ public static final class ClientDownloadDataScNotify extends ProtoMessageoptional .ClientDownloadDataScNotify.ClientDownloadData download_data = 5; + * optional .ClientDownloadDataScNotify.ClientDownloadData download_data = 6; */ private final ClientDownloadData downloadData = ClientDownloadData.newInstance(); @@ -35,7 +35,7 @@ public static ClientDownloadDataScNotify newInstance() { } /** - * optional .ClientDownloadDataScNotify.ClientDownloadData download_data = 5; + * optional .ClientDownloadDataScNotify.ClientDownloadData download_data = 6; * @return whether the downloadData field is set */ public boolean hasDownloadData() { @@ -43,7 +43,7 @@ public boolean hasDownloadData() { } /** - * optional .ClientDownloadDataScNotify.ClientDownloadData download_data = 5; + * optional .ClientDownloadDataScNotify.ClientDownloadData download_data = 6; * @return this */ public ClientDownloadDataScNotify clearDownloadData() { @@ -53,7 +53,7 @@ public ClientDownloadDataScNotify clearDownloadData() { } /** - * optional .ClientDownloadDataScNotify.ClientDownloadData download_data = 5; + * optional .ClientDownloadDataScNotify.ClientDownloadData download_data = 6; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -67,7 +67,7 @@ public ClientDownloadData getDownloadData() { } /** - * optional .ClientDownloadDataScNotify.ClientDownloadData download_data = 5; + * optional .ClientDownloadDataScNotify.ClientDownloadData download_data = 6; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -81,7 +81,7 @@ public ClientDownloadData getMutableDownloadData() { } /** - * optional .ClientDownloadDataScNotify.ClientDownloadData download_data = 5; + * optional .ClientDownloadDataScNotify.ClientDownloadData download_data = 6; * @param value the downloadData to set * @return this */ @@ -151,7 +151,7 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 42); + output.writeRawByte((byte) 50); output.writeMessageNoTag(downloadData); } } @@ -172,7 +172,7 @@ public ClientDownloadDataScNotify mergeFrom(final ProtoSource input) throws IOEx int tag = input.readTag(); while (true) { switch (tag) { - case 42: { + case 50: { // downloadData input.readMessage(downloadData); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/ClientMailOuterClass.java b/src/generated/main/emu/lunarcore/proto/ClientMailOuterClass.java index 5458b802f..66e9fe87a 100644 --- a/src/generated/main/emu/lunarcore/proto/ClientMailOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ClientMailOuterClass.java @@ -21,52 +21,52 @@ public static final class ClientMail extends ProtoMessage implements private static final long serialVersionUID = 0L; /** - * optional int64 time = 11; + * optional int64 expire_time = 3; */ - private long time; + private long expireTime; /** - * optional int64 expire_time = 12; + * optional int64 time = 4; */ - private long expireTime; + private long time; /** - * optional uint32 id = 7; + * optional uint32 id = 13; */ private int id; /** - * optional uint32 template_id = 8; + * optional uint32 template_id = 14; */ private int templateId; /** - * optional bool is_read = 15; + * optional bool is_read = 10; */ private boolean isRead; /** - * optional .ItemList attachment = 10; + * optional .ItemList attachment = 5; */ private final ItemListOuterClass.ItemList attachment = ItemListOuterClass.ItemList.newInstance(); /** - * optional string sender = 2; + * optional string title = 8; */ - private final Utf8String sender = Utf8String.newEmptyInstance(); + private final Utf8String title = Utf8String.newEmptyInstance(); /** - * optional string content = 5; + * optional string content = 11; */ private final Utf8String content = Utf8String.newEmptyInstance(); /** - * optional string title = 9; + * optional string sender = 15; */ - private final Utf8String title = Utf8String.newEmptyInstance(); + private final Utf8String sender = Utf8String.newEmptyInstance(); /** - * repeated string para_list = 14; + * repeated string para_list = 1; */ private final RepeatedString paraList = RepeatedString.newEmptyInstance(); @@ -81,81 +81,81 @@ public static ClientMail newInstance() { } /** - * optional int64 time = 11; - * @return whether the time field is set + * optional int64 expire_time = 3; + * @return whether the expireTime field is set */ - public boolean hasTime() { + public boolean hasExpireTime() { return (bitField0_ & 0x00000001) != 0; } /** - * optional int64 time = 11; + * optional int64 expire_time = 3; * @return this */ - public ClientMail clearTime() { + public ClientMail clearExpireTime() { bitField0_ &= ~0x00000001; - time = 0L; + expireTime = 0L; return this; } /** - * optional int64 time = 11; - * @return the time + * optional int64 expire_time = 3; + * @return the expireTime */ - public long getTime() { - return time; + public long getExpireTime() { + return expireTime; } /** - * optional int64 time = 11; - * @param value the time to set + * optional int64 expire_time = 3; + * @param value the expireTime to set * @return this */ - public ClientMail setTime(final long value) { + public ClientMail setExpireTime(final long value) { bitField0_ |= 0x00000001; - time = value; + expireTime = value; return this; } /** - * optional int64 expire_time = 12; - * @return whether the expireTime field is set + * optional int64 time = 4; + * @return whether the time field is set */ - public boolean hasExpireTime() { + public boolean hasTime() { return (bitField0_ & 0x00000002) != 0; } /** - * optional int64 expire_time = 12; + * optional int64 time = 4; * @return this */ - public ClientMail clearExpireTime() { + public ClientMail clearTime() { bitField0_ &= ~0x00000002; - expireTime = 0L; + time = 0L; return this; } /** - * optional int64 expire_time = 12; - * @return the expireTime + * optional int64 time = 4; + * @return the time */ - public long getExpireTime() { - return expireTime; + public long getTime() { + return time; } /** - * optional int64 expire_time = 12; - * @param value the expireTime to set + * optional int64 time = 4; + * @param value the time to set * @return this */ - public ClientMail setExpireTime(final long value) { + public ClientMail setTime(final long value) { bitField0_ |= 0x00000002; - expireTime = value; + time = value; return this; } /** - * optional uint32 id = 7; + * optional uint32 id = 13; * @return whether the id field is set */ public boolean hasId() { @@ -163,7 +163,7 @@ public boolean hasId() { } /** - * optional uint32 id = 7; + * optional uint32 id = 13; * @return this */ public ClientMail clearId() { @@ -173,7 +173,7 @@ public ClientMail clearId() { } /** - * optional uint32 id = 7; + * optional uint32 id = 13; * @return the id */ public int getId() { @@ -181,7 +181,7 @@ public int getId() { } /** - * optional uint32 id = 7; + * optional uint32 id = 13; * @param value the id to set * @return this */ @@ -192,7 +192,7 @@ public ClientMail setId(final int value) { } /** - * optional uint32 template_id = 8; + * optional uint32 template_id = 14; * @return whether the templateId field is set */ public boolean hasTemplateId() { @@ -200,7 +200,7 @@ public boolean hasTemplateId() { } /** - * optional uint32 template_id = 8; + * optional uint32 template_id = 14; * @return this */ public ClientMail clearTemplateId() { @@ -210,7 +210,7 @@ public ClientMail clearTemplateId() { } /** - * optional uint32 template_id = 8; + * optional uint32 template_id = 14; * @return the templateId */ public int getTemplateId() { @@ -218,7 +218,7 @@ public int getTemplateId() { } /** - * optional uint32 template_id = 8; + * optional uint32 template_id = 14; * @param value the templateId to set * @return this */ @@ -229,7 +229,7 @@ public ClientMail setTemplateId(final int value) { } /** - * optional bool is_read = 15; + * optional bool is_read = 10; * @return whether the isRead field is set */ public boolean hasIsRead() { @@ -237,7 +237,7 @@ public boolean hasIsRead() { } /** - * optional bool is_read = 15; + * optional bool is_read = 10; * @return this */ public ClientMail clearIsRead() { @@ -247,7 +247,7 @@ public ClientMail clearIsRead() { } /** - * optional bool is_read = 15; + * optional bool is_read = 10; * @return the isRead */ public boolean getIsRead() { @@ -255,7 +255,7 @@ public boolean getIsRead() { } /** - * optional bool is_read = 15; + * optional bool is_read = 10; * @param value the isRead to set * @return this */ @@ -266,7 +266,7 @@ public ClientMail setIsRead(final boolean value) { } /** - * optional .ItemList attachment = 10; + * optional .ItemList attachment = 5; * @return whether the attachment field is set */ public boolean hasAttachment() { @@ -274,7 +274,7 @@ public boolean hasAttachment() { } /** - * optional .ItemList attachment = 10; + * optional .ItemList attachment = 5; * @return this */ public ClientMail clearAttachment() { @@ -284,7 +284,7 @@ public ClientMail clearAttachment() { } /** - * optional .ItemList attachment = 10; + * optional .ItemList attachment = 5; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -298,7 +298,7 @@ public ItemListOuterClass.ItemList getAttachment() { } /** - * optional .ItemList attachment = 10; + * optional .ItemList attachment = 5; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -312,7 +312,7 @@ public ItemListOuterClass.ItemList getMutableAttachment() { } /** - * optional .ItemList attachment = 10; + * optional .ItemList attachment = 5; * @param value the attachment to set * @return this */ @@ -323,72 +323,72 @@ public ClientMail setAttachment(final ItemListOuterClass.ItemList value) { } /** - * optional string sender = 2; - * @return whether the sender field is set + * optional string title = 8; + * @return whether the title field is set */ - public boolean hasSender() { + public boolean hasTitle() { return (bitField0_ & 0x00000040) != 0; } /** - * optional string sender = 2; + * optional string title = 8; * @return this */ - public ClientMail clearSender() { + public ClientMail clearTitle() { bitField0_ &= ~0x00000040; - sender.clear(); + title.clear(); return this; } /** - * optional string sender = 2; - * @return the sender + * optional string title = 8; + * @return the title */ - public String getSender() { - return sender.getString(); + public String getTitle() { + return title.getString(); } /** - * optional string sender = 2; - * @return internal {@code Utf8String} representation of sender for reading + * optional string title = 8; + * @return internal {@code Utf8String} representation of title for reading */ - public Utf8String getSenderBytes() { - return this.sender; + public Utf8String getTitleBytes() { + return this.title; } /** - * optional string sender = 2; - * @return internal {@code Utf8String} representation of sender for modifications + * optional string title = 8; + * @return internal {@code Utf8String} representation of title for modifications */ - public Utf8String getMutableSenderBytes() { + public Utf8String getMutableTitleBytes() { bitField0_ |= 0x00000040; - return this.sender; + return this.title; } /** - * optional string sender = 2; - * @param value the sender to set + * optional string title = 8; + * @param value the title to set * @return this */ - public ClientMail setSender(final CharSequence value) { + public ClientMail setTitle(final CharSequence value) { bitField0_ |= 0x00000040; - sender.copyFrom(value); + title.copyFrom(value); return this; } /** - * optional string sender = 2; - * @param value the sender to set + * optional string title = 8; + * @param value the title to set * @return this */ - public ClientMail setSender(final Utf8String value) { + public ClientMail setTitle(final Utf8String value) { bitField0_ |= 0x00000040; - sender.copyFrom(value); + title.copyFrom(value); return this; } /** - * optional string content = 5; + * optional string content = 11; * @return whether the content field is set */ public boolean hasContent() { @@ -396,7 +396,7 @@ public boolean hasContent() { } /** - * optional string content = 5; + * optional string content = 11; * @return this */ public ClientMail clearContent() { @@ -406,7 +406,7 @@ public ClientMail clearContent() { } /** - * optional string content = 5; + * optional string content = 11; * @return the content */ public String getContent() { @@ -414,7 +414,7 @@ public String getContent() { } /** - * optional string content = 5; + * optional string content = 11; * @return internal {@code Utf8String} representation of content for reading */ public Utf8String getContentBytes() { @@ -422,7 +422,7 @@ public Utf8String getContentBytes() { } /** - * optional string content = 5; + * optional string content = 11; * @return internal {@code Utf8String} representation of content for modifications */ public Utf8String getMutableContentBytes() { @@ -431,7 +431,7 @@ public Utf8String getMutableContentBytes() { } /** - * optional string content = 5; + * optional string content = 11; * @param value the content to set * @return this */ @@ -442,7 +442,7 @@ public ClientMail setContent(final CharSequence value) { } /** - * optional string content = 5; + * optional string content = 11; * @param value the content to set * @return this */ @@ -453,72 +453,72 @@ public ClientMail setContent(final Utf8String value) { } /** - * optional string title = 9; - * @return whether the title field is set + * optional string sender = 15; + * @return whether the sender field is set */ - public boolean hasTitle() { + public boolean hasSender() { return (bitField0_ & 0x00000100) != 0; } /** - * optional string title = 9; + * optional string sender = 15; * @return this */ - public ClientMail clearTitle() { + public ClientMail clearSender() { bitField0_ &= ~0x00000100; - title.clear(); + sender.clear(); return this; } /** - * optional string title = 9; - * @return the title + * optional string sender = 15; + * @return the sender */ - public String getTitle() { - return title.getString(); + public String getSender() { + return sender.getString(); } /** - * optional string title = 9; - * @return internal {@code Utf8String} representation of title for reading + * optional string sender = 15; + * @return internal {@code Utf8String} representation of sender for reading */ - public Utf8String getTitleBytes() { - return this.title; + public Utf8String getSenderBytes() { + return this.sender; } /** - * optional string title = 9; - * @return internal {@code Utf8String} representation of title for modifications + * optional string sender = 15; + * @return internal {@code Utf8String} representation of sender for modifications */ - public Utf8String getMutableTitleBytes() { + public Utf8String getMutableSenderBytes() { bitField0_ |= 0x00000100; - return this.title; + return this.sender; } /** - * optional string title = 9; - * @param value the title to set + * optional string sender = 15; + * @param value the sender to set * @return this */ - public ClientMail setTitle(final CharSequence value) { + public ClientMail setSender(final CharSequence value) { bitField0_ |= 0x00000100; - title.copyFrom(value); + sender.copyFrom(value); return this; } /** - * optional string title = 9; - * @param value the title to set + * optional string sender = 15; + * @param value the sender to set * @return this */ - public ClientMail setTitle(final Utf8String value) { + public ClientMail setSender(final Utf8String value) { bitField0_ |= 0x00000100; - title.copyFrom(value); + sender.copyFrom(value); return this; } /** - * repeated string para_list = 14; + * repeated string para_list = 1; * @return whether the paraList field is set */ public boolean hasParaList() { @@ -526,7 +526,7 @@ public boolean hasParaList() { } /** - * repeated string para_list = 14; + * repeated string para_list = 1; * @return this */ public ClientMail clearParaList() { @@ -536,7 +536,7 @@ public ClientMail clearParaList() { } /** - * repeated string para_list = 14; + * repeated string para_list = 1; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -550,7 +550,7 @@ public RepeatedString getParaList() { } /** - * repeated string para_list = 14; + * repeated string para_list = 1; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -564,7 +564,7 @@ public RepeatedString getMutableParaList() { } /** - * repeated string para_list = 14; + * repeated string para_list = 1; * @param value the paraList to add * @return this */ @@ -575,7 +575,7 @@ public ClientMail addParaList(final CharSequence value) { } /** - * repeated string para_list = 14; + * repeated string para_list = 1; * @param values the paraList to add * @return this */ @@ -590,15 +590,15 @@ public ClientMail copyFrom(final ClientMail other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - time = other.time; expireTime = other.expireTime; + time = other.time; id = other.id; templateId = other.templateId; isRead = other.isRead; attachment.copyFrom(other.attachment); - sender.copyFrom(other.sender); - content.copyFrom(other.content); title.copyFrom(other.title); + content.copyFrom(other.content); + sender.copyFrom(other.sender); paraList.copyFrom(other.paraList); } return this; @@ -610,12 +610,12 @@ public ClientMail mergeFrom(final ClientMail other) { return this; } cachedSize = -1; - if (other.hasTime()) { - setTime(other.time); - } if (other.hasExpireTime()) { setExpireTime(other.expireTime); } + if (other.hasTime()) { + setTime(other.time); + } if (other.hasId()) { setId(other.id); } @@ -628,14 +628,14 @@ public ClientMail mergeFrom(final ClientMail other) { if (other.hasAttachment()) { getMutableAttachment().mergeFrom(other.attachment); } - if (other.hasSender()) { - getMutableSenderBytes().copyFrom(other.sender); + if (other.hasTitle()) { + getMutableTitleBytes().copyFrom(other.title); } if (other.hasContent()) { getMutableContentBytes().copyFrom(other.content); } - if (other.hasTitle()) { - getMutableTitleBytes().copyFrom(other.title); + if (other.hasSender()) { + getMutableSenderBytes().copyFrom(other.sender); } if (other.hasParaList()) { getMutableParaList().addAll(other.paraList); @@ -650,15 +650,15 @@ public ClientMail clear() { } cachedSize = -1; bitField0_ = 0; - time = 0L; expireTime = 0L; + time = 0L; id = 0; templateId = 0; isRead = false; attachment.clear(); - sender.clear(); - content.clear(); title.clear(); + content.clear(); + sender.clear(); paraList.clear(); return this; } @@ -671,9 +671,9 @@ public ClientMail clearQuick() { cachedSize = -1; bitField0_ = 0; attachment.clearQuick(); - sender.clear(); - content.clear(); title.clear(); + content.clear(); + sender.clear(); paraList.clear(); return this; } @@ -688,59 +688,59 @@ public boolean equals(Object o) { } ClientMail other = (ClientMail) o; return bitField0_ == other.bitField0_ - && (!hasTime() || time == other.time) && (!hasExpireTime() || expireTime == other.expireTime) + && (!hasTime() || time == other.time) && (!hasId() || id == other.id) && (!hasTemplateId() || templateId == other.templateId) && (!hasIsRead() || isRead == other.isRead) && (!hasAttachment() || attachment.equals(other.attachment)) - && (!hasSender() || sender.equals(other.sender)) - && (!hasContent() || content.equals(other.content)) && (!hasTitle() || title.equals(other.title)) + && (!hasContent() || content.equals(other.content)) + && (!hasSender() || sender.equals(other.sender)) && (!hasParaList() || paraList.equals(other.paraList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 88); - output.writeInt64NoTag(time); + output.writeRawByte((byte) 24); + output.writeInt64NoTag(expireTime); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 96); - output.writeInt64NoTag(expireTime); + output.writeRawByte((byte) 32); + output.writeInt64NoTag(time); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 104); output.writeUInt32NoTag(id); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 112); output.writeUInt32NoTag(templateId); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 80); output.writeBoolNoTag(isRead); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 82); + output.writeRawByte((byte) 42); output.writeMessageNoTag(attachment); } if ((bitField0_ & 0x00000040) != 0) { - output.writeRawByte((byte) 18); - output.writeStringNoTag(sender); + output.writeRawByte((byte) 66); + output.writeStringNoTag(title); } if ((bitField0_ & 0x00000080) != 0) { - output.writeRawByte((byte) 42); + output.writeRawByte((byte) 90); output.writeStringNoTag(content); } if ((bitField0_ & 0x00000100) != 0) { - output.writeRawByte((byte) 74); - output.writeStringNoTag(title); + output.writeRawByte((byte) 122); + output.writeStringNoTag(sender); } if ((bitField0_ & 0x00000200) != 0) { for (int i = 0; i < paraList.length(); i++) { - output.writeRawByte((byte) 114); + output.writeRawByte((byte) 10); output.writeStringNoTag(paraList.get(i)); } } @@ -750,10 +750,10 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeInt64SizeNoTag(time); + size += 1 + ProtoSink.computeInt64SizeNoTag(expireTime); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeInt64SizeNoTag(expireTime); + size += 1 + ProtoSink.computeInt64SizeNoTag(time); } if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(id); @@ -768,13 +768,13 @@ protected int computeSerializedSize() { size += 1 + ProtoSink.computeMessageSizeNoTag(attachment); } if ((bitField0_ & 0x00000040) != 0) { - size += 1 + ProtoSink.computeStringSizeNoTag(sender); + size += 1 + ProtoSink.computeStringSizeNoTag(title); } if ((bitField0_ & 0x00000080) != 0) { size += 1 + ProtoSink.computeStringSizeNoTag(content); } if ((bitField0_ & 0x00000100) != 0) { - size += 1 + ProtoSink.computeStringSizeNoTag(title); + size += 1 + ProtoSink.computeStringSizeNoTag(sender); } if ((bitField0_ & 0x00000200) != 0) { size += (1 * paraList.length()) + ProtoSink.computeRepeatedStringSizeNoTag(paraList); @@ -789,88 +789,88 @@ public ClientMail mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 88: { - // time - time = input.readInt64(); + case 24: { + // expireTime + expireTime = input.readInt64(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 96) { + if (tag != 32) { break; } } - case 96: { - // expireTime - expireTime = input.readInt64(); + case 32: { + // time + time = input.readInt64(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 56) { + if (tag != 104) { break; } } - case 56: { + case 104: { // id id = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 64) { + if (tag != 112) { break; } } - case 64: { + case 112: { // templateId templateId = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 120) { + if (tag != 80) { break; } } - case 120: { + case 80: { // isRead isRead = input.readBool(); bitField0_ |= 0x00000010; tag = input.readTag(); - if (tag != 82) { + if (tag != 42) { break; } } - case 82: { + case 42: { // attachment input.readMessage(attachment); bitField0_ |= 0x00000020; tag = input.readTag(); - if (tag != 18) { + if (tag != 66) { break; } } - case 18: { - // sender - input.readString(sender); + case 66: { + // title + input.readString(title); bitField0_ |= 0x00000040; tag = input.readTag(); - if (tag != 42) { + if (tag != 90) { break; } } - case 42: { + case 90: { // content input.readString(content); bitField0_ |= 0x00000080; tag = input.readTag(); - if (tag != 74) { + if (tag != 122) { break; } } - case 74: { - // title - input.readString(title); + case 122: { + // sender + input.readString(sender); bitField0_ |= 0x00000100; tag = input.readTag(); - if (tag != 114) { + if (tag != 10) { break; } } - case 114: { + case 10: { // paraList tag = input.readRepeatedString(paraList, tag); bitField0_ |= 0x00000200; @@ -896,10 +896,10 @@ public ClientMail mergeFrom(final ProtoSource input) throws IOException { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeInt64(FieldNames.time, time); + output.writeInt64(FieldNames.expireTime, expireTime); } if ((bitField0_ & 0x00000002) != 0) { - output.writeInt64(FieldNames.expireTime, expireTime); + output.writeInt64(FieldNames.time, time); } if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.id, id); @@ -914,13 +914,13 @@ public void writeTo(final JsonSink output) throws IOException { output.writeMessage(FieldNames.attachment, attachment); } if ((bitField0_ & 0x00000040) != 0) { - output.writeString(FieldNames.sender, sender); + output.writeString(FieldNames.title, title); } if ((bitField0_ & 0x00000080) != 0) { output.writeString(FieldNames.content, content); } if ((bitField0_ & 0x00000100) != 0) { - output.writeString(FieldNames.title, title); + output.writeString(FieldNames.sender, sender); } if ((bitField0_ & 0x00000200) != 0) { output.writeRepeatedString(FieldNames.paraList, paraList); @@ -935,10 +935,11 @@ public ClientMail mergeFrom(final JsonSource input) throws IOException { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 3560141: { - if (input.isAtField(FieldNames.time)) { + case -834724724: + case -96179731: { + if (input.isAtField(FieldNames.expireTime)) { if (!input.trySkipNullValue()) { - time = input.readInt64(); + expireTime = input.readInt64(); bitField0_ |= 0x00000001; } } else { @@ -946,11 +947,10 @@ public ClientMail mergeFrom(final JsonSource input) throws IOException { } break; } - case -834724724: - case -96179731: { - if (input.isAtField(FieldNames.expireTime)) { + case 3560141: { + if (input.isAtField(FieldNames.time)) { if (!input.trySkipNullValue()) { - expireTime = input.readInt64(); + time = input.readInt64(); bitField0_ |= 0x00000002; } } else { @@ -1004,10 +1004,10 @@ public ClientMail mergeFrom(final JsonSource input) throws IOException { } break; } - case -905962955: { - if (input.isAtField(FieldNames.sender)) { + case 110371416: { + if (input.isAtField(FieldNames.title)) { if (!input.trySkipNullValue()) { - input.readString(sender); + input.readString(title); bitField0_ |= 0x00000040; } } else { @@ -1026,10 +1026,10 @@ public ClientMail mergeFrom(final JsonSource input) throws IOException { } break; } - case 110371416: { - if (input.isAtField(FieldNames.title)) { + case -905962955: { + if (input.isAtField(FieldNames.sender)) { if (!input.trySkipNullValue()) { - input.readString(title); + input.readString(sender); bitField0_ |= 0x00000100; } } else { @@ -1101,10 +1101,10 @@ public ClientMail create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName time = FieldName.forField("time"); - static final FieldName expireTime = FieldName.forField("expireTime", "expire_time"); + static final FieldName time = FieldName.forField("time"); + static final FieldName id = FieldName.forField("id"); static final FieldName templateId = FieldName.forField("templateId", "template_id"); @@ -1113,11 +1113,11 @@ static class FieldNames { static final FieldName attachment = FieldName.forField("attachment"); - static final FieldName sender = FieldName.forField("sender"); + static final FieldName title = FieldName.forField("title"); static final FieldName content = FieldName.forField("content"); - static final FieldName title = FieldName.forField("title"); + static final FieldName sender = FieldName.forField("sender"); static final FieldName paraList = FieldName.forField("paraList", "para_list"); } diff --git a/src/generated/main/emu/lunarcore/proto/ClientUploadDataOuterClass.java b/src/generated/main/emu/lunarcore/proto/ClientUploadDataOuterClass.java deleted file mode 100644 index dc30da7bf..000000000 --- a/src/generated/main/emu/lunarcore/proto/ClientUploadDataOuterClass.java +++ /dev/null @@ -1,398 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; -import us.hebi.quickbuf.Utf8String; - -public final class ClientUploadDataOuterClass { - /** - * Protobuf type {@code ClientUploadData} - */ - public static final class ClientUploadData extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional string tag = 1; - */ - private final Utf8String tag_ = Utf8String.newEmptyInstance(); - - /** - * optional string value = 2; - */ - private final Utf8String value_ = Utf8String.newEmptyInstance(); - - private ClientUploadData() { - } - - /** - * @return a new empty instance of {@code ClientUploadData} - */ - public static ClientUploadData newInstance() { - return new ClientUploadData(); - } - - /** - * optional string tag = 1; - * @return whether the tag_ field is set - */ - public boolean hasTag() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional string tag = 1; - * @return this - */ - public ClientUploadData clearTag() { - bitField0_ &= ~0x00000001; - tag_.clear(); - return this; - } - - /** - * optional string tag = 1; - * @return the tag_ - */ - public String getTag() { - return tag_.getString(); - } - - /** - * optional string tag = 1; - * @return internal {@code Utf8String} representation of tag_ for reading - */ - public Utf8String getTagBytes() { - return this.tag_; - } - - /** - * optional string tag = 1; - * @return internal {@code Utf8String} representation of tag_ for modifications - */ - public Utf8String getMutableTagBytes() { - bitField0_ |= 0x00000001; - return this.tag_; - } - - /** - * optional string tag = 1; - * @param value the tag_ to set - * @return this - */ - public ClientUploadData setTag(final CharSequence value) { - bitField0_ |= 0x00000001; - tag_.copyFrom(value); - return this; - } - - /** - * optional string tag = 1; - * @param value the tag_ to set - * @return this - */ - public ClientUploadData setTag(final Utf8String value) { - bitField0_ |= 0x00000001; - tag_.copyFrom(value); - return this; - } - - /** - * optional string value = 2; - * @return whether the value_ field is set - */ - public boolean hasValue() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional string value = 2; - * @return this - */ - public ClientUploadData clearValue() { - bitField0_ &= ~0x00000002; - value_.clear(); - return this; - } - - /** - * optional string value = 2; - * @return the value_ - */ - public String getValue() { - return value_.getString(); - } - - /** - * optional string value = 2; - * @return internal {@code Utf8String} representation of value_ for reading - */ - public Utf8String getValueBytes() { - return this.value_; - } - - /** - * optional string value = 2; - * @return internal {@code Utf8String} representation of value_ for modifications - */ - public Utf8String getMutableValueBytes() { - bitField0_ |= 0x00000002; - return this.value_; - } - - /** - * optional string value = 2; - * @param value the value_ to set - * @return this - */ - public ClientUploadData setValue(final CharSequence value) { - bitField0_ |= 0x00000002; - value_.copyFrom(value); - return this; - } - - /** - * optional string value = 2; - * @param value the value_ to set - * @return this - */ - public ClientUploadData setValue(final Utf8String value) { - bitField0_ |= 0x00000002; - value_.copyFrom(value); - return this; - } - - @Override - public ClientUploadData copyFrom(final ClientUploadData other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - tag_.copyFrom(other.tag_); - value_.copyFrom(other.value_); - } - return this; - } - - @Override - public ClientUploadData mergeFrom(final ClientUploadData other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasTag()) { - getMutableTagBytes().copyFrom(other.tag_); - } - if (other.hasValue()) { - getMutableValueBytes().copyFrom(other.value_); - } - return this; - } - - @Override - public ClientUploadData clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - tag_.clear(); - value_.clear(); - return this; - } - - @Override - public ClientUploadData clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - tag_.clear(); - value_.clear(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof ClientUploadData)) { - return false; - } - ClientUploadData other = (ClientUploadData) o; - return bitField0_ == other.bitField0_ - && (!hasTag() || tag_.equals(other.tag_)) - && (!hasValue() || value_.equals(other.value_)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 10); - output.writeStringNoTag(tag_); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 18); - output.writeStringNoTag(value_); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeStringSizeNoTag(tag_); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeStringSizeNoTag(value_); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public ClientUploadData mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 10: { - // tag_ - input.readString(tag_); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 18) { - break; - } - } - case 18: { - // value_ - input.readString(value_); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeString(FieldNames.tag_, tag_); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeString(FieldNames.value_, value_); - } - output.endObject(); - } - - @Override - public ClientUploadData mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 114586: { - if (input.isAtField(FieldNames.tag_)) { - if (!input.trySkipNullValue()) { - input.readString(tag_); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case 111972721: { - if (input.isAtField(FieldNames.value_)) { - if (!input.trySkipNullValue()) { - input.readString(value_); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public ClientUploadData clone() { - return new ClientUploadData().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static ClientUploadData parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new ClientUploadData(), data).checkInitialized(); - } - - public static ClientUploadData parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new ClientUploadData(), input).checkInitialized(); - } - - public static ClientUploadData parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new ClientUploadData(), input).checkInitialized(); - } - - /** - * @return factory for creating ClientUploadData messages - */ - public static MessageFactory getFactory() { - return ClientUploadDataFactory.INSTANCE; - } - - private enum ClientUploadDataFactory implements MessageFactory { - INSTANCE; - - @Override - public ClientUploadData create() { - return ClientUploadData.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName tag_ = FieldName.forField("tag"); - - static final FieldName value_ = FieldName.forField("value"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/ComposeItemCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/ComposeItemCsReqOuterClass.java index 08a7e5e1d..415e308c4 100644 --- a/src/generated/main/emu/lunarcore/proto/ComposeItemCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ComposeItemCsReqOuterClass.java @@ -19,17 +19,17 @@ public static final class ComposeItemCsReq extends ProtoMessageoptional uint32 compose_id = 5; + * optional uint32 count = 12; */ - private int composeId; + private int count; /** - * optional uint32 count = 9; + * optional uint32 compose_id = 13; */ - private int count; + private int composeId; /** - * optional .ItemCostList compose_item_list = 6; + * optional .ItemCostList compose_item_list = 1; */ private final ItemCostListOuterClass.ItemCostList composeItemList = ItemCostListOuterClass.ItemCostList.newInstance(); @@ -44,81 +44,81 @@ public static ComposeItemCsReq newInstance() { } /** - * optional uint32 compose_id = 5; - * @return whether the composeId field is set + * optional uint32 count = 12; + * @return whether the count field is set */ - public boolean hasComposeId() { + public boolean hasCount() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 compose_id = 5; + * optional uint32 count = 12; * @return this */ - public ComposeItemCsReq clearComposeId() { + public ComposeItemCsReq clearCount() { bitField0_ &= ~0x00000001; - composeId = 0; + count = 0; return this; } /** - * optional uint32 compose_id = 5; - * @return the composeId + * optional uint32 count = 12; + * @return the count */ - public int getComposeId() { - return composeId; + public int getCount() { + return count; } /** - * optional uint32 compose_id = 5; - * @param value the composeId to set + * optional uint32 count = 12; + * @param value the count to set * @return this */ - public ComposeItemCsReq setComposeId(final int value) { + public ComposeItemCsReq setCount(final int value) { bitField0_ |= 0x00000001; - composeId = value; + count = value; return this; } /** - * optional uint32 count = 9; - * @return whether the count field is set + * optional uint32 compose_id = 13; + * @return whether the composeId field is set */ - public boolean hasCount() { + public boolean hasComposeId() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 count = 9; + * optional uint32 compose_id = 13; * @return this */ - public ComposeItemCsReq clearCount() { + public ComposeItemCsReq clearComposeId() { bitField0_ &= ~0x00000002; - count = 0; + composeId = 0; return this; } /** - * optional uint32 count = 9; - * @return the count + * optional uint32 compose_id = 13; + * @return the composeId */ - public int getCount() { - return count; + public int getComposeId() { + return composeId; } /** - * optional uint32 count = 9; - * @param value the count to set + * optional uint32 compose_id = 13; + * @param value the composeId to set * @return this */ - public ComposeItemCsReq setCount(final int value) { + public ComposeItemCsReq setComposeId(final int value) { bitField0_ |= 0x00000002; - count = value; + composeId = value; return this; } /** - * optional .ItemCostList compose_item_list = 6; + * optional .ItemCostList compose_item_list = 1; * @return whether the composeItemList field is set */ public boolean hasComposeItemList() { @@ -126,7 +126,7 @@ public boolean hasComposeItemList() { } /** - * optional .ItemCostList compose_item_list = 6; + * optional .ItemCostList compose_item_list = 1; * @return this */ public ComposeItemCsReq clearComposeItemList() { @@ -136,7 +136,7 @@ public ComposeItemCsReq clearComposeItemList() { } /** - * optional .ItemCostList compose_item_list = 6; + * optional .ItemCostList compose_item_list = 1; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -150,7 +150,7 @@ public ItemCostListOuterClass.ItemCostList getComposeItemList() { } /** - * optional .ItemCostList compose_item_list = 6; + * optional .ItemCostList compose_item_list = 1; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -164,7 +164,7 @@ public ItemCostListOuterClass.ItemCostList getMutableComposeItemList() { } /** - * optional .ItemCostList compose_item_list = 6; + * optional .ItemCostList compose_item_list = 1; * @param value the composeItemList to set * @return this */ @@ -179,8 +179,8 @@ public ComposeItemCsReq copyFrom(final ComposeItemCsReq other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - composeId = other.composeId; count = other.count; + composeId = other.composeId; composeItemList.copyFrom(other.composeItemList); } return this; @@ -192,12 +192,12 @@ public ComposeItemCsReq mergeFrom(final ComposeItemCsReq other) { return this; } cachedSize = -1; - if (other.hasComposeId()) { - setComposeId(other.composeId); - } if (other.hasCount()) { setCount(other.count); } + if (other.hasComposeId()) { + setComposeId(other.composeId); + } if (other.hasComposeItemList()) { getMutableComposeItemList().mergeFrom(other.composeItemList); } @@ -211,8 +211,8 @@ public ComposeItemCsReq clear() { } cachedSize = -1; bitField0_ = 0; - composeId = 0; count = 0; + composeId = 0; composeItemList.clear(); return this; } @@ -238,23 +238,23 @@ public boolean equals(Object o) { } ComposeItemCsReq other = (ComposeItemCsReq) o; return bitField0_ == other.bitField0_ - && (!hasComposeId() || composeId == other.composeId) && (!hasCount() || count == other.count) + && (!hasComposeId() || composeId == other.composeId) && (!hasComposeItemList() || composeItemList.equals(other.composeItemList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); - output.writeUInt32NoTag(composeId); + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(count); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 72); - output.writeUInt32NoTag(count); + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(composeId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 50); + output.writeRawByte((byte) 10); output.writeMessageNoTag(composeItemList); } } @@ -263,10 +263,10 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(composeId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(count); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(count); + size += 1 + ProtoSink.computeUInt32SizeNoTag(composeId); } if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(composeItemList); @@ -281,25 +281,25 @@ public ComposeItemCsReq mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 40: { - // composeId - composeId = input.readUInt32(); + case 96: { + // count + count = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 72) { + if (tag != 104) { break; } } - case 72: { - // count - count = input.readUInt32(); + case 104: { + // composeId + composeId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 50) { + if (tag != 10) { break; } } - case 50: { + case 10: { // composeItemList input.readMessage(composeItemList); bitField0_ |= 0x00000004; @@ -326,10 +326,10 @@ public ComposeItemCsReq mergeFrom(final ProtoSource input) throws IOException { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.composeId, composeId); + output.writeUInt32(FieldNames.count, count); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.count, count); + output.writeUInt32(FieldNames.composeId, composeId); } if ((bitField0_ & 0x00000004) != 0) { output.writeMessage(FieldNames.composeItemList, composeItemList); @@ -344,11 +344,10 @@ public ComposeItemCsReq mergeFrom(final JsonSource input) throws IOException { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -1399759283: - case -442843416: { - if (input.isAtField(FieldNames.composeId)) { + case 94851343: { + if (input.isAtField(FieldNames.count)) { if (!input.trySkipNullValue()) { - composeId = input.readUInt32(); + count = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -356,10 +355,11 @@ public ComposeItemCsReq mergeFrom(final JsonSource input) throws IOException { } break; } - case 94851343: { - if (input.isAtField(FieldNames.count)) { + case -1399759283: + case -442843416: { + if (input.isAtField(FieldNames.composeId)) { if (!input.trySkipNullValue()) { - count = input.readUInt32(); + composeId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -432,10 +432,10 @@ public ComposeItemCsReq create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName composeId = FieldName.forField("composeId", "compose_id"); - static final FieldName count = FieldName.forField("count"); + static final FieldName composeId = FieldName.forField("composeId", "compose_id"); + static final FieldName composeItemList = FieldName.forField("composeItemList", "compose_item_list"); } } diff --git a/src/generated/main/emu/lunarcore/proto/ComposeItemScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/ComposeItemScRspOuterClass.java index d0c99f9b3..a5a40b1dd 100644 --- a/src/generated/main/emu/lunarcore/proto/ComposeItemScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ComposeItemScRspOuterClass.java @@ -19,22 +19,22 @@ public static final class ComposeItemScRsp extends ProtoMessageoptional uint32 count = 6; + * optional uint32 compose_id = 1; */ - private int count; + private int composeId; /** - * optional uint32 compose_id = 13; + * optional uint32 retcode = 5; */ - private int composeId; + private int retcode; /** - * optional uint32 retcode = 15; + * optional uint32 count = 9; */ - private int retcode; + private int count; /** - * optional .ItemList return_item_list = 1; + * optional .ItemList return_item_list = 3; */ private final ItemListOuterClass.ItemList returnItemList = ItemListOuterClass.ItemList.newInstance(); @@ -49,118 +49,118 @@ public static ComposeItemScRsp newInstance() { } /** - * optional uint32 count = 6; - * @return whether the count field is set + * optional uint32 compose_id = 1; + * @return whether the composeId field is set */ - public boolean hasCount() { + public boolean hasComposeId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 count = 6; + * optional uint32 compose_id = 1; * @return this */ - public ComposeItemScRsp clearCount() { + public ComposeItemScRsp clearComposeId() { bitField0_ &= ~0x00000001; - count = 0; + composeId = 0; return this; } /** - * optional uint32 count = 6; - * @return the count + * optional uint32 compose_id = 1; + * @return the composeId */ - public int getCount() { - return count; + public int getComposeId() { + return composeId; } /** - * optional uint32 count = 6; - * @param value the count to set + * optional uint32 compose_id = 1; + * @param value the composeId to set * @return this */ - public ComposeItemScRsp setCount(final int value) { + public ComposeItemScRsp setComposeId(final int value) { bitField0_ |= 0x00000001; - count = value; + composeId = value; return this; } /** - * optional uint32 compose_id = 13; - * @return whether the composeId field is set + * optional uint32 retcode = 5; + * @return whether the retcode field is set */ - public boolean hasComposeId() { + public boolean hasRetcode() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 compose_id = 13; + * optional uint32 retcode = 5; * @return this */ - public ComposeItemScRsp clearComposeId() { + public ComposeItemScRsp clearRetcode() { bitField0_ &= ~0x00000002; - composeId = 0; + retcode = 0; return this; } /** - * optional uint32 compose_id = 13; - * @return the composeId + * optional uint32 retcode = 5; + * @return the retcode */ - public int getComposeId() { - return composeId; + public int getRetcode() { + return retcode; } /** - * optional uint32 compose_id = 13; - * @param value the composeId to set + * optional uint32 retcode = 5; + * @param value the retcode to set * @return this */ - public ComposeItemScRsp setComposeId(final int value) { + public ComposeItemScRsp setRetcode(final int value) { bitField0_ |= 0x00000002; - composeId = value; + retcode = value; return this; } /** - * optional uint32 retcode = 15; - * @return whether the retcode field is set + * optional uint32 count = 9; + * @return whether the count field is set */ - public boolean hasRetcode() { + public boolean hasCount() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 retcode = 15; + * optional uint32 count = 9; * @return this */ - public ComposeItemScRsp clearRetcode() { + public ComposeItemScRsp clearCount() { bitField0_ &= ~0x00000004; - retcode = 0; + count = 0; return this; } /** - * optional uint32 retcode = 15; - * @return the retcode + * optional uint32 count = 9; + * @return the count */ - public int getRetcode() { - return retcode; + public int getCount() { + return count; } /** - * optional uint32 retcode = 15; - * @param value the retcode to set + * optional uint32 count = 9; + * @param value the count to set * @return this */ - public ComposeItemScRsp setRetcode(final int value) { + public ComposeItemScRsp setCount(final int value) { bitField0_ |= 0x00000004; - retcode = value; + count = value; return this; } /** - * optional .ItemList return_item_list = 1; + * optional .ItemList return_item_list = 3; * @return whether the returnItemList field is set */ public boolean hasReturnItemList() { @@ -168,7 +168,7 @@ public boolean hasReturnItemList() { } /** - * optional .ItemList return_item_list = 1; + * optional .ItemList return_item_list = 3; * @return this */ public ComposeItemScRsp clearReturnItemList() { @@ -178,7 +178,7 @@ public ComposeItemScRsp clearReturnItemList() { } /** - * optional .ItemList return_item_list = 1; + * optional .ItemList return_item_list = 3; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -192,7 +192,7 @@ public ItemListOuterClass.ItemList getReturnItemList() { } /** - * optional .ItemList return_item_list = 1; + * optional .ItemList return_item_list = 3; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -206,7 +206,7 @@ public ItemListOuterClass.ItemList getMutableReturnItemList() { } /** - * optional .ItemList return_item_list = 1; + * optional .ItemList return_item_list = 3; * @param value the returnItemList to set * @return this */ @@ -221,9 +221,9 @@ public ComposeItemScRsp copyFrom(final ComposeItemScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - count = other.count; composeId = other.composeId; retcode = other.retcode; + count = other.count; returnItemList.copyFrom(other.returnItemList); } return this; @@ -235,15 +235,15 @@ public ComposeItemScRsp mergeFrom(final ComposeItemScRsp other) { return this; } cachedSize = -1; - if (other.hasCount()) { - setCount(other.count); - } if (other.hasComposeId()) { setComposeId(other.composeId); } if (other.hasRetcode()) { setRetcode(other.retcode); } + if (other.hasCount()) { + setCount(other.count); + } if (other.hasReturnItemList()) { getMutableReturnItemList().mergeFrom(other.returnItemList); } @@ -257,9 +257,9 @@ public ComposeItemScRsp clear() { } cachedSize = -1; bitField0_ = 0; - count = 0; composeId = 0; retcode = 0; + count = 0; returnItemList.clear(); return this; } @@ -285,28 +285,28 @@ public boolean equals(Object o) { } ComposeItemScRsp other = (ComposeItemScRsp) o; return bitField0_ == other.bitField0_ - && (!hasCount() || count == other.count) && (!hasComposeId() || composeId == other.composeId) && (!hasRetcode() || retcode == other.retcode) + && (!hasCount() || count == other.count) && (!hasReturnItemList() || returnItemList.equals(other.returnItemList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 48); - output.writeUInt32NoTag(count); + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(composeId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 104); - output.writeUInt32NoTag(composeId); + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 120); - output.writeUInt32NoTag(retcode); + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(count); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 10); + output.writeRawByte((byte) 26); output.writeMessageNoTag(returnItemList); } } @@ -315,13 +315,13 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(count); + size += 1 + ProtoSink.computeUInt32SizeNoTag(composeId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(composeId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(count); } if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(returnItemList); @@ -336,34 +336,34 @@ public ComposeItemScRsp mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 48: { - // count - count = input.readUInt32(); + case 8: { + // composeId + composeId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 104) { + if (tag != 40) { break; } } - case 104: { - // composeId - composeId = input.readUInt32(); + case 40: { + // retcode + retcode = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 120) { + if (tag != 72) { break; } } - case 120: { - // retcode - retcode = input.readUInt32(); + case 72: { + // count + count = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 10) { + if (tag != 26) { break; } } - case 10: { + case 26: { // returnItemList input.readMessage(returnItemList); bitField0_ |= 0x00000008; @@ -390,13 +390,13 @@ public ComposeItemScRsp mergeFrom(final ProtoSource input) throws IOException { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.count, count); + output.writeUInt32(FieldNames.composeId, composeId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.composeId, composeId); + output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.count, count); } if ((bitField0_ & 0x00000008) != 0) { output.writeMessage(FieldNames.returnItemList, returnItemList); @@ -411,10 +411,11 @@ public ComposeItemScRsp mergeFrom(final JsonSource input) throws IOException { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 94851343: { - if (input.isAtField(FieldNames.count)) { + case -1399759283: + case -442843416: { + if (input.isAtField(FieldNames.composeId)) { if (!input.trySkipNullValue()) { - count = input.readUInt32(); + composeId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -422,11 +423,10 @@ public ComposeItemScRsp mergeFrom(final JsonSource input) throws IOException { } break; } - case -1399759283: - case -442843416: { - if (input.isAtField(FieldNames.composeId)) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { - composeId = input.readUInt32(); + retcode = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -434,10 +434,10 @@ public ComposeItemScRsp mergeFrom(final JsonSource input) throws IOException { } break; } - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { + case 94851343: { + if (input.isAtField(FieldNames.count)) { if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); + count = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -510,12 +510,12 @@ public ComposeItemScRsp create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName count = FieldName.forField("count"); - static final FieldName composeId = FieldName.forField("composeId", "compose_id"); static final FieldName retcode = FieldName.forField("retcode"); + static final FieldName count = FieldName.forField("count"); + static final FieldName returnItemList = FieldName.forField("returnItemList", "return_item_list"); } } diff --git a/src/generated/main/emu/lunarcore/proto/ComposeSelectedRelicCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/ComposeSelectedRelicCsReqOuterClass.java index 895439bfb..f3efc6bb7 100644 --- a/src/generated/main/emu/lunarcore/proto/ComposeSelectedRelicCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ComposeSelectedRelicCsReqOuterClass.java @@ -19,14 +19,14 @@ public static final class ComposeSelectedRelicCsReq extends ProtoMessageoptional uint32 compose_id = 5; + * optional uint32 compose_relic_id = 3; */ - private int composeId; + private int composeRelicId; /** - * optional uint32 compose_relic_id = 10; + * optional uint32 compose_id = 5; */ - private int composeRelicId; + private int composeId; /** * optional uint32 count = 11; @@ -34,12 +34,12 @@ public static final class ComposeSelectedRelicCsReq extends ProtoMessageoptional uint32 main_affix_id = 12; + * optional uint32 main_affix_id = 13; */ private int mainAffixId; /** - * optional .ItemCostList compose_item_list = 4; + * optional .ItemCostList compose_item_list = 9; */ private final ItemCostListOuterClass.ItemCostList composeItemList = ItemCostListOuterClass.ItemCostList.newInstance(); @@ -54,76 +54,76 @@ public static ComposeSelectedRelicCsReq newInstance() { } /** - * optional uint32 compose_id = 5; - * @return whether the composeId field is set + * optional uint32 compose_relic_id = 3; + * @return whether the composeRelicId field is set */ - public boolean hasComposeId() { + public boolean hasComposeRelicId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 compose_id = 5; + * optional uint32 compose_relic_id = 3; * @return this */ - public ComposeSelectedRelicCsReq clearComposeId() { + public ComposeSelectedRelicCsReq clearComposeRelicId() { bitField0_ &= ~0x00000001; - composeId = 0; + composeRelicId = 0; return this; } /** - * optional uint32 compose_id = 5; - * @return the composeId + * optional uint32 compose_relic_id = 3; + * @return the composeRelicId */ - public int getComposeId() { - return composeId; + public int getComposeRelicId() { + return composeRelicId; } /** - * optional uint32 compose_id = 5; - * @param value the composeId to set + * optional uint32 compose_relic_id = 3; + * @param value the composeRelicId to set * @return this */ - public ComposeSelectedRelicCsReq setComposeId(final int value) { + public ComposeSelectedRelicCsReq setComposeRelicId(final int value) { bitField0_ |= 0x00000001; - composeId = value; + composeRelicId = value; return this; } /** - * optional uint32 compose_relic_id = 10; - * @return whether the composeRelicId field is set + * optional uint32 compose_id = 5; + * @return whether the composeId field is set */ - public boolean hasComposeRelicId() { + public boolean hasComposeId() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 compose_relic_id = 10; + * optional uint32 compose_id = 5; * @return this */ - public ComposeSelectedRelicCsReq clearComposeRelicId() { + public ComposeSelectedRelicCsReq clearComposeId() { bitField0_ &= ~0x00000002; - composeRelicId = 0; + composeId = 0; return this; } /** - * optional uint32 compose_relic_id = 10; - * @return the composeRelicId + * optional uint32 compose_id = 5; + * @return the composeId */ - public int getComposeRelicId() { - return composeRelicId; + public int getComposeId() { + return composeId; } /** - * optional uint32 compose_relic_id = 10; - * @param value the composeRelicId to set + * optional uint32 compose_id = 5; + * @param value the composeId to set * @return this */ - public ComposeSelectedRelicCsReq setComposeRelicId(final int value) { + public ComposeSelectedRelicCsReq setComposeId(final int value) { bitField0_ |= 0x00000002; - composeRelicId = value; + composeId = value; return this; } @@ -165,7 +165,7 @@ public ComposeSelectedRelicCsReq setCount(final int value) { } /** - * optional uint32 main_affix_id = 12; + * optional uint32 main_affix_id = 13; * @return whether the mainAffixId field is set */ public boolean hasMainAffixId() { @@ -173,7 +173,7 @@ public boolean hasMainAffixId() { } /** - * optional uint32 main_affix_id = 12; + * optional uint32 main_affix_id = 13; * @return this */ public ComposeSelectedRelicCsReq clearMainAffixId() { @@ -183,7 +183,7 @@ public ComposeSelectedRelicCsReq clearMainAffixId() { } /** - * optional uint32 main_affix_id = 12; + * optional uint32 main_affix_id = 13; * @return the mainAffixId */ public int getMainAffixId() { @@ -191,7 +191,7 @@ public int getMainAffixId() { } /** - * optional uint32 main_affix_id = 12; + * optional uint32 main_affix_id = 13; * @param value the mainAffixId to set * @return this */ @@ -202,7 +202,7 @@ public ComposeSelectedRelicCsReq setMainAffixId(final int value) { } /** - * optional .ItemCostList compose_item_list = 4; + * optional .ItemCostList compose_item_list = 9; * @return whether the composeItemList field is set */ public boolean hasComposeItemList() { @@ -210,7 +210,7 @@ public boolean hasComposeItemList() { } /** - * optional .ItemCostList compose_item_list = 4; + * optional .ItemCostList compose_item_list = 9; * @return this */ public ComposeSelectedRelicCsReq clearComposeItemList() { @@ -220,7 +220,7 @@ public ComposeSelectedRelicCsReq clearComposeItemList() { } /** - * optional .ItemCostList compose_item_list = 4; + * optional .ItemCostList compose_item_list = 9; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -234,7 +234,7 @@ public ItemCostListOuterClass.ItemCostList getComposeItemList() { } /** - * optional .ItemCostList compose_item_list = 4; + * optional .ItemCostList compose_item_list = 9; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -248,7 +248,7 @@ public ItemCostListOuterClass.ItemCostList getMutableComposeItemList() { } /** - * optional .ItemCostList compose_item_list = 4; + * optional .ItemCostList compose_item_list = 9; * @param value the composeItemList to set * @return this */ @@ -264,8 +264,8 @@ public ComposeSelectedRelicCsReq copyFrom(final ComposeSelectedRelicCsReq other) cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - composeId = other.composeId; composeRelicId = other.composeRelicId; + composeId = other.composeId; count = other.count; mainAffixId = other.mainAffixId; composeItemList.copyFrom(other.composeItemList); @@ -279,12 +279,12 @@ public ComposeSelectedRelicCsReq mergeFrom(final ComposeSelectedRelicCsReq other return this; } cachedSize = -1; - if (other.hasComposeId()) { - setComposeId(other.composeId); - } if (other.hasComposeRelicId()) { setComposeRelicId(other.composeRelicId); } + if (other.hasComposeId()) { + setComposeId(other.composeId); + } if (other.hasCount()) { setCount(other.count); } @@ -304,8 +304,8 @@ public ComposeSelectedRelicCsReq clear() { } cachedSize = -1; bitField0_ = 0; - composeId = 0; composeRelicId = 0; + composeId = 0; count = 0; mainAffixId = 0; composeItemList.clear(); @@ -333,8 +333,8 @@ public boolean equals(Object o) { } ComposeSelectedRelicCsReq other = (ComposeSelectedRelicCsReq) o; return bitField0_ == other.bitField0_ - && (!hasComposeId() || composeId == other.composeId) && (!hasComposeRelicId() || composeRelicId == other.composeRelicId) + && (!hasComposeId() || composeId == other.composeId) && (!hasCount() || count == other.count) && (!hasMainAffixId() || mainAffixId == other.mainAffixId) && (!hasComposeItemList() || composeItemList.equals(other.composeItemList)); @@ -343,23 +343,23 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); - output.writeUInt32NoTag(composeId); + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(composeRelicId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 80); - output.writeUInt32NoTag(composeRelicId); + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(composeId); } if ((bitField0_ & 0x00000004) != 0) { output.writeRawByte((byte) 88); output.writeUInt32NoTag(count); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 104); output.writeUInt32NoTag(mainAffixId); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 34); + output.writeRawByte((byte) 74); output.writeMessageNoTag(composeItemList); } } @@ -368,10 +368,10 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(composeId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(composeRelicId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(composeRelicId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(composeId); } if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(count); @@ -392,18 +392,18 @@ public ComposeSelectedRelicCsReq mergeFrom(final ProtoSource input) throws IOExc int tag = input.readTag(); while (true) { switch (tag) { - case 40: { - // composeId - composeId = input.readUInt32(); + case 24: { + // composeRelicId + composeRelicId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 80) { + if (tag != 40) { break; } } - case 80: { - // composeRelicId - composeRelicId = input.readUInt32(); + case 40: { + // composeId + composeId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 88) { @@ -415,20 +415,20 @@ public ComposeSelectedRelicCsReq mergeFrom(final ProtoSource input) throws IOExc count = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 96) { + if (tag != 104) { break; } } - case 96: { + case 104: { // mainAffixId mainAffixId = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 34) { + if (tag != 74) { break; } } - case 34: { + case 74: { // composeItemList input.readMessage(composeItemList); bitField0_ |= 0x00000010; @@ -455,10 +455,10 @@ public ComposeSelectedRelicCsReq mergeFrom(final ProtoSource input) throws IOExc public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.composeId, composeId); + output.writeUInt32(FieldNames.composeRelicId, composeRelicId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.composeRelicId, composeRelicId); + output.writeUInt32(FieldNames.composeId, composeId); } if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.count, count); @@ -479,11 +479,11 @@ public ComposeSelectedRelicCsReq mergeFrom(final JsonSource input) throws IOExce } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -1399759283: - case -442843416: { - if (input.isAtField(FieldNames.composeId)) { + case 1424923132: + case 885799284: { + if (input.isAtField(FieldNames.composeRelicId)) { if (!input.trySkipNullValue()) { - composeId = input.readUInt32(); + composeRelicId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -491,11 +491,11 @@ public ComposeSelectedRelicCsReq mergeFrom(final JsonSource input) throws IOExce } break; } - case 1424923132: - case 885799284: { - if (input.isAtField(FieldNames.composeRelicId)) { + case -1399759283: + case -442843416: { + if (input.isAtField(FieldNames.composeId)) { if (!input.trySkipNullValue()) { - composeRelicId = input.readUInt32(); + composeId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -591,10 +591,10 @@ public ComposeSelectedRelicCsReq create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName composeId = FieldName.forField("composeId", "compose_id"); - static final FieldName composeRelicId = FieldName.forField("composeRelicId", "compose_relic_id"); + static final FieldName composeId = FieldName.forField("composeId", "compose_id"); + static final FieldName count = FieldName.forField("count"); static final FieldName mainAffixId = FieldName.forField("mainAffixId", "main_affix_id"); diff --git a/src/generated/main/emu/lunarcore/proto/ComposeSelectedRelicScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/ComposeSelectedRelicScRspOuterClass.java index 7d6b3160b..f8cc52f55 100644 --- a/src/generated/main/emu/lunarcore/proto/ComposeSelectedRelicScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ComposeSelectedRelicScRspOuterClass.java @@ -19,17 +19,17 @@ public static final class ComposeSelectedRelicScRsp extends ProtoMessageoptional uint32 compose_id = 8; + * optional uint32 retcode = 1; */ - private int composeId; + private int retcode; /** - * optional uint32 retcode = 10; + * optional uint32 compose_id = 8; */ - private int retcode; + private int composeId; /** - * optional .ItemList return_item_list = 15; + * optional .ItemList return_item_list = 2; */ private final ItemListOuterClass.ItemList returnItemList = ItemListOuterClass.ItemList.newInstance(); @@ -44,81 +44,81 @@ public static ComposeSelectedRelicScRsp newInstance() { } /** - * optional uint32 compose_id = 8; - * @return whether the composeId field is set + * optional uint32 retcode = 1; + * @return whether the retcode field is set */ - public boolean hasComposeId() { + public boolean hasRetcode() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 compose_id = 8; + * optional uint32 retcode = 1; * @return this */ - public ComposeSelectedRelicScRsp clearComposeId() { + public ComposeSelectedRelicScRsp clearRetcode() { bitField0_ &= ~0x00000001; - composeId = 0; + retcode = 0; return this; } /** - * optional uint32 compose_id = 8; - * @return the composeId + * optional uint32 retcode = 1; + * @return the retcode */ - public int getComposeId() { - return composeId; + public int getRetcode() { + return retcode; } /** - * optional uint32 compose_id = 8; - * @param value the composeId to set + * optional uint32 retcode = 1; + * @param value the retcode to set * @return this */ - public ComposeSelectedRelicScRsp setComposeId(final int value) { + public ComposeSelectedRelicScRsp setRetcode(final int value) { bitField0_ |= 0x00000001; - composeId = value; + retcode = value; return this; } /** - * optional uint32 retcode = 10; - * @return whether the retcode field is set + * optional uint32 compose_id = 8; + * @return whether the composeId field is set */ - public boolean hasRetcode() { + public boolean hasComposeId() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 retcode = 10; + * optional uint32 compose_id = 8; * @return this */ - public ComposeSelectedRelicScRsp clearRetcode() { + public ComposeSelectedRelicScRsp clearComposeId() { bitField0_ &= ~0x00000002; - retcode = 0; + composeId = 0; return this; } /** - * optional uint32 retcode = 10; - * @return the retcode + * optional uint32 compose_id = 8; + * @return the composeId */ - public int getRetcode() { - return retcode; + public int getComposeId() { + return composeId; } /** - * optional uint32 retcode = 10; - * @param value the retcode to set + * optional uint32 compose_id = 8; + * @param value the composeId to set * @return this */ - public ComposeSelectedRelicScRsp setRetcode(final int value) { + public ComposeSelectedRelicScRsp setComposeId(final int value) { bitField0_ |= 0x00000002; - retcode = value; + composeId = value; return this; } /** - * optional .ItemList return_item_list = 15; + * optional .ItemList return_item_list = 2; * @return whether the returnItemList field is set */ public boolean hasReturnItemList() { @@ -126,7 +126,7 @@ public boolean hasReturnItemList() { } /** - * optional .ItemList return_item_list = 15; + * optional .ItemList return_item_list = 2; * @return this */ public ComposeSelectedRelicScRsp clearReturnItemList() { @@ -136,7 +136,7 @@ public ComposeSelectedRelicScRsp clearReturnItemList() { } /** - * optional .ItemList return_item_list = 15; + * optional .ItemList return_item_list = 2; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -150,7 +150,7 @@ public ItemListOuterClass.ItemList getReturnItemList() { } /** - * optional .ItemList return_item_list = 15; + * optional .ItemList return_item_list = 2; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -164,7 +164,7 @@ public ItemListOuterClass.ItemList getMutableReturnItemList() { } /** - * optional .ItemList return_item_list = 15; + * optional .ItemList return_item_list = 2; * @param value the returnItemList to set * @return this */ @@ -179,8 +179,8 @@ public ComposeSelectedRelicScRsp copyFrom(final ComposeSelectedRelicScRsp other) cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - composeId = other.composeId; retcode = other.retcode; + composeId = other.composeId; returnItemList.copyFrom(other.returnItemList); } return this; @@ -192,12 +192,12 @@ public ComposeSelectedRelicScRsp mergeFrom(final ComposeSelectedRelicScRsp other return this; } cachedSize = -1; - if (other.hasComposeId()) { - setComposeId(other.composeId); - } if (other.hasRetcode()) { setRetcode(other.retcode); } + if (other.hasComposeId()) { + setComposeId(other.composeId); + } if (other.hasReturnItemList()) { getMutableReturnItemList().mergeFrom(other.returnItemList); } @@ -211,8 +211,8 @@ public ComposeSelectedRelicScRsp clear() { } cachedSize = -1; bitField0_ = 0; - composeId = 0; retcode = 0; + composeId = 0; returnItemList.clear(); return this; } @@ -238,23 +238,23 @@ public boolean equals(Object o) { } ComposeSelectedRelicScRsp other = (ComposeSelectedRelicScRsp) o; return bitField0_ == other.bitField0_ - && (!hasComposeId() || composeId == other.composeId) && (!hasRetcode() || retcode == other.retcode) + && (!hasComposeId() || composeId == other.composeId) && (!hasReturnItemList() || returnItemList.equals(other.returnItemList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 64); - output.writeUInt32NoTag(composeId); + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 80); - output.writeUInt32NoTag(retcode); + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(composeId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 122); + output.writeRawByte((byte) 18); output.writeMessageNoTag(returnItemList); } } @@ -263,10 +263,10 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(composeId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(composeId); } if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(returnItemList); @@ -281,25 +281,25 @@ public ComposeSelectedRelicScRsp mergeFrom(final ProtoSource input) throws IOExc int tag = input.readTag(); while (true) { switch (tag) { - case 64: { - // composeId - composeId = input.readUInt32(); + case 8: { + // retcode + retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 80) { + if (tag != 64) { break; } } - case 80: { - // retcode - retcode = input.readUInt32(); + case 64: { + // composeId + composeId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 122) { + if (tag != 18) { break; } } - case 122: { + case 18: { // returnItemList input.readMessage(returnItemList); bitField0_ |= 0x00000004; @@ -326,10 +326,10 @@ public ComposeSelectedRelicScRsp mergeFrom(final ProtoSource input) throws IOExc public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.composeId, composeId); + output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.composeId, composeId); } if ((bitField0_ & 0x00000004) != 0) { output.writeMessage(FieldNames.returnItemList, returnItemList); @@ -344,11 +344,10 @@ public ComposeSelectedRelicScRsp mergeFrom(final JsonSource input) throws IOExce } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -1399759283: - case -442843416: { - if (input.isAtField(FieldNames.composeId)) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { - composeId = input.readUInt32(); + retcode = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -356,10 +355,11 @@ public ComposeSelectedRelicScRsp mergeFrom(final JsonSource input) throws IOExce } break; } - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { + case -1399759283: + case -442843416: { + if (input.isAtField(FieldNames.composeId)) { if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); + composeId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -432,10 +432,10 @@ public ComposeSelectedRelicScRsp create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName composeId = FieldName.forField("composeId", "compose_id"); - static final FieldName retcode = FieldName.forField("retcode"); + static final FieldName composeId = FieldName.forField("composeId", "compose_id"); + static final FieldName returnItemList = FieldName.forField("returnItemList", "return_item_list"); } } diff --git a/src/generated/main/emu/lunarcore/proto/DelMailScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/DelMailScRspOuterClass.java index eb3df7fd5..e9cb96269 100644 --- a/src/generated/main/emu/lunarcore/proto/DelMailScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/DelMailScRspOuterClass.java @@ -20,12 +20,12 @@ public static final class DelMailScRsp extends ProtoMessage implem private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 7; */ private int retcode; /** - * repeated uint32 id_list = 10; + * repeated uint32 id_list = 5; */ private final RepeatedInt idList = RepeatedInt.newEmptyInstance(); @@ -40,7 +40,7 @@ public static DelMailScRsp newInstance() { } /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 7; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -48,7 +48,7 @@ public boolean hasRetcode() { } /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 7; * @return this */ public DelMailScRsp clearRetcode() { @@ -58,7 +58,7 @@ public DelMailScRsp clearRetcode() { } /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 7; * @return the retcode */ public int getRetcode() { @@ -66,7 +66,7 @@ public int getRetcode() { } /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 7; * @param value the retcode to set * @return this */ @@ -77,7 +77,7 @@ public DelMailScRsp setRetcode(final int value) { } /** - * repeated uint32 id_list = 10; + * repeated uint32 id_list = 5; * @return whether the idList field is set */ public boolean hasIdList() { @@ -85,7 +85,7 @@ public boolean hasIdList() { } /** - * repeated uint32 id_list = 10; + * repeated uint32 id_list = 5; * @return this */ public DelMailScRsp clearIdList() { @@ -95,7 +95,7 @@ public DelMailScRsp clearIdList() { } /** - * repeated uint32 id_list = 10; + * repeated uint32 id_list = 5; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -109,7 +109,7 @@ public RepeatedInt getIdList() { } /** - * repeated uint32 id_list = 10; + * repeated uint32 id_list = 5; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -123,7 +123,7 @@ public RepeatedInt getMutableIdList() { } /** - * repeated uint32 id_list = 10; + * repeated uint32 id_list = 5; * @param value the idList to add * @return this */ @@ -134,7 +134,7 @@ public DelMailScRsp addIdList(final int value) { } /** - * repeated uint32 id_list = 10; + * repeated uint32 id_list = 5; * @param values the idList to add * @return this */ @@ -210,12 +210,12 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 56); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < idList.length(); i++) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 40); output.writeUInt32NoTag(idList.array()[i]); } } @@ -240,16 +240,16 @@ public DelMailScRsp mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 96: { + case 56: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 82) { + if (tag != 42) { break; } } - case 82: { + case 42: { // idList [packed=true] input.readPackedUInt32(idList, tag); bitField0_ |= 0x00000002; @@ -268,7 +268,7 @@ public DelMailScRsp mergeFrom(final ProtoSource input) throws IOException { tag = input.readTag(); break; } - case 80: { + case 40: { // idList [packed=false] tag = input.readRepeatedUInt32(idList, tag); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/DisplayAvatarOuterClass.java b/src/generated/main/emu/lunarcore/proto/DisplayAvatarOuterClass.java new file mode 100644 index 000000000..9293a52b5 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/DisplayAvatarOuterClass.java @@ -0,0 +1,339 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; + +public final class DisplayAvatarOuterClass { + /** + * Protobuf type {@code DisplayAvatar} + */ + public static final class DisplayAvatar extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 avatar_id = 8; + */ + private int avatarId; + + /** + * optional uint32 pos = 13; + */ + private int pos; + + private DisplayAvatar() { + } + + /** + * @return a new empty instance of {@code DisplayAvatar} + */ + public static DisplayAvatar newInstance() { + return new DisplayAvatar(); + } + + /** + * optional uint32 avatar_id = 8; + * @return whether the avatarId field is set + */ + public boolean hasAvatarId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 avatar_id = 8; + * @return this + */ + public DisplayAvatar clearAvatarId() { + bitField0_ &= ~0x00000001; + avatarId = 0; + return this; + } + + /** + * optional uint32 avatar_id = 8; + * @return the avatarId + */ + public int getAvatarId() { + return avatarId; + } + + /** + * optional uint32 avatar_id = 8; + * @param value the avatarId to set + * @return this + */ + public DisplayAvatar setAvatarId(final int value) { + bitField0_ |= 0x00000001; + avatarId = value; + return this; + } + + /** + * optional uint32 pos = 13; + * @return whether the pos field is set + */ + public boolean hasPos() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 pos = 13; + * @return this + */ + public DisplayAvatar clearPos() { + bitField0_ &= ~0x00000002; + pos = 0; + return this; + } + + /** + * optional uint32 pos = 13; + * @return the pos + */ + public int getPos() { + return pos; + } + + /** + * optional uint32 pos = 13; + * @param value the pos to set + * @return this + */ + public DisplayAvatar setPos(final int value) { + bitField0_ |= 0x00000002; + pos = value; + return this; + } + + @Override + public DisplayAvatar copyFrom(final DisplayAvatar other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + avatarId = other.avatarId; + pos = other.pos; + } + return this; + } + + @Override + public DisplayAvatar mergeFrom(final DisplayAvatar other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasAvatarId()) { + setAvatarId(other.avatarId); + } + if (other.hasPos()) { + setPos(other.pos); + } + return this; + } + + @Override + public DisplayAvatar clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + avatarId = 0; + pos = 0; + return this; + } + + @Override + public DisplayAvatar clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof DisplayAvatar)) { + return false; + } + DisplayAvatar other = (DisplayAvatar) o; + return bitField0_ == other.bitField0_ + && (!hasAvatarId() || avatarId == other.avatarId) + && (!hasPos() || pos == other.pos); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(avatarId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(pos); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(avatarId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(pos); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public DisplayAvatar mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 64: { + // avatarId + avatarId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // pos + pos = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.avatarId, avatarId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.pos, pos); + } + output.endObject(); + } + + @Override + public DisplayAvatar mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1787287636: + case -428636735: { + if (input.isAtField(FieldNames.avatarId)) { + if (!input.trySkipNullValue()) { + avatarId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 111188: { + if (input.isAtField(FieldNames.pos)) { + if (!input.trySkipNullValue()) { + pos = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public DisplayAvatar clone() { + return new DisplayAvatar().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static DisplayAvatar parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new DisplayAvatar(), data).checkInitialized(); + } + + public static DisplayAvatar parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new DisplayAvatar(), input).checkInitialized(); + } + + public static DisplayAvatar parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new DisplayAvatar(), input).checkInitialized(); + } + + /** + * @return factory for creating DisplayAvatar messages + */ + public static MessageFactory getFactory() { + return DisplayAvatarFactory.INSTANCE; + } + + private enum DisplayAvatarFactory implements MessageFactory { + INSTANCE; + + @Override + public DisplayAvatar create() { + return DisplayAvatar.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName avatarId = FieldName.forField("avatarId", "avatar_id"); + + static final FieldName pos = FieldName.forField("pos"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/DisplayAvatarVecOuterClass.java b/src/generated/main/emu/lunarcore/proto/DisplayAvatarVecOuterClass.java new file mode 100644 index 000000000..d41f09dcf --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/DisplayAvatarVecOuterClass.java @@ -0,0 +1,377 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedMessage; + +public final class DisplayAvatarVecOuterClass { + /** + * Protobuf type {@code DisplayAvatarVec} + */ + public static final class DisplayAvatarVec extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional bool is_display = 7; + */ + private boolean isDisplay; + + /** + * repeated .DisplayAvatar display_avatar_list = 14; + */ + private final RepeatedMessage displayAvatarList = RepeatedMessage.newEmptyInstance(DisplayAvatarOuterClass.DisplayAvatar.getFactory()); + + private DisplayAvatarVec() { + } + + /** + * @return a new empty instance of {@code DisplayAvatarVec} + */ + public static DisplayAvatarVec newInstance() { + return new DisplayAvatarVec(); + } + + /** + * optional bool is_display = 7; + * @return whether the isDisplay field is set + */ + public boolean hasIsDisplay() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional bool is_display = 7; + * @return this + */ + public DisplayAvatarVec clearIsDisplay() { + bitField0_ &= ~0x00000001; + isDisplay = false; + return this; + } + + /** + * optional bool is_display = 7; + * @return the isDisplay + */ + public boolean getIsDisplay() { + return isDisplay; + } + + /** + * optional bool is_display = 7; + * @param value the isDisplay to set + * @return this + */ + public DisplayAvatarVec setIsDisplay(final boolean value) { + bitField0_ |= 0x00000001; + isDisplay = value; + return this; + } + + /** + * repeated .DisplayAvatar display_avatar_list = 14; + * @return whether the displayAvatarList field is set + */ + public boolean hasDisplayAvatarList() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated .DisplayAvatar display_avatar_list = 14; + * @return this + */ + public DisplayAvatarVec clearDisplayAvatarList() { + bitField0_ &= ~0x00000002; + displayAvatarList.clear(); + return this; + } + + /** + * repeated .DisplayAvatar display_avatar_list = 14; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableDisplayAvatarList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getDisplayAvatarList() { + return displayAvatarList; + } + + /** + * repeated .DisplayAvatar display_avatar_list = 14; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableDisplayAvatarList() { + bitField0_ |= 0x00000002; + return displayAvatarList; + } + + /** + * repeated .DisplayAvatar display_avatar_list = 14; + * @param value the displayAvatarList to add + * @return this + */ + public DisplayAvatarVec addDisplayAvatarList( + final DisplayAvatarOuterClass.DisplayAvatar value) { + bitField0_ |= 0x00000002; + displayAvatarList.add(value); + return this; + } + + /** + * repeated .DisplayAvatar display_avatar_list = 14; + * @param values the displayAvatarList to add + * @return this + */ + public DisplayAvatarVec addAllDisplayAvatarList( + final DisplayAvatarOuterClass.DisplayAvatar... values) { + bitField0_ |= 0x00000002; + displayAvatarList.addAll(values); + return this; + } + + @Override + public DisplayAvatarVec copyFrom(final DisplayAvatarVec other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + isDisplay = other.isDisplay; + displayAvatarList.copyFrom(other.displayAvatarList); + } + return this; + } + + @Override + public DisplayAvatarVec mergeFrom(final DisplayAvatarVec other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasIsDisplay()) { + setIsDisplay(other.isDisplay); + } + if (other.hasDisplayAvatarList()) { + getMutableDisplayAvatarList().addAll(other.displayAvatarList); + } + return this; + } + + @Override + public DisplayAvatarVec clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + isDisplay = false; + displayAvatarList.clear(); + return this; + } + + @Override + public DisplayAvatarVec clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + displayAvatarList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof DisplayAvatarVec)) { + return false; + } + DisplayAvatarVec other = (DisplayAvatarVec) o; + return bitField0_ == other.bitField0_ + && (!hasIsDisplay() || isDisplay == other.isDisplay) + && (!hasDisplayAvatarList() || displayAvatarList.equals(other.displayAvatarList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 56); + output.writeBoolNoTag(isDisplay); + } + if ((bitField0_ & 0x00000002) != 0) { + for (int i = 0; i < displayAvatarList.length(); i++) { + output.writeRawByte((byte) 114); + output.writeMessageNoTag(displayAvatarList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * displayAvatarList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(displayAvatarList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public DisplayAvatarVec mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 56: { + // isDisplay + isDisplay = input.readBool(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 114) { + break; + } + } + case 114: { + // displayAvatarList + tag = input.readRepeatedMessage(displayAvatarList, tag); + bitField0_ |= 0x00000002; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeBool(FieldNames.isDisplay, isDisplay); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedMessage(FieldNames.displayAvatarList, displayAvatarList); + } + output.endObject(); + } + + @Override + public DisplayAvatarVec mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1091985464: + case -1122893139: { + if (input.isAtField(FieldNames.isDisplay)) { + if (!input.trySkipNullValue()) { + isDisplay = input.readBool(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2117925881: + case 245562311: { + if (input.isAtField(FieldNames.displayAvatarList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(displayAvatarList); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public DisplayAvatarVec clone() { + return new DisplayAvatarVec().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static DisplayAvatarVec parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new DisplayAvatarVec(), data).checkInitialized(); + } + + public static DisplayAvatarVec parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new DisplayAvatarVec(), input).checkInitialized(); + } + + public static DisplayAvatarVec parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new DisplayAvatarVec(), input).checkInitialized(); + } + + /** + * @return factory for creating DisplayAvatarVec messages + */ + public static MessageFactory getFactory() { + return DisplayAvatarVecFactory.INSTANCE; + } + + private enum DisplayAvatarVecFactory implements MessageFactory { + INSTANCE; + + @Override + public DisplayAvatarVec create() { + return DisplayAvatarVec.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName isDisplay = FieldName.forField("isDisplay", "is_display"); + + static final FieldName displayAvatarList = FieldName.forField("displayAvatarList", "display_avatar_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/DoGachaCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/DoGachaCsReqOuterClass.java index 496ff5ff0..ca6ad8026 100644 --- a/src/generated/main/emu/lunarcore/proto/DoGachaCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/DoGachaCsReqOuterClass.java @@ -19,7 +19,12 @@ public static final class DoGachaCsReq extends ProtoMessage implem private static final long serialVersionUID = 0L; /** - * optional uint32 gacha_id = 3; + * optional uint32 gacha_num = 1; + */ + private int gachaNum; + + /** + * optional uint32 gacha_id = 9; */ private int gachaId; @@ -29,15 +34,10 @@ public static final class DoGachaCsReq extends ProtoMessage implem private int simulateMagic; /** - * optional uint32 gacha_random = 13; + * optional uint32 gacha_random = 15; */ private int gachaRandom; - /** - * optional uint32 gacha_num = 14; - */ - private int gachaNum; - private DoGachaCsReq() { } @@ -49,25 +49,62 @@ public static DoGachaCsReq newInstance() { } /** - * optional uint32 gacha_id = 3; + * optional uint32 gacha_num = 1; + * @return whether the gachaNum field is set + */ + public boolean hasGachaNum() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 gacha_num = 1; + * @return this + */ + public DoGachaCsReq clearGachaNum() { + bitField0_ &= ~0x00000001; + gachaNum = 0; + return this; + } + + /** + * optional uint32 gacha_num = 1; + * @return the gachaNum + */ + public int getGachaNum() { + return gachaNum; + } + + /** + * optional uint32 gacha_num = 1; + * @param value the gachaNum to set + * @return this + */ + public DoGachaCsReq setGachaNum(final int value) { + bitField0_ |= 0x00000001; + gachaNum = value; + return this; + } + + /** + * optional uint32 gacha_id = 9; * @return whether the gachaId field is set */ public boolean hasGachaId() { - return (bitField0_ & 0x00000001) != 0; + return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 gacha_id = 3; + * optional uint32 gacha_id = 9; * @return this */ public DoGachaCsReq clearGachaId() { - bitField0_ &= ~0x00000001; + bitField0_ &= ~0x00000002; gachaId = 0; return this; } /** - * optional uint32 gacha_id = 3; + * optional uint32 gacha_id = 9; * @return the gachaId */ public int getGachaId() { @@ -75,12 +112,12 @@ public int getGachaId() { } /** - * optional uint32 gacha_id = 3; + * optional uint32 gacha_id = 9; * @param value the gachaId to set * @return this */ public DoGachaCsReq setGachaId(final int value) { - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; gachaId = value; return this; } @@ -90,7 +127,7 @@ public DoGachaCsReq setGachaId(final int value) { * @return whether the simulateMagic field is set */ public boolean hasSimulateMagic() { - return (bitField0_ & 0x00000002) != 0; + return (bitField0_ & 0x00000004) != 0; } /** @@ -98,7 +135,7 @@ public boolean hasSimulateMagic() { * @return this */ public DoGachaCsReq clearSimulateMagic() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000004; simulateMagic = 0; return this; } @@ -117,31 +154,31 @@ public int getSimulateMagic() { * @return this */ public DoGachaCsReq setSimulateMagic(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; simulateMagic = value; return this; } /** - * optional uint32 gacha_random = 13; + * optional uint32 gacha_random = 15; * @return whether the gachaRandom field is set */ public boolean hasGachaRandom() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000008) != 0; } /** - * optional uint32 gacha_random = 13; + * optional uint32 gacha_random = 15; * @return this */ public DoGachaCsReq clearGachaRandom() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000008; gachaRandom = 0; return this; } /** - * optional uint32 gacha_random = 13; + * optional uint32 gacha_random = 15; * @return the gachaRandom */ public int getGachaRandom() { @@ -149,50 +186,13 @@ public int getGachaRandom() { } /** - * optional uint32 gacha_random = 13; + * optional uint32 gacha_random = 15; * @param value the gachaRandom to set * @return this */ public DoGachaCsReq setGachaRandom(final int value) { - bitField0_ |= 0x00000004; - gachaRandom = value; - return this; - } - - /** - * optional uint32 gacha_num = 14; - * @return whether the gachaNum field is set - */ - public boolean hasGachaNum() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional uint32 gacha_num = 14; - * @return this - */ - public DoGachaCsReq clearGachaNum() { - bitField0_ &= ~0x00000008; - gachaNum = 0; - return this; - } - - /** - * optional uint32 gacha_num = 14; - * @return the gachaNum - */ - public int getGachaNum() { - return gachaNum; - } - - /** - * optional uint32 gacha_num = 14; - * @param value the gachaNum to set - * @return this - */ - public DoGachaCsReq setGachaNum(final int value) { bitField0_ |= 0x00000008; - gachaNum = value; + gachaRandom = value; return this; } @@ -201,10 +201,10 @@ public DoGachaCsReq copyFrom(final DoGachaCsReq other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; + gachaNum = other.gachaNum; gachaId = other.gachaId; simulateMagic = other.simulateMagic; gachaRandom = other.gachaRandom; - gachaNum = other.gachaNum; } return this; } @@ -215,6 +215,9 @@ public DoGachaCsReq mergeFrom(final DoGachaCsReq other) { return this; } cachedSize = -1; + if (other.hasGachaNum()) { + setGachaNum(other.gachaNum); + } if (other.hasGachaId()) { setGachaId(other.gachaId); } @@ -224,9 +227,6 @@ public DoGachaCsReq mergeFrom(final DoGachaCsReq other) { if (other.hasGachaRandom()) { setGachaRandom(other.gachaRandom); } - if (other.hasGachaNum()) { - setGachaNum(other.gachaNum); - } return this; } @@ -237,10 +237,10 @@ public DoGachaCsReq clear() { } cachedSize = -1; bitField0_ = 0; + gachaNum = 0; gachaId = 0; simulateMagic = 0; gachaRandom = 0; - gachaNum = 0; return this; } @@ -264,29 +264,29 @@ public boolean equals(Object o) { } DoGachaCsReq other = (DoGachaCsReq) o; return bitField0_ == other.bitField0_ + && (!hasGachaNum() || gachaNum == other.gachaNum) && (!hasGachaId() || gachaId == other.gachaId) && (!hasSimulateMagic() || simulateMagic == other.simulateMagic) - && (!hasGachaRandom() || gachaRandom == other.gachaRandom) - && (!hasGachaNum() || gachaNum == other.gachaNum); + && (!hasGachaRandom() || gachaRandom == other.gachaRandom); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(gachaId); + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(gachaNum); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 80); - output.writeUInt32NoTag(simulateMagic); + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(gachaId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 104); - output.writeUInt32NoTag(gachaRandom); + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(simulateMagic); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 112); - output.writeUInt32NoTag(gachaNum); + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(gachaRandom); } } @@ -294,16 +294,16 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(gachaId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(gachaNum); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(simulateMagic); + size += 1 + ProtoSink.computeUInt32SizeNoTag(gachaId); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(gachaRandom); + size += 1 + ProtoSink.computeUInt32SizeNoTag(simulateMagic); } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(gachaNum); + size += 1 + ProtoSink.computeUInt32SizeNoTag(gachaRandom); } return size; } @@ -315,10 +315,19 @@ public DoGachaCsReq mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 24: { + case 8: { + // gachaNum + gachaNum = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { // gachaId gachaId = input.readUInt32(); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 80) { break; @@ -327,24 +336,15 @@ public DoGachaCsReq mergeFrom(final ProtoSource input) throws IOException { case 80: { // simulateMagic simulateMagic = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 104) { + if (tag != 120) { break; } } - case 104: { + case 120: { // gachaRandom gachaRandom = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 112) { - break; - } - } - case 112: { - // gachaNum - gachaNum = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 0) { @@ -369,16 +369,16 @@ public DoGachaCsReq mergeFrom(final ProtoSource input) throws IOException { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.gachaId, gachaId); + output.writeUInt32(FieldNames.gachaNum, gachaNum); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.simulateMagic, simulateMagic); + output.writeUInt32(FieldNames.gachaId, gachaId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.gachaRandom, gachaRandom); + output.writeUInt32(FieldNames.simulateMagic, simulateMagic); } if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.gachaNum, gachaNum); + output.writeUInt32(FieldNames.gachaRandom, gachaRandom); } output.endObject(); } @@ -390,12 +390,24 @@ public DoGachaCsReq mergeFrom(final JsonSource input) throws IOException { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { + case -2052317532: + case 803166025: { + if (input.isAtField(FieldNames.gachaNum)) { + if (!input.trySkipNullValue()) { + gachaNum = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } case -204751299: case -2052301576: { if (input.isAtField(FieldNames.gachaId)) { if (!input.trySkipNullValue()) { gachaId = input.readUInt32(); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } else { input.skipUnknownField(); @@ -407,7 +419,7 @@ public DoGachaCsReq mergeFrom(final JsonSource input) throws IOException { if (input.isAtField(FieldNames.simulateMagic)) { if (!input.trySkipNullValue()) { simulateMagic = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; } } else { input.skipUnknownField(); @@ -419,18 +431,6 @@ public DoGachaCsReq mergeFrom(final JsonSource input) throws IOException { if (input.isAtField(FieldNames.gachaRandom)) { if (!input.trySkipNullValue()) { gachaRandom = input.readUInt32(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case -2052317532: - case 803166025: { - if (input.isAtField(FieldNames.gachaNum)) { - if (!input.trySkipNullValue()) { - gachaNum = input.readUInt32(); bitField0_ |= 0x00000008; } } else { @@ -490,13 +490,13 @@ public DoGachaCsReq create() { * Contains name constants used for serializing JSON */ static class FieldNames { + static final FieldName gachaNum = FieldName.forField("gachaNum", "gacha_num"); + static final FieldName gachaId = FieldName.forField("gachaId", "gacha_id"); static final FieldName simulateMagic = FieldName.forField("simulateMagic", "simulate_magic"); static final FieldName gachaRandom = FieldName.forField("gachaRandom", "gacha_random"); - - static final FieldName gachaNum = FieldName.forField("gachaNum", "gacha_num"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/DoGachaScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/DoGachaScRspOuterClass.java index 478814758..a79e7e1fd 100644 --- a/src/generated/main/emu/lunarcore/proto/DoGachaScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/DoGachaScRspOuterClass.java @@ -20,27 +20,27 @@ public static final class DoGachaScRsp extends ProtoMessage implem private static final long serialVersionUID = 0L; /** - * optional uint32 gacha_id = 3; + * optional uint32 gacha_id = 4; */ private int gachaId; /** - * optional uint32 ceiling_num = 5; + * optional uint32 gacha_num = 5; */ - private int ceilingNum; + private int gachaNum; /** - * optional uint32 gacha_num = 11; + * optional uint32 ceiling_num = 13; */ - private int gachaNum; + private int ceilingNum; /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 14; */ private int retcode; /** - * repeated .GachaItem gacha_item_list = 9; + * repeated .GachaItem gacha_item_list = 7; */ private final RepeatedMessage gachaItemList = RepeatedMessage.newEmptyInstance(GachaItemOuterClass.GachaItem.getFactory()); @@ -55,7 +55,7 @@ public static DoGachaScRsp newInstance() { } /** - * optional uint32 gacha_id = 3; + * optional uint32 gacha_id = 4; * @return whether the gachaId field is set */ public boolean hasGachaId() { @@ -63,7 +63,7 @@ public boolean hasGachaId() { } /** - * optional uint32 gacha_id = 3; + * optional uint32 gacha_id = 4; * @return this */ public DoGachaScRsp clearGachaId() { @@ -73,7 +73,7 @@ public DoGachaScRsp clearGachaId() { } /** - * optional uint32 gacha_id = 3; + * optional uint32 gacha_id = 4; * @return the gachaId */ public int getGachaId() { @@ -81,7 +81,7 @@ public int getGachaId() { } /** - * optional uint32 gacha_id = 3; + * optional uint32 gacha_id = 4; * @param value the gachaId to set * @return this */ @@ -92,81 +92,81 @@ public DoGachaScRsp setGachaId(final int value) { } /** - * optional uint32 ceiling_num = 5; - * @return whether the ceilingNum field is set + * optional uint32 gacha_num = 5; + * @return whether the gachaNum field is set */ - public boolean hasCeilingNum() { + public boolean hasGachaNum() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 ceiling_num = 5; + * optional uint32 gacha_num = 5; * @return this */ - public DoGachaScRsp clearCeilingNum() { + public DoGachaScRsp clearGachaNum() { bitField0_ &= ~0x00000002; - ceilingNum = 0; + gachaNum = 0; return this; } /** - * optional uint32 ceiling_num = 5; - * @return the ceilingNum + * optional uint32 gacha_num = 5; + * @return the gachaNum */ - public int getCeilingNum() { - return ceilingNum; + public int getGachaNum() { + return gachaNum; } /** - * optional uint32 ceiling_num = 5; - * @param value the ceilingNum to set + * optional uint32 gacha_num = 5; + * @param value the gachaNum to set * @return this */ - public DoGachaScRsp setCeilingNum(final int value) { + public DoGachaScRsp setGachaNum(final int value) { bitField0_ |= 0x00000002; - ceilingNum = value; + gachaNum = value; return this; } /** - * optional uint32 gacha_num = 11; - * @return whether the gachaNum field is set + * optional uint32 ceiling_num = 13; + * @return whether the ceilingNum field is set */ - public boolean hasGachaNum() { + public boolean hasCeilingNum() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 gacha_num = 11; + * optional uint32 ceiling_num = 13; * @return this */ - public DoGachaScRsp clearGachaNum() { + public DoGachaScRsp clearCeilingNum() { bitField0_ &= ~0x00000004; - gachaNum = 0; + ceilingNum = 0; return this; } /** - * optional uint32 gacha_num = 11; - * @return the gachaNum + * optional uint32 ceiling_num = 13; + * @return the ceilingNum */ - public int getGachaNum() { - return gachaNum; + public int getCeilingNum() { + return ceilingNum; } /** - * optional uint32 gacha_num = 11; - * @param value the gachaNum to set + * optional uint32 ceiling_num = 13; + * @param value the ceilingNum to set * @return this */ - public DoGachaScRsp setGachaNum(final int value) { + public DoGachaScRsp setCeilingNum(final int value) { bitField0_ |= 0x00000004; - gachaNum = value; + ceilingNum = value; return this; } /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 14; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -174,7 +174,7 @@ public boolean hasRetcode() { } /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 14; * @return this */ public DoGachaScRsp clearRetcode() { @@ -184,7 +184,7 @@ public DoGachaScRsp clearRetcode() { } /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 14; * @return the retcode */ public int getRetcode() { @@ -192,7 +192,7 @@ public int getRetcode() { } /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 14; * @param value the retcode to set * @return this */ @@ -203,7 +203,7 @@ public DoGachaScRsp setRetcode(final int value) { } /** - * repeated .GachaItem gacha_item_list = 9; + * repeated .GachaItem gacha_item_list = 7; * @return whether the gachaItemList field is set */ public boolean hasGachaItemList() { @@ -211,7 +211,7 @@ public boolean hasGachaItemList() { } /** - * repeated .GachaItem gacha_item_list = 9; + * repeated .GachaItem gacha_item_list = 7; * @return this */ public DoGachaScRsp clearGachaItemList() { @@ -221,7 +221,7 @@ public DoGachaScRsp clearGachaItemList() { } /** - * repeated .GachaItem gacha_item_list = 9; + * repeated .GachaItem gacha_item_list = 7; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -235,7 +235,7 @@ public RepeatedMessage getGachaItemList() { } /** - * repeated .GachaItem gacha_item_list = 9; + * repeated .GachaItem gacha_item_list = 7; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -249,7 +249,7 @@ public RepeatedMessage getMutableGachaItemList() } /** - * repeated .GachaItem gacha_item_list = 9; + * repeated .GachaItem gacha_item_list = 7; * @param value the gachaItemList to add * @return this */ @@ -260,7 +260,7 @@ public DoGachaScRsp addGachaItemList(final GachaItemOuterClass.GachaItem value) } /** - * repeated .GachaItem gacha_item_list = 9; + * repeated .GachaItem gacha_item_list = 7; * @param values the gachaItemList to add * @return this */ @@ -276,8 +276,8 @@ public DoGachaScRsp copyFrom(final DoGachaScRsp other) { if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; gachaId = other.gachaId; - ceilingNum = other.ceilingNum; gachaNum = other.gachaNum; + ceilingNum = other.ceilingNum; retcode = other.retcode; gachaItemList.copyFrom(other.gachaItemList); } @@ -293,12 +293,12 @@ public DoGachaScRsp mergeFrom(final DoGachaScRsp other) { if (other.hasGachaId()) { setGachaId(other.gachaId); } - if (other.hasCeilingNum()) { - setCeilingNum(other.ceilingNum); - } if (other.hasGachaNum()) { setGachaNum(other.gachaNum); } + if (other.hasCeilingNum()) { + setCeilingNum(other.ceilingNum); + } if (other.hasRetcode()) { setRetcode(other.retcode); } @@ -316,8 +316,8 @@ public DoGachaScRsp clear() { cachedSize = -1; bitField0_ = 0; gachaId = 0; - ceilingNum = 0; gachaNum = 0; + ceilingNum = 0; retcode = 0; gachaItemList.clear(); return this; @@ -345,8 +345,8 @@ public boolean equals(Object o) { DoGachaScRsp other = (DoGachaScRsp) o; return bitField0_ == other.bitField0_ && (!hasGachaId() || gachaId == other.gachaId) - && (!hasCeilingNum() || ceilingNum == other.ceilingNum) && (!hasGachaNum() || gachaNum == other.gachaNum) + && (!hasCeilingNum() || ceilingNum == other.ceilingNum) && (!hasRetcode() || retcode == other.retcode) && (!hasGachaItemList() || gachaItemList.equals(other.gachaItemList)); } @@ -354,24 +354,24 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(gachaId); } if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 40); - output.writeUInt32NoTag(ceilingNum); + output.writeUInt32NoTag(gachaNum); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 88); - output.writeUInt32NoTag(gachaNum); + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(ceilingNum); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 112); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000010) != 0) { for (int i = 0; i < gachaItemList.length(); i++) { - output.writeRawByte((byte) 74); + output.writeRawByte((byte) 58); output.writeMessageNoTag(gachaItemList.get(i)); } } @@ -384,10 +384,10 @@ protected int computeSerializedSize() { size += 1 + ProtoSink.computeUInt32SizeNoTag(gachaId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(ceilingNum); + size += 1 + ProtoSink.computeUInt32SizeNoTag(gachaNum); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(gachaNum); + size += 1 + ProtoSink.computeUInt32SizeNoTag(ceilingNum); } if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); @@ -405,7 +405,7 @@ public DoGachaScRsp mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 24: { + case 32: { // gachaId gachaId = input.readUInt32(); bitField0_ |= 0x00000001; @@ -415,33 +415,33 @@ public DoGachaScRsp mergeFrom(final ProtoSource input) throws IOException { } } case 40: { - // ceilingNum - ceilingNum = input.readUInt32(); + // gachaNum + gachaNum = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 88) { + if (tag != 104) { break; } } - case 88: { - // gachaNum - gachaNum = input.readUInt32(); + case 104: { + // ceilingNum + ceilingNum = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 104) { + if (tag != 112) { break; } } - case 104: { + case 112: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 74) { + if (tag != 58) { break; } } - case 74: { + case 58: { // gachaItemList tag = input.readRepeatedMessage(gachaItemList, tag); bitField0_ |= 0x00000010; @@ -470,10 +470,10 @@ public void writeTo(final JsonSink output) throws IOException { output.writeUInt32(FieldNames.gachaId, gachaId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.ceilingNum, ceilingNum); + output.writeUInt32(FieldNames.gachaNum, gachaNum); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.gachaNum, gachaNum); + output.writeUInt32(FieldNames.ceilingNum, ceilingNum); } if ((bitField0_ & 0x00000008) != 0) { output.writeUInt32(FieldNames.retcode, retcode); @@ -503,11 +503,11 @@ public DoGachaScRsp mergeFrom(final JsonSource input) throws IOException { } break; } - case -1655838327: - case 209119492: { - if (input.isAtField(FieldNames.ceilingNum)) { + case -2052317532: + case 803166025: { + if (input.isAtField(FieldNames.gachaNum)) { if (!input.trySkipNullValue()) { - ceilingNum = input.readUInt32(); + gachaNum = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -515,11 +515,11 @@ public DoGachaScRsp mergeFrom(final JsonSource input) throws IOException { } break; } - case -2052317532: - case 803166025: { - if (input.isAtField(FieldNames.gachaNum)) { + case -1655838327: + case 209119492: { + if (input.isAtField(FieldNames.ceilingNum)) { if (!input.trySkipNullValue()) { - gachaNum = input.readUInt32(); + ceilingNum = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -604,10 +604,10 @@ public DoGachaScRsp create() { static class FieldNames { static final FieldName gachaId = FieldName.forField("gachaId", "gacha_id"); - static final FieldName ceilingNum = FieldName.forField("ceilingNum", "ceiling_num"); - static final FieldName gachaNum = FieldName.forField("gachaNum", "gacha_num"); + static final FieldName ceilingNum = FieldName.forField("ceilingNum", "ceiling_num"); + static final FieldName retcode = FieldName.forField("retcode"); static final FieldName gachaItemList = FieldName.forField("gachaItemList", "gacha_item_list"); diff --git a/src/generated/main/emu/lunarcore/proto/DressAvatarCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/DressAvatarCsReqOuterClass.java index 8dbc96122..3c3ae596e 100644 --- a/src/generated/main/emu/lunarcore/proto/DressAvatarCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/DressAvatarCsReqOuterClass.java @@ -19,14 +19,14 @@ public static final class DressAvatarCsReq extends ProtoMessageoptional uint32 equipment_unique_id = 2; + * optional uint32 base_avatar_id = 2; */ - private int equipmentUniqueId; + private int baseAvatarId; /** - * optional uint32 base_avatar_id = 9; + * optional uint32 equipment_unique_id = 4; */ - private int baseAvatarId; + private int equipmentUniqueId; private DressAvatarCsReq() { } @@ -39,76 +39,76 @@ public static DressAvatarCsReq newInstance() { } /** - * optional uint32 equipment_unique_id = 2; - * @return whether the equipmentUniqueId field is set + * optional uint32 base_avatar_id = 2; + * @return whether the baseAvatarId field is set */ - public boolean hasEquipmentUniqueId() { + public boolean hasBaseAvatarId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 equipment_unique_id = 2; + * optional uint32 base_avatar_id = 2; * @return this */ - public DressAvatarCsReq clearEquipmentUniqueId() { + public DressAvatarCsReq clearBaseAvatarId() { bitField0_ &= ~0x00000001; - equipmentUniqueId = 0; + baseAvatarId = 0; return this; } /** - * optional uint32 equipment_unique_id = 2; - * @return the equipmentUniqueId + * optional uint32 base_avatar_id = 2; + * @return the baseAvatarId */ - public int getEquipmentUniqueId() { - return equipmentUniqueId; + public int getBaseAvatarId() { + return baseAvatarId; } /** - * optional uint32 equipment_unique_id = 2; - * @param value the equipmentUniqueId to set + * optional uint32 base_avatar_id = 2; + * @param value the baseAvatarId to set * @return this */ - public DressAvatarCsReq setEquipmentUniqueId(final int value) { + public DressAvatarCsReq setBaseAvatarId(final int value) { bitField0_ |= 0x00000001; - equipmentUniqueId = value; + baseAvatarId = value; return this; } /** - * optional uint32 base_avatar_id = 9; - * @return whether the baseAvatarId field is set + * optional uint32 equipment_unique_id = 4; + * @return whether the equipmentUniqueId field is set */ - public boolean hasBaseAvatarId() { + public boolean hasEquipmentUniqueId() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 base_avatar_id = 9; + * optional uint32 equipment_unique_id = 4; * @return this */ - public DressAvatarCsReq clearBaseAvatarId() { + public DressAvatarCsReq clearEquipmentUniqueId() { bitField0_ &= ~0x00000002; - baseAvatarId = 0; + equipmentUniqueId = 0; return this; } /** - * optional uint32 base_avatar_id = 9; - * @return the baseAvatarId + * optional uint32 equipment_unique_id = 4; + * @return the equipmentUniqueId */ - public int getBaseAvatarId() { - return baseAvatarId; + public int getEquipmentUniqueId() { + return equipmentUniqueId; } /** - * optional uint32 base_avatar_id = 9; - * @param value the baseAvatarId to set + * optional uint32 equipment_unique_id = 4; + * @param value the equipmentUniqueId to set * @return this */ - public DressAvatarCsReq setBaseAvatarId(final int value) { + public DressAvatarCsReq setEquipmentUniqueId(final int value) { bitField0_ |= 0x00000002; - baseAvatarId = value; + equipmentUniqueId = value; return this; } @@ -117,8 +117,8 @@ public DressAvatarCsReq copyFrom(final DressAvatarCsReq other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - equipmentUniqueId = other.equipmentUniqueId; baseAvatarId = other.baseAvatarId; + equipmentUniqueId = other.equipmentUniqueId; } return this; } @@ -129,12 +129,12 @@ public DressAvatarCsReq mergeFrom(final DressAvatarCsReq other) { return this; } cachedSize = -1; - if (other.hasEquipmentUniqueId()) { - setEquipmentUniqueId(other.equipmentUniqueId); - } if (other.hasBaseAvatarId()) { setBaseAvatarId(other.baseAvatarId); } + if (other.hasEquipmentUniqueId()) { + setEquipmentUniqueId(other.equipmentUniqueId); + } return this; } @@ -145,8 +145,8 @@ public DressAvatarCsReq clear() { } cachedSize = -1; bitField0_ = 0; - equipmentUniqueId = 0; baseAvatarId = 0; + equipmentUniqueId = 0; return this; } @@ -170,19 +170,19 @@ public boolean equals(Object o) { } DressAvatarCsReq other = (DressAvatarCsReq) o; return bitField0_ == other.bitField0_ - && (!hasEquipmentUniqueId() || equipmentUniqueId == other.equipmentUniqueId) - && (!hasBaseAvatarId() || baseAvatarId == other.baseAvatarId); + && (!hasBaseAvatarId() || baseAvatarId == other.baseAvatarId) + && (!hasEquipmentUniqueId() || equipmentUniqueId == other.equipmentUniqueId); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { output.writeRawByte((byte) 16); - output.writeUInt32NoTag(equipmentUniqueId); + output.writeUInt32NoTag(baseAvatarId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 72); - output.writeUInt32NoTag(baseAvatarId); + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(equipmentUniqueId); } } @@ -190,10 +190,10 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(equipmentUniqueId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(equipmentUniqueId); } return size; } @@ -206,17 +206,17 @@ public DressAvatarCsReq mergeFrom(final ProtoSource input) throws IOException { while (true) { switch (tag) { case 16: { - // equipmentUniqueId - equipmentUniqueId = input.readUInt32(); + // baseAvatarId + baseAvatarId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 72) { + if (tag != 32) { break; } } - case 72: { - // baseAvatarId - baseAvatarId = input.readUInt32(); + case 32: { + // equipmentUniqueId + equipmentUniqueId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { @@ -241,10 +241,10 @@ public DressAvatarCsReq mergeFrom(final ProtoSource input) throws IOException { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.equipmentUniqueId, equipmentUniqueId); + output.writeUInt32(FieldNames.baseAvatarId, baseAvatarId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.baseAvatarId, baseAvatarId); + output.writeUInt32(FieldNames.equipmentUniqueId, equipmentUniqueId); } output.endObject(); } @@ -256,11 +256,11 @@ public DressAvatarCsReq mergeFrom(final JsonSource input) throws IOException { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -1867136902: - case 760467160: { - if (input.isAtField(FieldNames.equipmentUniqueId)) { + case 118022725: + case -1756826157: { + if (input.isAtField(FieldNames.baseAvatarId)) { if (!input.trySkipNullValue()) { - equipmentUniqueId = input.readUInt32(); + baseAvatarId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -268,11 +268,11 @@ public DressAvatarCsReq mergeFrom(final JsonSource input) throws IOException { } break; } - case 118022725: - case -1756826157: { - if (input.isAtField(FieldNames.baseAvatarId)) { + case -1867136902: + case 760467160: { + if (input.isAtField(FieldNames.equipmentUniqueId)) { if (!input.trySkipNullValue()) { - baseAvatarId = input.readUInt32(); + equipmentUniqueId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -333,9 +333,9 @@ public DressAvatarCsReq create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName equipmentUniqueId = FieldName.forField("equipmentUniqueId", "equipment_unique_id"); - static final FieldName baseAvatarId = FieldName.forField("baseAvatarId", "base_avatar_id"); + + static final FieldName equipmentUniqueId = FieldName.forField("equipmentUniqueId", "equipment_unique_id"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/DressRelicAvatarCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/DressRelicAvatarCsReqOuterClass.java index dde576b91..12122ecab 100644 --- a/src/generated/main/emu/lunarcore/proto/DressRelicAvatarCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/DressRelicAvatarCsReqOuterClass.java @@ -20,12 +20,12 @@ public static final class DressRelicAvatarCsReq extends ProtoMessageoptional uint32 base_avatar_id = 13; + * optional uint32 base_avatar_id = 5; */ private int baseAvatarId; /** - * repeated .RelicParam param_list = 11; + * repeated .RelicParam param_list = 15; */ private final RepeatedMessage paramList = RepeatedMessage.newEmptyInstance(RelicParamOuterClass.RelicParam.getFactory()); @@ -40,7 +40,7 @@ public static DressRelicAvatarCsReq newInstance() { } /** - * optional uint32 base_avatar_id = 13; + * optional uint32 base_avatar_id = 5; * @return whether the baseAvatarId field is set */ public boolean hasBaseAvatarId() { @@ -48,7 +48,7 @@ public boolean hasBaseAvatarId() { } /** - * optional uint32 base_avatar_id = 13; + * optional uint32 base_avatar_id = 5; * @return this */ public DressRelicAvatarCsReq clearBaseAvatarId() { @@ -58,7 +58,7 @@ public DressRelicAvatarCsReq clearBaseAvatarId() { } /** - * optional uint32 base_avatar_id = 13; + * optional uint32 base_avatar_id = 5; * @return the baseAvatarId */ public int getBaseAvatarId() { @@ -66,7 +66,7 @@ public int getBaseAvatarId() { } /** - * optional uint32 base_avatar_id = 13; + * optional uint32 base_avatar_id = 5; * @param value the baseAvatarId to set * @return this */ @@ -77,7 +77,7 @@ public DressRelicAvatarCsReq setBaseAvatarId(final int value) { } /** - * repeated .RelicParam param_list = 11; + * repeated .RelicParam param_list = 15; * @return whether the paramList field is set */ public boolean hasParamList() { @@ -85,7 +85,7 @@ public boolean hasParamList() { } /** - * repeated .RelicParam param_list = 11; + * repeated .RelicParam param_list = 15; * @return this */ public DressRelicAvatarCsReq clearParamList() { @@ -95,7 +95,7 @@ public DressRelicAvatarCsReq clearParamList() { } /** - * repeated .RelicParam param_list = 11; + * repeated .RelicParam param_list = 15; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -109,7 +109,7 @@ public RepeatedMessage getParamList() { } /** - * repeated .RelicParam param_list = 11; + * repeated .RelicParam param_list = 15; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -123,7 +123,7 @@ public RepeatedMessage getMutableParamList() { } /** - * repeated .RelicParam param_list = 11; + * repeated .RelicParam param_list = 15; * @param value the paramList to add * @return this */ @@ -134,7 +134,7 @@ public DressRelicAvatarCsReq addParamList(final RelicParamOuterClass.RelicParam } /** - * repeated .RelicParam param_list = 11; + * repeated .RelicParam param_list = 15; * @param values the paramList to add * @return this */ @@ -210,12 +210,12 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 40); output.writeUInt32NoTag(baseAvatarId); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < paramList.length(); i++) { - output.writeRawByte((byte) 90); + output.writeRawByte((byte) 122); output.writeMessageNoTag(paramList.get(i)); } } @@ -240,16 +240,16 @@ public DressRelicAvatarCsReq mergeFrom(final ProtoSource input) throws IOExcepti int tag = input.readTag(); while (true) { switch (tag) { - case 104: { + case 40: { // baseAvatarId baseAvatarId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 90) { + if (tag != 122) { break; } } - case 90: { + case 122: { // paramList tag = input.readRepeatedMessage(paramList, tag); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/EnableRogueTalentCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/EnableRogueTalentCsReqOuterClass.java index cca2b5ce2..a40668d50 100644 --- a/src/generated/main/emu/lunarcore/proto/EnableRogueTalentCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/EnableRogueTalentCsReqOuterClass.java @@ -19,7 +19,7 @@ public static final class EnableRogueTalentCsReq extends ProtoMessageoptional uint32 talent_id = 10; + * optional uint32 talent_id = 13; */ private int talentId; @@ -34,7 +34,7 @@ public static EnableRogueTalentCsReq newInstance() { } /** - * optional uint32 talent_id = 10; + * optional uint32 talent_id = 13; * @return whether the talentId field is set */ public boolean hasTalentId() { @@ -42,7 +42,7 @@ public boolean hasTalentId() { } /** - * optional uint32 talent_id = 10; + * optional uint32 talent_id = 13; * @return this */ public EnableRogueTalentCsReq clearTalentId() { @@ -52,7 +52,7 @@ public EnableRogueTalentCsReq clearTalentId() { } /** - * optional uint32 talent_id = 10; + * optional uint32 talent_id = 13; * @return the talentId */ public int getTalentId() { @@ -60,7 +60,7 @@ public int getTalentId() { } /** - * optional uint32 talent_id = 10; + * optional uint32 talent_id = 13; * @param value the talentId to set * @return this */ @@ -129,7 +129,7 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 104); output.writeUInt32NoTag(talentId); } } @@ -150,7 +150,7 @@ public EnableRogueTalentCsReq mergeFrom(final ProtoSource input) throws IOExcept int tag = input.readTag(); while (true) { switch (tag) { - case 80: { + case 104: { // talentId talentId = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/EnableRogueTalentScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/EnableRogueTalentScRspOuterClass.java index c3aaf8706..a8492305c 100644 --- a/src/generated/main/emu/lunarcore/proto/EnableRogueTalentScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/EnableRogueTalentScRspOuterClass.java @@ -19,12 +19,12 @@ public static final class EnableRogueTalentScRsp extends ProtoMessageoptional uint32 retcode = 8; + * optional uint32 retcode = 14; */ private int retcode; /** - * optional .RogueTalentInfo talent_info = 7; + * optional .RogueTalentInfo talent_info = 1; */ private final RogueTalentInfoOuterClass.RogueTalentInfo talentInfo = RogueTalentInfoOuterClass.RogueTalentInfo.newInstance(); @@ -39,7 +39,7 @@ public static EnableRogueTalentScRsp newInstance() { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 14; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -47,7 +47,7 @@ public boolean hasRetcode() { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 14; * @return this */ public EnableRogueTalentScRsp clearRetcode() { @@ -57,7 +57,7 @@ public EnableRogueTalentScRsp clearRetcode() { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 14; * @return the retcode */ public int getRetcode() { @@ -65,7 +65,7 @@ public int getRetcode() { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 14; * @param value the retcode to set * @return this */ @@ -76,7 +76,7 @@ public EnableRogueTalentScRsp setRetcode(final int value) { } /** - * optional .RogueTalentInfo talent_info = 7; + * optional .RogueTalentInfo talent_info = 1; * @return whether the talentInfo field is set */ public boolean hasTalentInfo() { @@ -84,7 +84,7 @@ public boolean hasTalentInfo() { } /** - * optional .RogueTalentInfo talent_info = 7; + * optional .RogueTalentInfo talent_info = 1; * @return this */ public EnableRogueTalentScRsp clearTalentInfo() { @@ -94,7 +94,7 @@ public EnableRogueTalentScRsp clearTalentInfo() { } /** - * optional .RogueTalentInfo talent_info = 7; + * optional .RogueTalentInfo talent_info = 1; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -108,7 +108,7 @@ public RogueTalentInfoOuterClass.RogueTalentInfo getTalentInfo() { } /** - * optional .RogueTalentInfo talent_info = 7; + * optional .RogueTalentInfo talent_info = 1; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -122,7 +122,7 @@ public RogueTalentInfoOuterClass.RogueTalentInfo getMutableTalentInfo() { } /** - * optional .RogueTalentInfo talent_info = 7; + * optional .RogueTalentInfo talent_info = 1; * @param value the talentInfo to set * @return this */ @@ -199,11 +199,11 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 112); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 58); + output.writeRawByte((byte) 10); output.writeMessageNoTag(talentInfo); } } @@ -227,16 +227,16 @@ public EnableRogueTalentScRsp mergeFrom(final ProtoSource input) throws IOExcept int tag = input.readTag(); while (true) { switch (tag) { - case 64: { + case 112: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 58) { + if (tag != 10) { break; } } - case 58: { + case 10: { // talentInfo input.readMessage(talentInfo); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/EnterSceneByServerScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/EnterSceneByServerScNotifyOuterClass.java index bc450ed93..c25e7e703 100644 --- a/src/generated/main/emu/lunarcore/proto/EnterSceneByServerScNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/EnterSceneByServerScNotifyOuterClass.java @@ -24,7 +24,7 @@ public static final class EnterSceneByServerScNotify extends ProtoMessageoptional .SceneInfo scene = 6; + * optional .SceneInfo scene = 4; */ private final SceneInfoOuterClass.SceneInfo scene = SceneInfoOuterClass.SceneInfo.newInstance(); @@ -107,7 +107,7 @@ public EnterSceneByServerScNotify setReason( } /** - * optional .SceneInfo scene = 6; + * optional .SceneInfo scene = 4; * @return whether the scene field is set */ public boolean hasScene() { @@ -115,7 +115,7 @@ public boolean hasScene() { } /** - * optional .SceneInfo scene = 6; + * optional .SceneInfo scene = 4; * @return this */ public EnterSceneByServerScNotify clearScene() { @@ -125,7 +125,7 @@ public EnterSceneByServerScNotify clearScene() { } /** - * optional .SceneInfo scene = 6; + * optional .SceneInfo scene = 4; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -139,7 +139,7 @@ public SceneInfoOuterClass.SceneInfo getScene() { } /** - * optional .SceneInfo scene = 6; + * optional .SceneInfo scene = 4; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -153,7 +153,7 @@ public SceneInfoOuterClass.SceneInfo getMutableScene() { } /** - * optional .SceneInfo scene = 6; + * optional .SceneInfo scene = 4; * @param value the scene to set * @return this */ @@ -297,7 +297,7 @@ public void writeTo(final ProtoSink output) throws IOException { output.writeEnumNoTag(reason); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 50); + output.writeRawByte((byte) 34); output.writeMessageNoTag(scene); } if ((bitField0_ & 0x00000004) != 0) { @@ -336,11 +336,11 @@ public EnterSceneByServerScNotify mergeFrom(final ProtoSource input) throws IOEx bitField0_ |= 0x00000001; } tag = input.readTag(); - if (tag != 50) { + if (tag != 34) { break; } } - case 50: { + case 34: { // scene input.readMessage(scene); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/EnterSceneCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/EnterSceneCsReqOuterClass.java index 38118f734..30428eb08 100644 --- a/src/generated/main/emu/lunarcore/proto/EnterSceneCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/EnterSceneCsReqOuterClass.java @@ -19,12 +19,12 @@ public static final class EnterSceneCsReq extends ProtoMessage private static final long serialVersionUID = 0L; /** - * optional uint32 teleport_id = 1; + * optional uint32 teleport_id = 2; */ private int teleportId; /** - * optional uint32 entry_id = 6; + * optional uint32 entry_id = 14; */ private int entryId; @@ -39,7 +39,7 @@ public static EnterSceneCsReq newInstance() { } /** - * optional uint32 teleport_id = 1; + * optional uint32 teleport_id = 2; * @return whether the teleportId field is set */ public boolean hasTeleportId() { @@ -47,7 +47,7 @@ public boolean hasTeleportId() { } /** - * optional uint32 teleport_id = 1; + * optional uint32 teleport_id = 2; * @return this */ public EnterSceneCsReq clearTeleportId() { @@ -57,7 +57,7 @@ public EnterSceneCsReq clearTeleportId() { } /** - * optional uint32 teleport_id = 1; + * optional uint32 teleport_id = 2; * @return the teleportId */ public int getTeleportId() { @@ -65,7 +65,7 @@ public int getTeleportId() { } /** - * optional uint32 teleport_id = 1; + * optional uint32 teleport_id = 2; * @param value the teleportId to set * @return this */ @@ -76,7 +76,7 @@ public EnterSceneCsReq setTeleportId(final int value) { } /** - * optional uint32 entry_id = 6; + * optional uint32 entry_id = 14; * @return whether the entryId field is set */ public boolean hasEntryId() { @@ -84,7 +84,7 @@ public boolean hasEntryId() { } /** - * optional uint32 entry_id = 6; + * optional uint32 entry_id = 14; * @return this */ public EnterSceneCsReq clearEntryId() { @@ -94,7 +94,7 @@ public EnterSceneCsReq clearEntryId() { } /** - * optional uint32 entry_id = 6; + * optional uint32 entry_id = 14; * @return the entryId */ public int getEntryId() { @@ -102,7 +102,7 @@ public int getEntryId() { } /** - * optional uint32 entry_id = 6; + * optional uint32 entry_id = 14; * @param value the entryId to set * @return this */ @@ -177,11 +177,11 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); + output.writeRawByte((byte) 16); output.writeUInt32NoTag(teleportId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 112); output.writeUInt32NoTag(entryId); } } @@ -205,16 +205,16 @@ public EnterSceneCsReq mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 8: { + case 16: { // teleportId teleportId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 48) { + if (tag != 112) { break; } } - case 48: { + case 112: { // entryId entryId = input.readUInt32(); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/EnteredSceneInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/EnteredSceneInfoOuterClass.java index 6c7f30823..edaf76ec7 100644 --- a/src/generated/main/emu/lunarcore/proto/EnteredSceneInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/EnteredSceneInfoOuterClass.java @@ -19,14 +19,14 @@ public static final class EnteredSceneInfo extends ProtoMessageoptional uint32 floor_id = 2; + * optional uint32 plane_id = 1; */ - private int floorId; + private int planeId; /** - * optional uint32 plane_id = 6; + * optional uint32 floor_id = 6; */ - private int planeId; + private int floorId; private EnteredSceneInfo() { } @@ -39,76 +39,76 @@ public static EnteredSceneInfo newInstance() { } /** - * optional uint32 floor_id = 2; - * @return whether the floorId field is set + * optional uint32 plane_id = 1; + * @return whether the planeId field is set */ - public boolean hasFloorId() { + public boolean hasPlaneId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 floor_id = 2; + * optional uint32 plane_id = 1; * @return this */ - public EnteredSceneInfo clearFloorId() { + public EnteredSceneInfo clearPlaneId() { bitField0_ &= ~0x00000001; - floorId = 0; + planeId = 0; return this; } /** - * optional uint32 floor_id = 2; - * @return the floorId + * optional uint32 plane_id = 1; + * @return the planeId */ - public int getFloorId() { - return floorId; + public int getPlaneId() { + return planeId; } /** - * optional uint32 floor_id = 2; - * @param value the floorId to set + * optional uint32 plane_id = 1; + * @param value the planeId to set * @return this */ - public EnteredSceneInfo setFloorId(final int value) { + public EnteredSceneInfo setPlaneId(final int value) { bitField0_ |= 0x00000001; - floorId = value; + planeId = value; return this; } /** - * optional uint32 plane_id = 6; - * @return whether the planeId field is set + * optional uint32 floor_id = 6; + * @return whether the floorId field is set */ - public boolean hasPlaneId() { + public boolean hasFloorId() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 plane_id = 6; + * optional uint32 floor_id = 6; * @return this */ - public EnteredSceneInfo clearPlaneId() { + public EnteredSceneInfo clearFloorId() { bitField0_ &= ~0x00000002; - planeId = 0; + floorId = 0; return this; } /** - * optional uint32 plane_id = 6; - * @return the planeId + * optional uint32 floor_id = 6; + * @return the floorId */ - public int getPlaneId() { - return planeId; + public int getFloorId() { + return floorId; } /** - * optional uint32 plane_id = 6; - * @param value the planeId to set + * optional uint32 floor_id = 6; + * @param value the floorId to set * @return this */ - public EnteredSceneInfo setPlaneId(final int value) { + public EnteredSceneInfo setFloorId(final int value) { bitField0_ |= 0x00000002; - planeId = value; + floorId = value; return this; } @@ -117,8 +117,8 @@ public EnteredSceneInfo copyFrom(final EnteredSceneInfo other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - floorId = other.floorId; planeId = other.planeId; + floorId = other.floorId; } return this; } @@ -129,12 +129,12 @@ public EnteredSceneInfo mergeFrom(final EnteredSceneInfo other) { return this; } cachedSize = -1; - if (other.hasFloorId()) { - setFloorId(other.floorId); - } if (other.hasPlaneId()) { setPlaneId(other.planeId); } + if (other.hasFloorId()) { + setFloorId(other.floorId); + } return this; } @@ -145,8 +145,8 @@ public EnteredSceneInfo clear() { } cachedSize = -1; bitField0_ = 0; - floorId = 0; planeId = 0; + floorId = 0; return this; } @@ -170,19 +170,19 @@ public boolean equals(Object o) { } EnteredSceneInfo other = (EnteredSceneInfo) o; return bitField0_ == other.bitField0_ - && (!hasFloorId() || floorId == other.floorId) - && (!hasPlaneId() || planeId == other.planeId); + && (!hasPlaneId() || planeId == other.planeId) + && (!hasFloorId() || floorId == other.floorId); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(floorId); + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(planeId); } if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 48); - output.writeUInt32NoTag(planeId); + output.writeUInt32NoTag(floorId); } } @@ -190,10 +190,10 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(floorId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(planeId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(planeId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(floorId); } return size; } @@ -205,9 +205,9 @@ public EnteredSceneInfo mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { - // floorId - floorId = input.readUInt32(); + case 8: { + // planeId + planeId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 48) { @@ -215,8 +215,8 @@ public EnteredSceneInfo mergeFrom(final ProtoSource input) throws IOException { } } case 48: { - // planeId - planeId = input.readUInt32(); + // floorId + floorId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { @@ -241,10 +241,10 @@ public EnteredSceneInfo mergeFrom(final ProtoSource input) throws IOException { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.floorId, floorId); + output.writeUInt32(FieldNames.planeId, planeId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.planeId, planeId); + output.writeUInt32(FieldNames.floorId, floorId); } output.endObject(); } @@ -256,11 +256,11 @@ public EnteredSceneInfo mergeFrom(final JsonSource input) throws IOException { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -766027193: - case 2022982190: { - if (input.isAtField(FieldNames.floorId)) { + case -493896553: + case 1869097438: { + if (input.isAtField(FieldNames.planeId)) { if (!input.trySkipNullValue()) { - floorId = input.readUInt32(); + planeId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -268,11 +268,11 @@ public EnteredSceneInfo mergeFrom(final JsonSource input) throws IOException { } break; } - case -493896553: - case 1869097438: { - if (input.isAtField(FieldNames.planeId)) { + case -766027193: + case 2022982190: { + if (input.isAtField(FieldNames.floorId)) { if (!input.trySkipNullValue()) { - planeId = input.readUInt32(); + floorId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -333,9 +333,9 @@ public EnteredSceneInfo create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName floorId = FieldName.forField("floorId", "floor_id"); - static final FieldName planeId = FieldName.forField("planeId", "plane_id"); + + static final FieldName floorId = FieldName.forField("floorId", "floor_id"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/EntityBuffChangeInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/EntityBuffChangeInfoOuterClass.java index 948c1f2c2..4b85880d1 100644 --- a/src/generated/main/emu/lunarcore/proto/EntityBuffChangeInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/EntityBuffChangeInfoOuterClass.java @@ -19,17 +19,17 @@ public static final class EntityBuffChangeInfo extends ProtoMessageoptional uint32 remove_buff_id = 5; + * optional uint32 remove_buff_id = 4; */ private int removeBuffId; /** - * optional uint32 entity_id = 8; + * optional uint32 entity_id = 9; */ private int entityId; /** - * optional .BuffInfo add_buff_info = 4; + * optional .BuffInfo add_buff_info = 12; */ private final BuffInfoOuterClass.BuffInfo addBuffInfo = BuffInfoOuterClass.BuffInfo.newInstance(); @@ -43,32 +43,8 @@ public static EntityBuffChangeInfo newInstance() { return new EntityBuffChangeInfo(); } - public boolean hasInfo() { - return (((bitField0_ & 0x00000003)) != 0); - } - - public EntityBuffChangeInfo clearInfo() { - if (hasInfo()) { - clearRemoveBuffId(); - clearAddBuffInfo(); - } - return this; - } - - private void clearInfoOtherRemoveBuffId() { - if ((((bitField0_ & 0x00000002)) != 0)) { - clearAddBuffInfo(); - } - } - - private void clearInfoOtherAddBuffInfo() { - if ((((bitField0_ & 0x00000001)) != 0)) { - clearRemoveBuffId(); - } - } - /** - * optional uint32 remove_buff_id = 5; + * optional uint32 remove_buff_id = 4; * @return whether the removeBuffId field is set */ public boolean hasRemoveBuffId() { @@ -76,7 +52,7 @@ public boolean hasRemoveBuffId() { } /** - * optional uint32 remove_buff_id = 5; + * optional uint32 remove_buff_id = 4; * @return this */ public EntityBuffChangeInfo clearRemoveBuffId() { @@ -86,7 +62,7 @@ public EntityBuffChangeInfo clearRemoveBuffId() { } /** - * optional uint32 remove_buff_id = 5; + * optional uint32 remove_buff_id = 4; * @return the removeBuffId */ public int getRemoveBuffId() { @@ -94,37 +70,36 @@ public int getRemoveBuffId() { } /** - * optional uint32 remove_buff_id = 5; + * optional uint32 remove_buff_id = 4; * @param value the removeBuffId to set * @return this */ public EntityBuffChangeInfo setRemoveBuffId(final int value) { - clearInfoOtherRemoveBuffId(); bitField0_ |= 0x00000001; removeBuffId = value; return this; } /** - * optional uint32 entity_id = 8; + * optional uint32 entity_id = 9; * @return whether the entityId field is set */ public boolean hasEntityId() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 entity_id = 8; + * optional uint32 entity_id = 9; * @return this */ public EntityBuffChangeInfo clearEntityId() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; entityId = 0; return this; } /** - * optional uint32 entity_id = 8; + * optional uint32 entity_id = 9; * @return the entityId */ public int getEntityId() { @@ -132,36 +107,36 @@ public int getEntityId() { } /** - * optional uint32 entity_id = 8; + * optional uint32 entity_id = 9; * @param value the entityId to set * @return this */ public EntityBuffChangeInfo setEntityId(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; entityId = value; return this; } /** - * optional .BuffInfo add_buff_info = 4; + * optional .BuffInfo add_buff_info = 12; * @return whether the addBuffInfo field is set */ public boolean hasAddBuffInfo() { - return (bitField0_ & 0x00000002) != 0; + return (bitField0_ & 0x00000004) != 0; } /** - * optional .BuffInfo add_buff_info = 4; + * optional .BuffInfo add_buff_info = 12; * @return this */ public EntityBuffChangeInfo clearAddBuffInfo() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000004; addBuffInfo.clear(); return this; } /** - * optional .BuffInfo add_buff_info = 4; + * optional .BuffInfo add_buff_info = 12; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -175,7 +150,7 @@ public BuffInfoOuterClass.BuffInfo getAddBuffInfo() { } /** - * optional .BuffInfo add_buff_info = 4; + * optional .BuffInfo add_buff_info = 12; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -184,19 +159,17 @@ public BuffInfoOuterClass.BuffInfo getAddBuffInfo() { * @return internal storage object for modifications */ public BuffInfoOuterClass.BuffInfo getMutableAddBuffInfo() { - clearInfoOtherAddBuffInfo(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; return addBuffInfo; } /** - * optional .BuffInfo add_buff_info = 4; + * optional .BuffInfo add_buff_info = 12; * @param value the addBuffInfo to set * @return this */ public EntityBuffChangeInfo setAddBuffInfo(final BuffInfoOuterClass.BuffInfo value) { - clearInfoOtherAddBuffInfo(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; addBuffInfo.copyFrom(value); return this; } @@ -273,15 +246,15 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(removeBuffId); } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 64); + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 72); output.writeUInt32NoTag(entityId); } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 34); + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 98); output.writeMessageNoTag(addBuffInfo); } } @@ -292,10 +265,10 @@ protected int computeSerializedSize() { if ((bitField0_ & 0x00000001) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(removeBuffId); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(entityId); } - if ((bitField0_ & 0x00000002) != 0) { + if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(addBuffInfo); } return size; @@ -308,30 +281,28 @@ public EntityBuffChangeInfo mergeFrom(final ProtoSource input) throws IOExceptio int tag = input.readTag(); while (true) { switch (tag) { - case 40: { + case 32: { // removeBuffId - clearInfoOtherRemoveBuffId(); removeBuffId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 64) { + if (tag != 72) { break; } } - case 64: { + case 72: { // entityId entityId = input.readUInt32(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 34) { + if (tag != 98) { break; } } - case 34: { + case 98: { // addBuffInfo - clearInfoOtherAddBuffInfo(); input.readMessage(addBuffInfo); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 0) { break; @@ -357,10 +328,10 @@ public void writeTo(final JsonSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { output.writeUInt32(FieldNames.removeBuffId, removeBuffId); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.entityId, entityId); } - if ((bitField0_ & 0x00000002) != 0) { + if ((bitField0_ & 0x00000004) != 0) { output.writeMessage(FieldNames.addBuffInfo, addBuffInfo); } output.endObject(); @@ -377,7 +348,6 @@ public EntityBuffChangeInfo mergeFrom(final JsonSource input) throws IOException case 927119308: { if (input.isAtField(FieldNames.removeBuffId)) { if (!input.trySkipNullValue()) { - clearInfoOtherRemoveBuffId(); removeBuffId = input.readUInt32(); bitField0_ |= 0x00000001; } @@ -391,7 +361,7 @@ public EntityBuffChangeInfo mergeFrom(final JsonSource input) throws IOException if (input.isAtField(FieldNames.entityId)) { if (!input.trySkipNullValue()) { entityId = input.readUInt32(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; } } else { input.skipUnknownField(); @@ -402,9 +372,8 @@ public EntityBuffChangeInfo mergeFrom(final JsonSource input) throws IOException case 888334076: { if (input.isAtField(FieldNames.addBuffInfo)) { if (!input.trySkipNullValue()) { - clearInfoOtherAddBuffInfo(); input.readMessage(addBuffInfo); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; } } else { input.skipUnknownField(); diff --git a/src/generated/main/emu/lunarcore/proto/EntityMotionOuterClass.java b/src/generated/main/emu/lunarcore/proto/EntityMotionOuterClass.java index 903781611..590b796ce 100644 --- a/src/generated/main/emu/lunarcore/proto/EntityMotionOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/EntityMotionOuterClass.java @@ -19,17 +19,17 @@ public static final class EntityMotion extends ProtoMessage implem private static final long serialVersionUID = 0L; /** - * optional uint32 entity_id = 1; + * optional uint32 map_layer = 13; */ - private int entityId; + private int mapLayer; /** - * optional uint32 map_layer = 3; + * optional uint32 entity_id = 14; */ - private int mapLayer; + private int entityId; /** - * optional .MotionInfo motion = 14; + * optional .MotionInfo motion = 11; */ private final MotionInfoOuterClass.MotionInfo motion = MotionInfoOuterClass.MotionInfo.newInstance(); @@ -44,81 +44,81 @@ public static EntityMotion newInstance() { } /** - * optional uint32 entity_id = 1; - * @return whether the entityId field is set + * optional uint32 map_layer = 13; + * @return whether the mapLayer field is set */ - public boolean hasEntityId() { + public boolean hasMapLayer() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 entity_id = 1; + * optional uint32 map_layer = 13; * @return this */ - public EntityMotion clearEntityId() { + public EntityMotion clearMapLayer() { bitField0_ &= ~0x00000001; - entityId = 0; + mapLayer = 0; return this; } /** - * optional uint32 entity_id = 1; - * @return the entityId + * optional uint32 map_layer = 13; + * @return the mapLayer */ - public int getEntityId() { - return entityId; + public int getMapLayer() { + return mapLayer; } /** - * optional uint32 entity_id = 1; - * @param value the entityId to set + * optional uint32 map_layer = 13; + * @param value the mapLayer to set * @return this */ - public EntityMotion setEntityId(final int value) { + public EntityMotion setMapLayer(final int value) { bitField0_ |= 0x00000001; - entityId = value; + mapLayer = value; return this; } /** - * optional uint32 map_layer = 3; - * @return whether the mapLayer field is set + * optional uint32 entity_id = 14; + * @return whether the entityId field is set */ - public boolean hasMapLayer() { + public boolean hasEntityId() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 map_layer = 3; + * optional uint32 entity_id = 14; * @return this */ - public EntityMotion clearMapLayer() { + public EntityMotion clearEntityId() { bitField0_ &= ~0x00000002; - mapLayer = 0; + entityId = 0; return this; } /** - * optional uint32 map_layer = 3; - * @return the mapLayer + * optional uint32 entity_id = 14; + * @return the entityId */ - public int getMapLayer() { - return mapLayer; + public int getEntityId() { + return entityId; } /** - * optional uint32 map_layer = 3; - * @param value the mapLayer to set + * optional uint32 entity_id = 14; + * @param value the entityId to set * @return this */ - public EntityMotion setMapLayer(final int value) { + public EntityMotion setEntityId(final int value) { bitField0_ |= 0x00000002; - mapLayer = value; + entityId = value; return this; } /** - * optional .MotionInfo motion = 14; + * optional .MotionInfo motion = 11; * @return whether the motion field is set */ public boolean hasMotion() { @@ -126,7 +126,7 @@ public boolean hasMotion() { } /** - * optional .MotionInfo motion = 14; + * optional .MotionInfo motion = 11; * @return this */ public EntityMotion clearMotion() { @@ -136,7 +136,7 @@ public EntityMotion clearMotion() { } /** - * optional .MotionInfo motion = 14; + * optional .MotionInfo motion = 11; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -150,7 +150,7 @@ public MotionInfoOuterClass.MotionInfo getMotion() { } /** - * optional .MotionInfo motion = 14; + * optional .MotionInfo motion = 11; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -164,7 +164,7 @@ public MotionInfoOuterClass.MotionInfo getMutableMotion() { } /** - * optional .MotionInfo motion = 14; + * optional .MotionInfo motion = 11; * @param value the motion to set * @return this */ @@ -179,8 +179,8 @@ public EntityMotion copyFrom(final EntityMotion other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - entityId = other.entityId; mapLayer = other.mapLayer; + entityId = other.entityId; motion.copyFrom(other.motion); } return this; @@ -192,12 +192,12 @@ public EntityMotion mergeFrom(final EntityMotion other) { return this; } cachedSize = -1; - if (other.hasEntityId()) { - setEntityId(other.entityId); - } if (other.hasMapLayer()) { setMapLayer(other.mapLayer); } + if (other.hasEntityId()) { + setEntityId(other.entityId); + } if (other.hasMotion()) { getMutableMotion().mergeFrom(other.motion); } @@ -211,8 +211,8 @@ public EntityMotion clear() { } cachedSize = -1; bitField0_ = 0; - entityId = 0; mapLayer = 0; + entityId = 0; motion.clear(); return this; } @@ -238,23 +238,23 @@ public boolean equals(Object o) { } EntityMotion other = (EntityMotion) o; return bitField0_ == other.bitField0_ - && (!hasEntityId() || entityId == other.entityId) && (!hasMapLayer() || mapLayer == other.mapLayer) + && (!hasEntityId() || entityId == other.entityId) && (!hasMotion() || motion.equals(other.motion)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(entityId); + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(mapLayer); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(mapLayer); + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(entityId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 114); + output.writeRawByte((byte) 90); output.writeMessageNoTag(motion); } } @@ -263,10 +263,10 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(entityId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(mapLayer); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(mapLayer); + size += 1 + ProtoSink.computeUInt32SizeNoTag(entityId); } if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(motion); @@ -281,25 +281,25 @@ public EntityMotion mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 8: { - // entityId - entityId = input.readUInt32(); + case 104: { + // mapLayer + mapLayer = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 24) { + if (tag != 112) { break; } } - case 24: { - // mapLayer - mapLayer = input.readUInt32(); + case 112: { + // entityId + entityId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 114) { + if (tag != 90) { break; } } - case 114: { + case 90: { // motion input.readMessage(motion); bitField0_ |= 0x00000004; @@ -326,10 +326,10 @@ public EntityMotion mergeFrom(final ProtoSource input) throws IOException { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.entityId, entityId); + output.writeUInt32(FieldNames.mapLayer, mapLayer); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.mapLayer, mapLayer); + output.writeUInt32(FieldNames.entityId, entityId); } if ((bitField0_ & 0x00000004) != 0) { output.writeMessage(FieldNames.motion, motion); @@ -344,11 +344,11 @@ public EntityMotion mergeFrom(final JsonSource input) throws IOException { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -2102099874: - case -740565257: { - if (input.isAtField(FieldNames.entityId)) { + case 160971093: + case 1248553134: { + if (input.isAtField(FieldNames.mapLayer)) { if (!input.trySkipNullValue()) { - entityId = input.readUInt32(); + mapLayer = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -356,11 +356,11 @@ public EntityMotion mergeFrom(final JsonSource input) throws IOException { } break; } - case 160971093: - case 1248553134: { - if (input.isAtField(FieldNames.mapLayer)) { + case -2102099874: + case -740565257: { + if (input.isAtField(FieldNames.entityId)) { if (!input.trySkipNullValue()) { - mapLayer = input.readUInt32(); + entityId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -431,10 +431,10 @@ public EntityMotion create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName entityId = FieldName.forField("entityId", "entity_id"); - static final FieldName mapLayer = FieldName.forField("mapLayer", "map_layer"); + static final FieldName entityId = FieldName.forField("entityId", "entity_id"); + static final FieldName motion = FieldName.forField("motion"); } } diff --git a/src/generated/main/emu/lunarcore/proto/EquipRelicOuterClass.java b/src/generated/main/emu/lunarcore/proto/EquipRelicOuterClass.java index d44ac8423..1eba528d2 100644 --- a/src/generated/main/emu/lunarcore/proto/EquipRelicOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/EquipRelicOuterClass.java @@ -19,14 +19,14 @@ public static final class EquipRelic extends ProtoMessage implements private static final long serialVersionUID = 0L; /** - * optional uint32 relic_unique_id = 4; + * optional uint32 slot = 4; */ - private int relicUniqueId; + private int slot; /** - * optional uint32 slot = 12; + * optional uint32 relic_unique_id = 15; */ - private int slot; + private int relicUniqueId; private EquipRelic() { } @@ -39,76 +39,76 @@ public static EquipRelic newInstance() { } /** - * optional uint32 relic_unique_id = 4; - * @return whether the relicUniqueId field is set + * optional uint32 slot = 4; + * @return whether the slot field is set */ - public boolean hasRelicUniqueId() { + public boolean hasSlot() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 relic_unique_id = 4; + * optional uint32 slot = 4; * @return this */ - public EquipRelic clearRelicUniqueId() { + public EquipRelic clearSlot() { bitField0_ &= ~0x00000001; - relicUniqueId = 0; + slot = 0; return this; } /** - * optional uint32 relic_unique_id = 4; - * @return the relicUniqueId + * optional uint32 slot = 4; + * @return the slot */ - public int getRelicUniqueId() { - return relicUniqueId; + public int getSlot() { + return slot; } /** - * optional uint32 relic_unique_id = 4; - * @param value the relicUniqueId to set + * optional uint32 slot = 4; + * @param value the slot to set * @return this */ - public EquipRelic setRelicUniqueId(final int value) { + public EquipRelic setSlot(final int value) { bitField0_ |= 0x00000001; - relicUniqueId = value; + slot = value; return this; } /** - * optional uint32 slot = 12; - * @return whether the slot field is set + * optional uint32 relic_unique_id = 15; + * @return whether the relicUniqueId field is set */ - public boolean hasSlot() { + public boolean hasRelicUniqueId() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 slot = 12; + * optional uint32 relic_unique_id = 15; * @return this */ - public EquipRelic clearSlot() { + public EquipRelic clearRelicUniqueId() { bitField0_ &= ~0x00000002; - slot = 0; + relicUniqueId = 0; return this; } /** - * optional uint32 slot = 12; - * @return the slot + * optional uint32 relic_unique_id = 15; + * @return the relicUniqueId */ - public int getSlot() { - return slot; + public int getRelicUniqueId() { + return relicUniqueId; } /** - * optional uint32 slot = 12; - * @param value the slot to set + * optional uint32 relic_unique_id = 15; + * @param value the relicUniqueId to set * @return this */ - public EquipRelic setSlot(final int value) { + public EquipRelic setRelicUniqueId(final int value) { bitField0_ |= 0x00000002; - slot = value; + relicUniqueId = value; return this; } @@ -117,8 +117,8 @@ public EquipRelic copyFrom(final EquipRelic other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - relicUniqueId = other.relicUniqueId; slot = other.slot; + relicUniqueId = other.relicUniqueId; } return this; } @@ -129,12 +129,12 @@ public EquipRelic mergeFrom(final EquipRelic other) { return this; } cachedSize = -1; - if (other.hasRelicUniqueId()) { - setRelicUniqueId(other.relicUniqueId); - } if (other.hasSlot()) { setSlot(other.slot); } + if (other.hasRelicUniqueId()) { + setRelicUniqueId(other.relicUniqueId); + } return this; } @@ -145,8 +145,8 @@ public EquipRelic clear() { } cachedSize = -1; bitField0_ = 0; - relicUniqueId = 0; slot = 0; + relicUniqueId = 0; return this; } @@ -170,19 +170,19 @@ public boolean equals(Object o) { } EquipRelic other = (EquipRelic) o; return bitField0_ == other.bitField0_ - && (!hasRelicUniqueId() || relicUniqueId == other.relicUniqueId) - && (!hasSlot() || slot == other.slot); + && (!hasSlot() || slot == other.slot) + && (!hasRelicUniqueId() || relicUniqueId == other.relicUniqueId); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { output.writeRawByte((byte) 32); - output.writeUInt32NoTag(relicUniqueId); + output.writeUInt32NoTag(slot); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 96); - output.writeUInt32NoTag(slot); + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(relicUniqueId); } } @@ -190,10 +190,10 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(relicUniqueId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(slot); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(slot); + size += 1 + ProtoSink.computeUInt32SizeNoTag(relicUniqueId); } return size; } @@ -206,17 +206,17 @@ public EquipRelic mergeFrom(final ProtoSource input) throws IOException { while (true) { switch (tag) { case 32: { - // relicUniqueId - relicUniqueId = input.readUInt32(); + // slot + slot = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 96) { + if (tag != 120) { break; } } - case 96: { - // slot - slot = input.readUInt32(); + case 120: { + // relicUniqueId + relicUniqueId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { @@ -241,10 +241,10 @@ public EquipRelic mergeFrom(final ProtoSource input) throws IOException { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.relicUniqueId, relicUniqueId); + output.writeUInt32(FieldNames.slot, slot); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.slot, slot); + output.writeUInt32(FieldNames.relicUniqueId, relicUniqueId); } output.endObject(); } @@ -256,11 +256,10 @@ public EquipRelic mergeFrom(final JsonSource input) throws IOException { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -1966200481: - case 49648253: { - if (input.isAtField(FieldNames.relicUniqueId)) { + case 3533310: { + if (input.isAtField(FieldNames.slot)) { if (!input.trySkipNullValue()) { - relicUniqueId = input.readUInt32(); + slot = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -268,10 +267,11 @@ public EquipRelic mergeFrom(final JsonSource input) throws IOException { } break; } - case 3533310: { - if (input.isAtField(FieldNames.slot)) { + case -1966200481: + case 49648253: { + if (input.isAtField(FieldNames.relicUniqueId)) { if (!input.trySkipNullValue()) { - slot = input.readUInt32(); + relicUniqueId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -331,9 +331,9 @@ public EquipRelic create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName relicUniqueId = FieldName.forField("relicUniqueId", "relic_unique_id"); - static final FieldName slot = FieldName.forField("slot"); + + static final FieldName relicUniqueId = FieldName.forField("relicUniqueId", "relic_unique_id"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/EquipmentOuterClass.java b/src/generated/main/emu/lunarcore/proto/EquipmentOuterClass.java index aeb11d96e..6cf75a5da 100644 --- a/src/generated/main/emu/lunarcore/proto/EquipmentOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/EquipmentOuterClass.java @@ -19,42 +19,42 @@ public static final class Equipment extends ProtoMessage implements C private static final long serialVersionUID = 0L; /** - * optional uint32 unique_id = 1; + * optional uint32 rank = 1; */ - private int uniqueId; + private int rank; /** - * optional uint32 base_avatar_id = 2; + * optional uint32 exp = 2; */ - private int baseAvatarId; + private int exp; /** - * optional uint32 promotion = 3; + * optional uint32 base_avatar_id = 7; */ - private int promotion; + private int baseAvatarId; /** - * optional uint32 tid = 4; + * optional uint32 promotion = 8; */ - private int tid; + private int promotion; /** - * optional uint32 level = 12; + * optional uint32 unique_id = 12; */ - private int level; + private int uniqueId; /** - * optional uint32 rank = 13; + * optional uint32 tid = 14; */ - private int rank; + private int tid; /** - * optional uint32 exp = 14; + * optional uint32 level = 15; */ - private int exp; + private int level; /** - * optional bool is_protected = 10; + * optional bool is_protected = 3; */ private boolean isProtected; @@ -69,266 +69,266 @@ public static Equipment newInstance() { } /** - * optional uint32 unique_id = 1; - * @return whether the uniqueId field is set + * optional uint32 rank = 1; + * @return whether the rank field is set */ - public boolean hasUniqueId() { + public boolean hasRank() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 unique_id = 1; + * optional uint32 rank = 1; * @return this */ - public Equipment clearUniqueId() { + public Equipment clearRank() { bitField0_ &= ~0x00000001; - uniqueId = 0; + rank = 0; return this; } /** - * optional uint32 unique_id = 1; - * @return the uniqueId + * optional uint32 rank = 1; + * @return the rank */ - public int getUniqueId() { - return uniqueId; + public int getRank() { + return rank; } /** - * optional uint32 unique_id = 1; - * @param value the uniqueId to set + * optional uint32 rank = 1; + * @param value the rank to set * @return this */ - public Equipment setUniqueId(final int value) { + public Equipment setRank(final int value) { bitField0_ |= 0x00000001; - uniqueId = value; + rank = value; return this; } /** - * optional uint32 base_avatar_id = 2; - * @return whether the baseAvatarId field is set + * optional uint32 exp = 2; + * @return whether the exp field is set */ - public boolean hasBaseAvatarId() { + public boolean hasExp() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 base_avatar_id = 2; + * optional uint32 exp = 2; * @return this */ - public Equipment clearBaseAvatarId() { + public Equipment clearExp() { bitField0_ &= ~0x00000002; - baseAvatarId = 0; + exp = 0; return this; } /** - * optional uint32 base_avatar_id = 2; - * @return the baseAvatarId + * optional uint32 exp = 2; + * @return the exp */ - public int getBaseAvatarId() { - return baseAvatarId; + public int getExp() { + return exp; } /** - * optional uint32 base_avatar_id = 2; - * @param value the baseAvatarId to set + * optional uint32 exp = 2; + * @param value the exp to set * @return this */ - public Equipment setBaseAvatarId(final int value) { + public Equipment setExp(final int value) { bitField0_ |= 0x00000002; - baseAvatarId = value; + exp = value; return this; } /** - * optional uint32 promotion = 3; - * @return whether the promotion field is set + * optional uint32 base_avatar_id = 7; + * @return whether the baseAvatarId field is set */ - public boolean hasPromotion() { + public boolean hasBaseAvatarId() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 promotion = 3; + * optional uint32 base_avatar_id = 7; * @return this */ - public Equipment clearPromotion() { + public Equipment clearBaseAvatarId() { bitField0_ &= ~0x00000004; - promotion = 0; + baseAvatarId = 0; return this; } /** - * optional uint32 promotion = 3; - * @return the promotion + * optional uint32 base_avatar_id = 7; + * @return the baseAvatarId */ - public int getPromotion() { - return promotion; + public int getBaseAvatarId() { + return baseAvatarId; } /** - * optional uint32 promotion = 3; - * @param value the promotion to set + * optional uint32 base_avatar_id = 7; + * @param value the baseAvatarId to set * @return this */ - public Equipment setPromotion(final int value) { + public Equipment setBaseAvatarId(final int value) { bitField0_ |= 0x00000004; - promotion = value; + baseAvatarId = value; return this; } /** - * optional uint32 tid = 4; - * @return whether the tid field is set + * optional uint32 promotion = 8; + * @return whether the promotion field is set */ - public boolean hasTid() { + public boolean hasPromotion() { return (bitField0_ & 0x00000008) != 0; } /** - * optional uint32 tid = 4; + * optional uint32 promotion = 8; * @return this */ - public Equipment clearTid() { + public Equipment clearPromotion() { bitField0_ &= ~0x00000008; - tid = 0; + promotion = 0; return this; } /** - * optional uint32 tid = 4; - * @return the tid + * optional uint32 promotion = 8; + * @return the promotion */ - public int getTid() { - return tid; + public int getPromotion() { + return promotion; } /** - * optional uint32 tid = 4; - * @param value the tid to set + * optional uint32 promotion = 8; + * @param value the promotion to set * @return this */ - public Equipment setTid(final int value) { + public Equipment setPromotion(final int value) { bitField0_ |= 0x00000008; - tid = value; + promotion = value; return this; } /** - * optional uint32 level = 12; - * @return whether the level field is set + * optional uint32 unique_id = 12; + * @return whether the uniqueId field is set */ - public boolean hasLevel() { + public boolean hasUniqueId() { return (bitField0_ & 0x00000010) != 0; } /** - * optional uint32 level = 12; + * optional uint32 unique_id = 12; * @return this */ - public Equipment clearLevel() { + public Equipment clearUniqueId() { bitField0_ &= ~0x00000010; - level = 0; + uniqueId = 0; return this; } /** - * optional uint32 level = 12; - * @return the level + * optional uint32 unique_id = 12; + * @return the uniqueId */ - public int getLevel() { - return level; + public int getUniqueId() { + return uniqueId; } /** - * optional uint32 level = 12; - * @param value the level to set + * optional uint32 unique_id = 12; + * @param value the uniqueId to set * @return this */ - public Equipment setLevel(final int value) { + public Equipment setUniqueId(final int value) { bitField0_ |= 0x00000010; - level = value; + uniqueId = value; return this; } /** - * optional uint32 rank = 13; - * @return whether the rank field is set + * optional uint32 tid = 14; + * @return whether the tid field is set */ - public boolean hasRank() { + public boolean hasTid() { return (bitField0_ & 0x00000020) != 0; } /** - * optional uint32 rank = 13; + * optional uint32 tid = 14; * @return this */ - public Equipment clearRank() { + public Equipment clearTid() { bitField0_ &= ~0x00000020; - rank = 0; + tid = 0; return this; } /** - * optional uint32 rank = 13; - * @return the rank + * optional uint32 tid = 14; + * @return the tid */ - public int getRank() { - return rank; + public int getTid() { + return tid; } /** - * optional uint32 rank = 13; - * @param value the rank to set + * optional uint32 tid = 14; + * @param value the tid to set * @return this */ - public Equipment setRank(final int value) { + public Equipment setTid(final int value) { bitField0_ |= 0x00000020; - rank = value; + tid = value; return this; } /** - * optional uint32 exp = 14; - * @return whether the exp field is set + * optional uint32 level = 15; + * @return whether the level field is set */ - public boolean hasExp() { + public boolean hasLevel() { return (bitField0_ & 0x00000040) != 0; } /** - * optional uint32 exp = 14; + * optional uint32 level = 15; * @return this */ - public Equipment clearExp() { + public Equipment clearLevel() { bitField0_ &= ~0x00000040; - exp = 0; + level = 0; return this; } /** - * optional uint32 exp = 14; - * @return the exp + * optional uint32 level = 15; + * @return the level */ - public int getExp() { - return exp; + public int getLevel() { + return level; } /** - * optional uint32 exp = 14; - * @param value the exp to set + * optional uint32 level = 15; + * @param value the level to set * @return this */ - public Equipment setExp(final int value) { + public Equipment setLevel(final int value) { bitField0_ |= 0x00000040; - exp = value; + level = value; return this; } /** - * optional bool is_protected = 10; + * optional bool is_protected = 3; * @return whether the isProtected field is set */ public boolean hasIsProtected() { @@ -336,7 +336,7 @@ public boolean hasIsProtected() { } /** - * optional bool is_protected = 10; + * optional bool is_protected = 3; * @return this */ public Equipment clearIsProtected() { @@ -346,7 +346,7 @@ public Equipment clearIsProtected() { } /** - * optional bool is_protected = 10; + * optional bool is_protected = 3; * @return the isProtected */ public boolean getIsProtected() { @@ -354,7 +354,7 @@ public boolean getIsProtected() { } /** - * optional bool is_protected = 10; + * optional bool is_protected = 3; * @param value the isProtected to set * @return this */ @@ -369,13 +369,13 @@ public Equipment copyFrom(final Equipment other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - uniqueId = other.uniqueId; + rank = other.rank; + exp = other.exp; baseAvatarId = other.baseAvatarId; promotion = other.promotion; + uniqueId = other.uniqueId; tid = other.tid; level = other.level; - rank = other.rank; - exp = other.exp; isProtected = other.isProtected; } return this; @@ -387,8 +387,11 @@ public Equipment mergeFrom(final Equipment other) { return this; } cachedSize = -1; - if (other.hasUniqueId()) { - setUniqueId(other.uniqueId); + if (other.hasRank()) { + setRank(other.rank); + } + if (other.hasExp()) { + setExp(other.exp); } if (other.hasBaseAvatarId()) { setBaseAvatarId(other.baseAvatarId); @@ -396,18 +399,15 @@ public Equipment mergeFrom(final Equipment other) { if (other.hasPromotion()) { setPromotion(other.promotion); } + if (other.hasUniqueId()) { + setUniqueId(other.uniqueId); + } if (other.hasTid()) { setTid(other.tid); } if (other.hasLevel()) { setLevel(other.level); } - if (other.hasRank()) { - setRank(other.rank); - } - if (other.hasExp()) { - setExp(other.exp); - } if (other.hasIsProtected()) { setIsProtected(other.isProtected); } @@ -421,13 +421,13 @@ public Equipment clear() { } cachedSize = -1; bitField0_ = 0; - uniqueId = 0; + rank = 0; + exp = 0; baseAvatarId = 0; promotion = 0; + uniqueId = 0; tid = 0; level = 0; - rank = 0; - exp = 0; isProtected = false; return this; } @@ -452,13 +452,13 @@ public boolean equals(Object o) { } Equipment other = (Equipment) o; return bitField0_ == other.bitField0_ - && (!hasUniqueId() || uniqueId == other.uniqueId) + && (!hasRank() || rank == other.rank) + && (!hasExp() || exp == other.exp) && (!hasBaseAvatarId() || baseAvatarId == other.baseAvatarId) && (!hasPromotion() || promotion == other.promotion) + && (!hasUniqueId() || uniqueId == other.uniqueId) && (!hasTid() || tid == other.tid) && (!hasLevel() || level == other.level) - && (!hasRank() || rank == other.rank) - && (!hasExp() || exp == other.exp) && (!hasIsProtected() || isProtected == other.isProtected); } @@ -466,34 +466,34 @@ public boolean equals(Object o) { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { output.writeRawByte((byte) 8); - output.writeUInt32NoTag(uniqueId); + output.writeUInt32NoTag(rank); } if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 16); - output.writeUInt32NoTag(baseAvatarId); + output.writeUInt32NoTag(exp); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(promotion); + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(baseAvatarId); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 32); - output.writeUInt32NoTag(tid); + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(promotion); } if ((bitField0_ & 0x00000010) != 0) { output.writeRawByte((byte) 96); - output.writeUInt32NoTag(level); + output.writeUInt32NoTag(uniqueId); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 104); - output.writeUInt32NoTag(rank); + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(tid); } if ((bitField0_ & 0x00000040) != 0) { - output.writeRawByte((byte) 112); - output.writeUInt32NoTag(exp); + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(level); } if ((bitField0_ & 0x00000080) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 24); output.writeBoolNoTag(isProtected); } } @@ -502,25 +502,25 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(uniqueId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(rank); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(exp); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(promotion); + size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(tid); + size += 1 + ProtoSink.computeUInt32SizeNoTag(promotion); } if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(level); + size += 1 + ProtoSink.computeUInt32SizeNoTag(uniqueId); } if ((bitField0_ & 0x00000020) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(rank); + size += 1 + ProtoSink.computeUInt32SizeNoTag(tid); } if ((bitField0_ & 0x00000040) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(exp); + size += 1 + ProtoSink.computeUInt32SizeNoTag(level); } if ((bitField0_ & 0x00000080) != 0) { size += 2; @@ -536,8 +536,8 @@ public Equipment mergeFrom(final ProtoSource input) throws IOException { while (true) { switch (tag) { case 8: { - // uniqueId - uniqueId = input.readUInt32(); + // rank + rank = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 16) { @@ -545,26 +545,26 @@ public Equipment mergeFrom(final ProtoSource input) throws IOException { } } case 16: { - // baseAvatarId - baseAvatarId = input.readUInt32(); + // exp + exp = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 24) { + if (tag != 56) { break; } } - case 24: { - // promotion - promotion = input.readUInt32(); + case 56: { + // baseAvatarId + baseAvatarId = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 32) { + if (tag != 64) { break; } } - case 32: { - // tid - tid = input.readUInt32(); + case 64: { + // promotion + promotion = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 96) { @@ -572,33 +572,33 @@ public Equipment mergeFrom(final ProtoSource input) throws IOException { } } case 96: { - // level - level = input.readUInt32(); + // uniqueId + uniqueId = input.readUInt32(); bitField0_ |= 0x00000010; tag = input.readTag(); - if (tag != 104) { + if (tag != 112) { break; } } - case 104: { - // rank - rank = input.readUInt32(); + case 112: { + // tid + tid = input.readUInt32(); bitField0_ |= 0x00000020; tag = input.readTag(); - if (tag != 112) { + if (tag != 120) { break; } } - case 112: { - // exp - exp = input.readUInt32(); + case 120: { + // level + level = input.readUInt32(); bitField0_ |= 0x00000040; tag = input.readTag(); - if (tag != 80) { + if (tag != 24) { break; } } - case 80: { + case 24: { // isProtected isProtected = input.readBool(); bitField0_ |= 0x00000080; @@ -625,25 +625,25 @@ public Equipment mergeFrom(final ProtoSource input) throws IOException { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.uniqueId, uniqueId); + output.writeUInt32(FieldNames.rank, rank); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.baseAvatarId, baseAvatarId); + output.writeUInt32(FieldNames.exp, exp); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.promotion, promotion); + output.writeUInt32(FieldNames.baseAvatarId, baseAvatarId); } if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.tid, tid); + output.writeUInt32(FieldNames.promotion, promotion); } if ((bitField0_ & 0x00000010) != 0) { - output.writeUInt32(FieldNames.level, level); + output.writeUInt32(FieldNames.uniqueId, uniqueId); } if ((bitField0_ & 0x00000020) != 0) { - output.writeUInt32(FieldNames.rank, rank); + output.writeUInt32(FieldNames.tid, tid); } if ((bitField0_ & 0x00000040) != 0) { - output.writeUInt32(FieldNames.exp, exp); + output.writeUInt32(FieldNames.level, level); } if ((bitField0_ & 0x00000080) != 0) { output.writeBool(FieldNames.isProtected, isProtected); @@ -658,11 +658,10 @@ public Equipment mergeFrom(final JsonSource input) throws IOException { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -294460212: - case -538310583: { - if (input.isAtField(FieldNames.uniqueId)) { + case 3492908: { + if (input.isAtField(FieldNames.rank)) { if (!input.trySkipNullValue()) { - uniqueId = input.readUInt32(); + rank = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -670,11 +669,10 @@ public Equipment mergeFrom(final JsonSource input) throws IOException { } break; } - case 118022725: - case -1756826157: { - if (input.isAtField(FieldNames.baseAvatarId)) { + case 100893: { + if (input.isAtField(FieldNames.exp)) { if (!input.trySkipNullValue()) { - baseAvatarId = input.readUInt32(); + exp = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -682,10 +680,11 @@ public Equipment mergeFrom(final JsonSource input) throws IOException { } break; } - case -799212381: { - if (input.isAtField(FieldNames.promotion)) { + case 118022725: + case -1756826157: { + if (input.isAtField(FieldNames.baseAvatarId)) { if (!input.trySkipNullValue()) { - promotion = input.readUInt32(); + baseAvatarId = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -693,10 +692,10 @@ public Equipment mergeFrom(final JsonSource input) throws IOException { } break; } - case 114831: { - if (input.isAtField(FieldNames.tid)) { + case -799212381: { + if (input.isAtField(FieldNames.promotion)) { if (!input.trySkipNullValue()) { - tid = input.readUInt32(); + promotion = input.readUInt32(); bitField0_ |= 0x00000008; } } else { @@ -704,10 +703,11 @@ public Equipment mergeFrom(final JsonSource input) throws IOException { } break; } - case 102865796: { - if (input.isAtField(FieldNames.level)) { + case -294460212: + case -538310583: { + if (input.isAtField(FieldNames.uniqueId)) { if (!input.trySkipNullValue()) { - level = input.readUInt32(); + uniqueId = input.readUInt32(); bitField0_ |= 0x00000010; } } else { @@ -715,10 +715,10 @@ public Equipment mergeFrom(final JsonSource input) throws IOException { } break; } - case 3492908: { - if (input.isAtField(FieldNames.rank)) { + case 114831: { + if (input.isAtField(FieldNames.tid)) { if (!input.trySkipNullValue()) { - rank = input.readUInt32(); + tid = input.readUInt32(); bitField0_ |= 0x00000020; } } else { @@ -726,10 +726,10 @@ public Equipment mergeFrom(final JsonSource input) throws IOException { } break; } - case 100893: { - if (input.isAtField(FieldNames.exp)) { + case 102865796: { + if (input.isAtField(FieldNames.level)) { if (!input.trySkipNullValue()) { - exp = input.readUInt32(); + level = input.readUInt32(); bitField0_ |= 0x00000040; } } else { @@ -801,20 +801,20 @@ public Equipment create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName uniqueId = FieldName.forField("uniqueId", "unique_id"); + static final FieldName rank = FieldName.forField("rank"); + + static final FieldName exp = FieldName.forField("exp"); static final FieldName baseAvatarId = FieldName.forField("baseAvatarId", "base_avatar_id"); static final FieldName promotion = FieldName.forField("promotion"); + static final FieldName uniqueId = FieldName.forField("uniqueId", "unique_id"); + static final FieldName tid = FieldName.forField("tid"); static final FieldName level = FieldName.forField("level"); - static final FieldName rank = FieldName.forField("rank"); - - static final FieldName exp = FieldName.forField("exp"); - static final FieldName isProtected = FieldName.forField("isProtected", "is_protected"); } } diff --git a/src/generated/main/emu/lunarcore/proto/ExchangeGachaCeilingCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/ExchangeGachaCeilingCsReqOuterClass.java index f2e012117..4c43fb264 100644 --- a/src/generated/main/emu/lunarcore/proto/ExchangeGachaCeilingCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ExchangeGachaCeilingCsReqOuterClass.java @@ -19,14 +19,14 @@ public static final class ExchangeGachaCeilingCsReq extends ProtoMessageoptional uint32 gacha_type = 10; + * optional uint32 avatar_id = 6; */ - private int gachaType; + private int avatarId; /** - * optional uint32 avatar_id = 12; + * optional uint32 gacha_type = 8; */ - private int avatarId; + private int gachaType; private ExchangeGachaCeilingCsReq() { } @@ -39,76 +39,76 @@ public static ExchangeGachaCeilingCsReq newInstance() { } /** - * optional uint32 gacha_type = 10; - * @return whether the gachaType field is set + * optional uint32 avatar_id = 6; + * @return whether the avatarId field is set */ - public boolean hasGachaType() { + public boolean hasAvatarId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 gacha_type = 10; + * optional uint32 avatar_id = 6; * @return this */ - public ExchangeGachaCeilingCsReq clearGachaType() { + public ExchangeGachaCeilingCsReq clearAvatarId() { bitField0_ &= ~0x00000001; - gachaType = 0; + avatarId = 0; return this; } /** - * optional uint32 gacha_type = 10; - * @return the gachaType + * optional uint32 avatar_id = 6; + * @return the avatarId */ - public int getGachaType() { - return gachaType; + public int getAvatarId() { + return avatarId; } /** - * optional uint32 gacha_type = 10; - * @param value the gachaType to set + * optional uint32 avatar_id = 6; + * @param value the avatarId to set * @return this */ - public ExchangeGachaCeilingCsReq setGachaType(final int value) { + public ExchangeGachaCeilingCsReq setAvatarId(final int value) { bitField0_ |= 0x00000001; - gachaType = value; + avatarId = value; return this; } /** - * optional uint32 avatar_id = 12; - * @return whether the avatarId field is set + * optional uint32 gacha_type = 8; + * @return whether the gachaType field is set */ - public boolean hasAvatarId() { + public boolean hasGachaType() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 avatar_id = 12; + * optional uint32 gacha_type = 8; * @return this */ - public ExchangeGachaCeilingCsReq clearAvatarId() { + public ExchangeGachaCeilingCsReq clearGachaType() { bitField0_ &= ~0x00000002; - avatarId = 0; + gachaType = 0; return this; } /** - * optional uint32 avatar_id = 12; - * @return the avatarId + * optional uint32 gacha_type = 8; + * @return the gachaType */ - public int getAvatarId() { - return avatarId; + public int getGachaType() { + return gachaType; } /** - * optional uint32 avatar_id = 12; - * @param value the avatarId to set + * optional uint32 gacha_type = 8; + * @param value the gachaType to set * @return this */ - public ExchangeGachaCeilingCsReq setAvatarId(final int value) { + public ExchangeGachaCeilingCsReq setGachaType(final int value) { bitField0_ |= 0x00000002; - avatarId = value; + gachaType = value; return this; } @@ -117,8 +117,8 @@ public ExchangeGachaCeilingCsReq copyFrom(final ExchangeGachaCeilingCsReq other) cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - gachaType = other.gachaType; avatarId = other.avatarId; + gachaType = other.gachaType; } return this; } @@ -129,12 +129,12 @@ public ExchangeGachaCeilingCsReq mergeFrom(final ExchangeGachaCeilingCsReq other return this; } cachedSize = -1; - if (other.hasGachaType()) { - setGachaType(other.gachaType); - } if (other.hasAvatarId()) { setAvatarId(other.avatarId); } + if (other.hasGachaType()) { + setGachaType(other.gachaType); + } return this; } @@ -145,8 +145,8 @@ public ExchangeGachaCeilingCsReq clear() { } cachedSize = -1; bitField0_ = 0; - gachaType = 0; avatarId = 0; + gachaType = 0; return this; } @@ -170,19 +170,19 @@ public boolean equals(Object o) { } ExchangeGachaCeilingCsReq other = (ExchangeGachaCeilingCsReq) o; return bitField0_ == other.bitField0_ - && (!hasGachaType() || gachaType == other.gachaType) - && (!hasAvatarId() || avatarId == other.avatarId); + && (!hasAvatarId() || avatarId == other.avatarId) + && (!hasGachaType() || gachaType == other.gachaType); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 80); - output.writeUInt32NoTag(gachaType); + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(avatarId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 96); - output.writeUInt32NoTag(avatarId); + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(gachaType); } } @@ -190,10 +190,10 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(gachaType); + size += 1 + ProtoSink.computeUInt32SizeNoTag(avatarId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(avatarId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(gachaType); } return size; } @@ -205,18 +205,18 @@ public ExchangeGachaCeilingCsReq mergeFrom(final ProtoSource input) throws IOExc int tag = input.readTag(); while (true) { switch (tag) { - case 80: { - // gachaType - gachaType = input.readUInt32(); + case 48: { + // avatarId + avatarId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 96) { + if (tag != 64) { break; } } - case 96: { - // avatarId - avatarId = input.readUInt32(); + case 64: { + // gachaType + gachaType = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { @@ -241,10 +241,10 @@ public ExchangeGachaCeilingCsReq mergeFrom(final ProtoSource input) throws IOExc public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.gachaType, gachaType); + output.writeUInt32(FieldNames.avatarId, avatarId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.avatarId, avatarId); + output.writeUInt32(FieldNames.gachaType, gachaType); } output.endObject(); } @@ -256,11 +256,11 @@ public ExchangeGachaCeilingCsReq mergeFrom(final JsonSource input) throws IOExce } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 802848732: - case -871474217: { - if (input.isAtField(FieldNames.gachaType)) { + case 1787287636: + case -428636735: { + if (input.isAtField(FieldNames.avatarId)) { if (!input.trySkipNullValue()) { - gachaType = input.readUInt32(); + avatarId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -268,11 +268,11 @@ public ExchangeGachaCeilingCsReq mergeFrom(final JsonSource input) throws IOExce } break; } - case 1787287636: - case -428636735: { - if (input.isAtField(FieldNames.avatarId)) { + case 802848732: + case -871474217: { + if (input.isAtField(FieldNames.gachaType)) { if (!input.trySkipNullValue()) { - avatarId = input.readUInt32(); + gachaType = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -333,9 +333,9 @@ public ExchangeGachaCeilingCsReq create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName gachaType = FieldName.forField("gachaType", "gacha_type"); - static final FieldName avatarId = FieldName.forField("avatarId", "avatar_id"); + + static final FieldName gachaType = FieldName.forField("gachaType", "gacha_type"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/ExchangeGachaCeilingScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/ExchangeGachaCeilingScRspOuterClass.java index 74d7d58fd..f77eb6fab 100644 --- a/src/generated/main/emu/lunarcore/proto/ExchangeGachaCeilingScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ExchangeGachaCeilingScRspOuterClass.java @@ -19,29 +19,29 @@ public static final class ExchangeGachaCeilingScRsp extends ProtoMessageoptional uint32 avatar_id = 5; + * optional uint32 avatar_id = 6; */ private int avatarId; /** - * optional uint32 retcode = 9; + * optional uint32 retcode = 12; */ private int retcode; /** - * optional uint32 gacha_type = 12; + * optional uint32 gacha_type = 14; */ private int gachaType; /** - * optional .ItemList transfer_item_list = 2; + * optional .GachaCeiling gacha_ceiling = 5; */ - private final ItemListOuterClass.ItemList transferItemList = ItemListOuterClass.ItemList.newInstance(); + private final GachaCeilingOuterClass.GachaCeiling gachaCeiling = GachaCeilingOuterClass.GachaCeiling.newInstance(); /** - * optional .GachaCeiling gacha_ceiling = 7; + * optional .ItemList transfer_item_list = 7; */ - private final GachaCeilingOuterClass.GachaCeiling gachaCeiling = GachaCeilingOuterClass.GachaCeiling.newInstance(); + private final ItemListOuterClass.ItemList transferItemList = ItemListOuterClass.ItemList.newInstance(); private ExchangeGachaCeilingScRsp() { } @@ -54,7 +54,7 @@ public static ExchangeGachaCeilingScRsp newInstance() { } /** - * optional uint32 avatar_id = 5; + * optional uint32 avatar_id = 6; * @return whether the avatarId field is set */ public boolean hasAvatarId() { @@ -62,7 +62,7 @@ public boolean hasAvatarId() { } /** - * optional uint32 avatar_id = 5; + * optional uint32 avatar_id = 6; * @return this */ public ExchangeGachaCeilingScRsp clearAvatarId() { @@ -72,7 +72,7 @@ public ExchangeGachaCeilingScRsp clearAvatarId() { } /** - * optional uint32 avatar_id = 5; + * optional uint32 avatar_id = 6; * @return the avatarId */ public int getAvatarId() { @@ -80,7 +80,7 @@ public int getAvatarId() { } /** - * optional uint32 avatar_id = 5; + * optional uint32 avatar_id = 6; * @param value the avatarId to set * @return this */ @@ -91,7 +91,7 @@ public ExchangeGachaCeilingScRsp setAvatarId(final int value) { } /** - * optional uint32 retcode = 9; + * optional uint32 retcode = 12; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -99,7 +99,7 @@ public boolean hasRetcode() { } /** - * optional uint32 retcode = 9; + * optional uint32 retcode = 12; * @return this */ public ExchangeGachaCeilingScRsp clearRetcode() { @@ -109,7 +109,7 @@ public ExchangeGachaCeilingScRsp clearRetcode() { } /** - * optional uint32 retcode = 9; + * optional uint32 retcode = 12; * @return the retcode */ public int getRetcode() { @@ -117,7 +117,7 @@ public int getRetcode() { } /** - * optional uint32 retcode = 9; + * optional uint32 retcode = 12; * @param value the retcode to set * @return this */ @@ -128,7 +128,7 @@ public ExchangeGachaCeilingScRsp setRetcode(final int value) { } /** - * optional uint32 gacha_type = 12; + * optional uint32 gacha_type = 14; * @return whether the gachaType field is set */ public boolean hasGachaType() { @@ -136,7 +136,7 @@ public boolean hasGachaType() { } /** - * optional uint32 gacha_type = 12; + * optional uint32 gacha_type = 14; * @return this */ public ExchangeGachaCeilingScRsp clearGachaType() { @@ -146,7 +146,7 @@ public ExchangeGachaCeilingScRsp clearGachaType() { } /** - * optional uint32 gacha_type = 12; + * optional uint32 gacha_type = 14; * @return the gachaType */ public int getGachaType() { @@ -154,7 +154,7 @@ public int getGachaType() { } /** - * optional uint32 gacha_type = 12; + * optional uint32 gacha_type = 14; * @param value the gachaType to set * @return this */ @@ -165,39 +165,39 @@ public ExchangeGachaCeilingScRsp setGachaType(final int value) { } /** - * optional .ItemList transfer_item_list = 2; - * @return whether the transferItemList field is set + * optional .GachaCeiling gacha_ceiling = 5; + * @return whether the gachaCeiling field is set */ - public boolean hasTransferItemList() { + public boolean hasGachaCeiling() { return (bitField0_ & 0x00000008) != 0; } /** - * optional .ItemList transfer_item_list = 2; + * optional .GachaCeiling gacha_ceiling = 5; * @return this */ - public ExchangeGachaCeilingScRsp clearTransferItemList() { + public ExchangeGachaCeilingScRsp clearGachaCeiling() { bitField0_ &= ~0x00000008; - transferItemList.clear(); + gachaCeiling.clear(); return this; } /** - * optional .ItemList transfer_item_list = 2; + * optional .GachaCeiling gacha_ceiling = 5; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableTransferItemList()} if you want to modify it. + * Use {@link #getMutableGachaCeiling()} if you want to modify it. * * @return internal storage object for reading */ - public ItemListOuterClass.ItemList getTransferItemList() { - return transferItemList; + public GachaCeilingOuterClass.GachaCeiling getGachaCeiling() { + return gachaCeiling; } /** - * optional .ItemList transfer_item_list = 2; + * optional .GachaCeiling gacha_ceiling = 5; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -205,56 +205,57 @@ public ItemListOuterClass.ItemList getTransferItemList() { * * @return internal storage object for modifications */ - public ItemListOuterClass.ItemList getMutableTransferItemList() { + public GachaCeilingOuterClass.GachaCeiling getMutableGachaCeiling() { bitField0_ |= 0x00000008; - return transferItemList; + return gachaCeiling; } /** - * optional .ItemList transfer_item_list = 2; - * @param value the transferItemList to set + * optional .GachaCeiling gacha_ceiling = 5; + * @param value the gachaCeiling to set * @return this */ - public ExchangeGachaCeilingScRsp setTransferItemList(final ItemListOuterClass.ItemList value) { + public ExchangeGachaCeilingScRsp setGachaCeiling( + final GachaCeilingOuterClass.GachaCeiling value) { bitField0_ |= 0x00000008; - transferItemList.copyFrom(value); + gachaCeiling.copyFrom(value); return this; } /** - * optional .GachaCeiling gacha_ceiling = 7; - * @return whether the gachaCeiling field is set + * optional .ItemList transfer_item_list = 7; + * @return whether the transferItemList field is set */ - public boolean hasGachaCeiling() { + public boolean hasTransferItemList() { return (bitField0_ & 0x00000010) != 0; } /** - * optional .GachaCeiling gacha_ceiling = 7; + * optional .ItemList transfer_item_list = 7; * @return this */ - public ExchangeGachaCeilingScRsp clearGachaCeiling() { + public ExchangeGachaCeilingScRsp clearTransferItemList() { bitField0_ &= ~0x00000010; - gachaCeiling.clear(); + transferItemList.clear(); return this; } /** - * optional .GachaCeiling gacha_ceiling = 7; + * optional .ItemList transfer_item_list = 7; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableGachaCeiling()} if you want to modify it. + * Use {@link #getMutableTransferItemList()} if you want to modify it. * * @return internal storage object for reading */ - public GachaCeilingOuterClass.GachaCeiling getGachaCeiling() { - return gachaCeiling; + public ItemListOuterClass.ItemList getTransferItemList() { + return transferItemList; } /** - * optional .GachaCeiling gacha_ceiling = 7; + * optional .ItemList transfer_item_list = 7; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -262,20 +263,19 @@ public GachaCeilingOuterClass.GachaCeiling getGachaCeiling() { * * @return internal storage object for modifications */ - public GachaCeilingOuterClass.GachaCeiling getMutableGachaCeiling() { + public ItemListOuterClass.ItemList getMutableTransferItemList() { bitField0_ |= 0x00000010; - return gachaCeiling; + return transferItemList; } /** - * optional .GachaCeiling gacha_ceiling = 7; - * @param value the gachaCeiling to set + * optional .ItemList transfer_item_list = 7; + * @param value the transferItemList to set * @return this */ - public ExchangeGachaCeilingScRsp setGachaCeiling( - final GachaCeilingOuterClass.GachaCeiling value) { + public ExchangeGachaCeilingScRsp setTransferItemList(final ItemListOuterClass.ItemList value) { bitField0_ |= 0x00000010; - gachaCeiling.copyFrom(value); + transferItemList.copyFrom(value); return this; } @@ -287,8 +287,8 @@ public ExchangeGachaCeilingScRsp copyFrom(final ExchangeGachaCeilingScRsp other) avatarId = other.avatarId; retcode = other.retcode; gachaType = other.gachaType; - transferItemList.copyFrom(other.transferItemList); gachaCeiling.copyFrom(other.gachaCeiling); + transferItemList.copyFrom(other.transferItemList); } return this; } @@ -308,12 +308,12 @@ public ExchangeGachaCeilingScRsp mergeFrom(final ExchangeGachaCeilingScRsp other if (other.hasGachaType()) { setGachaType(other.gachaType); } - if (other.hasTransferItemList()) { - getMutableTransferItemList().mergeFrom(other.transferItemList); - } if (other.hasGachaCeiling()) { getMutableGachaCeiling().mergeFrom(other.gachaCeiling); } + if (other.hasTransferItemList()) { + getMutableTransferItemList().mergeFrom(other.transferItemList); + } return this; } @@ -327,8 +327,8 @@ public ExchangeGachaCeilingScRsp clear() { avatarId = 0; retcode = 0; gachaType = 0; - transferItemList.clear(); gachaCeiling.clear(); + transferItemList.clear(); return this; } @@ -339,8 +339,8 @@ public ExchangeGachaCeilingScRsp clearQuick() { } cachedSize = -1; bitField0_ = 0; - transferItemList.clearQuick(); gachaCeiling.clearQuick(); + transferItemList.clearQuick(); return this; } @@ -357,31 +357,31 @@ public boolean equals(Object o) { && (!hasAvatarId() || avatarId == other.avatarId) && (!hasRetcode() || retcode == other.retcode) && (!hasGachaType() || gachaType == other.gachaType) - && (!hasTransferItemList() || transferItemList.equals(other.transferItemList)) - && (!hasGachaCeiling() || gachaCeiling.equals(other.gachaCeiling)); + && (!hasGachaCeiling() || gachaCeiling.equals(other.gachaCeiling)) + && (!hasTransferItemList() || transferItemList.equals(other.transferItemList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 48); output.writeUInt32NoTag(avatarId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 72); + output.writeRawByte((byte) 96); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 112); output.writeUInt32NoTag(gachaType); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 18); - output.writeMessageNoTag(transferItemList); + output.writeRawByte((byte) 42); + output.writeMessageNoTag(gachaCeiling); } if ((bitField0_ & 0x00000010) != 0) { output.writeRawByte((byte) 58); - output.writeMessageNoTag(gachaCeiling); + output.writeMessageNoTag(transferItemList); } } @@ -398,10 +398,10 @@ protected int computeSerializedSize() { size += 1 + ProtoSink.computeUInt32SizeNoTag(gachaType); } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(transferItemList); + size += 1 + ProtoSink.computeMessageSizeNoTag(gachaCeiling); } if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(gachaCeiling); + size += 1 + ProtoSink.computeMessageSizeNoTag(transferItemList); } return size; } @@ -413,36 +413,36 @@ public ExchangeGachaCeilingScRsp mergeFrom(final ProtoSource input) throws IOExc int tag = input.readTag(); while (true) { switch (tag) { - case 40: { + case 48: { // avatarId avatarId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 72) { + if (tag != 96) { break; } } - case 72: { + case 96: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 96) { + if (tag != 112) { break; } } - case 96: { + case 112: { // gachaType gachaType = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 18) { + if (tag != 42) { break; } } - case 18: { - // transferItemList - input.readMessage(transferItemList); + case 42: { + // gachaCeiling + input.readMessage(gachaCeiling); bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 58) { @@ -450,8 +450,8 @@ public ExchangeGachaCeilingScRsp mergeFrom(final ProtoSource input) throws IOExc } } case 58: { - // gachaCeiling - input.readMessage(gachaCeiling); + // transferItemList + input.readMessage(transferItemList); bitField0_ |= 0x00000010; tag = input.readTag(); if (tag != 0) { @@ -485,10 +485,10 @@ public void writeTo(final JsonSink output) throws IOException { output.writeUInt32(FieldNames.gachaType, gachaType); } if ((bitField0_ & 0x00000008) != 0) { - output.writeMessage(FieldNames.transferItemList, transferItemList); + output.writeMessage(FieldNames.gachaCeiling, gachaCeiling); } if ((bitField0_ & 0x00000010) != 0) { - output.writeMessage(FieldNames.gachaCeiling, gachaCeiling); + output.writeMessage(FieldNames.transferItemList, transferItemList); } output.endObject(); } @@ -535,11 +535,11 @@ public ExchangeGachaCeilingScRsp mergeFrom(final JsonSource input) throws IOExce } break; } - case -997597348: - case 263056118: { - if (input.isAtField(FieldNames.transferItemList)) { + case 507275483: + case -1792489728: { + if (input.isAtField(FieldNames.gachaCeiling)) { if (!input.trySkipNullValue()) { - input.readMessage(transferItemList); + input.readMessage(gachaCeiling); bitField0_ |= 0x00000008; } } else { @@ -547,11 +547,11 @@ public ExchangeGachaCeilingScRsp mergeFrom(final JsonSource input) throws IOExce } break; } - case 507275483: - case -1792489728: { - if (input.isAtField(FieldNames.gachaCeiling)) { + case -997597348: + case 263056118: { + if (input.isAtField(FieldNames.transferItemList)) { if (!input.trySkipNullValue()) { - input.readMessage(gachaCeiling); + input.readMessage(transferItemList); bitField0_ |= 0x00000010; } } else { @@ -618,9 +618,9 @@ static class FieldNames { static final FieldName gachaType = FieldName.forField("gachaType", "gacha_type"); - static final FieldName transferItemList = FieldName.forField("transferItemList", "transfer_item_list"); - static final FieldName gachaCeiling = FieldName.forField("gachaCeiling", "gacha_ceiling"); + + static final FieldName transferItemList = FieldName.forField("transferItemList", "transfer_item_list"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/ExchangeHcoinCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/ExchangeHcoinCsReqOuterClass.java index bc11a3cf9..783af0e82 100644 --- a/src/generated/main/emu/lunarcore/proto/ExchangeHcoinCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ExchangeHcoinCsReqOuterClass.java @@ -19,7 +19,7 @@ public static final class ExchangeHcoinCsReq extends ProtoMessageoptional uint32 num = 1; + * optional uint32 num = 11; */ private int num; @@ -34,7 +34,7 @@ public static ExchangeHcoinCsReq newInstance() { } /** - * optional uint32 num = 1; + * optional uint32 num = 11; * @return whether the num field is set */ public boolean hasNum() { @@ -42,7 +42,7 @@ public boolean hasNum() { } /** - * optional uint32 num = 1; + * optional uint32 num = 11; * @return this */ public ExchangeHcoinCsReq clearNum() { @@ -52,7 +52,7 @@ public ExchangeHcoinCsReq clearNum() { } /** - * optional uint32 num = 1; + * optional uint32 num = 11; * @return the num */ public int getNum() { @@ -60,7 +60,7 @@ public int getNum() { } /** - * optional uint32 num = 1; + * optional uint32 num = 11; * @param value the num to set * @return this */ @@ -129,7 +129,7 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); + output.writeRawByte((byte) 88); output.writeUInt32NoTag(num); } } @@ -150,7 +150,7 @@ public ExchangeHcoinCsReq mergeFrom(final ProtoSource input) throws IOException int tag = input.readTag(); while (true) { switch (tag) { - case 8: { + case 88: { // num num = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/ExchangeHcoinScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/ExchangeHcoinScRspOuterClass.java index 09475b84d..a95b3a270 100644 --- a/src/generated/main/emu/lunarcore/proto/ExchangeHcoinScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ExchangeHcoinScRspOuterClass.java @@ -19,12 +19,12 @@ public static final class ExchangeHcoinScRsp extends ProtoMessageoptional uint32 retcode = 11; + * optional uint32 retcode = 7; */ private int retcode; /** - * optional uint32 num = 15; + * optional uint32 num = 9; */ private int num; @@ -39,7 +39,7 @@ public static ExchangeHcoinScRsp newInstance() { } /** - * optional uint32 retcode = 11; + * optional uint32 retcode = 7; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -47,7 +47,7 @@ public boolean hasRetcode() { } /** - * optional uint32 retcode = 11; + * optional uint32 retcode = 7; * @return this */ public ExchangeHcoinScRsp clearRetcode() { @@ -57,7 +57,7 @@ public ExchangeHcoinScRsp clearRetcode() { } /** - * optional uint32 retcode = 11; + * optional uint32 retcode = 7; * @return the retcode */ public int getRetcode() { @@ -65,7 +65,7 @@ public int getRetcode() { } /** - * optional uint32 retcode = 11; + * optional uint32 retcode = 7; * @param value the retcode to set * @return this */ @@ -76,7 +76,7 @@ public ExchangeHcoinScRsp setRetcode(final int value) { } /** - * optional uint32 num = 15; + * optional uint32 num = 9; * @return whether the num field is set */ public boolean hasNum() { @@ -84,7 +84,7 @@ public boolean hasNum() { } /** - * optional uint32 num = 15; + * optional uint32 num = 9; * @return this */ public ExchangeHcoinScRsp clearNum() { @@ -94,7 +94,7 @@ public ExchangeHcoinScRsp clearNum() { } /** - * optional uint32 num = 15; + * optional uint32 num = 9; * @return the num */ public int getNum() { @@ -102,7 +102,7 @@ public int getNum() { } /** - * optional uint32 num = 15; + * optional uint32 num = 9; * @param value the num to set * @return this */ @@ -177,11 +177,11 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 56); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 72); output.writeUInt32NoTag(num); } } @@ -205,16 +205,16 @@ public ExchangeHcoinScRsp mergeFrom(final ProtoSource input) throws IOException int tag = input.readTag(); while (true) { switch (tag) { - case 88: { + case 56: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 120) { + if (tag != 72) { break; } } - case 120: { + case 72: { // num num = input.readUInt32(); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/ExpUpEquipmentCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/ExpUpEquipmentCsReqOuterClass.java index 432adc002..4978ca037 100644 --- a/src/generated/main/emu/lunarcore/proto/ExpUpEquipmentCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ExpUpEquipmentCsReqOuterClass.java @@ -19,12 +19,12 @@ public static final class ExpUpEquipmentCsReq extends ProtoMessageoptional uint32 equipment_unique_id = 11; + * optional uint32 equipment_unique_id = 10; */ private int equipmentUniqueId; /** - * optional .ItemCostList item_cost_list = 6; + * optional .ItemCostList item_cost_list = 3; */ private final ItemCostListOuterClass.ItemCostList itemCostList = ItemCostListOuterClass.ItemCostList.newInstance(); @@ -39,7 +39,7 @@ public static ExpUpEquipmentCsReq newInstance() { } /** - * optional uint32 equipment_unique_id = 11; + * optional uint32 equipment_unique_id = 10; * @return whether the equipmentUniqueId field is set */ public boolean hasEquipmentUniqueId() { @@ -47,7 +47,7 @@ public boolean hasEquipmentUniqueId() { } /** - * optional uint32 equipment_unique_id = 11; + * optional uint32 equipment_unique_id = 10; * @return this */ public ExpUpEquipmentCsReq clearEquipmentUniqueId() { @@ -57,7 +57,7 @@ public ExpUpEquipmentCsReq clearEquipmentUniqueId() { } /** - * optional uint32 equipment_unique_id = 11; + * optional uint32 equipment_unique_id = 10; * @return the equipmentUniqueId */ public int getEquipmentUniqueId() { @@ -65,7 +65,7 @@ public int getEquipmentUniqueId() { } /** - * optional uint32 equipment_unique_id = 11; + * optional uint32 equipment_unique_id = 10; * @param value the equipmentUniqueId to set * @return this */ @@ -76,7 +76,7 @@ public ExpUpEquipmentCsReq setEquipmentUniqueId(final int value) { } /** - * optional .ItemCostList item_cost_list = 6; + * optional .ItemCostList item_cost_list = 3; * @return whether the itemCostList field is set */ public boolean hasItemCostList() { @@ -84,7 +84,7 @@ public boolean hasItemCostList() { } /** - * optional .ItemCostList item_cost_list = 6; + * optional .ItemCostList item_cost_list = 3; * @return this */ public ExpUpEquipmentCsReq clearItemCostList() { @@ -94,7 +94,7 @@ public ExpUpEquipmentCsReq clearItemCostList() { } /** - * optional .ItemCostList item_cost_list = 6; + * optional .ItemCostList item_cost_list = 3; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -108,7 +108,7 @@ public ItemCostListOuterClass.ItemCostList getItemCostList() { } /** - * optional .ItemCostList item_cost_list = 6; + * optional .ItemCostList item_cost_list = 3; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -122,7 +122,7 @@ public ItemCostListOuterClass.ItemCostList getMutableItemCostList() { } /** - * optional .ItemCostList item_cost_list = 6; + * optional .ItemCostList item_cost_list = 3; * @param value the itemCostList to set * @return this */ @@ -198,11 +198,11 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 80); output.writeUInt32NoTag(equipmentUniqueId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 50); + output.writeRawByte((byte) 26); output.writeMessageNoTag(itemCostList); } } @@ -226,16 +226,16 @@ public ExpUpEquipmentCsReq mergeFrom(final ProtoSource input) throws IOException int tag = input.readTag(); while (true) { switch (tag) { - case 88: { + case 80: { // equipmentUniqueId equipmentUniqueId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 50) { + if (tag != 26) { break; } } - case 50: { + case 26: { // itemCostList input.readMessage(itemCostList); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/ExpUpEquipmentScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/ExpUpEquipmentScRspOuterClass.java index 254e7dad0..7b4881d71 100644 --- a/src/generated/main/emu/lunarcore/proto/ExpUpEquipmentScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ExpUpEquipmentScRspOuterClass.java @@ -20,12 +20,12 @@ public static final class ExpUpEquipmentScRsp extends ProtoMessageoptional uint32 retcode = 15; + * optional uint32 retcode = 10; */ private int retcode; /** - * repeated .PileItem return_item_list = 2; + * repeated .PileItem return_item_list = 6; */ private final RepeatedMessage returnItemList = RepeatedMessage.newEmptyInstance(PileItemOuterClass.PileItem.getFactory()); @@ -40,7 +40,7 @@ public static ExpUpEquipmentScRsp newInstance() { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 10; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -48,7 +48,7 @@ public boolean hasRetcode() { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 10; * @return this */ public ExpUpEquipmentScRsp clearRetcode() { @@ -58,7 +58,7 @@ public ExpUpEquipmentScRsp clearRetcode() { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 10; * @return the retcode */ public int getRetcode() { @@ -66,7 +66,7 @@ public int getRetcode() { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 10; * @param value the retcode to set * @return this */ @@ -77,7 +77,7 @@ public ExpUpEquipmentScRsp setRetcode(final int value) { } /** - * repeated .PileItem return_item_list = 2; + * repeated .PileItem return_item_list = 6; * @return whether the returnItemList field is set */ public boolean hasReturnItemList() { @@ -85,7 +85,7 @@ public boolean hasReturnItemList() { } /** - * repeated .PileItem return_item_list = 2; + * repeated .PileItem return_item_list = 6; * @return this */ public ExpUpEquipmentScRsp clearReturnItemList() { @@ -95,7 +95,7 @@ public ExpUpEquipmentScRsp clearReturnItemList() { } /** - * repeated .PileItem return_item_list = 2; + * repeated .PileItem return_item_list = 6; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -109,7 +109,7 @@ public RepeatedMessage getReturnItemList() { } /** - * repeated .PileItem return_item_list = 2; + * repeated .PileItem return_item_list = 6; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -123,7 +123,7 @@ public RepeatedMessage getMutableReturnItemList() { } /** - * repeated .PileItem return_item_list = 2; + * repeated .PileItem return_item_list = 6; * @param value the returnItemList to add * @return this */ @@ -134,7 +134,7 @@ public ExpUpEquipmentScRsp addReturnItemList(final PileItemOuterClass.PileItem v } /** - * repeated .PileItem return_item_list = 2; + * repeated .PileItem return_item_list = 6; * @param values the returnItemList to add * @return this */ @@ -210,12 +210,12 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 80); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < returnItemList.length(); i++) { - output.writeRawByte((byte) 18); + output.writeRawByte((byte) 50); output.writeMessageNoTag(returnItemList.get(i)); } } @@ -240,16 +240,16 @@ public ExpUpEquipmentScRsp mergeFrom(final ProtoSource input) throws IOException int tag = input.readTag(); while (true) { switch (tag) { - case 120: { + case 80: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 18) { + if (tag != 50) { break; } } - case 18: { + case 50: { // returnItemList tag = input.readRepeatedMessage(returnItemList, tag); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/ExpUpRelicCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/ExpUpRelicCsReqOuterClass.java index fdf6f730f..7dcc7dbce 100644 --- a/src/generated/main/emu/lunarcore/proto/ExpUpRelicCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ExpUpRelicCsReqOuterClass.java @@ -19,12 +19,12 @@ public static final class ExpUpRelicCsReq extends ProtoMessage private static final long serialVersionUID = 0L; /** - * optional uint32 relic_unique_id = 14; + * optional uint32 relic_unique_id = 8; */ private int relicUniqueId; /** - * optional .ItemCostList item_cost_list = 12; + * optional .ItemCostList item_cost_list = 13; */ private final ItemCostListOuterClass.ItemCostList itemCostList = ItemCostListOuterClass.ItemCostList.newInstance(); @@ -39,7 +39,7 @@ public static ExpUpRelicCsReq newInstance() { } /** - * optional uint32 relic_unique_id = 14; + * optional uint32 relic_unique_id = 8; * @return whether the relicUniqueId field is set */ public boolean hasRelicUniqueId() { @@ -47,7 +47,7 @@ public boolean hasRelicUniqueId() { } /** - * optional uint32 relic_unique_id = 14; + * optional uint32 relic_unique_id = 8; * @return this */ public ExpUpRelicCsReq clearRelicUniqueId() { @@ -57,7 +57,7 @@ public ExpUpRelicCsReq clearRelicUniqueId() { } /** - * optional uint32 relic_unique_id = 14; + * optional uint32 relic_unique_id = 8; * @return the relicUniqueId */ public int getRelicUniqueId() { @@ -65,7 +65,7 @@ public int getRelicUniqueId() { } /** - * optional uint32 relic_unique_id = 14; + * optional uint32 relic_unique_id = 8; * @param value the relicUniqueId to set * @return this */ @@ -76,7 +76,7 @@ public ExpUpRelicCsReq setRelicUniqueId(final int value) { } /** - * optional .ItemCostList item_cost_list = 12; + * optional .ItemCostList item_cost_list = 13; * @return whether the itemCostList field is set */ public boolean hasItemCostList() { @@ -84,7 +84,7 @@ public boolean hasItemCostList() { } /** - * optional .ItemCostList item_cost_list = 12; + * optional .ItemCostList item_cost_list = 13; * @return this */ public ExpUpRelicCsReq clearItemCostList() { @@ -94,7 +94,7 @@ public ExpUpRelicCsReq clearItemCostList() { } /** - * optional .ItemCostList item_cost_list = 12; + * optional .ItemCostList item_cost_list = 13; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -108,7 +108,7 @@ public ItemCostListOuterClass.ItemCostList getItemCostList() { } /** - * optional .ItemCostList item_cost_list = 12; + * optional .ItemCostList item_cost_list = 13; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -122,7 +122,7 @@ public ItemCostListOuterClass.ItemCostList getMutableItemCostList() { } /** - * optional .ItemCostList item_cost_list = 12; + * optional .ItemCostList item_cost_list = 13; * @param value the itemCostList to set * @return this */ @@ -198,11 +198,11 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 64); output.writeUInt32NoTag(relicUniqueId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 98); + output.writeRawByte((byte) 106); output.writeMessageNoTag(itemCostList); } } @@ -226,16 +226,16 @@ public ExpUpRelicCsReq mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 112: { + case 64: { // relicUniqueId relicUniqueId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 98) { + if (tag != 106) { break; } } - case 98: { + case 106: { // itemCostList input.readMessage(itemCostList); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/ExpUpRelicScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/ExpUpRelicScRspOuterClass.java index 998efbc39..1127dd79f 100644 --- a/src/generated/main/emu/lunarcore/proto/ExpUpRelicScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ExpUpRelicScRspOuterClass.java @@ -20,12 +20,12 @@ public static final class ExpUpRelicScRsp extends ProtoMessage private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 10; */ private int retcode; /** - * repeated .PileItem return_item_list = 14; + * repeated .PileItem return_item_list = 6; */ private final RepeatedMessage returnItemList = RepeatedMessage.newEmptyInstance(PileItemOuterClass.PileItem.getFactory()); @@ -40,7 +40,7 @@ public static ExpUpRelicScRsp newInstance() { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 10; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -48,7 +48,7 @@ public boolean hasRetcode() { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 10; * @return this */ public ExpUpRelicScRsp clearRetcode() { @@ -58,7 +58,7 @@ public ExpUpRelicScRsp clearRetcode() { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 10; * @return the retcode */ public int getRetcode() { @@ -66,7 +66,7 @@ public int getRetcode() { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 10; * @param value the retcode to set * @return this */ @@ -77,7 +77,7 @@ public ExpUpRelicScRsp setRetcode(final int value) { } /** - * repeated .PileItem return_item_list = 14; + * repeated .PileItem return_item_list = 6; * @return whether the returnItemList field is set */ public boolean hasReturnItemList() { @@ -85,7 +85,7 @@ public boolean hasReturnItemList() { } /** - * repeated .PileItem return_item_list = 14; + * repeated .PileItem return_item_list = 6; * @return this */ public ExpUpRelicScRsp clearReturnItemList() { @@ -95,7 +95,7 @@ public ExpUpRelicScRsp clearReturnItemList() { } /** - * repeated .PileItem return_item_list = 14; + * repeated .PileItem return_item_list = 6; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -109,7 +109,7 @@ public RepeatedMessage getReturnItemList() { } /** - * repeated .PileItem return_item_list = 14; + * repeated .PileItem return_item_list = 6; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -123,7 +123,7 @@ public RepeatedMessage getMutableReturnItemList() { } /** - * repeated .PileItem return_item_list = 14; + * repeated .PileItem return_item_list = 6; * @param value the returnItemList to add * @return this */ @@ -134,7 +134,7 @@ public ExpUpRelicScRsp addReturnItemList(final PileItemOuterClass.PileItem value } /** - * repeated .PileItem return_item_list = 14; + * repeated .PileItem return_item_list = 6; * @param values the returnItemList to add * @return this */ @@ -210,12 +210,12 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 80); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < returnItemList.length(); i++) { - output.writeRawByte((byte) 114); + output.writeRawByte((byte) 50); output.writeMessageNoTag(returnItemList.get(i)); } } @@ -240,16 +240,16 @@ public ExpUpRelicScRsp mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 64: { + case 80: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 114) { + if (tag != 50) { break; } } - case 114: { + case 50: { // returnItemList tag = input.readRepeatedMessage(returnItemList, tag); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/ExtraLineupTypeOuterClass.java b/src/generated/main/emu/lunarcore/proto/ExtraLineupTypeOuterClass.java index 8d70a320d..68baee893 100644 --- a/src/generated/main/emu/lunarcore/proto/ExtraLineupTypeOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ExtraLineupTypeOuterClass.java @@ -67,7 +67,12 @@ public enum ExtraLineupType implements ProtoEnum { /** * LINEUP_CHESS_ROGUE = 12; */ - LINEUP_CHESS_ROGUE("LINEUP_CHESS_ROGUE", 12); + LINEUP_CHESS_ROGUE("LINEUP_CHESS_ROGUE", 12), + + /** + * LINEUP_HELIOBUS = 13; + */ + LINEUP_HELIOBUS("LINEUP_HELIOBUS", 13); /** * LINEUP_NONE = 0; @@ -129,6 +134,11 @@ public enum ExtraLineupType implements ProtoEnum { */ public static final int LINEUP_CHESS_ROGUE_VALUE = 12; + /** + * LINEUP_HELIOBUS = 13; + */ + public static final int LINEUP_HELIOBUS_VALUE = 13; + private final String name; private final int number; @@ -182,7 +192,7 @@ public static ExtraLineupType forNumberOr(int number, ExtraLineupType other) { enum ExtraLineupTypeConverter implements ProtoEnum.EnumConverter { INSTANCE; - private static final ExtraLineupType[] lookup = new ExtraLineupType[13]; + private static final ExtraLineupType[] lookup = new ExtraLineupType[14]; static { lookup[0] = LINEUP_NONE; @@ -197,6 +207,7 @@ enum ExtraLineupTypeConverter implements ProtoEnum.EnumConverter implements Cloneable { + public static final class FriendApplyInfo extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * optional int64 JKBMJGNPCNN = 12; - */ - private long jKBMJGNPCNN; - - /** - * optional .SimpleInfo simple_info = 10; + * optional .SimpleInfo simple_info = 4; */ private final SimpleInfoOuterClass.SimpleInfo simpleInfo = SimpleInfoOuterClass.SimpleInfo.newInstance(); - private FriendApplyListInfo() { - } - - /** - * @return a new empty instance of {@code FriendApplyListInfo} - */ - public static FriendApplyListInfo newInstance() { - return new FriendApplyListInfo(); + private FriendApplyInfo() { } /** - * optional int64 JKBMJGNPCNN = 12; - * @return whether the jKBMJGNPCNN field is set - */ - public boolean hasJKBMJGNPCNN() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional int64 JKBMJGNPCNN = 12; - * @return this + * @return a new empty instance of {@code FriendApplyInfo} */ - public FriendApplyListInfo clearJKBMJGNPCNN() { - bitField0_ &= ~0x00000001; - jKBMJGNPCNN = 0L; - return this; - } - - /** - * optional int64 JKBMJGNPCNN = 12; - * @return the jKBMJGNPCNN - */ - public long getJKBMJGNPCNN() { - return jKBMJGNPCNN; - } - - /** - * optional int64 JKBMJGNPCNN = 12; - * @param value the jKBMJGNPCNN to set - * @return this - */ - public FriendApplyListInfo setJKBMJGNPCNN(final long value) { - bitField0_ |= 0x00000001; - jKBMJGNPCNN = value; - return this; + public static FriendApplyInfo newInstance() { + return new FriendApplyInfo(); } /** - * optional .SimpleInfo simple_info = 10; + * optional .SimpleInfo simple_info = 4; * @return whether the simpleInfo field is set */ public boolean hasSimpleInfo() { - return (bitField0_ & 0x00000002) != 0; + return (bitField0_ & 0x00000001) != 0; } /** - * optional .SimpleInfo simple_info = 10; + * optional .SimpleInfo simple_info = 4; * @return this */ - public FriendApplyListInfo clearSimpleInfo() { - bitField0_ &= ~0x00000002; + public FriendApplyInfo clearSimpleInfo() { + bitField0_ &= ~0x00000001; simpleInfo.clear(); return this; } /** - * optional .SimpleInfo simple_info = 10; + * optional .SimpleInfo simple_info = 4; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -108,7 +66,7 @@ public SimpleInfoOuterClass.SimpleInfo getSimpleInfo() { } /** - * optional .SimpleInfo simple_info = 10; + * optional .SimpleInfo simple_info = 4; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -117,41 +75,37 @@ public SimpleInfoOuterClass.SimpleInfo getSimpleInfo() { * @return internal storage object for modifications */ public SimpleInfoOuterClass.SimpleInfo getMutableSimpleInfo() { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; return simpleInfo; } /** - * optional .SimpleInfo simple_info = 10; + * optional .SimpleInfo simple_info = 4; * @param value the simpleInfo to set * @return this */ - public FriendApplyListInfo setSimpleInfo(final SimpleInfoOuterClass.SimpleInfo value) { - bitField0_ |= 0x00000002; + public FriendApplyInfo setSimpleInfo(final SimpleInfoOuterClass.SimpleInfo value) { + bitField0_ |= 0x00000001; simpleInfo.copyFrom(value); return this; } @Override - public FriendApplyListInfo copyFrom(final FriendApplyListInfo other) { + public FriendApplyInfo copyFrom(final FriendApplyInfo other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - jKBMJGNPCNN = other.jKBMJGNPCNN; simpleInfo.copyFrom(other.simpleInfo); } return this; } @Override - public FriendApplyListInfo mergeFrom(final FriendApplyListInfo other) { + public FriendApplyInfo mergeFrom(final FriendApplyInfo other) { if (other.isEmpty()) { return this; } cachedSize = -1; - if (other.hasJKBMJGNPCNN()) { - setJKBMJGNPCNN(other.jKBMJGNPCNN); - } if (other.hasSimpleInfo()) { getMutableSimpleInfo().mergeFrom(other.simpleInfo); } @@ -159,19 +113,18 @@ public FriendApplyListInfo mergeFrom(final FriendApplyListInfo other) { } @Override - public FriendApplyListInfo clear() { + public FriendApplyInfo clear() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - jKBMJGNPCNN = 0L; simpleInfo.clear(); return this; } @Override - public FriendApplyListInfo clearQuick() { + public FriendApplyInfo clearQuick() { if (isEmpty()) { return this; } @@ -186,23 +139,18 @@ public boolean equals(Object o) { if (o == this) { return true; } - if (!(o instanceof FriendApplyListInfo)) { + if (!(o instanceof FriendApplyInfo)) { return false; } - FriendApplyListInfo other = (FriendApplyListInfo) o; + FriendApplyInfo other = (FriendApplyInfo) o; return bitField0_ == other.bitField0_ - && (!hasJKBMJGNPCNN() || jKBMJGNPCNN == other.jKBMJGNPCNN) && (!hasSimpleInfo() || simpleInfo.equals(other.simpleInfo)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 96); - output.writeInt64NoTag(jKBMJGNPCNN); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 82); + output.writeRawByte((byte) 34); output.writeMessageNoTag(simpleInfo); } } @@ -211,9 +159,6 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeInt64SizeNoTag(jKBMJGNPCNN); - } - if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(simpleInfo); } return size; @@ -221,24 +166,15 @@ protected int computeSerializedSize() { @Override @SuppressWarnings("fallthrough") - public FriendApplyListInfo mergeFrom(final ProtoSource input) throws IOException { + public FriendApplyInfo mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { switch (tag) { - case 96: { - // jKBMJGNPCNN - jKBMJGNPCNN = input.readInt64(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 82) { - break; - } - } - case 82: { + case 34: { // simpleInfo input.readMessage(simpleInfo); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 0) { break; @@ -262,38 +198,24 @@ public FriendApplyListInfo mergeFrom(final ProtoSource input) throws IOException public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeInt64(FieldNames.jKBMJGNPCNN, jKBMJGNPCNN); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeMessage(FieldNames.simpleInfo, simpleInfo); } output.endObject(); } @Override - public FriendApplyListInfo mergeFrom(final JsonSource input) throws IOException { + public FriendApplyInfo mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -601575848: { - if (input.isAtField(FieldNames.jKBMJGNPCNN)) { - if (!input.trySkipNullValue()) { - jKBMJGNPCNN = input.readInt64(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } case -1431903872: case -1419171045: { if (input.isAtField(FieldNames.simpleInfo)) { if (!input.trySkipNullValue()) { input.readMessage(simpleInfo); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } else { input.skipUnknownField(); @@ -311,8 +233,8 @@ public FriendApplyListInfo mergeFrom(final JsonSource input) throws IOException } @Override - public FriendApplyListInfo clone() { - return new FriendApplyListInfo().copyFrom(this); + public FriendApplyInfo clone() { + return new FriendApplyInfo().copyFrom(this); } @Override @@ -320,32 +242,32 @@ public boolean isEmpty() { return ((bitField0_) == 0); } - public static FriendApplyListInfo parseFrom(final byte[] data) throws + public static FriendApplyInfo parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new FriendApplyListInfo(), data).checkInitialized(); + return ProtoMessage.mergeFrom(new FriendApplyInfo(), data).checkInitialized(); } - public static FriendApplyListInfo parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new FriendApplyListInfo(), input).checkInitialized(); + public static FriendApplyInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new FriendApplyInfo(), input).checkInitialized(); } - public static FriendApplyListInfo parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new FriendApplyListInfo(), input).checkInitialized(); + public static FriendApplyInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new FriendApplyInfo(), input).checkInitialized(); } /** - * @return factory for creating FriendApplyListInfo messages + * @return factory for creating FriendApplyInfo messages */ - public static MessageFactory getFactory() { - return FriendApplyListInfoFactory.INSTANCE; + public static MessageFactory getFactory() { + return FriendApplyInfoFactory.INSTANCE; } - private enum FriendApplyListInfoFactory implements MessageFactory { + private enum FriendApplyInfoFactory implements MessageFactory { INSTANCE; @Override - public FriendApplyListInfo create() { - return FriendApplyListInfo.newInstance(); + public FriendApplyInfo create() { + return FriendApplyInfo.newInstance(); } } @@ -353,8 +275,6 @@ public FriendApplyListInfo create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName jKBMJGNPCNN = FieldName.forField("JKBMJGNPCNN"); - static final FieldName simpleInfo = FieldName.forField("simpleInfo", "simple_info"); } } diff --git a/src/generated/main/emu/lunarcore/proto/FriendListInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/FriendListInfoOuterClass.java index a5df7ca47..36f8146da 100644 --- a/src/generated/main/emu/lunarcore/proto/FriendListInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/FriendListInfoOuterClass.java @@ -19,7 +19,7 @@ public static final class FriendListInfo extends ProtoMessage im private static final long serialVersionUID = 0L; /** - * optional .SimpleInfo simple_info = 14; + * optional .SimpleInfo simple_info = 7; */ private final SimpleInfoOuterClass.SimpleInfo simpleInfo = SimpleInfoOuterClass.SimpleInfo.newInstance(); @@ -34,7 +34,7 @@ public static FriendListInfo newInstance() { } /** - * optional .SimpleInfo simple_info = 14; + * optional .SimpleInfo simple_info = 7; * @return whether the simpleInfo field is set */ public boolean hasSimpleInfo() { @@ -42,7 +42,7 @@ public boolean hasSimpleInfo() { } /** - * optional .SimpleInfo simple_info = 14; + * optional .SimpleInfo simple_info = 7; * @return this */ public FriendListInfo clearSimpleInfo() { @@ -52,7 +52,7 @@ public FriendListInfo clearSimpleInfo() { } /** - * optional .SimpleInfo simple_info = 14; + * optional .SimpleInfo simple_info = 7; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -66,7 +66,7 @@ public SimpleInfoOuterClass.SimpleInfo getSimpleInfo() { } /** - * optional .SimpleInfo simple_info = 14; + * optional .SimpleInfo simple_info = 7; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -80,7 +80,7 @@ public SimpleInfoOuterClass.SimpleInfo getMutableSimpleInfo() { } /** - * optional .SimpleInfo simple_info = 14; + * optional .SimpleInfo simple_info = 7; * @param value the simpleInfo to set * @return this */ @@ -150,7 +150,7 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 114); + output.writeRawByte((byte) 58); output.writeMessageNoTag(simpleInfo); } } @@ -171,7 +171,7 @@ public FriendListInfo mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 114: { + case 58: { // simpleInfo input.readMessage(simpleInfo); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/FriendRecommendInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/FriendRecommendInfoOuterClass.java index 4afec1c8e..97b22f60f 100644 --- a/src/generated/main/emu/lunarcore/proto/FriendRecommendInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/FriendRecommendInfoOuterClass.java @@ -19,7 +19,7 @@ public static final class FriendRecommendInfo extends ProtoMessageoptional .SimpleInfo simple_info = 11; + * optional .SimpleInfo simple_info = 1; */ private final SimpleInfoOuterClass.SimpleInfo simpleInfo = SimpleInfoOuterClass.SimpleInfo.newInstance(); @@ -34,7 +34,7 @@ public static FriendRecommendInfo newInstance() { } /** - * optional .SimpleInfo simple_info = 11; + * optional .SimpleInfo simple_info = 1; * @return whether the simpleInfo field is set */ public boolean hasSimpleInfo() { @@ -42,7 +42,7 @@ public boolean hasSimpleInfo() { } /** - * optional .SimpleInfo simple_info = 11; + * optional .SimpleInfo simple_info = 1; * @return this */ public FriendRecommendInfo clearSimpleInfo() { @@ -52,7 +52,7 @@ public FriendRecommendInfo clearSimpleInfo() { } /** - * optional .SimpleInfo simple_info = 11; + * optional .SimpleInfo simple_info = 1; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -66,7 +66,7 @@ public SimpleInfoOuterClass.SimpleInfo getSimpleInfo() { } /** - * optional .SimpleInfo simple_info = 11; + * optional .SimpleInfo simple_info = 1; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -80,7 +80,7 @@ public SimpleInfoOuterClass.SimpleInfo getMutableSimpleInfo() { } /** - * optional .SimpleInfo simple_info = 11; + * optional .SimpleInfo simple_info = 1; * @param value the simpleInfo to set * @return this */ @@ -150,7 +150,7 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 90); + output.writeRawByte((byte) 10); output.writeMessageNoTag(simpleInfo); } } @@ -171,7 +171,7 @@ public FriendRecommendInfo mergeFrom(final ProtoSource input) throws IOException int tag = input.readTag(); while (true) { switch (tag) { - case 90: { + case 10: { // simpleInfo input.readMessage(simpleInfo); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/GachaCeilingAvatarOuterClass.java b/src/generated/main/emu/lunarcore/proto/GachaCeilingAvatarOuterClass.java index f970ef770..1c107fe59 100644 --- a/src/generated/main/emu/lunarcore/proto/GachaCeilingAvatarOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GachaCeilingAvatarOuterClass.java @@ -19,12 +19,12 @@ public static final class GachaCeilingAvatar extends ProtoMessageoptional uint32 avatar_id = 10; + * optional uint32 avatar_id = 2; */ private int avatarId; /** - * optional uint32 repeated_cnt = 11; + * optional uint32 repeated_cnt = 12; */ private int repeatedCnt; @@ -39,7 +39,7 @@ public static GachaCeilingAvatar newInstance() { } /** - * optional uint32 avatar_id = 10; + * optional uint32 avatar_id = 2; * @return whether the avatarId field is set */ public boolean hasAvatarId() { @@ -47,7 +47,7 @@ public boolean hasAvatarId() { } /** - * optional uint32 avatar_id = 10; + * optional uint32 avatar_id = 2; * @return this */ public GachaCeilingAvatar clearAvatarId() { @@ -57,7 +57,7 @@ public GachaCeilingAvatar clearAvatarId() { } /** - * optional uint32 avatar_id = 10; + * optional uint32 avatar_id = 2; * @return the avatarId */ public int getAvatarId() { @@ -65,7 +65,7 @@ public int getAvatarId() { } /** - * optional uint32 avatar_id = 10; + * optional uint32 avatar_id = 2; * @param value the avatarId to set * @return this */ @@ -76,7 +76,7 @@ public GachaCeilingAvatar setAvatarId(final int value) { } /** - * optional uint32 repeated_cnt = 11; + * optional uint32 repeated_cnt = 12; * @return whether the repeatedCnt field is set */ public boolean hasRepeatedCnt() { @@ -84,7 +84,7 @@ public boolean hasRepeatedCnt() { } /** - * optional uint32 repeated_cnt = 11; + * optional uint32 repeated_cnt = 12; * @return this */ public GachaCeilingAvatar clearRepeatedCnt() { @@ -94,7 +94,7 @@ public GachaCeilingAvatar clearRepeatedCnt() { } /** - * optional uint32 repeated_cnt = 11; + * optional uint32 repeated_cnt = 12; * @return the repeatedCnt */ public int getRepeatedCnt() { @@ -102,7 +102,7 @@ public int getRepeatedCnt() { } /** - * optional uint32 repeated_cnt = 11; + * optional uint32 repeated_cnt = 12; * @param value the repeatedCnt to set * @return this */ @@ -177,11 +177,11 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 16); output.writeUInt32NoTag(avatarId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 96); output.writeUInt32NoTag(repeatedCnt); } } @@ -205,16 +205,16 @@ public GachaCeilingAvatar mergeFrom(final ProtoSource input) throws IOException int tag = input.readTag(); while (true) { switch (tag) { - case 80: { + case 16: { // avatarId avatarId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 88) { + if (tag != 96) { break; } } - case 88: { + case 96: { // repeatedCnt repeatedCnt = input.readUInt32(); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/GachaCeilingOuterClass.java b/src/generated/main/emu/lunarcore/proto/GachaCeilingOuterClass.java index 59930b6a1..7fad7737b 100644 --- a/src/generated/main/emu/lunarcore/proto/GachaCeilingOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GachaCeilingOuterClass.java @@ -20,17 +20,17 @@ public static final class GachaCeiling extends ProtoMessage implem private static final long serialVersionUID = 0L; /** - * optional uint32 ceiling_num = 14; + * optional uint32 ceiling_num = 12; */ private int ceilingNum; /** - * optional bool is_claimed = 9; + * optional bool is_claimed = 5; */ private boolean isClaimed; /** - * repeated .GachaCeilingAvatar avatar_list = 15; + * repeated .GachaCeilingAvatar avatar_list = 1; */ private final RepeatedMessage avatarList = RepeatedMessage.newEmptyInstance(GachaCeilingAvatarOuterClass.GachaCeilingAvatar.getFactory()); @@ -45,7 +45,7 @@ public static GachaCeiling newInstance() { } /** - * optional uint32 ceiling_num = 14; + * optional uint32 ceiling_num = 12; * @return whether the ceilingNum field is set */ public boolean hasCeilingNum() { @@ -53,7 +53,7 @@ public boolean hasCeilingNum() { } /** - * optional uint32 ceiling_num = 14; + * optional uint32 ceiling_num = 12; * @return this */ public GachaCeiling clearCeilingNum() { @@ -63,7 +63,7 @@ public GachaCeiling clearCeilingNum() { } /** - * optional uint32 ceiling_num = 14; + * optional uint32 ceiling_num = 12; * @return the ceilingNum */ public int getCeilingNum() { @@ -71,7 +71,7 @@ public int getCeilingNum() { } /** - * optional uint32 ceiling_num = 14; + * optional uint32 ceiling_num = 12; * @param value the ceilingNum to set * @return this */ @@ -82,7 +82,7 @@ public GachaCeiling setCeilingNum(final int value) { } /** - * optional bool is_claimed = 9; + * optional bool is_claimed = 5; * @return whether the isClaimed field is set */ public boolean hasIsClaimed() { @@ -90,7 +90,7 @@ public boolean hasIsClaimed() { } /** - * optional bool is_claimed = 9; + * optional bool is_claimed = 5; * @return this */ public GachaCeiling clearIsClaimed() { @@ -100,7 +100,7 @@ public GachaCeiling clearIsClaimed() { } /** - * optional bool is_claimed = 9; + * optional bool is_claimed = 5; * @return the isClaimed */ public boolean getIsClaimed() { @@ -108,7 +108,7 @@ public boolean getIsClaimed() { } /** - * optional bool is_claimed = 9; + * optional bool is_claimed = 5; * @param value the isClaimed to set * @return this */ @@ -119,7 +119,7 @@ public GachaCeiling setIsClaimed(final boolean value) { } /** - * repeated .GachaCeilingAvatar avatar_list = 15; + * repeated .GachaCeilingAvatar avatar_list = 1; * @return whether the avatarList field is set */ public boolean hasAvatarList() { @@ -127,7 +127,7 @@ public boolean hasAvatarList() { } /** - * repeated .GachaCeilingAvatar avatar_list = 15; + * repeated .GachaCeilingAvatar avatar_list = 1; * @return this */ public GachaCeiling clearAvatarList() { @@ -137,7 +137,7 @@ public GachaCeiling clearAvatarList() { } /** - * repeated .GachaCeilingAvatar avatar_list = 15; + * repeated .GachaCeilingAvatar avatar_list = 1; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -151,7 +151,7 @@ public RepeatedMessage getAvata } /** - * repeated .GachaCeilingAvatar avatar_list = 15; + * repeated .GachaCeilingAvatar avatar_list = 1; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -165,7 +165,7 @@ public RepeatedMessage getMutab } /** - * repeated .GachaCeilingAvatar avatar_list = 15; + * repeated .GachaCeilingAvatar avatar_list = 1; * @param value the avatarList to add * @return this */ @@ -176,7 +176,7 @@ public GachaCeiling addAvatarList(final GachaCeilingAvatarOuterClass.GachaCeilin } /** - * repeated .GachaCeilingAvatar avatar_list = 15; + * repeated .GachaCeilingAvatar avatar_list = 1; * @param values the avatarList to add * @return this */ @@ -259,16 +259,16 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 96); output.writeUInt32NoTag(ceilingNum); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 72); + output.writeRawByte((byte) 40); output.writeBoolNoTag(isClaimed); } if ((bitField0_ & 0x00000004) != 0) { for (int i = 0; i < avatarList.length(); i++) { - output.writeRawByte((byte) 122); + output.writeRawByte((byte) 10); output.writeMessageNoTag(avatarList.get(i)); } } @@ -296,25 +296,25 @@ public GachaCeiling mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 112: { + case 96: { // ceilingNum ceilingNum = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 72) { + if (tag != 40) { break; } } - case 72: { + case 40: { // isClaimed isClaimed = input.readBool(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 122) { + if (tag != 10) { break; } } - case 122: { + case 10: { // avatarList tag = input.readRepeatedMessage(avatarList, tag); bitField0_ |= 0x00000004; diff --git a/src/generated/main/emu/lunarcore/proto/GachaInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/GachaInfoOuterClass.java index 15dcb9751..cbafb9f79 100644 --- a/src/generated/main/emu/lunarcore/proto/GachaInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GachaInfoOuterClass.java @@ -21,27 +21,27 @@ public static final class GachaInfo extends ProtoMessage implements C private static final long serialVersionUID = 0L; /** - * optional int64 begin_time = 9; + * optional int64 begin_time = 5; */ private long beginTime; /** - * optional int64 end_time = 10; + * optional int64 end_time = 15; */ private long endTime; /** - * optional uint32 gacha_id = 2; + * optional uint32 gacha_id = 3; */ private int gachaId; /** - * optional .GachaCeiling gacha_ceiling = 4; + * optional .GachaCeiling gacha_ceiling = 1; */ private final GachaCeilingOuterClass.GachaCeiling gachaCeiling = GachaCeilingOuterClass.GachaCeiling.newInstance(); /** - * optional string history_url = 1; + * optional string history_url = 13; */ private final Utf8String historyUrl = Utf8String.newEmptyInstance(); @@ -51,12 +51,12 @@ public static final class GachaInfo extends ProtoMessage implements C private final Utf8String detailUrl = Utf8String.newEmptyInstance(); /** - * repeated uint32 up_info = 3; + * repeated uint32 up_info = 6; */ private final RepeatedInt upInfo = RepeatedInt.newEmptyInstance(); /** - * repeated uint32 featured = 5; + * repeated uint32 featured = 9; */ private final RepeatedInt featured = RepeatedInt.newEmptyInstance(); @@ -71,7 +71,7 @@ public static GachaInfo newInstance() { } /** - * optional int64 begin_time = 9; + * optional int64 begin_time = 5; * @return whether the beginTime field is set */ public boolean hasBeginTime() { @@ -79,7 +79,7 @@ public boolean hasBeginTime() { } /** - * optional int64 begin_time = 9; + * optional int64 begin_time = 5; * @return this */ public GachaInfo clearBeginTime() { @@ -89,7 +89,7 @@ public GachaInfo clearBeginTime() { } /** - * optional int64 begin_time = 9; + * optional int64 begin_time = 5; * @return the beginTime */ public long getBeginTime() { @@ -97,7 +97,7 @@ public long getBeginTime() { } /** - * optional int64 begin_time = 9; + * optional int64 begin_time = 5; * @param value the beginTime to set * @return this */ @@ -108,7 +108,7 @@ public GachaInfo setBeginTime(final long value) { } /** - * optional int64 end_time = 10; + * optional int64 end_time = 15; * @return whether the endTime field is set */ public boolean hasEndTime() { @@ -116,7 +116,7 @@ public boolean hasEndTime() { } /** - * optional int64 end_time = 10; + * optional int64 end_time = 15; * @return this */ public GachaInfo clearEndTime() { @@ -126,7 +126,7 @@ public GachaInfo clearEndTime() { } /** - * optional int64 end_time = 10; + * optional int64 end_time = 15; * @return the endTime */ public long getEndTime() { @@ -134,7 +134,7 @@ public long getEndTime() { } /** - * optional int64 end_time = 10; + * optional int64 end_time = 15; * @param value the endTime to set * @return this */ @@ -145,7 +145,7 @@ public GachaInfo setEndTime(final long value) { } /** - * optional uint32 gacha_id = 2; + * optional uint32 gacha_id = 3; * @return whether the gachaId field is set */ public boolean hasGachaId() { @@ -153,7 +153,7 @@ public boolean hasGachaId() { } /** - * optional uint32 gacha_id = 2; + * optional uint32 gacha_id = 3; * @return this */ public GachaInfo clearGachaId() { @@ -163,7 +163,7 @@ public GachaInfo clearGachaId() { } /** - * optional uint32 gacha_id = 2; + * optional uint32 gacha_id = 3; * @return the gachaId */ public int getGachaId() { @@ -171,7 +171,7 @@ public int getGachaId() { } /** - * optional uint32 gacha_id = 2; + * optional uint32 gacha_id = 3; * @param value the gachaId to set * @return this */ @@ -182,7 +182,7 @@ public GachaInfo setGachaId(final int value) { } /** - * optional .GachaCeiling gacha_ceiling = 4; + * optional .GachaCeiling gacha_ceiling = 1; * @return whether the gachaCeiling field is set */ public boolean hasGachaCeiling() { @@ -190,7 +190,7 @@ public boolean hasGachaCeiling() { } /** - * optional .GachaCeiling gacha_ceiling = 4; + * optional .GachaCeiling gacha_ceiling = 1; * @return this */ public GachaInfo clearGachaCeiling() { @@ -200,7 +200,7 @@ public GachaInfo clearGachaCeiling() { } /** - * optional .GachaCeiling gacha_ceiling = 4; + * optional .GachaCeiling gacha_ceiling = 1; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -214,7 +214,7 @@ public GachaCeilingOuterClass.GachaCeiling getGachaCeiling() { } /** - * optional .GachaCeiling gacha_ceiling = 4; + * optional .GachaCeiling gacha_ceiling = 1; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -228,7 +228,7 @@ public GachaCeilingOuterClass.GachaCeiling getMutableGachaCeiling() { } /** - * optional .GachaCeiling gacha_ceiling = 4; + * optional .GachaCeiling gacha_ceiling = 1; * @param value the gachaCeiling to set * @return this */ @@ -239,7 +239,7 @@ public GachaInfo setGachaCeiling(final GachaCeilingOuterClass.GachaCeiling value } /** - * optional string history_url = 1; + * optional string history_url = 13; * @return whether the historyUrl field is set */ public boolean hasHistoryUrl() { @@ -247,7 +247,7 @@ public boolean hasHistoryUrl() { } /** - * optional string history_url = 1; + * optional string history_url = 13; * @return this */ public GachaInfo clearHistoryUrl() { @@ -257,7 +257,7 @@ public GachaInfo clearHistoryUrl() { } /** - * optional string history_url = 1; + * optional string history_url = 13; * @return the historyUrl */ public String getHistoryUrl() { @@ -265,7 +265,7 @@ public String getHistoryUrl() { } /** - * optional string history_url = 1; + * optional string history_url = 13; * @return internal {@code Utf8String} representation of historyUrl for reading */ public Utf8String getHistoryUrlBytes() { @@ -273,7 +273,7 @@ public Utf8String getHistoryUrlBytes() { } /** - * optional string history_url = 1; + * optional string history_url = 13; * @return internal {@code Utf8String} representation of historyUrl for modifications */ public Utf8String getMutableHistoryUrlBytes() { @@ -282,7 +282,7 @@ public Utf8String getMutableHistoryUrlBytes() { } /** - * optional string history_url = 1; + * optional string history_url = 13; * @param value the historyUrl to set * @return this */ @@ -293,7 +293,7 @@ public GachaInfo setHistoryUrl(final CharSequence value) { } /** - * optional string history_url = 1; + * optional string history_url = 13; * @param value the historyUrl to set * @return this */ @@ -369,7 +369,7 @@ public GachaInfo setDetailUrl(final Utf8String value) { } /** - * repeated uint32 up_info = 3; + * repeated uint32 up_info = 6; * @return whether the upInfo field is set */ public boolean hasUpInfo() { @@ -377,7 +377,7 @@ public boolean hasUpInfo() { } /** - * repeated uint32 up_info = 3; + * repeated uint32 up_info = 6; * @return this */ public GachaInfo clearUpInfo() { @@ -387,7 +387,7 @@ public GachaInfo clearUpInfo() { } /** - * repeated uint32 up_info = 3; + * repeated uint32 up_info = 6; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -401,7 +401,7 @@ public RepeatedInt getUpInfo() { } /** - * repeated uint32 up_info = 3; + * repeated uint32 up_info = 6; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -415,7 +415,7 @@ public RepeatedInt getMutableUpInfo() { } /** - * repeated uint32 up_info = 3; + * repeated uint32 up_info = 6; * @param value the upInfo to add * @return this */ @@ -426,7 +426,7 @@ public GachaInfo addUpInfo(final int value) { } /** - * repeated uint32 up_info = 3; + * repeated uint32 up_info = 6; * @param values the upInfo to add * @return this */ @@ -437,7 +437,7 @@ public GachaInfo addAllUpInfo(final int... values) { } /** - * repeated uint32 featured = 5; + * repeated uint32 featured = 9; * @return whether the featured field is set */ public boolean hasFeatured() { @@ -445,7 +445,7 @@ public boolean hasFeatured() { } /** - * repeated uint32 featured = 5; + * repeated uint32 featured = 9; * @return this */ public GachaInfo clearFeatured() { @@ -455,7 +455,7 @@ public GachaInfo clearFeatured() { } /** - * repeated uint32 featured = 5; + * repeated uint32 featured = 9; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -469,7 +469,7 @@ public RepeatedInt getFeatured() { } /** - * repeated uint32 featured = 5; + * repeated uint32 featured = 9; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -483,7 +483,7 @@ public RepeatedInt getMutableFeatured() { } /** - * repeated uint32 featured = 5; + * repeated uint32 featured = 9; * @param value the featured to add * @return this */ @@ -494,7 +494,7 @@ public GachaInfo addFeatured(final int value) { } /** - * repeated uint32 featured = 5; + * repeated uint32 featured = 9; * @param values the featured to add * @return this */ @@ -610,23 +610,23 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 72); + output.writeRawByte((byte) 40); output.writeInt64NoTag(beginTime); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 120); output.writeInt64NoTag(endTime); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 16); + output.writeRawByte((byte) 24); output.writeUInt32NoTag(gachaId); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 34); + output.writeRawByte((byte) 10); output.writeMessageNoTag(gachaCeiling); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 10); + output.writeRawByte((byte) 106); output.writeStringNoTag(historyUrl); } if ((bitField0_ & 0x00000020) != 0) { @@ -635,13 +635,13 @@ public void writeTo(final ProtoSink output) throws IOException { } if ((bitField0_ & 0x00000040) != 0) { for (int i = 0; i < upInfo.length(); i++) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 48); output.writeUInt32NoTag(upInfo.array()[i]); } } if ((bitField0_ & 0x00000080) != 0) { for (int i = 0; i < featured.length(); i++) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 72); output.writeUInt32NoTag(featured.array()[i]); } } @@ -684,43 +684,43 @@ public GachaInfo mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 72: { + case 40: { // beginTime beginTime = input.readInt64(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 80) { + if (tag != 120) { break; } } - case 80: { + case 120: { // endTime endTime = input.readInt64(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 16) { + if (tag != 24) { break; } } - case 16: { + case 24: { // gachaId gachaId = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 34) { + if (tag != 10) { break; } } - case 34: { + case 10: { // gachaCeiling input.readMessage(gachaCeiling); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 10) { + if (tag != 106) { break; } } - case 10: { + case 106: { // historyUrl input.readString(historyUrl); bitField0_ |= 0x00000010; @@ -734,20 +734,20 @@ public GachaInfo mergeFrom(final ProtoSource input) throws IOException { input.readString(detailUrl); bitField0_ |= 0x00000020; tag = input.readTag(); - if (tag != 26) { + if (tag != 50) { break; } } - case 26: { + case 50: { // upInfo [packed=true] input.readPackedUInt32(upInfo, tag); bitField0_ |= 0x00000040; tag = input.readTag(); - if (tag != 42) { + if (tag != 74) { break; } } - case 42: { + case 74: { // featured [packed=true] input.readPackedUInt32(featured, tag); bitField0_ |= 0x00000080; @@ -766,13 +766,13 @@ public GachaInfo mergeFrom(final ProtoSource input) throws IOException { tag = input.readTag(); break; } - case 24: { + case 48: { // upInfo [packed=false] tag = input.readRepeatedUInt32(upInfo, tag); bitField0_ |= 0x00000040; break; } - case 40: { + case 72: { // featured [packed=false] tag = input.readRepeatedUInt32(featured, tag); bitField0_ |= 0x00000080; diff --git a/src/generated/main/emu/lunarcore/proto/GachaItemOuterClass.java b/src/generated/main/emu/lunarcore/proto/GachaItemOuterClass.java index 503cfc50b..a26346351 100644 --- a/src/generated/main/emu/lunarcore/proto/GachaItemOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GachaItemOuterClass.java @@ -19,22 +19,22 @@ public static final class GachaItem extends ProtoMessage implements C private static final long serialVersionUID = 0L; /** - * optional bool is_new = 15; + * optional bool is_new = 8; */ private boolean isNew; /** - * optional .Item gacha_item = 2; + * optional .Item gacha_item = 1; */ private final ItemOuterClass.Item gachaItem = ItemOuterClass.Item.newInstance(); /** - * optional .ItemList token_item = 4; + * optional .ItemList token_item = 9; */ private final ItemListOuterClass.ItemList tokenItem = ItemListOuterClass.ItemList.newInstance(); /** - * optional .ItemList transfer_item_list = 13; + * optional .ItemList transfer_item_list = 12; */ private final ItemListOuterClass.ItemList transferItemList = ItemListOuterClass.ItemList.newInstance(); @@ -49,7 +49,7 @@ public static GachaItem newInstance() { } /** - * optional bool is_new = 15; + * optional bool is_new = 8; * @return whether the isNew field is set */ public boolean hasIsNew() { @@ -57,7 +57,7 @@ public boolean hasIsNew() { } /** - * optional bool is_new = 15; + * optional bool is_new = 8; * @return this */ public GachaItem clearIsNew() { @@ -67,7 +67,7 @@ public GachaItem clearIsNew() { } /** - * optional bool is_new = 15; + * optional bool is_new = 8; * @return the isNew */ public boolean getIsNew() { @@ -75,7 +75,7 @@ public boolean getIsNew() { } /** - * optional bool is_new = 15; + * optional bool is_new = 8; * @param value the isNew to set * @return this */ @@ -86,7 +86,7 @@ public GachaItem setIsNew(final boolean value) { } /** - * optional .Item gacha_item = 2; + * optional .Item gacha_item = 1; * @return whether the gachaItem field is set */ public boolean hasGachaItem() { @@ -94,7 +94,7 @@ public boolean hasGachaItem() { } /** - * optional .Item gacha_item = 2; + * optional .Item gacha_item = 1; * @return this */ public GachaItem clearGachaItem() { @@ -104,7 +104,7 @@ public GachaItem clearGachaItem() { } /** - * optional .Item gacha_item = 2; + * optional .Item gacha_item = 1; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -118,7 +118,7 @@ public ItemOuterClass.Item getGachaItem() { } /** - * optional .Item gacha_item = 2; + * optional .Item gacha_item = 1; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -132,7 +132,7 @@ public ItemOuterClass.Item getMutableGachaItem() { } /** - * optional .Item gacha_item = 2; + * optional .Item gacha_item = 1; * @param value the gachaItem to set * @return this */ @@ -143,7 +143,7 @@ public GachaItem setGachaItem(final ItemOuterClass.Item value) { } /** - * optional .ItemList token_item = 4; + * optional .ItemList token_item = 9; * @return whether the tokenItem field is set */ public boolean hasTokenItem() { @@ -151,7 +151,7 @@ public boolean hasTokenItem() { } /** - * optional .ItemList token_item = 4; + * optional .ItemList token_item = 9; * @return this */ public GachaItem clearTokenItem() { @@ -161,7 +161,7 @@ public GachaItem clearTokenItem() { } /** - * optional .ItemList token_item = 4; + * optional .ItemList token_item = 9; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -175,7 +175,7 @@ public ItemListOuterClass.ItemList getTokenItem() { } /** - * optional .ItemList token_item = 4; + * optional .ItemList token_item = 9; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -189,7 +189,7 @@ public ItemListOuterClass.ItemList getMutableTokenItem() { } /** - * optional .ItemList token_item = 4; + * optional .ItemList token_item = 9; * @param value the tokenItem to set * @return this */ @@ -200,7 +200,7 @@ public GachaItem setTokenItem(final ItemListOuterClass.ItemList value) { } /** - * optional .ItemList transfer_item_list = 13; + * optional .ItemList transfer_item_list = 12; * @return whether the transferItemList field is set */ public boolean hasTransferItemList() { @@ -208,7 +208,7 @@ public boolean hasTransferItemList() { } /** - * optional .ItemList transfer_item_list = 13; + * optional .ItemList transfer_item_list = 12; * @return this */ public GachaItem clearTransferItemList() { @@ -218,7 +218,7 @@ public GachaItem clearTransferItemList() { } /** - * optional .ItemList transfer_item_list = 13; + * optional .ItemList transfer_item_list = 12; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -232,7 +232,7 @@ public ItemListOuterClass.ItemList getTransferItemList() { } /** - * optional .ItemList transfer_item_list = 13; + * optional .ItemList transfer_item_list = 12; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -246,7 +246,7 @@ public ItemListOuterClass.ItemList getMutableTransferItemList() { } /** - * optional .ItemList transfer_item_list = 13; + * optional .ItemList transfer_item_list = 12; * @param value the transferItemList to set * @return this */ @@ -336,19 +336,19 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 64); output.writeBoolNoTag(isNew); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 18); + output.writeRawByte((byte) 10); output.writeMessageNoTag(gachaItem); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 34); + output.writeRawByte((byte) 74); output.writeMessageNoTag(tokenItem); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 106); + output.writeRawByte((byte) 98); output.writeMessageNoTag(transferItemList); } } @@ -378,34 +378,34 @@ public GachaItem mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 120: { + case 64: { // isNew isNew = input.readBool(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 18) { + if (tag != 10) { break; } } - case 18: { + case 10: { // gachaItem input.readMessage(gachaItem); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 34) { + if (tag != 74) { break; } } - case 34: { + case 74: { // tokenItem input.readMessage(tokenItem); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 106) { + if (tag != 98) { break; } } - case 106: { + case 98: { // transferItemList input.readMessage(transferItemList); bitField0_ |= 0x00000008; diff --git a/src/generated/main/emu/lunarcore/proto/GateserverOuterClass.java b/src/generated/main/emu/lunarcore/proto/GateserverOuterClass.java index 014bf750a..d3be56433 100644 --- a/src/generated/main/emu/lunarcore/proto/GateserverOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GateserverOuterClass.java @@ -20,98 +20,85 @@ public static final class Gateserver extends ProtoMessage implements private static final long serialVersionUID = 0L; /** - * optional uint32 port = 7; + * optional uint32 port = 15; */ private int port; /** - * optional bool unk1 = 9; + * optional bool unk1 = 5; */ private boolean unk1; /** - * optional bool unk2 = 12; + * optional bool unk2 = 9; */ private boolean unk2; /** - * optional bool unk5 = 678; + * optional bool unk3 = 170; */ - private boolean unk5; + private boolean unk3; /** - * optional bool unk3 = 1461; + * optional bool unk4 = 1397; */ - private boolean unk3; + private boolean unk4; /** - * optional bool unk6 = 1727; + * optional bool unk5 = 1649; */ - private boolean unk6; + private boolean unk5; /** - * optional bool unk4 = 1764; + * optional string msg = 1; */ - private boolean unk4; + private final Utf8String msg = Utf8String.newEmptyInstance(); /** - * optional string region_name = 2; + * optional string ip = 3; + */ + private final Utf8String ip = Utf8String.newEmptyInstance(); + + /** + * optional string region_name = 4; */ private final Utf8String regionName = Utf8String.newEmptyInstance(); /** - * optional string lua_url = 5; + * optional string lua_url = 10; */ private final Utf8String luaUrl = Utf8String.newEmptyInstance(); /** - * optional string ex_resource_url = 8; + * optional string ex_resource_url = 12; */ private final Utf8String exResourceUrl = Utf8String.newEmptyInstance(); /** - * optional string asset_bundle_url = 11; + * optional string asset_bundle_url = 14; */ private final Utf8String assetBundleUrl = Utf8String.newEmptyInstance(); /** - * optional string ip = 13; + * optional string ifix_version = 20; */ - private final Utf8String ip = Utf8String.newEmptyInstance(); + private final Utf8String ifixVersion = Utf8String.newEmptyInstance(); /** - * optional string ifix_url = 1088; + * optional string ifix_url = 98; */ private final Utf8String ifixUrl = Utf8String.newEmptyInstance(); /** - * optional string client_secret_key = 1200; + * optional string client_secret_key = 239; */ private final Utf8String clientSecretKey = Utf8String.newEmptyInstance(); /** - *
-     *  lua versionf
-     * 
- * - * optional string mdk_res_version = 1213; + * optional string mdk_res_version = 1506; */ private final Utf8String mdkResVersion = Utf8String.newEmptyInstance(); - /** - *
-     *  ifix version
-     * 
- * - * optional string ifix_version = 1268; - */ - private final Utf8String ifixVersion = Utf8String.newEmptyInstance(); - - /** - * optional string msg = 1550; - */ - private final Utf8String msg = Utf8String.newEmptyInstance(); - private Gateserver() { } @@ -123,7 +110,7 @@ public static Gateserver newInstance() { } /** - * optional uint32 port = 7; + * optional uint32 port = 15; * @return whether the port field is set */ public boolean hasPort() { @@ -131,7 +118,7 @@ public boolean hasPort() { } /** - * optional uint32 port = 7; + * optional uint32 port = 15; * @return this */ public Gateserver clearPort() { @@ -141,7 +128,7 @@ public Gateserver clearPort() { } /** - * optional uint32 port = 7; + * optional uint32 port = 15; * @return the port */ public int getPort() { @@ -149,7 +136,7 @@ public int getPort() { } /** - * optional uint32 port = 7; + * optional uint32 port = 15; * @param value the port to set * @return this */ @@ -160,7 +147,7 @@ public Gateserver setPort(final int value) { } /** - * optional bool unk1 = 9; + * optional bool unk1 = 5; * @return whether the unk1 field is set */ public boolean hasUnk1() { @@ -168,7 +155,7 @@ public boolean hasUnk1() { } /** - * optional bool unk1 = 9; + * optional bool unk1 = 5; * @return this */ public Gateserver clearUnk1() { @@ -178,7 +165,7 @@ public Gateserver clearUnk1() { } /** - * optional bool unk1 = 9; + * optional bool unk1 = 5; * @return the unk1 */ public boolean getUnk1() { @@ -186,7 +173,7 @@ public boolean getUnk1() { } /** - * optional bool unk1 = 9; + * optional bool unk1 = 5; * @param value the unk1 to set * @return this */ @@ -197,7 +184,7 @@ public Gateserver setUnk1(final boolean value) { } /** - * optional bool unk2 = 12; + * optional bool unk2 = 9; * @return whether the unk2 field is set */ public boolean hasUnk2() { @@ -205,7 +192,7 @@ public boolean hasUnk2() { } /** - * optional bool unk2 = 12; + * optional bool unk2 = 9; * @return this */ public Gateserver clearUnk2() { @@ -215,7 +202,7 @@ public Gateserver clearUnk2() { } /** - * optional bool unk2 = 12; + * optional bool unk2 = 9; * @return the unk2 */ public boolean getUnk2() { @@ -223,7 +210,7 @@ public boolean getUnk2() { } /** - * optional bool unk2 = 12; + * optional bool unk2 = 9; * @param value the unk2 to set * @return this */ @@ -234,173 +221,266 @@ public Gateserver setUnk2(final boolean value) { } /** - * optional bool unk5 = 678; - * @return whether the unk5 field is set + * optional bool unk3 = 170; + * @return whether the unk3 field is set */ - public boolean hasUnk5() { + public boolean hasUnk3() { return (bitField0_ & 0x00000008) != 0; } /** - * optional bool unk5 = 678; + * optional bool unk3 = 170; * @return this */ - public Gateserver clearUnk5() { + public Gateserver clearUnk3() { bitField0_ &= ~0x00000008; - unk5 = false; + unk3 = false; return this; } /** - * optional bool unk5 = 678; - * @return the unk5 + * optional bool unk3 = 170; + * @return the unk3 */ - public boolean getUnk5() { - return unk5; + public boolean getUnk3() { + return unk3; } /** - * optional bool unk5 = 678; - * @param value the unk5 to set + * optional bool unk3 = 170; + * @param value the unk3 to set * @return this */ - public Gateserver setUnk5(final boolean value) { + public Gateserver setUnk3(final boolean value) { bitField0_ |= 0x00000008; - unk5 = value; + unk3 = value; return this; } /** - * optional bool unk3 = 1461; - * @return whether the unk3 field is set + * optional bool unk4 = 1397; + * @return whether the unk4 field is set */ - public boolean hasUnk3() { + public boolean hasUnk4() { return (bitField0_ & 0x00000010) != 0; } /** - * optional bool unk3 = 1461; + * optional bool unk4 = 1397; * @return this */ - public Gateserver clearUnk3() { + public Gateserver clearUnk4() { bitField0_ &= ~0x00000010; - unk3 = false; + unk4 = false; return this; } /** - * optional bool unk3 = 1461; - * @return the unk3 + * optional bool unk4 = 1397; + * @return the unk4 */ - public boolean getUnk3() { - return unk3; + public boolean getUnk4() { + return unk4; } /** - * optional bool unk3 = 1461; - * @param value the unk3 to set + * optional bool unk4 = 1397; + * @param value the unk4 to set * @return this */ - public Gateserver setUnk3(final boolean value) { + public Gateserver setUnk4(final boolean value) { bitField0_ |= 0x00000010; - unk3 = value; + unk4 = value; return this; } /** - * optional bool unk6 = 1727; - * @return whether the unk6 field is set + * optional bool unk5 = 1649; + * @return whether the unk5 field is set */ - public boolean hasUnk6() { + public boolean hasUnk5() { return (bitField0_ & 0x00000020) != 0; } /** - * optional bool unk6 = 1727; + * optional bool unk5 = 1649; * @return this */ - public Gateserver clearUnk6() { + public Gateserver clearUnk5() { bitField0_ &= ~0x00000020; - unk6 = false; + unk5 = false; return this; } /** - * optional bool unk6 = 1727; - * @return the unk6 + * optional bool unk5 = 1649; + * @return the unk5 */ - public boolean getUnk6() { - return unk6; + public boolean getUnk5() { + return unk5; } /** - * optional bool unk6 = 1727; - * @param value the unk6 to set + * optional bool unk5 = 1649; + * @param value the unk5 to set * @return this */ - public Gateserver setUnk6(final boolean value) { + public Gateserver setUnk5(final boolean value) { bitField0_ |= 0x00000020; - unk6 = value; + unk5 = value; return this; } /** - * optional bool unk4 = 1764; - * @return whether the unk4 field is set + * optional string msg = 1; + * @return whether the msg field is set */ - public boolean hasUnk4() { + public boolean hasMsg() { return (bitField0_ & 0x00000040) != 0; } /** - * optional bool unk4 = 1764; + * optional string msg = 1; * @return this */ - public Gateserver clearUnk4() { + public Gateserver clearMsg() { bitField0_ &= ~0x00000040; - unk4 = false; + msg.clear(); return this; } /** - * optional bool unk4 = 1764; - * @return the unk4 + * optional string msg = 1; + * @return the msg */ - public boolean getUnk4() { - return unk4; + public String getMsg() { + return msg.getString(); } /** - * optional bool unk4 = 1764; - * @param value the unk4 to set + * optional string msg = 1; + * @return internal {@code Utf8String} representation of msg for reading + */ + public Utf8String getMsgBytes() { + return this.msg; + } + + /** + * optional string msg = 1; + * @return internal {@code Utf8String} representation of msg for modifications + */ + public Utf8String getMutableMsgBytes() { + bitField0_ |= 0x00000040; + return this.msg; + } + + /** + * optional string msg = 1; + * @param value the msg to set * @return this */ - public Gateserver setUnk4(final boolean value) { + public Gateserver setMsg(final CharSequence value) { bitField0_ |= 0x00000040; - unk4 = value; + msg.copyFrom(value); return this; } /** - * optional string region_name = 2; + * optional string msg = 1; + * @param value the msg to set + * @return this + */ + public Gateserver setMsg(final Utf8String value) { + bitField0_ |= 0x00000040; + msg.copyFrom(value); + return this; + } + + /** + * optional string ip = 3; + * @return whether the ip field is set + */ + public boolean hasIp() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * optional string ip = 3; + * @return this + */ + public Gateserver clearIp() { + bitField0_ &= ~0x00000080; + ip.clear(); + return this; + } + + /** + * optional string ip = 3; + * @return the ip + */ + public String getIp() { + return ip.getString(); + } + + /** + * optional string ip = 3; + * @return internal {@code Utf8String} representation of ip for reading + */ + public Utf8String getIpBytes() { + return this.ip; + } + + /** + * optional string ip = 3; + * @return internal {@code Utf8String} representation of ip for modifications + */ + public Utf8String getMutableIpBytes() { + bitField0_ |= 0x00000080; + return this.ip; + } + + /** + * optional string ip = 3; + * @param value the ip to set + * @return this + */ + public Gateserver setIp(final CharSequence value) { + bitField0_ |= 0x00000080; + ip.copyFrom(value); + return this; + } + + /** + * optional string ip = 3; + * @param value the ip to set + * @return this + */ + public Gateserver setIp(final Utf8String value) { + bitField0_ |= 0x00000080; + ip.copyFrom(value); + return this; + } + + /** + * optional string region_name = 4; * @return whether the regionName field is set */ public boolean hasRegionName() { - return (bitField0_ & 0x00000080) != 0; + return (bitField0_ & 0x00000100) != 0; } /** - * optional string region_name = 2; + * optional string region_name = 4; * @return this */ public Gateserver clearRegionName() { - bitField0_ &= ~0x00000080; + bitField0_ &= ~0x00000100; regionName.clear(); return this; } /** - * optional string region_name = 2; + * optional string region_name = 4; * @return the regionName */ public String getRegionName() { @@ -408,7 +488,7 @@ public String getRegionName() { } /** - * optional string region_name = 2; + * optional string region_name = 4; * @return internal {@code Utf8String} representation of regionName for reading */ public Utf8String getRegionNameBytes() { @@ -416,56 +496,56 @@ public Utf8String getRegionNameBytes() { } /** - * optional string region_name = 2; + * optional string region_name = 4; * @return internal {@code Utf8String} representation of regionName for modifications */ public Utf8String getMutableRegionNameBytes() { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; return this.regionName; } /** - * optional string region_name = 2; + * optional string region_name = 4; * @param value the regionName to set * @return this */ public Gateserver setRegionName(final CharSequence value) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; regionName.copyFrom(value); return this; } /** - * optional string region_name = 2; + * optional string region_name = 4; * @param value the regionName to set * @return this */ public Gateserver setRegionName(final Utf8String value) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; regionName.copyFrom(value); return this; } /** - * optional string lua_url = 5; + * optional string lua_url = 10; * @return whether the luaUrl field is set */ public boolean hasLuaUrl() { - return (bitField0_ & 0x00000100) != 0; + return (bitField0_ & 0x00000200) != 0; } /** - * optional string lua_url = 5; + * optional string lua_url = 10; * @return this */ public Gateserver clearLuaUrl() { - bitField0_ &= ~0x00000100; + bitField0_ &= ~0x00000200; luaUrl.clear(); return this; } /** - * optional string lua_url = 5; + * optional string lua_url = 10; * @return the luaUrl */ public String getLuaUrl() { @@ -473,7 +553,7 @@ public String getLuaUrl() { } /** - * optional string lua_url = 5; + * optional string lua_url = 10; * @return internal {@code Utf8String} representation of luaUrl for reading */ public Utf8String getLuaUrlBytes() { @@ -481,56 +561,56 @@ public Utf8String getLuaUrlBytes() { } /** - * optional string lua_url = 5; + * optional string lua_url = 10; * @return internal {@code Utf8String} representation of luaUrl for modifications */ public Utf8String getMutableLuaUrlBytes() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; return this.luaUrl; } /** - * optional string lua_url = 5; + * optional string lua_url = 10; * @param value the luaUrl to set * @return this */ public Gateserver setLuaUrl(final CharSequence value) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; luaUrl.copyFrom(value); return this; } /** - * optional string lua_url = 5; + * optional string lua_url = 10; * @param value the luaUrl to set * @return this */ public Gateserver setLuaUrl(final Utf8String value) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; luaUrl.copyFrom(value); return this; } /** - * optional string ex_resource_url = 8; + * optional string ex_resource_url = 12; * @return whether the exResourceUrl field is set */ public boolean hasExResourceUrl() { - return (bitField0_ & 0x00000200) != 0; + return (bitField0_ & 0x00000400) != 0; } /** - * optional string ex_resource_url = 8; + * optional string ex_resource_url = 12; * @return this */ public Gateserver clearExResourceUrl() { - bitField0_ &= ~0x00000200; + bitField0_ &= ~0x00000400; exResourceUrl.clear(); return this; } /** - * optional string ex_resource_url = 8; + * optional string ex_resource_url = 12; * @return the exResourceUrl */ public String getExResourceUrl() { @@ -538,7 +618,7 @@ public String getExResourceUrl() { } /** - * optional string ex_resource_url = 8; + * optional string ex_resource_url = 12; * @return internal {@code Utf8String} representation of exResourceUrl for reading */ public Utf8String getExResourceUrlBytes() { @@ -546,56 +626,56 @@ public Utf8String getExResourceUrlBytes() { } /** - * optional string ex_resource_url = 8; + * optional string ex_resource_url = 12; * @return internal {@code Utf8String} representation of exResourceUrl for modifications */ public Utf8String getMutableExResourceUrlBytes() { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; return this.exResourceUrl; } /** - * optional string ex_resource_url = 8; + * optional string ex_resource_url = 12; * @param value the exResourceUrl to set * @return this */ public Gateserver setExResourceUrl(final CharSequence value) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; exResourceUrl.copyFrom(value); return this; } /** - * optional string ex_resource_url = 8; + * optional string ex_resource_url = 12; * @param value the exResourceUrl to set * @return this */ public Gateserver setExResourceUrl(final Utf8String value) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; exResourceUrl.copyFrom(value); return this; } /** - * optional string asset_bundle_url = 11; + * optional string asset_bundle_url = 14; * @return whether the assetBundleUrl field is set */ public boolean hasAssetBundleUrl() { - return (bitField0_ & 0x00000400) != 0; + return (bitField0_ & 0x00000800) != 0; } /** - * optional string asset_bundle_url = 11; + * optional string asset_bundle_url = 14; * @return this */ public Gateserver clearAssetBundleUrl() { - bitField0_ &= ~0x00000400; + bitField0_ &= ~0x00000800; assetBundleUrl.clear(); return this; } /** - * optional string asset_bundle_url = 11; + * optional string asset_bundle_url = 14; * @return the assetBundleUrl */ public String getAssetBundleUrl() { @@ -603,7 +683,7 @@ public String getAssetBundleUrl() { } /** - * optional string asset_bundle_url = 11; + * optional string asset_bundle_url = 14; * @return internal {@code Utf8String} representation of assetBundleUrl for reading */ public Utf8String getAssetBundleUrlBytes() { @@ -611,121 +691,121 @@ public Utf8String getAssetBundleUrlBytes() { } /** - * optional string asset_bundle_url = 11; + * optional string asset_bundle_url = 14; * @return internal {@code Utf8String} representation of assetBundleUrl for modifications */ public Utf8String getMutableAssetBundleUrlBytes() { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; return this.assetBundleUrl; } /** - * optional string asset_bundle_url = 11; + * optional string asset_bundle_url = 14; * @param value the assetBundleUrl to set * @return this */ public Gateserver setAssetBundleUrl(final CharSequence value) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; assetBundleUrl.copyFrom(value); return this; } /** - * optional string asset_bundle_url = 11; + * optional string asset_bundle_url = 14; * @param value the assetBundleUrl to set * @return this */ public Gateserver setAssetBundleUrl(final Utf8String value) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; assetBundleUrl.copyFrom(value); return this; } /** - * optional string ip = 13; - * @return whether the ip field is set + * optional string ifix_version = 20; + * @return whether the ifixVersion field is set */ - public boolean hasIp() { - return (bitField0_ & 0x00000800) != 0; + public boolean hasIfixVersion() { + return (bitField0_ & 0x00001000) != 0; } /** - * optional string ip = 13; + * optional string ifix_version = 20; * @return this */ - public Gateserver clearIp() { - bitField0_ &= ~0x00000800; - ip.clear(); + public Gateserver clearIfixVersion() { + bitField0_ &= ~0x00001000; + ifixVersion.clear(); return this; } /** - * optional string ip = 13; - * @return the ip + * optional string ifix_version = 20; + * @return the ifixVersion */ - public String getIp() { - return ip.getString(); + public String getIfixVersion() { + return ifixVersion.getString(); } /** - * optional string ip = 13; - * @return internal {@code Utf8String} representation of ip for reading + * optional string ifix_version = 20; + * @return internal {@code Utf8String} representation of ifixVersion for reading */ - public Utf8String getIpBytes() { - return this.ip; + public Utf8String getIfixVersionBytes() { + return this.ifixVersion; } /** - * optional string ip = 13; - * @return internal {@code Utf8String} representation of ip for modifications + * optional string ifix_version = 20; + * @return internal {@code Utf8String} representation of ifixVersion for modifications */ - public Utf8String getMutableIpBytes() { - bitField0_ |= 0x00000800; - return this.ip; + public Utf8String getMutableIfixVersionBytes() { + bitField0_ |= 0x00001000; + return this.ifixVersion; } /** - * optional string ip = 13; - * @param value the ip to set + * optional string ifix_version = 20; + * @param value the ifixVersion to set * @return this */ - public Gateserver setIp(final CharSequence value) { - bitField0_ |= 0x00000800; - ip.copyFrom(value); + public Gateserver setIfixVersion(final CharSequence value) { + bitField0_ |= 0x00001000; + ifixVersion.copyFrom(value); return this; } /** - * optional string ip = 13; - * @param value the ip to set + * optional string ifix_version = 20; + * @param value the ifixVersion to set * @return this */ - public Gateserver setIp(final Utf8String value) { - bitField0_ |= 0x00000800; - ip.copyFrom(value); + public Gateserver setIfixVersion(final Utf8String value) { + bitField0_ |= 0x00001000; + ifixVersion.copyFrom(value); return this; } /** - * optional string ifix_url = 1088; + * optional string ifix_url = 98; * @return whether the ifixUrl field is set */ public boolean hasIfixUrl() { - return (bitField0_ & 0x00001000) != 0; + return (bitField0_ & 0x00002000) != 0; } /** - * optional string ifix_url = 1088; + * optional string ifix_url = 98; * @return this */ public Gateserver clearIfixUrl() { - bitField0_ &= ~0x00001000; + bitField0_ &= ~0x00002000; ifixUrl.clear(); return this; } /** - * optional string ifix_url = 1088; + * optional string ifix_url = 98; * @return the ifixUrl */ public String getIfixUrl() { @@ -733,7 +813,7 @@ public String getIfixUrl() { } /** - * optional string ifix_url = 1088; + * optional string ifix_url = 98; * @return internal {@code Utf8String} representation of ifixUrl for reading */ public Utf8String getIfixUrlBytes() { @@ -741,56 +821,56 @@ public Utf8String getIfixUrlBytes() { } /** - * optional string ifix_url = 1088; + * optional string ifix_url = 98; * @return internal {@code Utf8String} representation of ifixUrl for modifications */ public Utf8String getMutableIfixUrlBytes() { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; return this.ifixUrl; } /** - * optional string ifix_url = 1088; + * optional string ifix_url = 98; * @param value the ifixUrl to set * @return this */ public Gateserver setIfixUrl(final CharSequence value) { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; ifixUrl.copyFrom(value); return this; } /** - * optional string ifix_url = 1088; + * optional string ifix_url = 98; * @param value the ifixUrl to set * @return this */ public Gateserver setIfixUrl(final Utf8String value) { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; ifixUrl.copyFrom(value); return this; } /** - * optional string client_secret_key = 1200; + * optional string client_secret_key = 239; * @return whether the clientSecretKey field is set */ public boolean hasClientSecretKey() { - return (bitField0_ & 0x00002000) != 0; + return (bitField0_ & 0x00004000) != 0; } /** - * optional string client_secret_key = 1200; + * optional string client_secret_key = 239; * @return this */ public Gateserver clearClientSecretKey() { - bitField0_ &= ~0x00002000; + bitField0_ &= ~0x00004000; clientSecretKey.clear(); return this; } /** - * optional string client_secret_key = 1200; + * optional string client_secret_key = 239; * @return the clientSecretKey */ public String getClientSecretKey() { @@ -798,7 +878,7 @@ public String getClientSecretKey() { } /** - * optional string client_secret_key = 1200; + * optional string client_secret_key = 239; * @return internal {@code Utf8String} representation of clientSecretKey for reading */ public Utf8String getClientSecretKeyBytes() { @@ -806,68 +886,56 @@ public Utf8String getClientSecretKeyBytes() { } /** - * optional string client_secret_key = 1200; + * optional string client_secret_key = 239; * @return internal {@code Utf8String} representation of clientSecretKey for modifications */ public Utf8String getMutableClientSecretKeyBytes() { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; return this.clientSecretKey; } /** - * optional string client_secret_key = 1200; + * optional string client_secret_key = 239; * @param value the clientSecretKey to set * @return this */ public Gateserver setClientSecretKey(final CharSequence value) { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; clientSecretKey.copyFrom(value); return this; } /** - * optional string client_secret_key = 1200; + * optional string client_secret_key = 239; * @param value the clientSecretKey to set * @return this */ public Gateserver setClientSecretKey(final Utf8String value) { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; clientSecretKey.copyFrom(value); return this; } /** - *
-     *  lua versionf
-     * 
- * - * optional string mdk_res_version = 1213; + * optional string mdk_res_version = 1506; * @return whether the mdkResVersion field is set */ public boolean hasMdkResVersion() { - return (bitField0_ & 0x00004000) != 0; + return (bitField0_ & 0x00008000) != 0; } /** - *
-     *  lua versionf
-     * 
- * - * optional string mdk_res_version = 1213; + * optional string mdk_res_version = 1506; * @return this */ public Gateserver clearMdkResVersion() { - bitField0_ &= ~0x00004000; + bitField0_ &= ~0x00008000; mdkResVersion.clear(); return this; } /** - *
-     *  lua versionf
-     * 
- * - * optional string mdk_res_version = 1213; + * optional string mdk_res_version = 1506; * @return the mdkResVersion */ public String getMdkResVersion() { @@ -875,11 +943,7 @@ public String getMdkResVersion() { } /** - *
-     *  lua versionf
-     * 
- * - * optional string mdk_res_version = 1213; + * optional string mdk_res_version = 1506; * @return internal {@code Utf8String} representation of mdkResVersion for reading */ public Utf8String getMdkResVersionBytes() { @@ -887,203 +951,33 @@ public Utf8String getMdkResVersionBytes() { } /** - *
-     *  lua versionf
-     * 
- * - * optional string mdk_res_version = 1213; + * optional string mdk_res_version = 1506; * @return internal {@code Utf8String} representation of mdkResVersion for modifications */ public Utf8String getMutableMdkResVersionBytes() { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; return this.mdkResVersion; } /** - *
-     *  lua versionf
-     * 
- * - * optional string mdk_res_version = 1213; + * optional string mdk_res_version = 1506; * @param value the mdkResVersion to set * @return this */ public Gateserver setMdkResVersion(final CharSequence value) { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; mdkResVersion.copyFrom(value); return this; } /** - *
-     *  lua versionf
-     * 
- * - * optional string mdk_res_version = 1213; + * optional string mdk_res_version = 1506; * @param value the mdkResVersion to set * @return this */ public Gateserver setMdkResVersion(final Utf8String value) { - bitField0_ |= 0x00004000; - mdkResVersion.copyFrom(value); - return this; - } - - /** - *
-     *  ifix version
-     * 
- * - * optional string ifix_version = 1268; - * @return whether the ifixVersion field is set - */ - public boolean hasIfixVersion() { - return (bitField0_ & 0x00008000) != 0; - } - - /** - *
-     *  ifix version
-     * 
- * - * optional string ifix_version = 1268; - * @return this - */ - public Gateserver clearIfixVersion() { - bitField0_ &= ~0x00008000; - ifixVersion.clear(); - return this; - } - - /** - *
-     *  ifix version
-     * 
- * - * optional string ifix_version = 1268; - * @return the ifixVersion - */ - public String getIfixVersion() { - return ifixVersion.getString(); - } - - /** - *
-     *  ifix version
-     * 
- * - * optional string ifix_version = 1268; - * @return internal {@code Utf8String} representation of ifixVersion for reading - */ - public Utf8String getIfixVersionBytes() { - return this.ifixVersion; - } - - /** - *
-     *  ifix version
-     * 
- * - * optional string ifix_version = 1268; - * @return internal {@code Utf8String} representation of ifixVersion for modifications - */ - public Utf8String getMutableIfixVersionBytes() { bitField0_ |= 0x00008000; - return this.ifixVersion; - } - - /** - *
-     *  ifix version
-     * 
- * - * optional string ifix_version = 1268; - * @param value the ifixVersion to set - * @return this - */ - public Gateserver setIfixVersion(final CharSequence value) { - bitField0_ |= 0x00008000; - ifixVersion.copyFrom(value); - return this; - } - - /** - *
-     *  ifix version
-     * 
- * - * optional string ifix_version = 1268; - * @param value the ifixVersion to set - * @return this - */ - public Gateserver setIfixVersion(final Utf8String value) { - bitField0_ |= 0x00008000; - ifixVersion.copyFrom(value); - return this; - } - - /** - * optional string msg = 1550; - * @return whether the msg field is set - */ - public boolean hasMsg() { - return (bitField0_ & 0x00010000) != 0; - } - - /** - * optional string msg = 1550; - * @return this - */ - public Gateserver clearMsg() { - bitField0_ &= ~0x00010000; - msg.clear(); - return this; - } - - /** - * optional string msg = 1550; - * @return the msg - */ - public String getMsg() { - return msg.getString(); - } - - /** - * optional string msg = 1550; - * @return internal {@code Utf8String} representation of msg for reading - */ - public Utf8String getMsgBytes() { - return this.msg; - } - - /** - * optional string msg = 1550; - * @return internal {@code Utf8String} representation of msg for modifications - */ - public Utf8String getMutableMsgBytes() { - bitField0_ |= 0x00010000; - return this.msg; - } - - /** - * optional string msg = 1550; - * @param value the msg to set - * @return this - */ - public Gateserver setMsg(final CharSequence value) { - bitField0_ |= 0x00010000; - msg.copyFrom(value); - return this; - } - - /** - * optional string msg = 1550; - * @param value the msg to set - * @return this - */ - public Gateserver setMsg(final Utf8String value) { - bitField0_ |= 0x00010000; - msg.copyFrom(value); + mdkResVersion.copyFrom(value); return this; } @@ -1095,20 +989,19 @@ public Gateserver copyFrom(final Gateserver other) { port = other.port; unk1 = other.unk1; unk2 = other.unk2; - unk5 = other.unk5; unk3 = other.unk3; - unk6 = other.unk6; unk4 = other.unk4; + unk5 = other.unk5; + msg.copyFrom(other.msg); + ip.copyFrom(other.ip); regionName.copyFrom(other.regionName); luaUrl.copyFrom(other.luaUrl); exResourceUrl.copyFrom(other.exResourceUrl); assetBundleUrl.copyFrom(other.assetBundleUrl); - ip.copyFrom(other.ip); + ifixVersion.copyFrom(other.ifixVersion); ifixUrl.copyFrom(other.ifixUrl); clientSecretKey.copyFrom(other.clientSecretKey); mdkResVersion.copyFrom(other.mdkResVersion); - ifixVersion.copyFrom(other.ifixVersion); - msg.copyFrom(other.msg); } return this; } @@ -1128,17 +1021,20 @@ public Gateserver mergeFrom(final Gateserver other) { if (other.hasUnk2()) { setUnk2(other.unk2); } - if (other.hasUnk5()) { - setUnk5(other.unk5); - } if (other.hasUnk3()) { setUnk3(other.unk3); } - if (other.hasUnk6()) { - setUnk6(other.unk6); + if (other.hasUnk4()) { + setUnk4(other.unk4); + } + if (other.hasUnk5()) { + setUnk5(other.unk5); + } + if (other.hasMsg()) { + getMutableMsgBytes().copyFrom(other.msg); } - if (other.hasUnk4()) { - setUnk4(other.unk4); + if (other.hasIp()) { + getMutableIpBytes().copyFrom(other.ip); } if (other.hasRegionName()) { getMutableRegionNameBytes().copyFrom(other.regionName); @@ -1152,8 +1048,8 @@ public Gateserver mergeFrom(final Gateserver other) { if (other.hasAssetBundleUrl()) { getMutableAssetBundleUrlBytes().copyFrom(other.assetBundleUrl); } - if (other.hasIp()) { - getMutableIpBytes().copyFrom(other.ip); + if (other.hasIfixVersion()) { + getMutableIfixVersionBytes().copyFrom(other.ifixVersion); } if (other.hasIfixUrl()) { getMutableIfixUrlBytes().copyFrom(other.ifixUrl); @@ -1164,12 +1060,6 @@ public Gateserver mergeFrom(final Gateserver other) { if (other.hasMdkResVersion()) { getMutableMdkResVersionBytes().copyFrom(other.mdkResVersion); } - if (other.hasIfixVersion()) { - getMutableIfixVersionBytes().copyFrom(other.ifixVersion); - } - if (other.hasMsg()) { - getMutableMsgBytes().copyFrom(other.msg); - } return this; } @@ -1183,20 +1073,19 @@ public Gateserver clear() { port = 0; unk1 = false; unk2 = false; - unk5 = false; unk3 = false; - unk6 = false; unk4 = false; + unk5 = false; + msg.clear(); + ip.clear(); regionName.clear(); luaUrl.clear(); exResourceUrl.clear(); assetBundleUrl.clear(); - ip.clear(); + ifixVersion.clear(); ifixUrl.clear(); clientSecretKey.clear(); mdkResVersion.clear(); - ifixVersion.clear(); - msg.clear(); return this; } @@ -1207,16 +1096,16 @@ public Gateserver clearQuick() { } cachedSize = -1; bitField0_ = 0; + msg.clear(); + ip.clear(); regionName.clear(); luaUrl.clear(); exResourceUrl.clear(); assetBundleUrl.clear(); - ip.clear(); + ifixVersion.clear(); ifixUrl.clear(); clientSecretKey.clear(); mdkResVersion.clear(); - ifixVersion.clear(); - msg.clear(); return this; } @@ -1233,91 +1122,86 @@ public boolean equals(Object o) { && (!hasPort() || port == other.port) && (!hasUnk1() || unk1 == other.unk1) && (!hasUnk2() || unk2 == other.unk2) - && (!hasUnk5() || unk5 == other.unk5) && (!hasUnk3() || unk3 == other.unk3) - && (!hasUnk6() || unk6 == other.unk6) && (!hasUnk4() || unk4 == other.unk4) + && (!hasUnk5() || unk5 == other.unk5) + && (!hasMsg() || msg.equals(other.msg)) + && (!hasIp() || ip.equals(other.ip)) && (!hasRegionName() || regionName.equals(other.regionName)) && (!hasLuaUrl() || luaUrl.equals(other.luaUrl)) && (!hasExResourceUrl() || exResourceUrl.equals(other.exResourceUrl)) && (!hasAssetBundleUrl() || assetBundleUrl.equals(other.assetBundleUrl)) - && (!hasIp() || ip.equals(other.ip)) + && (!hasIfixVersion() || ifixVersion.equals(other.ifixVersion)) && (!hasIfixUrl() || ifixUrl.equals(other.ifixUrl)) && (!hasClientSecretKey() || clientSecretKey.equals(other.clientSecretKey)) - && (!hasMdkResVersion() || mdkResVersion.equals(other.mdkResVersion)) - && (!hasIfixVersion() || ifixVersion.equals(other.ifixVersion)) - && (!hasMsg() || msg.equals(other.msg)); + && (!hasMdkResVersion() || mdkResVersion.equals(other.mdkResVersion)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 120); output.writeUInt32NoTag(port); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 72); + output.writeRawByte((byte) 40); output.writeBoolNoTag(unk1); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 72); output.writeBoolNoTag(unk2); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawLittleEndian16((short) 10928); - output.writeBoolNoTag(unk5); + output.writeRawLittleEndian16((short) 2768); + output.writeBoolNoTag(unk3); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawLittleEndian16((short) 23464); - output.writeBoolNoTag(unk3); + output.writeRawLittleEndian16((short) 22440); + output.writeBoolNoTag(unk4); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRawLittleEndian16((short) 27640); - output.writeBoolNoTag(unk6); + output.writeRawLittleEndian16((short) 26504); + output.writeBoolNoTag(unk5); } if ((bitField0_ & 0x00000040) != 0) { - output.writeRawLittleEndian16((short) 28320); - output.writeBoolNoTag(unk4); + output.writeRawByte((byte) 10); + output.writeStringNoTag(msg); } if ((bitField0_ & 0x00000080) != 0) { - output.writeRawByte((byte) 18); - output.writeStringNoTag(regionName); + output.writeRawByte((byte) 26); + output.writeStringNoTag(ip); } if ((bitField0_ & 0x00000100) != 0) { - output.writeRawByte((byte) 42); - output.writeStringNoTag(luaUrl); + output.writeRawByte((byte) 34); + output.writeStringNoTag(regionName); } if ((bitField0_ & 0x00000200) != 0) { - output.writeRawByte((byte) 66); - output.writeStringNoTag(exResourceUrl); + output.writeRawByte((byte) 82); + output.writeStringNoTag(luaUrl); } if ((bitField0_ & 0x00000400) != 0) { - output.writeRawByte((byte) 90); - output.writeStringNoTag(assetBundleUrl); + output.writeRawByte((byte) 98); + output.writeStringNoTag(exResourceUrl); } if ((bitField0_ & 0x00000800) != 0) { - output.writeRawByte((byte) 106); - output.writeStringNoTag(ip); + output.writeRawByte((byte) 114); + output.writeStringNoTag(assetBundleUrl); } if ((bitField0_ & 0x00001000) != 0) { - output.writeRawLittleEndian16((short) 17538); - output.writeStringNoTag(ifixUrl); + output.writeRawLittleEndian16((short) 418); + output.writeStringNoTag(ifixVersion); } if ((bitField0_ & 0x00002000) != 0) { - output.writeRawLittleEndian16((short) 19330); - output.writeStringNoTag(clientSecretKey); + output.writeRawLittleEndian16((short) 1682); + output.writeStringNoTag(ifixUrl); } if ((bitField0_ & 0x00004000) != 0) { - output.writeRawLittleEndian16((short) 19434); - output.writeStringNoTag(mdkResVersion); + output.writeRawLittleEndian16((short) 3834); + output.writeStringNoTag(clientSecretKey); } if ((bitField0_ & 0x00008000) != 0) { - output.writeRawLittleEndian16((short) 20386); - output.writeStringNoTag(ifixVersion); - } - if ((bitField0_ & 0x00010000) != 0) { - output.writeRawLittleEndian16((short) 24818); - output.writeStringNoTag(msg); + output.writeRawLittleEndian16((short) 24210); + output.writeStringNoTag(mdkResVersion); } } @@ -1343,37 +1227,34 @@ protected int computeSerializedSize() { size += 3; } if ((bitField0_ & 0x00000040) != 0) { - size += 3; + size += 1 + ProtoSink.computeStringSizeNoTag(msg); } if ((bitField0_ & 0x00000080) != 0) { - size += 1 + ProtoSink.computeStringSizeNoTag(regionName); + size += 1 + ProtoSink.computeStringSizeNoTag(ip); } if ((bitField0_ & 0x00000100) != 0) { - size += 1 + ProtoSink.computeStringSizeNoTag(luaUrl); + size += 1 + ProtoSink.computeStringSizeNoTag(regionName); } if ((bitField0_ & 0x00000200) != 0) { - size += 1 + ProtoSink.computeStringSizeNoTag(exResourceUrl); + size += 1 + ProtoSink.computeStringSizeNoTag(luaUrl); } if ((bitField0_ & 0x00000400) != 0) { - size += 1 + ProtoSink.computeStringSizeNoTag(assetBundleUrl); + size += 1 + ProtoSink.computeStringSizeNoTag(exResourceUrl); } if ((bitField0_ & 0x00000800) != 0) { - size += 1 + ProtoSink.computeStringSizeNoTag(ip); + size += 1 + ProtoSink.computeStringSizeNoTag(assetBundleUrl); } if ((bitField0_ & 0x00001000) != 0) { - size += 2 + ProtoSink.computeStringSizeNoTag(ifixUrl); + size += 2 + ProtoSink.computeStringSizeNoTag(ifixVersion); } if ((bitField0_ & 0x00002000) != 0) { - size += 2 + ProtoSink.computeStringSizeNoTag(clientSecretKey); + size += 2 + ProtoSink.computeStringSizeNoTag(ifixUrl); } if ((bitField0_ & 0x00004000) != 0) { - size += 2 + ProtoSink.computeStringSizeNoTag(mdkResVersion); + size += 2 + ProtoSink.computeStringSizeNoTag(clientSecretKey); } if ((bitField0_ & 0x00008000) != 0) { - size += 2 + ProtoSink.computeStringSizeNoTag(ifixVersion); - } - if ((bitField0_ & 0x00010000) != 0) { - size += 2 + ProtoSink.computeStringSizeNoTag(msg); + size += 2 + ProtoSink.computeStringSizeNoTag(mdkResVersion); } return size; } @@ -1385,155 +1266,146 @@ public Gateserver mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 56: { + case 120: { // port port = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 72) { + if (tag != 40) { break; } } - case 72: { + case 40: { // unk1 unk1 = input.readBool(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 96) { + if (tag != 72) { break; } } - case 96: { + case 72: { // unk2 unk2 = input.readBool(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 5424) { + if (tag != 1360) { break; } } - case 5424: { - // unk5 - unk5 = input.readBool(); + case 1360: { + // unk3 + unk3 = input.readBool(); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 11688) { + if (tag != 11176) { break; } } - case 11688: { - // unk3 - unk3 = input.readBool(); + case 11176: { + // unk4 + unk4 = input.readBool(); bitField0_ |= 0x00000010; tag = input.readTag(); - if (tag != 13816) { + if (tag != 13192) { break; } } - case 13816: { - // unk6 - unk6 = input.readBool(); + case 13192: { + // unk5 + unk5 = input.readBool(); bitField0_ |= 0x00000020; tag = input.readTag(); - if (tag != 14112) { + if (tag != 10) { break; } } - case 14112: { - // unk4 - unk4 = input.readBool(); + case 10: { + // msg + input.readString(msg); bitField0_ |= 0x00000040; tag = input.readTag(); - if (tag != 18) { + if (tag != 26) { + break; + } + } + case 26: { + // ip + input.readString(ip); + bitField0_ |= 0x00000080; + tag = input.readTag(); + if (tag != 34) { break; } } - case 18: { + case 34: { // regionName input.readString(regionName); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; tag = input.readTag(); - if (tag != 42) { + if (tag != 82) { break; } } - case 42: { + case 82: { // luaUrl input.readString(luaUrl); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; tag = input.readTag(); - if (tag != 66) { + if (tag != 98) { break; } } - case 66: { + case 98: { // exResourceUrl input.readString(exResourceUrl); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; tag = input.readTag(); - if (tag != 90) { + if (tag != 114) { break; } } - case 90: { + case 114: { // assetBundleUrl input.readString(assetBundleUrl); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; tag = input.readTag(); - if (tag != 106) { + if (tag != 162) { break; } } - case 106: { - // ip - input.readString(ip); - bitField0_ |= 0x00000800; + case 162: { + // ifixVersion + input.readString(ifixVersion); + bitField0_ |= 0x00001000; tag = input.readTag(); - if (tag != 8706) { + if (tag != 786) { break; } } - case 8706: { + case 786: { // ifixUrl input.readString(ifixUrl); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; tag = input.readTag(); - if (tag != 9602) { + if (tag != 1914) { break; } } - case 9602: { + case 1914: { // clientSecretKey input.readString(clientSecretKey); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; tag = input.readTag(); - if (tag != 9706) { + if (tag != 12050) { break; } } - case 9706: { + case 12050: { // mdkResVersion input.readString(mdkResVersion); - bitField0_ |= 0x00004000; - tag = input.readTag(); - if (tag != 10146) { - break; - } - } - case 10146: { - // ifixVersion - input.readString(ifixVersion); bitField0_ |= 0x00008000; tag = input.readTag(); - if (tag != 12402) { - break; - } - } - case 12402: { - // msg - input.readString(msg); - bitField0_ |= 0x00010000; - tag = input.readTag(); if (tag != 0) { break; } @@ -1565,46 +1437,43 @@ public void writeTo(final JsonSink output) throws IOException { output.writeBool(FieldNames.unk2, unk2); } if ((bitField0_ & 0x00000008) != 0) { - output.writeBool(FieldNames.unk5, unk5); + output.writeBool(FieldNames.unk3, unk3); } if ((bitField0_ & 0x00000010) != 0) { - output.writeBool(FieldNames.unk3, unk3); + output.writeBool(FieldNames.unk4, unk4); } if ((bitField0_ & 0x00000020) != 0) { - output.writeBool(FieldNames.unk6, unk6); + output.writeBool(FieldNames.unk5, unk5); } if ((bitField0_ & 0x00000040) != 0) { - output.writeBool(FieldNames.unk4, unk4); + output.writeString(FieldNames.msg, msg); } if ((bitField0_ & 0x00000080) != 0) { - output.writeString(FieldNames.regionName, regionName); + output.writeString(FieldNames.ip, ip); } if ((bitField0_ & 0x00000100) != 0) { - output.writeString(FieldNames.luaUrl, luaUrl); + output.writeString(FieldNames.regionName, regionName); } if ((bitField0_ & 0x00000200) != 0) { - output.writeString(FieldNames.exResourceUrl, exResourceUrl); + output.writeString(FieldNames.luaUrl, luaUrl); } if ((bitField0_ & 0x00000400) != 0) { - output.writeString(FieldNames.assetBundleUrl, assetBundleUrl); + output.writeString(FieldNames.exResourceUrl, exResourceUrl); } if ((bitField0_ & 0x00000800) != 0) { - output.writeString(FieldNames.ip, ip); + output.writeString(FieldNames.assetBundleUrl, assetBundleUrl); } if ((bitField0_ & 0x00001000) != 0) { - output.writeString(FieldNames.ifixUrl, ifixUrl); + output.writeString(FieldNames.ifixVersion, ifixVersion); } if ((bitField0_ & 0x00002000) != 0) { - output.writeString(FieldNames.clientSecretKey, clientSecretKey); + output.writeString(FieldNames.ifixUrl, ifixUrl); } if ((bitField0_ & 0x00004000) != 0) { - output.writeString(FieldNames.mdkResVersion, mdkResVersion); + output.writeString(FieldNames.clientSecretKey, clientSecretKey); } if ((bitField0_ & 0x00008000) != 0) { - output.writeString(FieldNames.ifixVersion, ifixVersion); - } - if ((bitField0_ & 0x00010000) != 0) { - output.writeString(FieldNames.msg, msg); + output.writeString(FieldNames.mdkResVersion, mdkResVersion); } output.endObject(); } @@ -1649,10 +1518,10 @@ public Gateserver mergeFrom(final JsonSource input) throws IOException { } break; } - case 3594627: { - if (input.isAtField(FieldNames.unk5)) { + case 3594625: { + if (input.isAtField(FieldNames.unk3)) { if (!input.trySkipNullValue()) { - unk5 = input.readBool(); + unk3 = input.readBool(); bitField0_ |= 0x00000008; } } else { @@ -1660,10 +1529,10 @@ public Gateserver mergeFrom(final JsonSource input) throws IOException { } break; } - case 3594625: { - if (input.isAtField(FieldNames.unk3)) { + case 3594626: { + if (input.isAtField(FieldNames.unk4)) { if (!input.trySkipNullValue()) { - unk3 = input.readBool(); + unk4 = input.readBool(); bitField0_ |= 0x00000010; } } else { @@ -1671,10 +1540,10 @@ public Gateserver mergeFrom(final JsonSource input) throws IOException { } break; } - case 3594628: { - if (input.isAtField(FieldNames.unk6)) { + case 3594627: { + if (input.isAtField(FieldNames.unk5)) { if (!input.trySkipNullValue()) { - unk6 = input.readBool(); + unk5 = input.readBool(); bitField0_ |= 0x00000020; } } else { @@ -1682,10 +1551,10 @@ public Gateserver mergeFrom(final JsonSource input) throws IOException { } break; } - case 3594626: { - if (input.isAtField(FieldNames.unk4)) { + case 108417: { + if (input.isAtField(FieldNames.msg)) { if (!input.trySkipNullValue()) { - unk4 = input.readBool(); + input.readString(msg); bitField0_ |= 0x00000040; } } else { @@ -1693,12 +1562,23 @@ public Gateserver mergeFrom(final JsonSource input) throws IOException { } break; } + case 3367: { + if (input.isAtField(FieldNames.ip)) { + if (!input.trySkipNullValue()) { + input.readString(ip); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } case -1990689889: case -1565768458: { if (input.isAtField(FieldNames.regionName)) { if (!input.trySkipNullValue()) { input.readString(regionName); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; } } else { input.skipUnknownField(); @@ -1710,7 +1590,7 @@ public Gateserver mergeFrom(final JsonSource input) throws IOException { if (input.isAtField(FieldNames.luaUrl)) { if (!input.trySkipNullValue()) { input.readString(luaUrl); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; } } else { input.skipUnknownField(); @@ -1722,7 +1602,7 @@ public Gateserver mergeFrom(final JsonSource input) throws IOException { if (input.isAtField(FieldNames.exResourceUrl)) { if (!input.trySkipNullValue()) { input.readString(exResourceUrl); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; } } else { input.skipUnknownField(); @@ -1734,18 +1614,19 @@ public Gateserver mergeFrom(final JsonSource input) throws IOException { if (input.isAtField(FieldNames.assetBundleUrl)) { if (!input.trySkipNullValue()) { input.readString(assetBundleUrl); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; } } else { input.skipUnknownField(); } break; } - case 3367: { - if (input.isAtField(FieldNames.ip)) { + case 1625073708: + case -827048283: { + if (input.isAtField(FieldNames.ifixVersion)) { if (!input.trySkipNullValue()) { - input.readString(ip); - bitField0_ |= 0x00000800; + input.readString(ifixVersion); + bitField0_ |= 0x00001000; } } else { input.skipUnknownField(); @@ -1757,7 +1638,7 @@ public Gateserver mergeFrom(final JsonSource input) throws IOException { if (input.isAtField(FieldNames.ifixUrl)) { if (!input.trySkipNullValue()) { input.readString(ifixUrl); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; } } else { input.skipUnknownField(); @@ -1769,7 +1650,7 @@ public Gateserver mergeFrom(final JsonSource input) throws IOException { if (input.isAtField(FieldNames.clientSecretKey)) { if (!input.trySkipNullValue()) { input.readString(clientSecretKey); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; } } else { input.skipUnknownField(); @@ -1781,18 +1662,6 @@ public Gateserver mergeFrom(final JsonSource input) throws IOException { if (input.isAtField(FieldNames.mdkResVersion)) { if (!input.trySkipNullValue()) { input.readString(mdkResVersion); - bitField0_ |= 0x00004000; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1625073708: - case -827048283: { - if (input.isAtField(FieldNames.ifixVersion)) { - if (!input.trySkipNullValue()) { - input.readString(ifixVersion); bitField0_ |= 0x00008000; } } else { @@ -1800,17 +1669,6 @@ public Gateserver mergeFrom(final JsonSource input) throws IOException { } break; } - case 108417: { - if (input.isAtField(FieldNames.msg)) { - if (!input.trySkipNullValue()) { - input.readString(msg); - bitField0_ |= 0x00010000; - } - } else { - input.skipUnknownField(); - } - break; - } default: { input.skipUnknownField(); break; @@ -1869,14 +1727,16 @@ static class FieldNames { static final FieldName unk2 = FieldName.forField("unk2"); - static final FieldName unk5 = FieldName.forField("unk5"); - static final FieldName unk3 = FieldName.forField("unk3"); - static final FieldName unk6 = FieldName.forField("unk6"); - static final FieldName unk4 = FieldName.forField("unk4"); + static final FieldName unk5 = FieldName.forField("unk5"); + + static final FieldName msg = FieldName.forField("msg"); + + static final FieldName ip = FieldName.forField("ip"); + static final FieldName regionName = FieldName.forField("regionName", "region_name"); static final FieldName luaUrl = FieldName.forField("luaUrl", "lua_url"); @@ -1885,17 +1745,13 @@ static class FieldNames { static final FieldName assetBundleUrl = FieldName.forField("assetBundleUrl", "asset_bundle_url"); - static final FieldName ip = FieldName.forField("ip"); + static final FieldName ifixVersion = FieldName.forField("ifixVersion", "ifix_version"); static final FieldName ifixUrl = FieldName.forField("ifixUrl", "ifix_url"); static final FieldName clientSecretKey = FieldName.forField("clientSecretKey", "client_secret_key"); static final FieldName mdkResVersion = FieldName.forField("mdkResVersion", "mdk_res_version"); - - static final FieldName ifixVersion = FieldName.forField("ifixVersion", "ifix_version"); - - static final FieldName msg = FieldName.forField("msg"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/GetAllLineupDataScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetAllLineupDataScRspOuterClass.java index d1cf999f8..8f7fb91ff 100644 --- a/src/generated/main/emu/lunarcore/proto/GetAllLineupDataScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetAllLineupDataScRspOuterClass.java @@ -20,17 +20,17 @@ public static final class GetAllLineupDataScRsp extends ProtoMessageoptional uint32 cur_index = 4; + * optional uint32 cur_index = 5; */ private int curIndex; /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 6; */ private int retcode; /** - * repeated .LineupInfo lineup_list = 9; + * repeated .LineupInfo lineup_list = 10; */ private final RepeatedMessage lineupList = RepeatedMessage.newEmptyInstance(LineupInfoOuterClass.LineupInfo.getFactory()); @@ -45,7 +45,7 @@ public static GetAllLineupDataScRsp newInstance() { } /** - * optional uint32 cur_index = 4; + * optional uint32 cur_index = 5; * @return whether the curIndex field is set */ public boolean hasCurIndex() { @@ -53,7 +53,7 @@ public boolean hasCurIndex() { } /** - * optional uint32 cur_index = 4; + * optional uint32 cur_index = 5; * @return this */ public GetAllLineupDataScRsp clearCurIndex() { @@ -63,7 +63,7 @@ public GetAllLineupDataScRsp clearCurIndex() { } /** - * optional uint32 cur_index = 4; + * optional uint32 cur_index = 5; * @return the curIndex */ public int getCurIndex() { @@ -71,7 +71,7 @@ public int getCurIndex() { } /** - * optional uint32 cur_index = 4; + * optional uint32 cur_index = 5; * @param value the curIndex to set * @return this */ @@ -82,7 +82,7 @@ public GetAllLineupDataScRsp setCurIndex(final int value) { } /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 6; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -90,7 +90,7 @@ public boolean hasRetcode() { } /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 6; * @return this */ public GetAllLineupDataScRsp clearRetcode() { @@ -100,7 +100,7 @@ public GetAllLineupDataScRsp clearRetcode() { } /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 6; * @return the retcode */ public int getRetcode() { @@ -108,7 +108,7 @@ public int getRetcode() { } /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 6; * @param value the retcode to set * @return this */ @@ -119,7 +119,7 @@ public GetAllLineupDataScRsp setRetcode(final int value) { } /** - * repeated .LineupInfo lineup_list = 9; + * repeated .LineupInfo lineup_list = 10; * @return whether the lineupList field is set */ public boolean hasLineupList() { @@ -127,7 +127,7 @@ public boolean hasLineupList() { } /** - * repeated .LineupInfo lineup_list = 9; + * repeated .LineupInfo lineup_list = 10; * @return this */ public GetAllLineupDataScRsp clearLineupList() { @@ -137,7 +137,7 @@ public GetAllLineupDataScRsp clearLineupList() { } /** - * repeated .LineupInfo lineup_list = 9; + * repeated .LineupInfo lineup_list = 10; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -151,7 +151,7 @@ public RepeatedMessage getLineupList() { } /** - * repeated .LineupInfo lineup_list = 9; + * repeated .LineupInfo lineup_list = 10; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -165,7 +165,7 @@ public RepeatedMessage getMutableLineupList() { } /** - * repeated .LineupInfo lineup_list = 9; + * repeated .LineupInfo lineup_list = 10; * @param value the lineupList to add * @return this */ @@ -176,7 +176,7 @@ public GetAllLineupDataScRsp addLineupList(final LineupInfoOuterClass.LineupInfo } /** - * repeated .LineupInfo lineup_list = 9; + * repeated .LineupInfo lineup_list = 10; * @param values the lineupList to add * @return this */ @@ -258,16 +258,16 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 32); + output.writeRawByte((byte) 40); output.writeUInt32NoTag(curIndex); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 48); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000004) != 0) { for (int i = 0; i < lineupList.length(); i++) { - output.writeRawByte((byte) 74); + output.writeRawByte((byte) 82); output.writeMessageNoTag(lineupList.get(i)); } } @@ -295,25 +295,25 @@ public GetAllLineupDataScRsp mergeFrom(final ProtoSource input) throws IOExcepti int tag = input.readTag(); while (true) { switch (tag) { - case 32: { + case 40: { // curIndex curIndex = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 96) { + if (tag != 48) { break; } } - case 96: { + case 48: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 74) { + if (tag != 82) { break; } } - case 74: { + case 82: { // lineupList tag = input.readRepeatedMessage(lineupList, tag); bitField0_ |= 0x00000004; diff --git a/src/generated/main/emu/lunarcore/proto/GetArchiveDataScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetArchiveDataScRspOuterClass.java index f89e0247a..d32f5e638 100644 --- a/src/generated/main/emu/lunarcore/proto/GetArchiveDataScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetArchiveDataScRspOuterClass.java @@ -19,12 +19,12 @@ public static final class GetArchiveDataScRsp extends ProtoMessageoptional uint32 retcode = 13; + * optional uint32 retcode = 5; */ private int retcode; /** - * optional .ArchiveData archive_data = 6; + * optional .ArchiveData archive_data = 1; */ private final ArchiveDataOuterClass.ArchiveData archiveData = ArchiveDataOuterClass.ArchiveData.newInstance(); @@ -39,7 +39,7 @@ public static GetArchiveDataScRsp newInstance() { } /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 5; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -47,7 +47,7 @@ public boolean hasRetcode() { } /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 5; * @return this */ public GetArchiveDataScRsp clearRetcode() { @@ -57,7 +57,7 @@ public GetArchiveDataScRsp clearRetcode() { } /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 5; * @return the retcode */ public int getRetcode() { @@ -65,7 +65,7 @@ public int getRetcode() { } /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 5; * @param value the retcode to set * @return this */ @@ -76,7 +76,7 @@ public GetArchiveDataScRsp setRetcode(final int value) { } /** - * optional .ArchiveData archive_data = 6; + * optional .ArchiveData archive_data = 1; * @return whether the archiveData field is set */ public boolean hasArchiveData() { @@ -84,7 +84,7 @@ public boolean hasArchiveData() { } /** - * optional .ArchiveData archive_data = 6; + * optional .ArchiveData archive_data = 1; * @return this */ public GetArchiveDataScRsp clearArchiveData() { @@ -94,7 +94,7 @@ public GetArchiveDataScRsp clearArchiveData() { } /** - * optional .ArchiveData archive_data = 6; + * optional .ArchiveData archive_data = 1; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -108,7 +108,7 @@ public ArchiveDataOuterClass.ArchiveData getArchiveData() { } /** - * optional .ArchiveData archive_data = 6; + * optional .ArchiveData archive_data = 1; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -122,7 +122,7 @@ public ArchiveDataOuterClass.ArchiveData getMutableArchiveData() { } /** - * optional .ArchiveData archive_data = 6; + * optional .ArchiveData archive_data = 1; * @param value the archiveData to set * @return this */ @@ -198,11 +198,11 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 40); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 50); + output.writeRawByte((byte) 10); output.writeMessageNoTag(archiveData); } } @@ -226,16 +226,16 @@ public GetArchiveDataScRsp mergeFrom(final ProtoSource input) throws IOException int tag = input.readTag(); while (true) { switch (tag) { - case 104: { + case 40: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 50) { + if (tag != 10) { break; } } - case 50: { + case 10: { // archiveData input.readMessage(archiveData); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/GetAvatarDataCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetAvatarDataCsReqOuterClass.java index 31c12e88e..af1a8453c 100644 --- a/src/generated/main/emu/lunarcore/proto/GetAvatarDataCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetAvatarDataCsReqOuterClass.java @@ -20,12 +20,12 @@ public static final class GetAvatarDataCsReq extends ProtoMessageoptional bool is_get_all = 15; + * optional bool is_get_all = 5; */ private boolean isGetAll; /** - * repeated uint32 base_avatar_id_list = 1; + * repeated uint32 base_avatar_id_list = 15; */ private final RepeatedInt baseAvatarIdList = RepeatedInt.newEmptyInstance(); @@ -40,7 +40,7 @@ public static GetAvatarDataCsReq newInstance() { } /** - * optional bool is_get_all = 15; + * optional bool is_get_all = 5; * @return whether the isGetAll field is set */ public boolean hasIsGetAll() { @@ -48,7 +48,7 @@ public boolean hasIsGetAll() { } /** - * optional bool is_get_all = 15; + * optional bool is_get_all = 5; * @return this */ public GetAvatarDataCsReq clearIsGetAll() { @@ -58,7 +58,7 @@ public GetAvatarDataCsReq clearIsGetAll() { } /** - * optional bool is_get_all = 15; + * optional bool is_get_all = 5; * @return the isGetAll */ public boolean getIsGetAll() { @@ -66,7 +66,7 @@ public boolean getIsGetAll() { } /** - * optional bool is_get_all = 15; + * optional bool is_get_all = 5; * @param value the isGetAll to set * @return this */ @@ -77,7 +77,7 @@ public GetAvatarDataCsReq setIsGetAll(final boolean value) { } /** - * repeated uint32 base_avatar_id_list = 1; + * repeated uint32 base_avatar_id_list = 15; * @return whether the baseAvatarIdList field is set */ public boolean hasBaseAvatarIdList() { @@ -85,7 +85,7 @@ public boolean hasBaseAvatarIdList() { } /** - * repeated uint32 base_avatar_id_list = 1; + * repeated uint32 base_avatar_id_list = 15; * @return this */ public GetAvatarDataCsReq clearBaseAvatarIdList() { @@ -95,7 +95,7 @@ public GetAvatarDataCsReq clearBaseAvatarIdList() { } /** - * repeated uint32 base_avatar_id_list = 1; + * repeated uint32 base_avatar_id_list = 15; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -109,7 +109,7 @@ public RepeatedInt getBaseAvatarIdList() { } /** - * repeated uint32 base_avatar_id_list = 1; + * repeated uint32 base_avatar_id_list = 15; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -123,7 +123,7 @@ public RepeatedInt getMutableBaseAvatarIdList() { } /** - * repeated uint32 base_avatar_id_list = 1; + * repeated uint32 base_avatar_id_list = 15; * @param value the baseAvatarIdList to add * @return this */ @@ -134,7 +134,7 @@ public GetAvatarDataCsReq addBaseAvatarIdList(final int value) { } /** - * repeated uint32 base_avatar_id_list = 1; + * repeated uint32 base_avatar_id_list = 15; * @param values the baseAvatarIdList to add * @return this */ @@ -210,12 +210,12 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 40); output.writeBoolNoTag(isGetAll); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < baseAvatarIdList.length(); i++) { - output.writeRawByte((byte) 8); + output.writeRawByte((byte) 120); output.writeUInt32NoTag(baseAvatarIdList.array()[i]); } } @@ -240,16 +240,16 @@ public GetAvatarDataCsReq mergeFrom(final ProtoSource input) throws IOException int tag = input.readTag(); while (true) { switch (tag) { - case 120: { + case 40: { // isGetAll isGetAll = input.readBool(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 10) { + if (tag != 122) { break; } } - case 10: { + case 122: { // baseAvatarIdList [packed=true] input.readPackedUInt32(baseAvatarIdList, tag); bitField0_ |= 0x00000002; @@ -268,7 +268,7 @@ public GetAvatarDataCsReq mergeFrom(final ProtoSource input) throws IOException tag = input.readTag(); break; } - case 8: { + case 120: { // baseAvatarIdList [packed=false] tag = input.readRepeatedUInt32(baseAvatarIdList, tag); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/GetAvatarDataScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetAvatarDataScRspOuterClass.java index 78154aec0..515028936 100644 --- a/src/generated/main/emu/lunarcore/proto/GetAvatarDataScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetAvatarDataScRspOuterClass.java @@ -20,17 +20,17 @@ public static final class GetAvatarDataScRsp extends ProtoMessageoptional uint32 retcode = 5; + * optional uint32 retcode = 10; */ private int retcode; /** - * optional bool is_get_all = 11; + * optional bool is_get_all = 6; */ private boolean isGetAll; /** - * repeated .Avatar avatar_list = 3; + * repeated .Avatar avatar_list = 14; */ private final RepeatedMessage avatarList = RepeatedMessage.newEmptyInstance(AvatarOuterClass.Avatar.getFactory()); @@ -45,7 +45,7 @@ public static GetAvatarDataScRsp newInstance() { } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 10; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -53,7 +53,7 @@ public boolean hasRetcode() { } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 10; * @return this */ public GetAvatarDataScRsp clearRetcode() { @@ -63,7 +63,7 @@ public GetAvatarDataScRsp clearRetcode() { } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 10; * @return the retcode */ public int getRetcode() { @@ -71,7 +71,7 @@ public int getRetcode() { } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 10; * @param value the retcode to set * @return this */ @@ -82,7 +82,7 @@ public GetAvatarDataScRsp setRetcode(final int value) { } /** - * optional bool is_get_all = 11; + * optional bool is_get_all = 6; * @return whether the isGetAll field is set */ public boolean hasIsGetAll() { @@ -90,7 +90,7 @@ public boolean hasIsGetAll() { } /** - * optional bool is_get_all = 11; + * optional bool is_get_all = 6; * @return this */ public GetAvatarDataScRsp clearIsGetAll() { @@ -100,7 +100,7 @@ public GetAvatarDataScRsp clearIsGetAll() { } /** - * optional bool is_get_all = 11; + * optional bool is_get_all = 6; * @return the isGetAll */ public boolean getIsGetAll() { @@ -108,7 +108,7 @@ public boolean getIsGetAll() { } /** - * optional bool is_get_all = 11; + * optional bool is_get_all = 6; * @param value the isGetAll to set * @return this */ @@ -119,7 +119,7 @@ public GetAvatarDataScRsp setIsGetAll(final boolean value) { } /** - * repeated .Avatar avatar_list = 3; + * repeated .Avatar avatar_list = 14; * @return whether the avatarList field is set */ public boolean hasAvatarList() { @@ -127,7 +127,7 @@ public boolean hasAvatarList() { } /** - * repeated .Avatar avatar_list = 3; + * repeated .Avatar avatar_list = 14; * @return this */ public GetAvatarDataScRsp clearAvatarList() { @@ -137,7 +137,7 @@ public GetAvatarDataScRsp clearAvatarList() { } /** - * repeated .Avatar avatar_list = 3; + * repeated .Avatar avatar_list = 14; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -151,7 +151,7 @@ public RepeatedMessage getAvatarList() { } /** - * repeated .Avatar avatar_list = 3; + * repeated .Avatar avatar_list = 14; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -165,7 +165,7 @@ public RepeatedMessage getMutableAvatarList() { } /** - * repeated .Avatar avatar_list = 3; + * repeated .Avatar avatar_list = 14; * @param value the avatarList to add * @return this */ @@ -176,7 +176,7 @@ public GetAvatarDataScRsp addAvatarList(final AvatarOuterClass.Avatar value) { } /** - * repeated .Avatar avatar_list = 3; + * repeated .Avatar avatar_list = 14; * @param values the avatarList to add * @return this */ @@ -258,16 +258,16 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 80); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 48); output.writeBoolNoTag(isGetAll); } if ((bitField0_ & 0x00000004) != 0) { for (int i = 0; i < avatarList.length(); i++) { - output.writeRawByte((byte) 26); + output.writeRawByte((byte) 114); output.writeMessageNoTag(avatarList.get(i)); } } @@ -295,25 +295,25 @@ public GetAvatarDataScRsp mergeFrom(final ProtoSource input) throws IOException int tag = input.readTag(); while (true) { switch (tag) { - case 40: { + case 80: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 88) { + if (tag != 48) { break; } } - case 88: { + case 48: { // isGetAll isGetAll = input.readBool(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 26) { + if (tag != 114) { break; } } - case 26: { + case 114: { // avatarList tag = input.readRepeatedMessage(avatarList, tag); bitField0_ |= 0x00000004; diff --git a/src/generated/main/emu/lunarcore/proto/GetBagScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetBagScRspOuterClass.java index 719af6ec1..e3a66a62d 100644 --- a/src/generated/main/emu/lunarcore/proto/GetBagScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetBagScRspOuterClass.java @@ -20,24 +20,24 @@ public static final class GetBagScRsp extends ProtoMessage implemen private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 15; */ private int retcode; /** - * repeated .Equipment equipment_list = 8; + * repeated .Equipment equipment_list = 1; */ private final RepeatedMessage equipmentList = RepeatedMessage.newEmptyInstance(EquipmentOuterClass.Equipment.getFactory()); /** - * repeated .Relic relic_list = 10; + * repeated .Material material_list = 2; */ - private final RepeatedMessage relicList = RepeatedMessage.newEmptyInstance(RelicOuterClass.Relic.getFactory()); + private final RepeatedMessage materialList = RepeatedMessage.newEmptyInstance(MaterialOuterClass.Material.getFactory()); /** - * repeated .Material material_list = 14; + * repeated .Relic relic_list = 13; */ - private final RepeatedMessage materialList = RepeatedMessage.newEmptyInstance(MaterialOuterClass.Material.getFactory()); + private final RepeatedMessage relicList = RepeatedMessage.newEmptyInstance(RelicOuterClass.Relic.getFactory()); private GetBagScRsp() { } @@ -50,7 +50,7 @@ public static GetBagScRsp newInstance() { } /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 15; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -58,7 +58,7 @@ public boolean hasRetcode() { } /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 15; * @return this */ public GetBagScRsp clearRetcode() { @@ -68,7 +68,7 @@ public GetBagScRsp clearRetcode() { } /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 15; * @return the retcode */ public int getRetcode() { @@ -76,7 +76,7 @@ public int getRetcode() { } /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 15; * @param value the retcode to set * @return this */ @@ -87,7 +87,7 @@ public GetBagScRsp setRetcode(final int value) { } /** - * repeated .Equipment equipment_list = 8; + * repeated .Equipment equipment_list = 1; * @return whether the equipmentList field is set */ public boolean hasEquipmentList() { @@ -95,7 +95,7 @@ public boolean hasEquipmentList() { } /** - * repeated .Equipment equipment_list = 8; + * repeated .Equipment equipment_list = 1; * @return this */ public GetBagScRsp clearEquipmentList() { @@ -105,7 +105,7 @@ public GetBagScRsp clearEquipmentList() { } /** - * repeated .Equipment equipment_list = 8; + * repeated .Equipment equipment_list = 1; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -119,7 +119,7 @@ public RepeatedMessage getEquipmentList() { } /** - * repeated .Equipment equipment_list = 8; + * repeated .Equipment equipment_list = 1; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -133,7 +133,7 @@ public RepeatedMessage getMutableEquipmentList() } /** - * repeated .Equipment equipment_list = 8; + * repeated .Equipment equipment_list = 1; * @param value the equipmentList to add * @return this */ @@ -144,7 +144,7 @@ public GetBagScRsp addEquipmentList(final EquipmentOuterClass.Equipment value) { } /** - * repeated .Equipment equipment_list = 8; + * repeated .Equipment equipment_list = 1; * @param values the equipmentList to add * @return this */ @@ -155,39 +155,39 @@ public GetBagScRsp addAllEquipmentList(final EquipmentOuterClass.Equipment... va } /** - * repeated .Relic relic_list = 10; - * @return whether the relicList field is set + * repeated .Material material_list = 2; + * @return whether the materialList field is set */ - public boolean hasRelicList() { + public boolean hasMaterialList() { return (bitField0_ & 0x00000004) != 0; } /** - * repeated .Relic relic_list = 10; + * repeated .Material material_list = 2; * @return this */ - public GetBagScRsp clearRelicList() { + public GetBagScRsp clearMaterialList() { bitField0_ &= ~0x00000004; - relicList.clear(); + materialList.clear(); return this; } /** - * repeated .Relic relic_list = 10; + * repeated .Material material_list = 2; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableRelicList()} if you want to modify it. + * Use {@link #getMutableMaterialList()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedMessage getRelicList() { - return relicList; + public RepeatedMessage getMaterialList() { + return materialList; } /** - * repeated .Relic relic_list = 10; + * repeated .Material material_list = 2; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -195,67 +195,67 @@ public RepeatedMessage getRelicList() { * * @return internal storage object for modifications */ - public RepeatedMessage getMutableRelicList() { + public RepeatedMessage getMutableMaterialList() { bitField0_ |= 0x00000004; - return relicList; + return materialList; } /** - * repeated .Relic relic_list = 10; - * @param value the relicList to add + * repeated .Material material_list = 2; + * @param value the materialList to add * @return this */ - public GetBagScRsp addRelicList(final RelicOuterClass.Relic value) { + public GetBagScRsp addMaterialList(final MaterialOuterClass.Material value) { bitField0_ |= 0x00000004; - relicList.add(value); + materialList.add(value); return this; } /** - * repeated .Relic relic_list = 10; - * @param values the relicList to add + * repeated .Material material_list = 2; + * @param values the materialList to add * @return this */ - public GetBagScRsp addAllRelicList(final RelicOuterClass.Relic... values) { + public GetBagScRsp addAllMaterialList(final MaterialOuterClass.Material... values) { bitField0_ |= 0x00000004; - relicList.addAll(values); + materialList.addAll(values); return this; } /** - * repeated .Material material_list = 14; - * @return whether the materialList field is set + * repeated .Relic relic_list = 13; + * @return whether the relicList field is set */ - public boolean hasMaterialList() { + public boolean hasRelicList() { return (bitField0_ & 0x00000008) != 0; } /** - * repeated .Material material_list = 14; + * repeated .Relic relic_list = 13; * @return this */ - public GetBagScRsp clearMaterialList() { + public GetBagScRsp clearRelicList() { bitField0_ &= ~0x00000008; - materialList.clear(); + relicList.clear(); return this; } /** - * repeated .Material material_list = 14; + * repeated .Relic relic_list = 13; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableMaterialList()} if you want to modify it. + * Use {@link #getMutableRelicList()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedMessage getMaterialList() { - return materialList; + public RepeatedMessage getRelicList() { + return relicList; } /** - * repeated .Material material_list = 14; + * repeated .Relic relic_list = 13; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -263,30 +263,30 @@ public RepeatedMessage getMaterialList() { * * @return internal storage object for modifications */ - public RepeatedMessage getMutableMaterialList() { + public RepeatedMessage getMutableRelicList() { bitField0_ |= 0x00000008; - return materialList; + return relicList; } /** - * repeated .Material material_list = 14; - * @param value the materialList to add + * repeated .Relic relic_list = 13; + * @param value the relicList to add * @return this */ - public GetBagScRsp addMaterialList(final MaterialOuterClass.Material value) { + public GetBagScRsp addRelicList(final RelicOuterClass.Relic value) { bitField0_ |= 0x00000008; - materialList.add(value); + relicList.add(value); return this; } /** - * repeated .Material material_list = 14; - * @param values the materialList to add + * repeated .Relic relic_list = 13; + * @param values the relicList to add * @return this */ - public GetBagScRsp addAllMaterialList(final MaterialOuterClass.Material... values) { + public GetBagScRsp addAllRelicList(final RelicOuterClass.Relic... values) { bitField0_ |= 0x00000008; - materialList.addAll(values); + relicList.addAll(values); return this; } @@ -297,8 +297,8 @@ public GetBagScRsp copyFrom(final GetBagScRsp other) { bitField0_ = other.bitField0_; retcode = other.retcode; equipmentList.copyFrom(other.equipmentList); - relicList.copyFrom(other.relicList); materialList.copyFrom(other.materialList); + relicList.copyFrom(other.relicList); } return this; } @@ -315,12 +315,12 @@ public GetBagScRsp mergeFrom(final GetBagScRsp other) { if (other.hasEquipmentList()) { getMutableEquipmentList().addAll(other.equipmentList); } - if (other.hasRelicList()) { - getMutableRelicList().addAll(other.relicList); - } if (other.hasMaterialList()) { getMutableMaterialList().addAll(other.materialList); } + if (other.hasRelicList()) { + getMutableRelicList().addAll(other.relicList); + } return this; } @@ -333,8 +333,8 @@ public GetBagScRsp clear() { bitField0_ = 0; retcode = 0; equipmentList.clear(); - relicList.clear(); materialList.clear(); + relicList.clear(); return this; } @@ -346,8 +346,8 @@ public GetBagScRsp clearQuick() { cachedSize = -1; bitField0_ = 0; equipmentList.clearQuick(); - relicList.clearQuick(); materialList.clearQuick(); + relicList.clearQuick(); return this; } @@ -363,32 +363,32 @@ public boolean equals(Object o) { return bitField0_ == other.bitField0_ && (!hasRetcode() || retcode == other.retcode) && (!hasEquipmentList() || equipmentList.equals(other.equipmentList)) - && (!hasRelicList() || relicList.equals(other.relicList)) - && (!hasMaterialList() || materialList.equals(other.materialList)); + && (!hasMaterialList() || materialList.equals(other.materialList)) + && (!hasRelicList() || relicList.equals(other.relicList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 120); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < equipmentList.length(); i++) { - output.writeRawByte((byte) 66); + output.writeRawByte((byte) 10); output.writeMessageNoTag(equipmentList.get(i)); } } if ((bitField0_ & 0x00000004) != 0) { - for (int i = 0; i < relicList.length(); i++) { - output.writeRawByte((byte) 82); - output.writeMessageNoTag(relicList.get(i)); + for (int i = 0; i < materialList.length(); i++) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(materialList.get(i)); } } if ((bitField0_ & 0x00000008) != 0) { - for (int i = 0; i < materialList.length(); i++) { - output.writeRawByte((byte) 114); - output.writeMessageNoTag(materialList.get(i)); + for (int i = 0; i < relicList.length(); i++) { + output.writeRawByte((byte) 106); + output.writeMessageNoTag(relicList.get(i)); } } } @@ -403,10 +403,10 @@ protected int computeSerializedSize() { size += (1 * equipmentList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(equipmentList); } if ((bitField0_ & 0x00000004) != 0) { - size += (1 * relicList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(relicList); + size += (1 * materialList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(materialList); } if ((bitField0_ & 0x00000008) != 0) { - size += (1 * materialList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(materialList); + size += (1 * relicList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(relicList); } return size; } @@ -418,34 +418,34 @@ public GetBagScRsp mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 56: { + case 120: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 66) { + if (tag != 10) { break; } } - case 66: { + case 10: { // equipmentList tag = input.readRepeatedMessage(equipmentList, tag); bitField0_ |= 0x00000002; - if (tag != 82) { + if (tag != 18) { break; } } - case 82: { - // relicList - tag = input.readRepeatedMessage(relicList, tag); + case 18: { + // materialList + tag = input.readRepeatedMessage(materialList, tag); bitField0_ |= 0x00000004; - if (tag != 114) { + if (tag != 106) { break; } } - case 114: { - // materialList - tag = input.readRepeatedMessage(materialList, tag); + case 106: { + // relicList + tag = input.readRepeatedMessage(relicList, tag); bitField0_ |= 0x00000008; if (tag != 0) { break; @@ -475,10 +475,10 @@ public void writeTo(final JsonSink output) throws IOException { output.writeRepeatedMessage(FieldNames.equipmentList, equipmentList); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRepeatedMessage(FieldNames.relicList, relicList); + output.writeRepeatedMessage(FieldNames.materialList, materialList); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRepeatedMessage(FieldNames.materialList, materialList); + output.writeRepeatedMessage(FieldNames.relicList, relicList); } output.endObject(); } @@ -513,11 +513,11 @@ public GetBagScRsp mergeFrom(final JsonSource input) throws IOException { } break; } - case 204814001: - case 2071893482: { - if (input.isAtField(FieldNames.relicList)) { + case -2115854747: + case -1149360970: { + if (input.isAtField(FieldNames.materialList)) { if (!input.trySkipNullValue()) { - input.readRepeatedMessage(relicList); + input.readRepeatedMessage(materialList); bitField0_ |= 0x00000004; } } else { @@ -525,11 +525,11 @@ public GetBagScRsp mergeFrom(final JsonSource input) throws IOException { } break; } - case -2115854747: - case -1149360970: { - if (input.isAtField(FieldNames.materialList)) { + case 204814001: + case 2071893482: { + if (input.isAtField(FieldNames.relicList)) { if (!input.trySkipNullValue()) { - input.readRepeatedMessage(materialList); + input.readRepeatedMessage(relicList); bitField0_ |= 0x00000008; } } else { @@ -593,9 +593,9 @@ static class FieldNames { static final FieldName equipmentList = FieldName.forField("equipmentList", "equipment_list"); - static final FieldName relicList = FieldName.forField("relicList", "relic_list"); - static final FieldName materialList = FieldName.forField("materialList", "material_list"); + + static final FieldName relicList = FieldName.forField("relicList", "relic_list"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/GetBasicInfoScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetBasicInfoScRspOuterClass.java index 69d5374f7..5fc5fcbe3 100644 --- a/src/generated/main/emu/lunarcore/proto/GetBasicInfoScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetBasicInfoScRspOuterClass.java @@ -19,42 +19,42 @@ public static final class GetBasicInfoScRsp extends ProtoMessageoptional int64 next_recover_time = 7; + * optional int64 last_set_nickname_time = 3; */ - private long nextRecoverTime; + private long lastSetNicknameTime; /** - * optional int64 last_set_nickname_time = 9; + * optional int64 next_recover_time = 15; */ - private long lastSetNicknameTime; + private long nextRecoverTime; /** - * optional uint32 cur_day = 3; + * optional uint32 cur_day = 1; */ private int curDay; /** - * optional uint32 gameplay_birthday = 4; + * optional uint32 week_cocoon_finished_count = 2; */ - private int gameplayBirthday; + private int weekCocoonFinishedCount; /** - * optional uint32 retcode = 11; + * optional uint32 exchange_times = 6; */ - private int retcode; + private int exchangeTimes; /** - * optional uint32 week_cocoon_finished_count = 13; + * optional uint32 gameplay_birthday = 9; */ - private int weekCocoonFinishedCount; + private int gameplayBirthday; /** - * optional uint32 exchange_times = 15; + * optional uint32 retcode = 10; */ - private int exchangeTimes; + private int retcode; /** - * optional .PlayerSettingInfo player_setting_info = 1; + * optional .PlayerSettingInfo player_setting_info = 14; */ private final PlayerSettingInfoOuterClass.PlayerSettingInfo playerSettingInfo = PlayerSettingInfoOuterClass.PlayerSettingInfo.newInstance(); @@ -69,81 +69,81 @@ public static GetBasicInfoScRsp newInstance() { } /** - * optional int64 next_recover_time = 7; - * @return whether the nextRecoverTime field is set + * optional int64 last_set_nickname_time = 3; + * @return whether the lastSetNicknameTime field is set */ - public boolean hasNextRecoverTime() { + public boolean hasLastSetNicknameTime() { return (bitField0_ & 0x00000001) != 0; } /** - * optional int64 next_recover_time = 7; + * optional int64 last_set_nickname_time = 3; * @return this */ - public GetBasicInfoScRsp clearNextRecoverTime() { + public GetBasicInfoScRsp clearLastSetNicknameTime() { bitField0_ &= ~0x00000001; - nextRecoverTime = 0L; + lastSetNicknameTime = 0L; return this; } /** - * optional int64 next_recover_time = 7; - * @return the nextRecoverTime + * optional int64 last_set_nickname_time = 3; + * @return the lastSetNicknameTime */ - public long getNextRecoverTime() { - return nextRecoverTime; + public long getLastSetNicknameTime() { + return lastSetNicknameTime; } /** - * optional int64 next_recover_time = 7; - * @param value the nextRecoverTime to set + * optional int64 last_set_nickname_time = 3; + * @param value the lastSetNicknameTime to set * @return this */ - public GetBasicInfoScRsp setNextRecoverTime(final long value) { + public GetBasicInfoScRsp setLastSetNicknameTime(final long value) { bitField0_ |= 0x00000001; - nextRecoverTime = value; + lastSetNicknameTime = value; return this; } /** - * optional int64 last_set_nickname_time = 9; - * @return whether the lastSetNicknameTime field is set + * optional int64 next_recover_time = 15; + * @return whether the nextRecoverTime field is set */ - public boolean hasLastSetNicknameTime() { + public boolean hasNextRecoverTime() { return (bitField0_ & 0x00000002) != 0; } /** - * optional int64 last_set_nickname_time = 9; + * optional int64 next_recover_time = 15; * @return this */ - public GetBasicInfoScRsp clearLastSetNicknameTime() { + public GetBasicInfoScRsp clearNextRecoverTime() { bitField0_ &= ~0x00000002; - lastSetNicknameTime = 0L; + nextRecoverTime = 0L; return this; } /** - * optional int64 last_set_nickname_time = 9; - * @return the lastSetNicknameTime + * optional int64 next_recover_time = 15; + * @return the nextRecoverTime */ - public long getLastSetNicknameTime() { - return lastSetNicknameTime; + public long getNextRecoverTime() { + return nextRecoverTime; } /** - * optional int64 last_set_nickname_time = 9; - * @param value the lastSetNicknameTime to set + * optional int64 next_recover_time = 15; + * @param value the nextRecoverTime to set * @return this */ - public GetBasicInfoScRsp setLastSetNicknameTime(final long value) { + public GetBasicInfoScRsp setNextRecoverTime(final long value) { bitField0_ |= 0x00000002; - lastSetNicknameTime = value; + nextRecoverTime = value; return this; } /** - * optional uint32 cur_day = 3; + * optional uint32 cur_day = 1; * @return whether the curDay field is set */ public boolean hasCurDay() { @@ -151,7 +151,7 @@ public boolean hasCurDay() { } /** - * optional uint32 cur_day = 3; + * optional uint32 cur_day = 1; * @return this */ public GetBasicInfoScRsp clearCurDay() { @@ -161,7 +161,7 @@ public GetBasicInfoScRsp clearCurDay() { } /** - * optional uint32 cur_day = 3; + * optional uint32 cur_day = 1; * @return the curDay */ public int getCurDay() { @@ -169,7 +169,7 @@ public int getCurDay() { } /** - * optional uint32 cur_day = 3; + * optional uint32 cur_day = 1; * @param value the curDay to set * @return this */ @@ -180,155 +180,155 @@ public GetBasicInfoScRsp setCurDay(final int value) { } /** - * optional uint32 gameplay_birthday = 4; - * @return whether the gameplayBirthday field is set + * optional uint32 week_cocoon_finished_count = 2; + * @return whether the weekCocoonFinishedCount field is set */ - public boolean hasGameplayBirthday() { + public boolean hasWeekCocoonFinishedCount() { return (bitField0_ & 0x00000008) != 0; } /** - * optional uint32 gameplay_birthday = 4; + * optional uint32 week_cocoon_finished_count = 2; * @return this */ - public GetBasicInfoScRsp clearGameplayBirthday() { + public GetBasicInfoScRsp clearWeekCocoonFinishedCount() { bitField0_ &= ~0x00000008; - gameplayBirthday = 0; + weekCocoonFinishedCount = 0; return this; } /** - * optional uint32 gameplay_birthday = 4; - * @return the gameplayBirthday + * optional uint32 week_cocoon_finished_count = 2; + * @return the weekCocoonFinishedCount */ - public int getGameplayBirthday() { - return gameplayBirthday; + public int getWeekCocoonFinishedCount() { + return weekCocoonFinishedCount; } /** - * optional uint32 gameplay_birthday = 4; - * @param value the gameplayBirthday to set + * optional uint32 week_cocoon_finished_count = 2; + * @param value the weekCocoonFinishedCount to set * @return this */ - public GetBasicInfoScRsp setGameplayBirthday(final int value) { + public GetBasicInfoScRsp setWeekCocoonFinishedCount(final int value) { bitField0_ |= 0x00000008; - gameplayBirthday = value; + weekCocoonFinishedCount = value; return this; } /** - * optional uint32 retcode = 11; - * @return whether the retcode field is set + * optional uint32 exchange_times = 6; + * @return whether the exchangeTimes field is set */ - public boolean hasRetcode() { + public boolean hasExchangeTimes() { return (bitField0_ & 0x00000010) != 0; } /** - * optional uint32 retcode = 11; + * optional uint32 exchange_times = 6; * @return this */ - public GetBasicInfoScRsp clearRetcode() { + public GetBasicInfoScRsp clearExchangeTimes() { bitField0_ &= ~0x00000010; - retcode = 0; + exchangeTimes = 0; return this; } /** - * optional uint32 retcode = 11; - * @return the retcode + * optional uint32 exchange_times = 6; + * @return the exchangeTimes */ - public int getRetcode() { - return retcode; + public int getExchangeTimes() { + return exchangeTimes; } /** - * optional uint32 retcode = 11; - * @param value the retcode to set + * optional uint32 exchange_times = 6; + * @param value the exchangeTimes to set * @return this */ - public GetBasicInfoScRsp setRetcode(final int value) { + public GetBasicInfoScRsp setExchangeTimes(final int value) { bitField0_ |= 0x00000010; - retcode = value; + exchangeTimes = value; return this; } /** - * optional uint32 week_cocoon_finished_count = 13; - * @return whether the weekCocoonFinishedCount field is set + * optional uint32 gameplay_birthday = 9; + * @return whether the gameplayBirthday field is set */ - public boolean hasWeekCocoonFinishedCount() { + public boolean hasGameplayBirthday() { return (bitField0_ & 0x00000020) != 0; } /** - * optional uint32 week_cocoon_finished_count = 13; + * optional uint32 gameplay_birthday = 9; * @return this */ - public GetBasicInfoScRsp clearWeekCocoonFinishedCount() { + public GetBasicInfoScRsp clearGameplayBirthday() { bitField0_ &= ~0x00000020; - weekCocoonFinishedCount = 0; + gameplayBirthday = 0; return this; } /** - * optional uint32 week_cocoon_finished_count = 13; - * @return the weekCocoonFinishedCount + * optional uint32 gameplay_birthday = 9; + * @return the gameplayBirthday */ - public int getWeekCocoonFinishedCount() { - return weekCocoonFinishedCount; + public int getGameplayBirthday() { + return gameplayBirthday; } /** - * optional uint32 week_cocoon_finished_count = 13; - * @param value the weekCocoonFinishedCount to set + * optional uint32 gameplay_birthday = 9; + * @param value the gameplayBirthday to set * @return this */ - public GetBasicInfoScRsp setWeekCocoonFinishedCount(final int value) { + public GetBasicInfoScRsp setGameplayBirthday(final int value) { bitField0_ |= 0x00000020; - weekCocoonFinishedCount = value; + gameplayBirthday = value; return this; } /** - * optional uint32 exchange_times = 15; - * @return whether the exchangeTimes field is set + * optional uint32 retcode = 10; + * @return whether the retcode field is set */ - public boolean hasExchangeTimes() { + public boolean hasRetcode() { return (bitField0_ & 0x00000040) != 0; } /** - * optional uint32 exchange_times = 15; + * optional uint32 retcode = 10; * @return this */ - public GetBasicInfoScRsp clearExchangeTimes() { + public GetBasicInfoScRsp clearRetcode() { bitField0_ &= ~0x00000040; - exchangeTimes = 0; + retcode = 0; return this; } /** - * optional uint32 exchange_times = 15; - * @return the exchangeTimes + * optional uint32 retcode = 10; + * @return the retcode */ - public int getExchangeTimes() { - return exchangeTimes; + public int getRetcode() { + return retcode; } /** - * optional uint32 exchange_times = 15; - * @param value the exchangeTimes to set + * optional uint32 retcode = 10; + * @param value the retcode to set * @return this */ - public GetBasicInfoScRsp setExchangeTimes(final int value) { + public GetBasicInfoScRsp setRetcode(final int value) { bitField0_ |= 0x00000040; - exchangeTimes = value; + retcode = value; return this; } /** - * optional .PlayerSettingInfo player_setting_info = 1; + * optional .PlayerSettingInfo player_setting_info = 14; * @return whether the playerSettingInfo field is set */ public boolean hasPlayerSettingInfo() { @@ -336,7 +336,7 @@ public boolean hasPlayerSettingInfo() { } /** - * optional .PlayerSettingInfo player_setting_info = 1; + * optional .PlayerSettingInfo player_setting_info = 14; * @return this */ public GetBasicInfoScRsp clearPlayerSettingInfo() { @@ -346,7 +346,7 @@ public GetBasicInfoScRsp clearPlayerSettingInfo() { } /** - * optional .PlayerSettingInfo player_setting_info = 1; + * optional .PlayerSettingInfo player_setting_info = 14; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -360,7 +360,7 @@ public PlayerSettingInfoOuterClass.PlayerSettingInfo getPlayerSettingInfo() { } /** - * optional .PlayerSettingInfo player_setting_info = 1; + * optional .PlayerSettingInfo player_setting_info = 14; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -374,7 +374,7 @@ public PlayerSettingInfoOuterClass.PlayerSettingInfo getMutablePlayerSettingInfo } /** - * optional .PlayerSettingInfo player_setting_info = 1; + * optional .PlayerSettingInfo player_setting_info = 14; * @param value the playerSettingInfo to set * @return this */ @@ -390,13 +390,13 @@ public GetBasicInfoScRsp copyFrom(final GetBasicInfoScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - nextRecoverTime = other.nextRecoverTime; lastSetNicknameTime = other.lastSetNicknameTime; + nextRecoverTime = other.nextRecoverTime; curDay = other.curDay; - gameplayBirthday = other.gameplayBirthday; - retcode = other.retcode; weekCocoonFinishedCount = other.weekCocoonFinishedCount; exchangeTimes = other.exchangeTimes; + gameplayBirthday = other.gameplayBirthday; + retcode = other.retcode; playerSettingInfo.copyFrom(other.playerSettingInfo); } return this; @@ -408,27 +408,27 @@ public GetBasicInfoScRsp mergeFrom(final GetBasicInfoScRsp other) { return this; } cachedSize = -1; - if (other.hasNextRecoverTime()) { - setNextRecoverTime(other.nextRecoverTime); - } if (other.hasLastSetNicknameTime()) { setLastSetNicknameTime(other.lastSetNicknameTime); } + if (other.hasNextRecoverTime()) { + setNextRecoverTime(other.nextRecoverTime); + } if (other.hasCurDay()) { setCurDay(other.curDay); } - if (other.hasGameplayBirthday()) { - setGameplayBirthday(other.gameplayBirthday); - } - if (other.hasRetcode()) { - setRetcode(other.retcode); - } if (other.hasWeekCocoonFinishedCount()) { setWeekCocoonFinishedCount(other.weekCocoonFinishedCount); } if (other.hasExchangeTimes()) { setExchangeTimes(other.exchangeTimes); } + if (other.hasGameplayBirthday()) { + setGameplayBirthday(other.gameplayBirthday); + } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } if (other.hasPlayerSettingInfo()) { getMutablePlayerSettingInfo().mergeFrom(other.playerSettingInfo); } @@ -442,13 +442,13 @@ public GetBasicInfoScRsp clear() { } cachedSize = -1; bitField0_ = 0; - nextRecoverTime = 0L; lastSetNicknameTime = 0L; + nextRecoverTime = 0L; curDay = 0; - gameplayBirthday = 0; - retcode = 0; weekCocoonFinishedCount = 0; exchangeTimes = 0; + gameplayBirthday = 0; + retcode = 0; playerSettingInfo.clear(); return this; } @@ -474,48 +474,48 @@ public boolean equals(Object o) { } GetBasicInfoScRsp other = (GetBasicInfoScRsp) o; return bitField0_ == other.bitField0_ - && (!hasNextRecoverTime() || nextRecoverTime == other.nextRecoverTime) && (!hasLastSetNicknameTime() || lastSetNicknameTime == other.lastSetNicknameTime) + && (!hasNextRecoverTime() || nextRecoverTime == other.nextRecoverTime) && (!hasCurDay() || curDay == other.curDay) - && (!hasGameplayBirthday() || gameplayBirthday == other.gameplayBirthday) - && (!hasRetcode() || retcode == other.retcode) && (!hasWeekCocoonFinishedCount() || weekCocoonFinishedCount == other.weekCocoonFinishedCount) && (!hasExchangeTimes() || exchangeTimes == other.exchangeTimes) + && (!hasGameplayBirthday() || gameplayBirthday == other.gameplayBirthday) + && (!hasRetcode() || retcode == other.retcode) && (!hasPlayerSettingInfo() || playerSettingInfo.equals(other.playerSettingInfo)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 56); - output.writeInt64NoTag(nextRecoverTime); + output.writeRawByte((byte) 24); + output.writeInt64NoTag(lastSetNicknameTime); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 72); - output.writeInt64NoTag(lastSetNicknameTime); + output.writeRawByte((byte) 120); + output.writeInt64NoTag(nextRecoverTime); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 8); output.writeUInt32NoTag(curDay); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 32); - output.writeUInt32NoTag(gameplayBirthday); + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(weekCocoonFinishedCount); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 88); - output.writeUInt32NoTag(retcode); + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(exchangeTimes); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 104); - output.writeUInt32NoTag(weekCocoonFinishedCount); + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(gameplayBirthday); } if ((bitField0_ & 0x00000040) != 0) { - output.writeRawByte((byte) 120); - output.writeUInt32NoTag(exchangeTimes); + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000080) != 0) { - output.writeRawByte((byte) 10); + output.writeRawByte((byte) 114); output.writeMessageNoTag(playerSettingInfo); } } @@ -524,25 +524,25 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeInt64SizeNoTag(nextRecoverTime); + size += 1 + ProtoSink.computeInt64SizeNoTag(lastSetNicknameTime); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeInt64SizeNoTag(lastSetNicknameTime); + size += 1 + ProtoSink.computeInt64SizeNoTag(nextRecoverTime); } if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(curDay); } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(gameplayBirthday); + size += 1 + ProtoSink.computeUInt32SizeNoTag(weekCocoonFinishedCount); } if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(exchangeTimes); } if ((bitField0_ & 0x00000020) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(weekCocoonFinishedCount); + size += 1 + ProtoSink.computeUInt32SizeNoTag(gameplayBirthday); } if ((bitField0_ & 0x00000040) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(exchangeTimes); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000080) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(playerSettingInfo); @@ -557,70 +557,70 @@ public GetBasicInfoScRsp mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 56: { - // nextRecoverTime - nextRecoverTime = input.readInt64(); + case 24: { + // lastSetNicknameTime + lastSetNicknameTime = input.readInt64(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 72) { + if (tag != 120) { break; } } - case 72: { - // lastSetNicknameTime - lastSetNicknameTime = input.readInt64(); + case 120: { + // nextRecoverTime + nextRecoverTime = input.readInt64(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 24) { + if (tag != 8) { break; } } - case 24: { + case 8: { // curDay curDay = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 32) { + if (tag != 16) { break; } } - case 32: { - // gameplayBirthday - gameplayBirthday = input.readUInt32(); + case 16: { + // weekCocoonFinishedCount + weekCocoonFinishedCount = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 88) { + if (tag != 48) { break; } } - case 88: { - // retcode - retcode = input.readUInt32(); + case 48: { + // exchangeTimes + exchangeTimes = input.readUInt32(); bitField0_ |= 0x00000010; tag = input.readTag(); - if (tag != 104) { + if (tag != 72) { break; } } - case 104: { - // weekCocoonFinishedCount - weekCocoonFinishedCount = input.readUInt32(); + case 72: { + // gameplayBirthday + gameplayBirthday = input.readUInt32(); bitField0_ |= 0x00000020; tag = input.readTag(); - if (tag != 120) { + if (tag != 80) { break; } } - case 120: { - // exchangeTimes - exchangeTimes = input.readUInt32(); + case 80: { + // retcode + retcode = input.readUInt32(); bitField0_ |= 0x00000040; tag = input.readTag(); - if (tag != 10) { + if (tag != 114) { break; } } - case 10: { + case 114: { // playerSettingInfo input.readMessage(playerSettingInfo); bitField0_ |= 0x00000080; @@ -647,25 +647,25 @@ public GetBasicInfoScRsp mergeFrom(final ProtoSource input) throws IOException { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeInt64(FieldNames.nextRecoverTime, nextRecoverTime); + output.writeInt64(FieldNames.lastSetNicknameTime, lastSetNicknameTime); } if ((bitField0_ & 0x00000002) != 0) { - output.writeInt64(FieldNames.lastSetNicknameTime, lastSetNicknameTime); + output.writeInt64(FieldNames.nextRecoverTime, nextRecoverTime); } if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.curDay, curDay); } if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.gameplayBirthday, gameplayBirthday); + output.writeUInt32(FieldNames.weekCocoonFinishedCount, weekCocoonFinishedCount); } if ((bitField0_ & 0x00000010) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.exchangeTimes, exchangeTimes); } if ((bitField0_ & 0x00000020) != 0) { - output.writeUInt32(FieldNames.weekCocoonFinishedCount, weekCocoonFinishedCount); + output.writeUInt32(FieldNames.gameplayBirthday, gameplayBirthday); } if ((bitField0_ & 0x00000040) != 0) { - output.writeUInt32(FieldNames.exchangeTimes, exchangeTimes); + output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000080) != 0) { output.writeMessage(FieldNames.playerSettingInfo, playerSettingInfo); @@ -680,11 +680,11 @@ public GetBasicInfoScRsp mergeFrom(final JsonSource input) throws IOException { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -1964148386: - case 394600084: { - if (input.isAtField(FieldNames.nextRecoverTime)) { + case 1278606439: + case 400029048: { + if (input.isAtField(FieldNames.lastSetNicknameTime)) { if (!input.trySkipNullValue()) { - nextRecoverTime = input.readInt64(); + lastSetNicknameTime = input.readInt64(); bitField0_ |= 0x00000001; } } else { @@ -692,11 +692,11 @@ public GetBasicInfoScRsp mergeFrom(final JsonSource input) throws IOException { } break; } - case 1278606439: - case 400029048: { - if (input.isAtField(FieldNames.lastSetNicknameTime)) { + case -1964148386: + case 394600084: { + if (input.isAtField(FieldNames.nextRecoverTime)) { if (!input.trySkipNullValue()) { - lastSetNicknameTime = input.readInt64(); + nextRecoverTime = input.readInt64(); bitField0_ |= 0x00000002; } } else { @@ -716,11 +716,11 @@ public GetBasicInfoScRsp mergeFrom(final JsonSource input) throws IOException { } break; } - case 686542531: - case 172986486: { - if (input.isAtField(FieldNames.gameplayBirthday)) { + case 1387396786: + case 668486783: { + if (input.isAtField(FieldNames.weekCocoonFinishedCount)) { if (!input.trySkipNullValue()) { - gameplayBirthday = input.readUInt32(); + weekCocoonFinishedCount = input.readUInt32(); bitField0_ |= 0x00000008; } } else { @@ -728,10 +728,11 @@ public GetBasicInfoScRsp mergeFrom(final JsonSource input) throws IOException { } break; } - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { + case 1371137763: + case -119434710: { + if (input.isAtField(FieldNames.exchangeTimes)) { if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); + exchangeTimes = input.readUInt32(); bitField0_ |= 0x00000010; } } else { @@ -739,11 +740,11 @@ public GetBasicInfoScRsp mergeFrom(final JsonSource input) throws IOException { } break; } - case 1387396786: - case 668486783: { - if (input.isAtField(FieldNames.weekCocoonFinishedCount)) { + case 686542531: + case 172986486: { + if (input.isAtField(FieldNames.gameplayBirthday)) { if (!input.trySkipNullValue()) { - weekCocoonFinishedCount = input.readUInt32(); + gameplayBirthday = input.readUInt32(); bitField0_ |= 0x00000020; } } else { @@ -751,11 +752,10 @@ public GetBasicInfoScRsp mergeFrom(final JsonSource input) throws IOException { } break; } - case 1371137763: - case -119434710: { - if (input.isAtField(FieldNames.exchangeTimes)) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { - exchangeTimes = input.readUInt32(); + retcode = input.readUInt32(); bitField0_ |= 0x00000040; } } else { @@ -828,20 +828,20 @@ public GetBasicInfoScRsp create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName nextRecoverTime = FieldName.forField("nextRecoverTime", "next_recover_time"); - static final FieldName lastSetNicknameTime = FieldName.forField("lastSetNicknameTime", "last_set_nickname_time"); - static final FieldName curDay = FieldName.forField("curDay", "cur_day"); - - static final FieldName gameplayBirthday = FieldName.forField("gameplayBirthday", "gameplay_birthday"); + static final FieldName nextRecoverTime = FieldName.forField("nextRecoverTime", "next_recover_time"); - static final FieldName retcode = FieldName.forField("retcode"); + static final FieldName curDay = FieldName.forField("curDay", "cur_day"); static final FieldName weekCocoonFinishedCount = FieldName.forField("weekCocoonFinishedCount", "week_cocoon_finished_count"); static final FieldName exchangeTimes = FieldName.forField("exchangeTimes", "exchange_times"); + static final FieldName gameplayBirthday = FieldName.forField("gameplayBirthday", "gameplay_birthday"); + + static final FieldName retcode = FieldName.forField("retcode"); + static final FieldName playerSettingInfo = FieldName.forField("playerSettingInfo", "player_setting_info"); } } diff --git a/src/generated/main/emu/lunarcore/proto/GetChallengeScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetChallengeScRspOuterClass.java index a21e763aa..3d268e000 100644 --- a/src/generated/main/emu/lunarcore/proto/GetChallengeScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetChallengeScRspOuterClass.java @@ -20,17 +20,17 @@ public static final class GetChallengeScRsp extends ProtoMessageoptional uint32 retcode = 13; + * optional uint32 retcode = 15; */ private int retcode; /** - * repeated .Challenge challenge_list = 5; + * repeated .Challenge challenge_list = 8; */ private final RepeatedMessage challengeList = RepeatedMessage.newEmptyInstance(ChallengeOuterClass.Challenge.getFactory()); /** - * repeated .ChallengeReward challenge_reward_list = 14; + * repeated .ChallengeReward challenge_reward_list = 9; */ private final RepeatedMessage challengeRewardList = RepeatedMessage.newEmptyInstance(ChallengeRewardOuterClass.ChallengeReward.getFactory()); @@ -45,7 +45,7 @@ public static GetChallengeScRsp newInstance() { } /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 15; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -53,7 +53,7 @@ public boolean hasRetcode() { } /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 15; * @return this */ public GetChallengeScRsp clearRetcode() { @@ -63,7 +63,7 @@ public GetChallengeScRsp clearRetcode() { } /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 15; * @return the retcode */ public int getRetcode() { @@ -71,7 +71,7 @@ public int getRetcode() { } /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 15; * @param value the retcode to set * @return this */ @@ -82,7 +82,7 @@ public GetChallengeScRsp setRetcode(final int value) { } /** - * repeated .Challenge challenge_list = 5; + * repeated .Challenge challenge_list = 8; * @return whether the challengeList field is set */ public boolean hasChallengeList() { @@ -90,7 +90,7 @@ public boolean hasChallengeList() { } /** - * repeated .Challenge challenge_list = 5; + * repeated .Challenge challenge_list = 8; * @return this */ public GetChallengeScRsp clearChallengeList() { @@ -100,7 +100,7 @@ public GetChallengeScRsp clearChallengeList() { } /** - * repeated .Challenge challenge_list = 5; + * repeated .Challenge challenge_list = 8; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -114,7 +114,7 @@ public RepeatedMessage getChallengeList() { } /** - * repeated .Challenge challenge_list = 5; + * repeated .Challenge challenge_list = 8; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -128,7 +128,7 @@ public RepeatedMessage getMutableChallengeList() } /** - * repeated .Challenge challenge_list = 5; + * repeated .Challenge challenge_list = 8; * @param value the challengeList to add * @return this */ @@ -139,7 +139,7 @@ public GetChallengeScRsp addChallengeList(final ChallengeOuterClass.Challenge va } /** - * repeated .Challenge challenge_list = 5; + * repeated .Challenge challenge_list = 8; * @param values the challengeList to add * @return this */ @@ -150,7 +150,7 @@ public GetChallengeScRsp addAllChallengeList(final ChallengeOuterClass.Challenge } /** - * repeated .ChallengeReward challenge_reward_list = 14; + * repeated .ChallengeReward challenge_reward_list = 9; * @return whether the challengeRewardList field is set */ public boolean hasChallengeRewardList() { @@ -158,7 +158,7 @@ public boolean hasChallengeRewardList() { } /** - * repeated .ChallengeReward challenge_reward_list = 14; + * repeated .ChallengeReward challenge_reward_list = 9; * @return this */ public GetChallengeScRsp clearChallengeRewardList() { @@ -168,7 +168,7 @@ public GetChallengeScRsp clearChallengeRewardList() { } /** - * repeated .ChallengeReward challenge_reward_list = 14; + * repeated .ChallengeReward challenge_reward_list = 9; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -182,7 +182,7 @@ public RepeatedMessage getChallengeRe } /** - * repeated .ChallengeReward challenge_reward_list = 14; + * repeated .ChallengeReward challenge_reward_list = 9; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -197,7 +197,7 @@ public RepeatedMessage getMutableChal } /** - * repeated .ChallengeReward challenge_reward_list = 14; + * repeated .ChallengeReward challenge_reward_list = 9; * @param value the challengeRewardList to add * @return this */ @@ -209,7 +209,7 @@ public GetChallengeScRsp addChallengeRewardList( } /** - * repeated .ChallengeReward challenge_reward_list = 14; + * repeated .ChallengeReward challenge_reward_list = 9; * @param values the challengeRewardList to add * @return this */ @@ -293,18 +293,18 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 120); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < challengeList.length(); i++) { - output.writeRawByte((byte) 42); + output.writeRawByte((byte) 66); output.writeMessageNoTag(challengeList.get(i)); } } if ((bitField0_ & 0x00000004) != 0) { for (int i = 0; i < challengeRewardList.length(); i++) { - output.writeRawByte((byte) 114); + output.writeRawByte((byte) 74); output.writeMessageNoTag(challengeRewardList.get(i)); } } @@ -332,24 +332,24 @@ public GetChallengeScRsp mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 104: { + case 120: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 42) { + if (tag != 66) { break; } } - case 42: { + case 66: { // challengeList tag = input.readRepeatedMessage(challengeList, tag); bitField0_ |= 0x00000002; - if (tag != 114) { + if (tag != 74) { break; } } - case 114: { + case 74: { // challengeRewardList tag = input.readRepeatedMessage(challengeRewardList, tag); bitField0_ |= 0x00000004; diff --git a/src/generated/main/emu/lunarcore/proto/GetCurChallengeScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetCurChallengeScRspOuterClass.java index abedada6a..aa8ac8c8b 100644 --- a/src/generated/main/emu/lunarcore/proto/GetCurChallengeScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetCurChallengeScRspOuterClass.java @@ -19,12 +19,12 @@ public static final class GetCurChallengeScRsp extends ProtoMessageoptional uint32 retcode = 12; + * optional uint32 retcode = 5; */ private int retcode; /** - * optional .ChallengeInfo challenge_info = 5; + * optional .ChallengeInfo challenge_info = 9; */ private final ChallengeInfoOuterClass.ChallengeInfo challengeInfo = ChallengeInfoOuterClass.ChallengeInfo.newInstance(); @@ -39,7 +39,7 @@ public static GetCurChallengeScRsp newInstance() { } /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 5; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -47,7 +47,7 @@ public boolean hasRetcode() { } /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 5; * @return this */ public GetCurChallengeScRsp clearRetcode() { @@ -57,7 +57,7 @@ public GetCurChallengeScRsp clearRetcode() { } /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 5; * @return the retcode */ public int getRetcode() { @@ -65,7 +65,7 @@ public int getRetcode() { } /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 5; * @param value the retcode to set * @return this */ @@ -76,7 +76,7 @@ public GetCurChallengeScRsp setRetcode(final int value) { } /** - * optional .ChallengeInfo challenge_info = 5; + * optional .ChallengeInfo challenge_info = 9; * @return whether the challengeInfo field is set */ public boolean hasChallengeInfo() { @@ -84,7 +84,7 @@ public boolean hasChallengeInfo() { } /** - * optional .ChallengeInfo challenge_info = 5; + * optional .ChallengeInfo challenge_info = 9; * @return this */ public GetCurChallengeScRsp clearChallengeInfo() { @@ -94,7 +94,7 @@ public GetCurChallengeScRsp clearChallengeInfo() { } /** - * optional .ChallengeInfo challenge_info = 5; + * optional .ChallengeInfo challenge_info = 9; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -108,7 +108,7 @@ public ChallengeInfoOuterClass.ChallengeInfo getChallengeInfo() { } /** - * optional .ChallengeInfo challenge_info = 5; + * optional .ChallengeInfo challenge_info = 9; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -122,7 +122,7 @@ public ChallengeInfoOuterClass.ChallengeInfo getMutableChallengeInfo() { } /** - * optional .ChallengeInfo challenge_info = 5; + * optional .ChallengeInfo challenge_info = 9; * @param value the challengeInfo to set * @return this */ @@ -199,11 +199,11 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 40); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 42); + output.writeRawByte((byte) 74); output.writeMessageNoTag(challengeInfo); } } @@ -227,16 +227,16 @@ public GetCurChallengeScRsp mergeFrom(final ProtoSource input) throws IOExceptio int tag = input.readTag(); while (true) { switch (tag) { - case 96: { + case 40: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 42) { + if (tag != 74) { break; } } - case 42: { + case 74: { // challengeInfo input.readMessage(challengeInfo); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/GetCurLineupDataScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetCurLineupDataScRspOuterClass.java index a2ca0ae9a..c4f350582 100644 --- a/src/generated/main/emu/lunarcore/proto/GetCurLineupDataScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetCurLineupDataScRspOuterClass.java @@ -19,12 +19,12 @@ public static final class GetCurLineupDataScRsp extends ProtoMessageoptional uint32 retcode = 15; + * optional uint32 retcode = 7; */ private int retcode; /** - * optional .LineupInfo lineup = 11; + * optional .LineupInfo lineup = 2; */ private final LineupInfoOuterClass.LineupInfo lineup = LineupInfoOuterClass.LineupInfo.newInstance(); @@ -39,7 +39,7 @@ public static GetCurLineupDataScRsp newInstance() { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 7; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -47,7 +47,7 @@ public boolean hasRetcode() { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 7; * @return this */ public GetCurLineupDataScRsp clearRetcode() { @@ -57,7 +57,7 @@ public GetCurLineupDataScRsp clearRetcode() { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 7; * @return the retcode */ public int getRetcode() { @@ -65,7 +65,7 @@ public int getRetcode() { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 7; * @param value the retcode to set * @return this */ @@ -76,7 +76,7 @@ public GetCurLineupDataScRsp setRetcode(final int value) { } /** - * optional .LineupInfo lineup = 11; + * optional .LineupInfo lineup = 2; * @return whether the lineup field is set */ public boolean hasLineup() { @@ -84,7 +84,7 @@ public boolean hasLineup() { } /** - * optional .LineupInfo lineup = 11; + * optional .LineupInfo lineup = 2; * @return this */ public GetCurLineupDataScRsp clearLineup() { @@ -94,7 +94,7 @@ public GetCurLineupDataScRsp clearLineup() { } /** - * optional .LineupInfo lineup = 11; + * optional .LineupInfo lineup = 2; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -108,7 +108,7 @@ public LineupInfoOuterClass.LineupInfo getLineup() { } /** - * optional .LineupInfo lineup = 11; + * optional .LineupInfo lineup = 2; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -122,7 +122,7 @@ public LineupInfoOuterClass.LineupInfo getMutableLineup() { } /** - * optional .LineupInfo lineup = 11; + * optional .LineupInfo lineup = 2; * @param value the lineup to set * @return this */ @@ -198,11 +198,11 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 56); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 90); + output.writeRawByte((byte) 18); output.writeMessageNoTag(lineup); } } @@ -226,16 +226,16 @@ public GetCurLineupDataScRsp mergeFrom(final ProtoSource input) throws IOExcepti int tag = input.readTag(); while (true) { switch (tag) { - case 120: { + case 56: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 90) { + if (tag != 18) { break; } } - case 90: { + case 18: { // lineup input.readMessage(lineup); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/GetCurSceneInfoScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetCurSceneInfoScRspOuterClass.java index f8d844a99..3d803ebd7 100644 --- a/src/generated/main/emu/lunarcore/proto/GetCurSceneInfoScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetCurSceneInfoScRspOuterClass.java @@ -19,12 +19,12 @@ public static final class GetCurSceneInfoScRsp extends ProtoMessageoptional uint32 retcode = 8; + * optional uint32 retcode = 1; */ private int retcode; /** - * optional .SceneInfo scene = 10; + * optional .SceneInfo scene = 15; */ private final SceneInfoOuterClass.SceneInfo scene = SceneInfoOuterClass.SceneInfo.newInstance(); @@ -39,7 +39,7 @@ public static GetCurSceneInfoScRsp newInstance() { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 1; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -47,7 +47,7 @@ public boolean hasRetcode() { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 1; * @return this */ public GetCurSceneInfoScRsp clearRetcode() { @@ -57,7 +57,7 @@ public GetCurSceneInfoScRsp clearRetcode() { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 1; * @return the retcode */ public int getRetcode() { @@ -65,7 +65,7 @@ public int getRetcode() { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 1; * @param value the retcode to set * @return this */ @@ -76,7 +76,7 @@ public GetCurSceneInfoScRsp setRetcode(final int value) { } /** - * optional .SceneInfo scene = 10; + * optional .SceneInfo scene = 15; * @return whether the scene field is set */ public boolean hasScene() { @@ -84,7 +84,7 @@ public boolean hasScene() { } /** - * optional .SceneInfo scene = 10; + * optional .SceneInfo scene = 15; * @return this */ public GetCurSceneInfoScRsp clearScene() { @@ -94,7 +94,7 @@ public GetCurSceneInfoScRsp clearScene() { } /** - * optional .SceneInfo scene = 10; + * optional .SceneInfo scene = 15; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -108,7 +108,7 @@ public SceneInfoOuterClass.SceneInfo getScene() { } /** - * optional .SceneInfo scene = 10; + * optional .SceneInfo scene = 15; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -122,7 +122,7 @@ public SceneInfoOuterClass.SceneInfo getMutableScene() { } /** - * optional .SceneInfo scene = 10; + * optional .SceneInfo scene = 15; * @param value the scene to set * @return this */ @@ -198,11 +198,11 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 8); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 82); + output.writeRawByte((byte) 122); output.writeMessageNoTag(scene); } } @@ -226,16 +226,16 @@ public GetCurSceneInfoScRsp mergeFrom(final ProtoSource input) throws IOExceptio int tag = input.readTag(); while (true) { switch (tag) { - case 64: { + case 8: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 82) { + if (tag != 122) { break; } } - case 82: { + case 122: { // scene input.readMessage(scene); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/GetEnteredSceneScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetEnteredSceneScRspOuterClass.java index 075356005..9506cc429 100644 --- a/src/generated/main/emu/lunarcore/proto/GetEnteredSceneScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetEnteredSceneScRspOuterClass.java @@ -20,12 +20,12 @@ public static final class GetEnteredSceneScRsp extends ProtoMessageoptional uint32 retcode = 5; + * optional uint32 retcode = 3; */ private int retcode; /** - * repeated .EnteredSceneInfo entered_scene_info = 8; + * repeated .EnteredSceneInfo entered_scene_info = 4; */ private final RepeatedMessage enteredSceneInfo = RepeatedMessage.newEmptyInstance(EnteredSceneInfoOuterClass.EnteredSceneInfo.getFactory()); @@ -40,7 +40,7 @@ public static GetEnteredSceneScRsp newInstance() { } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 3; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -48,7 +48,7 @@ public boolean hasRetcode() { } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 3; * @return this */ public GetEnteredSceneScRsp clearRetcode() { @@ -58,7 +58,7 @@ public GetEnteredSceneScRsp clearRetcode() { } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 3; * @return the retcode */ public int getRetcode() { @@ -66,7 +66,7 @@ public int getRetcode() { } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 3; * @param value the retcode to set * @return this */ @@ -77,7 +77,7 @@ public GetEnteredSceneScRsp setRetcode(final int value) { } /** - * repeated .EnteredSceneInfo entered_scene_info = 8; + * repeated .EnteredSceneInfo entered_scene_info = 4; * @return whether the enteredSceneInfo field is set */ public boolean hasEnteredSceneInfo() { @@ -85,7 +85,7 @@ public boolean hasEnteredSceneInfo() { } /** - * repeated .EnteredSceneInfo entered_scene_info = 8; + * repeated .EnteredSceneInfo entered_scene_info = 4; * @return this */ public GetEnteredSceneScRsp clearEnteredSceneInfo() { @@ -95,7 +95,7 @@ public GetEnteredSceneScRsp clearEnteredSceneInfo() { } /** - * repeated .EnteredSceneInfo entered_scene_info = 8; + * repeated .EnteredSceneInfo entered_scene_info = 4; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -109,7 +109,7 @@ public RepeatedMessage getEnteredSc } /** - * repeated .EnteredSceneInfo entered_scene_info = 8; + * repeated .EnteredSceneInfo entered_scene_info = 4; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -124,7 +124,7 @@ public RepeatedMessage getMutableEn } /** - * repeated .EnteredSceneInfo entered_scene_info = 8; + * repeated .EnteredSceneInfo entered_scene_info = 4; * @param value the enteredSceneInfo to add * @return this */ @@ -136,7 +136,7 @@ public GetEnteredSceneScRsp addEnteredSceneInfo( } /** - * repeated .EnteredSceneInfo entered_scene_info = 8; + * repeated .EnteredSceneInfo entered_scene_info = 4; * @param values the enteredSceneInfo to add * @return this */ @@ -213,12 +213,12 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 24); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < enteredSceneInfo.length(); i++) { - output.writeRawByte((byte) 66); + output.writeRawByte((byte) 34); output.writeMessageNoTag(enteredSceneInfo.get(i)); } } @@ -243,16 +243,16 @@ public GetEnteredSceneScRsp mergeFrom(final ProtoSource input) throws IOExceptio int tag = input.readTag(); while (true) { switch (tag) { - case 40: { + case 24: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 66) { + if (tag != 34) { break; } } - case 66: { + case 34: { // enteredSceneInfo tag = input.readRepeatedMessage(enteredSceneInfo, tag); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/GetFirstTalkByPerformanceNpcCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetFirstTalkByPerformanceNpcCsReqOuterClass.java index e368eab54..5340f10ef 100644 --- a/src/generated/main/emu/lunarcore/proto/GetFirstTalkByPerformanceNpcCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetFirstTalkByPerformanceNpcCsReqOuterClass.java @@ -20,7 +20,7 @@ public static final class GetFirstTalkByPerformanceNpcCsReq extends ProtoMessage private static final long serialVersionUID = 0L; /** - * repeated uint32 npc_talk_list = 4; + * repeated uint32 npc_talk_list = 2; */ private final RepeatedInt npcTalkList = RepeatedInt.newEmptyInstance(); @@ -35,7 +35,7 @@ public static GetFirstTalkByPerformanceNpcCsReq newInstance() { } /** - * repeated uint32 npc_talk_list = 4; + * repeated uint32 npc_talk_list = 2; * @return whether the npcTalkList field is set */ public boolean hasNpcTalkList() { @@ -43,7 +43,7 @@ public boolean hasNpcTalkList() { } /** - * repeated uint32 npc_talk_list = 4; + * repeated uint32 npc_talk_list = 2; * @return this */ public GetFirstTalkByPerformanceNpcCsReq clearNpcTalkList() { @@ -53,7 +53,7 @@ public GetFirstTalkByPerformanceNpcCsReq clearNpcTalkList() { } /** - * repeated uint32 npc_talk_list = 4; + * repeated uint32 npc_talk_list = 2; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -67,7 +67,7 @@ public RepeatedInt getNpcTalkList() { } /** - * repeated uint32 npc_talk_list = 4; + * repeated uint32 npc_talk_list = 2; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -81,7 +81,7 @@ public RepeatedInt getMutableNpcTalkList() { } /** - * repeated uint32 npc_talk_list = 4; + * repeated uint32 npc_talk_list = 2; * @param value the npcTalkList to add * @return this */ @@ -92,7 +92,7 @@ public GetFirstTalkByPerformanceNpcCsReq addNpcTalkList(final int value) { } /** - * repeated uint32 npc_talk_list = 4; + * repeated uint32 npc_talk_list = 2; * @param values the npcTalkList to add * @return this */ @@ -165,7 +165,7 @@ public boolean equals(Object o) { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { for (int i = 0; i < npcTalkList.length(); i++) { - output.writeRawByte((byte) 32); + output.writeRawByte((byte) 16); output.writeUInt32NoTag(npcTalkList.array()[i]); } } @@ -187,7 +187,7 @@ public GetFirstTalkByPerformanceNpcCsReq mergeFrom(final ProtoSource input) thro int tag = input.readTag(); while (true) { switch (tag) { - case 34: { + case 18: { // npcTalkList [packed=true] input.readPackedUInt32(npcTalkList, tag); bitField0_ |= 0x00000001; @@ -206,7 +206,7 @@ public GetFirstTalkByPerformanceNpcCsReq mergeFrom(final ProtoSource input) thro tag = input.readTag(); break; } - case 32: { + case 16: { // npcTalkList [packed=false] tag = input.readRepeatedUInt32(npcTalkList, tag); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/GetFirstTalkByPerformanceNpcScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetFirstTalkByPerformanceNpcScRspOuterClass.java index 3061819f1..811b5c2a8 100644 --- a/src/generated/main/emu/lunarcore/proto/GetFirstTalkByPerformanceNpcScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetFirstTalkByPerformanceNpcScRspOuterClass.java @@ -20,12 +20,12 @@ public static final class GetFirstTalkByPerformanceNpcScRsp extends ProtoMessage private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 8; */ private int retcode; /** - * repeated .NpcTalkInfo npc_talk_info_list = 13; + * repeated .NpcTalkInfo npc_talk_info_list = 11; */ private final RepeatedMessage npcTalkInfoList = RepeatedMessage.newEmptyInstance(NpcTalkInfoOuterClass.NpcTalkInfo.getFactory()); @@ -40,7 +40,7 @@ public static GetFirstTalkByPerformanceNpcScRsp newInstance() { } /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 8; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -48,7 +48,7 @@ public boolean hasRetcode() { } /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 8; * @return this */ public GetFirstTalkByPerformanceNpcScRsp clearRetcode() { @@ -58,7 +58,7 @@ public GetFirstTalkByPerformanceNpcScRsp clearRetcode() { } /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 8; * @return the retcode */ public int getRetcode() { @@ -66,7 +66,7 @@ public int getRetcode() { } /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 8; * @param value the retcode to set * @return this */ @@ -77,7 +77,7 @@ public GetFirstTalkByPerformanceNpcScRsp setRetcode(final int value) { } /** - * repeated .NpcTalkInfo npc_talk_info_list = 13; + * repeated .NpcTalkInfo npc_talk_info_list = 11; * @return whether the npcTalkInfoList field is set */ public boolean hasNpcTalkInfoList() { @@ -85,7 +85,7 @@ public boolean hasNpcTalkInfoList() { } /** - * repeated .NpcTalkInfo npc_talk_info_list = 13; + * repeated .NpcTalkInfo npc_talk_info_list = 11; * @return this */ public GetFirstTalkByPerformanceNpcScRsp clearNpcTalkInfoList() { @@ -95,7 +95,7 @@ public GetFirstTalkByPerformanceNpcScRsp clearNpcTalkInfoList() { } /** - * repeated .NpcTalkInfo npc_talk_info_list = 13; + * repeated .NpcTalkInfo npc_talk_info_list = 11; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -109,7 +109,7 @@ public RepeatedMessage getNpcTalkInfoList() { } /** - * repeated .NpcTalkInfo npc_talk_info_list = 13; + * repeated .NpcTalkInfo npc_talk_info_list = 11; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -123,7 +123,7 @@ public RepeatedMessage getMutableNpcTalkInfoL } /** - * repeated .NpcTalkInfo npc_talk_info_list = 13; + * repeated .NpcTalkInfo npc_talk_info_list = 11; * @param value the npcTalkInfoList to add * @return this */ @@ -135,7 +135,7 @@ public GetFirstTalkByPerformanceNpcScRsp addNpcTalkInfoList( } /** - * repeated .NpcTalkInfo npc_talk_info_list = 13; + * repeated .NpcTalkInfo npc_talk_info_list = 11; * @param values the npcTalkInfoList to add * @return this */ @@ -214,12 +214,12 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 64); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < npcTalkInfoList.length(); i++) { - output.writeRawByte((byte) 106); + output.writeRawByte((byte) 90); output.writeMessageNoTag(npcTalkInfoList.get(i)); } } @@ -244,16 +244,16 @@ public GetFirstTalkByPerformanceNpcScRsp mergeFrom(final ProtoSource input) thro int tag = input.readTag(); while (true) { switch (tag) { - case 56: { + case 64: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 106) { + if (tag != 90) { break; } } - case 106: { + case 90: { // npcTalkInfoList tag = input.readRepeatedMessage(npcTalkInfoList, tag); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/GetFriendApplyListInfoScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetFriendApplyListInfoScRspOuterClass.java index 2545352fe..02c9f3619 100644 --- a/src/generated/main/emu/lunarcore/proto/GetFriendApplyListInfoScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetFriendApplyListInfoScRspOuterClass.java @@ -20,14 +20,14 @@ public static final class GetFriendApplyListInfoScRsp extends ProtoMessageoptional uint32 retcode = 4; + * optional uint32 retcode = 3; */ private int retcode; /** - * repeated .FriendApplyListInfo friend_apply_list = 8; + * repeated .FriendApplyInfo friend_apply_list = 1; */ - private final RepeatedMessage friendApplyList = RepeatedMessage.newEmptyInstance(FriendApplyListInfoOuterClass.FriendApplyListInfo.getFactory()); + private final RepeatedMessage friendApplyList = RepeatedMessage.newEmptyInstance(FriendApplyInfoOuterClass.FriendApplyInfo.getFactory()); private GetFriendApplyListInfoScRsp() { } @@ -40,7 +40,7 @@ public static GetFriendApplyListInfoScRsp newInstance() { } /** - * optional uint32 retcode = 4; + * optional uint32 retcode = 3; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -48,7 +48,7 @@ public boolean hasRetcode() { } /** - * optional uint32 retcode = 4; + * optional uint32 retcode = 3; * @return this */ public GetFriendApplyListInfoScRsp clearRetcode() { @@ -58,7 +58,7 @@ public GetFriendApplyListInfoScRsp clearRetcode() { } /** - * optional uint32 retcode = 4; + * optional uint32 retcode = 3; * @return the retcode */ public int getRetcode() { @@ -66,7 +66,7 @@ public int getRetcode() { } /** - * optional uint32 retcode = 4; + * optional uint32 retcode = 3; * @param value the retcode to set * @return this */ @@ -77,7 +77,7 @@ public GetFriendApplyListInfoScRsp setRetcode(final int value) { } /** - * repeated .FriendApplyListInfo friend_apply_list = 8; + * repeated .FriendApplyInfo friend_apply_list = 1; * @return whether the friendApplyList field is set */ public boolean hasFriendApplyList() { @@ -85,7 +85,7 @@ public boolean hasFriendApplyList() { } /** - * repeated .FriendApplyListInfo friend_apply_list = 8; + * repeated .FriendApplyInfo friend_apply_list = 1; * @return this */ public GetFriendApplyListInfoScRsp clearFriendApplyList() { @@ -95,7 +95,7 @@ public GetFriendApplyListInfoScRsp clearFriendApplyList() { } /** - * repeated .FriendApplyListInfo friend_apply_list = 8; + * repeated .FriendApplyInfo friend_apply_list = 1; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -104,12 +104,12 @@ public GetFriendApplyListInfoScRsp clearFriendApplyList() { * * @return internal storage object for reading */ - public RepeatedMessage getFriendApplyList() { + public RepeatedMessage getFriendApplyList() { return friendApplyList; } /** - * repeated .FriendApplyListInfo friend_apply_list = 8; + * repeated .FriendApplyInfo friend_apply_list = 1; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -117,31 +117,30 @@ public RepeatedMessage getFri * * @return internal storage object for modifications */ - public RepeatedMessage getMutableFriendApplyList( - ) { + public RepeatedMessage getMutableFriendApplyList() { bitField0_ |= 0x00000002; return friendApplyList; } /** - * repeated .FriendApplyListInfo friend_apply_list = 8; + * repeated .FriendApplyInfo friend_apply_list = 1; * @param value the friendApplyList to add * @return this */ public GetFriendApplyListInfoScRsp addFriendApplyList( - final FriendApplyListInfoOuterClass.FriendApplyListInfo value) { + final FriendApplyInfoOuterClass.FriendApplyInfo value) { bitField0_ |= 0x00000002; friendApplyList.add(value); return this; } /** - * repeated .FriendApplyListInfo friend_apply_list = 8; + * repeated .FriendApplyInfo friend_apply_list = 1; * @param values the friendApplyList to add * @return this */ public GetFriendApplyListInfoScRsp addAllFriendApplyList( - final FriendApplyListInfoOuterClass.FriendApplyListInfo... values) { + final FriendApplyInfoOuterClass.FriendApplyInfo... values) { bitField0_ |= 0x00000002; friendApplyList.addAll(values); return this; @@ -213,12 +212,12 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 32); + output.writeRawByte((byte) 24); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < friendApplyList.length(); i++) { - output.writeRawByte((byte) 66); + output.writeRawByte((byte) 10); output.writeMessageNoTag(friendApplyList.get(i)); } } @@ -243,16 +242,16 @@ public GetFriendApplyListInfoScRsp mergeFrom(final ProtoSource input) throws IOE int tag = input.readTag(); while (true) { switch (tag) { - case 32: { + case 24: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 66) { + if (tag != 10) { break; } } - case 66: { + case 10: { // friendApplyList tag = input.readRepeatedMessage(friendApplyList, tag); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/GetFriendListInfoScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetFriendListInfoScRspOuterClass.java index 9f47aaaf2..e3af62198 100644 --- a/src/generated/main/emu/lunarcore/proto/GetFriendListInfoScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetFriendListInfoScRspOuterClass.java @@ -20,19 +20,19 @@ public static final class GetFriendListInfoScRsp extends ProtoMessageoptional uint32 retcode = 7; + * optional uint32 retcode = 14; */ private int retcode; /** - * repeated .FriendListInfo friend_list = 4; + * repeated .SimpleInfo simple_info = 1; */ - private final RepeatedMessage friendList = RepeatedMessage.newEmptyInstance(FriendListInfoOuterClass.FriendListInfo.getFactory()); + private final RepeatedMessage simpleInfo = RepeatedMessage.newEmptyInstance(SimpleInfoOuterClass.SimpleInfo.getFactory()); /** - * repeated .SimpleInfo simple_info = 9; + * repeated .FriendListInfo friend_list = 3; */ - private final RepeatedMessage simpleInfo = RepeatedMessage.newEmptyInstance(SimpleInfoOuterClass.SimpleInfo.getFactory()); + private final RepeatedMessage friendList = RepeatedMessage.newEmptyInstance(FriendListInfoOuterClass.FriendListInfo.getFactory()); private GetFriendListInfoScRsp() { } @@ -45,7 +45,7 @@ public static GetFriendListInfoScRsp newInstance() { } /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 14; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -53,7 +53,7 @@ public boolean hasRetcode() { } /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 14; * @return this */ public GetFriendListInfoScRsp clearRetcode() { @@ -63,7 +63,7 @@ public GetFriendListInfoScRsp clearRetcode() { } /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 14; * @return the retcode */ public int getRetcode() { @@ -71,7 +71,7 @@ public int getRetcode() { } /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 14; * @param value the retcode to set * @return this */ @@ -82,39 +82,39 @@ public GetFriendListInfoScRsp setRetcode(final int value) { } /** - * repeated .FriendListInfo friend_list = 4; - * @return whether the friendList field is set + * repeated .SimpleInfo simple_info = 1; + * @return whether the simpleInfo field is set */ - public boolean hasFriendList() { + public boolean hasSimpleInfo() { return (bitField0_ & 0x00000002) != 0; } /** - * repeated .FriendListInfo friend_list = 4; + * repeated .SimpleInfo simple_info = 1; * @return this */ - public GetFriendListInfoScRsp clearFriendList() { + public GetFriendListInfoScRsp clearSimpleInfo() { bitField0_ &= ~0x00000002; - friendList.clear(); + simpleInfo.clear(); return this; } /** - * repeated .FriendListInfo friend_list = 4; + * repeated .SimpleInfo simple_info = 1; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableFriendList()} if you want to modify it. + * Use {@link #getMutableSimpleInfo()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedMessage getFriendList() { - return friendList; + public RepeatedMessage getSimpleInfo() { + return simpleInfo; } /** - * repeated .FriendListInfo friend_list = 4; + * repeated .SimpleInfo simple_info = 1; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -122,69 +122,68 @@ public RepeatedMessage getFriendList() * * @return internal storage object for modifications */ - public RepeatedMessage getMutableFriendList() { + public RepeatedMessage getMutableSimpleInfo() { bitField0_ |= 0x00000002; - return friendList; + return simpleInfo; } /** - * repeated .FriendListInfo friend_list = 4; - * @param value the friendList to add + * repeated .SimpleInfo simple_info = 1; + * @param value the simpleInfo to add * @return this */ - public GetFriendListInfoScRsp addFriendList( - final FriendListInfoOuterClass.FriendListInfo value) { + public GetFriendListInfoScRsp addSimpleInfo(final SimpleInfoOuterClass.SimpleInfo value) { bitField0_ |= 0x00000002; - friendList.add(value); + simpleInfo.add(value); return this; } /** - * repeated .FriendListInfo friend_list = 4; - * @param values the friendList to add + * repeated .SimpleInfo simple_info = 1; + * @param values the simpleInfo to add * @return this */ - public GetFriendListInfoScRsp addAllFriendList( - final FriendListInfoOuterClass.FriendListInfo... values) { + public GetFriendListInfoScRsp addAllSimpleInfo( + final SimpleInfoOuterClass.SimpleInfo... values) { bitField0_ |= 0x00000002; - friendList.addAll(values); + simpleInfo.addAll(values); return this; } /** - * repeated .SimpleInfo simple_info = 9; - * @return whether the simpleInfo field is set + * repeated .FriendListInfo friend_list = 3; + * @return whether the friendList field is set */ - public boolean hasSimpleInfo() { + public boolean hasFriendList() { return (bitField0_ & 0x00000004) != 0; } /** - * repeated .SimpleInfo simple_info = 9; + * repeated .FriendListInfo friend_list = 3; * @return this */ - public GetFriendListInfoScRsp clearSimpleInfo() { + public GetFriendListInfoScRsp clearFriendList() { bitField0_ &= ~0x00000004; - simpleInfo.clear(); + friendList.clear(); return this; } /** - * repeated .SimpleInfo simple_info = 9; + * repeated .FriendListInfo friend_list = 3; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableSimpleInfo()} if you want to modify it. + * Use {@link #getMutableFriendList()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedMessage getSimpleInfo() { - return simpleInfo; + public RepeatedMessage getFriendList() { + return friendList; } /** - * repeated .SimpleInfo simple_info = 9; + * repeated .FriendListInfo friend_list = 3; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -192,31 +191,32 @@ public RepeatedMessage getSimpleInfo() { * * @return internal storage object for modifications */ - public RepeatedMessage getMutableSimpleInfo() { + public RepeatedMessage getMutableFriendList() { bitField0_ |= 0x00000004; - return simpleInfo; + return friendList; } /** - * repeated .SimpleInfo simple_info = 9; - * @param value the simpleInfo to add + * repeated .FriendListInfo friend_list = 3; + * @param value the friendList to add * @return this */ - public GetFriendListInfoScRsp addSimpleInfo(final SimpleInfoOuterClass.SimpleInfo value) { + public GetFriendListInfoScRsp addFriendList( + final FriendListInfoOuterClass.FriendListInfo value) { bitField0_ |= 0x00000004; - simpleInfo.add(value); + friendList.add(value); return this; } /** - * repeated .SimpleInfo simple_info = 9; - * @param values the simpleInfo to add + * repeated .FriendListInfo friend_list = 3; + * @param values the friendList to add * @return this */ - public GetFriendListInfoScRsp addAllSimpleInfo( - final SimpleInfoOuterClass.SimpleInfo... values) { + public GetFriendListInfoScRsp addAllFriendList( + final FriendListInfoOuterClass.FriendListInfo... values) { bitField0_ |= 0x00000004; - simpleInfo.addAll(values); + friendList.addAll(values); return this; } @@ -226,8 +226,8 @@ public GetFriendListInfoScRsp copyFrom(final GetFriendListInfoScRsp other) { if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; retcode = other.retcode; - friendList.copyFrom(other.friendList); simpleInfo.copyFrom(other.simpleInfo); + friendList.copyFrom(other.friendList); } return this; } @@ -241,12 +241,12 @@ public GetFriendListInfoScRsp mergeFrom(final GetFriendListInfoScRsp other) { if (other.hasRetcode()) { setRetcode(other.retcode); } - if (other.hasFriendList()) { - getMutableFriendList().addAll(other.friendList); - } if (other.hasSimpleInfo()) { getMutableSimpleInfo().addAll(other.simpleInfo); } + if (other.hasFriendList()) { + getMutableFriendList().addAll(other.friendList); + } return this; } @@ -258,8 +258,8 @@ public GetFriendListInfoScRsp clear() { cachedSize = -1; bitField0_ = 0; retcode = 0; - friendList.clear(); simpleInfo.clear(); + friendList.clear(); return this; } @@ -270,8 +270,8 @@ public GetFriendListInfoScRsp clearQuick() { } cachedSize = -1; bitField0_ = 0; - friendList.clearQuick(); simpleInfo.clearQuick(); + friendList.clearQuick(); return this; } @@ -286,26 +286,26 @@ public boolean equals(Object o) { GetFriendListInfoScRsp other = (GetFriendListInfoScRsp) o; return bitField0_ == other.bitField0_ && (!hasRetcode() || retcode == other.retcode) - && (!hasFriendList() || friendList.equals(other.friendList)) - && (!hasSimpleInfo() || simpleInfo.equals(other.simpleInfo)); + && (!hasSimpleInfo() || simpleInfo.equals(other.simpleInfo)) + && (!hasFriendList() || friendList.equals(other.friendList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 112); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - for (int i = 0; i < friendList.length(); i++) { - output.writeRawByte((byte) 34); - output.writeMessageNoTag(friendList.get(i)); + for (int i = 0; i < simpleInfo.length(); i++) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(simpleInfo.get(i)); } } if ((bitField0_ & 0x00000004) != 0) { - for (int i = 0; i < simpleInfo.length(); i++) { - output.writeRawByte((byte) 74); - output.writeMessageNoTag(simpleInfo.get(i)); + for (int i = 0; i < friendList.length(); i++) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(friendList.get(i)); } } } @@ -317,10 +317,10 @@ protected int computeSerializedSize() { size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - size += (1 * friendList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(friendList); + size += (1 * simpleInfo.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(simpleInfo); } if ((bitField0_ & 0x00000004) != 0) { - size += (1 * simpleInfo.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(simpleInfo); + size += (1 * friendList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(friendList); } return size; } @@ -332,26 +332,26 @@ public GetFriendListInfoScRsp mergeFrom(final ProtoSource input) throws IOExcept int tag = input.readTag(); while (true) { switch (tag) { - case 56: { + case 112: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 34) { + if (tag != 10) { break; } } - case 34: { - // friendList - tag = input.readRepeatedMessage(friendList, tag); + case 10: { + // simpleInfo + tag = input.readRepeatedMessage(simpleInfo, tag); bitField0_ |= 0x00000002; - if (tag != 74) { + if (tag != 26) { break; } } - case 74: { - // simpleInfo - tag = input.readRepeatedMessage(simpleInfo, tag); + case 26: { + // friendList + tag = input.readRepeatedMessage(friendList, tag); bitField0_ |= 0x00000004; if (tag != 0) { break; @@ -378,10 +378,10 @@ public void writeTo(final JsonSink output) throws IOException { output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRepeatedMessage(FieldNames.friendList, friendList); + output.writeRepeatedMessage(FieldNames.simpleInfo, simpleInfo); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRepeatedMessage(FieldNames.simpleInfo, simpleInfo); + output.writeRepeatedMessage(FieldNames.friendList, friendList); } output.endObject(); } @@ -404,11 +404,11 @@ public GetFriendListInfoScRsp mergeFrom(final JsonSource input) throws IOExcepti } break; } - case -1756909476: - case 1388007839: { - if (input.isAtField(FieldNames.friendList)) { + case -1431903872: + case -1419171045: { + if (input.isAtField(FieldNames.simpleInfo)) { if (!input.trySkipNullValue()) { - input.readRepeatedMessage(friendList); + input.readRepeatedMessage(simpleInfo); bitField0_ |= 0x00000002; } } else { @@ -416,11 +416,11 @@ public GetFriendListInfoScRsp mergeFrom(final JsonSource input) throws IOExcepti } break; } - case -1431903872: - case -1419171045: { - if (input.isAtField(FieldNames.simpleInfo)) { + case -1756909476: + case 1388007839: { + if (input.isAtField(FieldNames.friendList)) { if (!input.trySkipNullValue()) { - input.readRepeatedMessage(simpleInfo); + input.readRepeatedMessage(friendList); bitField0_ |= 0x00000004; } } else { @@ -483,9 +483,9 @@ public GetFriendListInfoScRsp create() { static class FieldNames { static final FieldName retcode = FieldName.forField("retcode"); - static final FieldName friendList = FieldName.forField("friendList", "friend_list"); - static final FieldName simpleInfo = FieldName.forField("simpleInfo", "simple_info"); + + static final FieldName friendList = FieldName.forField("friendList", "friend_list"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/GetFriendLoginInfoScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetFriendLoginInfoScRspOuterClass.java index d4f885f30..83e99f063 100644 --- a/src/generated/main/emu/lunarcore/proto/GetFriendLoginInfoScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetFriendLoginInfoScRspOuterClass.java @@ -20,30 +20,20 @@ public static final class GetFriendLoginInfoScRsp extends ProtoMessageoptional uint32 retcode = 5; + * optional uint32 retcode = 11; */ private int retcode; /** - * optional bool show_red_dot_flag = 1; + * repeated uint32 friend_uid_list = 5; */ - private boolean showRedDotFlag; - - /** - * optional bool is_allow_other_apply = 10; - */ - private boolean isAllowOtherApply; + private final RepeatedInt friendUidList = RepeatedInt.newEmptyInstance(); /** - * repeated uint32 black_uid_list = 4; + * repeated uint32 black_uid_list = 15; */ private final RepeatedInt blackUidList = RepeatedInt.newEmptyInstance(); - /** - * repeated uint32 friend_uid_list = 14; - */ - private final RepeatedInt friendUidList = RepeatedInt.newEmptyInstance(); - private GetFriendLoginInfoScRsp() { } @@ -55,7 +45,7 @@ public static GetFriendLoginInfoScRsp newInstance() { } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 11; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -63,7 +53,7 @@ public boolean hasRetcode() { } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 11; * @return this */ public GetFriendLoginInfoScRsp clearRetcode() { @@ -73,7 +63,7 @@ public GetFriendLoginInfoScRsp clearRetcode() { } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 11; * @return the retcode */ public int getRetcode() { @@ -81,7 +71,7 @@ public int getRetcode() { } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 11; * @param value the retcode to set * @return this */ @@ -92,99 +82,93 @@ public GetFriendLoginInfoScRsp setRetcode(final int value) { } /** - * optional bool show_red_dot_flag = 1; - * @return whether the showRedDotFlag field is set + * repeated uint32 friend_uid_list = 5; + * @return whether the friendUidList field is set */ - public boolean hasShowRedDotFlag() { + public boolean hasFriendUidList() { return (bitField0_ & 0x00000002) != 0; } /** - * optional bool show_red_dot_flag = 1; + * repeated uint32 friend_uid_list = 5; * @return this */ - public GetFriendLoginInfoScRsp clearShowRedDotFlag() { + public GetFriendLoginInfoScRsp clearFriendUidList() { bitField0_ &= ~0x00000002; - showRedDotFlag = false; + friendUidList.clear(); return this; } /** - * optional bool show_red_dot_flag = 1; - * @return the showRedDotFlag + * repeated uint32 friend_uid_list = 5; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableFriendUidList()} if you want to modify it. + * + * @return internal storage object for reading */ - public boolean getShowRedDotFlag() { - return showRedDotFlag; + public RepeatedInt getFriendUidList() { + return friendUidList; } /** - * optional bool show_red_dot_flag = 1; - * @param value the showRedDotFlag to set - * @return this + * repeated uint32 friend_uid_list = 5; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications */ - public GetFriendLoginInfoScRsp setShowRedDotFlag(final boolean value) { + public RepeatedInt getMutableFriendUidList() { bitField0_ |= 0x00000002; - showRedDotFlag = value; - return this; - } - - /** - * optional bool is_allow_other_apply = 10; - * @return whether the isAllowOtherApply field is set - */ - public boolean hasIsAllowOtherApply() { - return (bitField0_ & 0x00000004) != 0; + return friendUidList; } /** - * optional bool is_allow_other_apply = 10; + * repeated uint32 friend_uid_list = 5; + * @param value the friendUidList to add * @return this */ - public GetFriendLoginInfoScRsp clearIsAllowOtherApply() { - bitField0_ &= ~0x00000004; - isAllowOtherApply = false; + public GetFriendLoginInfoScRsp addFriendUidList(final int value) { + bitField0_ |= 0x00000002; + friendUidList.add(value); return this; } /** - * optional bool is_allow_other_apply = 10; - * @return the isAllowOtherApply - */ - public boolean getIsAllowOtherApply() { - return isAllowOtherApply; - } - - /** - * optional bool is_allow_other_apply = 10; - * @param value the isAllowOtherApply to set + * repeated uint32 friend_uid_list = 5; + * @param values the friendUidList to add * @return this */ - public GetFriendLoginInfoScRsp setIsAllowOtherApply(final boolean value) { - bitField0_ |= 0x00000004; - isAllowOtherApply = value; + public GetFriendLoginInfoScRsp addAllFriendUidList(final int... values) { + bitField0_ |= 0x00000002; + friendUidList.addAll(values); return this; } /** - * repeated uint32 black_uid_list = 4; + * repeated uint32 black_uid_list = 15; * @return whether the blackUidList field is set */ public boolean hasBlackUidList() { - return (bitField0_ & 0x00000008) != 0; + return (bitField0_ & 0x00000004) != 0; } /** - * repeated uint32 black_uid_list = 4; + * repeated uint32 black_uid_list = 15; * @return this */ public GetFriendLoginInfoScRsp clearBlackUidList() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000004; blackUidList.clear(); return this; } /** - * repeated uint32 black_uid_list = 4; + * repeated uint32 black_uid_list = 15; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -198,7 +182,7 @@ public RepeatedInt getBlackUidList() { } /** - * repeated uint32 black_uid_list = 4; + * repeated uint32 black_uid_list = 15; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -207,110 +191,40 @@ public RepeatedInt getBlackUidList() { * @return internal storage object for modifications */ public RepeatedInt getMutableBlackUidList() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; return blackUidList; } /** - * repeated uint32 black_uid_list = 4; + * repeated uint32 black_uid_list = 15; * @param value the blackUidList to add * @return this */ public GetFriendLoginInfoScRsp addBlackUidList(final int value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; blackUidList.add(value); return this; } /** - * repeated uint32 black_uid_list = 4; + * repeated uint32 black_uid_list = 15; * @param values the blackUidList to add * @return this */ public GetFriendLoginInfoScRsp addAllBlackUidList(final int... values) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; blackUidList.addAll(values); return this; } - /** - * repeated uint32 friend_uid_list = 14; - * @return whether the friendUidList field is set - */ - public boolean hasFriendUidList() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - * repeated uint32 friend_uid_list = 14; - * @return this - */ - public GetFriendLoginInfoScRsp clearFriendUidList() { - bitField0_ &= ~0x00000010; - friendUidList.clear(); - return this; - } - - /** - * repeated uint32 friend_uid_list = 14; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableFriendUidList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedInt getFriendUidList() { - return friendUidList; - } - - /** - * repeated uint32 friend_uid_list = 14; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedInt getMutableFriendUidList() { - bitField0_ |= 0x00000010; - return friendUidList; - } - - /** - * repeated uint32 friend_uid_list = 14; - * @param value the friendUidList to add - * @return this - */ - public GetFriendLoginInfoScRsp addFriendUidList(final int value) { - bitField0_ |= 0x00000010; - friendUidList.add(value); - return this; - } - - /** - * repeated uint32 friend_uid_list = 14; - * @param values the friendUidList to add - * @return this - */ - public GetFriendLoginInfoScRsp addAllFriendUidList(final int... values) { - bitField0_ |= 0x00000010; - friendUidList.addAll(values); - return this; - } - @Override public GetFriendLoginInfoScRsp copyFrom(final GetFriendLoginInfoScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; retcode = other.retcode; - showRedDotFlag = other.showRedDotFlag; - isAllowOtherApply = other.isAllowOtherApply; - blackUidList.copyFrom(other.blackUidList); friendUidList.copyFrom(other.friendUidList); + blackUidList.copyFrom(other.blackUidList); } return this; } @@ -324,18 +238,12 @@ public GetFriendLoginInfoScRsp mergeFrom(final GetFriendLoginInfoScRsp other) { if (other.hasRetcode()) { setRetcode(other.retcode); } - if (other.hasShowRedDotFlag()) { - setShowRedDotFlag(other.showRedDotFlag); - } - if (other.hasIsAllowOtherApply()) { - setIsAllowOtherApply(other.isAllowOtherApply); + if (other.hasFriendUidList()) { + getMutableFriendUidList().addAll(other.friendUidList); } if (other.hasBlackUidList()) { getMutableBlackUidList().addAll(other.blackUidList); } - if (other.hasFriendUidList()) { - getMutableFriendUidList().addAll(other.friendUidList); - } return this; } @@ -347,10 +255,8 @@ public GetFriendLoginInfoScRsp clear() { cachedSize = -1; bitField0_ = 0; retcode = 0; - showRedDotFlag = false; - isAllowOtherApply = false; - blackUidList.clear(); friendUidList.clear(); + blackUidList.clear(); return this; } @@ -361,8 +267,8 @@ public GetFriendLoginInfoScRsp clearQuick() { } cachedSize = -1; bitField0_ = 0; - blackUidList.clear(); friendUidList.clear(); + blackUidList.clear(); return this; } @@ -377,38 +283,28 @@ public boolean equals(Object o) { GetFriendLoginInfoScRsp other = (GetFriendLoginInfoScRsp) o; return bitField0_ == other.bitField0_ && (!hasRetcode() || retcode == other.retcode) - && (!hasShowRedDotFlag() || showRedDotFlag == other.showRedDotFlag) - && (!hasIsAllowOtherApply() || isAllowOtherApply == other.isAllowOtherApply) - && (!hasBlackUidList() || blackUidList.equals(other.blackUidList)) - && (!hasFriendUidList() || friendUidList.equals(other.friendUidList)); + && (!hasFriendUidList() || friendUidList.equals(other.friendUidList)) + && (!hasBlackUidList() || blackUidList.equals(other.blackUidList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 88); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 8); - output.writeBoolNoTag(showRedDotFlag); + for (int i = 0; i < friendUidList.length(); i++) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(friendUidList.array()[i]); + } } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 80); - output.writeBoolNoTag(isAllowOtherApply); - } - if ((bitField0_ & 0x00000008) != 0) { for (int i = 0; i < blackUidList.length(); i++) { - output.writeRawByte((byte) 32); + output.writeRawByte((byte) 120); output.writeUInt32NoTag(blackUidList.array()[i]); } } - if ((bitField0_ & 0x00000010) != 0) { - for (int i = 0; i < friendUidList.length(); i++) { - output.writeRawByte((byte) 112); - output.writeUInt32NoTag(friendUidList.array()[i]); - } - } } @Override @@ -418,17 +314,11 @@ protected int computeSerializedSize() { size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - size += 2; + size += (1 * friendUidList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(friendUidList); } if ((bitField0_ & 0x00000004) != 0) { - size += 2; - } - if ((bitField0_ & 0x00000008) != 0) { size += (1 * blackUidList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(blackUidList); } - if ((bitField0_ & 0x00000010) != 0) { - size += (1 * friendUidList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(friendUidList); - } return size; } @@ -439,46 +329,28 @@ public GetFriendLoginInfoScRsp mergeFrom(final ProtoSource input) throws IOExcep int tag = input.readTag(); while (true) { switch (tag) { - case 40: { + case 88: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 8) { + if (tag != 42) { break; } } - case 8: { - // showRedDotFlag - showRedDotFlag = input.readBool(); + case 42: { + // friendUidList [packed=true] + input.readPackedUInt32(friendUidList, tag); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 80) { - break; - } - } - case 80: { - // isAllowOtherApply - isAllowOtherApply = input.readBool(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 34) { + if (tag != 122) { break; } } - case 34: { + case 122: { // blackUidList [packed=true] input.readPackedUInt32(blackUidList, tag); - bitField0_ |= 0x00000008; - tag = input.readTag(); - if (tag != 114) { - break; - } - } - case 114: { - // friendUidList [packed=true] - input.readPackedUInt32(friendUidList, tag); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 0) { break; @@ -494,16 +366,16 @@ public GetFriendLoginInfoScRsp mergeFrom(final ProtoSource input) throws IOExcep tag = input.readTag(); break; } - case 32: { - // blackUidList [packed=false] - tag = input.readRepeatedUInt32(blackUidList, tag); - bitField0_ |= 0x00000008; - break; - } - case 112: { + case 40: { // friendUidList [packed=false] tag = input.readRepeatedUInt32(friendUidList, tag); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000002; + break; + } + case 120: { + // blackUidList [packed=false] + tag = input.readRepeatedUInt32(blackUidList, tag); + bitField0_ |= 0x00000004; break; } } @@ -517,17 +389,11 @@ public void writeTo(final JsonSink output) throws IOException { output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeBool(FieldNames.showRedDotFlag, showRedDotFlag); + output.writeRepeatedUInt32(FieldNames.friendUidList, friendUidList); } if ((bitField0_ & 0x00000004) != 0) { - output.writeBool(FieldNames.isAllowOtherApply, isAllowOtherApply); - } - if ((bitField0_ & 0x00000008) != 0) { output.writeRepeatedUInt32(FieldNames.blackUidList, blackUidList); } - if ((bitField0_ & 0x00000010) != 0) { - output.writeRepeatedUInt32(FieldNames.friendUidList, friendUidList); - } output.endObject(); } @@ -549,11 +415,11 @@ public GetFriendLoginInfoScRsp mergeFrom(final JsonSource input) throws IOExcept } break; } - case 197350753: - case 1123923602: { - if (input.isAtField(FieldNames.showRedDotFlag)) { + case 2058895504: + case -2016931922: { + if (input.isAtField(FieldNames.friendUidList)) { if (!input.trySkipNullValue()) { - showRedDotFlag = input.readBool(); + input.readRepeatedUInt32(friendUidList); bitField0_ |= 0x00000002; } } else { @@ -561,36 +427,12 @@ public GetFriendLoginInfoScRsp mergeFrom(final JsonSource input) throws IOExcept } break; } - case 442705885: - case 1355216308: { - if (input.isAtField(FieldNames.isAllowOtherApply)) { - if (!input.trySkipNullValue()) { - isAllowOtherApply = input.readBool(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } case 1562975247: case -1854929043: { if (input.isAtField(FieldNames.blackUidList)) { if (!input.trySkipNullValue()) { input.readRepeatedUInt32(blackUidList); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } - case 2058895504: - case -2016931922: { - if (input.isAtField(FieldNames.friendUidList)) { - if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(friendUidList); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000004; } } else { input.skipUnknownField(); @@ -652,13 +494,9 @@ public GetFriendLoginInfoScRsp create() { static class FieldNames { static final FieldName retcode = FieldName.forField("retcode"); - static final FieldName showRedDotFlag = FieldName.forField("showRedDotFlag", "show_red_dot_flag"); - - static final FieldName isAllowOtherApply = FieldName.forField("isAllowOtherApply", "is_allow_other_apply"); + static final FieldName friendUidList = FieldName.forField("friendUidList", "friend_uid_list"); static final FieldName blackUidList = FieldName.forField("blackUidList", "black_uid_list"); - - static final FieldName friendUidList = FieldName.forField("friendUidList", "friend_uid_list"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/GetFriendRecommendListInfoScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetFriendRecommendListInfoScRspOuterClass.java index 51a27de06..c5ce8f425 100644 --- a/src/generated/main/emu/lunarcore/proto/GetFriendRecommendListInfoScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetFriendRecommendListInfoScRspOuterClass.java @@ -20,12 +20,12 @@ public static final class GetFriendRecommendListInfoScRsp extends ProtoMessageoptional uint32 retcode = 12; + * optional uint32 retcode = 3; */ private int retcode; /** - * repeated .FriendRecommendInfo friend_recommend_list = 5; + * repeated .FriendRecommendInfo friend_recommend_list = 13; */ private final RepeatedMessage friendRecommendList = RepeatedMessage.newEmptyInstance(FriendRecommendInfoOuterClass.FriendRecommendInfo.getFactory()); @@ -40,7 +40,7 @@ public static GetFriendRecommendListInfoScRsp newInstance() { } /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 3; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -48,7 +48,7 @@ public boolean hasRetcode() { } /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 3; * @return this */ public GetFriendRecommendListInfoScRsp clearRetcode() { @@ -58,7 +58,7 @@ public GetFriendRecommendListInfoScRsp clearRetcode() { } /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 3; * @return the retcode */ public int getRetcode() { @@ -66,7 +66,7 @@ public int getRetcode() { } /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 3; * @param value the retcode to set * @return this */ @@ -77,7 +77,7 @@ public GetFriendRecommendListInfoScRsp setRetcode(final int value) { } /** - * repeated .FriendRecommendInfo friend_recommend_list = 5; + * repeated .FriendRecommendInfo friend_recommend_list = 13; * @return whether the friendRecommendList field is set */ public boolean hasFriendRecommendList() { @@ -85,7 +85,7 @@ public boolean hasFriendRecommendList() { } /** - * repeated .FriendRecommendInfo friend_recommend_list = 5; + * repeated .FriendRecommendInfo friend_recommend_list = 13; * @return this */ public GetFriendRecommendListInfoScRsp clearFriendRecommendList() { @@ -95,7 +95,7 @@ public GetFriendRecommendListInfoScRsp clearFriendRecommendList() { } /** - * repeated .FriendRecommendInfo friend_recommend_list = 5; + * repeated .FriendRecommendInfo friend_recommend_list = 13; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -110,7 +110,7 @@ public RepeatedMessage getFri } /** - * repeated .FriendRecommendInfo friend_recommend_list = 5; + * repeated .FriendRecommendInfo friend_recommend_list = 13; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -125,7 +125,7 @@ public RepeatedMessage getMut } /** - * repeated .FriendRecommendInfo friend_recommend_list = 5; + * repeated .FriendRecommendInfo friend_recommend_list = 13; * @param value the friendRecommendList to add * @return this */ @@ -137,7 +137,7 @@ public GetFriendRecommendListInfoScRsp addFriendRecommendList( } /** - * repeated .FriendRecommendInfo friend_recommend_list = 5; + * repeated .FriendRecommendInfo friend_recommend_list = 13; * @param values the friendRecommendList to add * @return this */ @@ -214,12 +214,12 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 24); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < friendRecommendList.length(); i++) { - output.writeRawByte((byte) 42); + output.writeRawByte((byte) 106); output.writeMessageNoTag(friendRecommendList.get(i)); } } @@ -244,16 +244,16 @@ public GetFriendRecommendListInfoScRsp mergeFrom(final ProtoSource input) throws int tag = input.readTag(); while (true) { switch (tag) { - case 96: { + case 24: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 42) { + if (tag != 106) { break; } } - case 42: { + case 106: { // friendRecommendList tag = input.readRepeatedMessage(friendRecommendList, tag); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/GetGachaCeilingCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetGachaCeilingCsReqOuterClass.java index c9ae508d8..a23ac56cb 100644 --- a/src/generated/main/emu/lunarcore/proto/GetGachaCeilingCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetGachaCeilingCsReqOuterClass.java @@ -19,7 +19,7 @@ public static final class GetGachaCeilingCsReq extends ProtoMessageoptional uint32 gacha_type = 4; + * optional uint32 gacha_type = 10; */ private int gachaType; @@ -34,7 +34,7 @@ public static GetGachaCeilingCsReq newInstance() { } /** - * optional uint32 gacha_type = 4; + * optional uint32 gacha_type = 10; * @return whether the gachaType field is set */ public boolean hasGachaType() { @@ -42,7 +42,7 @@ public boolean hasGachaType() { } /** - * optional uint32 gacha_type = 4; + * optional uint32 gacha_type = 10; * @return this */ public GetGachaCeilingCsReq clearGachaType() { @@ -52,7 +52,7 @@ public GetGachaCeilingCsReq clearGachaType() { } /** - * optional uint32 gacha_type = 4; + * optional uint32 gacha_type = 10; * @return the gachaType */ public int getGachaType() { @@ -60,7 +60,7 @@ public int getGachaType() { } /** - * optional uint32 gacha_type = 4; + * optional uint32 gacha_type = 10; * @param value the gachaType to set * @return this */ @@ -129,7 +129,7 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 32); + output.writeRawByte((byte) 80); output.writeUInt32NoTag(gachaType); } } @@ -150,7 +150,7 @@ public GetGachaCeilingCsReq mergeFrom(final ProtoSource input) throws IOExceptio int tag = input.readTag(); while (true) { switch (tag) { - case 32: { + case 80: { // gachaType gachaType = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/GetGachaCeilingScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetGachaCeilingScRspOuterClass.java index 131c21d60..bf918d3f3 100644 --- a/src/generated/main/emu/lunarcore/proto/GetGachaCeilingScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetGachaCeilingScRspOuterClass.java @@ -19,7 +19,7 @@ public static final class GetGachaCeilingScRsp extends ProtoMessageoptional uint32 gacha_type = 14; + * optional uint32 gacha_type = 3; */ private int gachaType; @@ -29,7 +29,7 @@ public static final class GetGachaCeilingScRsp extends ProtoMessageoptional .GachaCeiling gacha_ceiling = 6; + * optional .GachaCeiling gacha_ceiling = 1; */ private final GachaCeilingOuterClass.GachaCeiling gachaCeiling = GachaCeilingOuterClass.GachaCeiling.newInstance(); @@ -44,7 +44,7 @@ public static GetGachaCeilingScRsp newInstance() { } /** - * optional uint32 gacha_type = 14; + * optional uint32 gacha_type = 3; * @return whether the gachaType field is set */ public boolean hasGachaType() { @@ -52,7 +52,7 @@ public boolean hasGachaType() { } /** - * optional uint32 gacha_type = 14; + * optional uint32 gacha_type = 3; * @return this */ public GetGachaCeilingScRsp clearGachaType() { @@ -62,7 +62,7 @@ public GetGachaCeilingScRsp clearGachaType() { } /** - * optional uint32 gacha_type = 14; + * optional uint32 gacha_type = 3; * @return the gachaType */ public int getGachaType() { @@ -70,7 +70,7 @@ public int getGachaType() { } /** - * optional uint32 gacha_type = 14; + * optional uint32 gacha_type = 3; * @param value the gachaType to set * @return this */ @@ -118,7 +118,7 @@ public GetGachaCeilingScRsp setRetcode(final int value) { } /** - * optional .GachaCeiling gacha_ceiling = 6; + * optional .GachaCeiling gacha_ceiling = 1; * @return whether the gachaCeiling field is set */ public boolean hasGachaCeiling() { @@ -126,7 +126,7 @@ public boolean hasGachaCeiling() { } /** - * optional .GachaCeiling gacha_ceiling = 6; + * optional .GachaCeiling gacha_ceiling = 1; * @return this */ public GetGachaCeilingScRsp clearGachaCeiling() { @@ -136,7 +136,7 @@ public GetGachaCeilingScRsp clearGachaCeiling() { } /** - * optional .GachaCeiling gacha_ceiling = 6; + * optional .GachaCeiling gacha_ceiling = 1; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -150,7 +150,7 @@ public GachaCeilingOuterClass.GachaCeiling getGachaCeiling() { } /** - * optional .GachaCeiling gacha_ceiling = 6; + * optional .GachaCeiling gacha_ceiling = 1; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -164,7 +164,7 @@ public GachaCeilingOuterClass.GachaCeiling getMutableGachaCeiling() { } /** - * optional .GachaCeiling gacha_ceiling = 6; + * optional .GachaCeiling gacha_ceiling = 1; * @param value the gachaCeiling to set * @return this */ @@ -246,7 +246,7 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 24); output.writeUInt32NoTag(gachaType); } if ((bitField0_ & 0x00000002) != 0) { @@ -254,7 +254,7 @@ public void writeTo(final ProtoSink output) throws IOException { output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 50); + output.writeRawByte((byte) 10); output.writeMessageNoTag(gachaCeiling); } } @@ -281,7 +281,7 @@ public GetGachaCeilingScRsp mergeFrom(final ProtoSource input) throws IOExceptio int tag = input.readTag(); while (true) { switch (tag) { - case 112: { + case 24: { // gachaType gachaType = input.readUInt32(); bitField0_ |= 0x00000001; @@ -295,11 +295,11 @@ public GetGachaCeilingScRsp mergeFrom(final ProtoSource input) throws IOExceptio retcode = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 50) { + if (tag != 10) { break; } } - case 50: { + case 10: { // gachaCeiling input.readMessage(gachaCeiling); bitField0_ |= 0x00000004; diff --git a/src/generated/main/emu/lunarcore/proto/GetGachaInfoScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetGachaInfoScRspOuterClass.java index f1efa72a5..ee4e6b008 100644 --- a/src/generated/main/emu/lunarcore/proto/GetGachaInfoScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetGachaInfoScRspOuterClass.java @@ -20,12 +20,12 @@ public static final class GetGachaInfoScRsp extends ProtoMessageoptional uint32 retcode = 9; + * optional uint32 retcode = 11; */ private int retcode; /** - * repeated .GachaInfo gacha_info_list = 1; + * repeated .GachaInfo gacha_info_list = 8; */ private final RepeatedMessage gachaInfoList = RepeatedMessage.newEmptyInstance(GachaInfoOuterClass.GachaInfo.getFactory()); @@ -40,7 +40,7 @@ public static GetGachaInfoScRsp newInstance() { } /** - * optional uint32 retcode = 9; + * optional uint32 retcode = 11; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -48,7 +48,7 @@ public boolean hasRetcode() { } /** - * optional uint32 retcode = 9; + * optional uint32 retcode = 11; * @return this */ public GetGachaInfoScRsp clearRetcode() { @@ -58,7 +58,7 @@ public GetGachaInfoScRsp clearRetcode() { } /** - * optional uint32 retcode = 9; + * optional uint32 retcode = 11; * @return the retcode */ public int getRetcode() { @@ -66,7 +66,7 @@ public int getRetcode() { } /** - * optional uint32 retcode = 9; + * optional uint32 retcode = 11; * @param value the retcode to set * @return this */ @@ -77,7 +77,7 @@ public GetGachaInfoScRsp setRetcode(final int value) { } /** - * repeated .GachaInfo gacha_info_list = 1; + * repeated .GachaInfo gacha_info_list = 8; * @return whether the gachaInfoList field is set */ public boolean hasGachaInfoList() { @@ -85,7 +85,7 @@ public boolean hasGachaInfoList() { } /** - * repeated .GachaInfo gacha_info_list = 1; + * repeated .GachaInfo gacha_info_list = 8; * @return this */ public GetGachaInfoScRsp clearGachaInfoList() { @@ -95,7 +95,7 @@ public GetGachaInfoScRsp clearGachaInfoList() { } /** - * repeated .GachaInfo gacha_info_list = 1; + * repeated .GachaInfo gacha_info_list = 8; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -109,7 +109,7 @@ public RepeatedMessage getGachaInfoList() { } /** - * repeated .GachaInfo gacha_info_list = 1; + * repeated .GachaInfo gacha_info_list = 8; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -123,7 +123,7 @@ public RepeatedMessage getMutableGachaInfoList() } /** - * repeated .GachaInfo gacha_info_list = 1; + * repeated .GachaInfo gacha_info_list = 8; * @param value the gachaInfoList to add * @return this */ @@ -134,7 +134,7 @@ public GetGachaInfoScRsp addGachaInfoList(final GachaInfoOuterClass.GachaInfo va } /** - * repeated .GachaInfo gacha_info_list = 1; + * repeated .GachaInfo gacha_info_list = 8; * @param values the gachaInfoList to add * @return this */ @@ -210,12 +210,12 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 72); + output.writeRawByte((byte) 88); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < gachaInfoList.length(); i++) { - output.writeRawByte((byte) 10); + output.writeRawByte((byte) 66); output.writeMessageNoTag(gachaInfoList.get(i)); } } @@ -240,16 +240,16 @@ public GetGachaInfoScRsp mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 72: { + case 88: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 10) { + if (tag != 66) { break; } } - case 10: { + case 66: { // gachaInfoList tag = input.readRepeatedMessage(gachaInfoList, tag); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/GetHeroBasicTypeInfoScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetHeroBasicTypeInfoScRspOuterClass.java index 2d1ed0e27..1e28b3286 100644 --- a/src/generated/main/emu/lunarcore/proto/GetHeroBasicTypeInfoScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetHeroBasicTypeInfoScRspOuterClass.java @@ -20,22 +20,22 @@ public static final class GetHeroBasicTypeInfoScRsp extends ProtoMessageoptional uint32 retcode = 12; + * optional uint32 retcode = 2; */ private int retcode; /** - * optional .Gender gender = 5; + * optional .HeroBasicType cur_basic_type = 7; */ - private int gender; + private int curBasicType; /** - * optional .HeroBasicType cur_basic_type = 11; + * optional .Gender gender = 13; */ - private int curBasicType; + private int gender; /** - * repeated .HeroBasicTypeInfo basic_type_info_list = 6; + * repeated .HeroBasicTypeInfo basic_type_info_list = 5; */ private final RepeatedMessage basicTypeInfoList = RepeatedMessage.newEmptyInstance(HeroBasicTypeInfoOuterClass.HeroBasicTypeInfo.getFactory()); @@ -50,7 +50,7 @@ public static GetHeroBasicTypeInfoScRsp newInstance() { } /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 2; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -58,7 +58,7 @@ public boolean hasRetcode() { } /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 2; * @return this */ public GetHeroBasicTypeInfoScRsp clearRetcode() { @@ -68,7 +68,7 @@ public GetHeroBasicTypeInfoScRsp clearRetcode() { } /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 2; * @return the retcode */ public int getRetcode() { @@ -76,7 +76,7 @@ public int getRetcode() { } /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 2; * @param value the retcode to set * @return this */ @@ -87,132 +87,132 @@ public GetHeroBasicTypeInfoScRsp setRetcode(final int value) { } /** - * optional .Gender gender = 5; - * @return whether the gender field is set + * optional .HeroBasicType cur_basic_type = 7; + * @return whether the curBasicType field is set */ - public boolean hasGender() { + public boolean hasCurBasicType() { return (bitField0_ & 0x00000002) != 0; } /** - * optional .Gender gender = 5; + * optional .HeroBasicType cur_basic_type = 7; * @return this */ - public GetHeroBasicTypeInfoScRsp clearGender() { + public GetHeroBasicTypeInfoScRsp clearCurBasicType() { bitField0_ &= ~0x00000002; - gender = 0; + curBasicType = 0; return this; } /** - * optional .Gender gender = 5; - * @return the gender + * optional .HeroBasicType cur_basic_type = 7; + * @return the curBasicType */ - public GenderOuterClass.Gender getGender() { - return GenderOuterClass.Gender.forNumber(gender); + public HeroBasicTypeOuterClass.HeroBasicType getCurBasicType() { + return HeroBasicTypeOuterClass.HeroBasicType.forNumber(curBasicType); } /** * Gets the value of the internal enum store. The result is - * equivalent to {@link GetHeroBasicTypeInfoScRsp#getGender()}.getNumber(). + * equivalent to {@link GetHeroBasicTypeInfoScRsp#getCurBasicType()}.getNumber(). * * @return numeric wire representation */ - public int getGenderValue() { - return gender; + public int getCurBasicTypeValue() { + return curBasicType; } /** * Sets the value of the internal enum store. This does not * do any validity checks, so be sure to use appropriate value - * constants from {@link GenderOuterClass.Gender}. Setting an invalid value - * can cause {@link GetHeroBasicTypeInfoScRsp#getGender()} to return null + * constants from {@link HeroBasicTypeOuterClass.HeroBasicType}. Setting an invalid value + * can cause {@link GetHeroBasicTypeInfoScRsp#getCurBasicType()} to return null * * @param value the numeric wire value to set * @return this */ - public GetHeroBasicTypeInfoScRsp setGenderValue(final int value) { + public GetHeroBasicTypeInfoScRsp setCurBasicTypeValue(final int value) { bitField0_ |= 0x00000002; - gender = value; + curBasicType = value; return this; } /** - * optional .Gender gender = 5; - * @param value the gender to set + * optional .HeroBasicType cur_basic_type = 7; + * @param value the curBasicType to set * @return this */ - public GetHeroBasicTypeInfoScRsp setGender(final GenderOuterClass.Gender value) { + public GetHeroBasicTypeInfoScRsp setCurBasicType( + final HeroBasicTypeOuterClass.HeroBasicType value) { bitField0_ |= 0x00000002; - gender = value.getNumber(); + curBasicType = value.getNumber(); return this; } /** - * optional .HeroBasicType cur_basic_type = 11; - * @return whether the curBasicType field is set + * optional .Gender gender = 13; + * @return whether the gender field is set */ - public boolean hasCurBasicType() { + public boolean hasGender() { return (bitField0_ & 0x00000004) != 0; } /** - * optional .HeroBasicType cur_basic_type = 11; + * optional .Gender gender = 13; * @return this */ - public GetHeroBasicTypeInfoScRsp clearCurBasicType() { + public GetHeroBasicTypeInfoScRsp clearGender() { bitField0_ &= ~0x00000004; - curBasicType = 0; + gender = 0; return this; } /** - * optional .HeroBasicType cur_basic_type = 11; - * @return the curBasicType + * optional .Gender gender = 13; + * @return the gender */ - public HeroBasicTypeOuterClass.HeroBasicType getCurBasicType() { - return HeroBasicTypeOuterClass.HeroBasicType.forNumber(curBasicType); + public GenderOuterClass.Gender getGender() { + return GenderOuterClass.Gender.forNumber(gender); } /** * Gets the value of the internal enum store. The result is - * equivalent to {@link GetHeroBasicTypeInfoScRsp#getCurBasicType()}.getNumber(). + * equivalent to {@link GetHeroBasicTypeInfoScRsp#getGender()}.getNumber(). * * @return numeric wire representation */ - public int getCurBasicTypeValue() { - return curBasicType; + public int getGenderValue() { + return gender; } /** * Sets the value of the internal enum store. This does not * do any validity checks, so be sure to use appropriate value - * constants from {@link HeroBasicTypeOuterClass.HeroBasicType}. Setting an invalid value - * can cause {@link GetHeroBasicTypeInfoScRsp#getCurBasicType()} to return null + * constants from {@link GenderOuterClass.Gender}. Setting an invalid value + * can cause {@link GetHeroBasicTypeInfoScRsp#getGender()} to return null * * @param value the numeric wire value to set * @return this */ - public GetHeroBasicTypeInfoScRsp setCurBasicTypeValue(final int value) { + public GetHeroBasicTypeInfoScRsp setGenderValue(final int value) { bitField0_ |= 0x00000004; - curBasicType = value; + gender = value; return this; } /** - * optional .HeroBasicType cur_basic_type = 11; - * @param value the curBasicType to set + * optional .Gender gender = 13; + * @param value the gender to set * @return this */ - public GetHeroBasicTypeInfoScRsp setCurBasicType( - final HeroBasicTypeOuterClass.HeroBasicType value) { + public GetHeroBasicTypeInfoScRsp setGender(final GenderOuterClass.Gender value) { bitField0_ |= 0x00000004; - curBasicType = value.getNumber(); + gender = value.getNumber(); return this; } /** - * repeated .HeroBasicTypeInfo basic_type_info_list = 6; + * repeated .HeroBasicTypeInfo basic_type_info_list = 5; * @return whether the basicTypeInfoList field is set */ public boolean hasBasicTypeInfoList() { @@ -220,7 +220,7 @@ public boolean hasBasicTypeInfoList() { } /** - * repeated .HeroBasicTypeInfo basic_type_info_list = 6; + * repeated .HeroBasicTypeInfo basic_type_info_list = 5; * @return this */ public GetHeroBasicTypeInfoScRsp clearBasicTypeInfoList() { @@ -230,7 +230,7 @@ public GetHeroBasicTypeInfoScRsp clearBasicTypeInfoList() { } /** - * repeated .HeroBasicTypeInfo basic_type_info_list = 6; + * repeated .HeroBasicTypeInfo basic_type_info_list = 5; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -244,7 +244,7 @@ public RepeatedMessage getBasicTy } /** - * repeated .HeroBasicTypeInfo basic_type_info_list = 6; + * repeated .HeroBasicTypeInfo basic_type_info_list = 5; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -259,7 +259,7 @@ public RepeatedMessage getMutable } /** - * repeated .HeroBasicTypeInfo basic_type_info_list = 6; + * repeated .HeroBasicTypeInfo basic_type_info_list = 5; * @param value the basicTypeInfoList to add * @return this */ @@ -271,7 +271,7 @@ public GetHeroBasicTypeInfoScRsp addBasicTypeInfoList( } /** - * repeated .HeroBasicTypeInfo basic_type_info_list = 6; + * repeated .HeroBasicTypeInfo basic_type_info_list = 5; * @param values the basicTypeInfoList to add * @return this */ @@ -288,8 +288,8 @@ public GetHeroBasicTypeInfoScRsp copyFrom(final GetHeroBasicTypeInfoScRsp other) if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; retcode = other.retcode; - gender = other.gender; curBasicType = other.curBasicType; + gender = other.gender; basicTypeInfoList.copyFrom(other.basicTypeInfoList); } return this; @@ -304,12 +304,12 @@ public GetHeroBasicTypeInfoScRsp mergeFrom(final GetHeroBasicTypeInfoScRsp other if (other.hasRetcode()) { setRetcode(other.retcode); } - if (other.hasGender()) { - setGenderValue(other.gender); - } if (other.hasCurBasicType()) { setCurBasicTypeValue(other.curBasicType); } + if (other.hasGender()) { + setGenderValue(other.gender); + } if (other.hasBasicTypeInfoList()) { getMutableBasicTypeInfoList().addAll(other.basicTypeInfoList); } @@ -324,8 +324,8 @@ public GetHeroBasicTypeInfoScRsp clear() { cachedSize = -1; bitField0_ = 0; retcode = 0; - gender = 0; curBasicType = 0; + gender = 0; basicTypeInfoList.clear(); return this; } @@ -352,28 +352,28 @@ public boolean equals(Object o) { GetHeroBasicTypeInfoScRsp other = (GetHeroBasicTypeInfoScRsp) o; return bitField0_ == other.bitField0_ && (!hasRetcode() || retcode == other.retcode) - && (!hasGender() || gender == other.gender) && (!hasCurBasicType() || curBasicType == other.curBasicType) + && (!hasGender() || gender == other.gender) && (!hasBasicTypeInfoList() || basicTypeInfoList.equals(other.basicTypeInfoList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 16); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 40); - output.writeEnumNoTag(gender); + output.writeRawByte((byte) 56); + output.writeEnumNoTag(curBasicType); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 88); - output.writeEnumNoTag(curBasicType); + output.writeRawByte((byte) 104); + output.writeEnumNoTag(gender); } if ((bitField0_ & 0x00000008) != 0) { for (int i = 0; i < basicTypeInfoList.length(); i++) { - output.writeRawByte((byte) 50); + output.writeRawByte((byte) 42); output.writeMessageNoTag(basicTypeInfoList.get(i)); } } @@ -386,10 +386,10 @@ protected int computeSerializedSize() { size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeEnumSizeNoTag(gender); + size += 1 + ProtoSink.computeEnumSizeNoTag(curBasicType); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeEnumSizeNoTag(curBasicType); + size += 1 + ProtoSink.computeEnumSizeNoTag(gender); } if ((bitField0_ & 0x00000008) != 0) { size += (1 * basicTypeInfoList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(basicTypeInfoList); @@ -404,40 +404,40 @@ public GetHeroBasicTypeInfoScRsp mergeFrom(final ProtoSource input) throws IOExc int tag = input.readTag(); while (true) { switch (tag) { - case 96: { + case 16: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 40) { + if (tag != 56) { break; } } - case 40: { - // gender + case 56: { + // curBasicType final int value = input.readInt32(); - if (GenderOuterClass.Gender.forNumber(value) != null) { - gender = value; + if (HeroBasicTypeOuterClass.HeroBasicType.forNumber(value) != null) { + curBasicType = value; bitField0_ |= 0x00000002; } tag = input.readTag(); - if (tag != 88) { + if (tag != 104) { break; } } - case 88: { - // curBasicType + case 104: { + // gender final int value = input.readInt32(); - if (HeroBasicTypeOuterClass.HeroBasicType.forNumber(value) != null) { - curBasicType = value; + if (GenderOuterClass.Gender.forNumber(value) != null) { + gender = value; bitField0_ |= 0x00000004; } tag = input.readTag(); - if (tag != 50) { + if (tag != 42) { break; } } - case 50: { + case 42: { // basicTypeInfoList tag = input.readRepeatedMessage(basicTypeInfoList, tag); bitField0_ |= 0x00000008; @@ -466,10 +466,10 @@ public void writeTo(final JsonSink output) throws IOException { output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeEnum(FieldNames.gender, gender, GenderOuterClass.Gender.converter()); + output.writeEnum(FieldNames.curBasicType, curBasicType, HeroBasicTypeOuterClass.HeroBasicType.converter()); } if ((bitField0_ & 0x00000004) != 0) { - output.writeEnum(FieldNames.curBasicType, curBasicType, HeroBasicTypeOuterClass.HeroBasicType.converter()); + output.writeEnum(FieldNames.gender, gender, GenderOuterClass.Gender.converter()); } if ((bitField0_ & 0x00000008) != 0) { output.writeRepeatedMessage(FieldNames.basicTypeInfoList, basicTypeInfoList); @@ -495,12 +495,13 @@ public GetHeroBasicTypeInfoScRsp mergeFrom(final JsonSource input) throws IOExce } break; } - case -1249512767: { - if (input.isAtField(FieldNames.gender)) { + case -518506968: + case -979186678: { + if (input.isAtField(FieldNames.curBasicType)) { if (!input.trySkipNullValue()) { - final GenderOuterClass.Gender value = input.readEnum(GenderOuterClass.Gender.converter()); + final HeroBasicTypeOuterClass.HeroBasicType value = input.readEnum(HeroBasicTypeOuterClass.HeroBasicType.converter()); if (value != null) { - gender = value.getNumber(); + curBasicType = value.getNumber(); bitField0_ |= 0x00000002; } else { input.skipUnknownEnumValue(); @@ -511,13 +512,12 @@ public GetHeroBasicTypeInfoScRsp mergeFrom(final JsonSource input) throws IOExce } break; } - case -518506968: - case -979186678: { - if (input.isAtField(FieldNames.curBasicType)) { + case -1249512767: { + if (input.isAtField(FieldNames.gender)) { if (!input.trySkipNullValue()) { - final HeroBasicTypeOuterClass.HeroBasicType value = input.readEnum(HeroBasicTypeOuterClass.HeroBasicType.converter()); + final GenderOuterClass.Gender value = input.readEnum(GenderOuterClass.Gender.converter()); if (value != null) { - curBasicType = value.getNumber(); + gender = value.getNumber(); bitField0_ |= 0x00000004; } else { input.skipUnknownEnumValue(); @@ -595,10 +595,10 @@ public GetHeroBasicTypeInfoScRsp create() { static class FieldNames { static final FieldName retcode = FieldName.forField("retcode"); - static final FieldName gender = FieldName.forField("gender"); - static final FieldName curBasicType = FieldName.forField("curBasicType", "cur_basic_type"); + static final FieldName gender = FieldName.forField("gender"); + static final FieldName basicTypeInfoList = FieldName.forField("basicTypeInfoList", "basic_type_info_list"); } } diff --git a/src/generated/main/emu/lunarcore/proto/GetJukeboxDataScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetJukeboxDataScRspOuterClass.java index 2c22642e9..ed6da2464 100644 --- a/src/generated/main/emu/lunarcore/proto/GetJukeboxDataScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetJukeboxDataScRspOuterClass.java @@ -25,14 +25,14 @@ public static final class GetJukeboxDataScRsp extends ProtoMessageoptional uint32 retcode = 14; + * optional uint32 retcode = 13; */ private int retcode; /** - * repeated .GetJukeboxDataScRsp.UnlockedMusic music_list = 7; + * repeated .UnlockedMusic music_list = 14; */ - private final RepeatedMessage musicList = RepeatedMessage.newEmptyInstance(UnlockedMusic.getFactory()); + private final RepeatedMessage musicList = RepeatedMessage.newEmptyInstance(UnlockedMusicOuterClass.UnlockedMusic.getFactory()); private GetJukeboxDataScRsp() { } @@ -82,7 +82,7 @@ public GetJukeboxDataScRsp setPlayingId(final int value) { } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 13; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -90,7 +90,7 @@ public boolean hasRetcode() { } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 13; * @return this */ public GetJukeboxDataScRsp clearRetcode() { @@ -100,7 +100,7 @@ public GetJukeboxDataScRsp clearRetcode() { } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 13; * @return the retcode */ public int getRetcode() { @@ -108,7 +108,7 @@ public int getRetcode() { } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 13; * @param value the retcode to set * @return this */ @@ -119,7 +119,7 @@ public GetJukeboxDataScRsp setRetcode(final int value) { } /** - * repeated .GetJukeboxDataScRsp.UnlockedMusic music_list = 7; + * repeated .UnlockedMusic music_list = 14; * @return whether the musicList field is set */ public boolean hasMusicList() { @@ -127,7 +127,7 @@ public boolean hasMusicList() { } /** - * repeated .GetJukeboxDataScRsp.UnlockedMusic music_list = 7; + * repeated .UnlockedMusic music_list = 14; * @return this */ public GetJukeboxDataScRsp clearMusicList() { @@ -137,7 +137,7 @@ public GetJukeboxDataScRsp clearMusicList() { } /** - * repeated .GetJukeboxDataScRsp.UnlockedMusic music_list = 7; + * repeated .UnlockedMusic music_list = 14; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -146,12 +146,12 @@ public GetJukeboxDataScRsp clearMusicList() { * * @return internal storage object for reading */ - public RepeatedMessage getMusicList() { + public RepeatedMessage getMusicList() { return musicList; } /** - * repeated .GetJukeboxDataScRsp.UnlockedMusic music_list = 7; + * repeated .UnlockedMusic music_list = 14; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -159,28 +159,29 @@ public RepeatedMessage getMusicList() { * * @return internal storage object for modifications */ - public RepeatedMessage getMutableMusicList() { + public RepeatedMessage getMutableMusicList() { bitField0_ |= 0x00000004; return musicList; } /** - * repeated .GetJukeboxDataScRsp.UnlockedMusic music_list = 7; + * repeated .UnlockedMusic music_list = 14; * @param value the musicList to add * @return this */ - public GetJukeboxDataScRsp addMusicList(final UnlockedMusic value) { + public GetJukeboxDataScRsp addMusicList(final UnlockedMusicOuterClass.UnlockedMusic value) { bitField0_ |= 0x00000004; musicList.add(value); return this; } /** - * repeated .GetJukeboxDataScRsp.UnlockedMusic music_list = 7; + * repeated .UnlockedMusic music_list = 14; * @param values the musicList to add * @return this */ - public GetJukeboxDataScRsp addAllMusicList(final UnlockedMusic... values) { + public GetJukeboxDataScRsp addAllMusicList( + final UnlockedMusicOuterClass.UnlockedMusic... values) { bitField0_ |= 0x00000004; musicList.addAll(values); return this; @@ -262,12 +263,12 @@ public void writeTo(final ProtoSink output) throws IOException { output.writeUInt32NoTag(playingId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 104); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000004) != 0) { for (int i = 0; i < musicList.length(); i++) { - output.writeRawByte((byte) 58); + output.writeRawByte((byte) 114); output.writeMessageNoTag(musicList.get(i)); } } @@ -300,20 +301,20 @@ public GetJukeboxDataScRsp mergeFrom(final ProtoSource input) throws IOException playingId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 112) { + if (tag != 104) { break; } } - case 112: { + case 104: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 58) { + if (tag != 114) { break; } } - case 58: { + case 114: { // musicList tag = input.readRepeatedMessage(musicList, tag); bitField0_ |= 0x00000004; @@ -432,412 +433,6 @@ public static MessageFactory getFactory() { return GetJukeboxDataScRspFactory.INSTANCE; } - /** - * Protobuf type {@code UnlockedMusic} - */ - public static final class UnlockedMusic extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 group_id = 1; - */ - private int groupId; - - /** - * optional uint32 id = 8; - */ - private int id; - - /** - * optional bool unkbool = 7; - */ - private boolean unkbool; - - private UnlockedMusic() { - } - - /** - * @return a new empty instance of {@code UnlockedMusic} - */ - public static UnlockedMusic newInstance() { - return new UnlockedMusic(); - } - - /** - * optional uint32 group_id = 1; - * @return whether the groupId field is set - */ - public boolean hasGroupId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 group_id = 1; - * @return this - */ - public UnlockedMusic clearGroupId() { - bitField0_ &= ~0x00000001; - groupId = 0; - return this; - } - - /** - * optional uint32 group_id = 1; - * @return the groupId - */ - public int getGroupId() { - return groupId; - } - - /** - * optional uint32 group_id = 1; - * @param value the groupId to set - * @return this - */ - public UnlockedMusic setGroupId(final int value) { - bitField0_ |= 0x00000001; - groupId = value; - return this; - } - - /** - * optional uint32 id = 8; - * @return whether the id field is set - */ - public boolean hasId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 id = 8; - * @return this - */ - public UnlockedMusic clearId() { - bitField0_ &= ~0x00000002; - id = 0; - return this; - } - - /** - * optional uint32 id = 8; - * @return the id - */ - public int getId() { - return id; - } - - /** - * optional uint32 id = 8; - * @param value the id to set - * @return this - */ - public UnlockedMusic setId(final int value) { - bitField0_ |= 0x00000002; - id = value; - return this; - } - - /** - * optional bool unkbool = 7; - * @return whether the unkbool field is set - */ - public boolean hasUnkbool() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional bool unkbool = 7; - * @return this - */ - public UnlockedMusic clearUnkbool() { - bitField0_ &= ~0x00000004; - unkbool = false; - return this; - } - - /** - * optional bool unkbool = 7; - * @return the unkbool - */ - public boolean getUnkbool() { - return unkbool; - } - - /** - * optional bool unkbool = 7; - * @param value the unkbool to set - * @return this - */ - public UnlockedMusic setUnkbool(final boolean value) { - bitField0_ |= 0x00000004; - unkbool = value; - return this; - } - - @Override - public UnlockedMusic copyFrom(final UnlockedMusic other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - groupId = other.groupId; - id = other.id; - unkbool = other.unkbool; - } - return this; - } - - @Override - public UnlockedMusic mergeFrom(final UnlockedMusic other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasGroupId()) { - setGroupId(other.groupId); - } - if (other.hasId()) { - setId(other.id); - } - if (other.hasUnkbool()) { - setUnkbool(other.unkbool); - } - return this; - } - - @Override - public UnlockedMusic clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - groupId = 0; - id = 0; - unkbool = false; - return this; - } - - @Override - public UnlockedMusic clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof UnlockedMusic)) { - return false; - } - UnlockedMusic other = (UnlockedMusic) o; - return bitField0_ == other.bitField0_ - && (!hasGroupId() || groupId == other.groupId) - && (!hasId() || id == other.id) - && (!hasUnkbool() || unkbool == other.unkbool); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(groupId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 64); - output.writeUInt32NoTag(id); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 56); - output.writeBoolNoTag(unkbool); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(id); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 2; - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public UnlockedMusic mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 8: { - // groupId - groupId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 64) { - break; - } - } - case 64: { - // id - id = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 56) { - break; - } - } - case 56: { - // unkbool - unkbool = input.readBool(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.groupId, groupId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.id, id); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeBool(FieldNames.unkbool, unkbool); - } - output.endObject(); - } - - @Override - public UnlockedMusic mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 293428218: - case 506361563: { - if (input.isAtField(FieldNames.groupId)) { - if (!input.trySkipNullValue()) { - groupId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case 3355: { - if (input.isAtField(FieldNames.id)) { - if (!input.trySkipNullValue()) { - id = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case -285198628: { - if (input.isAtField(FieldNames.unkbool)) { - if (!input.trySkipNullValue()) { - unkbool = input.readBool(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public UnlockedMusic clone() { - return new UnlockedMusic().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static UnlockedMusic parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new UnlockedMusic(), data).checkInitialized(); - } - - public static UnlockedMusic parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new UnlockedMusic(), input).checkInitialized(); - } - - public static UnlockedMusic parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new UnlockedMusic(), input).checkInitialized(); - } - - /** - * @return factory for creating UnlockedMusic messages - */ - public static MessageFactory getFactory() { - return UnlockedMusicFactory.INSTANCE; - } - - private enum UnlockedMusicFactory implements MessageFactory { - INSTANCE; - - @Override - public UnlockedMusic create() { - return UnlockedMusic.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName groupId = FieldName.forField("groupId", "group_id"); - - static final FieldName id = FieldName.forField("id"); - - static final FieldName unkbool = FieldName.forField("unkbool"); - } - } - private enum GetJukeboxDataScRspFactory implements MessageFactory { INSTANCE; diff --git a/src/generated/main/emu/lunarcore/proto/GetMailScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetMailScRspOuterClass.java index 3897f8230..b3d4cc0a4 100644 --- a/src/generated/main/emu/lunarcore/proto/GetMailScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetMailScRspOuterClass.java @@ -20,34 +20,34 @@ public static final class GetMailScRsp extends ProtoMessage implem private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 4; + * optional uint32 retcode = 1; */ private int retcode; /** - * optional uint32 start = 7; + * optional uint32 total_num = 2; */ - private int start; + private int totalNum; /** - * optional uint32 total_num = 13; + * optional uint32 start = 4; */ - private int totalNum; + private int start; /** - * optional bool is_end = 1; + * optional bool is_end = 5; */ private boolean isEnd; /** - * repeated .ClientMail mail_list = 6; + * repeated .ClientMail notice_mail_list = 8; */ - private final RepeatedMessage mailList = RepeatedMessage.newEmptyInstance(ClientMailOuterClass.ClientMail.getFactory()); + private final RepeatedMessage noticeMailList = RepeatedMessage.newEmptyInstance(ClientMailOuterClass.ClientMail.getFactory()); /** - * repeated .ClientMail notice_mail_list = 10; + * repeated .ClientMail mail_list = 15; */ - private final RepeatedMessage noticeMailList = RepeatedMessage.newEmptyInstance(ClientMailOuterClass.ClientMail.getFactory()); + private final RepeatedMessage mailList = RepeatedMessage.newEmptyInstance(ClientMailOuterClass.ClientMail.getFactory()); private GetMailScRsp() { } @@ -60,7 +60,7 @@ public static GetMailScRsp newInstance() { } /** - * optional uint32 retcode = 4; + * optional uint32 retcode = 1; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -68,7 +68,7 @@ public boolean hasRetcode() { } /** - * optional uint32 retcode = 4; + * optional uint32 retcode = 1; * @return this */ public GetMailScRsp clearRetcode() { @@ -78,7 +78,7 @@ public GetMailScRsp clearRetcode() { } /** - * optional uint32 retcode = 4; + * optional uint32 retcode = 1; * @return the retcode */ public int getRetcode() { @@ -86,7 +86,7 @@ public int getRetcode() { } /** - * optional uint32 retcode = 4; + * optional uint32 retcode = 1; * @param value the retcode to set * @return this */ @@ -97,81 +97,81 @@ public GetMailScRsp setRetcode(final int value) { } /** - * optional uint32 start = 7; - * @return whether the start field is set + * optional uint32 total_num = 2; + * @return whether the totalNum field is set */ - public boolean hasStart() { + public boolean hasTotalNum() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 start = 7; + * optional uint32 total_num = 2; * @return this */ - public GetMailScRsp clearStart() { + public GetMailScRsp clearTotalNum() { bitField0_ &= ~0x00000002; - start = 0; + totalNum = 0; return this; } /** - * optional uint32 start = 7; - * @return the start + * optional uint32 total_num = 2; + * @return the totalNum */ - public int getStart() { - return start; + public int getTotalNum() { + return totalNum; } /** - * optional uint32 start = 7; - * @param value the start to set + * optional uint32 total_num = 2; + * @param value the totalNum to set * @return this */ - public GetMailScRsp setStart(final int value) { + public GetMailScRsp setTotalNum(final int value) { bitField0_ |= 0x00000002; - start = value; + totalNum = value; return this; } /** - * optional uint32 total_num = 13; - * @return whether the totalNum field is set + * optional uint32 start = 4; + * @return whether the start field is set */ - public boolean hasTotalNum() { + public boolean hasStart() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 total_num = 13; + * optional uint32 start = 4; * @return this */ - public GetMailScRsp clearTotalNum() { + public GetMailScRsp clearStart() { bitField0_ &= ~0x00000004; - totalNum = 0; + start = 0; return this; } /** - * optional uint32 total_num = 13; - * @return the totalNum + * optional uint32 start = 4; + * @return the start */ - public int getTotalNum() { - return totalNum; + public int getStart() { + return start; } /** - * optional uint32 total_num = 13; - * @param value the totalNum to set + * optional uint32 start = 4; + * @param value the start to set * @return this */ - public GetMailScRsp setTotalNum(final int value) { + public GetMailScRsp setStart(final int value) { bitField0_ |= 0x00000004; - totalNum = value; + start = value; return this; } /** - * optional bool is_end = 1; + * optional bool is_end = 5; * @return whether the isEnd field is set */ public boolean hasIsEnd() { @@ -179,7 +179,7 @@ public boolean hasIsEnd() { } /** - * optional bool is_end = 1; + * optional bool is_end = 5; * @return this */ public GetMailScRsp clearIsEnd() { @@ -189,7 +189,7 @@ public GetMailScRsp clearIsEnd() { } /** - * optional bool is_end = 1; + * optional bool is_end = 5; * @return the isEnd */ public boolean getIsEnd() { @@ -197,7 +197,7 @@ public boolean getIsEnd() { } /** - * optional bool is_end = 1; + * optional bool is_end = 5; * @param value the isEnd to set * @return this */ @@ -208,39 +208,39 @@ public GetMailScRsp setIsEnd(final boolean value) { } /** - * repeated .ClientMail mail_list = 6; - * @return whether the mailList field is set + * repeated .ClientMail notice_mail_list = 8; + * @return whether the noticeMailList field is set */ - public boolean hasMailList() { + public boolean hasNoticeMailList() { return (bitField0_ & 0x00000010) != 0; } /** - * repeated .ClientMail mail_list = 6; + * repeated .ClientMail notice_mail_list = 8; * @return this */ - public GetMailScRsp clearMailList() { + public GetMailScRsp clearNoticeMailList() { bitField0_ &= ~0x00000010; - mailList.clear(); + noticeMailList.clear(); return this; } /** - * repeated .ClientMail mail_list = 6; + * repeated .ClientMail notice_mail_list = 8; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableMailList()} if you want to modify it. + * Use {@link #getMutableNoticeMailList()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedMessage getMailList() { - return mailList; + public RepeatedMessage getNoticeMailList() { + return noticeMailList; } /** - * repeated .ClientMail mail_list = 6; + * repeated .ClientMail notice_mail_list = 8; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -248,67 +248,67 @@ public RepeatedMessage getMailList() { * * @return internal storage object for modifications */ - public RepeatedMessage getMutableMailList() { + public RepeatedMessage getMutableNoticeMailList() { bitField0_ |= 0x00000010; - return mailList; + return noticeMailList; } /** - * repeated .ClientMail mail_list = 6; - * @param value the mailList to add + * repeated .ClientMail notice_mail_list = 8; + * @param value the noticeMailList to add * @return this */ - public GetMailScRsp addMailList(final ClientMailOuterClass.ClientMail value) { + public GetMailScRsp addNoticeMailList(final ClientMailOuterClass.ClientMail value) { bitField0_ |= 0x00000010; - mailList.add(value); + noticeMailList.add(value); return this; } /** - * repeated .ClientMail mail_list = 6; - * @param values the mailList to add + * repeated .ClientMail notice_mail_list = 8; + * @param values the noticeMailList to add * @return this */ - public GetMailScRsp addAllMailList(final ClientMailOuterClass.ClientMail... values) { + public GetMailScRsp addAllNoticeMailList(final ClientMailOuterClass.ClientMail... values) { bitField0_ |= 0x00000010; - mailList.addAll(values); + noticeMailList.addAll(values); return this; } /** - * repeated .ClientMail notice_mail_list = 10; - * @return whether the noticeMailList field is set + * repeated .ClientMail mail_list = 15; + * @return whether the mailList field is set */ - public boolean hasNoticeMailList() { + public boolean hasMailList() { return (bitField0_ & 0x00000020) != 0; } /** - * repeated .ClientMail notice_mail_list = 10; + * repeated .ClientMail mail_list = 15; * @return this */ - public GetMailScRsp clearNoticeMailList() { + public GetMailScRsp clearMailList() { bitField0_ &= ~0x00000020; - noticeMailList.clear(); + mailList.clear(); return this; } /** - * repeated .ClientMail notice_mail_list = 10; + * repeated .ClientMail mail_list = 15; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableNoticeMailList()} if you want to modify it. + * Use {@link #getMutableMailList()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedMessage getNoticeMailList() { - return noticeMailList; + public RepeatedMessage getMailList() { + return mailList; } /** - * repeated .ClientMail notice_mail_list = 10; + * repeated .ClientMail mail_list = 15; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -316,30 +316,30 @@ public RepeatedMessage getNoticeMailList() { * * @return internal storage object for modifications */ - public RepeatedMessage getMutableNoticeMailList() { + public RepeatedMessage getMutableMailList() { bitField0_ |= 0x00000020; - return noticeMailList; + return mailList; } /** - * repeated .ClientMail notice_mail_list = 10; - * @param value the noticeMailList to add + * repeated .ClientMail mail_list = 15; + * @param value the mailList to add * @return this */ - public GetMailScRsp addNoticeMailList(final ClientMailOuterClass.ClientMail value) { + public GetMailScRsp addMailList(final ClientMailOuterClass.ClientMail value) { bitField0_ |= 0x00000020; - noticeMailList.add(value); + mailList.add(value); return this; } /** - * repeated .ClientMail notice_mail_list = 10; - * @param values the noticeMailList to add + * repeated .ClientMail mail_list = 15; + * @param values the mailList to add * @return this */ - public GetMailScRsp addAllNoticeMailList(final ClientMailOuterClass.ClientMail... values) { + public GetMailScRsp addAllMailList(final ClientMailOuterClass.ClientMail... values) { bitField0_ |= 0x00000020; - noticeMailList.addAll(values); + mailList.addAll(values); return this; } @@ -349,11 +349,11 @@ public GetMailScRsp copyFrom(final GetMailScRsp other) { if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; retcode = other.retcode; - start = other.start; totalNum = other.totalNum; + start = other.start; isEnd = other.isEnd; - mailList.copyFrom(other.mailList); noticeMailList.copyFrom(other.noticeMailList); + mailList.copyFrom(other.mailList); } return this; } @@ -367,21 +367,21 @@ public GetMailScRsp mergeFrom(final GetMailScRsp other) { if (other.hasRetcode()) { setRetcode(other.retcode); } - if (other.hasStart()) { - setStart(other.start); - } if (other.hasTotalNum()) { setTotalNum(other.totalNum); } + if (other.hasStart()) { + setStart(other.start); + } if (other.hasIsEnd()) { setIsEnd(other.isEnd); } - if (other.hasMailList()) { - getMutableMailList().addAll(other.mailList); - } if (other.hasNoticeMailList()) { getMutableNoticeMailList().addAll(other.noticeMailList); } + if (other.hasMailList()) { + getMutableMailList().addAll(other.mailList); + } return this; } @@ -393,11 +393,11 @@ public GetMailScRsp clear() { cachedSize = -1; bitField0_ = 0; retcode = 0; - start = 0; totalNum = 0; + start = 0; isEnd = false; - mailList.clear(); noticeMailList.clear(); + mailList.clear(); return this; } @@ -408,8 +408,8 @@ public GetMailScRsp clearQuick() { } cachedSize = -1; bitField0_ = 0; - mailList.clearQuick(); noticeMailList.clearQuick(); + mailList.clearQuick(); return this; } @@ -424,41 +424,41 @@ public boolean equals(Object o) { GetMailScRsp other = (GetMailScRsp) o; return bitField0_ == other.bitField0_ && (!hasRetcode() || retcode == other.retcode) - && (!hasStart() || start == other.start) && (!hasTotalNum() || totalNum == other.totalNum) + && (!hasStart() || start == other.start) && (!hasIsEnd() || isEnd == other.isEnd) - && (!hasMailList() || mailList.equals(other.mailList)) - && (!hasNoticeMailList() || noticeMailList.equals(other.noticeMailList)); + && (!hasNoticeMailList() || noticeMailList.equals(other.noticeMailList)) + && (!hasMailList() || mailList.equals(other.mailList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 32); + output.writeRawByte((byte) 8); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 56); - output.writeUInt32NoTag(start); + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(totalNum); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 104); - output.writeUInt32NoTag(totalNum); + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(start); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 8); + output.writeRawByte((byte) 40); output.writeBoolNoTag(isEnd); } if ((bitField0_ & 0x00000010) != 0) { - for (int i = 0; i < mailList.length(); i++) { - output.writeRawByte((byte) 50); - output.writeMessageNoTag(mailList.get(i)); + for (int i = 0; i < noticeMailList.length(); i++) { + output.writeRawByte((byte) 66); + output.writeMessageNoTag(noticeMailList.get(i)); } } if ((bitField0_ & 0x00000020) != 0) { - for (int i = 0; i < noticeMailList.length(); i++) { - output.writeRawByte((byte) 82); - output.writeMessageNoTag(noticeMailList.get(i)); + for (int i = 0; i < mailList.length(); i++) { + output.writeRawByte((byte) 122); + output.writeMessageNoTag(mailList.get(i)); } } } @@ -470,19 +470,19 @@ protected int computeSerializedSize() { size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(start); + size += 1 + ProtoSink.computeUInt32SizeNoTag(totalNum); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(totalNum); + size += 1 + ProtoSink.computeUInt32SizeNoTag(start); } if ((bitField0_ & 0x00000008) != 0) { size += 2; } if ((bitField0_ & 0x00000010) != 0) { - size += (1 * mailList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(mailList); + size += (1 * noticeMailList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(noticeMailList); } if ((bitField0_ & 0x00000020) != 0) { - size += (1 * noticeMailList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(noticeMailList); + size += (1 * mailList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(mailList); } return size; } @@ -494,53 +494,53 @@ public GetMailScRsp mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 32: { + case 8: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 56) { + if (tag != 16) { break; } } - case 56: { - // start - start = input.readUInt32(); + case 16: { + // totalNum + totalNum = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 104) { + if (tag != 32) { break; } } - case 104: { - // totalNum - totalNum = input.readUInt32(); + case 32: { + // start + start = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 8) { + if (tag != 40) { break; } } - case 8: { + case 40: { // isEnd isEnd = input.readBool(); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 50) { + if (tag != 66) { break; } } - case 50: { - // mailList - tag = input.readRepeatedMessage(mailList, tag); + case 66: { + // noticeMailList + tag = input.readRepeatedMessage(noticeMailList, tag); bitField0_ |= 0x00000010; - if (tag != 82) { + if (tag != 122) { break; } } - case 82: { - // noticeMailList - tag = input.readRepeatedMessage(noticeMailList, tag); + case 122: { + // mailList + tag = input.readRepeatedMessage(mailList, tag); bitField0_ |= 0x00000020; if (tag != 0) { break; @@ -567,19 +567,19 @@ public void writeTo(final JsonSink output) throws IOException { output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.start, start); + output.writeUInt32(FieldNames.totalNum, totalNum); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.totalNum, totalNum); + output.writeUInt32(FieldNames.start, start); } if ((bitField0_ & 0x00000008) != 0) { output.writeBool(FieldNames.isEnd, isEnd); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRepeatedMessage(FieldNames.mailList, mailList); + output.writeRepeatedMessage(FieldNames.noticeMailList, noticeMailList); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRepeatedMessage(FieldNames.noticeMailList, noticeMailList); + output.writeRepeatedMessage(FieldNames.mailList, mailList); } output.endObject(); } @@ -602,10 +602,11 @@ public GetMailScRsp mergeFrom(final JsonSource input) throws IOException { } break; } - case 109757538: { - if (input.isAtField(FieldNames.start)) { + case -849911390: + case -576949237: { + if (input.isAtField(FieldNames.totalNum)) { if (!input.trySkipNullValue()) { - start = input.readUInt32(); + totalNum = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -613,11 +614,10 @@ public GetMailScRsp mergeFrom(final JsonSource input) throws IOException { } break; } - case -849911390: - case -576949237: { - if (input.isAtField(FieldNames.totalNum)) { + case 109757538: { + if (input.isAtField(FieldNames.start)) { if (!input.trySkipNullValue()) { - totalNum = input.readUInt32(); + start = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -637,11 +637,11 @@ public GetMailScRsp mergeFrom(final JsonSource input) throws IOException { } break; } - case -10520843: - case -308519386: { - if (input.isAtField(FieldNames.mailList)) { + case 17373677: + case 1540899199: { + if (input.isAtField(FieldNames.noticeMailList)) { if (!input.trySkipNullValue()) { - input.readRepeatedMessage(mailList); + input.readRepeatedMessage(noticeMailList); bitField0_ |= 0x00000010; } } else { @@ -649,11 +649,11 @@ public GetMailScRsp mergeFrom(final JsonSource input) throws IOException { } break; } - case 17373677: - case 1540899199: { - if (input.isAtField(FieldNames.noticeMailList)) { + case -10520843: + case -308519386: { + if (input.isAtField(FieldNames.mailList)) { if (!input.trySkipNullValue()) { - input.readRepeatedMessage(noticeMailList); + input.readRepeatedMessage(mailList); bitField0_ |= 0x00000020; } } else { @@ -715,15 +715,15 @@ public GetMailScRsp create() { static class FieldNames { static final FieldName retcode = FieldName.forField("retcode"); - static final FieldName start = FieldName.forField("start"); - static final FieldName totalNum = FieldName.forField("totalNum", "total_num"); - static final FieldName isEnd = FieldName.forField("isEnd", "is_end"); + static final FieldName start = FieldName.forField("start"); - static final FieldName mailList = FieldName.forField("mailList", "mail_list"); + static final FieldName isEnd = FieldName.forField("isEnd", "is_end"); static final FieldName noticeMailList = FieldName.forField("noticeMailList", "notice_mail_list"); + + static final FieldName mailList = FieldName.forField("mailList", "mail_list"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/GetMainMissionCustomValueCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetMainMissionCustomValueCsReqOuterClass.java deleted file mode 100644 index 189dccea1..000000000 --- a/src/generated/main/emu/lunarcore/proto/GetMainMissionCustomValueCsReqOuterClass.java +++ /dev/null @@ -1,303 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; -import us.hebi.quickbuf.RepeatedInt; - -public final class GetMainMissionCustomValueCsReqOuterClass { - /** - * Protobuf type {@code GetMainMissionCustomValueCsReq} - */ - public static final class GetMainMissionCustomValueCsReq extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * repeated uint32 main_mission_id_list = 13; - */ - private final RepeatedInt mainMissionIdList = RepeatedInt.newEmptyInstance(); - - private GetMainMissionCustomValueCsReq() { - } - - /** - * @return a new empty instance of {@code GetMainMissionCustomValueCsReq} - */ - public static GetMainMissionCustomValueCsReq newInstance() { - return new GetMainMissionCustomValueCsReq(); - } - - /** - * repeated uint32 main_mission_id_list = 13; - * @return whether the mainMissionIdList field is set - */ - public boolean hasMainMissionIdList() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * repeated uint32 main_mission_id_list = 13; - * @return this - */ - public GetMainMissionCustomValueCsReq clearMainMissionIdList() { - bitField0_ &= ~0x00000001; - mainMissionIdList.clear(); - return this; - } - - /** - * repeated uint32 main_mission_id_list = 13; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableMainMissionIdList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedInt getMainMissionIdList() { - return mainMissionIdList; - } - - /** - * repeated uint32 main_mission_id_list = 13; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedInt getMutableMainMissionIdList() { - bitField0_ |= 0x00000001; - return mainMissionIdList; - } - - /** - * repeated uint32 main_mission_id_list = 13; - * @param value the mainMissionIdList to add - * @return this - */ - public GetMainMissionCustomValueCsReq addMainMissionIdList(final int value) { - bitField0_ |= 0x00000001; - mainMissionIdList.add(value); - return this; - } - - /** - * repeated uint32 main_mission_id_list = 13; - * @param values the mainMissionIdList to add - * @return this - */ - public GetMainMissionCustomValueCsReq addAllMainMissionIdList(final int... values) { - bitField0_ |= 0x00000001; - mainMissionIdList.addAll(values); - return this; - } - - @Override - public GetMainMissionCustomValueCsReq copyFrom(final GetMainMissionCustomValueCsReq other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - mainMissionIdList.copyFrom(other.mainMissionIdList); - } - return this; - } - - @Override - public GetMainMissionCustomValueCsReq mergeFrom(final GetMainMissionCustomValueCsReq other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasMainMissionIdList()) { - getMutableMainMissionIdList().addAll(other.mainMissionIdList); - } - return this; - } - - @Override - public GetMainMissionCustomValueCsReq clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - mainMissionIdList.clear(); - return this; - } - - @Override - public GetMainMissionCustomValueCsReq clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - mainMissionIdList.clear(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof GetMainMissionCustomValueCsReq)) { - return false; - } - GetMainMissionCustomValueCsReq other = (GetMainMissionCustomValueCsReq) o; - return bitField0_ == other.bitField0_ - && (!hasMainMissionIdList() || mainMissionIdList.equals(other.mainMissionIdList)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - for (int i = 0; i < mainMissionIdList.length(); i++) { - output.writeRawByte((byte) 104); - output.writeUInt32NoTag(mainMissionIdList.array()[i]); - } - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += (1 * mainMissionIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(mainMissionIdList); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public GetMainMissionCustomValueCsReq mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 106: { - // mainMissionIdList [packed=true] - input.readPackedUInt32(mainMissionIdList, tag); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - case 104: { - // mainMissionIdList [packed=false] - tag = input.readRepeatedUInt32(mainMissionIdList, tag); - bitField0_ |= 0x00000001; - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeRepeatedUInt32(FieldNames.mainMissionIdList, mainMissionIdList); - } - output.endObject(); - } - - @Override - public GetMainMissionCustomValueCsReq mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 1438400460: - case -1382679799: { - if (input.isAtField(FieldNames.mainMissionIdList)) { - if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(mainMissionIdList); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public GetMainMissionCustomValueCsReq clone() { - return new GetMainMissionCustomValueCsReq().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static GetMainMissionCustomValueCsReq parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new GetMainMissionCustomValueCsReq(), data).checkInitialized(); - } - - public static GetMainMissionCustomValueCsReq parseFrom(final ProtoSource input) throws - IOException { - return ProtoMessage.mergeFrom(new GetMainMissionCustomValueCsReq(), input).checkInitialized(); - } - - public static GetMainMissionCustomValueCsReq parseFrom(final JsonSource input) throws - IOException { - return ProtoMessage.mergeFrom(new GetMainMissionCustomValueCsReq(), input).checkInitialized(); - } - - /** - * @return factory for creating GetMainMissionCustomValueCsReq messages - */ - public static MessageFactory getFactory() { - return GetMainMissionCustomValueCsReqFactory.INSTANCE; - } - - private enum GetMainMissionCustomValueCsReqFactory implements MessageFactory { - INSTANCE; - - @Override - public GetMainMissionCustomValueCsReq create() { - return GetMainMissionCustomValueCsReq.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName mainMissionIdList = FieldName.forField("mainMissionIdList", "main_mission_id_list"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/GetMainMissionCustomValueScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetMainMissionCustomValueScRspOuterClass.java deleted file mode 100644 index 419952e6b..000000000 --- a/src/generated/main/emu/lunarcore/proto/GetMainMissionCustomValueScRspOuterClass.java +++ /dev/null @@ -1,378 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; -import us.hebi.quickbuf.RepeatedMessage; - -public final class GetMainMissionCustomValueScRspOuterClass { - /** - * Protobuf type {@code GetMainMissionCustomValueScRsp} - */ - public static final class GetMainMissionCustomValueScRsp extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 retcode = 2; - */ - private int retcode; - - /** - * repeated .MainMission main_mission_list = 5; - */ - private final RepeatedMessage mainMissionList = RepeatedMessage.newEmptyInstance(MainMissionOuterClass.MainMission.getFactory()); - - private GetMainMissionCustomValueScRsp() { - } - - /** - * @return a new empty instance of {@code GetMainMissionCustomValueScRsp} - */ - public static GetMainMissionCustomValueScRsp newInstance() { - return new GetMainMissionCustomValueScRsp(); - } - - /** - * optional uint32 retcode = 2; - * @return whether the retcode field is set - */ - public boolean hasRetcode() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 retcode = 2; - * @return this - */ - public GetMainMissionCustomValueScRsp clearRetcode() { - bitField0_ &= ~0x00000001; - retcode = 0; - return this; - } - - /** - * optional uint32 retcode = 2; - * @return the retcode - */ - public int getRetcode() { - return retcode; - } - - /** - * optional uint32 retcode = 2; - * @param value the retcode to set - * @return this - */ - public GetMainMissionCustomValueScRsp setRetcode(final int value) { - bitField0_ |= 0x00000001; - retcode = value; - return this; - } - - /** - * repeated .MainMission main_mission_list = 5; - * @return whether the mainMissionList field is set - */ - public boolean hasMainMissionList() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * repeated .MainMission main_mission_list = 5; - * @return this - */ - public GetMainMissionCustomValueScRsp clearMainMissionList() { - bitField0_ &= ~0x00000002; - mainMissionList.clear(); - return this; - } - - /** - * repeated .MainMission main_mission_list = 5; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableMainMissionList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getMainMissionList() { - return mainMissionList; - } - - /** - * repeated .MainMission main_mission_list = 5; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableMainMissionList() { - bitField0_ |= 0x00000002; - return mainMissionList; - } - - /** - * repeated .MainMission main_mission_list = 5; - * @param value the mainMissionList to add - * @return this - */ - public GetMainMissionCustomValueScRsp addMainMissionList( - final MainMissionOuterClass.MainMission value) { - bitField0_ |= 0x00000002; - mainMissionList.add(value); - return this; - } - - /** - * repeated .MainMission main_mission_list = 5; - * @param values the mainMissionList to add - * @return this - */ - public GetMainMissionCustomValueScRsp addAllMainMissionList( - final MainMissionOuterClass.MainMission... values) { - bitField0_ |= 0x00000002; - mainMissionList.addAll(values); - return this; - } - - @Override - public GetMainMissionCustomValueScRsp copyFrom(final GetMainMissionCustomValueScRsp other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - retcode = other.retcode; - mainMissionList.copyFrom(other.mainMissionList); - } - return this; - } - - @Override - public GetMainMissionCustomValueScRsp mergeFrom(final GetMainMissionCustomValueScRsp other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasRetcode()) { - setRetcode(other.retcode); - } - if (other.hasMainMissionList()) { - getMutableMainMissionList().addAll(other.mainMissionList); - } - return this; - } - - @Override - public GetMainMissionCustomValueScRsp clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - retcode = 0; - mainMissionList.clear(); - return this; - } - - @Override - public GetMainMissionCustomValueScRsp clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - mainMissionList.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof GetMainMissionCustomValueScRsp)) { - return false; - } - GetMainMissionCustomValueScRsp other = (GetMainMissionCustomValueScRsp) o; - return bitField0_ == other.bitField0_ - && (!hasRetcode() || retcode == other.retcode) - && (!hasMainMissionList() || mainMissionList.equals(other.mainMissionList)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(retcode); - } - if ((bitField0_ & 0x00000002) != 0) { - for (int i = 0; i < mainMissionList.length(); i++) { - output.writeRawByte((byte) 42); - output.writeMessageNoTag(mainMissionList.get(i)); - } - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); - } - if ((bitField0_ & 0x00000002) != 0) { - size += (1 * mainMissionList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(mainMissionList); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public GetMainMissionCustomValueScRsp mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 16: { - // retcode - retcode = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 42) { - break; - } - } - case 42: { - // mainMissionList - tag = input.readRepeatedMessage(mainMissionList, tag); - bitField0_ |= 0x00000002; - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRepeatedMessage(FieldNames.mainMissionList, mainMissionList); - } - output.endObject(); - } - - @Override - public GetMainMissionCustomValueScRsp mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { - if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1352596271: - case 939604023: { - if (input.isAtField(FieldNames.mainMissionList)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(mainMissionList); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public GetMainMissionCustomValueScRsp clone() { - return new GetMainMissionCustomValueScRsp().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static GetMainMissionCustomValueScRsp parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new GetMainMissionCustomValueScRsp(), data).checkInitialized(); - } - - public static GetMainMissionCustomValueScRsp parseFrom(final ProtoSource input) throws - IOException { - return ProtoMessage.mergeFrom(new GetMainMissionCustomValueScRsp(), input).checkInitialized(); - } - - public static GetMainMissionCustomValueScRsp parseFrom(final JsonSource input) throws - IOException { - return ProtoMessage.mergeFrom(new GetMainMissionCustomValueScRsp(), input).checkInitialized(); - } - - /** - * @return factory for creating GetMainMissionCustomValueScRsp messages - */ - public static MessageFactory getFactory() { - return GetMainMissionCustomValueScRspFactory.INSTANCE; - } - - private enum GetMainMissionCustomValueScRspFactory implements MessageFactory { - INSTANCE; - - @Override - public GetMainMissionCustomValueScRsp create() { - return GetMainMissionCustomValueScRsp.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName retcode = FieldName.forField("retcode"); - - static final FieldName mainMissionList = FieldName.forField("mainMissionList", "main_mission_list"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/GetMissionStatusCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetMissionStatusCsReqOuterClass.java index 90291b1d7..b4b24d2c2 100644 --- a/src/generated/main/emu/lunarcore/proto/GetMissionStatusCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetMissionStatusCsReqOuterClass.java @@ -20,19 +20,19 @@ public static final class GetMissionStatusCsReq extends ProtoMessagerepeated uint32 main_mission_id_list = 2; + * repeated uint32 mission_event_id_list = 9; */ - private final RepeatedInt mainMissionIdList = RepeatedInt.newEmptyInstance(); + private final RepeatedInt missionEventIdList = RepeatedInt.newEmptyInstance(); /** - * repeated uint32 sub_mission_id_list = 12; + * repeated uint32 sub_mission_id_list = 13; */ private final RepeatedInt subMissionIdList = RepeatedInt.newEmptyInstance(); /** - * repeated uint32 mission_event_id_list = 14; + * repeated uint32 main_mission_id_list = 14; */ - private final RepeatedInt missionEventIdList = RepeatedInt.newEmptyInstance(); + private final RepeatedInt mainMissionIdList = RepeatedInt.newEmptyInstance(); private GetMissionStatusCsReq() { } @@ -45,39 +45,39 @@ public static GetMissionStatusCsReq newInstance() { } /** - * repeated uint32 main_mission_id_list = 2; - * @return whether the mainMissionIdList field is set + * repeated uint32 mission_event_id_list = 9; + * @return whether the missionEventIdList field is set */ - public boolean hasMainMissionIdList() { + public boolean hasMissionEventIdList() { return (bitField0_ & 0x00000001) != 0; } /** - * repeated uint32 main_mission_id_list = 2; + * repeated uint32 mission_event_id_list = 9; * @return this */ - public GetMissionStatusCsReq clearMainMissionIdList() { + public GetMissionStatusCsReq clearMissionEventIdList() { bitField0_ &= ~0x00000001; - mainMissionIdList.clear(); + missionEventIdList.clear(); return this; } /** - * repeated uint32 main_mission_id_list = 2; + * repeated uint32 mission_event_id_list = 9; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableMainMissionIdList()} if you want to modify it. + * Use {@link #getMutableMissionEventIdList()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedInt getMainMissionIdList() { - return mainMissionIdList; + public RepeatedInt getMissionEventIdList() { + return missionEventIdList; } /** - * repeated uint32 main_mission_id_list = 2; + * repeated uint32 mission_event_id_list = 9; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -85,35 +85,35 @@ public RepeatedInt getMainMissionIdList() { * * @return internal storage object for modifications */ - public RepeatedInt getMutableMainMissionIdList() { + public RepeatedInt getMutableMissionEventIdList() { bitField0_ |= 0x00000001; - return mainMissionIdList; + return missionEventIdList; } /** - * repeated uint32 main_mission_id_list = 2; - * @param value the mainMissionIdList to add + * repeated uint32 mission_event_id_list = 9; + * @param value the missionEventIdList to add * @return this */ - public GetMissionStatusCsReq addMainMissionIdList(final int value) { + public GetMissionStatusCsReq addMissionEventIdList(final int value) { bitField0_ |= 0x00000001; - mainMissionIdList.add(value); + missionEventIdList.add(value); return this; } /** - * repeated uint32 main_mission_id_list = 2; - * @param values the mainMissionIdList to add + * repeated uint32 mission_event_id_list = 9; + * @param values the missionEventIdList to add * @return this */ - public GetMissionStatusCsReq addAllMainMissionIdList(final int... values) { + public GetMissionStatusCsReq addAllMissionEventIdList(final int... values) { bitField0_ |= 0x00000001; - mainMissionIdList.addAll(values); + missionEventIdList.addAll(values); return this; } /** - * repeated uint32 sub_mission_id_list = 12; + * repeated uint32 sub_mission_id_list = 13; * @return whether the subMissionIdList field is set */ public boolean hasSubMissionIdList() { @@ -121,7 +121,7 @@ public boolean hasSubMissionIdList() { } /** - * repeated uint32 sub_mission_id_list = 12; + * repeated uint32 sub_mission_id_list = 13; * @return this */ public GetMissionStatusCsReq clearSubMissionIdList() { @@ -131,7 +131,7 @@ public GetMissionStatusCsReq clearSubMissionIdList() { } /** - * repeated uint32 sub_mission_id_list = 12; + * repeated uint32 sub_mission_id_list = 13; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -145,7 +145,7 @@ public RepeatedInt getSubMissionIdList() { } /** - * repeated uint32 sub_mission_id_list = 12; + * repeated uint32 sub_mission_id_list = 13; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -159,7 +159,7 @@ public RepeatedInt getMutableSubMissionIdList() { } /** - * repeated uint32 sub_mission_id_list = 12; + * repeated uint32 sub_mission_id_list = 13; * @param value the subMissionIdList to add * @return this */ @@ -170,7 +170,7 @@ public GetMissionStatusCsReq addSubMissionIdList(final int value) { } /** - * repeated uint32 sub_mission_id_list = 12; + * repeated uint32 sub_mission_id_list = 13; * @param values the subMissionIdList to add * @return this */ @@ -181,39 +181,39 @@ public GetMissionStatusCsReq addAllSubMissionIdList(final int... values) { } /** - * repeated uint32 mission_event_id_list = 14; - * @return whether the missionEventIdList field is set + * repeated uint32 main_mission_id_list = 14; + * @return whether the mainMissionIdList field is set */ - public boolean hasMissionEventIdList() { + public boolean hasMainMissionIdList() { return (bitField0_ & 0x00000004) != 0; } /** - * repeated uint32 mission_event_id_list = 14; + * repeated uint32 main_mission_id_list = 14; * @return this */ - public GetMissionStatusCsReq clearMissionEventIdList() { + public GetMissionStatusCsReq clearMainMissionIdList() { bitField0_ &= ~0x00000004; - missionEventIdList.clear(); + mainMissionIdList.clear(); return this; } /** - * repeated uint32 mission_event_id_list = 14; + * repeated uint32 main_mission_id_list = 14; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableMissionEventIdList()} if you want to modify it. + * Use {@link #getMutableMainMissionIdList()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedInt getMissionEventIdList() { - return missionEventIdList; + public RepeatedInt getMainMissionIdList() { + return mainMissionIdList; } /** - * repeated uint32 mission_event_id_list = 14; + * repeated uint32 main_mission_id_list = 14; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -221,30 +221,30 @@ public RepeatedInt getMissionEventIdList() { * * @return internal storage object for modifications */ - public RepeatedInt getMutableMissionEventIdList() { + public RepeatedInt getMutableMainMissionIdList() { bitField0_ |= 0x00000004; - return missionEventIdList; + return mainMissionIdList; } /** - * repeated uint32 mission_event_id_list = 14; - * @param value the missionEventIdList to add + * repeated uint32 main_mission_id_list = 14; + * @param value the mainMissionIdList to add * @return this */ - public GetMissionStatusCsReq addMissionEventIdList(final int value) { + public GetMissionStatusCsReq addMainMissionIdList(final int value) { bitField0_ |= 0x00000004; - missionEventIdList.add(value); + mainMissionIdList.add(value); return this; } /** - * repeated uint32 mission_event_id_list = 14; - * @param values the missionEventIdList to add + * repeated uint32 main_mission_id_list = 14; + * @param values the mainMissionIdList to add * @return this */ - public GetMissionStatusCsReq addAllMissionEventIdList(final int... values) { + public GetMissionStatusCsReq addAllMainMissionIdList(final int... values) { bitField0_ |= 0x00000004; - missionEventIdList.addAll(values); + mainMissionIdList.addAll(values); return this; } @@ -253,9 +253,9 @@ public GetMissionStatusCsReq copyFrom(final GetMissionStatusCsReq other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - mainMissionIdList.copyFrom(other.mainMissionIdList); - subMissionIdList.copyFrom(other.subMissionIdList); missionEventIdList.copyFrom(other.missionEventIdList); + subMissionIdList.copyFrom(other.subMissionIdList); + mainMissionIdList.copyFrom(other.mainMissionIdList); } return this; } @@ -266,14 +266,14 @@ public GetMissionStatusCsReq mergeFrom(final GetMissionStatusCsReq other) { return this; } cachedSize = -1; - if (other.hasMainMissionIdList()) { - getMutableMainMissionIdList().addAll(other.mainMissionIdList); + if (other.hasMissionEventIdList()) { + getMutableMissionEventIdList().addAll(other.missionEventIdList); } if (other.hasSubMissionIdList()) { getMutableSubMissionIdList().addAll(other.subMissionIdList); } - if (other.hasMissionEventIdList()) { - getMutableMissionEventIdList().addAll(other.missionEventIdList); + if (other.hasMainMissionIdList()) { + getMutableMainMissionIdList().addAll(other.mainMissionIdList); } return this; } @@ -285,9 +285,9 @@ public GetMissionStatusCsReq clear() { } cachedSize = -1; bitField0_ = 0; - mainMissionIdList.clear(); - subMissionIdList.clear(); missionEventIdList.clear(); + subMissionIdList.clear(); + mainMissionIdList.clear(); return this; } @@ -298,9 +298,9 @@ public GetMissionStatusCsReq clearQuick() { } cachedSize = -1; bitField0_ = 0; - mainMissionIdList.clear(); - subMissionIdList.clear(); missionEventIdList.clear(); + subMissionIdList.clear(); + mainMissionIdList.clear(); return this; } @@ -314,29 +314,29 @@ public boolean equals(Object o) { } GetMissionStatusCsReq other = (GetMissionStatusCsReq) o; return bitField0_ == other.bitField0_ - && (!hasMainMissionIdList() || mainMissionIdList.equals(other.mainMissionIdList)) + && (!hasMissionEventIdList() || missionEventIdList.equals(other.missionEventIdList)) && (!hasSubMissionIdList() || subMissionIdList.equals(other.subMissionIdList)) - && (!hasMissionEventIdList() || missionEventIdList.equals(other.missionEventIdList)); + && (!hasMainMissionIdList() || mainMissionIdList.equals(other.mainMissionIdList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - for (int i = 0; i < mainMissionIdList.length(); i++) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(mainMissionIdList.array()[i]); + for (int i = 0; i < missionEventIdList.length(); i++) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(missionEventIdList.array()[i]); } } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < subMissionIdList.length(); i++) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 104); output.writeUInt32NoTag(subMissionIdList.array()[i]); } } if ((bitField0_ & 0x00000004) != 0) { - for (int i = 0; i < missionEventIdList.length(); i++) { + for (int i = 0; i < mainMissionIdList.length(); i++) { output.writeRawByte((byte) 112); - output.writeUInt32NoTag(missionEventIdList.array()[i]); + output.writeUInt32NoTag(mainMissionIdList.array()[i]); } } } @@ -345,13 +345,13 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += (1 * mainMissionIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(mainMissionIdList); + size += (1 * missionEventIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(missionEventIdList); } if ((bitField0_ & 0x00000002) != 0) { size += (1 * subMissionIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(subMissionIdList); } if ((bitField0_ & 0x00000004) != 0) { - size += (1 * missionEventIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(missionEventIdList); + size += (1 * mainMissionIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(mainMissionIdList); } return size; } @@ -363,16 +363,16 @@ public GetMissionStatusCsReq mergeFrom(final ProtoSource input) throws IOExcepti int tag = input.readTag(); while (true) { switch (tag) { - case 18: { - // mainMissionIdList [packed=true] - input.readPackedUInt32(mainMissionIdList, tag); + case 74: { + // missionEventIdList [packed=true] + input.readPackedUInt32(missionEventIdList, tag); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 98) { + if (tag != 106) { break; } } - case 98: { + case 106: { // subMissionIdList [packed=true] input.readPackedUInt32(subMissionIdList, tag); bitField0_ |= 0x00000002; @@ -382,8 +382,8 @@ public GetMissionStatusCsReq mergeFrom(final ProtoSource input) throws IOExcepti } } case 114: { - // missionEventIdList [packed=true] - input.readPackedUInt32(missionEventIdList, tag); + // mainMissionIdList [packed=true] + input.readPackedUInt32(mainMissionIdList, tag); bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 0) { @@ -400,21 +400,21 @@ public GetMissionStatusCsReq mergeFrom(final ProtoSource input) throws IOExcepti tag = input.readTag(); break; } - case 16: { - // mainMissionIdList [packed=false] - tag = input.readRepeatedUInt32(mainMissionIdList, tag); + case 72: { + // missionEventIdList [packed=false] + tag = input.readRepeatedUInt32(missionEventIdList, tag); bitField0_ |= 0x00000001; break; } - case 96: { + case 104: { // subMissionIdList [packed=false] tag = input.readRepeatedUInt32(subMissionIdList, tag); bitField0_ |= 0x00000002; break; } case 112: { - // missionEventIdList [packed=false] - tag = input.readRepeatedUInt32(missionEventIdList, tag); + // mainMissionIdList [packed=false] + tag = input.readRepeatedUInt32(mainMissionIdList, tag); bitField0_ |= 0x00000004; break; } @@ -426,13 +426,13 @@ public GetMissionStatusCsReq mergeFrom(final ProtoSource input) throws IOExcepti public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeRepeatedUInt32(FieldNames.mainMissionIdList, mainMissionIdList); + output.writeRepeatedUInt32(FieldNames.missionEventIdList, missionEventIdList); } if ((bitField0_ & 0x00000002) != 0) { output.writeRepeatedUInt32(FieldNames.subMissionIdList, subMissionIdList); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRepeatedUInt32(FieldNames.missionEventIdList, missionEventIdList); + output.writeRepeatedUInt32(FieldNames.mainMissionIdList, mainMissionIdList); } output.endObject(); } @@ -444,11 +444,11 @@ public GetMissionStatusCsReq mergeFrom(final JsonSource input) throws IOExceptio } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1438400460: - case -1382679799: { - if (input.isAtField(FieldNames.mainMissionIdList)) { + case 784770663: + case -628890838: { + if (input.isAtField(FieldNames.missionEventIdList)) { if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(mainMissionIdList); + input.readRepeatedUInt32(missionEventIdList); bitField0_ |= 0x00000001; } } else { @@ -468,11 +468,11 @@ public GetMissionStatusCsReq mergeFrom(final JsonSource input) throws IOExceptio } break; } - case 784770663: - case -628890838: { - if (input.isAtField(FieldNames.missionEventIdList)) { + case 1438400460: + case -1382679799: { + if (input.isAtField(FieldNames.mainMissionIdList)) { if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(missionEventIdList); + input.readRepeatedUInt32(mainMissionIdList); bitField0_ |= 0x00000004; } } else { @@ -533,11 +533,11 @@ public GetMissionStatusCsReq create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName mainMissionIdList = FieldName.forField("mainMissionIdList", "main_mission_id_list"); + static final FieldName missionEventIdList = FieldName.forField("missionEventIdList", "mission_event_id_list"); static final FieldName subMissionIdList = FieldName.forField("subMissionIdList", "sub_mission_id_list"); - static final FieldName missionEventIdList = FieldName.forField("missionEventIdList", "mission_event_id_list"); + static final FieldName mainMissionIdList = FieldName.forField("mainMissionIdList", "main_mission_id_list"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/GetMissionStatusScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetMissionStatusScRspOuterClass.java index 1bd989776..6d8dde4ca 100644 --- a/src/generated/main/emu/lunarcore/proto/GetMissionStatusScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetMissionStatusScRspOuterClass.java @@ -21,32 +21,32 @@ public static final class GetMissionStatusScRsp extends ProtoMessageoptional uint32 retcode = 11; + * optional uint32 retcode = 15; */ private int retcode; /** - * repeated uint32 disabled_main_mission_id_list = 6; + * repeated uint32 unfinished_main_mission_id_list = 2; */ - private final RepeatedInt disabledMainMissionIdList = RepeatedInt.newEmptyInstance(); + private final RepeatedInt unfinishedMainMissionIdList = RepeatedInt.newEmptyInstance(); /** - * repeated uint32 unfinished_main_mission_id_list = 8; + * repeated uint32 disabled_main_mission_id_list = 9; */ - private final RepeatedInt unfinishedMainMissionIdList = RepeatedInt.newEmptyInstance(); + private final RepeatedInt disabledMainMissionIdList = RepeatedInt.newEmptyInstance(); /** - * repeated uint32 finished_main_mission_id_list = 12; + * repeated uint32 finished_main_mission_id_list = 11; */ private final RepeatedInt finishedMainMissionIdList = RepeatedInt.newEmptyInstance(); /** - * repeated .Mission sub_mission_status_list = 1; + * repeated .Mission sub_mission_status_list = 6; */ private final RepeatedMessage subMissionStatusList = RepeatedMessage.newEmptyInstance(MissionOuterClass.Mission.getFactory()); /** - * repeated .Mission mission_event_status_list = 2; + * repeated .Mission mission_event_status_list = 12; */ private final RepeatedMessage missionEventStatusList = RepeatedMessage.newEmptyInstance(MissionOuterClass.Mission.getFactory()); @@ -61,7 +61,7 @@ public static GetMissionStatusScRsp newInstance() { } /** - * optional uint32 retcode = 11; + * optional uint32 retcode = 15; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -69,7 +69,7 @@ public boolean hasRetcode() { } /** - * optional uint32 retcode = 11; + * optional uint32 retcode = 15; * @return this */ public GetMissionStatusScRsp clearRetcode() { @@ -79,7 +79,7 @@ public GetMissionStatusScRsp clearRetcode() { } /** - * optional uint32 retcode = 11; + * optional uint32 retcode = 15; * @return the retcode */ public int getRetcode() { @@ -87,7 +87,7 @@ public int getRetcode() { } /** - * optional uint32 retcode = 11; + * optional uint32 retcode = 15; * @param value the retcode to set * @return this */ @@ -98,39 +98,39 @@ public GetMissionStatusScRsp setRetcode(final int value) { } /** - * repeated uint32 disabled_main_mission_id_list = 6; - * @return whether the disabledMainMissionIdList field is set + * repeated uint32 unfinished_main_mission_id_list = 2; + * @return whether the unfinishedMainMissionIdList field is set */ - public boolean hasDisabledMainMissionIdList() { + public boolean hasUnfinishedMainMissionIdList() { return (bitField0_ & 0x00000002) != 0; } /** - * repeated uint32 disabled_main_mission_id_list = 6; + * repeated uint32 unfinished_main_mission_id_list = 2; * @return this */ - public GetMissionStatusScRsp clearDisabledMainMissionIdList() { + public GetMissionStatusScRsp clearUnfinishedMainMissionIdList() { bitField0_ &= ~0x00000002; - disabledMainMissionIdList.clear(); + unfinishedMainMissionIdList.clear(); return this; } /** - * repeated uint32 disabled_main_mission_id_list = 6; + * repeated uint32 unfinished_main_mission_id_list = 2; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableDisabledMainMissionIdList()} if you want to modify it. + * Use {@link #getMutableUnfinishedMainMissionIdList()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedInt getDisabledMainMissionIdList() { - return disabledMainMissionIdList; + public RepeatedInt getUnfinishedMainMissionIdList() { + return unfinishedMainMissionIdList; } /** - * repeated uint32 disabled_main_mission_id_list = 6; + * repeated uint32 unfinished_main_mission_id_list = 2; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -138,67 +138,67 @@ public RepeatedInt getDisabledMainMissionIdList() { * * @return internal storage object for modifications */ - public RepeatedInt getMutableDisabledMainMissionIdList() { + public RepeatedInt getMutableUnfinishedMainMissionIdList() { bitField0_ |= 0x00000002; - return disabledMainMissionIdList; + return unfinishedMainMissionIdList; } /** - * repeated uint32 disabled_main_mission_id_list = 6; - * @param value the disabledMainMissionIdList to add + * repeated uint32 unfinished_main_mission_id_list = 2; + * @param value the unfinishedMainMissionIdList to add * @return this */ - public GetMissionStatusScRsp addDisabledMainMissionIdList(final int value) { + public GetMissionStatusScRsp addUnfinishedMainMissionIdList(final int value) { bitField0_ |= 0x00000002; - disabledMainMissionIdList.add(value); + unfinishedMainMissionIdList.add(value); return this; } /** - * repeated uint32 disabled_main_mission_id_list = 6; - * @param values the disabledMainMissionIdList to add + * repeated uint32 unfinished_main_mission_id_list = 2; + * @param values the unfinishedMainMissionIdList to add * @return this */ - public GetMissionStatusScRsp addAllDisabledMainMissionIdList(final int... values) { + public GetMissionStatusScRsp addAllUnfinishedMainMissionIdList(final int... values) { bitField0_ |= 0x00000002; - disabledMainMissionIdList.addAll(values); + unfinishedMainMissionIdList.addAll(values); return this; } /** - * repeated uint32 unfinished_main_mission_id_list = 8; - * @return whether the unfinishedMainMissionIdList field is set + * repeated uint32 disabled_main_mission_id_list = 9; + * @return whether the disabledMainMissionIdList field is set */ - public boolean hasUnfinishedMainMissionIdList() { + public boolean hasDisabledMainMissionIdList() { return (bitField0_ & 0x00000004) != 0; } /** - * repeated uint32 unfinished_main_mission_id_list = 8; + * repeated uint32 disabled_main_mission_id_list = 9; * @return this */ - public GetMissionStatusScRsp clearUnfinishedMainMissionIdList() { + public GetMissionStatusScRsp clearDisabledMainMissionIdList() { bitField0_ &= ~0x00000004; - unfinishedMainMissionIdList.clear(); + disabledMainMissionIdList.clear(); return this; } /** - * repeated uint32 unfinished_main_mission_id_list = 8; + * repeated uint32 disabled_main_mission_id_list = 9; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableUnfinishedMainMissionIdList()} if you want to modify it. + * Use {@link #getMutableDisabledMainMissionIdList()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedInt getUnfinishedMainMissionIdList() { - return unfinishedMainMissionIdList; + public RepeatedInt getDisabledMainMissionIdList() { + return disabledMainMissionIdList; } /** - * repeated uint32 unfinished_main_mission_id_list = 8; + * repeated uint32 disabled_main_mission_id_list = 9; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -206,35 +206,35 @@ public RepeatedInt getUnfinishedMainMissionIdList() { * * @return internal storage object for modifications */ - public RepeatedInt getMutableUnfinishedMainMissionIdList() { + public RepeatedInt getMutableDisabledMainMissionIdList() { bitField0_ |= 0x00000004; - return unfinishedMainMissionIdList; + return disabledMainMissionIdList; } /** - * repeated uint32 unfinished_main_mission_id_list = 8; - * @param value the unfinishedMainMissionIdList to add + * repeated uint32 disabled_main_mission_id_list = 9; + * @param value the disabledMainMissionIdList to add * @return this */ - public GetMissionStatusScRsp addUnfinishedMainMissionIdList(final int value) { + public GetMissionStatusScRsp addDisabledMainMissionIdList(final int value) { bitField0_ |= 0x00000004; - unfinishedMainMissionIdList.add(value); + disabledMainMissionIdList.add(value); return this; } /** - * repeated uint32 unfinished_main_mission_id_list = 8; - * @param values the unfinishedMainMissionIdList to add + * repeated uint32 disabled_main_mission_id_list = 9; + * @param values the disabledMainMissionIdList to add * @return this */ - public GetMissionStatusScRsp addAllUnfinishedMainMissionIdList(final int... values) { + public GetMissionStatusScRsp addAllDisabledMainMissionIdList(final int... values) { bitField0_ |= 0x00000004; - unfinishedMainMissionIdList.addAll(values); + disabledMainMissionIdList.addAll(values); return this; } /** - * repeated uint32 finished_main_mission_id_list = 12; + * repeated uint32 finished_main_mission_id_list = 11; * @return whether the finishedMainMissionIdList field is set */ public boolean hasFinishedMainMissionIdList() { @@ -242,7 +242,7 @@ public boolean hasFinishedMainMissionIdList() { } /** - * repeated uint32 finished_main_mission_id_list = 12; + * repeated uint32 finished_main_mission_id_list = 11; * @return this */ public GetMissionStatusScRsp clearFinishedMainMissionIdList() { @@ -252,7 +252,7 @@ public GetMissionStatusScRsp clearFinishedMainMissionIdList() { } /** - * repeated uint32 finished_main_mission_id_list = 12; + * repeated uint32 finished_main_mission_id_list = 11; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -266,7 +266,7 @@ public RepeatedInt getFinishedMainMissionIdList() { } /** - * repeated uint32 finished_main_mission_id_list = 12; + * repeated uint32 finished_main_mission_id_list = 11; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -280,7 +280,7 @@ public RepeatedInt getMutableFinishedMainMissionIdList() { } /** - * repeated uint32 finished_main_mission_id_list = 12; + * repeated uint32 finished_main_mission_id_list = 11; * @param value the finishedMainMissionIdList to add * @return this */ @@ -291,7 +291,7 @@ public GetMissionStatusScRsp addFinishedMainMissionIdList(final int value) { } /** - * repeated uint32 finished_main_mission_id_list = 12; + * repeated uint32 finished_main_mission_id_list = 11; * @param values the finishedMainMissionIdList to add * @return this */ @@ -302,7 +302,7 @@ public GetMissionStatusScRsp addAllFinishedMainMissionIdList(final int... values } /** - * repeated .Mission sub_mission_status_list = 1; + * repeated .Mission sub_mission_status_list = 6; * @return whether the subMissionStatusList field is set */ public boolean hasSubMissionStatusList() { @@ -310,7 +310,7 @@ public boolean hasSubMissionStatusList() { } /** - * repeated .Mission sub_mission_status_list = 1; + * repeated .Mission sub_mission_status_list = 6; * @return this */ public GetMissionStatusScRsp clearSubMissionStatusList() { @@ -320,7 +320,7 @@ public GetMissionStatusScRsp clearSubMissionStatusList() { } /** - * repeated .Mission sub_mission_status_list = 1; + * repeated .Mission sub_mission_status_list = 6; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -334,7 +334,7 @@ public RepeatedMessage getSubMissionStatusList() { } /** - * repeated .Mission sub_mission_status_list = 1; + * repeated .Mission sub_mission_status_list = 6; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -348,7 +348,7 @@ public RepeatedMessage getMutableSubMissionStatusList } /** - * repeated .Mission sub_mission_status_list = 1; + * repeated .Mission sub_mission_status_list = 6; * @param value the subMissionStatusList to add * @return this */ @@ -359,7 +359,7 @@ public GetMissionStatusScRsp addSubMissionStatusList(final MissionOuterClass.Mis } /** - * repeated .Mission sub_mission_status_list = 1; + * repeated .Mission sub_mission_status_list = 6; * @param values the subMissionStatusList to add * @return this */ @@ -371,7 +371,7 @@ public GetMissionStatusScRsp addAllSubMissionStatusList( } /** - * repeated .Mission mission_event_status_list = 2; + * repeated .Mission mission_event_status_list = 12; * @return whether the missionEventStatusList field is set */ public boolean hasMissionEventStatusList() { @@ -379,7 +379,7 @@ public boolean hasMissionEventStatusList() { } /** - * repeated .Mission mission_event_status_list = 2; + * repeated .Mission mission_event_status_list = 12; * @return this */ public GetMissionStatusScRsp clearMissionEventStatusList() { @@ -389,7 +389,7 @@ public GetMissionStatusScRsp clearMissionEventStatusList() { } /** - * repeated .Mission mission_event_status_list = 2; + * repeated .Mission mission_event_status_list = 12; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -403,7 +403,7 @@ public RepeatedMessage getMissionEventStatusList() { } /** - * repeated .Mission mission_event_status_list = 2; + * repeated .Mission mission_event_status_list = 12; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -417,7 +417,7 @@ public RepeatedMessage getMutableMissionEventStatusLi } /** - * repeated .Mission mission_event_status_list = 2; + * repeated .Mission mission_event_status_list = 12; * @param value the missionEventStatusList to add * @return this */ @@ -428,7 +428,7 @@ public GetMissionStatusScRsp addMissionEventStatusList(final MissionOuterClass.M } /** - * repeated .Mission mission_event_status_list = 2; + * repeated .Mission mission_event_status_list = 12; * @param values the missionEventStatusList to add * @return this */ @@ -445,8 +445,8 @@ public GetMissionStatusScRsp copyFrom(final GetMissionStatusScRsp other) { if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; retcode = other.retcode; - disabledMainMissionIdList.copyFrom(other.disabledMainMissionIdList); unfinishedMainMissionIdList.copyFrom(other.unfinishedMainMissionIdList); + disabledMainMissionIdList.copyFrom(other.disabledMainMissionIdList); finishedMainMissionIdList.copyFrom(other.finishedMainMissionIdList); subMissionStatusList.copyFrom(other.subMissionStatusList); missionEventStatusList.copyFrom(other.missionEventStatusList); @@ -463,12 +463,12 @@ public GetMissionStatusScRsp mergeFrom(final GetMissionStatusScRsp other) { if (other.hasRetcode()) { setRetcode(other.retcode); } - if (other.hasDisabledMainMissionIdList()) { - getMutableDisabledMainMissionIdList().addAll(other.disabledMainMissionIdList); - } if (other.hasUnfinishedMainMissionIdList()) { getMutableUnfinishedMainMissionIdList().addAll(other.unfinishedMainMissionIdList); } + if (other.hasDisabledMainMissionIdList()) { + getMutableDisabledMainMissionIdList().addAll(other.disabledMainMissionIdList); + } if (other.hasFinishedMainMissionIdList()) { getMutableFinishedMainMissionIdList().addAll(other.finishedMainMissionIdList); } @@ -489,8 +489,8 @@ public GetMissionStatusScRsp clear() { cachedSize = -1; bitField0_ = 0; retcode = 0; - disabledMainMissionIdList.clear(); unfinishedMainMissionIdList.clear(); + disabledMainMissionIdList.clear(); finishedMainMissionIdList.clear(); subMissionStatusList.clear(); missionEventStatusList.clear(); @@ -504,8 +504,8 @@ public GetMissionStatusScRsp clearQuick() { } cachedSize = -1; bitField0_ = 0; - disabledMainMissionIdList.clear(); unfinishedMainMissionIdList.clear(); + disabledMainMissionIdList.clear(); finishedMainMissionIdList.clear(); subMissionStatusList.clearQuick(); missionEventStatusList.clearQuick(); @@ -523,8 +523,8 @@ public boolean equals(Object o) { GetMissionStatusScRsp other = (GetMissionStatusScRsp) o; return bitField0_ == other.bitField0_ && (!hasRetcode() || retcode == other.retcode) - && (!hasDisabledMainMissionIdList() || disabledMainMissionIdList.equals(other.disabledMainMissionIdList)) && (!hasUnfinishedMainMissionIdList() || unfinishedMainMissionIdList.equals(other.unfinishedMainMissionIdList)) + && (!hasDisabledMainMissionIdList() || disabledMainMissionIdList.equals(other.disabledMainMissionIdList)) && (!hasFinishedMainMissionIdList() || finishedMainMissionIdList.equals(other.finishedMainMissionIdList)) && (!hasSubMissionStatusList() || subMissionStatusList.equals(other.subMissionStatusList)) && (!hasMissionEventStatusList() || missionEventStatusList.equals(other.missionEventStatusList)); @@ -533,36 +533,36 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 120); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - for (int i = 0; i < disabledMainMissionIdList.length(); i++) { - output.writeRawByte((byte) 48); - output.writeUInt32NoTag(disabledMainMissionIdList.array()[i]); + for (int i = 0; i < unfinishedMainMissionIdList.length(); i++) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(unfinishedMainMissionIdList.array()[i]); } } if ((bitField0_ & 0x00000004) != 0) { - for (int i = 0; i < unfinishedMainMissionIdList.length(); i++) { - output.writeRawByte((byte) 64); - output.writeUInt32NoTag(unfinishedMainMissionIdList.array()[i]); + for (int i = 0; i < disabledMainMissionIdList.length(); i++) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(disabledMainMissionIdList.array()[i]); } } if ((bitField0_ & 0x00000008) != 0) { for (int i = 0; i < finishedMainMissionIdList.length(); i++) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 88); output.writeUInt32NoTag(finishedMainMissionIdList.array()[i]); } } if ((bitField0_ & 0x00000010) != 0) { for (int i = 0; i < subMissionStatusList.length(); i++) { - output.writeRawByte((byte) 10); + output.writeRawByte((byte) 50); output.writeMessageNoTag(subMissionStatusList.get(i)); } } if ((bitField0_ & 0x00000020) != 0) { for (int i = 0; i < missionEventStatusList.length(); i++) { - output.writeRawByte((byte) 18); + output.writeRawByte((byte) 98); output.writeMessageNoTag(missionEventStatusList.get(i)); } } @@ -575,10 +575,10 @@ protected int computeSerializedSize() { size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - size += (1 * disabledMainMissionIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(disabledMainMissionIdList); + size += (1 * unfinishedMainMissionIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(unfinishedMainMissionIdList); } if ((bitField0_ & 0x00000004) != 0) { - size += (1 * unfinishedMainMissionIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(unfinishedMainMissionIdList); + size += (1 * disabledMainMissionIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(disabledMainMissionIdList); } if ((bitField0_ & 0x00000008) != 0) { size += (1 * finishedMainMissionIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(finishedMainMissionIdList); @@ -599,51 +599,51 @@ public GetMissionStatusScRsp mergeFrom(final ProtoSource input) throws IOExcepti int tag = input.readTag(); while (true) { switch (tag) { - case 88: { + case 120: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 50) { + if (tag != 18) { break; } } - case 50: { - // disabledMainMissionIdList [packed=true] - input.readPackedUInt32(disabledMainMissionIdList, tag); + case 18: { + // unfinishedMainMissionIdList [packed=true] + input.readPackedUInt32(unfinishedMainMissionIdList, tag); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 66) { + if (tag != 74) { break; } } - case 66: { - // unfinishedMainMissionIdList [packed=true] - input.readPackedUInt32(unfinishedMainMissionIdList, tag); + case 74: { + // disabledMainMissionIdList [packed=true] + input.readPackedUInt32(disabledMainMissionIdList, tag); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 98) { + if (tag != 90) { break; } } - case 98: { + case 90: { // finishedMainMissionIdList [packed=true] input.readPackedUInt32(finishedMainMissionIdList, tag); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 10) { + if (tag != 50) { break; } } - case 10: { + case 50: { // subMissionStatusList tag = input.readRepeatedMessage(subMissionStatusList, tag); bitField0_ |= 0x00000010; - if (tag != 18) { + if (tag != 98) { break; } } - case 18: { + case 98: { // missionEventStatusList tag = input.readRepeatedMessage(missionEventStatusList, tag); bitField0_ |= 0x00000020; @@ -661,19 +661,19 @@ public GetMissionStatusScRsp mergeFrom(final ProtoSource input) throws IOExcepti tag = input.readTag(); break; } - case 48: { - // disabledMainMissionIdList [packed=false] - tag = input.readRepeatedUInt32(disabledMainMissionIdList, tag); + case 16: { + // unfinishedMainMissionIdList [packed=false] + tag = input.readRepeatedUInt32(unfinishedMainMissionIdList, tag); bitField0_ |= 0x00000002; break; } - case 64: { - // unfinishedMainMissionIdList [packed=false] - tag = input.readRepeatedUInt32(unfinishedMainMissionIdList, tag); + case 72: { + // disabledMainMissionIdList [packed=false] + tag = input.readRepeatedUInt32(disabledMainMissionIdList, tag); bitField0_ |= 0x00000004; break; } - case 96: { + case 88: { // finishedMainMissionIdList [packed=false] tag = input.readRepeatedUInt32(finishedMainMissionIdList, tag); bitField0_ |= 0x00000008; @@ -690,10 +690,10 @@ public void writeTo(final JsonSink output) throws IOException { output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRepeatedUInt32(FieldNames.disabledMainMissionIdList, disabledMainMissionIdList); + output.writeRepeatedUInt32(FieldNames.unfinishedMainMissionIdList, unfinishedMainMissionIdList); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRepeatedUInt32(FieldNames.unfinishedMainMissionIdList, unfinishedMainMissionIdList); + output.writeRepeatedUInt32(FieldNames.disabledMainMissionIdList, disabledMainMissionIdList); } if ((bitField0_ & 0x00000008) != 0) { output.writeRepeatedUInt32(FieldNames.finishedMainMissionIdList, finishedMainMissionIdList); @@ -725,11 +725,11 @@ public GetMissionStatusScRsp mergeFrom(final JsonSource input) throws IOExceptio } break; } - case 83823792: - case 1929478380: { - if (input.isAtField(FieldNames.disabledMainMissionIdList)) { + case 61133057: + case 1704637629: { + if (input.isAtField(FieldNames.unfinishedMainMissionIdList)) { if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(disabledMainMissionIdList); + input.readRepeatedUInt32(unfinishedMainMissionIdList); bitField0_ |= 0x00000002; } } else { @@ -737,11 +737,11 @@ public GetMissionStatusScRsp mergeFrom(final JsonSource input) throws IOExceptio } break; } - case 61133057: - case 1704637629: { - if (input.isAtField(FieldNames.unfinishedMainMissionIdList)) { + case 83823792: + case 1929478380: { + if (input.isAtField(FieldNames.disabledMainMissionIdList)) { if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(unfinishedMainMissionIdList); + input.readRepeatedUInt32(disabledMainMissionIdList); bitField0_ |= 0x00000004; } } else { @@ -840,10 +840,10 @@ public GetMissionStatusScRsp create() { static class FieldNames { static final FieldName retcode = FieldName.forField("retcode"); - static final FieldName disabledMainMissionIdList = FieldName.forField("disabledMainMissionIdList", "disabled_main_mission_id_list"); - static final FieldName unfinishedMainMissionIdList = FieldName.forField("unfinishedMainMissionIdList", "unfinished_main_mission_id_list"); + static final FieldName disabledMainMissionIdList = FieldName.forField("disabledMainMissionIdList", "disabled_main_mission_id_list"); + static final FieldName finishedMainMissionIdList = FieldName.forField("finishedMainMissionIdList", "finished_main_mission_id_list"); static final FieldName subMissionStatusList = FieldName.forField("subMissionStatusList", "sub_mission_status_list"); diff --git a/src/generated/main/emu/lunarcore/proto/GetNpcTakenRewardCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetNpcTakenRewardCsReqOuterClass.java index 56d92eaff..bae5c8899 100644 --- a/src/generated/main/emu/lunarcore/proto/GetNpcTakenRewardCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetNpcTakenRewardCsReqOuterClass.java @@ -19,7 +19,7 @@ public static final class GetNpcTakenRewardCsReq extends ProtoMessageoptional uint32 npc_id = 3; + * optional uint32 npc_id = 6; */ private int npcId; @@ -34,7 +34,7 @@ public static GetNpcTakenRewardCsReq newInstance() { } /** - * optional uint32 npc_id = 3; + * optional uint32 npc_id = 6; * @return whether the npcId field is set */ public boolean hasNpcId() { @@ -42,7 +42,7 @@ public boolean hasNpcId() { } /** - * optional uint32 npc_id = 3; + * optional uint32 npc_id = 6; * @return this */ public GetNpcTakenRewardCsReq clearNpcId() { @@ -52,7 +52,7 @@ public GetNpcTakenRewardCsReq clearNpcId() { } /** - * optional uint32 npc_id = 3; + * optional uint32 npc_id = 6; * @return the npcId */ public int getNpcId() { @@ -60,7 +60,7 @@ public int getNpcId() { } /** - * optional uint32 npc_id = 3; + * optional uint32 npc_id = 6; * @param value the npcId to set * @return this */ @@ -129,7 +129,7 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 48); output.writeUInt32NoTag(npcId); } } @@ -150,7 +150,7 @@ public GetNpcTakenRewardCsReq mergeFrom(final ProtoSource input) throws IOExcept int tag = input.readTag(); while (true) { switch (tag) { - case 24: { + case 48: { // npcId npcId = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/GetNpcTakenRewardScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetNpcTakenRewardScRspOuterClass.java index 8f9f01406..5a14cab77 100644 --- a/src/generated/main/emu/lunarcore/proto/GetNpcTakenRewardScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetNpcTakenRewardScRspOuterClass.java @@ -19,14 +19,14 @@ public static final class GetNpcTakenRewardScRsp extends ProtoMessageoptional uint32 retcode = 3; + * optional uint32 npc_id = 1; */ - private int retcode; + private int npcId; /** - * optional uint32 npc_id = 13; + * optional uint32 retcode = 12; */ - private int npcId; + private int retcode; private GetNpcTakenRewardScRsp() { } @@ -39,76 +39,76 @@ public static GetNpcTakenRewardScRsp newInstance() { } /** - * optional uint32 retcode = 3; - * @return whether the retcode field is set + * optional uint32 npc_id = 1; + * @return whether the npcId field is set */ - public boolean hasRetcode() { + public boolean hasNpcId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 retcode = 3; + * optional uint32 npc_id = 1; * @return this */ - public GetNpcTakenRewardScRsp clearRetcode() { + public GetNpcTakenRewardScRsp clearNpcId() { bitField0_ &= ~0x00000001; - retcode = 0; + npcId = 0; return this; } /** - * optional uint32 retcode = 3; - * @return the retcode + * optional uint32 npc_id = 1; + * @return the npcId */ - public int getRetcode() { - return retcode; + public int getNpcId() { + return npcId; } /** - * optional uint32 retcode = 3; - * @param value the retcode to set + * optional uint32 npc_id = 1; + * @param value the npcId to set * @return this */ - public GetNpcTakenRewardScRsp setRetcode(final int value) { + public GetNpcTakenRewardScRsp setNpcId(final int value) { bitField0_ |= 0x00000001; - retcode = value; + npcId = value; return this; } /** - * optional uint32 npc_id = 13; - * @return whether the npcId field is set + * optional uint32 retcode = 12; + * @return whether the retcode field is set */ - public boolean hasNpcId() { + public boolean hasRetcode() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 npc_id = 13; + * optional uint32 retcode = 12; * @return this */ - public GetNpcTakenRewardScRsp clearNpcId() { + public GetNpcTakenRewardScRsp clearRetcode() { bitField0_ &= ~0x00000002; - npcId = 0; + retcode = 0; return this; } /** - * optional uint32 npc_id = 13; - * @return the npcId + * optional uint32 retcode = 12; + * @return the retcode */ - public int getNpcId() { - return npcId; + public int getRetcode() { + return retcode; } /** - * optional uint32 npc_id = 13; - * @param value the npcId to set + * optional uint32 retcode = 12; + * @param value the retcode to set * @return this */ - public GetNpcTakenRewardScRsp setNpcId(final int value) { + public GetNpcTakenRewardScRsp setRetcode(final int value) { bitField0_ |= 0x00000002; - npcId = value; + retcode = value; return this; } @@ -117,8 +117,8 @@ public GetNpcTakenRewardScRsp copyFrom(final GetNpcTakenRewardScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - retcode = other.retcode; npcId = other.npcId; + retcode = other.retcode; } return this; } @@ -129,12 +129,12 @@ public GetNpcTakenRewardScRsp mergeFrom(final GetNpcTakenRewardScRsp other) { return this; } cachedSize = -1; - if (other.hasRetcode()) { - setRetcode(other.retcode); - } if (other.hasNpcId()) { setNpcId(other.npcId); } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } return this; } @@ -145,8 +145,8 @@ public GetNpcTakenRewardScRsp clear() { } cachedSize = -1; bitField0_ = 0; - retcode = 0; npcId = 0; + retcode = 0; return this; } @@ -170,19 +170,19 @@ public boolean equals(Object o) { } GetNpcTakenRewardScRsp other = (GetNpcTakenRewardScRsp) o; return bitField0_ == other.bitField0_ - && (!hasRetcode() || retcode == other.retcode) - && (!hasNpcId() || npcId == other.npcId); + && (!hasNpcId() || npcId == other.npcId) + && (!hasRetcode() || retcode == other.retcode); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(retcode); + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(npcId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 104); - output.writeUInt32NoTag(npcId); + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(retcode); } } @@ -190,10 +190,10 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(npcId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(npcId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } return size; } @@ -205,18 +205,18 @@ public GetNpcTakenRewardScRsp mergeFrom(final ProtoSource input) throws IOExcept int tag = input.readTag(); while (true) { switch (tag) { - case 24: { - // retcode - retcode = input.readUInt32(); + case 8: { + // npcId + npcId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 104) { + if (tag != 96) { break; } } - case 104: { - // npcId - npcId = input.readUInt32(); + case 96: { + // retcode + retcode = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { @@ -241,10 +241,10 @@ public GetNpcTakenRewardScRsp mergeFrom(final ProtoSource input) throws IOExcept public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.npcId, npcId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.npcId, npcId); + output.writeUInt32(FieldNames.retcode, retcode); } output.endObject(); } @@ -256,10 +256,11 @@ public GetNpcTakenRewardScRsp mergeFrom(final JsonSource input) throws IOExcepti } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { + case 105021404: + case -1039282375: { + if (input.isAtField(FieldNames.npcId)) { if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); + npcId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -267,11 +268,10 @@ public GetNpcTakenRewardScRsp mergeFrom(final JsonSource input) throws IOExcepti } break; } - case 105021404: - case -1039282375: { - if (input.isAtField(FieldNames.npcId)) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { - npcId = input.readUInt32(); + retcode = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -332,9 +332,9 @@ public GetNpcTakenRewardScRsp create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName retcode = FieldName.forField("retcode"); - static final FieldName npcId = FieldName.forField("npcId", "npc_id"); + + static final FieldName retcode = FieldName.forField("retcode"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/GetPhoneDataScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetPhoneDataScRspOuterClass.java index 09c5e663e..6d0ed166c 100644 --- a/src/generated/main/emu/lunarcore/proto/GetPhoneDataScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetPhoneDataScRspOuterClass.java @@ -20,29 +20,29 @@ public static final class GetPhoneDataScRsp extends ProtoMessageoptional uint32 cur_chat_bubble = 2; + * optional uint32 cur_chat_bubble = 6; */ private int curChatBubble; /** - * optional uint32 cur_phone_theme = 3; + * optional uint32 retcode = 8; */ - private int curPhoneTheme; + private int retcode; /** - * optional uint32 retcode = 9; + * optional uint32 cur_phone_theme = 10; */ - private int retcode; + private int curPhoneTheme; /** - * repeated uint32 owned_chat_bubbles = 10; + * repeated uint32 owned_phone_themes = 11; */ - private final RepeatedInt ownedChatBubbles = RepeatedInt.newEmptyInstance(); + private final RepeatedInt ownedPhoneThemes = RepeatedInt.newEmptyInstance(); /** - * repeated uint32 owned_phone_themes = 13; + * repeated uint32 owned_chat_bubbles = 15; */ - private final RepeatedInt ownedPhoneThemes = RepeatedInt.newEmptyInstance(); + private final RepeatedInt ownedChatBubbles = RepeatedInt.newEmptyInstance(); private GetPhoneDataScRsp() { } @@ -55,7 +55,7 @@ public static GetPhoneDataScRsp newInstance() { } /** - * optional uint32 cur_chat_bubble = 2; + * optional uint32 cur_chat_bubble = 6; * @return whether the curChatBubble field is set */ public boolean hasCurChatBubble() { @@ -63,7 +63,7 @@ public boolean hasCurChatBubble() { } /** - * optional uint32 cur_chat_bubble = 2; + * optional uint32 cur_chat_bubble = 6; * @return this */ public GetPhoneDataScRsp clearCurChatBubble() { @@ -73,7 +73,7 @@ public GetPhoneDataScRsp clearCurChatBubble() { } /** - * optional uint32 cur_chat_bubble = 2; + * optional uint32 cur_chat_bubble = 6; * @return the curChatBubble */ public int getCurChatBubble() { @@ -81,7 +81,7 @@ public int getCurChatBubble() { } /** - * optional uint32 cur_chat_bubble = 2; + * optional uint32 cur_chat_bubble = 6; * @param value the curChatBubble to set * @return this */ @@ -92,113 +92,113 @@ public GetPhoneDataScRsp setCurChatBubble(final int value) { } /** - * optional uint32 cur_phone_theme = 3; - * @return whether the curPhoneTheme field is set + * optional uint32 retcode = 8; + * @return whether the retcode field is set */ - public boolean hasCurPhoneTheme() { + public boolean hasRetcode() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 cur_phone_theme = 3; + * optional uint32 retcode = 8; * @return this */ - public GetPhoneDataScRsp clearCurPhoneTheme() { + public GetPhoneDataScRsp clearRetcode() { bitField0_ &= ~0x00000002; - curPhoneTheme = 0; + retcode = 0; return this; } /** - * optional uint32 cur_phone_theme = 3; - * @return the curPhoneTheme + * optional uint32 retcode = 8; + * @return the retcode */ - public int getCurPhoneTheme() { - return curPhoneTheme; + public int getRetcode() { + return retcode; } /** - * optional uint32 cur_phone_theme = 3; - * @param value the curPhoneTheme to set + * optional uint32 retcode = 8; + * @param value the retcode to set * @return this */ - public GetPhoneDataScRsp setCurPhoneTheme(final int value) { + public GetPhoneDataScRsp setRetcode(final int value) { bitField0_ |= 0x00000002; - curPhoneTheme = value; + retcode = value; return this; } /** - * optional uint32 retcode = 9; - * @return whether the retcode field is set + * optional uint32 cur_phone_theme = 10; + * @return whether the curPhoneTheme field is set */ - public boolean hasRetcode() { + public boolean hasCurPhoneTheme() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 retcode = 9; + * optional uint32 cur_phone_theme = 10; * @return this */ - public GetPhoneDataScRsp clearRetcode() { + public GetPhoneDataScRsp clearCurPhoneTheme() { bitField0_ &= ~0x00000004; - retcode = 0; + curPhoneTheme = 0; return this; } /** - * optional uint32 retcode = 9; - * @return the retcode + * optional uint32 cur_phone_theme = 10; + * @return the curPhoneTheme */ - public int getRetcode() { - return retcode; + public int getCurPhoneTheme() { + return curPhoneTheme; } /** - * optional uint32 retcode = 9; - * @param value the retcode to set + * optional uint32 cur_phone_theme = 10; + * @param value the curPhoneTheme to set * @return this */ - public GetPhoneDataScRsp setRetcode(final int value) { + public GetPhoneDataScRsp setCurPhoneTheme(final int value) { bitField0_ |= 0x00000004; - retcode = value; + curPhoneTheme = value; return this; } /** - * repeated uint32 owned_chat_bubbles = 10; - * @return whether the ownedChatBubbles field is set + * repeated uint32 owned_phone_themes = 11; + * @return whether the ownedPhoneThemes field is set */ - public boolean hasOwnedChatBubbles() { + public boolean hasOwnedPhoneThemes() { return (bitField0_ & 0x00000008) != 0; } /** - * repeated uint32 owned_chat_bubbles = 10; + * repeated uint32 owned_phone_themes = 11; * @return this */ - public GetPhoneDataScRsp clearOwnedChatBubbles() { + public GetPhoneDataScRsp clearOwnedPhoneThemes() { bitField0_ &= ~0x00000008; - ownedChatBubbles.clear(); + ownedPhoneThemes.clear(); return this; } /** - * repeated uint32 owned_chat_bubbles = 10; + * repeated uint32 owned_phone_themes = 11; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableOwnedChatBubbles()} if you want to modify it. + * Use {@link #getMutableOwnedPhoneThemes()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedInt getOwnedChatBubbles() { - return ownedChatBubbles; + public RepeatedInt getOwnedPhoneThemes() { + return ownedPhoneThemes; } /** - * repeated uint32 owned_chat_bubbles = 10; + * repeated uint32 owned_phone_themes = 11; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -206,67 +206,67 @@ public RepeatedInt getOwnedChatBubbles() { * * @return internal storage object for modifications */ - public RepeatedInt getMutableOwnedChatBubbles() { + public RepeatedInt getMutableOwnedPhoneThemes() { bitField0_ |= 0x00000008; - return ownedChatBubbles; + return ownedPhoneThemes; } /** - * repeated uint32 owned_chat_bubbles = 10; - * @param value the ownedChatBubbles to add + * repeated uint32 owned_phone_themes = 11; + * @param value the ownedPhoneThemes to add * @return this */ - public GetPhoneDataScRsp addOwnedChatBubbles(final int value) { + public GetPhoneDataScRsp addOwnedPhoneThemes(final int value) { bitField0_ |= 0x00000008; - ownedChatBubbles.add(value); + ownedPhoneThemes.add(value); return this; } /** - * repeated uint32 owned_chat_bubbles = 10; - * @param values the ownedChatBubbles to add + * repeated uint32 owned_phone_themes = 11; + * @param values the ownedPhoneThemes to add * @return this */ - public GetPhoneDataScRsp addAllOwnedChatBubbles(final int... values) { + public GetPhoneDataScRsp addAllOwnedPhoneThemes(final int... values) { bitField0_ |= 0x00000008; - ownedChatBubbles.addAll(values); + ownedPhoneThemes.addAll(values); return this; } /** - * repeated uint32 owned_phone_themes = 13; - * @return whether the ownedPhoneThemes field is set + * repeated uint32 owned_chat_bubbles = 15; + * @return whether the ownedChatBubbles field is set */ - public boolean hasOwnedPhoneThemes() { + public boolean hasOwnedChatBubbles() { return (bitField0_ & 0x00000010) != 0; } /** - * repeated uint32 owned_phone_themes = 13; + * repeated uint32 owned_chat_bubbles = 15; * @return this */ - public GetPhoneDataScRsp clearOwnedPhoneThemes() { + public GetPhoneDataScRsp clearOwnedChatBubbles() { bitField0_ &= ~0x00000010; - ownedPhoneThemes.clear(); + ownedChatBubbles.clear(); return this; } /** - * repeated uint32 owned_phone_themes = 13; + * repeated uint32 owned_chat_bubbles = 15; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableOwnedPhoneThemes()} if you want to modify it. + * Use {@link #getMutableOwnedChatBubbles()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedInt getOwnedPhoneThemes() { - return ownedPhoneThemes; + public RepeatedInt getOwnedChatBubbles() { + return ownedChatBubbles; } /** - * repeated uint32 owned_phone_themes = 13; + * repeated uint32 owned_chat_bubbles = 15; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -274,30 +274,30 @@ public RepeatedInt getOwnedPhoneThemes() { * * @return internal storage object for modifications */ - public RepeatedInt getMutableOwnedPhoneThemes() { + public RepeatedInt getMutableOwnedChatBubbles() { bitField0_ |= 0x00000010; - return ownedPhoneThemes; + return ownedChatBubbles; } /** - * repeated uint32 owned_phone_themes = 13; - * @param value the ownedPhoneThemes to add + * repeated uint32 owned_chat_bubbles = 15; + * @param value the ownedChatBubbles to add * @return this */ - public GetPhoneDataScRsp addOwnedPhoneThemes(final int value) { + public GetPhoneDataScRsp addOwnedChatBubbles(final int value) { bitField0_ |= 0x00000010; - ownedPhoneThemes.add(value); + ownedChatBubbles.add(value); return this; } /** - * repeated uint32 owned_phone_themes = 13; - * @param values the ownedPhoneThemes to add + * repeated uint32 owned_chat_bubbles = 15; + * @param values the ownedChatBubbles to add * @return this */ - public GetPhoneDataScRsp addAllOwnedPhoneThemes(final int... values) { + public GetPhoneDataScRsp addAllOwnedChatBubbles(final int... values) { bitField0_ |= 0x00000010; - ownedPhoneThemes.addAll(values); + ownedChatBubbles.addAll(values); return this; } @@ -307,10 +307,10 @@ public GetPhoneDataScRsp copyFrom(final GetPhoneDataScRsp other) { if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; curChatBubble = other.curChatBubble; - curPhoneTheme = other.curPhoneTheme; retcode = other.retcode; - ownedChatBubbles.copyFrom(other.ownedChatBubbles); + curPhoneTheme = other.curPhoneTheme; ownedPhoneThemes.copyFrom(other.ownedPhoneThemes); + ownedChatBubbles.copyFrom(other.ownedChatBubbles); } return this; } @@ -324,18 +324,18 @@ public GetPhoneDataScRsp mergeFrom(final GetPhoneDataScRsp other) { if (other.hasCurChatBubble()) { setCurChatBubble(other.curChatBubble); } - if (other.hasCurPhoneTheme()) { - setCurPhoneTheme(other.curPhoneTheme); - } if (other.hasRetcode()) { setRetcode(other.retcode); } - if (other.hasOwnedChatBubbles()) { - getMutableOwnedChatBubbles().addAll(other.ownedChatBubbles); + if (other.hasCurPhoneTheme()) { + setCurPhoneTheme(other.curPhoneTheme); } if (other.hasOwnedPhoneThemes()) { getMutableOwnedPhoneThemes().addAll(other.ownedPhoneThemes); } + if (other.hasOwnedChatBubbles()) { + getMutableOwnedChatBubbles().addAll(other.ownedChatBubbles); + } return this; } @@ -347,10 +347,10 @@ public GetPhoneDataScRsp clear() { cachedSize = -1; bitField0_ = 0; curChatBubble = 0; - curPhoneTheme = 0; retcode = 0; - ownedChatBubbles.clear(); + curPhoneTheme = 0; ownedPhoneThemes.clear(); + ownedChatBubbles.clear(); return this; } @@ -361,8 +361,8 @@ public GetPhoneDataScRsp clearQuick() { } cachedSize = -1; bitField0_ = 0; - ownedChatBubbles.clear(); ownedPhoneThemes.clear(); + ownedChatBubbles.clear(); return this; } @@ -377,36 +377,36 @@ public boolean equals(Object o) { GetPhoneDataScRsp other = (GetPhoneDataScRsp) o; return bitField0_ == other.bitField0_ && (!hasCurChatBubble() || curChatBubble == other.curChatBubble) - && (!hasCurPhoneTheme() || curPhoneTheme == other.curPhoneTheme) && (!hasRetcode() || retcode == other.retcode) - && (!hasOwnedChatBubbles() || ownedChatBubbles.equals(other.ownedChatBubbles)) - && (!hasOwnedPhoneThemes() || ownedPhoneThemes.equals(other.ownedPhoneThemes)); + && (!hasCurPhoneTheme() || curPhoneTheme == other.curPhoneTheme) + && (!hasOwnedPhoneThemes() || ownedPhoneThemes.equals(other.ownedPhoneThemes)) + && (!hasOwnedChatBubbles() || ownedChatBubbles.equals(other.ownedChatBubbles)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); + output.writeRawByte((byte) 48); output.writeUInt32NoTag(curChatBubble); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(curPhoneTheme); + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 72); - output.writeUInt32NoTag(retcode); + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(curPhoneTheme); } if ((bitField0_ & 0x00000008) != 0) { - for (int i = 0; i < ownedChatBubbles.length(); i++) { - output.writeRawByte((byte) 80); - output.writeUInt32NoTag(ownedChatBubbles.array()[i]); + for (int i = 0; i < ownedPhoneThemes.length(); i++) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(ownedPhoneThemes.array()[i]); } } if ((bitField0_ & 0x00000010) != 0) { - for (int i = 0; i < ownedPhoneThemes.length(); i++) { - output.writeRawByte((byte) 104); - output.writeUInt32NoTag(ownedPhoneThemes.array()[i]); + for (int i = 0; i < ownedChatBubbles.length(); i++) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(ownedChatBubbles.array()[i]); } } } @@ -418,16 +418,16 @@ protected int computeSerializedSize() { size += 1 + ProtoSink.computeUInt32SizeNoTag(curChatBubble); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(curPhoneTheme); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(curPhoneTheme); } if ((bitField0_ & 0x00000008) != 0) { - size += (1 * ownedChatBubbles.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(ownedChatBubbles); + size += (1 * ownedPhoneThemes.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(ownedPhoneThemes); } if ((bitField0_ & 0x00000010) != 0) { - size += (1 * ownedPhoneThemes.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(ownedPhoneThemes); + size += (1 * ownedChatBubbles.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(ownedChatBubbles); } return size; } @@ -439,45 +439,45 @@ public GetPhoneDataScRsp mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { + case 48: { // curChatBubble curChatBubble = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 24) { + if (tag != 64) { break; } } - case 24: { - // curPhoneTheme - curPhoneTheme = input.readUInt32(); + case 64: { + // retcode + retcode = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 72) { + if (tag != 80) { break; } } - case 72: { - // retcode - retcode = input.readUInt32(); + case 80: { + // curPhoneTheme + curPhoneTheme = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 82) { + if (tag != 90) { break; } } - case 82: { - // ownedChatBubbles [packed=true] - input.readPackedUInt32(ownedChatBubbles, tag); + case 90: { + // ownedPhoneThemes [packed=true] + input.readPackedUInt32(ownedPhoneThemes, tag); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 106) { + if (tag != 122) { break; } } - case 106: { - // ownedPhoneThemes [packed=true] - input.readPackedUInt32(ownedPhoneThemes, tag); + case 122: { + // ownedChatBubbles [packed=true] + input.readPackedUInt32(ownedChatBubbles, tag); bitField0_ |= 0x00000010; tag = input.readTag(); if (tag != 0) { @@ -494,15 +494,15 @@ public GetPhoneDataScRsp mergeFrom(final ProtoSource input) throws IOException { tag = input.readTag(); break; } - case 80: { - // ownedChatBubbles [packed=false] - tag = input.readRepeatedUInt32(ownedChatBubbles, tag); + case 88: { + // ownedPhoneThemes [packed=false] + tag = input.readRepeatedUInt32(ownedPhoneThemes, tag); bitField0_ |= 0x00000008; break; } - case 104: { - // ownedPhoneThemes [packed=false] - tag = input.readRepeatedUInt32(ownedPhoneThemes, tag); + case 120: { + // ownedChatBubbles [packed=false] + tag = input.readRepeatedUInt32(ownedChatBubbles, tag); bitField0_ |= 0x00000010; break; } @@ -517,16 +517,16 @@ public void writeTo(final JsonSink output) throws IOException { output.writeUInt32(FieldNames.curChatBubble, curChatBubble); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.curPhoneTheme, curPhoneTheme); + output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.curPhoneTheme, curPhoneTheme); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRepeatedUInt32(FieldNames.ownedChatBubbles, ownedChatBubbles); + output.writeRepeatedUInt32(FieldNames.ownedPhoneThemes, ownedPhoneThemes); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRepeatedUInt32(FieldNames.ownedPhoneThemes, ownedPhoneThemes); + output.writeRepeatedUInt32(FieldNames.ownedChatBubbles, ownedChatBubbles); } output.endObject(); } @@ -550,11 +550,10 @@ public GetPhoneDataScRsp mergeFrom(final JsonSource input) throws IOException { } break; } - case 405670747: - case -514634695: { - if (input.isAtField(FieldNames.curPhoneTheme)) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { - curPhoneTheme = input.readUInt32(); + retcode = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -562,10 +561,11 @@ public GetPhoneDataScRsp mergeFrom(final JsonSource input) throws IOException { } break; } - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { + case 405670747: + case -514634695: { + if (input.isAtField(FieldNames.curPhoneTheme)) { if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); + curPhoneTheme = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -573,11 +573,11 @@ public GetPhoneDataScRsp mergeFrom(final JsonSource input) throws IOException { } break; } - case -1579353334: - case -1491735846: { - if (input.isAtField(FieldNames.ownedChatBubbles)) { + case -512676109: + case -1128638699: { + if (input.isAtField(FieldNames.ownedPhoneThemes)) { if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(ownedChatBubbles); + input.readRepeatedUInt32(ownedPhoneThemes); bitField0_ |= 0x00000008; } } else { @@ -585,11 +585,11 @@ public GetPhoneDataScRsp mergeFrom(final JsonSource input) throws IOException { } break; } - case -512676109: - case -1128638699: { - if (input.isAtField(FieldNames.ownedPhoneThemes)) { + case -1579353334: + case -1491735846: { + if (input.isAtField(FieldNames.ownedChatBubbles)) { if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(ownedPhoneThemes); + input.readRepeatedUInt32(ownedChatBubbles); bitField0_ |= 0x00000010; } } else { @@ -652,13 +652,13 @@ public GetPhoneDataScRsp create() { static class FieldNames { static final FieldName curChatBubble = FieldName.forField("curChatBubble", "cur_chat_bubble"); - static final FieldName curPhoneTheme = FieldName.forField("curPhoneTheme", "cur_phone_theme"); - static final FieldName retcode = FieldName.forField("retcode"); - static final FieldName ownedChatBubbles = FieldName.forField("ownedChatBubbles", "owned_chat_bubbles"); + static final FieldName curPhoneTheme = FieldName.forField("curPhoneTheme", "cur_phone_theme"); static final FieldName ownedPhoneThemes = FieldName.forField("ownedPhoneThemes", "owned_phone_themes"); + + static final FieldName ownedChatBubbles = FieldName.forField("ownedChatBubbles", "owned_chat_bubbles"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/GetPlayerBoardDataScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetPlayerBoardDataScRspOuterClass.java index 24ff9a8a3..e6490598f 100644 --- a/src/generated/main/emu/lunarcore/proto/GetPlayerBoardDataScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetPlayerBoardDataScRspOuterClass.java @@ -21,22 +21,27 @@ public static final class GetPlayerBoardDataScRsp extends ProtoMessageoptional uint32 current_head_icon_id = 7; + * optional uint32 current_head_icon_id = 6; */ private int currentHeadIconId; /** - * optional string signature = 1; + * optional uint32 retcode = 7; */ - private final Utf8String signature = Utf8String.newEmptyInstance(); + private int retcode; /** - * optional string unk1 = 11; + * optional .DisplayAvatarVec display_avatar_vec = 15; */ - private final Utf8String unk1 = Utf8String.newEmptyInstance(); + private final DisplayAvatarVecOuterClass.DisplayAvatarVec displayAvatarVec = DisplayAvatarVecOuterClass.DisplayAvatarVec.newInstance(); + + /** + * optional string signature = 5; + */ + private final Utf8String signature = Utf8String.newEmptyInstance(); /** - * repeated .HeadIcon unlocked_head_icon_list = 14; + * repeated .HeadIcon unlocked_head_icon_list = 12; */ private final RepeatedMessage unlockedHeadIconList = RepeatedMessage.newEmptyInstance(HeadIconOuterClass.HeadIcon.getFactory()); @@ -51,7 +56,7 @@ public static GetPlayerBoardDataScRsp newInstance() { } /** - * optional uint32 current_head_icon_id = 7; + * optional uint32 current_head_icon_id = 6; * @return whether the currentHeadIconId field is set */ public boolean hasCurrentHeadIconId() { @@ -59,7 +64,7 @@ public boolean hasCurrentHeadIconId() { } /** - * optional uint32 current_head_icon_id = 7; + * optional uint32 current_head_icon_id = 6; * @return this */ public GetPlayerBoardDataScRsp clearCurrentHeadIconId() { @@ -69,7 +74,7 @@ public GetPlayerBoardDataScRsp clearCurrentHeadIconId() { } /** - * optional uint32 current_head_icon_id = 7; + * optional uint32 current_head_icon_id = 6; * @return the currentHeadIconId */ public int getCurrentHeadIconId() { @@ -77,7 +82,7 @@ public int getCurrentHeadIconId() { } /** - * optional uint32 current_head_icon_id = 7; + * optional uint32 current_head_icon_id = 6; * @param value the currentHeadIconId to set * @return this */ @@ -88,155 +93,185 @@ public GetPlayerBoardDataScRsp setCurrentHeadIconId(final int value) { } /** - * optional string signature = 1; - * @return whether the signature field is set + * optional uint32 retcode = 7; + * @return whether the retcode field is set */ - public boolean hasSignature() { + public boolean hasRetcode() { return (bitField0_ & 0x00000002) != 0; } /** - * optional string signature = 1; + * optional uint32 retcode = 7; * @return this */ - public GetPlayerBoardDataScRsp clearSignature() { + public GetPlayerBoardDataScRsp clearRetcode() { bitField0_ &= ~0x00000002; - signature.clear(); + retcode = 0; return this; } /** - * optional string signature = 1; - * @return the signature + * optional uint32 retcode = 7; + * @return the retcode */ - public String getSignature() { - return signature.getString(); + public int getRetcode() { + return retcode; } /** - * optional string signature = 1; - * @return internal {@code Utf8String} representation of signature for reading + * optional uint32 retcode = 7; + * @param value the retcode to set + * @return this */ - public Utf8String getSignatureBytes() { - return this.signature; + public GetPlayerBoardDataScRsp setRetcode(final int value) { + bitField0_ |= 0x00000002; + retcode = value; + return this; } /** - * optional string signature = 1; - * @return internal {@code Utf8String} representation of signature for modifications + * optional .DisplayAvatarVec display_avatar_vec = 15; + * @return whether the displayAvatarVec field is set */ - public Utf8String getMutableSignatureBytes() { - bitField0_ |= 0x00000002; - return this.signature; + public boolean hasDisplayAvatarVec() { + return (bitField0_ & 0x00000004) != 0; } /** - * optional string signature = 1; - * @param value the signature to set + * optional .DisplayAvatarVec display_avatar_vec = 15; * @return this */ - public GetPlayerBoardDataScRsp setSignature(final CharSequence value) { - bitField0_ |= 0x00000002; - signature.copyFrom(value); + public GetPlayerBoardDataScRsp clearDisplayAvatarVec() { + bitField0_ &= ~0x00000004; + displayAvatarVec.clear(); return this; } /** - * optional string signature = 1; - * @param value the signature to set + * optional .DisplayAvatarVec display_avatar_vec = 15; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableDisplayAvatarVec()} if you want to modify it. + * + * @return internal storage object for reading + */ + public DisplayAvatarVecOuterClass.DisplayAvatarVec getDisplayAvatarVec() { + return displayAvatarVec; + } + + /** + * optional .DisplayAvatarVec display_avatar_vec = 15; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public DisplayAvatarVecOuterClass.DisplayAvatarVec getMutableDisplayAvatarVec() { + bitField0_ |= 0x00000004; + return displayAvatarVec; + } + + /** + * optional .DisplayAvatarVec display_avatar_vec = 15; + * @param value the displayAvatarVec to set * @return this */ - public GetPlayerBoardDataScRsp setSignature(final Utf8String value) { - bitField0_ |= 0x00000002; - signature.copyFrom(value); + public GetPlayerBoardDataScRsp setDisplayAvatarVec( + final DisplayAvatarVecOuterClass.DisplayAvatarVec value) { + bitField0_ |= 0x00000004; + displayAvatarVec.copyFrom(value); return this; } /** - * optional string unk1 = 11; - * @return whether the unk1 field is set + * optional string signature = 5; + * @return whether the signature field is set */ - public boolean hasUnk1() { - return (bitField0_ & 0x00000004) != 0; + public boolean hasSignature() { + return (bitField0_ & 0x00000008) != 0; } /** - * optional string unk1 = 11; + * optional string signature = 5; * @return this */ - public GetPlayerBoardDataScRsp clearUnk1() { - bitField0_ &= ~0x00000004; - unk1.clear(); + public GetPlayerBoardDataScRsp clearSignature() { + bitField0_ &= ~0x00000008; + signature.clear(); return this; } /** - * optional string unk1 = 11; - * @return the unk1 + * optional string signature = 5; + * @return the signature */ - public String getUnk1() { - return unk1.getString(); + public String getSignature() { + return signature.getString(); } /** - * optional string unk1 = 11; - * @return internal {@code Utf8String} representation of unk1 for reading + * optional string signature = 5; + * @return internal {@code Utf8String} representation of signature for reading */ - public Utf8String getUnk1Bytes() { - return this.unk1; + public Utf8String getSignatureBytes() { + return this.signature; } /** - * optional string unk1 = 11; - * @return internal {@code Utf8String} representation of unk1 for modifications + * optional string signature = 5; + * @return internal {@code Utf8String} representation of signature for modifications */ - public Utf8String getMutableUnk1Bytes() { - bitField0_ |= 0x00000004; - return this.unk1; + public Utf8String getMutableSignatureBytes() { + bitField0_ |= 0x00000008; + return this.signature; } /** - * optional string unk1 = 11; - * @param value the unk1 to set + * optional string signature = 5; + * @param value the signature to set * @return this */ - public GetPlayerBoardDataScRsp setUnk1(final CharSequence value) { - bitField0_ |= 0x00000004; - unk1.copyFrom(value); + public GetPlayerBoardDataScRsp setSignature(final CharSequence value) { + bitField0_ |= 0x00000008; + signature.copyFrom(value); return this; } /** - * optional string unk1 = 11; - * @param value the unk1 to set + * optional string signature = 5; + * @param value the signature to set * @return this */ - public GetPlayerBoardDataScRsp setUnk1(final Utf8String value) { - bitField0_ |= 0x00000004; - unk1.copyFrom(value); + public GetPlayerBoardDataScRsp setSignature(final Utf8String value) { + bitField0_ |= 0x00000008; + signature.copyFrom(value); return this; } /** - * repeated .HeadIcon unlocked_head_icon_list = 14; + * repeated .HeadIcon unlocked_head_icon_list = 12; * @return whether the unlockedHeadIconList field is set */ public boolean hasUnlockedHeadIconList() { - return (bitField0_ & 0x00000008) != 0; + return (bitField0_ & 0x00000010) != 0; } /** - * repeated .HeadIcon unlocked_head_icon_list = 14; + * repeated .HeadIcon unlocked_head_icon_list = 12; * @return this */ public GetPlayerBoardDataScRsp clearUnlockedHeadIconList() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000010; unlockedHeadIconList.clear(); return this; } /** - * repeated .HeadIcon unlocked_head_icon_list = 14; + * repeated .HeadIcon unlocked_head_icon_list = 12; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -250,7 +285,7 @@ public RepeatedMessage getUnlockedHeadIconList() { } /** - * repeated .HeadIcon unlocked_head_icon_list = 14; + * repeated .HeadIcon unlocked_head_icon_list = 12; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -259,30 +294,30 @@ public RepeatedMessage getUnlockedHeadIconList() { * @return internal storage object for modifications */ public RepeatedMessage getMutableUnlockedHeadIconList() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; return unlockedHeadIconList; } /** - * repeated .HeadIcon unlocked_head_icon_list = 14; + * repeated .HeadIcon unlocked_head_icon_list = 12; * @param value the unlockedHeadIconList to add * @return this */ public GetPlayerBoardDataScRsp addUnlockedHeadIconList( final HeadIconOuterClass.HeadIcon value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; unlockedHeadIconList.add(value); return this; } /** - * repeated .HeadIcon unlocked_head_icon_list = 14; + * repeated .HeadIcon unlocked_head_icon_list = 12; * @param values the unlockedHeadIconList to add * @return this */ public GetPlayerBoardDataScRsp addAllUnlockedHeadIconList( final HeadIconOuterClass.HeadIcon... values) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; unlockedHeadIconList.addAll(values); return this; } @@ -293,8 +328,9 @@ public GetPlayerBoardDataScRsp copyFrom(final GetPlayerBoardDataScRsp other) { if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; currentHeadIconId = other.currentHeadIconId; + retcode = other.retcode; + displayAvatarVec.copyFrom(other.displayAvatarVec); signature.copyFrom(other.signature); - unk1.copyFrom(other.unk1); unlockedHeadIconList.copyFrom(other.unlockedHeadIconList); } return this; @@ -309,12 +345,15 @@ public GetPlayerBoardDataScRsp mergeFrom(final GetPlayerBoardDataScRsp other) { if (other.hasCurrentHeadIconId()) { setCurrentHeadIconId(other.currentHeadIconId); } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasDisplayAvatarVec()) { + getMutableDisplayAvatarVec().mergeFrom(other.displayAvatarVec); + } if (other.hasSignature()) { getMutableSignatureBytes().copyFrom(other.signature); } - if (other.hasUnk1()) { - getMutableUnk1Bytes().copyFrom(other.unk1); - } if (other.hasUnlockedHeadIconList()) { getMutableUnlockedHeadIconList().addAll(other.unlockedHeadIconList); } @@ -329,8 +368,9 @@ public GetPlayerBoardDataScRsp clear() { cachedSize = -1; bitField0_ = 0; currentHeadIconId = 0; + retcode = 0; + displayAvatarVec.clear(); signature.clear(); - unk1.clear(); unlockedHeadIconList.clear(); return this; } @@ -342,8 +382,8 @@ public GetPlayerBoardDataScRsp clearQuick() { } cachedSize = -1; bitField0_ = 0; + displayAvatarVec.clearQuick(); signature.clear(); - unk1.clear(); unlockedHeadIconList.clearQuick(); return this; } @@ -359,28 +399,33 @@ public boolean equals(Object o) { GetPlayerBoardDataScRsp other = (GetPlayerBoardDataScRsp) o; return bitField0_ == other.bitField0_ && (!hasCurrentHeadIconId() || currentHeadIconId == other.currentHeadIconId) + && (!hasRetcode() || retcode == other.retcode) + && (!hasDisplayAvatarVec() || displayAvatarVec.equals(other.displayAvatarVec)) && (!hasSignature() || signature.equals(other.signature)) - && (!hasUnk1() || unk1.equals(other.unk1)) && (!hasUnlockedHeadIconList() || unlockedHeadIconList.equals(other.unlockedHeadIconList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 48); output.writeUInt32NoTag(currentHeadIconId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 10); - output.writeStringNoTag(signature); + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 90); - output.writeStringNoTag(unk1); + output.writeRawByte((byte) 122); + output.writeMessageNoTag(displayAvatarVec); } if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 42); + output.writeStringNoTag(signature); + } + if ((bitField0_ & 0x00000010) != 0) { for (int i = 0; i < unlockedHeadIconList.length(); i++) { - output.writeRawByte((byte) 114); + output.writeRawByte((byte) 98); output.writeMessageNoTag(unlockedHeadIconList.get(i)); } } @@ -393,12 +438,15 @@ protected int computeSerializedSize() { size += 1 + ProtoSink.computeUInt32SizeNoTag(currentHeadIconId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeStringSizeNoTag(signature); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeStringSizeNoTag(unk1); + size += 1 + ProtoSink.computeMessageSizeNoTag(displayAvatarVec); } if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(signature); + } + if ((bitField0_ & 0x00000010) != 0) { size += (1 * unlockedHeadIconList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(unlockedHeadIconList); } return size; @@ -411,37 +459,46 @@ public GetPlayerBoardDataScRsp mergeFrom(final ProtoSource input) throws IOExcep int tag = input.readTag(); while (true) { switch (tag) { - case 56: { + case 48: { // currentHeadIconId currentHeadIconId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 10) { + if (tag != 56) { break; } } - case 10: { - // signature - input.readString(signature); + case 56: { + // retcode + retcode = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 90) { + if (tag != 122) { break; } } - case 90: { - // unk1 - input.readString(unk1); + case 122: { + // displayAvatarVec + input.readMessage(displayAvatarVec); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 114) { + if (tag != 42) { break; } } - case 114: { + case 42: { + // signature + input.readString(signature); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 98) { + break; + } + } + case 98: { // unlockedHeadIconList tag = input.readRepeatedMessage(unlockedHeadIconList, tag); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; if (tag != 0) { break; } @@ -467,12 +524,15 @@ public void writeTo(final JsonSink output) throws IOException { output.writeUInt32(FieldNames.currentHeadIconId, currentHeadIconId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeString(FieldNames.signature, signature); + output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000004) != 0) { - output.writeString(FieldNames.unk1, unk1); + output.writeMessage(FieldNames.displayAvatarVec, displayAvatarVec); } if ((bitField0_ & 0x00000008) != 0) { + output.writeString(FieldNames.signature, signature); + } + if ((bitField0_ & 0x00000010) != 0) { output.writeRepeatedMessage(FieldNames.unlockedHeadIconList, unlockedHeadIconList); } output.endObject(); @@ -497,10 +557,10 @@ public GetPlayerBoardDataScRsp mergeFrom(final JsonSource input) throws IOExcept } break; } - case 1073584312: { - if (input.isAtField(FieldNames.signature)) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { - input.readString(signature); + retcode = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -508,10 +568,11 @@ public GetPlayerBoardDataScRsp mergeFrom(final JsonSource input) throws IOExcept } break; } - case 3594623: { - if (input.isAtField(FieldNames.unk1)) { + case 1176708313: + case -130616501: { + if (input.isAtField(FieldNames.displayAvatarVec)) { if (!input.trySkipNullValue()) { - input.readString(unk1); + input.readMessage(displayAvatarVec); bitField0_ |= 0x00000004; } } else { @@ -519,12 +580,23 @@ public GetPlayerBoardDataScRsp mergeFrom(final JsonSource input) throws IOExcept } break; } + case 1073584312: { + if (input.isAtField(FieldNames.signature)) { + if (!input.trySkipNullValue()) { + input.readString(signature); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } case 1875382586: case -1276395039: { if (input.isAtField(FieldNames.unlockedHeadIconList)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(unlockedHeadIconList); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; } } else { input.skipUnknownField(); @@ -586,9 +658,11 @@ public GetPlayerBoardDataScRsp create() { static class FieldNames { static final FieldName currentHeadIconId = FieldName.forField("currentHeadIconId", "current_head_icon_id"); - static final FieldName signature = FieldName.forField("signature"); + static final FieldName retcode = FieldName.forField("retcode"); - static final FieldName unk1 = FieldName.forField("unk1"); + static final FieldName displayAvatarVec = FieldName.forField("displayAvatarVec", "display_avatar_vec"); + + static final FieldName signature = FieldName.forField("signature"); static final FieldName unlockedHeadIconList = FieldName.forField("unlockedHeadIconList", "unlocked_head_icon_list"); } diff --git a/src/generated/main/emu/lunarcore/proto/GetPlayerDetailInfoCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetPlayerDetailInfoCsReqOuterClass.java index 7c9aef225..804e5420c 100644 --- a/src/generated/main/emu/lunarcore/proto/GetPlayerDetailInfoCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetPlayerDetailInfoCsReqOuterClass.java @@ -19,7 +19,7 @@ public static final class GetPlayerDetailInfoCsReq extends ProtoMessageoptional uint32 uid = 3; + * optional uint32 uid = 5; */ private int uid; @@ -34,7 +34,7 @@ public static GetPlayerDetailInfoCsReq newInstance() { } /** - * optional uint32 uid = 3; + * optional uint32 uid = 5; * @return whether the uid field is set */ public boolean hasUid() { @@ -42,7 +42,7 @@ public boolean hasUid() { } /** - * optional uint32 uid = 3; + * optional uint32 uid = 5; * @return this */ public GetPlayerDetailInfoCsReq clearUid() { @@ -52,7 +52,7 @@ public GetPlayerDetailInfoCsReq clearUid() { } /** - * optional uint32 uid = 3; + * optional uint32 uid = 5; * @return the uid */ public int getUid() { @@ -60,7 +60,7 @@ public int getUid() { } /** - * optional uint32 uid = 3; + * optional uint32 uid = 5; * @param value the uid to set * @return this */ @@ -129,7 +129,7 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 40); output.writeUInt32NoTag(uid); } } @@ -150,7 +150,7 @@ public GetPlayerDetailInfoCsReq mergeFrom(final ProtoSource input) throws IOExce int tag = input.readTag(); while (true) { switch (tag) { - case 24: { + case 40: { // uid uid = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/GetPlayerDetailInfoScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetPlayerDetailInfoScRspOuterClass.java index 56f8809f4..3c517ff01 100644 --- a/src/generated/main/emu/lunarcore/proto/GetPlayerDetailInfoScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetPlayerDetailInfoScRspOuterClass.java @@ -19,12 +19,12 @@ public static final class GetPlayerDetailInfoScRsp extends ProtoMessageoptional uint32 retcode = 5; + * optional uint32 retcode = 14; */ private int retcode; /** - * optional .PlayerDetailInfo player_detail_info = 6; + * optional .PlayerDetailInfo player_detail_info = 3; */ private final PlayerDetailInfoOuterClass.PlayerDetailInfo playerDetailInfo = PlayerDetailInfoOuterClass.PlayerDetailInfo.newInstance(); @@ -39,7 +39,7 @@ public static GetPlayerDetailInfoScRsp newInstance() { } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 14; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -47,7 +47,7 @@ public boolean hasRetcode() { } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 14; * @return this */ public GetPlayerDetailInfoScRsp clearRetcode() { @@ -57,7 +57,7 @@ public GetPlayerDetailInfoScRsp clearRetcode() { } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 14; * @return the retcode */ public int getRetcode() { @@ -65,7 +65,7 @@ public int getRetcode() { } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 14; * @param value the retcode to set * @return this */ @@ -76,7 +76,7 @@ public GetPlayerDetailInfoScRsp setRetcode(final int value) { } /** - * optional .PlayerDetailInfo player_detail_info = 6; + * optional .PlayerDetailInfo player_detail_info = 3; * @return whether the playerDetailInfo field is set */ public boolean hasPlayerDetailInfo() { @@ -84,7 +84,7 @@ public boolean hasPlayerDetailInfo() { } /** - * optional .PlayerDetailInfo player_detail_info = 6; + * optional .PlayerDetailInfo player_detail_info = 3; * @return this */ public GetPlayerDetailInfoScRsp clearPlayerDetailInfo() { @@ -94,7 +94,7 @@ public GetPlayerDetailInfoScRsp clearPlayerDetailInfo() { } /** - * optional .PlayerDetailInfo player_detail_info = 6; + * optional .PlayerDetailInfo player_detail_info = 3; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -108,7 +108,7 @@ public PlayerDetailInfoOuterClass.PlayerDetailInfo getPlayerDetailInfo() { } /** - * optional .PlayerDetailInfo player_detail_info = 6; + * optional .PlayerDetailInfo player_detail_info = 3; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -122,7 +122,7 @@ public PlayerDetailInfoOuterClass.PlayerDetailInfo getMutablePlayerDetailInfo() } /** - * optional .PlayerDetailInfo player_detail_info = 6; + * optional .PlayerDetailInfo player_detail_info = 3; * @param value the playerDetailInfo to set * @return this */ @@ -199,11 +199,11 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 112); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 50); + output.writeRawByte((byte) 26); output.writeMessageNoTag(playerDetailInfo); } } @@ -227,16 +227,16 @@ public GetPlayerDetailInfoScRsp mergeFrom(final ProtoSource input) throws IOExce int tag = input.readTag(); while (true) { switch (tag) { - case 40: { + case 112: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 50) { + if (tag != 26) { break; } } - case 50: { + case 26: { // playerDetailInfo input.readMessage(playerDetailInfo); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/GetPrivateChatHistoryCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetPrivateChatHistoryCsReqOuterClass.java index e7ed07673..8680acf27 100644 --- a/src/generated/main/emu/lunarcore/proto/GetPrivateChatHistoryCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetPrivateChatHistoryCsReqOuterClass.java @@ -19,14 +19,14 @@ public static final class GetPrivateChatHistoryCsReq extends ProtoMessageoptional uint32 sender_uid = 3; + * optional uint32 to_uid = 2; */ - private int senderUid; + private int toUid; /** - * optional uint32 to_uid = 15; + * optional uint32 sender_uid = 5; */ - private int toUid; + private int senderUid; private GetPrivateChatHistoryCsReq() { } @@ -39,76 +39,76 @@ public static GetPrivateChatHistoryCsReq newInstance() { } /** - * optional uint32 sender_uid = 3; - * @return whether the senderUid field is set + * optional uint32 to_uid = 2; + * @return whether the toUid field is set */ - public boolean hasSenderUid() { + public boolean hasToUid() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 sender_uid = 3; + * optional uint32 to_uid = 2; * @return this */ - public GetPrivateChatHistoryCsReq clearSenderUid() { + public GetPrivateChatHistoryCsReq clearToUid() { bitField0_ &= ~0x00000001; - senderUid = 0; + toUid = 0; return this; } /** - * optional uint32 sender_uid = 3; - * @return the senderUid + * optional uint32 to_uid = 2; + * @return the toUid */ - public int getSenderUid() { - return senderUid; + public int getToUid() { + return toUid; } /** - * optional uint32 sender_uid = 3; - * @param value the senderUid to set + * optional uint32 to_uid = 2; + * @param value the toUid to set * @return this */ - public GetPrivateChatHistoryCsReq setSenderUid(final int value) { + public GetPrivateChatHistoryCsReq setToUid(final int value) { bitField0_ |= 0x00000001; - senderUid = value; + toUid = value; return this; } /** - * optional uint32 to_uid = 15; - * @return whether the toUid field is set + * optional uint32 sender_uid = 5; + * @return whether the senderUid field is set */ - public boolean hasToUid() { + public boolean hasSenderUid() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 to_uid = 15; + * optional uint32 sender_uid = 5; * @return this */ - public GetPrivateChatHistoryCsReq clearToUid() { + public GetPrivateChatHistoryCsReq clearSenderUid() { bitField0_ &= ~0x00000002; - toUid = 0; + senderUid = 0; return this; } /** - * optional uint32 to_uid = 15; - * @return the toUid + * optional uint32 sender_uid = 5; + * @return the senderUid */ - public int getToUid() { - return toUid; + public int getSenderUid() { + return senderUid; } /** - * optional uint32 to_uid = 15; - * @param value the toUid to set + * optional uint32 sender_uid = 5; + * @param value the senderUid to set * @return this */ - public GetPrivateChatHistoryCsReq setToUid(final int value) { + public GetPrivateChatHistoryCsReq setSenderUid(final int value) { bitField0_ |= 0x00000002; - toUid = value; + senderUid = value; return this; } @@ -117,8 +117,8 @@ public GetPrivateChatHistoryCsReq copyFrom(final GetPrivateChatHistoryCsReq othe cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - senderUid = other.senderUid; toUid = other.toUid; + senderUid = other.senderUid; } return this; } @@ -129,12 +129,12 @@ public GetPrivateChatHistoryCsReq mergeFrom(final GetPrivateChatHistoryCsReq oth return this; } cachedSize = -1; - if (other.hasSenderUid()) { - setSenderUid(other.senderUid); - } if (other.hasToUid()) { setToUid(other.toUid); } + if (other.hasSenderUid()) { + setSenderUid(other.senderUid); + } return this; } @@ -145,8 +145,8 @@ public GetPrivateChatHistoryCsReq clear() { } cachedSize = -1; bitField0_ = 0; - senderUid = 0; toUid = 0; + senderUid = 0; return this; } @@ -170,19 +170,19 @@ public boolean equals(Object o) { } GetPrivateChatHistoryCsReq other = (GetPrivateChatHistoryCsReq) o; return bitField0_ == other.bitField0_ - && (!hasSenderUid() || senderUid == other.senderUid) - && (!hasToUid() || toUid == other.toUid); + && (!hasToUid() || toUid == other.toUid) + && (!hasSenderUid() || senderUid == other.senderUid); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(senderUid); + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(toUid); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 120); - output.writeUInt32NoTag(toUid); + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(senderUid); } } @@ -190,10 +190,10 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(senderUid); + size += 1 + ProtoSink.computeUInt32SizeNoTag(toUid); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(toUid); + size += 1 + ProtoSink.computeUInt32SizeNoTag(senderUid); } return size; } @@ -205,18 +205,18 @@ public GetPrivateChatHistoryCsReq mergeFrom(final ProtoSource input) throws IOEx int tag = input.readTag(); while (true) { switch (tag) { - case 24: { - // senderUid - senderUid = input.readUInt32(); + case 16: { + // toUid + toUid = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 120) { + if (tag != 40) { break; } } - case 120: { - // toUid - toUid = input.readUInt32(); + case 40: { + // senderUid + senderUid = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { @@ -241,10 +241,10 @@ public GetPrivateChatHistoryCsReq mergeFrom(final ProtoSource input) throws IOEx public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.senderUid, senderUid); + output.writeUInt32(FieldNames.toUid, toUid); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.toUid, toUid); + output.writeUInt32(FieldNames.senderUid, senderUid); } output.endObject(); } @@ -256,11 +256,11 @@ public GetPrivateChatHistoryCsReq mergeFrom(final JsonSource input) throws IOExc } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 32180699: - case 997911366: { - if (input.isAtField(FieldNames.senderUid)) { + case 110520277: + case -868529012: { + if (input.isAtField(FieldNames.toUid)) { if (!input.trySkipNullValue()) { - senderUid = input.readUInt32(); + toUid = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -268,11 +268,11 @@ public GetPrivateChatHistoryCsReq mergeFrom(final JsonSource input) throws IOExc } break; } - case 110520277: - case -868529012: { - if (input.isAtField(FieldNames.toUid)) { + case 32180699: + case 997911366: { + if (input.isAtField(FieldNames.senderUid)) { if (!input.trySkipNullValue()) { - toUid = input.readUInt32(); + senderUid = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -333,9 +333,9 @@ public GetPrivateChatHistoryCsReq create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName senderUid = FieldName.forField("senderUid", "sender_uid"); - static final FieldName toUid = FieldName.forField("toUid", "to_uid"); + + static final FieldName senderUid = FieldName.forField("senderUid", "sender_uid"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/GetPrivateChatHistoryScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetPrivateChatHistoryScRspOuterClass.java index 117baf9ec..18f466052 100644 --- a/src/generated/main/emu/lunarcore/proto/GetPrivateChatHistoryScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetPrivateChatHistoryScRspOuterClass.java @@ -20,22 +20,22 @@ public static final class GetPrivateChatHistoryScRsp extends ProtoMessageoptional uint32 to_uid = 2; + * optional uint32 sender_uid = 4; */ - private int toUid; + private int senderUid; /** - * optional uint32 retcode = 5; + * optional uint32 to_uid = 9; */ - private int retcode; + private int toUid; /** - * optional uint32 sender_uid = 15; + * optional uint32 retcode = 13; */ - private int senderUid; + private int retcode; /** - * repeated .Chat chat_list = 6; + * repeated .Chat chat_list = 3; */ private final RepeatedMessage chatList = RepeatedMessage.newEmptyInstance(ChatOuterClass.Chat.getFactory()); @@ -50,118 +50,118 @@ public static GetPrivateChatHistoryScRsp newInstance() { } /** - * optional uint32 to_uid = 2; - * @return whether the toUid field is set + * optional uint32 sender_uid = 4; + * @return whether the senderUid field is set */ - public boolean hasToUid() { + public boolean hasSenderUid() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 to_uid = 2; + * optional uint32 sender_uid = 4; * @return this */ - public GetPrivateChatHistoryScRsp clearToUid() { + public GetPrivateChatHistoryScRsp clearSenderUid() { bitField0_ &= ~0x00000001; - toUid = 0; + senderUid = 0; return this; } /** - * optional uint32 to_uid = 2; - * @return the toUid + * optional uint32 sender_uid = 4; + * @return the senderUid */ - public int getToUid() { - return toUid; + public int getSenderUid() { + return senderUid; } /** - * optional uint32 to_uid = 2; - * @param value the toUid to set + * optional uint32 sender_uid = 4; + * @param value the senderUid to set * @return this */ - public GetPrivateChatHistoryScRsp setToUid(final int value) { + public GetPrivateChatHistoryScRsp setSenderUid(final int value) { bitField0_ |= 0x00000001; - toUid = value; + senderUid = value; return this; } /** - * optional uint32 retcode = 5; - * @return whether the retcode field is set + * optional uint32 to_uid = 9; + * @return whether the toUid field is set */ - public boolean hasRetcode() { + public boolean hasToUid() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 retcode = 5; + * optional uint32 to_uid = 9; * @return this */ - public GetPrivateChatHistoryScRsp clearRetcode() { + public GetPrivateChatHistoryScRsp clearToUid() { bitField0_ &= ~0x00000002; - retcode = 0; + toUid = 0; return this; } /** - * optional uint32 retcode = 5; - * @return the retcode + * optional uint32 to_uid = 9; + * @return the toUid */ - public int getRetcode() { - return retcode; + public int getToUid() { + return toUid; } /** - * optional uint32 retcode = 5; - * @param value the retcode to set + * optional uint32 to_uid = 9; + * @param value the toUid to set * @return this */ - public GetPrivateChatHistoryScRsp setRetcode(final int value) { + public GetPrivateChatHistoryScRsp setToUid(final int value) { bitField0_ |= 0x00000002; - retcode = value; + toUid = value; return this; } /** - * optional uint32 sender_uid = 15; - * @return whether the senderUid field is set + * optional uint32 retcode = 13; + * @return whether the retcode field is set */ - public boolean hasSenderUid() { + public boolean hasRetcode() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 sender_uid = 15; + * optional uint32 retcode = 13; * @return this */ - public GetPrivateChatHistoryScRsp clearSenderUid() { + public GetPrivateChatHistoryScRsp clearRetcode() { bitField0_ &= ~0x00000004; - senderUid = 0; + retcode = 0; return this; } /** - * optional uint32 sender_uid = 15; - * @return the senderUid + * optional uint32 retcode = 13; + * @return the retcode */ - public int getSenderUid() { - return senderUid; + public int getRetcode() { + return retcode; } /** - * optional uint32 sender_uid = 15; - * @param value the senderUid to set + * optional uint32 retcode = 13; + * @param value the retcode to set * @return this */ - public GetPrivateChatHistoryScRsp setSenderUid(final int value) { + public GetPrivateChatHistoryScRsp setRetcode(final int value) { bitField0_ |= 0x00000004; - senderUid = value; + retcode = value; return this; } /** - * repeated .Chat chat_list = 6; + * repeated .Chat chat_list = 3; * @return whether the chatList field is set */ public boolean hasChatList() { @@ -169,7 +169,7 @@ public boolean hasChatList() { } /** - * repeated .Chat chat_list = 6; + * repeated .Chat chat_list = 3; * @return this */ public GetPrivateChatHistoryScRsp clearChatList() { @@ -179,7 +179,7 @@ public GetPrivateChatHistoryScRsp clearChatList() { } /** - * repeated .Chat chat_list = 6; + * repeated .Chat chat_list = 3; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -193,7 +193,7 @@ public RepeatedMessage getChatList() { } /** - * repeated .Chat chat_list = 6; + * repeated .Chat chat_list = 3; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -207,7 +207,7 @@ public RepeatedMessage getMutableChatList() { } /** - * repeated .Chat chat_list = 6; + * repeated .Chat chat_list = 3; * @param value the chatList to add * @return this */ @@ -218,7 +218,7 @@ public GetPrivateChatHistoryScRsp addChatList(final ChatOuterClass.Chat value) { } /** - * repeated .Chat chat_list = 6; + * repeated .Chat chat_list = 3; * @param values the chatList to add * @return this */ @@ -233,9 +233,9 @@ public GetPrivateChatHistoryScRsp copyFrom(final GetPrivateChatHistoryScRsp othe cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; + senderUid = other.senderUid; toUid = other.toUid; retcode = other.retcode; - senderUid = other.senderUid; chatList.copyFrom(other.chatList); } return this; @@ -247,15 +247,15 @@ public GetPrivateChatHistoryScRsp mergeFrom(final GetPrivateChatHistoryScRsp oth return this; } cachedSize = -1; + if (other.hasSenderUid()) { + setSenderUid(other.senderUid); + } if (other.hasToUid()) { setToUid(other.toUid); } if (other.hasRetcode()) { setRetcode(other.retcode); } - if (other.hasSenderUid()) { - setSenderUid(other.senderUid); - } if (other.hasChatList()) { getMutableChatList().addAll(other.chatList); } @@ -269,9 +269,9 @@ public GetPrivateChatHistoryScRsp clear() { } cachedSize = -1; bitField0_ = 0; + senderUid = 0; toUid = 0; retcode = 0; - senderUid = 0; chatList.clear(); return this; } @@ -297,29 +297,29 @@ public boolean equals(Object o) { } GetPrivateChatHistoryScRsp other = (GetPrivateChatHistoryScRsp) o; return bitField0_ == other.bitField0_ + && (!hasSenderUid() || senderUid == other.senderUid) && (!hasToUid() || toUid == other.toUid) && (!hasRetcode() || retcode == other.retcode) - && (!hasSenderUid() || senderUid == other.senderUid) && (!hasChatList() || chatList.equals(other.chatList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(toUid); + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(senderUid); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 40); - output.writeUInt32NoTag(retcode); + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(toUid); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 120); - output.writeUInt32NoTag(senderUid); + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000008) != 0) { for (int i = 0; i < chatList.length(); i++) { - output.writeRawByte((byte) 50); + output.writeRawByte((byte) 26); output.writeMessageNoTag(chatList.get(i)); } } @@ -329,13 +329,13 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(toUid); + size += 1 + ProtoSink.computeUInt32SizeNoTag(senderUid); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(toUid); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(senderUid); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000008) != 0) { size += (1 * chatList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(chatList); @@ -350,34 +350,34 @@ public GetPrivateChatHistoryScRsp mergeFrom(final ProtoSource input) throws IOEx int tag = input.readTag(); while (true) { switch (tag) { - case 16: { - // toUid - toUid = input.readUInt32(); + case 32: { + // senderUid + senderUid = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 40) { + if (tag != 72) { break; } } - case 40: { - // retcode - retcode = input.readUInt32(); + case 72: { + // toUid + toUid = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 120) { + if (tag != 104) { break; } } - case 120: { - // senderUid - senderUid = input.readUInt32(); + case 104: { + // retcode + retcode = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 50) { + if (tag != 26) { break; } } - case 50: { + case 26: { // chatList tag = input.readRepeatedMessage(chatList, tag); bitField0_ |= 0x00000008; @@ -403,13 +403,13 @@ public GetPrivateChatHistoryScRsp mergeFrom(final ProtoSource input) throws IOEx public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.toUid, toUid); + output.writeUInt32(FieldNames.senderUid, senderUid); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.toUid, toUid); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.senderUid, senderUid); + output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000008) != 0) { output.writeRepeatedMessage(FieldNames.chatList, chatList); @@ -424,11 +424,11 @@ public GetPrivateChatHistoryScRsp mergeFrom(final JsonSource input) throws IOExc } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 110520277: - case -868529012: { - if (input.isAtField(FieldNames.toUid)) { + case 32180699: + case 997911366: { + if (input.isAtField(FieldNames.senderUid)) { if (!input.trySkipNullValue()) { - toUid = input.readUInt32(); + senderUid = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -436,10 +436,11 @@ public GetPrivateChatHistoryScRsp mergeFrom(final JsonSource input) throws IOExc } break; } - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { + case 110520277: + case -868529012: { + if (input.isAtField(FieldNames.toUid)) { if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); + toUid = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -447,11 +448,10 @@ public GetPrivateChatHistoryScRsp mergeFrom(final JsonSource input) throws IOExc } break; } - case 32180699: - case 997911366: { - if (input.isAtField(FieldNames.senderUid)) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { - senderUid = input.readUInt32(); + retcode = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -524,12 +524,12 @@ public GetPrivateChatHistoryScRsp create() { * Contains name constants used for serializing JSON */ static class FieldNames { + static final FieldName senderUid = FieldName.forField("senderUid", "sender_uid"); + static final FieldName toUid = FieldName.forField("toUid", "to_uid"); static final FieldName retcode = FieldName.forField("retcode"); - static final FieldName senderUid = FieldName.forField("senderUid", "sender_uid"); - static final FieldName chatList = FieldName.forField("chatList", "chat_list"); } } diff --git a/src/generated/main/emu/lunarcore/proto/GetRogueHandbookDataScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetRogueHandbookDataScRspOuterClass.java index 32c9d038d..49e3dd24c 100644 --- a/src/generated/main/emu/lunarcore/proto/GetRogueHandbookDataScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetRogueHandbookDataScRspOuterClass.java @@ -19,12 +19,12 @@ public static final class GetRogueHandbookDataScRsp extends ProtoMessageoptional uint32 retcode = 9; + * optional uint32 retcode = 3; */ private int retcode; /** - * optional .RogueHandbookData handbook_info = 13; + * optional .RogueHandbookData handbook_info = 14; */ private final RogueHandbookDataOuterClass.RogueHandbookData handbookInfo = RogueHandbookDataOuterClass.RogueHandbookData.newInstance(); @@ -39,7 +39,7 @@ public static GetRogueHandbookDataScRsp newInstance() { } /** - * optional uint32 retcode = 9; + * optional uint32 retcode = 3; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -47,7 +47,7 @@ public boolean hasRetcode() { } /** - * optional uint32 retcode = 9; + * optional uint32 retcode = 3; * @return this */ public GetRogueHandbookDataScRsp clearRetcode() { @@ -57,7 +57,7 @@ public GetRogueHandbookDataScRsp clearRetcode() { } /** - * optional uint32 retcode = 9; + * optional uint32 retcode = 3; * @return the retcode */ public int getRetcode() { @@ -65,7 +65,7 @@ public int getRetcode() { } /** - * optional uint32 retcode = 9; + * optional uint32 retcode = 3; * @param value the retcode to set * @return this */ @@ -76,7 +76,7 @@ public GetRogueHandbookDataScRsp setRetcode(final int value) { } /** - * optional .RogueHandbookData handbook_info = 13; + * optional .RogueHandbookData handbook_info = 14; * @return whether the handbookInfo field is set */ public boolean hasHandbookInfo() { @@ -84,7 +84,7 @@ public boolean hasHandbookInfo() { } /** - * optional .RogueHandbookData handbook_info = 13; + * optional .RogueHandbookData handbook_info = 14; * @return this */ public GetRogueHandbookDataScRsp clearHandbookInfo() { @@ -94,7 +94,7 @@ public GetRogueHandbookDataScRsp clearHandbookInfo() { } /** - * optional .RogueHandbookData handbook_info = 13; + * optional .RogueHandbookData handbook_info = 14; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -108,7 +108,7 @@ public RogueHandbookDataOuterClass.RogueHandbookData getHandbookInfo() { } /** - * optional .RogueHandbookData handbook_info = 13; + * optional .RogueHandbookData handbook_info = 14; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -122,7 +122,7 @@ public RogueHandbookDataOuterClass.RogueHandbookData getMutableHandbookInfo() { } /** - * optional .RogueHandbookData handbook_info = 13; + * optional .RogueHandbookData handbook_info = 14; * @param value the handbookInfo to set * @return this */ @@ -199,11 +199,11 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 72); + output.writeRawByte((byte) 24); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 106); + output.writeRawByte((byte) 114); output.writeMessageNoTag(handbookInfo); } } @@ -227,16 +227,16 @@ public GetRogueHandbookDataScRsp mergeFrom(final ProtoSource input) throws IOExc int tag = input.readTag(); while (true) { switch (tag) { - case 72: { + case 24: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 106) { + if (tag != 114) { break; } } - case 106: { + case 114: { // handbookInfo input.readMessage(handbookInfo); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/GetRogueScoreRewardInfoScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetRogueScoreRewardInfoScRspOuterClass.java index 8dd54208d..b3d8ace38 100644 --- a/src/generated/main/emu/lunarcore/proto/GetRogueScoreRewardInfoScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetRogueScoreRewardInfoScRspOuterClass.java @@ -24,7 +24,7 @@ public static final class GetRogueScoreRewardInfoScRsp extends ProtoMessageoptional .RogueScoreRewardInfo score_reward_info = 14; + * optional .RogueScoreRewardInfo score_reward_info = 15; */ private final RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo scoreRewardInfo = RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo.newInstance(); @@ -76,7 +76,7 @@ public GetRogueScoreRewardInfoScRsp setRetcode(final int value) { } /** - * optional .RogueScoreRewardInfo score_reward_info = 14; + * optional .RogueScoreRewardInfo score_reward_info = 15; * @return whether the scoreRewardInfo field is set */ public boolean hasScoreRewardInfo() { @@ -84,7 +84,7 @@ public boolean hasScoreRewardInfo() { } /** - * optional .RogueScoreRewardInfo score_reward_info = 14; + * optional .RogueScoreRewardInfo score_reward_info = 15; * @return this */ public GetRogueScoreRewardInfoScRsp clearScoreRewardInfo() { @@ -94,7 +94,7 @@ public GetRogueScoreRewardInfoScRsp clearScoreRewardInfo() { } /** - * optional .RogueScoreRewardInfo score_reward_info = 14; + * optional .RogueScoreRewardInfo score_reward_info = 15; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -108,7 +108,7 @@ public RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo getScoreRewardInfo() } /** - * optional .RogueScoreRewardInfo score_reward_info = 14; + * optional .RogueScoreRewardInfo score_reward_info = 15; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -122,7 +122,7 @@ public RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo getMutableScoreReward } /** - * optional .RogueScoreRewardInfo score_reward_info = 14; + * optional .RogueScoreRewardInfo score_reward_info = 15; * @param value the scoreRewardInfo to set * @return this */ @@ -203,7 +203,7 @@ public void writeTo(final ProtoSink output) throws IOException { output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 114); + output.writeRawByte((byte) 122); output.writeMessageNoTag(scoreRewardInfo); } } @@ -232,11 +232,11 @@ public GetRogueScoreRewardInfoScRsp mergeFrom(final ProtoSource input) throws IO retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 114) { + if (tag != 122) { break; } } - case 114: { + case 122: { // scoreRewardInfo input.readMessage(scoreRewardInfo); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/GetRogueTalentInfoScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetRogueTalentInfoScRspOuterClass.java index bbbf745e0..2f5046bb1 100644 --- a/src/generated/main/emu/lunarcore/proto/GetRogueTalentInfoScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetRogueTalentInfoScRspOuterClass.java @@ -19,12 +19,12 @@ public static final class GetRogueTalentInfoScRsp extends ProtoMessageoptional uint32 retcode = 2; + * optional uint32 retcode = 12; */ private int retcode; /** - * optional .RogueTalentInfo talent_info = 1; + * optional .RogueTalentInfo talent_info = 6; */ private final RogueTalentInfoOuterClass.RogueTalentInfo talentInfo = RogueTalentInfoOuterClass.RogueTalentInfo.newInstance(); @@ -39,7 +39,7 @@ public static GetRogueTalentInfoScRsp newInstance() { } /** - * optional uint32 retcode = 2; + * optional uint32 retcode = 12; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -47,7 +47,7 @@ public boolean hasRetcode() { } /** - * optional uint32 retcode = 2; + * optional uint32 retcode = 12; * @return this */ public GetRogueTalentInfoScRsp clearRetcode() { @@ -57,7 +57,7 @@ public GetRogueTalentInfoScRsp clearRetcode() { } /** - * optional uint32 retcode = 2; + * optional uint32 retcode = 12; * @return the retcode */ public int getRetcode() { @@ -65,7 +65,7 @@ public int getRetcode() { } /** - * optional uint32 retcode = 2; + * optional uint32 retcode = 12; * @param value the retcode to set * @return this */ @@ -76,7 +76,7 @@ public GetRogueTalentInfoScRsp setRetcode(final int value) { } /** - * optional .RogueTalentInfo talent_info = 1; + * optional .RogueTalentInfo talent_info = 6; * @return whether the talentInfo field is set */ public boolean hasTalentInfo() { @@ -84,7 +84,7 @@ public boolean hasTalentInfo() { } /** - * optional .RogueTalentInfo talent_info = 1; + * optional .RogueTalentInfo talent_info = 6; * @return this */ public GetRogueTalentInfoScRsp clearTalentInfo() { @@ -94,7 +94,7 @@ public GetRogueTalentInfoScRsp clearTalentInfo() { } /** - * optional .RogueTalentInfo talent_info = 1; + * optional .RogueTalentInfo talent_info = 6; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -108,7 +108,7 @@ public RogueTalentInfoOuterClass.RogueTalentInfo getTalentInfo() { } /** - * optional .RogueTalentInfo talent_info = 1; + * optional .RogueTalentInfo talent_info = 6; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -122,7 +122,7 @@ public RogueTalentInfoOuterClass.RogueTalentInfo getMutableTalentInfo() { } /** - * optional .RogueTalentInfo talent_info = 1; + * optional .RogueTalentInfo talent_info = 6; * @param value the talentInfo to set * @return this */ @@ -199,11 +199,11 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); + output.writeRawByte((byte) 96); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 10); + output.writeRawByte((byte) 50); output.writeMessageNoTag(talentInfo); } } @@ -227,16 +227,16 @@ public GetRogueTalentInfoScRsp mergeFrom(final ProtoSource input) throws IOExcep int tag = input.readTag(); while (true) { switch (tag) { - case 16: { + case 96: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 10) { + if (tag != 50) { break; } } - case 10: { + case 50: { // talentInfo input.readMessage(talentInfo); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/GetSceneMapInfoCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetSceneMapInfoCsReqOuterClass.java index a8aa9c22a..3ee0f98e7 100644 --- a/src/generated/main/emu/lunarcore/proto/GetSceneMapInfoCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetSceneMapInfoCsReqOuterClass.java @@ -20,12 +20,12 @@ public static final class GetSceneMapInfoCsReq extends ProtoMessageoptional uint32 entry_id = 13; + * optional uint32 entry_id = 11; */ private int entryId; /** - * repeated uint32 entry_id_list = 12; + * repeated uint32 entry_id_list = 3; */ private final RepeatedInt entryIdList = RepeatedInt.newEmptyInstance(); @@ -40,7 +40,7 @@ public static GetSceneMapInfoCsReq newInstance() { } /** - * optional uint32 entry_id = 13; + * optional uint32 entry_id = 11; * @return whether the entryId field is set */ public boolean hasEntryId() { @@ -48,7 +48,7 @@ public boolean hasEntryId() { } /** - * optional uint32 entry_id = 13; + * optional uint32 entry_id = 11; * @return this */ public GetSceneMapInfoCsReq clearEntryId() { @@ -58,7 +58,7 @@ public GetSceneMapInfoCsReq clearEntryId() { } /** - * optional uint32 entry_id = 13; + * optional uint32 entry_id = 11; * @return the entryId */ public int getEntryId() { @@ -66,7 +66,7 @@ public int getEntryId() { } /** - * optional uint32 entry_id = 13; + * optional uint32 entry_id = 11; * @param value the entryId to set * @return this */ @@ -77,7 +77,7 @@ public GetSceneMapInfoCsReq setEntryId(final int value) { } /** - * repeated uint32 entry_id_list = 12; + * repeated uint32 entry_id_list = 3; * @return whether the entryIdList field is set */ public boolean hasEntryIdList() { @@ -85,7 +85,7 @@ public boolean hasEntryIdList() { } /** - * repeated uint32 entry_id_list = 12; + * repeated uint32 entry_id_list = 3; * @return this */ public GetSceneMapInfoCsReq clearEntryIdList() { @@ -95,7 +95,7 @@ public GetSceneMapInfoCsReq clearEntryIdList() { } /** - * repeated uint32 entry_id_list = 12; + * repeated uint32 entry_id_list = 3; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -109,7 +109,7 @@ public RepeatedInt getEntryIdList() { } /** - * repeated uint32 entry_id_list = 12; + * repeated uint32 entry_id_list = 3; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -123,7 +123,7 @@ public RepeatedInt getMutableEntryIdList() { } /** - * repeated uint32 entry_id_list = 12; + * repeated uint32 entry_id_list = 3; * @param value the entryIdList to add * @return this */ @@ -134,7 +134,7 @@ public GetSceneMapInfoCsReq addEntryIdList(final int value) { } /** - * repeated uint32 entry_id_list = 12; + * repeated uint32 entry_id_list = 3; * @param values the entryIdList to add * @return this */ @@ -210,12 +210,12 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 88); output.writeUInt32NoTag(entryId); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < entryIdList.length(); i++) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 24); output.writeUInt32NoTag(entryIdList.array()[i]); } } @@ -240,16 +240,16 @@ public GetSceneMapInfoCsReq mergeFrom(final ProtoSource input) throws IOExceptio int tag = input.readTag(); while (true) { switch (tag) { - case 104: { + case 88: { // entryId entryId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 98) { + if (tag != 26) { break; } } - case 98: { + case 26: { // entryIdList [packed=true] input.readPackedUInt32(entryIdList, tag); bitField0_ |= 0x00000002; @@ -268,7 +268,7 @@ public GetSceneMapInfoCsReq mergeFrom(final ProtoSource input) throws IOExceptio tag = input.readTag(); break; } - case 96: { + case 24: { // entryIdList [packed=false] tag = input.readRepeatedUInt32(entryIdList, tag); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/GetSceneMapInfoScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetSceneMapInfoScRspOuterClass.java index b8e62b15c..3217a765c 100644 --- a/src/generated/main/emu/lunarcore/proto/GetSceneMapInfoScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetSceneMapInfoScRspOuterClass.java @@ -21,47 +21,47 @@ public static final class GetSceneMapInfoScRsp extends ProtoMessageoptional uint32 cur_map_entry_id = 5; + * optional uint32 cur_map_entry_id = 3; */ private int curMapEntryId; /** - * optional uint32 retcode = 6; + * optional uint32 retcode = 8; */ private int retcode; /** - * optional uint32 entry_id = 12; + * optional uint32 entry_id = 11; */ private int entryId; /** - * repeated uint32 lighten_section_list = 3; + * repeated uint32 lighten_section_list = 7; */ private final RepeatedInt lightenSectionList = RepeatedInt.newEmptyInstance(); /** - * repeated uint32 unlocked_teleport_list = 7; + * repeated uint32 unlocked_teleport_list = 15; */ private final RepeatedInt unlockedTeleportList = RepeatedInt.newEmptyInstance(); /** - * repeated .MazeGroup maze_group_list = 1; + * repeated .MazeChest unlocked_chest_list = 1; */ - private final RepeatedMessage mazeGroupList = RepeatedMessage.newEmptyInstance(MazeGroupOuterClass.MazeGroup.getFactory()); + private final RepeatedMessage unlockedChestList = RepeatedMessage.newEmptyInstance(MazeChestOuterClass.MazeChest.getFactory()); /** - * repeated .MazeProp maze_prop_list = 8; + * repeated .MazeGroup maze_group_list = 4; */ - private final RepeatedMessage mazePropList = RepeatedMessage.newEmptyInstance(MazePropOuterClass.MazeProp.getFactory()); + private final RepeatedMessage mazeGroupList = RepeatedMessage.newEmptyInstance(MazeGroupOuterClass.MazeGroup.getFactory()); /** - * repeated .MazeChest unlocked_chest_list = 10; + * repeated .MazeProp maze_prop_list = 6; */ - private final RepeatedMessage unlockedChestList = RepeatedMessage.newEmptyInstance(MazeChestOuterClass.MazeChest.getFactory()); + private final RepeatedMessage mazePropList = RepeatedMessage.newEmptyInstance(MazePropOuterClass.MazeProp.getFactory()); /** - * repeated .MazeMapData map_list = 14; + * repeated .MazeMapData map_list = 10; */ private final RepeatedMessage mapList = RepeatedMessage.newEmptyInstance(MazeMapDataOuterClass.MazeMapData.getFactory()); @@ -76,7 +76,7 @@ public static GetSceneMapInfoScRsp newInstance() { } /** - * optional uint32 cur_map_entry_id = 5; + * optional uint32 cur_map_entry_id = 3; * @return whether the curMapEntryId field is set */ public boolean hasCurMapEntryId() { @@ -84,7 +84,7 @@ public boolean hasCurMapEntryId() { } /** - * optional uint32 cur_map_entry_id = 5; + * optional uint32 cur_map_entry_id = 3; * @return this */ public GetSceneMapInfoScRsp clearCurMapEntryId() { @@ -94,7 +94,7 @@ public GetSceneMapInfoScRsp clearCurMapEntryId() { } /** - * optional uint32 cur_map_entry_id = 5; + * optional uint32 cur_map_entry_id = 3; * @return the curMapEntryId */ public int getCurMapEntryId() { @@ -102,7 +102,7 @@ public int getCurMapEntryId() { } /** - * optional uint32 cur_map_entry_id = 5; + * optional uint32 cur_map_entry_id = 3; * @param value the curMapEntryId to set * @return this */ @@ -113,7 +113,7 @@ public GetSceneMapInfoScRsp setCurMapEntryId(final int value) { } /** - * optional uint32 retcode = 6; + * optional uint32 retcode = 8; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -121,7 +121,7 @@ public boolean hasRetcode() { } /** - * optional uint32 retcode = 6; + * optional uint32 retcode = 8; * @return this */ public GetSceneMapInfoScRsp clearRetcode() { @@ -131,7 +131,7 @@ public GetSceneMapInfoScRsp clearRetcode() { } /** - * optional uint32 retcode = 6; + * optional uint32 retcode = 8; * @return the retcode */ public int getRetcode() { @@ -139,7 +139,7 @@ public int getRetcode() { } /** - * optional uint32 retcode = 6; + * optional uint32 retcode = 8; * @param value the retcode to set * @return this */ @@ -150,7 +150,7 @@ public GetSceneMapInfoScRsp setRetcode(final int value) { } /** - * optional uint32 entry_id = 12; + * optional uint32 entry_id = 11; * @return whether the entryId field is set */ public boolean hasEntryId() { @@ -158,7 +158,7 @@ public boolean hasEntryId() { } /** - * optional uint32 entry_id = 12; + * optional uint32 entry_id = 11; * @return this */ public GetSceneMapInfoScRsp clearEntryId() { @@ -168,7 +168,7 @@ public GetSceneMapInfoScRsp clearEntryId() { } /** - * optional uint32 entry_id = 12; + * optional uint32 entry_id = 11; * @return the entryId */ public int getEntryId() { @@ -176,7 +176,7 @@ public int getEntryId() { } /** - * optional uint32 entry_id = 12; + * optional uint32 entry_id = 11; * @param value the entryId to set * @return this */ @@ -187,7 +187,7 @@ public GetSceneMapInfoScRsp setEntryId(final int value) { } /** - * repeated uint32 lighten_section_list = 3; + * repeated uint32 lighten_section_list = 7; * @return whether the lightenSectionList field is set */ public boolean hasLightenSectionList() { @@ -195,7 +195,7 @@ public boolean hasLightenSectionList() { } /** - * repeated uint32 lighten_section_list = 3; + * repeated uint32 lighten_section_list = 7; * @return this */ public GetSceneMapInfoScRsp clearLightenSectionList() { @@ -205,7 +205,7 @@ public GetSceneMapInfoScRsp clearLightenSectionList() { } /** - * repeated uint32 lighten_section_list = 3; + * repeated uint32 lighten_section_list = 7; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -219,7 +219,7 @@ public RepeatedInt getLightenSectionList() { } /** - * repeated uint32 lighten_section_list = 3; + * repeated uint32 lighten_section_list = 7; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -233,7 +233,7 @@ public RepeatedInt getMutableLightenSectionList() { } /** - * repeated uint32 lighten_section_list = 3; + * repeated uint32 lighten_section_list = 7; * @param value the lightenSectionList to add * @return this */ @@ -244,7 +244,7 @@ public GetSceneMapInfoScRsp addLightenSectionList(final int value) { } /** - * repeated uint32 lighten_section_list = 3; + * repeated uint32 lighten_section_list = 7; * @param values the lightenSectionList to add * @return this */ @@ -255,7 +255,7 @@ public GetSceneMapInfoScRsp addAllLightenSectionList(final int... values) { } /** - * repeated uint32 unlocked_teleport_list = 7; + * repeated uint32 unlocked_teleport_list = 15; * @return whether the unlockedTeleportList field is set */ public boolean hasUnlockedTeleportList() { @@ -263,7 +263,7 @@ public boolean hasUnlockedTeleportList() { } /** - * repeated uint32 unlocked_teleport_list = 7; + * repeated uint32 unlocked_teleport_list = 15; * @return this */ public GetSceneMapInfoScRsp clearUnlockedTeleportList() { @@ -273,7 +273,7 @@ public GetSceneMapInfoScRsp clearUnlockedTeleportList() { } /** - * repeated uint32 unlocked_teleport_list = 7; + * repeated uint32 unlocked_teleport_list = 15; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -287,7 +287,7 @@ public RepeatedInt getUnlockedTeleportList() { } /** - * repeated uint32 unlocked_teleport_list = 7; + * repeated uint32 unlocked_teleport_list = 15; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -301,7 +301,7 @@ public RepeatedInt getMutableUnlockedTeleportList() { } /** - * repeated uint32 unlocked_teleport_list = 7; + * repeated uint32 unlocked_teleport_list = 15; * @param value the unlockedTeleportList to add * @return this */ @@ -312,7 +312,7 @@ public GetSceneMapInfoScRsp addUnlockedTeleportList(final int value) { } /** - * repeated uint32 unlocked_teleport_list = 7; + * repeated uint32 unlocked_teleport_list = 15; * @param values the unlockedTeleportList to add * @return this */ @@ -323,39 +323,39 @@ public GetSceneMapInfoScRsp addAllUnlockedTeleportList(final int... values) { } /** - * repeated .MazeGroup maze_group_list = 1; - * @return whether the mazeGroupList field is set + * repeated .MazeChest unlocked_chest_list = 1; + * @return whether the unlockedChestList field is set */ - public boolean hasMazeGroupList() { + public boolean hasUnlockedChestList() { return (bitField0_ & 0x00000020) != 0; } /** - * repeated .MazeGroup maze_group_list = 1; + * repeated .MazeChest unlocked_chest_list = 1; * @return this */ - public GetSceneMapInfoScRsp clearMazeGroupList() { + public GetSceneMapInfoScRsp clearUnlockedChestList() { bitField0_ &= ~0x00000020; - mazeGroupList.clear(); + unlockedChestList.clear(); return this; } /** - * repeated .MazeGroup maze_group_list = 1; + * repeated .MazeChest unlocked_chest_list = 1; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableMazeGroupList()} if you want to modify it. + * Use {@link #getMutableUnlockedChestList()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedMessage getMazeGroupList() { - return mazeGroupList; + public RepeatedMessage getUnlockedChestList() { + return unlockedChestList; } /** - * repeated .MazeGroup maze_group_list = 1; + * repeated .MazeChest unlocked_chest_list = 1; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -363,67 +363,68 @@ public RepeatedMessage getMazeGroupList() { * * @return internal storage object for modifications */ - public RepeatedMessage getMutableMazeGroupList() { + public RepeatedMessage getMutableUnlockedChestList() { bitField0_ |= 0x00000020; - return mazeGroupList; + return unlockedChestList; } /** - * repeated .MazeGroup maze_group_list = 1; - * @param value the mazeGroupList to add + * repeated .MazeChest unlocked_chest_list = 1; + * @param value the unlockedChestList to add * @return this */ - public GetSceneMapInfoScRsp addMazeGroupList(final MazeGroupOuterClass.MazeGroup value) { + public GetSceneMapInfoScRsp addUnlockedChestList(final MazeChestOuterClass.MazeChest value) { bitField0_ |= 0x00000020; - mazeGroupList.add(value); + unlockedChestList.add(value); return this; } /** - * repeated .MazeGroup maze_group_list = 1; - * @param values the mazeGroupList to add + * repeated .MazeChest unlocked_chest_list = 1; + * @param values the unlockedChestList to add * @return this */ - public GetSceneMapInfoScRsp addAllMazeGroupList(final MazeGroupOuterClass.MazeGroup... values) { + public GetSceneMapInfoScRsp addAllUnlockedChestList( + final MazeChestOuterClass.MazeChest... values) { bitField0_ |= 0x00000020; - mazeGroupList.addAll(values); + unlockedChestList.addAll(values); return this; } /** - * repeated .MazeProp maze_prop_list = 8; - * @return whether the mazePropList field is set + * repeated .MazeGroup maze_group_list = 4; + * @return whether the mazeGroupList field is set */ - public boolean hasMazePropList() { + public boolean hasMazeGroupList() { return (bitField0_ & 0x00000040) != 0; } /** - * repeated .MazeProp maze_prop_list = 8; + * repeated .MazeGroup maze_group_list = 4; * @return this */ - public GetSceneMapInfoScRsp clearMazePropList() { + public GetSceneMapInfoScRsp clearMazeGroupList() { bitField0_ &= ~0x00000040; - mazePropList.clear(); + mazeGroupList.clear(); return this; } /** - * repeated .MazeProp maze_prop_list = 8; + * repeated .MazeGroup maze_group_list = 4; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableMazePropList()} if you want to modify it. + * Use {@link #getMutableMazeGroupList()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedMessage getMazePropList() { - return mazePropList; + public RepeatedMessage getMazeGroupList() { + return mazeGroupList; } /** - * repeated .MazeProp maze_prop_list = 8; + * repeated .MazeGroup maze_group_list = 4; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -431,67 +432,67 @@ public RepeatedMessage getMazePropList() { * * @return internal storage object for modifications */ - public RepeatedMessage getMutableMazePropList() { + public RepeatedMessage getMutableMazeGroupList() { bitField0_ |= 0x00000040; - return mazePropList; + return mazeGroupList; } /** - * repeated .MazeProp maze_prop_list = 8; - * @param value the mazePropList to add + * repeated .MazeGroup maze_group_list = 4; + * @param value the mazeGroupList to add * @return this */ - public GetSceneMapInfoScRsp addMazePropList(final MazePropOuterClass.MazeProp value) { + public GetSceneMapInfoScRsp addMazeGroupList(final MazeGroupOuterClass.MazeGroup value) { bitField0_ |= 0x00000040; - mazePropList.add(value); + mazeGroupList.add(value); return this; } /** - * repeated .MazeProp maze_prop_list = 8; - * @param values the mazePropList to add + * repeated .MazeGroup maze_group_list = 4; + * @param values the mazeGroupList to add * @return this */ - public GetSceneMapInfoScRsp addAllMazePropList(final MazePropOuterClass.MazeProp... values) { + public GetSceneMapInfoScRsp addAllMazeGroupList(final MazeGroupOuterClass.MazeGroup... values) { bitField0_ |= 0x00000040; - mazePropList.addAll(values); + mazeGroupList.addAll(values); return this; } /** - * repeated .MazeChest unlocked_chest_list = 10; - * @return whether the unlockedChestList field is set + * repeated .MazeProp maze_prop_list = 6; + * @return whether the mazePropList field is set */ - public boolean hasUnlockedChestList() { + public boolean hasMazePropList() { return (bitField0_ & 0x00000080) != 0; } /** - * repeated .MazeChest unlocked_chest_list = 10; + * repeated .MazeProp maze_prop_list = 6; * @return this */ - public GetSceneMapInfoScRsp clearUnlockedChestList() { + public GetSceneMapInfoScRsp clearMazePropList() { bitField0_ &= ~0x00000080; - unlockedChestList.clear(); + mazePropList.clear(); return this; } /** - * repeated .MazeChest unlocked_chest_list = 10; + * repeated .MazeProp maze_prop_list = 6; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableUnlockedChestList()} if you want to modify it. + * Use {@link #getMutableMazePropList()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedMessage getUnlockedChestList() { - return unlockedChestList; + public RepeatedMessage getMazePropList() { + return mazePropList; } /** - * repeated .MazeChest unlocked_chest_list = 10; + * repeated .MazeProp maze_prop_list = 6; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -499,36 +500,35 @@ public RepeatedMessage getUnlockedChestList() { * * @return internal storage object for modifications */ - public RepeatedMessage getMutableUnlockedChestList() { + public RepeatedMessage getMutableMazePropList() { bitField0_ |= 0x00000080; - return unlockedChestList; + return mazePropList; } /** - * repeated .MazeChest unlocked_chest_list = 10; - * @param value the unlockedChestList to add + * repeated .MazeProp maze_prop_list = 6; + * @param value the mazePropList to add * @return this */ - public GetSceneMapInfoScRsp addUnlockedChestList(final MazeChestOuterClass.MazeChest value) { + public GetSceneMapInfoScRsp addMazePropList(final MazePropOuterClass.MazeProp value) { bitField0_ |= 0x00000080; - unlockedChestList.add(value); + mazePropList.add(value); return this; } /** - * repeated .MazeChest unlocked_chest_list = 10; - * @param values the unlockedChestList to add + * repeated .MazeProp maze_prop_list = 6; + * @param values the mazePropList to add * @return this */ - public GetSceneMapInfoScRsp addAllUnlockedChestList( - final MazeChestOuterClass.MazeChest... values) { + public GetSceneMapInfoScRsp addAllMazePropList(final MazePropOuterClass.MazeProp... values) { bitField0_ |= 0x00000080; - unlockedChestList.addAll(values); + mazePropList.addAll(values); return this; } /** - * repeated .MazeMapData map_list = 14; + * repeated .MazeMapData map_list = 10; * @return whether the mapList field is set */ public boolean hasMapList() { @@ -536,7 +536,7 @@ public boolean hasMapList() { } /** - * repeated .MazeMapData map_list = 14; + * repeated .MazeMapData map_list = 10; * @return this */ public GetSceneMapInfoScRsp clearMapList() { @@ -546,7 +546,7 @@ public GetSceneMapInfoScRsp clearMapList() { } /** - * repeated .MazeMapData map_list = 14; + * repeated .MazeMapData map_list = 10; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -560,7 +560,7 @@ public RepeatedMessage getMapList() { } /** - * repeated .MazeMapData map_list = 14; + * repeated .MazeMapData map_list = 10; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -574,7 +574,7 @@ public RepeatedMessage getMutableMapList() { } /** - * repeated .MazeMapData map_list = 14; + * repeated .MazeMapData map_list = 10; * @param value the mapList to add * @return this */ @@ -585,7 +585,7 @@ public GetSceneMapInfoScRsp addMapList(final MazeMapDataOuterClass.MazeMapData v } /** - * repeated .MazeMapData map_list = 14; + * repeated .MazeMapData map_list = 10; * @param values the mapList to add * @return this */ @@ -605,9 +605,9 @@ public GetSceneMapInfoScRsp copyFrom(final GetSceneMapInfoScRsp other) { entryId = other.entryId; lightenSectionList.copyFrom(other.lightenSectionList); unlockedTeleportList.copyFrom(other.unlockedTeleportList); + unlockedChestList.copyFrom(other.unlockedChestList); mazeGroupList.copyFrom(other.mazeGroupList); mazePropList.copyFrom(other.mazePropList); - unlockedChestList.copyFrom(other.unlockedChestList); mapList.copyFrom(other.mapList); } return this; @@ -634,15 +634,15 @@ public GetSceneMapInfoScRsp mergeFrom(final GetSceneMapInfoScRsp other) { if (other.hasUnlockedTeleportList()) { getMutableUnlockedTeleportList().addAll(other.unlockedTeleportList); } + if (other.hasUnlockedChestList()) { + getMutableUnlockedChestList().addAll(other.unlockedChestList); + } if (other.hasMazeGroupList()) { getMutableMazeGroupList().addAll(other.mazeGroupList); } if (other.hasMazePropList()) { getMutableMazePropList().addAll(other.mazePropList); } - if (other.hasUnlockedChestList()) { - getMutableUnlockedChestList().addAll(other.unlockedChestList); - } if (other.hasMapList()) { getMutableMapList().addAll(other.mapList); } @@ -661,9 +661,9 @@ public GetSceneMapInfoScRsp clear() { entryId = 0; lightenSectionList.clear(); unlockedTeleportList.clear(); + unlockedChestList.clear(); mazeGroupList.clear(); mazePropList.clear(); - unlockedChestList.clear(); mapList.clear(); return this; } @@ -677,9 +677,9 @@ public GetSceneMapInfoScRsp clearQuick() { bitField0_ = 0; lightenSectionList.clear(); unlockedTeleportList.clear(); + unlockedChestList.clearQuick(); mazeGroupList.clearQuick(); mazePropList.clearQuick(); - unlockedChestList.clearQuick(); mapList.clearQuick(); return this; } @@ -699,59 +699,59 @@ public boolean equals(Object o) { && (!hasEntryId() || entryId == other.entryId) && (!hasLightenSectionList() || lightenSectionList.equals(other.lightenSectionList)) && (!hasUnlockedTeleportList() || unlockedTeleportList.equals(other.unlockedTeleportList)) + && (!hasUnlockedChestList() || unlockedChestList.equals(other.unlockedChestList)) && (!hasMazeGroupList() || mazeGroupList.equals(other.mazeGroupList)) && (!hasMazePropList() || mazePropList.equals(other.mazePropList)) - && (!hasUnlockedChestList() || unlockedChestList.equals(other.unlockedChestList)) && (!hasMapList() || mapList.equals(other.mapList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 24); output.writeUInt32NoTag(curMapEntryId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 64); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 88); output.writeUInt32NoTag(entryId); } if ((bitField0_ & 0x00000008) != 0) { for (int i = 0; i < lightenSectionList.length(); i++) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 56); output.writeUInt32NoTag(lightenSectionList.array()[i]); } } if ((bitField0_ & 0x00000010) != 0) { for (int i = 0; i < unlockedTeleportList.length(); i++) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 120); output.writeUInt32NoTag(unlockedTeleportList.array()[i]); } } if ((bitField0_ & 0x00000020) != 0) { - for (int i = 0; i < mazeGroupList.length(); i++) { + for (int i = 0; i < unlockedChestList.length(); i++) { output.writeRawByte((byte) 10); - output.writeMessageNoTag(mazeGroupList.get(i)); + output.writeMessageNoTag(unlockedChestList.get(i)); } } if ((bitField0_ & 0x00000040) != 0) { - for (int i = 0; i < mazePropList.length(); i++) { - output.writeRawByte((byte) 66); - output.writeMessageNoTag(mazePropList.get(i)); + for (int i = 0; i < mazeGroupList.length(); i++) { + output.writeRawByte((byte) 34); + output.writeMessageNoTag(mazeGroupList.get(i)); } } if ((bitField0_ & 0x00000080) != 0) { - for (int i = 0; i < unlockedChestList.length(); i++) { - output.writeRawByte((byte) 82); - output.writeMessageNoTag(unlockedChestList.get(i)); + for (int i = 0; i < mazePropList.length(); i++) { + output.writeRawByte((byte) 50); + output.writeMessageNoTag(mazePropList.get(i)); } } if ((bitField0_ & 0x00000100) != 0) { for (int i = 0; i < mapList.length(); i++) { - output.writeRawByte((byte) 114); + output.writeRawByte((byte) 82); output.writeMessageNoTag(mapList.get(i)); } } @@ -776,13 +776,13 @@ protected int computeSerializedSize() { size += (1 * unlockedTeleportList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(unlockedTeleportList); } if ((bitField0_ & 0x00000020) != 0) { - size += (1 * mazeGroupList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(mazeGroupList); + size += (1 * unlockedChestList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(unlockedChestList); } if ((bitField0_ & 0x00000040) != 0) { - size += (1 * mazePropList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(mazePropList); + size += (1 * mazeGroupList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(mazeGroupList); } if ((bitField0_ & 0x00000080) != 0) { - size += (1 * unlockedChestList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(unlockedChestList); + size += (1 * mazePropList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(mazePropList); } if ((bitField0_ & 0x00000100) != 0) { size += (1 * mapList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(mapList); @@ -797,43 +797,43 @@ public GetSceneMapInfoScRsp mergeFrom(final ProtoSource input) throws IOExceptio int tag = input.readTag(); while (true) { switch (tag) { - case 40: { + case 24: { // curMapEntryId curMapEntryId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 48) { + if (tag != 64) { break; } } - case 48: { + case 64: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 96) { + if (tag != 88) { break; } } - case 96: { + case 88: { // entryId entryId = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 26) { + if (tag != 58) { break; } } - case 26: { + case 58: { // lightenSectionList [packed=true] input.readPackedUInt32(lightenSectionList, tag); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 58) { + if (tag != 122) { break; } } - case 58: { + case 122: { // unlockedTeleportList [packed=true] input.readPackedUInt32(unlockedTeleportList, tag); bitField0_ |= 0x00000010; @@ -843,30 +843,30 @@ public GetSceneMapInfoScRsp mergeFrom(final ProtoSource input) throws IOExceptio } } case 10: { - // mazeGroupList - tag = input.readRepeatedMessage(mazeGroupList, tag); + // unlockedChestList + tag = input.readRepeatedMessage(unlockedChestList, tag); bitField0_ |= 0x00000020; - if (tag != 66) { + if (tag != 34) { break; } } - case 66: { - // mazePropList - tag = input.readRepeatedMessage(mazePropList, tag); + case 34: { + // mazeGroupList + tag = input.readRepeatedMessage(mazeGroupList, tag); bitField0_ |= 0x00000040; - if (tag != 82) { + if (tag != 50) { break; } } - case 82: { - // unlockedChestList - tag = input.readRepeatedMessage(unlockedChestList, tag); + case 50: { + // mazePropList + tag = input.readRepeatedMessage(mazePropList, tag); bitField0_ |= 0x00000080; - if (tag != 114) { + if (tag != 82) { break; } } - case 114: { + case 82: { // mapList tag = input.readRepeatedMessage(mapList, tag); bitField0_ |= 0x00000100; @@ -884,13 +884,13 @@ public GetSceneMapInfoScRsp mergeFrom(final ProtoSource input) throws IOExceptio tag = input.readTag(); break; } - case 24: { + case 56: { // lightenSectionList [packed=false] tag = input.readRepeatedUInt32(lightenSectionList, tag); bitField0_ |= 0x00000008; break; } - case 56: { + case 120: { // unlockedTeleportList [packed=false] tag = input.readRepeatedUInt32(unlockedTeleportList, tag); bitField0_ |= 0x00000010; @@ -919,13 +919,13 @@ public void writeTo(final JsonSink output) throws IOException { output.writeRepeatedUInt32(FieldNames.unlockedTeleportList, unlockedTeleportList); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRepeatedMessage(FieldNames.mazeGroupList, mazeGroupList); + output.writeRepeatedMessage(FieldNames.unlockedChestList, unlockedChestList); } if ((bitField0_ & 0x00000040) != 0) { - output.writeRepeatedMessage(FieldNames.mazePropList, mazePropList); + output.writeRepeatedMessage(FieldNames.mazeGroupList, mazeGroupList); } if ((bitField0_ & 0x00000080) != 0) { - output.writeRepeatedMessage(FieldNames.unlockedChestList, unlockedChestList); + output.writeRepeatedMessage(FieldNames.mazePropList, mazePropList); } if ((bitField0_ & 0x00000100) != 0) { output.writeRepeatedMessage(FieldNames.mapList, mapList); @@ -999,11 +999,11 @@ public GetSceneMapInfoScRsp mergeFrom(final JsonSource input) throws IOException } break; } - case -317054274: - case 407435998: { - if (input.isAtField(FieldNames.mazeGroupList)) { + case -337762404: + case 231688696: { + if (input.isAtField(FieldNames.unlockedChestList)) { if (!input.trySkipNullValue()) { - input.readRepeatedMessage(mazeGroupList); + input.readRepeatedMessage(unlockedChestList); bitField0_ |= 0x00000020; } } else { @@ -1011,11 +1011,11 @@ public GetSceneMapInfoScRsp mergeFrom(final JsonSource input) throws IOException } break; } - case 1676123008: - case 1875839866: { - if (input.isAtField(FieldNames.mazePropList)) { + case -317054274: + case 407435998: { + if (input.isAtField(FieldNames.mazeGroupList)) { if (!input.trySkipNullValue()) { - input.readRepeatedMessage(mazePropList); + input.readRepeatedMessage(mazeGroupList); bitField0_ |= 0x00000040; } } else { @@ -1023,11 +1023,11 @@ public GetSceneMapInfoScRsp mergeFrom(final JsonSource input) throws IOException } break; } - case -337762404: - case 231688696: { - if (input.isAtField(FieldNames.unlockedChestList)) { + case 1676123008: + case 1875839866: { + if (input.isAtField(FieldNames.mazePropList)) { if (!input.trySkipNullValue()) { - input.readRepeatedMessage(unlockedChestList); + input.readRepeatedMessage(mazePropList); bitField0_ |= 0x00000080; } } else { @@ -1110,12 +1110,12 @@ static class FieldNames { static final FieldName unlockedTeleportList = FieldName.forField("unlockedTeleportList", "unlocked_teleport_list"); + static final FieldName unlockedChestList = FieldName.forField("unlockedChestList", "unlocked_chest_list"); + static final FieldName mazeGroupList = FieldName.forField("mazeGroupList", "maze_group_list"); static final FieldName mazePropList = FieldName.forField("mazePropList", "maze_prop_list"); - static final FieldName unlockedChestList = FieldName.forField("unlockedChestList", "unlocked_chest_list"); - static final FieldName mapList = FieldName.forField("mapList", "map_list"); } } diff --git a/src/generated/main/emu/lunarcore/proto/GetShopListCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetShopListCsReqOuterClass.java index 239483235..31cc89ddf 100644 --- a/src/generated/main/emu/lunarcore/proto/GetShopListCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetShopListCsReqOuterClass.java @@ -19,7 +19,7 @@ public static final class GetShopListCsReq extends ProtoMessageoptional uint32 shop_type = 7; + * optional uint32 shop_type = 1; */ private int shopType; @@ -34,7 +34,7 @@ public static GetShopListCsReq newInstance() { } /** - * optional uint32 shop_type = 7; + * optional uint32 shop_type = 1; * @return whether the shopType field is set */ public boolean hasShopType() { @@ -42,7 +42,7 @@ public boolean hasShopType() { } /** - * optional uint32 shop_type = 7; + * optional uint32 shop_type = 1; * @return this */ public GetShopListCsReq clearShopType() { @@ -52,7 +52,7 @@ public GetShopListCsReq clearShopType() { } /** - * optional uint32 shop_type = 7; + * optional uint32 shop_type = 1; * @return the shopType */ public int getShopType() { @@ -60,7 +60,7 @@ public int getShopType() { } /** - * optional uint32 shop_type = 7; + * optional uint32 shop_type = 1; * @param value the shopType to set * @return this */ @@ -129,7 +129,7 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 8); output.writeUInt32NoTag(shopType); } } @@ -150,7 +150,7 @@ public GetShopListCsReq mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 56: { + case 8: { // shopType shopType = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/GetShopListScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetShopListScRspOuterClass.java index ea58f8b37..3eed9f8c6 100644 --- a/src/generated/main/emu/lunarcore/proto/GetShopListScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetShopListScRspOuterClass.java @@ -20,17 +20,17 @@ public static final class GetShopListScRsp extends ProtoMessageoptional uint32 retcode = 8; + * optional uint32 retcode = 1; */ private int retcode; /** - * optional uint32 shop_type = 12; + * optional uint32 shop_type = 4; */ private int shopType; /** - * repeated .Shop shop_list = 10; + * repeated .Shop shop_list = 14; */ private final RepeatedMessage shopList = RepeatedMessage.newEmptyInstance(ShopOuterClass.Shop.getFactory()); @@ -45,7 +45,7 @@ public static GetShopListScRsp newInstance() { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 1; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -53,7 +53,7 @@ public boolean hasRetcode() { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 1; * @return this */ public GetShopListScRsp clearRetcode() { @@ -63,7 +63,7 @@ public GetShopListScRsp clearRetcode() { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 1; * @return the retcode */ public int getRetcode() { @@ -71,7 +71,7 @@ public int getRetcode() { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 1; * @param value the retcode to set * @return this */ @@ -82,7 +82,7 @@ public GetShopListScRsp setRetcode(final int value) { } /** - * optional uint32 shop_type = 12; + * optional uint32 shop_type = 4; * @return whether the shopType field is set */ public boolean hasShopType() { @@ -90,7 +90,7 @@ public boolean hasShopType() { } /** - * optional uint32 shop_type = 12; + * optional uint32 shop_type = 4; * @return this */ public GetShopListScRsp clearShopType() { @@ -100,7 +100,7 @@ public GetShopListScRsp clearShopType() { } /** - * optional uint32 shop_type = 12; + * optional uint32 shop_type = 4; * @return the shopType */ public int getShopType() { @@ -108,7 +108,7 @@ public int getShopType() { } /** - * optional uint32 shop_type = 12; + * optional uint32 shop_type = 4; * @param value the shopType to set * @return this */ @@ -119,7 +119,7 @@ public GetShopListScRsp setShopType(final int value) { } /** - * repeated .Shop shop_list = 10; + * repeated .Shop shop_list = 14; * @return whether the shopList field is set */ public boolean hasShopList() { @@ -127,7 +127,7 @@ public boolean hasShopList() { } /** - * repeated .Shop shop_list = 10; + * repeated .Shop shop_list = 14; * @return this */ public GetShopListScRsp clearShopList() { @@ -137,7 +137,7 @@ public GetShopListScRsp clearShopList() { } /** - * repeated .Shop shop_list = 10; + * repeated .Shop shop_list = 14; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -151,7 +151,7 @@ public RepeatedMessage getShopList() { } /** - * repeated .Shop shop_list = 10; + * repeated .Shop shop_list = 14; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -165,7 +165,7 @@ public RepeatedMessage getMutableShopList() { } /** - * repeated .Shop shop_list = 10; + * repeated .Shop shop_list = 14; * @param value the shopList to add * @return this */ @@ -176,7 +176,7 @@ public GetShopListScRsp addShopList(final ShopOuterClass.Shop value) { } /** - * repeated .Shop shop_list = 10; + * repeated .Shop shop_list = 14; * @param values the shopList to add * @return this */ @@ -258,16 +258,16 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 8); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(shopType); } if ((bitField0_ & 0x00000004) != 0) { for (int i = 0; i < shopList.length(); i++) { - output.writeRawByte((byte) 82); + output.writeRawByte((byte) 114); output.writeMessageNoTag(shopList.get(i)); } } @@ -295,25 +295,25 @@ public GetShopListScRsp mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 64: { + case 8: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 96) { + if (tag != 32) { break; } } - case 96: { + case 32: { // shopType shopType = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 82) { + if (tag != 114) { break; } } - case 82: { + case 114: { // shopList tag = input.readRepeatedMessage(shopList, tag); bitField0_ |= 0x00000004; diff --git a/src/generated/main/emu/lunarcore/proto/GetUnlockTeleportCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetUnlockTeleportCsReqOuterClass.java index d7b76a9cc..4b50bbfe8 100644 --- a/src/generated/main/emu/lunarcore/proto/GetUnlockTeleportCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetUnlockTeleportCsReqOuterClass.java @@ -20,7 +20,7 @@ public static final class GetUnlockTeleportCsReq extends ProtoMessagerepeated uint32 entry_id_list = 15; + * repeated uint32 entry_id_list = 6; */ private final RepeatedInt entryIdList = RepeatedInt.newEmptyInstance(); @@ -35,7 +35,7 @@ public static GetUnlockTeleportCsReq newInstance() { } /** - * repeated uint32 entry_id_list = 15; + * repeated uint32 entry_id_list = 6; * @return whether the entryIdList field is set */ public boolean hasEntryIdList() { @@ -43,7 +43,7 @@ public boolean hasEntryIdList() { } /** - * repeated uint32 entry_id_list = 15; + * repeated uint32 entry_id_list = 6; * @return this */ public GetUnlockTeleportCsReq clearEntryIdList() { @@ -53,7 +53,7 @@ public GetUnlockTeleportCsReq clearEntryIdList() { } /** - * repeated uint32 entry_id_list = 15; + * repeated uint32 entry_id_list = 6; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -67,7 +67,7 @@ public RepeatedInt getEntryIdList() { } /** - * repeated uint32 entry_id_list = 15; + * repeated uint32 entry_id_list = 6; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -81,7 +81,7 @@ public RepeatedInt getMutableEntryIdList() { } /** - * repeated uint32 entry_id_list = 15; + * repeated uint32 entry_id_list = 6; * @param value the entryIdList to add * @return this */ @@ -92,7 +92,7 @@ public GetUnlockTeleportCsReq addEntryIdList(final int value) { } /** - * repeated uint32 entry_id_list = 15; + * repeated uint32 entry_id_list = 6; * @param values the entryIdList to add * @return this */ @@ -163,7 +163,7 @@ public boolean equals(Object o) { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { for (int i = 0; i < entryIdList.length(); i++) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 48); output.writeUInt32NoTag(entryIdList.array()[i]); } } @@ -185,7 +185,7 @@ public GetUnlockTeleportCsReq mergeFrom(final ProtoSource input) throws IOExcept int tag = input.readTag(); while (true) { switch (tag) { - case 122: { + case 50: { // entryIdList [packed=true] input.readPackedUInt32(entryIdList, tag); bitField0_ |= 0x00000001; @@ -204,7 +204,7 @@ public GetUnlockTeleportCsReq mergeFrom(final ProtoSource input) throws IOExcept tag = input.readTag(); break; } - case 120: { + case 48: { // entryIdList [packed=false] tag = input.readRepeatedUInt32(entryIdList, tag); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/GetUnlockTeleportScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetUnlockTeleportScRspOuterClass.java index da53efcaa..2c5e09a0e 100644 --- a/src/generated/main/emu/lunarcore/proto/GetUnlockTeleportScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetUnlockTeleportScRspOuterClass.java @@ -20,12 +20,12 @@ public static final class GetUnlockTeleportScRsp extends ProtoMessageoptional uint32 retcode = 13; + * optional uint32 retcode = 15; */ private int retcode; /** - * repeated uint32 unlocked_teleport_list = 12; + * repeated uint32 unlocked_teleport_list = 5; */ private final RepeatedInt unlockedTeleportList = RepeatedInt.newEmptyInstance(); @@ -40,7 +40,7 @@ public static GetUnlockTeleportScRsp newInstance() { } /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 15; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -48,7 +48,7 @@ public boolean hasRetcode() { } /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 15; * @return this */ public GetUnlockTeleportScRsp clearRetcode() { @@ -58,7 +58,7 @@ public GetUnlockTeleportScRsp clearRetcode() { } /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 15; * @return the retcode */ public int getRetcode() { @@ -66,7 +66,7 @@ public int getRetcode() { } /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 15; * @param value the retcode to set * @return this */ @@ -77,7 +77,7 @@ public GetUnlockTeleportScRsp setRetcode(final int value) { } /** - * repeated uint32 unlocked_teleport_list = 12; + * repeated uint32 unlocked_teleport_list = 5; * @return whether the unlockedTeleportList field is set */ public boolean hasUnlockedTeleportList() { @@ -85,7 +85,7 @@ public boolean hasUnlockedTeleportList() { } /** - * repeated uint32 unlocked_teleport_list = 12; + * repeated uint32 unlocked_teleport_list = 5; * @return this */ public GetUnlockTeleportScRsp clearUnlockedTeleportList() { @@ -95,7 +95,7 @@ public GetUnlockTeleportScRsp clearUnlockedTeleportList() { } /** - * repeated uint32 unlocked_teleport_list = 12; + * repeated uint32 unlocked_teleport_list = 5; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -109,7 +109,7 @@ public RepeatedInt getUnlockedTeleportList() { } /** - * repeated uint32 unlocked_teleport_list = 12; + * repeated uint32 unlocked_teleport_list = 5; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -123,7 +123,7 @@ public RepeatedInt getMutableUnlockedTeleportList() { } /** - * repeated uint32 unlocked_teleport_list = 12; + * repeated uint32 unlocked_teleport_list = 5; * @param value the unlockedTeleportList to add * @return this */ @@ -134,7 +134,7 @@ public GetUnlockTeleportScRsp addUnlockedTeleportList(final int value) { } /** - * repeated uint32 unlocked_teleport_list = 12; + * repeated uint32 unlocked_teleport_list = 5; * @param values the unlockedTeleportList to add * @return this */ @@ -210,12 +210,12 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 120); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < unlockedTeleportList.length(); i++) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 40); output.writeUInt32NoTag(unlockedTeleportList.array()[i]); } } @@ -240,16 +240,16 @@ public GetUnlockTeleportScRsp mergeFrom(final ProtoSource input) throws IOExcept int tag = input.readTag(); while (true) { switch (tag) { - case 104: { + case 120: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 98) { + if (tag != 42) { break; } } - case 98: { + case 42: { // unlockedTeleportList [packed=true] input.readPackedUInt32(unlockedTeleportList, tag); bitField0_ |= 0x00000002; @@ -268,7 +268,7 @@ public GetUnlockTeleportScRsp mergeFrom(final ProtoSource input) throws IOExcept tag = input.readTag(); break; } - case 96: { + case 40: { // unlockedTeleportList [packed=false] tag = input.readRepeatedUInt32(unlockedTeleportList, tag); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/GoodsOuterClass.java b/src/generated/main/emu/lunarcore/proto/GoodsOuterClass.java index b2111a0b0..05e67a171 100644 --- a/src/generated/main/emu/lunarcore/proto/GoodsOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GoodsOuterClass.java @@ -19,27 +19,27 @@ public static final class Goods extends ProtoMessage implements Cloneable private static final long serialVersionUID = 0L; /** - * optional int64 begin_time = 1; + * optional int64 end_time = 5; */ - private long beginTime; + private long endTime; /** - * optional int64 end_time = 11; + * optional int64 begin_time = 12; */ - private long endTime; + private long beginTime; /** - * optional uint32 item_id = 2; + * optional uint32 buy_times = 1; */ - private int itemId; + private int buyTimes; /** - * optional uint32 buy_times = 3; + * optional uint32 item_id = 2; */ - private int buyTimes; + private int itemId; /** - * optional uint32 goods_id = 13; + * optional uint32 goods_id = 9; */ private int goodsId; @@ -54,155 +54,155 @@ public static Goods newInstance() { } /** - * optional int64 begin_time = 1; - * @return whether the beginTime field is set + * optional int64 end_time = 5; + * @return whether the endTime field is set */ - public boolean hasBeginTime() { + public boolean hasEndTime() { return (bitField0_ & 0x00000001) != 0; } /** - * optional int64 begin_time = 1; + * optional int64 end_time = 5; * @return this */ - public Goods clearBeginTime() { + public Goods clearEndTime() { bitField0_ &= ~0x00000001; - beginTime = 0L; + endTime = 0L; return this; } /** - * optional int64 begin_time = 1; - * @return the beginTime + * optional int64 end_time = 5; + * @return the endTime */ - public long getBeginTime() { - return beginTime; + public long getEndTime() { + return endTime; } /** - * optional int64 begin_time = 1; - * @param value the beginTime to set + * optional int64 end_time = 5; + * @param value the endTime to set * @return this */ - public Goods setBeginTime(final long value) { + public Goods setEndTime(final long value) { bitField0_ |= 0x00000001; - beginTime = value; + endTime = value; return this; } /** - * optional int64 end_time = 11; - * @return whether the endTime field is set + * optional int64 begin_time = 12; + * @return whether the beginTime field is set */ - public boolean hasEndTime() { + public boolean hasBeginTime() { return (bitField0_ & 0x00000002) != 0; } /** - * optional int64 end_time = 11; + * optional int64 begin_time = 12; * @return this */ - public Goods clearEndTime() { + public Goods clearBeginTime() { bitField0_ &= ~0x00000002; - endTime = 0L; + beginTime = 0L; return this; } /** - * optional int64 end_time = 11; - * @return the endTime + * optional int64 begin_time = 12; + * @return the beginTime */ - public long getEndTime() { - return endTime; + public long getBeginTime() { + return beginTime; } /** - * optional int64 end_time = 11; - * @param value the endTime to set + * optional int64 begin_time = 12; + * @param value the beginTime to set * @return this */ - public Goods setEndTime(final long value) { + public Goods setBeginTime(final long value) { bitField0_ |= 0x00000002; - endTime = value; + beginTime = value; return this; } /** - * optional uint32 item_id = 2; - * @return whether the itemId field is set + * optional uint32 buy_times = 1; + * @return whether the buyTimes field is set */ - public boolean hasItemId() { + public boolean hasBuyTimes() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 item_id = 2; + * optional uint32 buy_times = 1; * @return this */ - public Goods clearItemId() { + public Goods clearBuyTimes() { bitField0_ &= ~0x00000004; - itemId = 0; + buyTimes = 0; return this; } /** - * optional uint32 item_id = 2; - * @return the itemId + * optional uint32 buy_times = 1; + * @return the buyTimes */ - public int getItemId() { - return itemId; + public int getBuyTimes() { + return buyTimes; } /** - * optional uint32 item_id = 2; - * @param value the itemId to set + * optional uint32 buy_times = 1; + * @param value the buyTimes to set * @return this */ - public Goods setItemId(final int value) { + public Goods setBuyTimes(final int value) { bitField0_ |= 0x00000004; - itemId = value; + buyTimes = value; return this; } /** - * optional uint32 buy_times = 3; - * @return whether the buyTimes field is set + * optional uint32 item_id = 2; + * @return whether the itemId field is set */ - public boolean hasBuyTimes() { + public boolean hasItemId() { return (bitField0_ & 0x00000008) != 0; } /** - * optional uint32 buy_times = 3; + * optional uint32 item_id = 2; * @return this */ - public Goods clearBuyTimes() { + public Goods clearItemId() { bitField0_ &= ~0x00000008; - buyTimes = 0; + itemId = 0; return this; } /** - * optional uint32 buy_times = 3; - * @return the buyTimes + * optional uint32 item_id = 2; + * @return the itemId */ - public int getBuyTimes() { - return buyTimes; + public int getItemId() { + return itemId; } /** - * optional uint32 buy_times = 3; - * @param value the buyTimes to set + * optional uint32 item_id = 2; + * @param value the itemId to set * @return this */ - public Goods setBuyTimes(final int value) { + public Goods setItemId(final int value) { bitField0_ |= 0x00000008; - buyTimes = value; + itemId = value; return this; } /** - * optional uint32 goods_id = 13; + * optional uint32 goods_id = 9; * @return whether the goodsId field is set */ public boolean hasGoodsId() { @@ -210,7 +210,7 @@ public boolean hasGoodsId() { } /** - * optional uint32 goods_id = 13; + * optional uint32 goods_id = 9; * @return this */ public Goods clearGoodsId() { @@ -220,7 +220,7 @@ public Goods clearGoodsId() { } /** - * optional uint32 goods_id = 13; + * optional uint32 goods_id = 9; * @return the goodsId */ public int getGoodsId() { @@ -228,7 +228,7 @@ public int getGoodsId() { } /** - * optional uint32 goods_id = 13; + * optional uint32 goods_id = 9; * @param value the goodsId to set * @return this */ @@ -243,10 +243,10 @@ public Goods copyFrom(final Goods other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - beginTime = other.beginTime; endTime = other.endTime; - itemId = other.itemId; + beginTime = other.beginTime; buyTimes = other.buyTimes; + itemId = other.itemId; goodsId = other.goodsId; } return this; @@ -258,18 +258,18 @@ public Goods mergeFrom(final Goods other) { return this; } cachedSize = -1; - if (other.hasBeginTime()) { - setBeginTime(other.beginTime); - } if (other.hasEndTime()) { setEndTime(other.endTime); } - if (other.hasItemId()) { - setItemId(other.itemId); + if (other.hasBeginTime()) { + setBeginTime(other.beginTime); } if (other.hasBuyTimes()) { setBuyTimes(other.buyTimes); } + if (other.hasItemId()) { + setItemId(other.itemId); + } if (other.hasGoodsId()) { setGoodsId(other.goodsId); } @@ -283,10 +283,10 @@ public Goods clear() { } cachedSize = -1; bitField0_ = 0; - beginTime = 0L; endTime = 0L; - itemId = 0; + beginTime = 0L; buyTimes = 0; + itemId = 0; goodsId = 0; return this; } @@ -311,33 +311,33 @@ public boolean equals(Object o) { } Goods other = (Goods) o; return bitField0_ == other.bitField0_ - && (!hasBeginTime() || beginTime == other.beginTime) && (!hasEndTime() || endTime == other.endTime) - && (!hasItemId() || itemId == other.itemId) + && (!hasBeginTime() || beginTime == other.beginTime) && (!hasBuyTimes() || buyTimes == other.buyTimes) + && (!hasItemId() || itemId == other.itemId) && (!hasGoodsId() || goodsId == other.goodsId); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); - output.writeInt64NoTag(beginTime); + output.writeRawByte((byte) 40); + output.writeInt64NoTag(endTime); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 88); - output.writeInt64NoTag(endTime); + output.writeRawByte((byte) 96); + output.writeInt64NoTag(beginTime); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(itemId); + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(buyTimes); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(buyTimes); + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(itemId); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 72); output.writeUInt32NoTag(goodsId); } } @@ -346,16 +346,16 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeInt64SizeNoTag(beginTime); + size += 1 + ProtoSink.computeInt64SizeNoTag(endTime); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeInt64SizeNoTag(endTime); + size += 1 + ProtoSink.computeInt64SizeNoTag(beginTime); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(itemId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(buyTimes); } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(buyTimes); + size += 1 + ProtoSink.computeUInt32SizeNoTag(itemId); } if ((bitField0_ & 0x00000010) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(goodsId); @@ -370,43 +370,43 @@ public Goods mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 8: { - // beginTime - beginTime = input.readInt64(); + case 40: { + // endTime + endTime = input.readInt64(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 88) { + if (tag != 96) { break; } } - case 88: { - // endTime - endTime = input.readInt64(); + case 96: { + // beginTime + beginTime = input.readInt64(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 16) { + if (tag != 8) { break; } } - case 16: { - // itemId - itemId = input.readUInt32(); + case 8: { + // buyTimes + buyTimes = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 24) { + if (tag != 16) { break; } } - case 24: { - // buyTimes - buyTimes = input.readUInt32(); + case 16: { + // itemId + itemId = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 104) { + if (tag != 72) { break; } } - case 104: { + case 72: { // goodsId goodsId = input.readUInt32(); bitField0_ |= 0x00000010; @@ -433,16 +433,16 @@ public Goods mergeFrom(final ProtoSource input) throws IOException { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeInt64(FieldNames.beginTime, beginTime); + output.writeInt64(FieldNames.endTime, endTime); } if ((bitField0_ & 0x00000002) != 0) { - output.writeInt64(FieldNames.endTime, endTime); + output.writeInt64(FieldNames.beginTime, beginTime); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.itemId, itemId); + output.writeUInt32(FieldNames.buyTimes, buyTimes); } if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.buyTimes, buyTimes); + output.writeUInt32(FieldNames.itemId, itemId); } if ((bitField0_ & 0x00000010) != 0) { output.writeUInt32(FieldNames.goodsId, goodsId); @@ -457,11 +457,11 @@ public Goods mergeFrom(final JsonSource input) throws IOException { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -1072839914: - case 1112183971: { - if (input.isAtField(FieldNames.beginTime)) { + case -1607243192: + case 1725551537: { + if (input.isAtField(FieldNames.endTime)) { if (!input.trySkipNullValue()) { - beginTime = input.readInt64(); + endTime = input.readInt64(); bitField0_ |= 0x00000001; } } else { @@ -469,11 +469,11 @@ public Goods mergeFrom(final JsonSource input) throws IOException { } break; } - case -1607243192: - case 1725551537: { - if (input.isAtField(FieldNames.endTime)) { + case -1072839914: + case 1112183971: { + if (input.isAtField(FieldNames.beginTime)) { if (!input.trySkipNullValue()) { - endTime = input.readInt64(); + beginTime = input.readInt64(); bitField0_ |= 0x00000002; } } else { @@ -481,11 +481,11 @@ public Goods mergeFrom(final JsonSource input) throws IOException { } break; } - case -1178662002: - case 2116204999: { - if (input.isAtField(FieldNames.itemId)) { + case -994591648: + case -442602419: { + if (input.isAtField(FieldNames.buyTimes)) { if (!input.trySkipNullValue()) { - itemId = input.readUInt32(); + buyTimes = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -493,11 +493,11 @@ public Goods mergeFrom(final JsonSource input) throws IOException { } break; } - case -994591648: - case -442602419: { - if (input.isAtField(FieldNames.buyTimes)) { + case -1178662002: + case 2116204999: { + if (input.isAtField(FieldNames.itemId)) { if (!input.trySkipNullValue()) { - buyTimes = input.readUInt32(); + itemId = input.readUInt32(); bitField0_ |= 0x00000008; } } else { @@ -569,14 +569,14 @@ public Goods create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName beginTime = FieldName.forField("beginTime", "begin_time"); - static final FieldName endTime = FieldName.forField("endTime", "end_time"); - static final FieldName itemId = FieldName.forField("itemId", "item_id"); + static final FieldName beginTime = FieldName.forField("beginTime", "begin_time"); static final FieldName buyTimes = FieldName.forField("buyTimes", "buy_times"); + static final FieldName itemId = FieldName.forField("itemId", "item_id"); + static final FieldName goodsId = FieldName.forField("goodsId", "goods_id"); } } diff --git a/src/generated/main/emu/lunarcore/proto/HandleFriendCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/HandleFriendCsReqOuterClass.java index f9a837e51..1fda94dfb 100644 --- a/src/generated/main/emu/lunarcore/proto/HandleFriendCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/HandleFriendCsReqOuterClass.java @@ -19,12 +19,12 @@ public static final class HandleFriendCsReq extends ProtoMessageoptional uint32 uid = 10; + * optional uint32 uid = 7; */ private int uid; /** - * optional bool handle_result = 2; + * optional bool handle_result = 13; */ private boolean handleResult; @@ -39,7 +39,7 @@ public static HandleFriendCsReq newInstance() { } /** - * optional uint32 uid = 10; + * optional uint32 uid = 7; * @return whether the uid field is set */ public boolean hasUid() { @@ -47,7 +47,7 @@ public boolean hasUid() { } /** - * optional uint32 uid = 10; + * optional uint32 uid = 7; * @return this */ public HandleFriendCsReq clearUid() { @@ -57,7 +57,7 @@ public HandleFriendCsReq clearUid() { } /** - * optional uint32 uid = 10; + * optional uint32 uid = 7; * @return the uid */ public int getUid() { @@ -65,7 +65,7 @@ public int getUid() { } /** - * optional uint32 uid = 10; + * optional uint32 uid = 7; * @param value the uid to set * @return this */ @@ -76,7 +76,7 @@ public HandleFriendCsReq setUid(final int value) { } /** - * optional bool handle_result = 2; + * optional bool handle_result = 13; * @return whether the handleResult field is set */ public boolean hasHandleResult() { @@ -84,7 +84,7 @@ public boolean hasHandleResult() { } /** - * optional bool handle_result = 2; + * optional bool handle_result = 13; * @return this */ public HandleFriendCsReq clearHandleResult() { @@ -94,7 +94,7 @@ public HandleFriendCsReq clearHandleResult() { } /** - * optional bool handle_result = 2; + * optional bool handle_result = 13; * @return the handleResult */ public boolean getHandleResult() { @@ -102,7 +102,7 @@ public boolean getHandleResult() { } /** - * optional bool handle_result = 2; + * optional bool handle_result = 13; * @param value the handleResult to set * @return this */ @@ -177,11 +177,11 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 56); output.writeUInt32NoTag(uid); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 16); + output.writeRawByte((byte) 104); output.writeBoolNoTag(handleResult); } } @@ -205,16 +205,16 @@ public HandleFriendCsReq mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 80: { + case 56: { // uid uid = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 16) { + if (tag != 104) { break; } } - case 16: { + case 104: { // handleResult handleResult = input.readBool(); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/HandleFriendScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/HandleFriendScRspOuterClass.java index 0bb7d12f6..d6fddcf9a 100644 --- a/src/generated/main/emu/lunarcore/proto/HandleFriendScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/HandleFriendScRspOuterClass.java @@ -19,22 +19,22 @@ public static final class HandleFriendScRsp extends ProtoMessageoptional uint32 uid = 8; + * optional uint32 retcode = 5; */ - private int uid; + private int retcode; /** - * optional uint32 retcode = 9; + * optional uint32 uid = 10; */ - private int retcode; + private int uid; /** - * optional bool handle_result = 7; + * optional bool handle_result = 8; */ private boolean handleResult; /** - * optional .FriendListInfo handle_friend_info = 10; + * optional .FriendListInfo handle_friend_info = 12; */ private final FriendListInfoOuterClass.FriendListInfo handleFriendInfo = FriendListInfoOuterClass.FriendListInfo.newInstance(); @@ -49,81 +49,81 @@ public static HandleFriendScRsp newInstance() { } /** - * optional uint32 uid = 8; - * @return whether the uid field is set + * optional uint32 retcode = 5; + * @return whether the retcode field is set */ - public boolean hasUid() { + public boolean hasRetcode() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 uid = 8; + * optional uint32 retcode = 5; * @return this */ - public HandleFriendScRsp clearUid() { + public HandleFriendScRsp clearRetcode() { bitField0_ &= ~0x00000001; - uid = 0; + retcode = 0; return this; } /** - * optional uint32 uid = 8; - * @return the uid + * optional uint32 retcode = 5; + * @return the retcode */ - public int getUid() { - return uid; + public int getRetcode() { + return retcode; } /** - * optional uint32 uid = 8; - * @param value the uid to set + * optional uint32 retcode = 5; + * @param value the retcode to set * @return this */ - public HandleFriendScRsp setUid(final int value) { + public HandleFriendScRsp setRetcode(final int value) { bitField0_ |= 0x00000001; - uid = value; + retcode = value; return this; } /** - * optional uint32 retcode = 9; - * @return whether the retcode field is set + * optional uint32 uid = 10; + * @return whether the uid field is set */ - public boolean hasRetcode() { + public boolean hasUid() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 retcode = 9; + * optional uint32 uid = 10; * @return this */ - public HandleFriendScRsp clearRetcode() { + public HandleFriendScRsp clearUid() { bitField0_ &= ~0x00000002; - retcode = 0; + uid = 0; return this; } /** - * optional uint32 retcode = 9; - * @return the retcode + * optional uint32 uid = 10; + * @return the uid */ - public int getRetcode() { - return retcode; + public int getUid() { + return uid; } /** - * optional uint32 retcode = 9; - * @param value the retcode to set + * optional uint32 uid = 10; + * @param value the uid to set * @return this */ - public HandleFriendScRsp setRetcode(final int value) { + public HandleFriendScRsp setUid(final int value) { bitField0_ |= 0x00000002; - retcode = value; + uid = value; return this; } /** - * optional bool handle_result = 7; + * optional bool handle_result = 8; * @return whether the handleResult field is set */ public boolean hasHandleResult() { @@ -131,7 +131,7 @@ public boolean hasHandleResult() { } /** - * optional bool handle_result = 7; + * optional bool handle_result = 8; * @return this */ public HandleFriendScRsp clearHandleResult() { @@ -141,7 +141,7 @@ public HandleFriendScRsp clearHandleResult() { } /** - * optional bool handle_result = 7; + * optional bool handle_result = 8; * @return the handleResult */ public boolean getHandleResult() { @@ -149,7 +149,7 @@ public boolean getHandleResult() { } /** - * optional bool handle_result = 7; + * optional bool handle_result = 8; * @param value the handleResult to set * @return this */ @@ -160,7 +160,7 @@ public HandleFriendScRsp setHandleResult(final boolean value) { } /** - * optional .FriendListInfo handle_friend_info = 10; + * optional .FriendListInfo handle_friend_info = 12; * @return whether the handleFriendInfo field is set */ public boolean hasHandleFriendInfo() { @@ -168,7 +168,7 @@ public boolean hasHandleFriendInfo() { } /** - * optional .FriendListInfo handle_friend_info = 10; + * optional .FriendListInfo handle_friend_info = 12; * @return this */ public HandleFriendScRsp clearHandleFriendInfo() { @@ -178,7 +178,7 @@ public HandleFriendScRsp clearHandleFriendInfo() { } /** - * optional .FriendListInfo handle_friend_info = 10; + * optional .FriendListInfo handle_friend_info = 12; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -192,7 +192,7 @@ public FriendListInfoOuterClass.FriendListInfo getHandleFriendInfo() { } /** - * optional .FriendListInfo handle_friend_info = 10; + * optional .FriendListInfo handle_friend_info = 12; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -206,7 +206,7 @@ public FriendListInfoOuterClass.FriendListInfo getMutableHandleFriendInfo() { } /** - * optional .FriendListInfo handle_friend_info = 10; + * optional .FriendListInfo handle_friend_info = 12; * @param value the handleFriendInfo to set * @return this */ @@ -222,8 +222,8 @@ public HandleFriendScRsp copyFrom(final HandleFriendScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - uid = other.uid; retcode = other.retcode; + uid = other.uid; handleResult = other.handleResult; handleFriendInfo.copyFrom(other.handleFriendInfo); } @@ -236,12 +236,12 @@ public HandleFriendScRsp mergeFrom(final HandleFriendScRsp other) { return this; } cachedSize = -1; - if (other.hasUid()) { - setUid(other.uid); - } if (other.hasRetcode()) { setRetcode(other.retcode); } + if (other.hasUid()) { + setUid(other.uid); + } if (other.hasHandleResult()) { setHandleResult(other.handleResult); } @@ -258,8 +258,8 @@ public HandleFriendScRsp clear() { } cachedSize = -1; bitField0_ = 0; - uid = 0; retcode = 0; + uid = 0; handleResult = false; handleFriendInfo.clear(); return this; @@ -286,8 +286,8 @@ public boolean equals(Object o) { } HandleFriendScRsp other = (HandleFriendScRsp) o; return bitField0_ == other.bitField0_ - && (!hasUid() || uid == other.uid) && (!hasRetcode() || retcode == other.retcode) + && (!hasUid() || uid == other.uid) && (!hasHandleResult() || handleResult == other.handleResult) && (!hasHandleFriendInfo() || handleFriendInfo.equals(other.handleFriendInfo)); } @@ -295,19 +295,19 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 64); - output.writeUInt32NoTag(uid); + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 72); - output.writeUInt32NoTag(retcode); + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(uid); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 64); output.writeBoolNoTag(handleResult); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 82); + output.writeRawByte((byte) 98); output.writeMessageNoTag(handleFriendInfo); } } @@ -316,10 +316,10 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(uid); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(uid); } if ((bitField0_ & 0x00000004) != 0) { size += 2; @@ -337,34 +337,34 @@ public HandleFriendScRsp mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 64: { - // uid - uid = input.readUInt32(); + case 40: { + // retcode + retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 72) { + if (tag != 80) { break; } } - case 72: { - // retcode - retcode = input.readUInt32(); + case 80: { + // uid + uid = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 56) { + if (tag != 64) { break; } } - case 56: { + case 64: { // handleResult handleResult = input.readBool(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 82) { + if (tag != 98) { break; } } - case 82: { + case 98: { // handleFriendInfo input.readMessage(handleFriendInfo); bitField0_ |= 0x00000008; @@ -391,10 +391,10 @@ public HandleFriendScRsp mergeFrom(final ProtoSource input) throws IOException { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.uid, uid); + output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.uid, uid); } if ((bitField0_ & 0x00000004) != 0) { output.writeBool(FieldNames.handleResult, handleResult); @@ -412,10 +412,10 @@ public HandleFriendScRsp mergeFrom(final JsonSource input) throws IOException { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 115792: { - if (input.isAtField(FieldNames.uid)) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { - uid = input.readUInt32(); + retcode = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -423,10 +423,10 @@ public HandleFriendScRsp mergeFrom(final JsonSource input) throws IOException { } break; } - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { + case 115792: { + if (input.isAtField(FieldNames.uid)) { if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); + uid = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -511,10 +511,10 @@ public HandleFriendScRsp create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName uid = FieldName.forField("uid"); - static final FieldName retcode = FieldName.forField("retcode"); + static final FieldName uid = FieldName.forField("uid"); + static final FieldName handleResult = FieldName.forField("handleResult", "handle_result"); static final FieldName handleFriendInfo = FieldName.forField("handleFriendInfo", "handle_friend_info"); diff --git a/src/generated/main/emu/lunarcore/proto/HeadIconOuterClass.java b/src/generated/main/emu/lunarcore/proto/HeadIconOuterClass.java index 8b441cd5f..e1277db63 100644 --- a/src/generated/main/emu/lunarcore/proto/HeadIconOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/HeadIconOuterClass.java @@ -19,7 +19,7 @@ public static final class HeadIcon extends ProtoMessage implements Clo private static final long serialVersionUID = 0L; /** - * optional uint32 id = 7; + * optional uint32 id = 8; */ private int id; @@ -34,7 +34,7 @@ public static HeadIcon newInstance() { } /** - * optional uint32 id = 7; + * optional uint32 id = 8; * @return whether the id field is set */ public boolean hasId() { @@ -42,7 +42,7 @@ public boolean hasId() { } /** - * optional uint32 id = 7; + * optional uint32 id = 8; * @return this */ public HeadIcon clearId() { @@ -52,7 +52,7 @@ public HeadIcon clearId() { } /** - * optional uint32 id = 7; + * optional uint32 id = 8; * @return the id */ public int getId() { @@ -60,7 +60,7 @@ public int getId() { } /** - * optional uint32 id = 7; + * optional uint32 id = 8; * @param value the id to set * @return this */ @@ -129,7 +129,7 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 64); output.writeUInt32NoTag(id); } } @@ -150,7 +150,7 @@ public HeadIcon mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 56: { + case 64: { // id id = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/HeroBasicTypeInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/HeroBasicTypeInfoOuterClass.java index 495d42159..21c483b05 100644 --- a/src/generated/main/emu/lunarcore/proto/HeroBasicTypeInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/HeroBasicTypeInfoOuterClass.java @@ -25,12 +25,12 @@ public static final class HeroBasicTypeInfo extends ProtoMessageoptional .HeroBasicType basic_type = 5; + * optional .HeroBasicType basic_type = 3; */ private int basicType; /** - * repeated .AvatarSkillTree skill_tree_list = 10; + * repeated .AvatarSkillTree skill_tree_list = 1; */ private final RepeatedMessage skillTreeList = RepeatedMessage.newEmptyInstance(AvatarSkillTreeOuterClass.AvatarSkillTree.getFactory()); @@ -82,7 +82,7 @@ public HeroBasicTypeInfo setRank(final int value) { } /** - * optional .HeroBasicType basic_type = 5; + * optional .HeroBasicType basic_type = 3; * @return whether the basicType field is set */ public boolean hasBasicType() { @@ -90,7 +90,7 @@ public boolean hasBasicType() { } /** - * optional .HeroBasicType basic_type = 5; + * optional .HeroBasicType basic_type = 3; * @return this */ public HeroBasicTypeInfo clearBasicType() { @@ -100,7 +100,7 @@ public HeroBasicTypeInfo clearBasicType() { } /** - * optional .HeroBasicType basic_type = 5; + * optional .HeroBasicType basic_type = 3; * @return the basicType */ public HeroBasicTypeOuterClass.HeroBasicType getBasicType() { @@ -133,7 +133,7 @@ public HeroBasicTypeInfo setBasicTypeValue(final int value) { } /** - * optional .HeroBasicType basic_type = 5; + * optional .HeroBasicType basic_type = 3; * @param value the basicType to set * @return this */ @@ -144,7 +144,7 @@ public HeroBasicTypeInfo setBasicType(final HeroBasicTypeOuterClass.HeroBasicTyp } /** - * repeated .AvatarSkillTree skill_tree_list = 10; + * repeated .AvatarSkillTree skill_tree_list = 1; * @return whether the skillTreeList field is set */ public boolean hasSkillTreeList() { @@ -152,7 +152,7 @@ public boolean hasSkillTreeList() { } /** - * repeated .AvatarSkillTree skill_tree_list = 10; + * repeated .AvatarSkillTree skill_tree_list = 1; * @return this */ public HeroBasicTypeInfo clearSkillTreeList() { @@ -162,7 +162,7 @@ public HeroBasicTypeInfo clearSkillTreeList() { } /** - * repeated .AvatarSkillTree skill_tree_list = 10; + * repeated .AvatarSkillTree skill_tree_list = 1; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -176,7 +176,7 @@ public RepeatedMessage getSkillTreeLi } /** - * repeated .AvatarSkillTree skill_tree_list = 10; + * repeated .AvatarSkillTree skill_tree_list = 1; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -190,7 +190,7 @@ public RepeatedMessage getMutableSkil } /** - * repeated .AvatarSkillTree skill_tree_list = 10; + * repeated .AvatarSkillTree skill_tree_list = 1; * @param value the skillTreeList to add * @return this */ @@ -202,7 +202,7 @@ public HeroBasicTypeInfo addSkillTreeList( } /** - * repeated .AvatarSkillTree skill_tree_list = 10; + * repeated .AvatarSkillTree skill_tree_list = 1; * @param values the skillTreeList to add * @return this */ @@ -289,12 +289,12 @@ public void writeTo(final ProtoSink output) throws IOException { output.writeUInt32NoTag(rank); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 24); output.writeEnumNoTag(basicType); } if ((bitField0_ & 0x00000004) != 0) { for (int i = 0; i < skillTreeList.length(); i++) { - output.writeRawByte((byte) 82); + output.writeRawByte((byte) 10); output.writeMessageNoTag(skillTreeList.get(i)); } } @@ -327,11 +327,11 @@ public HeroBasicTypeInfo mergeFrom(final ProtoSource input) throws IOException { rank = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 40) { + if (tag != 24) { break; } } - case 40: { + case 24: { // basicType final int value = input.readInt32(); if (HeroBasicTypeOuterClass.HeroBasicType.forNumber(value) != null) { @@ -339,11 +339,11 @@ public HeroBasicTypeInfo mergeFrom(final ProtoSource input) throws IOException { bitField0_ |= 0x00000002; } tag = input.readTag(); - if (tag != 82) { + if (tag != 10) { break; } } - case 82: { + case 10: { // skillTreeList tag = input.readRepeatedMessage(skillTreeList, tag); bitField0_ |= 0x00000004; diff --git a/src/generated/main/emu/lunarcore/proto/InteractPropCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/InteractPropCsReqOuterClass.java index fc46dacb5..31b8e5817 100644 --- a/src/generated/main/emu/lunarcore/proto/InteractPropCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/InteractPropCsReqOuterClass.java @@ -19,7 +19,7 @@ public static final class InteractPropCsReq extends ProtoMessageoptional uint32 prop_entity_id = 13; + * optional uint32 prop_entity_id = 15; */ private int propEntityId; @@ -34,7 +34,7 @@ public static InteractPropCsReq newInstance() { } /** - * optional uint32 prop_entity_id = 13; + * optional uint32 prop_entity_id = 15; * @return whether the propEntityId field is set */ public boolean hasPropEntityId() { @@ -42,7 +42,7 @@ public boolean hasPropEntityId() { } /** - * optional uint32 prop_entity_id = 13; + * optional uint32 prop_entity_id = 15; * @return this */ public InteractPropCsReq clearPropEntityId() { @@ -52,7 +52,7 @@ public InteractPropCsReq clearPropEntityId() { } /** - * optional uint32 prop_entity_id = 13; + * optional uint32 prop_entity_id = 15; * @return the propEntityId */ public int getPropEntityId() { @@ -60,7 +60,7 @@ public int getPropEntityId() { } /** - * optional uint32 prop_entity_id = 13; + * optional uint32 prop_entity_id = 15; * @param value the propEntityId to set * @return this */ @@ -129,7 +129,7 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 120); output.writeUInt32NoTag(propEntityId); } } @@ -150,7 +150,7 @@ public InteractPropCsReq mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 104: { + case 120: { // propEntityId propEntityId = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/InteractPropScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/InteractPropScRspOuterClass.java index f8c71d854..4e2fce52b 100644 --- a/src/generated/main/emu/lunarcore/proto/InteractPropScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/InteractPropScRspOuterClass.java @@ -19,19 +19,19 @@ public static final class InteractPropScRsp extends ProtoMessageoptional uint32 retcode = 2; + * optional uint32 prop_state = 3; */ - private int retcode; + private int propState; /** - * optional uint32 prop_entity_id = 3; + * optional uint32 prop_entity_id = 6; */ private int propEntityId; /** - * optional uint32 prop_state = 15; + * optional uint32 retcode = 7; */ - private int propState; + private int retcode; private InteractPropScRsp() { } @@ -44,44 +44,44 @@ public static InteractPropScRsp newInstance() { } /** - * optional uint32 retcode = 2; - * @return whether the retcode field is set + * optional uint32 prop_state = 3; + * @return whether the propState field is set */ - public boolean hasRetcode() { + public boolean hasPropState() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 retcode = 2; + * optional uint32 prop_state = 3; * @return this */ - public InteractPropScRsp clearRetcode() { + public InteractPropScRsp clearPropState() { bitField0_ &= ~0x00000001; - retcode = 0; + propState = 0; return this; } /** - * optional uint32 retcode = 2; - * @return the retcode + * optional uint32 prop_state = 3; + * @return the propState */ - public int getRetcode() { - return retcode; + public int getPropState() { + return propState; } /** - * optional uint32 retcode = 2; - * @param value the retcode to set + * optional uint32 prop_state = 3; + * @param value the propState to set * @return this */ - public InteractPropScRsp setRetcode(final int value) { + public InteractPropScRsp setPropState(final int value) { bitField0_ |= 0x00000001; - retcode = value; + propState = value; return this; } /** - * optional uint32 prop_entity_id = 3; + * optional uint32 prop_entity_id = 6; * @return whether the propEntityId field is set */ public boolean hasPropEntityId() { @@ -89,7 +89,7 @@ public boolean hasPropEntityId() { } /** - * optional uint32 prop_entity_id = 3; + * optional uint32 prop_entity_id = 6; * @return this */ public InteractPropScRsp clearPropEntityId() { @@ -99,7 +99,7 @@ public InteractPropScRsp clearPropEntityId() { } /** - * optional uint32 prop_entity_id = 3; + * optional uint32 prop_entity_id = 6; * @return the propEntityId */ public int getPropEntityId() { @@ -107,7 +107,7 @@ public int getPropEntityId() { } /** - * optional uint32 prop_entity_id = 3; + * optional uint32 prop_entity_id = 6; * @param value the propEntityId to set * @return this */ @@ -118,39 +118,39 @@ public InteractPropScRsp setPropEntityId(final int value) { } /** - * optional uint32 prop_state = 15; - * @return whether the propState field is set + * optional uint32 retcode = 7; + * @return whether the retcode field is set */ - public boolean hasPropState() { + public boolean hasRetcode() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 prop_state = 15; + * optional uint32 retcode = 7; * @return this */ - public InteractPropScRsp clearPropState() { + public InteractPropScRsp clearRetcode() { bitField0_ &= ~0x00000004; - propState = 0; + retcode = 0; return this; } /** - * optional uint32 prop_state = 15; - * @return the propState + * optional uint32 retcode = 7; + * @return the retcode */ - public int getPropState() { - return propState; + public int getRetcode() { + return retcode; } /** - * optional uint32 prop_state = 15; - * @param value the propState to set + * optional uint32 retcode = 7; + * @param value the retcode to set * @return this */ - public InteractPropScRsp setPropState(final int value) { + public InteractPropScRsp setRetcode(final int value) { bitField0_ |= 0x00000004; - propState = value; + retcode = value; return this; } @@ -159,9 +159,9 @@ public InteractPropScRsp copyFrom(final InteractPropScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - retcode = other.retcode; - propEntityId = other.propEntityId; propState = other.propState; + propEntityId = other.propEntityId; + retcode = other.retcode; } return this; } @@ -172,14 +172,14 @@ public InteractPropScRsp mergeFrom(final InteractPropScRsp other) { return this; } cachedSize = -1; - if (other.hasRetcode()) { - setRetcode(other.retcode); + if (other.hasPropState()) { + setPropState(other.propState); } if (other.hasPropEntityId()) { setPropEntityId(other.propEntityId); } - if (other.hasPropState()) { - setPropState(other.propState); + if (other.hasRetcode()) { + setRetcode(other.retcode); } return this; } @@ -191,9 +191,9 @@ public InteractPropScRsp clear() { } cachedSize = -1; bitField0_ = 0; - retcode = 0; - propEntityId = 0; propState = 0; + propEntityId = 0; + retcode = 0; return this; } @@ -217,24 +217,24 @@ public boolean equals(Object o) { } InteractPropScRsp other = (InteractPropScRsp) o; return bitField0_ == other.bitField0_ - && (!hasRetcode() || retcode == other.retcode) + && (!hasPropState() || propState == other.propState) && (!hasPropEntityId() || propEntityId == other.propEntityId) - && (!hasPropState() || propState == other.propState); + && (!hasRetcode() || retcode == other.retcode); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(retcode); + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(propState); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 48); output.writeUInt32NoTag(propEntityId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 120); - output.writeUInt32NoTag(propState); + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(retcode); } } @@ -242,13 +242,13 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(propState); } if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(propEntityId); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(propState); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } return size; } @@ -260,27 +260,27 @@ public InteractPropScRsp mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { - // retcode - retcode = input.readUInt32(); + case 24: { + // propState + propState = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 24) { + if (tag != 48) { break; } } - case 24: { + case 48: { // propEntityId propEntityId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 120) { + if (tag != 56) { break; } } - case 120: { - // propState - propState = input.readUInt32(); + case 56: { + // retcode + retcode = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 0) { @@ -305,13 +305,13 @@ public InteractPropScRsp mergeFrom(final ProtoSource input) throws IOException { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.propState, propState); } if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.propEntityId, propEntityId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.propState, propState); + output.writeUInt32(FieldNames.retcode, retcode); } output.endObject(); } @@ -323,10 +323,11 @@ public InteractPropScRsp mergeFrom(final JsonSource input) throws IOException { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { + case -739191058: + case -1096911691: { + if (input.isAtField(FieldNames.propState)) { if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); + propState = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -346,11 +347,10 @@ public InteractPropScRsp mergeFrom(final JsonSource input) throws IOException { } break; } - case -739191058: - case -1096911691: { - if (input.isAtField(FieldNames.propState)) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { - propState = input.readUInt32(); + retcode = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -411,11 +411,11 @@ public InteractPropScRsp create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName retcode = FieldName.forField("retcode"); + static final FieldName propState = FieldName.forField("propState", "prop_state"); static final FieldName propEntityId = FieldName.forField("propEntityId", "prop_entity_id"); - static final FieldName propState = FieldName.forField("propState", "prop_state"); + static final FieldName retcode = FieldName.forField("retcode"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/ItemCostListOuterClass.java b/src/generated/main/emu/lunarcore/proto/ItemCostListOuterClass.java index 41d44974a..fddb7dc41 100644 --- a/src/generated/main/emu/lunarcore/proto/ItemCostListOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ItemCostListOuterClass.java @@ -20,7 +20,7 @@ public static final class ItemCostList extends ProtoMessage implem private static final long serialVersionUID = 0L; /** - * repeated .ItemCost item_list = 1; + * repeated .ItemCost item_list = 9; */ private final RepeatedMessage itemList = RepeatedMessage.newEmptyInstance(ItemCostOuterClass.ItemCost.getFactory()); @@ -35,7 +35,7 @@ public static ItemCostList newInstance() { } /** - * repeated .ItemCost item_list = 1; + * repeated .ItemCost item_list = 9; * @return whether the itemList field is set */ public boolean hasItemList() { @@ -43,7 +43,7 @@ public boolean hasItemList() { } /** - * repeated .ItemCost item_list = 1; + * repeated .ItemCost item_list = 9; * @return this */ public ItemCostList clearItemList() { @@ -53,7 +53,7 @@ public ItemCostList clearItemList() { } /** - * repeated .ItemCost item_list = 1; + * repeated .ItemCost item_list = 9; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -67,7 +67,7 @@ public RepeatedMessage getItemList() { } /** - * repeated .ItemCost item_list = 1; + * repeated .ItemCost item_list = 9; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -81,7 +81,7 @@ public RepeatedMessage getMutableItemList() { } /** - * repeated .ItemCost item_list = 1; + * repeated .ItemCost item_list = 9; * @param value the itemList to add * @return this */ @@ -92,7 +92,7 @@ public ItemCostList addItemList(final ItemCostOuterClass.ItemCost value) { } /** - * repeated .ItemCost item_list = 1; + * repeated .ItemCost item_list = 9; * @param values the itemList to add * @return this */ @@ -163,7 +163,7 @@ public boolean equals(Object o) { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { for (int i = 0; i < itemList.length(); i++) { - output.writeRawByte((byte) 10); + output.writeRawByte((byte) 74); output.writeMessageNoTag(itemList.get(i)); } } @@ -185,7 +185,7 @@ public ItemCostList mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 10: { + case 74: { // itemList tag = input.readRepeatedMessage(itemList, tag); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/ItemCostOuterClass.java b/src/generated/main/emu/lunarcore/proto/ItemCostOuterClass.java index 673818880..8bc9a11f0 100644 --- a/src/generated/main/emu/lunarcore/proto/ItemCostOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ItemCostOuterClass.java @@ -19,17 +19,17 @@ public static final class ItemCost extends ProtoMessage implements Clo private static final long serialVersionUID = 0L; /** - * optional uint32 equipment_unique_id = 1; + * optional uint32 equipment_unique_id = 2; */ private int equipmentUniqueId; /** - * optional uint32 relic_unique_id = 5; + * optional uint32 relic_unique_id = 13; */ private int relicUniqueId; /** - * optional .PileItem pile_item = 13; + * optional .PileItem pile_item = 6; */ private final PileItemOuterClass.PileItem pileItem = PileItemOuterClass.PileItem.newInstance(); @@ -43,42 +43,8 @@ public static ItemCost newInstance() { return new ItemCost(); } - public boolean hasItemCase() { - return (((bitField0_ & 0x00000007)) != 0); - } - - public ItemCost clearItemCase() { - if (hasItemCase()) { - clearEquipmentUniqueId(); - clearRelicUniqueId(); - clearPileItem(); - } - return this; - } - - private void clearItemCaseOtherEquipmentUniqueId() { - if ((((bitField0_ & 0x00000006)) != 0)) { - clearRelicUniqueId(); - clearPileItem(); - } - } - - private void clearItemCaseOtherRelicUniqueId() { - if ((((bitField0_ & 0x00000005)) != 0)) { - clearEquipmentUniqueId(); - clearPileItem(); - } - } - - private void clearItemCaseOtherPileItem() { - if ((((bitField0_ & 0x00000003)) != 0)) { - clearEquipmentUniqueId(); - clearRelicUniqueId(); - } - } - /** - * optional uint32 equipment_unique_id = 1; + * optional uint32 equipment_unique_id = 2; * @return whether the equipmentUniqueId field is set */ public boolean hasEquipmentUniqueId() { @@ -86,7 +52,7 @@ public boolean hasEquipmentUniqueId() { } /** - * optional uint32 equipment_unique_id = 1; + * optional uint32 equipment_unique_id = 2; * @return this */ public ItemCost clearEquipmentUniqueId() { @@ -96,7 +62,7 @@ public ItemCost clearEquipmentUniqueId() { } /** - * optional uint32 equipment_unique_id = 1; + * optional uint32 equipment_unique_id = 2; * @return the equipmentUniqueId */ public int getEquipmentUniqueId() { @@ -104,19 +70,18 @@ public int getEquipmentUniqueId() { } /** - * optional uint32 equipment_unique_id = 1; + * optional uint32 equipment_unique_id = 2; * @param value the equipmentUniqueId to set * @return this */ public ItemCost setEquipmentUniqueId(final int value) { - clearItemCaseOtherEquipmentUniqueId(); bitField0_ |= 0x00000001; equipmentUniqueId = value; return this; } /** - * optional uint32 relic_unique_id = 5; + * optional uint32 relic_unique_id = 13; * @return whether the relicUniqueId field is set */ public boolean hasRelicUniqueId() { @@ -124,7 +89,7 @@ public boolean hasRelicUniqueId() { } /** - * optional uint32 relic_unique_id = 5; + * optional uint32 relic_unique_id = 13; * @return this */ public ItemCost clearRelicUniqueId() { @@ -134,7 +99,7 @@ public ItemCost clearRelicUniqueId() { } /** - * optional uint32 relic_unique_id = 5; + * optional uint32 relic_unique_id = 13; * @return the relicUniqueId */ public int getRelicUniqueId() { @@ -142,19 +107,18 @@ public int getRelicUniqueId() { } /** - * optional uint32 relic_unique_id = 5; + * optional uint32 relic_unique_id = 13; * @param value the relicUniqueId to set * @return this */ public ItemCost setRelicUniqueId(final int value) { - clearItemCaseOtherRelicUniqueId(); bitField0_ |= 0x00000002; relicUniqueId = value; return this; } /** - * optional .PileItem pile_item = 13; + * optional .PileItem pile_item = 6; * @return whether the pileItem field is set */ public boolean hasPileItem() { @@ -162,7 +126,7 @@ public boolean hasPileItem() { } /** - * optional .PileItem pile_item = 13; + * optional .PileItem pile_item = 6; * @return this */ public ItemCost clearPileItem() { @@ -172,7 +136,7 @@ public ItemCost clearPileItem() { } /** - * optional .PileItem pile_item = 13; + * optional .PileItem pile_item = 6; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -186,7 +150,7 @@ public PileItemOuterClass.PileItem getPileItem() { } /** - * optional .PileItem pile_item = 13; + * optional .PileItem pile_item = 6; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -195,18 +159,16 @@ public PileItemOuterClass.PileItem getPileItem() { * @return internal storage object for modifications */ public PileItemOuterClass.PileItem getMutablePileItem() { - clearItemCaseOtherPileItem(); bitField0_ |= 0x00000004; return pileItem; } /** - * optional .PileItem pile_item = 13; + * optional .PileItem pile_item = 6; * @param value the pileItem to set * @return this */ public ItemCost setPileItem(final PileItemOuterClass.PileItem value) { - clearItemCaseOtherPileItem(); bitField0_ |= 0x00000004; pileItem.copyFrom(value); return this; @@ -284,15 +246,15 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); + output.writeRawByte((byte) 16); output.writeUInt32NoTag(equipmentUniqueId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 104); output.writeUInt32NoTag(relicUniqueId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 106); + output.writeRawByte((byte) 50); output.writeMessageNoTag(pileItem); } } @@ -319,29 +281,26 @@ public ItemCost mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 8: { + case 16: { // equipmentUniqueId - clearItemCaseOtherEquipmentUniqueId(); equipmentUniqueId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 40) { + if (tag != 104) { break; } } - case 40: { + case 104: { // relicUniqueId - clearItemCaseOtherRelicUniqueId(); relicUniqueId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 106) { + if (tag != 50) { break; } } - case 106: { + case 50: { // pileItem - clearItemCaseOtherPileItem(); input.readMessage(pileItem); bitField0_ |= 0x00000004; tag = input.readTag(); @@ -389,7 +348,6 @@ public ItemCost mergeFrom(final JsonSource input) throws IOException { case 760467160: { if (input.isAtField(FieldNames.equipmentUniqueId)) { if (!input.trySkipNullValue()) { - clearItemCaseOtherEquipmentUniqueId(); equipmentUniqueId = input.readUInt32(); bitField0_ |= 0x00000001; } @@ -402,7 +360,6 @@ public ItemCost mergeFrom(final JsonSource input) throws IOException { case 49648253: { if (input.isAtField(FieldNames.relicUniqueId)) { if (!input.trySkipNullValue()) { - clearItemCaseOtherRelicUniqueId(); relicUniqueId = input.readUInt32(); bitField0_ |= 0x00000002; } @@ -415,7 +372,6 @@ public ItemCost mergeFrom(final JsonSource input) throws IOException { case 2083693056: { if (input.isAtField(FieldNames.pileItem)) { if (!input.trySkipNullValue()) { - clearItemCaseOtherPileItem(); input.readMessage(pileItem); bitField0_ |= 0x00000004; } diff --git a/src/generated/main/emu/lunarcore/proto/ItemListOuterClass.java b/src/generated/main/emu/lunarcore/proto/ItemListOuterClass.java index bb19ff510..578734d1e 100644 --- a/src/generated/main/emu/lunarcore/proto/ItemListOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ItemListOuterClass.java @@ -20,7 +20,7 @@ public static final class ItemList extends ProtoMessage implements Clo private static final long serialVersionUID = 0L; /** - * repeated .Item item_list = 11; + * repeated .Item item_list = 13; */ private final RepeatedMessage itemList = RepeatedMessage.newEmptyInstance(ItemOuterClass.Item.getFactory()); @@ -35,7 +35,7 @@ public static ItemList newInstance() { } /** - * repeated .Item item_list = 11; + * repeated .Item item_list = 13; * @return whether the itemList field is set */ public boolean hasItemList() { @@ -43,7 +43,7 @@ public boolean hasItemList() { } /** - * repeated .Item item_list = 11; + * repeated .Item item_list = 13; * @return this */ public ItemList clearItemList() { @@ -53,7 +53,7 @@ public ItemList clearItemList() { } /** - * repeated .Item item_list = 11; + * repeated .Item item_list = 13; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -67,7 +67,7 @@ public RepeatedMessage getItemList() { } /** - * repeated .Item item_list = 11; + * repeated .Item item_list = 13; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -81,7 +81,7 @@ public RepeatedMessage getMutableItemList() { } /** - * repeated .Item item_list = 11; + * repeated .Item item_list = 13; * @param value the itemList to add * @return this */ @@ -92,7 +92,7 @@ public ItemList addItemList(final ItemOuterClass.Item value) { } /** - * repeated .Item item_list = 11; + * repeated .Item item_list = 13; * @param values the itemList to add * @return this */ @@ -163,7 +163,7 @@ public boolean equals(Object o) { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { for (int i = 0; i < itemList.length(); i++) { - output.writeRawByte((byte) 90); + output.writeRawByte((byte) 106); output.writeMessageNoTag(itemList.get(i)); } } @@ -185,7 +185,7 @@ public ItemList mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 90: { + case 106: { // itemList tag = input.readRepeatedMessage(itemList, tag); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/ItemOuterClass.java b/src/generated/main/emu/lunarcore/proto/ItemOuterClass.java index 47e6ad26d..c56e1d6cb 100644 --- a/src/generated/main/emu/lunarcore/proto/ItemOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ItemOuterClass.java @@ -19,39 +19,39 @@ public static final class Item extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * optional uint32 promotion = 3; + * optional uint32 num = 4; */ - private int promotion; + private int num; /** - * optional uint32 num = 9; + * optional uint32 unique_id = 5; */ - private int num; + private int uniqueId; /** - * optional uint32 main_affix_id = 10; + * optional uint32 level = 6; */ - private int mainAffixId; + private int level; /** - * optional uint32 rank = 12; + * optional uint32 promotion = 8; */ - private int rank; + private int promotion; /** - * optional uint32 unique_id = 13; + * optional uint32 main_affix_id = 11; */ - private int uniqueId; + private int mainAffixId; /** - * optional uint32 item_id = 14; + * optional uint32 item_id = 13; */ private int itemId; /** - * optional uint32 level = 15; + * optional uint32 rank = 15; */ - private int level; + private int rank; private Item() { } @@ -64,192 +64,192 @@ public static Item newInstance() { } /** - * optional uint32 promotion = 3; - * @return whether the promotion field is set + * optional uint32 num = 4; + * @return whether the num field is set */ - public boolean hasPromotion() { + public boolean hasNum() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 promotion = 3; + * optional uint32 num = 4; * @return this */ - public Item clearPromotion() { + public Item clearNum() { bitField0_ &= ~0x00000001; - promotion = 0; + num = 0; return this; } /** - * optional uint32 promotion = 3; - * @return the promotion + * optional uint32 num = 4; + * @return the num */ - public int getPromotion() { - return promotion; + public int getNum() { + return num; } /** - * optional uint32 promotion = 3; - * @param value the promotion to set + * optional uint32 num = 4; + * @param value the num to set * @return this */ - public Item setPromotion(final int value) { + public Item setNum(final int value) { bitField0_ |= 0x00000001; - promotion = value; + num = value; return this; } /** - * optional uint32 num = 9; - * @return whether the num field is set + * optional uint32 unique_id = 5; + * @return whether the uniqueId field is set */ - public boolean hasNum() { + public boolean hasUniqueId() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 num = 9; + * optional uint32 unique_id = 5; * @return this */ - public Item clearNum() { + public Item clearUniqueId() { bitField0_ &= ~0x00000002; - num = 0; + uniqueId = 0; return this; } /** - * optional uint32 num = 9; - * @return the num + * optional uint32 unique_id = 5; + * @return the uniqueId */ - public int getNum() { - return num; + public int getUniqueId() { + return uniqueId; } /** - * optional uint32 num = 9; - * @param value the num to set + * optional uint32 unique_id = 5; + * @param value the uniqueId to set * @return this */ - public Item setNum(final int value) { + public Item setUniqueId(final int value) { bitField0_ |= 0x00000002; - num = value; + uniqueId = value; return this; } /** - * optional uint32 main_affix_id = 10; - * @return whether the mainAffixId field is set + * optional uint32 level = 6; + * @return whether the level field is set */ - public boolean hasMainAffixId() { + public boolean hasLevel() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 main_affix_id = 10; + * optional uint32 level = 6; * @return this */ - public Item clearMainAffixId() { + public Item clearLevel() { bitField0_ &= ~0x00000004; - mainAffixId = 0; + level = 0; return this; } /** - * optional uint32 main_affix_id = 10; - * @return the mainAffixId + * optional uint32 level = 6; + * @return the level */ - public int getMainAffixId() { - return mainAffixId; + public int getLevel() { + return level; } /** - * optional uint32 main_affix_id = 10; - * @param value the mainAffixId to set + * optional uint32 level = 6; + * @param value the level to set * @return this */ - public Item setMainAffixId(final int value) { + public Item setLevel(final int value) { bitField0_ |= 0x00000004; - mainAffixId = value; + level = value; return this; } /** - * optional uint32 rank = 12; - * @return whether the rank field is set + * optional uint32 promotion = 8; + * @return whether the promotion field is set */ - public boolean hasRank() { + public boolean hasPromotion() { return (bitField0_ & 0x00000008) != 0; } /** - * optional uint32 rank = 12; + * optional uint32 promotion = 8; * @return this */ - public Item clearRank() { + public Item clearPromotion() { bitField0_ &= ~0x00000008; - rank = 0; + promotion = 0; return this; } /** - * optional uint32 rank = 12; - * @return the rank + * optional uint32 promotion = 8; + * @return the promotion */ - public int getRank() { - return rank; + public int getPromotion() { + return promotion; } /** - * optional uint32 rank = 12; - * @param value the rank to set + * optional uint32 promotion = 8; + * @param value the promotion to set * @return this */ - public Item setRank(final int value) { + public Item setPromotion(final int value) { bitField0_ |= 0x00000008; - rank = value; + promotion = value; return this; } /** - * optional uint32 unique_id = 13; - * @return whether the uniqueId field is set + * optional uint32 main_affix_id = 11; + * @return whether the mainAffixId field is set */ - public boolean hasUniqueId() { + public boolean hasMainAffixId() { return (bitField0_ & 0x00000010) != 0; } /** - * optional uint32 unique_id = 13; + * optional uint32 main_affix_id = 11; * @return this */ - public Item clearUniqueId() { + public Item clearMainAffixId() { bitField0_ &= ~0x00000010; - uniqueId = 0; + mainAffixId = 0; return this; } /** - * optional uint32 unique_id = 13; - * @return the uniqueId + * optional uint32 main_affix_id = 11; + * @return the mainAffixId */ - public int getUniqueId() { - return uniqueId; + public int getMainAffixId() { + return mainAffixId; } /** - * optional uint32 unique_id = 13; - * @param value the uniqueId to set + * optional uint32 main_affix_id = 11; + * @param value the mainAffixId to set * @return this */ - public Item setUniqueId(final int value) { + public Item setMainAffixId(final int value) { bitField0_ |= 0x00000010; - uniqueId = value; + mainAffixId = value; return this; } /** - * optional uint32 item_id = 14; + * optional uint32 item_id = 13; * @return whether the itemId field is set */ public boolean hasItemId() { @@ -257,7 +257,7 @@ public boolean hasItemId() { } /** - * optional uint32 item_id = 14; + * optional uint32 item_id = 13; * @return this */ public Item clearItemId() { @@ -267,7 +267,7 @@ public Item clearItemId() { } /** - * optional uint32 item_id = 14; + * optional uint32 item_id = 13; * @return the itemId */ public int getItemId() { @@ -275,7 +275,7 @@ public int getItemId() { } /** - * optional uint32 item_id = 14; + * optional uint32 item_id = 13; * @param value the itemId to set * @return this */ @@ -286,39 +286,39 @@ public Item setItemId(final int value) { } /** - * optional uint32 level = 15; - * @return whether the level field is set + * optional uint32 rank = 15; + * @return whether the rank field is set */ - public boolean hasLevel() { + public boolean hasRank() { return (bitField0_ & 0x00000040) != 0; } /** - * optional uint32 level = 15; + * optional uint32 rank = 15; * @return this */ - public Item clearLevel() { + public Item clearRank() { bitField0_ &= ~0x00000040; - level = 0; + rank = 0; return this; } /** - * optional uint32 level = 15; - * @return the level + * optional uint32 rank = 15; + * @return the rank */ - public int getLevel() { - return level; + public int getRank() { + return rank; } /** - * optional uint32 level = 15; - * @param value the level to set + * optional uint32 rank = 15; + * @param value the rank to set * @return this */ - public Item setLevel(final int value) { + public Item setRank(final int value) { bitField0_ |= 0x00000040; - level = value; + rank = value; return this; } @@ -327,13 +327,13 @@ public Item copyFrom(final Item other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - promotion = other.promotion; num = other.num; - mainAffixId = other.mainAffixId; - rank = other.rank; uniqueId = other.uniqueId; - itemId = other.itemId; level = other.level; + promotion = other.promotion; + mainAffixId = other.mainAffixId; + itemId = other.itemId; + rank = other.rank; } return this; } @@ -344,26 +344,26 @@ public Item mergeFrom(final Item other) { return this; } cachedSize = -1; - if (other.hasPromotion()) { - setPromotion(other.promotion); - } if (other.hasNum()) { setNum(other.num); } - if (other.hasMainAffixId()) { - setMainAffixId(other.mainAffixId); - } - if (other.hasRank()) { - setRank(other.rank); - } if (other.hasUniqueId()) { setUniqueId(other.uniqueId); } + if (other.hasLevel()) { + setLevel(other.level); + } + if (other.hasPromotion()) { + setPromotion(other.promotion); + } + if (other.hasMainAffixId()) { + setMainAffixId(other.mainAffixId); + } if (other.hasItemId()) { setItemId(other.itemId); } - if (other.hasLevel()) { - setLevel(other.level); + if (other.hasRank()) { + setRank(other.rank); } return this; } @@ -375,13 +375,13 @@ public Item clear() { } cachedSize = -1; bitField0_ = 0; - promotion = 0; num = 0; - mainAffixId = 0; - rank = 0; uniqueId = 0; - itemId = 0; level = 0; + promotion = 0; + mainAffixId = 0; + itemId = 0; + rank = 0; return this; } @@ -405,44 +405,44 @@ public boolean equals(Object o) { } Item other = (Item) o; return bitField0_ == other.bitField0_ - && (!hasPromotion() || promotion == other.promotion) && (!hasNum() || num == other.num) - && (!hasMainAffixId() || mainAffixId == other.mainAffixId) - && (!hasRank() || rank == other.rank) && (!hasUniqueId() || uniqueId == other.uniqueId) + && (!hasLevel() || level == other.level) + && (!hasPromotion() || promotion == other.promotion) + && (!hasMainAffixId() || mainAffixId == other.mainAffixId) && (!hasItemId() || itemId == other.itemId) - && (!hasLevel() || level == other.level); + && (!hasRank() || rank == other.rank); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(promotion); + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(num); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 72); - output.writeUInt32NoTag(num); + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(uniqueId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 80); - output.writeUInt32NoTag(mainAffixId); + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(level); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 96); - output.writeUInt32NoTag(rank); + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(promotion); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 104); - output.writeUInt32NoTag(uniqueId); + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(mainAffixId); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 104); output.writeUInt32NoTag(itemId); } if ((bitField0_ & 0x00000040) != 0) { output.writeRawByte((byte) 120); - output.writeUInt32NoTag(level); + output.writeUInt32NoTag(rank); } } @@ -450,25 +450,25 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(promotion); + size += 1 + ProtoSink.computeUInt32SizeNoTag(num); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(num); + size += 1 + ProtoSink.computeUInt32SizeNoTag(uniqueId); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(mainAffixId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(level); } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(rank); + size += 1 + ProtoSink.computeUInt32SizeNoTag(promotion); } if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(uniqueId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(mainAffixId); } if ((bitField0_ & 0x00000020) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(itemId); } if ((bitField0_ & 0x00000040) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(level); + size += 1 + ProtoSink.computeUInt32SizeNoTag(rank); } return size; } @@ -480,52 +480,52 @@ public Item mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 24: { - // promotion - promotion = input.readUInt32(); + case 32: { + // num + num = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 72) { + if (tag != 40) { break; } } - case 72: { - // num - num = input.readUInt32(); + case 40: { + // uniqueId + uniqueId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 80) { + if (tag != 48) { break; } } - case 80: { - // mainAffixId - mainAffixId = input.readUInt32(); + case 48: { + // level + level = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 96) { + if (tag != 64) { break; } } - case 96: { - // rank - rank = input.readUInt32(); + case 64: { + // promotion + promotion = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 104) { + if (tag != 88) { break; } } - case 104: { - // uniqueId - uniqueId = input.readUInt32(); + case 88: { + // mainAffixId + mainAffixId = input.readUInt32(); bitField0_ |= 0x00000010; tag = input.readTag(); - if (tag != 112) { + if (tag != 104) { break; } } - case 112: { + case 104: { // itemId itemId = input.readUInt32(); bitField0_ |= 0x00000020; @@ -535,8 +535,8 @@ public Item mergeFrom(final ProtoSource input) throws IOException { } } case 120: { - // level - level = input.readUInt32(); + // rank + rank = input.readUInt32(); bitField0_ |= 0x00000040; tag = input.readTag(); if (tag != 0) { @@ -561,25 +561,25 @@ public Item mergeFrom(final ProtoSource input) throws IOException { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.promotion, promotion); + output.writeUInt32(FieldNames.num, num); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.num, num); + output.writeUInt32(FieldNames.uniqueId, uniqueId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.mainAffixId, mainAffixId); + output.writeUInt32(FieldNames.level, level); } if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.rank, rank); + output.writeUInt32(FieldNames.promotion, promotion); } if ((bitField0_ & 0x00000010) != 0) { - output.writeUInt32(FieldNames.uniqueId, uniqueId); + output.writeUInt32(FieldNames.mainAffixId, mainAffixId); } if ((bitField0_ & 0x00000020) != 0) { output.writeUInt32(FieldNames.itemId, itemId); } if ((bitField0_ & 0x00000040) != 0) { - output.writeUInt32(FieldNames.level, level); + output.writeUInt32(FieldNames.rank, rank); } output.endObject(); } @@ -591,10 +591,10 @@ public Item mergeFrom(final JsonSource input) throws IOException { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -799212381: { - if (input.isAtField(FieldNames.promotion)) { + case 109446: { + if (input.isAtField(FieldNames.num)) { if (!input.trySkipNullValue()) { - promotion = input.readUInt32(); + num = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -602,10 +602,11 @@ public Item mergeFrom(final JsonSource input) throws IOException { } break; } - case 109446: { - if (input.isAtField(FieldNames.num)) { + case -294460212: + case -538310583: { + if (input.isAtField(FieldNames.uniqueId)) { if (!input.trySkipNullValue()) { - num = input.readUInt32(); + uniqueId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -613,11 +614,10 @@ public Item mergeFrom(final JsonSource input) throws IOException { } break; } - case -1973876974: - case -1426712144: { - if (input.isAtField(FieldNames.mainAffixId)) { + case 102865796: { + if (input.isAtField(FieldNames.level)) { if (!input.trySkipNullValue()) { - mainAffixId = input.readUInt32(); + level = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -625,10 +625,10 @@ public Item mergeFrom(final JsonSource input) throws IOException { } break; } - case 3492908: { - if (input.isAtField(FieldNames.rank)) { + case -799212381: { + if (input.isAtField(FieldNames.promotion)) { if (!input.trySkipNullValue()) { - rank = input.readUInt32(); + promotion = input.readUInt32(); bitField0_ |= 0x00000008; } } else { @@ -636,11 +636,11 @@ public Item mergeFrom(final JsonSource input) throws IOException { } break; } - case -294460212: - case -538310583: { - if (input.isAtField(FieldNames.uniqueId)) { + case -1973876974: + case -1426712144: { + if (input.isAtField(FieldNames.mainAffixId)) { if (!input.trySkipNullValue()) { - uniqueId = input.readUInt32(); + mainAffixId = input.readUInt32(); bitField0_ |= 0x00000010; } } else { @@ -660,10 +660,10 @@ public Item mergeFrom(final JsonSource input) throws IOException { } break; } - case 102865796: { - if (input.isAtField(FieldNames.level)) { + case 3492908: { + if (input.isAtField(FieldNames.rank)) { if (!input.trySkipNullValue()) { - level = input.readUInt32(); + rank = input.readUInt32(); bitField0_ |= 0x00000040; } } else { @@ -723,19 +723,19 @@ public Item create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName promotion = FieldName.forField("promotion"); - static final FieldName num = FieldName.forField("num"); - static final FieldName mainAffixId = FieldName.forField("mainAffixId", "main_affix_id"); + static final FieldName uniqueId = FieldName.forField("uniqueId", "unique_id"); - static final FieldName rank = FieldName.forField("rank"); + static final FieldName level = FieldName.forField("level"); - static final FieldName uniqueId = FieldName.forField("uniqueId", "unique_id"); + static final FieldName promotion = FieldName.forField("promotion"); + + static final FieldName mainAffixId = FieldName.forField("mainAffixId", "main_affix_id"); static final FieldName itemId = FieldName.forField("itemId", "item_id"); - static final FieldName level = FieldName.forField("level"); + static final FieldName rank = FieldName.forField("rank"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/JoinLineupCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/JoinLineupCsReqOuterClass.java index 4ee5a2693..cb939de91 100644 --- a/src/generated/main/emu/lunarcore/proto/JoinLineupCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/JoinLineupCsReqOuterClass.java @@ -19,37 +19,37 @@ public static final class JoinLineupCsReq extends ProtoMessage private static final long serialVersionUID = 0L; /** - * optional uint32 plane_id = 5; + * optional uint32 plane_id = 7; */ private int planeId; /** - * optional uint32 index = 6; + * optional uint32 index = 8; */ private int index; /** - * optional uint32 slot = 12; + * optional uint32 slot = 13; */ private int slot; /** - * optional uint32 base_avatar_id = 13; + * optional uint32 base_avatar_id = 14; */ private int baseAvatarId; /** - * optional .ExtraLineupType extra_lineup_type = 11; + * optional .AvatarType avatar_type = 2; */ - private int extraLineupType; + private int avatarType; /** - * optional .AvatarType avatar_type = 15; + * optional .ExtraLineupType extra_lineup_type = 6; */ - private int avatarType; + private int extraLineupType; /** - * optional bool is_virtual = 7; + * optional bool is_virtual = 9; */ private boolean isVirtual; @@ -64,7 +64,7 @@ public static JoinLineupCsReq newInstance() { } /** - * optional uint32 plane_id = 5; + * optional uint32 plane_id = 7; * @return whether the planeId field is set */ public boolean hasPlaneId() { @@ -72,7 +72,7 @@ public boolean hasPlaneId() { } /** - * optional uint32 plane_id = 5; + * optional uint32 plane_id = 7; * @return this */ public JoinLineupCsReq clearPlaneId() { @@ -82,7 +82,7 @@ public JoinLineupCsReq clearPlaneId() { } /** - * optional uint32 plane_id = 5; + * optional uint32 plane_id = 7; * @return the planeId */ public int getPlaneId() { @@ -90,7 +90,7 @@ public int getPlaneId() { } /** - * optional uint32 plane_id = 5; + * optional uint32 plane_id = 7; * @param value the planeId to set * @return this */ @@ -101,7 +101,7 @@ public JoinLineupCsReq setPlaneId(final int value) { } /** - * optional uint32 index = 6; + * optional uint32 index = 8; * @return whether the index field is set */ public boolean hasIndex() { @@ -109,7 +109,7 @@ public boolean hasIndex() { } /** - * optional uint32 index = 6; + * optional uint32 index = 8; * @return this */ public JoinLineupCsReq clearIndex() { @@ -119,7 +119,7 @@ public JoinLineupCsReq clearIndex() { } /** - * optional uint32 index = 6; + * optional uint32 index = 8; * @return the index */ public int getIndex() { @@ -127,7 +127,7 @@ public int getIndex() { } /** - * optional uint32 index = 6; + * optional uint32 index = 8; * @param value the index to set * @return this */ @@ -138,7 +138,7 @@ public JoinLineupCsReq setIndex(final int value) { } /** - * optional uint32 slot = 12; + * optional uint32 slot = 13; * @return whether the slot field is set */ public boolean hasSlot() { @@ -146,7 +146,7 @@ public boolean hasSlot() { } /** - * optional uint32 slot = 12; + * optional uint32 slot = 13; * @return this */ public JoinLineupCsReq clearSlot() { @@ -156,7 +156,7 @@ public JoinLineupCsReq clearSlot() { } /** - * optional uint32 slot = 12; + * optional uint32 slot = 13; * @return the slot */ public int getSlot() { @@ -164,7 +164,7 @@ public int getSlot() { } /** - * optional uint32 slot = 12; + * optional uint32 slot = 13; * @param value the slot to set * @return this */ @@ -175,7 +175,7 @@ public JoinLineupCsReq setSlot(final int value) { } /** - * optional uint32 base_avatar_id = 13; + * optional uint32 base_avatar_id = 14; * @return whether the baseAvatarId field is set */ public boolean hasBaseAvatarId() { @@ -183,7 +183,7 @@ public boolean hasBaseAvatarId() { } /** - * optional uint32 base_avatar_id = 13; + * optional uint32 base_avatar_id = 14; * @return this */ public JoinLineupCsReq clearBaseAvatarId() { @@ -193,7 +193,7 @@ public JoinLineupCsReq clearBaseAvatarId() { } /** - * optional uint32 base_avatar_id = 13; + * optional uint32 base_avatar_id = 14; * @return the baseAvatarId */ public int getBaseAvatarId() { @@ -201,7 +201,7 @@ public int getBaseAvatarId() { } /** - * optional uint32 base_avatar_id = 13; + * optional uint32 base_avatar_id = 14; * @param value the baseAvatarId to set * @return this */ @@ -212,132 +212,132 @@ public JoinLineupCsReq setBaseAvatarId(final int value) { } /** - * optional .ExtraLineupType extra_lineup_type = 11; - * @return whether the extraLineupType field is set + * optional .AvatarType avatar_type = 2; + * @return whether the avatarType field is set */ - public boolean hasExtraLineupType() { + public boolean hasAvatarType() { return (bitField0_ & 0x00000010) != 0; } /** - * optional .ExtraLineupType extra_lineup_type = 11; + * optional .AvatarType avatar_type = 2; * @return this */ - public JoinLineupCsReq clearExtraLineupType() { + public JoinLineupCsReq clearAvatarType() { bitField0_ &= ~0x00000010; - extraLineupType = 0; + avatarType = 0; return this; } /** - * optional .ExtraLineupType extra_lineup_type = 11; - * @return the extraLineupType + * optional .AvatarType avatar_type = 2; + * @return the avatarType */ - public ExtraLineupTypeOuterClass.ExtraLineupType getExtraLineupType() { - return ExtraLineupTypeOuterClass.ExtraLineupType.forNumber(extraLineupType); + public AvatarTypeOuterClass.AvatarType getAvatarType() { + return AvatarTypeOuterClass.AvatarType.forNumber(avatarType); } /** * Gets the value of the internal enum store. The result is - * equivalent to {@link JoinLineupCsReq#getExtraLineupType()}.getNumber(). + * equivalent to {@link JoinLineupCsReq#getAvatarType()}.getNumber(). * * @return numeric wire representation */ - public int getExtraLineupTypeValue() { - return extraLineupType; + public int getAvatarTypeValue() { + return avatarType; } /** * Sets the value of the internal enum store. This does not * do any validity checks, so be sure to use appropriate value - * constants from {@link ExtraLineupTypeOuterClass.ExtraLineupType}. Setting an invalid value - * can cause {@link JoinLineupCsReq#getExtraLineupType()} to return null + * constants from {@link AvatarTypeOuterClass.AvatarType}. Setting an invalid value + * can cause {@link JoinLineupCsReq#getAvatarType()} to return null * * @param value the numeric wire value to set * @return this */ - public JoinLineupCsReq setExtraLineupTypeValue(final int value) { + public JoinLineupCsReq setAvatarTypeValue(final int value) { bitField0_ |= 0x00000010; - extraLineupType = value; + avatarType = value; return this; } /** - * optional .ExtraLineupType extra_lineup_type = 11; - * @param value the extraLineupType to set + * optional .AvatarType avatar_type = 2; + * @param value the avatarType to set * @return this */ - public JoinLineupCsReq setExtraLineupType( - final ExtraLineupTypeOuterClass.ExtraLineupType value) { + public JoinLineupCsReq setAvatarType(final AvatarTypeOuterClass.AvatarType value) { bitField0_ |= 0x00000010; - extraLineupType = value.getNumber(); + avatarType = value.getNumber(); return this; } /** - * optional .AvatarType avatar_type = 15; - * @return whether the avatarType field is set + * optional .ExtraLineupType extra_lineup_type = 6; + * @return whether the extraLineupType field is set */ - public boolean hasAvatarType() { + public boolean hasExtraLineupType() { return (bitField0_ & 0x00000020) != 0; } /** - * optional .AvatarType avatar_type = 15; + * optional .ExtraLineupType extra_lineup_type = 6; * @return this */ - public JoinLineupCsReq clearAvatarType() { + public JoinLineupCsReq clearExtraLineupType() { bitField0_ &= ~0x00000020; - avatarType = 0; + extraLineupType = 0; return this; } /** - * optional .AvatarType avatar_type = 15; - * @return the avatarType + * optional .ExtraLineupType extra_lineup_type = 6; + * @return the extraLineupType */ - public AvatarTypeOuterClass.AvatarType getAvatarType() { - return AvatarTypeOuterClass.AvatarType.forNumber(avatarType); + public ExtraLineupTypeOuterClass.ExtraLineupType getExtraLineupType() { + return ExtraLineupTypeOuterClass.ExtraLineupType.forNumber(extraLineupType); } /** * Gets the value of the internal enum store. The result is - * equivalent to {@link JoinLineupCsReq#getAvatarType()}.getNumber(). + * equivalent to {@link JoinLineupCsReq#getExtraLineupType()}.getNumber(). * * @return numeric wire representation */ - public int getAvatarTypeValue() { - return avatarType; + public int getExtraLineupTypeValue() { + return extraLineupType; } /** * Sets the value of the internal enum store. This does not * do any validity checks, so be sure to use appropriate value - * constants from {@link AvatarTypeOuterClass.AvatarType}. Setting an invalid value - * can cause {@link JoinLineupCsReq#getAvatarType()} to return null + * constants from {@link ExtraLineupTypeOuterClass.ExtraLineupType}. Setting an invalid value + * can cause {@link JoinLineupCsReq#getExtraLineupType()} to return null * * @param value the numeric wire value to set * @return this */ - public JoinLineupCsReq setAvatarTypeValue(final int value) { + public JoinLineupCsReq setExtraLineupTypeValue(final int value) { bitField0_ |= 0x00000020; - avatarType = value; + extraLineupType = value; return this; } /** - * optional .AvatarType avatar_type = 15; - * @param value the avatarType to set + * optional .ExtraLineupType extra_lineup_type = 6; + * @param value the extraLineupType to set * @return this */ - public JoinLineupCsReq setAvatarType(final AvatarTypeOuterClass.AvatarType value) { + public JoinLineupCsReq setExtraLineupType( + final ExtraLineupTypeOuterClass.ExtraLineupType value) { bitField0_ |= 0x00000020; - avatarType = value.getNumber(); + extraLineupType = value.getNumber(); return this; } /** - * optional bool is_virtual = 7; + * optional bool is_virtual = 9; * @return whether the isVirtual field is set */ public boolean hasIsVirtual() { @@ -345,7 +345,7 @@ public boolean hasIsVirtual() { } /** - * optional bool is_virtual = 7; + * optional bool is_virtual = 9; * @return this */ public JoinLineupCsReq clearIsVirtual() { @@ -355,7 +355,7 @@ public JoinLineupCsReq clearIsVirtual() { } /** - * optional bool is_virtual = 7; + * optional bool is_virtual = 9; * @return the isVirtual */ public boolean getIsVirtual() { @@ -363,7 +363,7 @@ public boolean getIsVirtual() { } /** - * optional bool is_virtual = 7; + * optional bool is_virtual = 9; * @param value the isVirtual to set * @return this */ @@ -382,8 +382,8 @@ public JoinLineupCsReq copyFrom(final JoinLineupCsReq other) { index = other.index; slot = other.slot; baseAvatarId = other.baseAvatarId; - extraLineupType = other.extraLineupType; avatarType = other.avatarType; + extraLineupType = other.extraLineupType; isVirtual = other.isVirtual; } return this; @@ -407,12 +407,12 @@ public JoinLineupCsReq mergeFrom(final JoinLineupCsReq other) { if (other.hasBaseAvatarId()) { setBaseAvatarId(other.baseAvatarId); } - if (other.hasExtraLineupType()) { - setExtraLineupTypeValue(other.extraLineupType); - } if (other.hasAvatarType()) { setAvatarTypeValue(other.avatarType); } + if (other.hasExtraLineupType()) { + setExtraLineupTypeValue(other.extraLineupType); + } if (other.hasIsVirtual()) { setIsVirtual(other.isVirtual); } @@ -430,8 +430,8 @@ public JoinLineupCsReq clear() { index = 0; slot = 0; baseAvatarId = 0; - extraLineupType = 0; avatarType = 0; + extraLineupType = 0; isVirtual = false; return this; } @@ -460,39 +460,39 @@ public boolean equals(Object o) { && (!hasIndex() || index == other.index) && (!hasSlot() || slot == other.slot) && (!hasBaseAvatarId() || baseAvatarId == other.baseAvatarId) - && (!hasExtraLineupType() || extraLineupType == other.extraLineupType) && (!hasAvatarType() || avatarType == other.avatarType) + && (!hasExtraLineupType() || extraLineupType == other.extraLineupType) && (!hasIsVirtual() || isVirtual == other.isVirtual); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 56); output.writeUInt32NoTag(planeId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 64); output.writeUInt32NoTag(index); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 104); output.writeUInt32NoTag(slot); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 112); output.writeUInt32NoTag(baseAvatarId); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 88); - output.writeEnumNoTag(extraLineupType); + output.writeRawByte((byte) 16); + output.writeEnumNoTag(avatarType); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 120); - output.writeEnumNoTag(avatarType); + output.writeRawByte((byte) 48); + output.writeEnumNoTag(extraLineupType); } if ((bitField0_ & 0x00000040) != 0) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 72); output.writeBoolNoTag(isVirtual); } } @@ -513,10 +513,10 @@ protected int computeSerializedSize() { size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); } if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeEnumSizeNoTag(extraLineupType); + size += 1 + ProtoSink.computeEnumSizeNoTag(avatarType); } if ((bitField0_ & 0x00000020) != 0) { - size += 1 + ProtoSink.computeEnumSizeNoTag(avatarType); + size += 1 + ProtoSink.computeEnumSizeNoTag(extraLineupType); } if ((bitField0_ & 0x00000040) != 0) { size += 2; @@ -531,67 +531,67 @@ public JoinLineupCsReq mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 40: { + case 56: { // planeId planeId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 48) { + if (tag != 64) { break; } } - case 48: { + case 64: { // index index = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 96) { + if (tag != 104) { break; } } - case 96: { + case 104: { // slot slot = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 104) { + if (tag != 112) { break; } } - case 104: { + case 112: { // baseAvatarId baseAvatarId = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 88) { + if (tag != 16) { break; } } - case 88: { - // extraLineupType + case 16: { + // avatarType final int value = input.readInt32(); - if (ExtraLineupTypeOuterClass.ExtraLineupType.forNumber(value) != null) { - extraLineupType = value; + if (AvatarTypeOuterClass.AvatarType.forNumber(value) != null) { + avatarType = value; bitField0_ |= 0x00000010; } tag = input.readTag(); - if (tag != 120) { + if (tag != 48) { break; } } - case 120: { - // avatarType + case 48: { + // extraLineupType final int value = input.readInt32(); - if (AvatarTypeOuterClass.AvatarType.forNumber(value) != null) { - avatarType = value; + if (ExtraLineupTypeOuterClass.ExtraLineupType.forNumber(value) != null) { + extraLineupType = value; bitField0_ |= 0x00000020; } tag = input.readTag(); - if (tag != 56) { + if (tag != 72) { break; } } - case 56: { + case 72: { // isVirtual isVirtual = input.readBool(); bitField0_ |= 0x00000040; @@ -630,10 +630,10 @@ public void writeTo(final JsonSink output) throws IOException { output.writeUInt32(FieldNames.baseAvatarId, baseAvatarId); } if ((bitField0_ & 0x00000010) != 0) { - output.writeEnum(FieldNames.extraLineupType, extraLineupType, ExtraLineupTypeOuterClass.ExtraLineupType.converter()); + output.writeEnum(FieldNames.avatarType, avatarType, AvatarTypeOuterClass.AvatarType.converter()); } if ((bitField0_ & 0x00000020) != 0) { - output.writeEnum(FieldNames.avatarType, avatarType, AvatarTypeOuterClass.AvatarType.converter()); + output.writeEnum(FieldNames.extraLineupType, extraLineupType, ExtraLineupTypeOuterClass.ExtraLineupType.converter()); } if ((bitField0_ & 0x00000040) != 0) { output.writeBool(FieldNames.isVirtual, isVirtual); @@ -694,13 +694,13 @@ public JoinLineupCsReq mergeFrom(final JsonSource input) throws IOException { } break; } - case -468135527: - case -1144475077: { - if (input.isAtField(FieldNames.extraLineupType)) { + case -403148749: + case 397309536: { + if (input.isAtField(FieldNames.avatarType)) { if (!input.trySkipNullValue()) { - final ExtraLineupTypeOuterClass.ExtraLineupType value = input.readEnum(ExtraLineupTypeOuterClass.ExtraLineupType.converter()); + final AvatarTypeOuterClass.AvatarType value = input.readEnum(AvatarTypeOuterClass.AvatarType.converter()); if (value != null) { - extraLineupType = value.getNumber(); + avatarType = value.getNumber(); bitField0_ |= 0x00000010; } else { input.skipUnknownEnumValue(); @@ -711,13 +711,13 @@ public JoinLineupCsReq mergeFrom(final JsonSource input) throws IOException { } break; } - case -403148749: - case 397309536: { - if (input.isAtField(FieldNames.avatarType)) { + case -468135527: + case -1144475077: { + if (input.isAtField(FieldNames.extraLineupType)) { if (!input.trySkipNullValue()) { - final AvatarTypeOuterClass.AvatarType value = input.readEnum(AvatarTypeOuterClass.AvatarType.converter()); + final ExtraLineupTypeOuterClass.ExtraLineupType value = input.readEnum(ExtraLineupTypeOuterClass.ExtraLineupType.converter()); if (value != null) { - avatarType = value.getNumber(); + extraLineupType = value.getNumber(); bitField0_ |= 0x00000020; } else { input.skipUnknownEnumValue(); @@ -801,10 +801,10 @@ static class FieldNames { static final FieldName baseAvatarId = FieldName.forField("baseAvatarId", "base_avatar_id"); - static final FieldName extraLineupType = FieldName.forField("extraLineupType", "extra_lineup_type"); - static final FieldName avatarType = FieldName.forField("avatarType", "avatar_type"); + static final FieldName extraLineupType = FieldName.forField("extraLineupType", "extra_lineup_type"); + static final FieldName isVirtual = FieldName.forField("isVirtual", "is_virtual"); } } diff --git a/src/generated/main/emu/lunarcore/proto/LineupAvatarOuterClass.java b/src/generated/main/emu/lunarcore/proto/LineupAvatarOuterClass.java index 6095c4c8e..b3235619c 100644 --- a/src/generated/main/emu/lunarcore/proto/LineupAvatarOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/LineupAvatarOuterClass.java @@ -19,32 +19,32 @@ public static final class LineupAvatar extends ProtoMessage implem private static final long serialVersionUID = 0L; /** - * optional uint32 slot = 5; + * optional uint32 slot = 1; */ private int slot; /** - * optional uint32 hp = 6; + * optional uint32 hp = 4; */ private int hp; /** - * optional uint32 id = 9; + * optional uint32 satiety = 9; */ - private int id; + private int satiety; /** - * optional uint32 satiety = 11; + * optional uint32 id = 11; */ - private int satiety; + private int id; /** - * optional .AvatarType avatar_type = 13; + * optional .AvatarType avatar_type = 5; */ private int avatarType; /** - * optional .SpBarInfo sp_bar = 3; + * optional .SpBarInfo sp_bar = 13; */ private final SpBarInfoOuterClass.SpBarInfo spBar = SpBarInfoOuterClass.SpBarInfo.newInstance(); @@ -59,7 +59,7 @@ public static LineupAvatar newInstance() { } /** - * optional uint32 slot = 5; + * optional uint32 slot = 1; * @return whether the slot field is set */ public boolean hasSlot() { @@ -67,7 +67,7 @@ public boolean hasSlot() { } /** - * optional uint32 slot = 5; + * optional uint32 slot = 1; * @return this */ public LineupAvatar clearSlot() { @@ -77,7 +77,7 @@ public LineupAvatar clearSlot() { } /** - * optional uint32 slot = 5; + * optional uint32 slot = 1; * @return the slot */ public int getSlot() { @@ -85,7 +85,7 @@ public int getSlot() { } /** - * optional uint32 slot = 5; + * optional uint32 slot = 1; * @param value the slot to set * @return this */ @@ -96,7 +96,7 @@ public LineupAvatar setSlot(final int value) { } /** - * optional uint32 hp = 6; + * optional uint32 hp = 4; * @return whether the hp field is set */ public boolean hasHp() { @@ -104,7 +104,7 @@ public boolean hasHp() { } /** - * optional uint32 hp = 6; + * optional uint32 hp = 4; * @return this */ public LineupAvatar clearHp() { @@ -114,7 +114,7 @@ public LineupAvatar clearHp() { } /** - * optional uint32 hp = 6; + * optional uint32 hp = 4; * @return the hp */ public int getHp() { @@ -122,7 +122,7 @@ public int getHp() { } /** - * optional uint32 hp = 6; + * optional uint32 hp = 4; * @param value the hp to set * @return this */ @@ -133,81 +133,81 @@ public LineupAvatar setHp(final int value) { } /** - * optional uint32 id = 9; - * @return whether the id field is set + * optional uint32 satiety = 9; + * @return whether the satiety field is set */ - public boolean hasId() { + public boolean hasSatiety() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 id = 9; + * optional uint32 satiety = 9; * @return this */ - public LineupAvatar clearId() { + public LineupAvatar clearSatiety() { bitField0_ &= ~0x00000004; - id = 0; + satiety = 0; return this; } /** - * optional uint32 id = 9; - * @return the id + * optional uint32 satiety = 9; + * @return the satiety */ - public int getId() { - return id; + public int getSatiety() { + return satiety; } /** - * optional uint32 id = 9; - * @param value the id to set + * optional uint32 satiety = 9; + * @param value the satiety to set * @return this */ - public LineupAvatar setId(final int value) { + public LineupAvatar setSatiety(final int value) { bitField0_ |= 0x00000004; - id = value; + satiety = value; return this; } /** - * optional uint32 satiety = 11; - * @return whether the satiety field is set + * optional uint32 id = 11; + * @return whether the id field is set */ - public boolean hasSatiety() { + public boolean hasId() { return (bitField0_ & 0x00000008) != 0; } /** - * optional uint32 satiety = 11; + * optional uint32 id = 11; * @return this */ - public LineupAvatar clearSatiety() { + public LineupAvatar clearId() { bitField0_ &= ~0x00000008; - satiety = 0; + id = 0; return this; } /** - * optional uint32 satiety = 11; - * @return the satiety + * optional uint32 id = 11; + * @return the id */ - public int getSatiety() { - return satiety; + public int getId() { + return id; } /** - * optional uint32 satiety = 11; - * @param value the satiety to set + * optional uint32 id = 11; + * @param value the id to set * @return this */ - public LineupAvatar setSatiety(final int value) { + public LineupAvatar setId(final int value) { bitField0_ |= 0x00000008; - satiety = value; + id = value; return this; } /** - * optional .AvatarType avatar_type = 13; + * optional .AvatarType avatar_type = 5; * @return whether the avatarType field is set */ public boolean hasAvatarType() { @@ -215,7 +215,7 @@ public boolean hasAvatarType() { } /** - * optional .AvatarType avatar_type = 13; + * optional .AvatarType avatar_type = 5; * @return this */ public LineupAvatar clearAvatarType() { @@ -225,7 +225,7 @@ public LineupAvatar clearAvatarType() { } /** - * optional .AvatarType avatar_type = 13; + * optional .AvatarType avatar_type = 5; * @return the avatarType */ public AvatarTypeOuterClass.AvatarType getAvatarType() { @@ -258,7 +258,7 @@ public LineupAvatar setAvatarTypeValue(final int value) { } /** - * optional .AvatarType avatar_type = 13; + * optional .AvatarType avatar_type = 5; * @param value the avatarType to set * @return this */ @@ -269,7 +269,7 @@ public LineupAvatar setAvatarType(final AvatarTypeOuterClass.AvatarType value) { } /** - * optional .SpBarInfo sp_bar = 3; + * optional .SpBarInfo sp_bar = 13; * @return whether the spBar field is set */ public boolean hasSpBar() { @@ -277,7 +277,7 @@ public boolean hasSpBar() { } /** - * optional .SpBarInfo sp_bar = 3; + * optional .SpBarInfo sp_bar = 13; * @return this */ public LineupAvatar clearSpBar() { @@ -287,7 +287,7 @@ public LineupAvatar clearSpBar() { } /** - * optional .SpBarInfo sp_bar = 3; + * optional .SpBarInfo sp_bar = 13; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -301,7 +301,7 @@ public SpBarInfoOuterClass.SpBarInfo getSpBar() { } /** - * optional .SpBarInfo sp_bar = 3; + * optional .SpBarInfo sp_bar = 13; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -315,7 +315,7 @@ public SpBarInfoOuterClass.SpBarInfo getMutableSpBar() { } /** - * optional .SpBarInfo sp_bar = 3; + * optional .SpBarInfo sp_bar = 13; * @param value the spBar to set * @return this */ @@ -332,8 +332,8 @@ public LineupAvatar copyFrom(final LineupAvatar other) { bitField0_ = other.bitField0_; slot = other.slot; hp = other.hp; - id = other.id; satiety = other.satiety; + id = other.id; avatarType = other.avatarType; spBar.copyFrom(other.spBar); } @@ -352,12 +352,12 @@ public LineupAvatar mergeFrom(final LineupAvatar other) { if (other.hasHp()) { setHp(other.hp); } - if (other.hasId()) { - setId(other.id); - } if (other.hasSatiety()) { setSatiety(other.satiety); } + if (other.hasId()) { + setId(other.id); + } if (other.hasAvatarType()) { setAvatarTypeValue(other.avatarType); } @@ -376,8 +376,8 @@ public LineupAvatar clear() { bitField0_ = 0; slot = 0; hp = 0; - id = 0; satiety = 0; + id = 0; avatarType = 0; spBar.clear(); return this; @@ -406,8 +406,8 @@ public boolean equals(Object o) { return bitField0_ == other.bitField0_ && (!hasSlot() || slot == other.slot) && (!hasHp() || hp == other.hp) - && (!hasId() || id == other.id) && (!hasSatiety() || satiety == other.satiety) + && (!hasId() || id == other.id) && (!hasAvatarType() || avatarType == other.avatarType) && (!hasSpBar() || spBar.equals(other.spBar)); } @@ -415,27 +415,27 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 8); output.writeUInt32NoTag(slot); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(hp); } if ((bitField0_ & 0x00000004) != 0) { output.writeRawByte((byte) 72); - output.writeUInt32NoTag(id); + output.writeUInt32NoTag(satiety); } if ((bitField0_ & 0x00000008) != 0) { output.writeRawByte((byte) 88); - output.writeUInt32NoTag(satiety); + output.writeUInt32NoTag(id); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 40); output.writeEnumNoTag(avatarType); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 26); + output.writeRawByte((byte) 106); output.writeMessageNoTag(spBar); } } @@ -450,10 +450,10 @@ protected int computeSerializedSize() { size += 1 + ProtoSink.computeUInt32SizeNoTag(hp); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(id); + size += 1 + ProtoSink.computeUInt32SizeNoTag(satiety); } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(satiety); + size += 1 + ProtoSink.computeUInt32SizeNoTag(id); } if ((bitField0_ & 0x00000010) != 0) { size += 1 + ProtoSink.computeEnumSizeNoTag(avatarType); @@ -471,16 +471,16 @@ public LineupAvatar mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 40: { + case 8: { // slot slot = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 48) { + if (tag != 32) { break; } } - case 48: { + case 32: { // hp hp = input.readUInt32(); bitField0_ |= 0x00000002; @@ -490,8 +490,8 @@ public LineupAvatar mergeFrom(final ProtoSource input) throws IOException { } } case 72: { - // id - id = input.readUInt32(); + // satiety + satiety = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 88) { @@ -499,15 +499,15 @@ public LineupAvatar mergeFrom(final ProtoSource input) throws IOException { } } case 88: { - // satiety - satiety = input.readUInt32(); + // id + id = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 104) { + if (tag != 40) { break; } } - case 104: { + case 40: { // avatarType final int value = input.readInt32(); if (AvatarTypeOuterClass.AvatarType.forNumber(value) != null) { @@ -515,11 +515,11 @@ public LineupAvatar mergeFrom(final ProtoSource input) throws IOException { bitField0_ |= 0x00000010; } tag = input.readTag(); - if (tag != 26) { + if (tag != 106) { break; } } - case 26: { + case 106: { // spBar input.readMessage(spBar); bitField0_ |= 0x00000020; @@ -552,10 +552,10 @@ public void writeTo(final JsonSink output) throws IOException { output.writeUInt32(FieldNames.hp, hp); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.id, id); + output.writeUInt32(FieldNames.satiety, satiety); } if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.satiety, satiety); + output.writeUInt32(FieldNames.id, id); } if ((bitField0_ & 0x00000010) != 0) { output.writeEnum(FieldNames.avatarType, avatarType, AvatarTypeOuterClass.AvatarType.converter()); @@ -595,10 +595,10 @@ public LineupAvatar mergeFrom(final JsonSource input) throws IOException { } break; } - case 3355: { - if (input.isAtField(FieldNames.id)) { + case 1871093127: { + if (input.isAtField(FieldNames.satiety)) { if (!input.trySkipNullValue()) { - id = input.readUInt32(); + satiety = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -606,10 +606,10 @@ public LineupAvatar mergeFrom(final JsonSource input) throws IOException { } break; } - case 1871093127: { - if (input.isAtField(FieldNames.satiety)) { + case 3355: { + if (input.isAtField(FieldNames.id)) { if (!input.trySkipNullValue()) { - satiety = input.readUInt32(); + id = input.readUInt32(); bitField0_ |= 0x00000008; } } else { @@ -702,10 +702,10 @@ static class FieldNames { static final FieldName hp = FieldName.forField("hp"); - static final FieldName id = FieldName.forField("id"); - static final FieldName satiety = FieldName.forField("satiety"); + static final FieldName id = FieldName.forField("id"); + static final FieldName avatarType = FieldName.forField("avatarType", "avatar_type"); static final FieldName spBar = FieldName.forField("spBar", "sp_bar"); diff --git a/src/generated/main/emu/lunarcore/proto/LineupInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/LineupInfoOuterClass.java index 0a11cd0b6..befbeadf8 100644 --- a/src/generated/main/emu/lunarcore/proto/LineupInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/LineupInfoOuterClass.java @@ -21,14 +21,9 @@ public static final class LineupInfo extends ProtoMessage implements private static final long serialVersionUID = 0L; /** - * optional uint32 leader_slot = 2; + * optional uint32 mp = 3; */ - private int leaderSlot; - - /** - * optional uint32 max_mp = 3; - */ - private int maxMp; + private int mp; /** * optional uint32 plane_id = 4; @@ -36,17 +31,22 @@ public static final class LineupInfo extends ProtoMessage implements private int planeId; /** - * optional uint32 mp = 7; + * optional uint32 leader_slot = 5; */ - private int mp; + private int leaderSlot; /** - * optional uint32 index = 13; + * optional uint32 index = 7; */ private int index; /** - * optional .ExtraLineupType extra_lineup_type = 5; + * optional uint32 max_mp = 10; + */ + private int maxMp; + + /** + * optional .ExtraLineupType extra_lineup_type = 15; */ private int extraLineupType; @@ -56,12 +56,12 @@ public static final class LineupInfo extends ProtoMessage implements private boolean isVirtual; /** - * optional string name = 1; + * optional string name = 6; */ private final Utf8String name = Utf8String.newEmptyInstance(); /** - * repeated .LineupAvatar avatar_list = 14; + * repeated .LineupAvatar avatar_list = 2; */ private final RepeatedMessage avatarList = RepeatedMessage.newEmptyInstance(LineupAvatarOuterClass.LineupAvatar.getFactory()); @@ -76,192 +76,192 @@ public static LineupInfo newInstance() { } /** - * optional uint32 leader_slot = 2; - * @return whether the leaderSlot field is set + * optional uint32 mp = 3; + * @return whether the mp field is set */ - public boolean hasLeaderSlot() { + public boolean hasMp() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 leader_slot = 2; + * optional uint32 mp = 3; * @return this */ - public LineupInfo clearLeaderSlot() { + public LineupInfo clearMp() { bitField0_ &= ~0x00000001; - leaderSlot = 0; + mp = 0; return this; } /** - * optional uint32 leader_slot = 2; - * @return the leaderSlot + * optional uint32 mp = 3; + * @return the mp */ - public int getLeaderSlot() { - return leaderSlot; + public int getMp() { + return mp; } /** - * optional uint32 leader_slot = 2; - * @param value the leaderSlot to set + * optional uint32 mp = 3; + * @param value the mp to set * @return this */ - public LineupInfo setLeaderSlot(final int value) { + public LineupInfo setMp(final int value) { bitField0_ |= 0x00000001; - leaderSlot = value; + mp = value; return this; } /** - * optional uint32 max_mp = 3; - * @return whether the maxMp field is set + * optional uint32 plane_id = 4; + * @return whether the planeId field is set */ - public boolean hasMaxMp() { + public boolean hasPlaneId() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 max_mp = 3; + * optional uint32 plane_id = 4; * @return this */ - public LineupInfo clearMaxMp() { + public LineupInfo clearPlaneId() { bitField0_ &= ~0x00000002; - maxMp = 0; + planeId = 0; return this; } /** - * optional uint32 max_mp = 3; - * @return the maxMp + * optional uint32 plane_id = 4; + * @return the planeId */ - public int getMaxMp() { - return maxMp; + public int getPlaneId() { + return planeId; } /** - * optional uint32 max_mp = 3; - * @param value the maxMp to set + * optional uint32 plane_id = 4; + * @param value the planeId to set * @return this */ - public LineupInfo setMaxMp(final int value) { + public LineupInfo setPlaneId(final int value) { bitField0_ |= 0x00000002; - maxMp = value; + planeId = value; return this; } /** - * optional uint32 plane_id = 4; - * @return whether the planeId field is set + * optional uint32 leader_slot = 5; + * @return whether the leaderSlot field is set */ - public boolean hasPlaneId() { + public boolean hasLeaderSlot() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 plane_id = 4; + * optional uint32 leader_slot = 5; * @return this */ - public LineupInfo clearPlaneId() { + public LineupInfo clearLeaderSlot() { bitField0_ &= ~0x00000004; - planeId = 0; + leaderSlot = 0; return this; } /** - * optional uint32 plane_id = 4; - * @return the planeId + * optional uint32 leader_slot = 5; + * @return the leaderSlot */ - public int getPlaneId() { - return planeId; + public int getLeaderSlot() { + return leaderSlot; } /** - * optional uint32 plane_id = 4; - * @param value the planeId to set + * optional uint32 leader_slot = 5; + * @param value the leaderSlot to set * @return this */ - public LineupInfo setPlaneId(final int value) { + public LineupInfo setLeaderSlot(final int value) { bitField0_ |= 0x00000004; - planeId = value; + leaderSlot = value; return this; } /** - * optional uint32 mp = 7; - * @return whether the mp field is set + * optional uint32 index = 7; + * @return whether the index field is set */ - public boolean hasMp() { + public boolean hasIndex() { return (bitField0_ & 0x00000008) != 0; } /** - * optional uint32 mp = 7; + * optional uint32 index = 7; * @return this */ - public LineupInfo clearMp() { + public LineupInfo clearIndex() { bitField0_ &= ~0x00000008; - mp = 0; + index = 0; return this; } /** - * optional uint32 mp = 7; - * @return the mp + * optional uint32 index = 7; + * @return the index */ - public int getMp() { - return mp; + public int getIndex() { + return index; } /** - * optional uint32 mp = 7; - * @param value the mp to set + * optional uint32 index = 7; + * @param value the index to set * @return this */ - public LineupInfo setMp(final int value) { + public LineupInfo setIndex(final int value) { bitField0_ |= 0x00000008; - mp = value; + index = value; return this; } /** - * optional uint32 index = 13; - * @return whether the index field is set + * optional uint32 max_mp = 10; + * @return whether the maxMp field is set */ - public boolean hasIndex() { + public boolean hasMaxMp() { return (bitField0_ & 0x00000010) != 0; } /** - * optional uint32 index = 13; + * optional uint32 max_mp = 10; * @return this */ - public LineupInfo clearIndex() { + public LineupInfo clearMaxMp() { bitField0_ &= ~0x00000010; - index = 0; + maxMp = 0; return this; } /** - * optional uint32 index = 13; - * @return the index + * optional uint32 max_mp = 10; + * @return the maxMp */ - public int getIndex() { - return index; + public int getMaxMp() { + return maxMp; } /** - * optional uint32 index = 13; - * @param value the index to set + * optional uint32 max_mp = 10; + * @param value the maxMp to set * @return this */ - public LineupInfo setIndex(final int value) { + public LineupInfo setMaxMp(final int value) { bitField0_ |= 0x00000010; - index = value; + maxMp = value; return this; } /** - * optional .ExtraLineupType extra_lineup_type = 5; + * optional .ExtraLineupType extra_lineup_type = 15; * @return whether the extraLineupType field is set */ public boolean hasExtraLineupType() { @@ -269,7 +269,7 @@ public boolean hasExtraLineupType() { } /** - * optional .ExtraLineupType extra_lineup_type = 5; + * optional .ExtraLineupType extra_lineup_type = 15; * @return this */ public LineupInfo clearExtraLineupType() { @@ -279,7 +279,7 @@ public LineupInfo clearExtraLineupType() { } /** - * optional .ExtraLineupType extra_lineup_type = 5; + * optional .ExtraLineupType extra_lineup_type = 15; * @return the extraLineupType */ public ExtraLineupTypeOuterClass.ExtraLineupType getExtraLineupType() { @@ -312,7 +312,7 @@ public LineupInfo setExtraLineupTypeValue(final int value) { } /** - * optional .ExtraLineupType extra_lineup_type = 5; + * optional .ExtraLineupType extra_lineup_type = 15; * @param value the extraLineupType to set * @return this */ @@ -360,7 +360,7 @@ public LineupInfo setIsVirtual(final boolean value) { } /** - * optional string name = 1; + * optional string name = 6; * @return whether the name field is set */ public boolean hasName() { @@ -368,7 +368,7 @@ public boolean hasName() { } /** - * optional string name = 1; + * optional string name = 6; * @return this */ public LineupInfo clearName() { @@ -378,7 +378,7 @@ public LineupInfo clearName() { } /** - * optional string name = 1; + * optional string name = 6; * @return the name */ public String getName() { @@ -386,7 +386,7 @@ public String getName() { } /** - * optional string name = 1; + * optional string name = 6; * @return internal {@code Utf8String} representation of name for reading */ public Utf8String getNameBytes() { @@ -394,7 +394,7 @@ public Utf8String getNameBytes() { } /** - * optional string name = 1; + * optional string name = 6; * @return internal {@code Utf8String} representation of name for modifications */ public Utf8String getMutableNameBytes() { @@ -403,7 +403,7 @@ public Utf8String getMutableNameBytes() { } /** - * optional string name = 1; + * optional string name = 6; * @param value the name to set * @return this */ @@ -414,7 +414,7 @@ public LineupInfo setName(final CharSequence value) { } /** - * optional string name = 1; + * optional string name = 6; * @param value the name to set * @return this */ @@ -425,7 +425,7 @@ public LineupInfo setName(final Utf8String value) { } /** - * repeated .LineupAvatar avatar_list = 14; + * repeated .LineupAvatar avatar_list = 2; * @return whether the avatarList field is set */ public boolean hasAvatarList() { @@ -433,7 +433,7 @@ public boolean hasAvatarList() { } /** - * repeated .LineupAvatar avatar_list = 14; + * repeated .LineupAvatar avatar_list = 2; * @return this */ public LineupInfo clearAvatarList() { @@ -443,7 +443,7 @@ public LineupInfo clearAvatarList() { } /** - * repeated .LineupAvatar avatar_list = 14; + * repeated .LineupAvatar avatar_list = 2; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -457,7 +457,7 @@ public RepeatedMessage getAvatarList() { } /** - * repeated .LineupAvatar avatar_list = 14; + * repeated .LineupAvatar avatar_list = 2; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -471,7 +471,7 @@ public RepeatedMessage getMutableAvatarList } /** - * repeated .LineupAvatar avatar_list = 14; + * repeated .LineupAvatar avatar_list = 2; * @param value the avatarList to add * @return this */ @@ -482,7 +482,7 @@ public LineupInfo addAvatarList(final LineupAvatarOuterClass.LineupAvatar value) } /** - * repeated .LineupAvatar avatar_list = 14; + * repeated .LineupAvatar avatar_list = 2; * @param values the avatarList to add * @return this */ @@ -497,11 +497,11 @@ public LineupInfo copyFrom(final LineupInfo other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - leaderSlot = other.leaderSlot; - maxMp = other.maxMp; - planeId = other.planeId; mp = other.mp; + planeId = other.planeId; + leaderSlot = other.leaderSlot; index = other.index; + maxMp = other.maxMp; extraLineupType = other.extraLineupType; isVirtual = other.isVirtual; name.copyFrom(other.name); @@ -516,21 +516,21 @@ public LineupInfo mergeFrom(final LineupInfo other) { return this; } cachedSize = -1; - if (other.hasLeaderSlot()) { - setLeaderSlot(other.leaderSlot); - } - if (other.hasMaxMp()) { - setMaxMp(other.maxMp); + if (other.hasMp()) { + setMp(other.mp); } if (other.hasPlaneId()) { setPlaneId(other.planeId); } - if (other.hasMp()) { - setMp(other.mp); + if (other.hasLeaderSlot()) { + setLeaderSlot(other.leaderSlot); } if (other.hasIndex()) { setIndex(other.index); } + if (other.hasMaxMp()) { + setMaxMp(other.maxMp); + } if (other.hasExtraLineupType()) { setExtraLineupTypeValue(other.extraLineupType); } @@ -553,11 +553,11 @@ public LineupInfo clear() { } cachedSize = -1; bitField0_ = 0; - leaderSlot = 0; - maxMp = 0; - planeId = 0; mp = 0; + planeId = 0; + leaderSlot = 0; index = 0; + maxMp = 0; extraLineupType = 0; isVirtual = false; name.clear(); @@ -587,11 +587,11 @@ public boolean equals(Object o) { } LineupInfo other = (LineupInfo) o; return bitField0_ == other.bitField0_ - && (!hasLeaderSlot() || leaderSlot == other.leaderSlot) - && (!hasMaxMp() || maxMp == other.maxMp) - && (!hasPlaneId() || planeId == other.planeId) && (!hasMp() || mp == other.mp) + && (!hasPlaneId() || planeId == other.planeId) + && (!hasLeaderSlot() || leaderSlot == other.leaderSlot) && (!hasIndex() || index == other.index) + && (!hasMaxMp() || maxMp == other.maxMp) && (!hasExtraLineupType() || extraLineupType == other.extraLineupType) && (!hasIsVirtual() || isVirtual == other.isVirtual) && (!hasName() || name.equals(other.name)) @@ -601,27 +601,27 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(leaderSlot); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 24); - output.writeUInt32NoTag(maxMp); + output.writeUInt32NoTag(mp); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 32); output.writeUInt32NoTag(planeId); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(leaderSlot); + } if ((bitField0_ & 0x00000008) != 0) { output.writeRawByte((byte) 56); - output.writeUInt32NoTag(mp); + output.writeUInt32NoTag(index); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 104); - output.writeUInt32NoTag(index); + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(maxMp); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 120); output.writeEnumNoTag(extraLineupType); } if ((bitField0_ & 0x00000040) != 0) { @@ -629,12 +629,12 @@ public void writeTo(final ProtoSink output) throws IOException { output.writeBoolNoTag(isVirtual); } if ((bitField0_ & 0x00000080) != 0) { - output.writeRawByte((byte) 10); + output.writeRawByte((byte) 50); output.writeStringNoTag(name); } if ((bitField0_ & 0x00000100) != 0) { for (int i = 0; i < avatarList.length(); i++) { - output.writeRawByte((byte) 114); + output.writeRawByte((byte) 18); output.writeMessageNoTag(avatarList.get(i)); } } @@ -644,19 +644,19 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(leaderSlot); + size += 1 + ProtoSink.computeUInt32SizeNoTag(mp); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(maxMp); + size += 1 + ProtoSink.computeUInt32SizeNoTag(planeId); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(planeId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(leaderSlot); } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(mp); + size += 1 + ProtoSink.computeUInt32SizeNoTag(index); } if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(index); + size += 1 + ProtoSink.computeUInt32SizeNoTag(maxMp); } if ((bitField0_ & 0x00000020) != 0) { size += 1 + ProtoSink.computeEnumSizeNoTag(extraLineupType); @@ -680,27 +680,27 @@ public LineupInfo mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { - // leaderSlot - leaderSlot = input.readUInt32(); + case 24: { + // mp + mp = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 24) { + if (tag != 32) { break; } } - case 24: { - // maxMp - maxMp = input.readUInt32(); + case 32: { + // planeId + planeId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 32) { + if (tag != 40) { break; } } - case 32: { - // planeId - planeId = input.readUInt32(); + case 40: { + // leaderSlot + leaderSlot = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 56) { @@ -708,24 +708,24 @@ public LineupInfo mergeFrom(final ProtoSource input) throws IOException { } } case 56: { - // mp - mp = input.readUInt32(); + // index + index = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 104) { + if (tag != 80) { break; } } - case 104: { - // index - index = input.readUInt32(); + case 80: { + // maxMp + maxMp = input.readUInt32(); bitField0_ |= 0x00000010; tag = input.readTag(); - if (tag != 40) { + if (tag != 120) { break; } } - case 40: { + case 120: { // extraLineupType final int value = input.readInt32(); if (ExtraLineupTypeOuterClass.ExtraLineupType.forNumber(value) != null) { @@ -742,20 +742,20 @@ public LineupInfo mergeFrom(final ProtoSource input) throws IOException { isVirtual = input.readBool(); bitField0_ |= 0x00000040; tag = input.readTag(); - if (tag != 10) { + if (tag != 50) { break; } } - case 10: { + case 50: { // name input.readString(name); bitField0_ |= 0x00000080; tag = input.readTag(); - if (tag != 114) { + if (tag != 18) { break; } } - case 114: { + case 18: { // avatarList tag = input.readRepeatedMessage(avatarList, tag); bitField0_ |= 0x00000100; @@ -781,19 +781,19 @@ public LineupInfo mergeFrom(final ProtoSource input) throws IOException { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.leaderSlot, leaderSlot); + output.writeUInt32(FieldNames.mp, mp); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.maxMp, maxMp); + output.writeUInt32(FieldNames.planeId, planeId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.planeId, planeId); + output.writeUInt32(FieldNames.leaderSlot, leaderSlot); } if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.mp, mp); + output.writeUInt32(FieldNames.index, index); } if ((bitField0_ & 0x00000010) != 0) { - output.writeUInt32(FieldNames.index, index); + output.writeUInt32(FieldNames.maxMp, maxMp); } if ((bitField0_ & 0x00000020) != 0) { output.writeEnum(FieldNames.extraLineupType, extraLineupType, ExtraLineupTypeOuterClass.ExtraLineupType.converter()); @@ -817,11 +817,10 @@ public LineupInfo mergeFrom(final JsonSource input) throws IOException { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1191442087: - case -1708713100: { - if (input.isAtField(FieldNames.leaderSlot)) { + case 3491: { + if (input.isAtField(FieldNames.mp)) { if (!input.trySkipNullValue()) { - leaderSlot = input.readUInt32(); + mp = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -829,11 +828,11 @@ public LineupInfo mergeFrom(final JsonSource input) throws IOException { } break; } - case 103671335: - case -1081138594: { - if (input.isAtField(FieldNames.maxMp)) { + case -493896553: + case 1869097438: { + if (input.isAtField(FieldNames.planeId)) { if (!input.trySkipNullValue()) { - maxMp = input.readUInt32(); + planeId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -841,11 +840,11 @@ public LineupInfo mergeFrom(final JsonSource input) throws IOException { } break; } - case -493896553: - case 1869097438: { - if (input.isAtField(FieldNames.planeId)) { + case 1191442087: + case -1708713100: { + if (input.isAtField(FieldNames.leaderSlot)) { if (!input.trySkipNullValue()) { - planeId = input.readUInt32(); + leaderSlot = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -853,10 +852,10 @@ public LineupInfo mergeFrom(final JsonSource input) throws IOException { } break; } - case 3491: { - if (input.isAtField(FieldNames.mp)) { + case 100346066: { + if (input.isAtField(FieldNames.index)) { if (!input.trySkipNullValue()) { - mp = input.readUInt32(); + index = input.readUInt32(); bitField0_ |= 0x00000008; } } else { @@ -864,10 +863,11 @@ public LineupInfo mergeFrom(final JsonSource input) throws IOException { } break; } - case 100346066: { - if (input.isAtField(FieldNames.index)) { + case 103671335: + case -1081138594: { + if (input.isAtField(FieldNames.maxMp)) { if (!input.trySkipNullValue()) { - index = input.readUInt32(); + maxMp = input.readUInt32(); bitField0_ |= 0x00000010; } } else { @@ -979,16 +979,16 @@ public LineupInfo create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName leaderSlot = FieldName.forField("leaderSlot", "leader_slot"); - - static final FieldName maxMp = FieldName.forField("maxMp", "max_mp"); + static final FieldName mp = FieldName.forField("mp"); static final FieldName planeId = FieldName.forField("planeId", "plane_id"); - static final FieldName mp = FieldName.forField("mp"); + static final FieldName leaderSlot = FieldName.forField("leaderSlot", "leader_slot"); static final FieldName index = FieldName.forField("index"); + static final FieldName maxMp = FieldName.forField("maxMp", "max_mp"); + static final FieldName extraLineupType = FieldName.forField("extraLineupType", "extra_lineup_type"); static final FieldName isVirtual = FieldName.forField("isVirtual", "is_virtual"); diff --git a/src/generated/main/emu/lunarcore/proto/LineupSlotDataOuterClass.java b/src/generated/main/emu/lunarcore/proto/LineupSlotDataOuterClass.java index 3e0f3f48c..fa553b30a 100644 --- a/src/generated/main/emu/lunarcore/proto/LineupSlotDataOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/LineupSlotDataOuterClass.java @@ -19,17 +19,17 @@ public static final class LineupSlotData extends ProtoMessage im private static final long serialVersionUID = 0L; /** - * optional uint32 slot = 6; + * optional uint32 id = 3; */ - private int slot; + private int id; /** - * optional uint32 id = 13; + * optional uint32 slot = 8; */ - private int id; + private int slot; /** - * optional .AvatarType avatar_type = 15; + * optional .AvatarType avatar_type = 2; */ private int avatarType; @@ -44,81 +44,81 @@ public static LineupSlotData newInstance() { } /** - * optional uint32 slot = 6; - * @return whether the slot field is set + * optional uint32 id = 3; + * @return whether the id field is set */ - public boolean hasSlot() { + public boolean hasId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 slot = 6; + * optional uint32 id = 3; * @return this */ - public LineupSlotData clearSlot() { + public LineupSlotData clearId() { bitField0_ &= ~0x00000001; - slot = 0; + id = 0; return this; } /** - * optional uint32 slot = 6; - * @return the slot + * optional uint32 id = 3; + * @return the id */ - public int getSlot() { - return slot; + public int getId() { + return id; } /** - * optional uint32 slot = 6; - * @param value the slot to set + * optional uint32 id = 3; + * @param value the id to set * @return this */ - public LineupSlotData setSlot(final int value) { + public LineupSlotData setId(final int value) { bitField0_ |= 0x00000001; - slot = value; + id = value; return this; } /** - * optional uint32 id = 13; - * @return whether the id field is set + * optional uint32 slot = 8; + * @return whether the slot field is set */ - public boolean hasId() { + public boolean hasSlot() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 id = 13; + * optional uint32 slot = 8; * @return this */ - public LineupSlotData clearId() { + public LineupSlotData clearSlot() { bitField0_ &= ~0x00000002; - id = 0; + slot = 0; return this; } /** - * optional uint32 id = 13; - * @return the id + * optional uint32 slot = 8; + * @return the slot */ - public int getId() { - return id; + public int getSlot() { + return slot; } /** - * optional uint32 id = 13; - * @param value the id to set + * optional uint32 slot = 8; + * @param value the slot to set * @return this */ - public LineupSlotData setId(final int value) { + public LineupSlotData setSlot(final int value) { bitField0_ |= 0x00000002; - id = value; + slot = value; return this; } /** - * optional .AvatarType avatar_type = 15; + * optional .AvatarType avatar_type = 2; * @return whether the avatarType field is set */ public boolean hasAvatarType() { @@ -126,7 +126,7 @@ public boolean hasAvatarType() { } /** - * optional .AvatarType avatar_type = 15; + * optional .AvatarType avatar_type = 2; * @return this */ public LineupSlotData clearAvatarType() { @@ -136,7 +136,7 @@ public LineupSlotData clearAvatarType() { } /** - * optional .AvatarType avatar_type = 15; + * optional .AvatarType avatar_type = 2; * @return the avatarType */ public AvatarTypeOuterClass.AvatarType getAvatarType() { @@ -169,7 +169,7 @@ public LineupSlotData setAvatarTypeValue(final int value) { } /** - * optional .AvatarType avatar_type = 15; + * optional .AvatarType avatar_type = 2; * @param value the avatarType to set * @return this */ @@ -184,8 +184,8 @@ public LineupSlotData copyFrom(final LineupSlotData other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - slot = other.slot; id = other.id; + slot = other.slot; avatarType = other.avatarType; } return this; @@ -197,12 +197,12 @@ public LineupSlotData mergeFrom(final LineupSlotData other) { return this; } cachedSize = -1; - if (other.hasSlot()) { - setSlot(other.slot); - } if (other.hasId()) { setId(other.id); } + if (other.hasSlot()) { + setSlot(other.slot); + } if (other.hasAvatarType()) { setAvatarTypeValue(other.avatarType); } @@ -216,8 +216,8 @@ public LineupSlotData clear() { } cachedSize = -1; bitField0_ = 0; - slot = 0; id = 0; + slot = 0; avatarType = 0; return this; } @@ -242,23 +242,23 @@ public boolean equals(Object o) { } LineupSlotData other = (LineupSlotData) o; return bitField0_ == other.bitField0_ - && (!hasSlot() || slot == other.slot) && (!hasId() || id == other.id) + && (!hasSlot() || slot == other.slot) && (!hasAvatarType() || avatarType == other.avatarType); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 48); - output.writeUInt32NoTag(slot); + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(id); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 104); - output.writeUInt32NoTag(id); + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(slot); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 16); output.writeEnumNoTag(avatarType); } } @@ -267,10 +267,10 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(slot); + size += 1 + ProtoSink.computeUInt32SizeNoTag(id); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(id); + size += 1 + ProtoSink.computeUInt32SizeNoTag(slot); } if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeEnumSizeNoTag(avatarType); @@ -285,25 +285,25 @@ public LineupSlotData mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 48: { - // slot - slot = input.readUInt32(); + case 24: { + // id + id = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 104) { + if (tag != 64) { break; } } - case 104: { - // id - id = input.readUInt32(); + case 64: { + // slot + slot = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 120) { + if (tag != 16) { break; } } - case 120: { + case 16: { // avatarType final int value = input.readInt32(); if (AvatarTypeOuterClass.AvatarType.forNumber(value) != null) { @@ -333,10 +333,10 @@ public LineupSlotData mergeFrom(final ProtoSource input) throws IOException { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.slot, slot); + output.writeUInt32(FieldNames.id, id); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.id, id); + output.writeUInt32(FieldNames.slot, slot); } if ((bitField0_ & 0x00000004) != 0) { output.writeEnum(FieldNames.avatarType, avatarType, AvatarTypeOuterClass.AvatarType.converter()); @@ -351,10 +351,10 @@ public LineupSlotData mergeFrom(final JsonSource input) throws IOException { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 3533310: { - if (input.isAtField(FieldNames.slot)) { + case 3355: { + if (input.isAtField(FieldNames.id)) { if (!input.trySkipNullValue()) { - slot = input.readUInt32(); + id = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -362,10 +362,10 @@ public LineupSlotData mergeFrom(final JsonSource input) throws IOException { } break; } - case 3355: { - if (input.isAtField(FieldNames.id)) { + case 3533310: { + if (input.isAtField(FieldNames.slot)) { if (!input.trySkipNullValue()) { - id = input.readUInt32(); + slot = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -443,10 +443,10 @@ public LineupSlotData create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName slot = FieldName.forField("slot"); - static final FieldName id = FieldName.forField("id"); + static final FieldName slot = FieldName.forField("slot"); + static final FieldName avatarType = FieldName.forField("avatarType", "avatar_type"); } } diff --git a/src/generated/main/emu/lunarcore/proto/LockEquipmentCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/LockEquipmentCsReqOuterClass.java index 4ef0b07ff..8d8519b4e 100644 --- a/src/generated/main/emu/lunarcore/proto/LockEquipmentCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/LockEquipmentCsReqOuterClass.java @@ -19,12 +19,12 @@ public static final class LockEquipmentCsReq extends ProtoMessageoptional uint32 equipment_unique_id = 6; + * optional uint32 equipment_unique_id = 15; */ private int equipmentUniqueId; /** - * optional bool is_protected = 7; + * optional bool is_protected = 8; */ private boolean isProtected; @@ -39,7 +39,7 @@ public static LockEquipmentCsReq newInstance() { } /** - * optional uint32 equipment_unique_id = 6; + * optional uint32 equipment_unique_id = 15; * @return whether the equipmentUniqueId field is set */ public boolean hasEquipmentUniqueId() { @@ -47,7 +47,7 @@ public boolean hasEquipmentUniqueId() { } /** - * optional uint32 equipment_unique_id = 6; + * optional uint32 equipment_unique_id = 15; * @return this */ public LockEquipmentCsReq clearEquipmentUniqueId() { @@ -57,7 +57,7 @@ public LockEquipmentCsReq clearEquipmentUniqueId() { } /** - * optional uint32 equipment_unique_id = 6; + * optional uint32 equipment_unique_id = 15; * @return the equipmentUniqueId */ public int getEquipmentUniqueId() { @@ -65,7 +65,7 @@ public int getEquipmentUniqueId() { } /** - * optional uint32 equipment_unique_id = 6; + * optional uint32 equipment_unique_id = 15; * @param value the equipmentUniqueId to set * @return this */ @@ -76,7 +76,7 @@ public LockEquipmentCsReq setEquipmentUniqueId(final int value) { } /** - * optional bool is_protected = 7; + * optional bool is_protected = 8; * @return whether the isProtected field is set */ public boolean hasIsProtected() { @@ -84,7 +84,7 @@ public boolean hasIsProtected() { } /** - * optional bool is_protected = 7; + * optional bool is_protected = 8; * @return this */ public LockEquipmentCsReq clearIsProtected() { @@ -94,7 +94,7 @@ public LockEquipmentCsReq clearIsProtected() { } /** - * optional bool is_protected = 7; + * optional bool is_protected = 8; * @return the isProtected */ public boolean getIsProtected() { @@ -102,7 +102,7 @@ public boolean getIsProtected() { } /** - * optional bool is_protected = 7; + * optional bool is_protected = 8; * @param value the isProtected to set * @return this */ @@ -177,11 +177,11 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 120); output.writeUInt32NoTag(equipmentUniqueId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 64); output.writeBoolNoTag(isProtected); } } @@ -205,16 +205,16 @@ public LockEquipmentCsReq mergeFrom(final ProtoSource input) throws IOException int tag = input.readTag(); while (true) { switch (tag) { - case 48: { + case 120: { // equipmentUniqueId equipmentUniqueId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 56) { + if (tag != 64) { break; } } - case 56: { + case 64: { // isProtected isProtected = input.readBool(); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/LockEquipmentScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/LockEquipmentScRspOuterClass.java index 3d92e337c..da7397503 100644 --- a/src/generated/main/emu/lunarcore/proto/LockEquipmentScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/LockEquipmentScRspOuterClass.java @@ -19,12 +19,12 @@ public static final class LockEquipmentScRsp extends ProtoMessageoptional uint32 retcode = 8; + * optional uint32 retcode = 6; */ private int retcode; /** - * optional uint32 equipment_unique_id = 15; + * optional uint32 equipment_unique_id = 13; */ private int equipmentUniqueId; @@ -39,7 +39,7 @@ public static LockEquipmentScRsp newInstance() { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 6; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -47,7 +47,7 @@ public boolean hasRetcode() { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 6; * @return this */ public LockEquipmentScRsp clearRetcode() { @@ -57,7 +57,7 @@ public LockEquipmentScRsp clearRetcode() { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 6; * @return the retcode */ public int getRetcode() { @@ -65,7 +65,7 @@ public int getRetcode() { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 6; * @param value the retcode to set * @return this */ @@ -76,7 +76,7 @@ public LockEquipmentScRsp setRetcode(final int value) { } /** - * optional uint32 equipment_unique_id = 15; + * optional uint32 equipment_unique_id = 13; * @return whether the equipmentUniqueId field is set */ public boolean hasEquipmentUniqueId() { @@ -84,7 +84,7 @@ public boolean hasEquipmentUniqueId() { } /** - * optional uint32 equipment_unique_id = 15; + * optional uint32 equipment_unique_id = 13; * @return this */ public LockEquipmentScRsp clearEquipmentUniqueId() { @@ -94,7 +94,7 @@ public LockEquipmentScRsp clearEquipmentUniqueId() { } /** - * optional uint32 equipment_unique_id = 15; + * optional uint32 equipment_unique_id = 13; * @return the equipmentUniqueId */ public int getEquipmentUniqueId() { @@ -102,7 +102,7 @@ public int getEquipmentUniqueId() { } /** - * optional uint32 equipment_unique_id = 15; + * optional uint32 equipment_unique_id = 13; * @param value the equipmentUniqueId to set * @return this */ @@ -177,11 +177,11 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 48); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 104); output.writeUInt32NoTag(equipmentUniqueId); } } @@ -205,16 +205,16 @@ public LockEquipmentScRsp mergeFrom(final ProtoSource input) throws IOException int tag = input.readTag(); while (true) { switch (tag) { - case 64: { + case 48: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 120) { + if (tag != 104) { break; } } - case 120: { + case 104: { // equipmentUniqueId equipmentUniqueId = input.readUInt32(); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/LockRelicCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/LockRelicCsReqOuterClass.java index 4c636a770..b64419c24 100644 --- a/src/generated/main/emu/lunarcore/proto/LockRelicCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/LockRelicCsReqOuterClass.java @@ -24,7 +24,7 @@ public static final class LockRelicCsReq extends ProtoMessage im private int relicUniqueId; /** - * optional bool is_protected = 7; + * optional bool is_protected = 1; */ private boolean isProtected; @@ -76,7 +76,7 @@ public LockRelicCsReq setRelicUniqueId(final int value) { } /** - * optional bool is_protected = 7; + * optional bool is_protected = 1; * @return whether the isProtected field is set */ public boolean hasIsProtected() { @@ -84,7 +84,7 @@ public boolean hasIsProtected() { } /** - * optional bool is_protected = 7; + * optional bool is_protected = 1; * @return this */ public LockRelicCsReq clearIsProtected() { @@ -94,7 +94,7 @@ public LockRelicCsReq clearIsProtected() { } /** - * optional bool is_protected = 7; + * optional bool is_protected = 1; * @return the isProtected */ public boolean getIsProtected() { @@ -102,7 +102,7 @@ public boolean getIsProtected() { } /** - * optional bool is_protected = 7; + * optional bool is_protected = 1; * @param value the isProtected to set * @return this */ @@ -181,7 +181,7 @@ public void writeTo(final ProtoSink output) throws IOException { output.writeUInt32NoTag(relicUniqueId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 8); output.writeBoolNoTag(isProtected); } } @@ -210,11 +210,11 @@ public LockRelicCsReq mergeFrom(final ProtoSource input) throws IOException { relicUniqueId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 56) { + if (tag != 8) { break; } } - case 56: { + case 8: { // isProtected isProtected = input.readBool(); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/LockRelicScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/LockRelicScRspOuterClass.java index ac19294a1..db43e7e85 100644 --- a/src/generated/main/emu/lunarcore/proto/LockRelicScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/LockRelicScRspOuterClass.java @@ -19,14 +19,14 @@ public static final class LockRelicScRsp extends ProtoMessage im private static final long serialVersionUID = 0L; /** - * optional uint32 relic_unique_id = 11; + * optional uint32 retcode = 2; */ - private int relicUniqueId; + private int retcode; /** - * optional uint32 retcode = 12; + * optional uint32 relic_unique_id = 3; */ - private int retcode; + private int relicUniqueId; private LockRelicScRsp() { } @@ -39,76 +39,76 @@ public static LockRelicScRsp newInstance() { } /** - * optional uint32 relic_unique_id = 11; - * @return whether the relicUniqueId field is set + * optional uint32 retcode = 2; + * @return whether the retcode field is set */ - public boolean hasRelicUniqueId() { + public boolean hasRetcode() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 relic_unique_id = 11; + * optional uint32 retcode = 2; * @return this */ - public LockRelicScRsp clearRelicUniqueId() { + public LockRelicScRsp clearRetcode() { bitField0_ &= ~0x00000001; - relicUniqueId = 0; + retcode = 0; return this; } /** - * optional uint32 relic_unique_id = 11; - * @return the relicUniqueId + * optional uint32 retcode = 2; + * @return the retcode */ - public int getRelicUniqueId() { - return relicUniqueId; + public int getRetcode() { + return retcode; } /** - * optional uint32 relic_unique_id = 11; - * @param value the relicUniqueId to set + * optional uint32 retcode = 2; + * @param value the retcode to set * @return this */ - public LockRelicScRsp setRelicUniqueId(final int value) { + public LockRelicScRsp setRetcode(final int value) { bitField0_ |= 0x00000001; - relicUniqueId = value; + retcode = value; return this; } /** - * optional uint32 retcode = 12; - * @return whether the retcode field is set + * optional uint32 relic_unique_id = 3; + * @return whether the relicUniqueId field is set */ - public boolean hasRetcode() { + public boolean hasRelicUniqueId() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 retcode = 12; + * optional uint32 relic_unique_id = 3; * @return this */ - public LockRelicScRsp clearRetcode() { + public LockRelicScRsp clearRelicUniqueId() { bitField0_ &= ~0x00000002; - retcode = 0; + relicUniqueId = 0; return this; } /** - * optional uint32 retcode = 12; - * @return the retcode + * optional uint32 relic_unique_id = 3; + * @return the relicUniqueId */ - public int getRetcode() { - return retcode; + public int getRelicUniqueId() { + return relicUniqueId; } /** - * optional uint32 retcode = 12; - * @param value the retcode to set + * optional uint32 relic_unique_id = 3; + * @param value the relicUniqueId to set * @return this */ - public LockRelicScRsp setRetcode(final int value) { + public LockRelicScRsp setRelicUniqueId(final int value) { bitField0_ |= 0x00000002; - retcode = value; + relicUniqueId = value; return this; } @@ -117,8 +117,8 @@ public LockRelicScRsp copyFrom(final LockRelicScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - relicUniqueId = other.relicUniqueId; retcode = other.retcode; + relicUniqueId = other.relicUniqueId; } return this; } @@ -129,12 +129,12 @@ public LockRelicScRsp mergeFrom(final LockRelicScRsp other) { return this; } cachedSize = -1; - if (other.hasRelicUniqueId()) { - setRelicUniqueId(other.relicUniqueId); - } if (other.hasRetcode()) { setRetcode(other.retcode); } + if (other.hasRelicUniqueId()) { + setRelicUniqueId(other.relicUniqueId); + } return this; } @@ -145,8 +145,8 @@ public LockRelicScRsp clear() { } cachedSize = -1; bitField0_ = 0; - relicUniqueId = 0; retcode = 0; + relicUniqueId = 0; return this; } @@ -170,19 +170,19 @@ public boolean equals(Object o) { } LockRelicScRsp other = (LockRelicScRsp) o; return bitField0_ == other.bitField0_ - && (!hasRelicUniqueId() || relicUniqueId == other.relicUniqueId) - && (!hasRetcode() || retcode == other.retcode); + && (!hasRetcode() || retcode == other.retcode) + && (!hasRelicUniqueId() || relicUniqueId == other.relicUniqueId); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 88); - output.writeUInt32NoTag(relicUniqueId); + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 96); - output.writeUInt32NoTag(retcode); + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(relicUniqueId); } } @@ -190,10 +190,10 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(relicUniqueId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(relicUniqueId); } return size; } @@ -205,18 +205,18 @@ public LockRelicScRsp mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 88: { - // relicUniqueId - relicUniqueId = input.readUInt32(); + case 16: { + // retcode + retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 96) { + if (tag != 24) { break; } } - case 96: { - // retcode - retcode = input.readUInt32(); + case 24: { + // relicUniqueId + relicUniqueId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { @@ -241,10 +241,10 @@ public LockRelicScRsp mergeFrom(final ProtoSource input) throws IOException { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.relicUniqueId, relicUniqueId); + output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.relicUniqueId, relicUniqueId); } output.endObject(); } @@ -256,11 +256,10 @@ public LockRelicScRsp mergeFrom(final JsonSource input) throws IOException { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -1966200481: - case 49648253: { - if (input.isAtField(FieldNames.relicUniqueId)) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { - relicUniqueId = input.readUInt32(); + retcode = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -268,10 +267,11 @@ public LockRelicScRsp mergeFrom(final JsonSource input) throws IOException { } break; } - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { + case -1966200481: + case 49648253: { + if (input.isAtField(FieldNames.relicUniqueId)) { if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); + relicUniqueId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -332,9 +332,9 @@ public LockRelicScRsp create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName relicUniqueId = FieldName.forField("relicUniqueId", "relic_unique_id"); - static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName relicUniqueId = FieldName.forField("relicUniqueId", "relic_unique_id"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/MainMissionOuterClass.java b/src/generated/main/emu/lunarcore/proto/MainMissionOuterClass.java deleted file mode 100644 index 1699aaef0..000000000 --- a/src/generated/main/emu/lunarcore/proto/MainMissionOuterClass.java +++ /dev/null @@ -1,391 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class MainMissionOuterClass { - /** - * Protobuf type {@code MainMission} - */ - public static final class MainMission extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 id = 4; - */ - private int id; - - /** - *
-     *  repeated AMHBFDNMDLF AKGBLNHFPLG = 14;
-     * 
- * - * optional .MissionStatus status = 9; - */ - private int status; - - private MainMission() { - } - - /** - * @return a new empty instance of {@code MainMission} - */ - public static MainMission newInstance() { - return new MainMission(); - } - - /** - * optional uint32 id = 4; - * @return whether the id field is set - */ - public boolean hasId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 id = 4; - * @return this - */ - public MainMission clearId() { - bitField0_ &= ~0x00000001; - id = 0; - return this; - } - - /** - * optional uint32 id = 4; - * @return the id - */ - public int getId() { - return id; - } - - /** - * optional uint32 id = 4; - * @param value the id to set - * @return this - */ - public MainMission setId(final int value) { - bitField0_ |= 0x00000001; - id = value; - return this; - } - - /** - *
-     *  repeated AMHBFDNMDLF AKGBLNHFPLG = 14;
-     * 
- * - * optional .MissionStatus status = 9; - * @return whether the status field is set - */ - public boolean hasStatus() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - *
-     *  repeated AMHBFDNMDLF AKGBLNHFPLG = 14;
-     * 
- * - * optional .MissionStatus status = 9; - * @return this - */ - public MainMission clearStatus() { - bitField0_ &= ~0x00000002; - status = 0; - return this; - } - - /** - *
-     *  repeated AMHBFDNMDLF AKGBLNHFPLG = 14;
-     * 
- * - * optional .MissionStatus status = 9; - * @return the status - */ - public MissionStatusOuterClass.MissionStatus getStatus() { - return MissionStatusOuterClass.MissionStatus.forNumber(status); - } - - /** - * Gets the value of the internal enum store. The result is - * equivalent to {@link MainMission#getStatus()}.getNumber(). - * - * @return numeric wire representation - */ - public int getStatusValue() { - return status; - } - - /** - * Sets the value of the internal enum store. This does not - * do any validity checks, so be sure to use appropriate value - * constants from {@link MissionStatusOuterClass.MissionStatus}. Setting an invalid value - * can cause {@link MainMission#getStatus()} to return null - * - * @param value the numeric wire value to set - * @return this - */ - public MainMission setStatusValue(final int value) { - bitField0_ |= 0x00000002; - status = value; - return this; - } - - /** - *
-     *  repeated AMHBFDNMDLF AKGBLNHFPLG = 14;
-     * 
- * - * optional .MissionStatus status = 9; - * @param value the status to set - * @return this - */ - public MainMission setStatus(final MissionStatusOuterClass.MissionStatus value) { - bitField0_ |= 0x00000002; - status = value.getNumber(); - return this; - } - - @Override - public MainMission copyFrom(final MainMission other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - id = other.id; - status = other.status; - } - return this; - } - - @Override - public MainMission mergeFrom(final MainMission other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasId()) { - setId(other.id); - } - if (other.hasStatus()) { - setStatusValue(other.status); - } - return this; - } - - @Override - public MainMission clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - id = 0; - status = 0; - return this; - } - - @Override - public MainMission clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof MainMission)) { - return false; - } - MainMission other = (MainMission) o; - return bitField0_ == other.bitField0_ - && (!hasId() || id == other.id) - && (!hasStatus() || status == other.status); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 32); - output.writeUInt32NoTag(id); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 72); - output.writeEnumNoTag(status); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(id); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeEnumSizeNoTag(status); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public MainMission mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 32: { - // id - id = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 72) { - break; - } - } - case 72: { - // status - final int value = input.readInt32(); - if (MissionStatusOuterClass.MissionStatus.forNumber(value) != null) { - status = value; - bitField0_ |= 0x00000002; - } - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.id, id); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeEnum(FieldNames.status, status, MissionStatusOuterClass.MissionStatus.converter()); - } - output.endObject(); - } - - @Override - public MainMission mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 3355: { - if (input.isAtField(FieldNames.id)) { - if (!input.trySkipNullValue()) { - id = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -892481550: { - if (input.isAtField(FieldNames.status)) { - if (!input.trySkipNullValue()) { - final MissionStatusOuterClass.MissionStatus value = input.readEnum(MissionStatusOuterClass.MissionStatus.converter()); - if (value != null) { - status = value.getNumber(); - bitField0_ |= 0x00000002; - } else { - input.skipUnknownEnumValue(); - } - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public MainMission clone() { - return new MainMission().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static MainMission parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new MainMission(), data).checkInitialized(); - } - - public static MainMission parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new MainMission(), input).checkInitialized(); - } - - public static MainMission parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new MainMission(), input).checkInitialized(); - } - - /** - * @return factory for creating MainMission messages - */ - public static MessageFactory getFactory() { - return MainMissionFactory.INSTANCE; - } - - private enum MainMissionFactory implements MessageFactory { - INSTANCE; - - @Override - public MainMission create() { - return MainMission.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName id = FieldName.forField("id"); - - static final FieldName status = FieldName.forField("status"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/MarkReadMailCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/MarkReadMailCsReqOuterClass.java index ebd3f8dc7..f5061bbf4 100644 --- a/src/generated/main/emu/lunarcore/proto/MarkReadMailCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/MarkReadMailCsReqOuterClass.java @@ -19,7 +19,7 @@ public static final class MarkReadMailCsReq extends ProtoMessageoptional uint32 id = 7; + * optional uint32 id = 14; */ private int id; @@ -34,7 +34,7 @@ public static MarkReadMailCsReq newInstance() { } /** - * optional uint32 id = 7; + * optional uint32 id = 14; * @return whether the id field is set */ public boolean hasId() { @@ -42,7 +42,7 @@ public boolean hasId() { } /** - * optional uint32 id = 7; + * optional uint32 id = 14; * @return this */ public MarkReadMailCsReq clearId() { @@ -52,7 +52,7 @@ public MarkReadMailCsReq clearId() { } /** - * optional uint32 id = 7; + * optional uint32 id = 14; * @return the id */ public int getId() { @@ -60,7 +60,7 @@ public int getId() { } /** - * optional uint32 id = 7; + * optional uint32 id = 14; * @param value the id to set * @return this */ @@ -129,7 +129,7 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 112); output.writeUInt32NoTag(id); } } @@ -150,7 +150,7 @@ public MarkReadMailCsReq mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 56: { + case 112: { // id id = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/MarkReadMailScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/MarkReadMailScRspOuterClass.java index 894b924a2..896b7376c 100644 --- a/src/generated/main/emu/lunarcore/proto/MarkReadMailScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/MarkReadMailScRspOuterClass.java @@ -19,14 +19,14 @@ public static final class MarkReadMailScRsp extends ProtoMessageoptional uint32 id = 1; + * optional uint32 retcode = 1; */ - private int id; + private int retcode; /** - * optional uint32 retcode = 5; + * optional uint32 id = 5; */ - private int retcode; + private int id; private MarkReadMailScRsp() { } @@ -39,76 +39,76 @@ public static MarkReadMailScRsp newInstance() { } /** - * optional uint32 id = 1; - * @return whether the id field is set + * optional uint32 retcode = 1; + * @return whether the retcode field is set */ - public boolean hasId() { + public boolean hasRetcode() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 id = 1; + * optional uint32 retcode = 1; * @return this */ - public MarkReadMailScRsp clearId() { + public MarkReadMailScRsp clearRetcode() { bitField0_ &= ~0x00000001; - id = 0; + retcode = 0; return this; } /** - * optional uint32 id = 1; - * @return the id + * optional uint32 retcode = 1; + * @return the retcode */ - public int getId() { - return id; + public int getRetcode() { + return retcode; } /** - * optional uint32 id = 1; - * @param value the id to set + * optional uint32 retcode = 1; + * @param value the retcode to set * @return this */ - public MarkReadMailScRsp setId(final int value) { + public MarkReadMailScRsp setRetcode(final int value) { bitField0_ |= 0x00000001; - id = value; + retcode = value; return this; } /** - * optional uint32 retcode = 5; - * @return whether the retcode field is set + * optional uint32 id = 5; + * @return whether the id field is set */ - public boolean hasRetcode() { + public boolean hasId() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 retcode = 5; + * optional uint32 id = 5; * @return this */ - public MarkReadMailScRsp clearRetcode() { + public MarkReadMailScRsp clearId() { bitField0_ &= ~0x00000002; - retcode = 0; + id = 0; return this; } /** - * optional uint32 retcode = 5; - * @return the retcode + * optional uint32 id = 5; + * @return the id */ - public int getRetcode() { - return retcode; + public int getId() { + return id; } /** - * optional uint32 retcode = 5; - * @param value the retcode to set + * optional uint32 id = 5; + * @param value the id to set * @return this */ - public MarkReadMailScRsp setRetcode(final int value) { + public MarkReadMailScRsp setId(final int value) { bitField0_ |= 0x00000002; - retcode = value; + id = value; return this; } @@ -117,8 +117,8 @@ public MarkReadMailScRsp copyFrom(final MarkReadMailScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - id = other.id; retcode = other.retcode; + id = other.id; } return this; } @@ -129,12 +129,12 @@ public MarkReadMailScRsp mergeFrom(final MarkReadMailScRsp other) { return this; } cachedSize = -1; - if (other.hasId()) { - setId(other.id); - } if (other.hasRetcode()) { setRetcode(other.retcode); } + if (other.hasId()) { + setId(other.id); + } return this; } @@ -145,8 +145,8 @@ public MarkReadMailScRsp clear() { } cachedSize = -1; bitField0_ = 0; - id = 0; retcode = 0; + id = 0; return this; } @@ -170,19 +170,19 @@ public boolean equals(Object o) { } MarkReadMailScRsp other = (MarkReadMailScRsp) o; return bitField0_ == other.bitField0_ - && (!hasId() || id == other.id) - && (!hasRetcode() || retcode == other.retcode); + && (!hasRetcode() || retcode == other.retcode) + && (!hasId() || id == other.id); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { output.writeRawByte((byte) 8); - output.writeUInt32NoTag(id); + output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 40); - output.writeUInt32NoTag(retcode); + output.writeUInt32NoTag(id); } } @@ -190,10 +190,10 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(id); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(id); } return size; } @@ -206,8 +206,8 @@ public MarkReadMailScRsp mergeFrom(final ProtoSource input) throws IOException { while (true) { switch (tag) { case 8: { - // id - id = input.readUInt32(); + // retcode + retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 40) { @@ -215,8 +215,8 @@ public MarkReadMailScRsp mergeFrom(final ProtoSource input) throws IOException { } } case 40: { - // retcode - retcode = input.readUInt32(); + // id + id = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { @@ -241,10 +241,10 @@ public MarkReadMailScRsp mergeFrom(final ProtoSource input) throws IOException { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.id, id); + output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.id, id); } output.endObject(); } @@ -256,10 +256,10 @@ public MarkReadMailScRsp mergeFrom(final JsonSource input) throws IOException { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 3355: { - if (input.isAtField(FieldNames.id)) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { - id = input.readUInt32(); + retcode = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -267,10 +267,10 @@ public MarkReadMailScRsp mergeFrom(final JsonSource input) throws IOException { } break; } - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { + case 3355: { + if (input.isAtField(FieldNames.id)) { if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); + id = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -331,9 +331,9 @@ public MarkReadMailScRsp create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName id = FieldName.forField("id"); - static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName id = FieldName.forField("id"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/MaterialOuterClass.java b/src/generated/main/emu/lunarcore/proto/MaterialOuterClass.java index 583da2eac..2be004405 100644 --- a/src/generated/main/emu/lunarcore/proto/MaterialOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/MaterialOuterClass.java @@ -19,14 +19,14 @@ public static final class Material extends ProtoMessage implements Clo private static final long serialVersionUID = 0L; /** - * optional uint32 num = 6; + * optional uint32 tid = 8; */ - private int num; + private int tid; /** - * optional uint32 tid = 8; + * optional uint32 num = 15; */ - private int tid; + private int num; private Material() { } @@ -39,76 +39,76 @@ public static Material newInstance() { } /** - * optional uint32 num = 6; - * @return whether the num field is set + * optional uint32 tid = 8; + * @return whether the tid field is set */ - public boolean hasNum() { + public boolean hasTid() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 num = 6; + * optional uint32 tid = 8; * @return this */ - public Material clearNum() { + public Material clearTid() { bitField0_ &= ~0x00000001; - num = 0; + tid = 0; return this; } /** - * optional uint32 num = 6; - * @return the num + * optional uint32 tid = 8; + * @return the tid */ - public int getNum() { - return num; + public int getTid() { + return tid; } /** - * optional uint32 num = 6; - * @param value the num to set + * optional uint32 tid = 8; + * @param value the tid to set * @return this */ - public Material setNum(final int value) { + public Material setTid(final int value) { bitField0_ |= 0x00000001; - num = value; + tid = value; return this; } /** - * optional uint32 tid = 8; - * @return whether the tid field is set + * optional uint32 num = 15; + * @return whether the num field is set */ - public boolean hasTid() { + public boolean hasNum() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 tid = 8; + * optional uint32 num = 15; * @return this */ - public Material clearTid() { + public Material clearNum() { bitField0_ &= ~0x00000002; - tid = 0; + num = 0; return this; } /** - * optional uint32 tid = 8; - * @return the tid + * optional uint32 num = 15; + * @return the num */ - public int getTid() { - return tid; + public int getNum() { + return num; } /** - * optional uint32 tid = 8; - * @param value the tid to set + * optional uint32 num = 15; + * @param value the num to set * @return this */ - public Material setTid(final int value) { + public Material setNum(final int value) { bitField0_ |= 0x00000002; - tid = value; + num = value; return this; } @@ -117,8 +117,8 @@ public Material copyFrom(final Material other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - num = other.num; tid = other.tid; + num = other.num; } return this; } @@ -129,12 +129,12 @@ public Material mergeFrom(final Material other) { return this; } cachedSize = -1; - if (other.hasNum()) { - setNum(other.num); - } if (other.hasTid()) { setTid(other.tid); } + if (other.hasNum()) { + setNum(other.num); + } return this; } @@ -145,8 +145,8 @@ public Material clear() { } cachedSize = -1; bitField0_ = 0; - num = 0; tid = 0; + num = 0; return this; } @@ -170,30 +170,30 @@ public boolean equals(Object o) { } Material other = (Material) o; return bitField0_ == other.bitField0_ - && (!hasNum() || num == other.num) - && (!hasTid() || tid == other.tid); + && (!hasTid() || tid == other.tid) + && (!hasNum() || num == other.num); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 48); - output.writeUInt32NoTag(num); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 64); output.writeUInt32NoTag(tid); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(num); + } } @Override protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(num); + size += 1 + ProtoSink.computeUInt32SizeNoTag(tid); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(tid); + size += 1 + ProtoSink.computeUInt32SizeNoTag(num); } return size; } @@ -205,18 +205,18 @@ public Material mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 48: { - // num - num = input.readUInt32(); + case 64: { + // tid + tid = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 64) { + if (tag != 120) { break; } } - case 64: { - // tid - tid = input.readUInt32(); + case 120: { + // num + num = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { @@ -241,10 +241,10 @@ public Material mergeFrom(final ProtoSource input) throws IOException { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.num, num); + output.writeUInt32(FieldNames.tid, tid); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.tid, tid); + output.writeUInt32(FieldNames.num, num); } output.endObject(); } @@ -256,10 +256,10 @@ public Material mergeFrom(final JsonSource input) throws IOException { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 109446: { - if (input.isAtField(FieldNames.num)) { + case 114831: { + if (input.isAtField(FieldNames.tid)) { if (!input.trySkipNullValue()) { - num = input.readUInt32(); + tid = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -267,10 +267,10 @@ public Material mergeFrom(final JsonSource input) throws IOException { } break; } - case 114831: { - if (input.isAtField(FieldNames.tid)) { + case 109446: { + if (input.isAtField(FieldNames.num)) { if (!input.trySkipNullValue()) { - tid = input.readUInt32(); + num = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -330,9 +330,9 @@ public Material create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName num = FieldName.forField("num"); - static final FieldName tid = FieldName.forField("tid"); + + static final FieldName num = FieldName.forField("num"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/MazeGroupOuterClass.java b/src/generated/main/emu/lunarcore/proto/MazeGroupOuterClass.java index 9054102dd..8e0d0f35c 100644 --- a/src/generated/main/emu/lunarcore/proto/MazeGroupOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/MazeGroupOuterClass.java @@ -19,7 +19,7 @@ public static final class MazeGroup extends ProtoMessage implements C private static final long serialVersionUID = 0L; /** - * optional uint32 group_id = 8; + * optional uint32 group_id = 6; */ private int groupId; @@ -34,7 +34,7 @@ public static MazeGroup newInstance() { } /** - * optional uint32 group_id = 8; + * optional uint32 group_id = 6; * @return whether the groupId field is set */ public boolean hasGroupId() { @@ -42,7 +42,7 @@ public boolean hasGroupId() { } /** - * optional uint32 group_id = 8; + * optional uint32 group_id = 6; * @return this */ public MazeGroup clearGroupId() { @@ -52,7 +52,7 @@ public MazeGroup clearGroupId() { } /** - * optional uint32 group_id = 8; + * optional uint32 group_id = 6; * @return the groupId */ public int getGroupId() { @@ -60,7 +60,7 @@ public int getGroupId() { } /** - * optional uint32 group_id = 8; + * optional uint32 group_id = 6; * @param value the groupId to set * @return this */ @@ -129,7 +129,7 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 48); output.writeUInt32NoTag(groupId); } } @@ -150,7 +150,7 @@ public MazeGroup mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 64: { + case 48: { // groupId groupId = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/MazeMapDataOuterClass.java b/src/generated/main/emu/lunarcore/proto/MazeMapDataOuterClass.java index 157440e97..00ad7a82f 100644 --- a/src/generated/main/emu/lunarcore/proto/MazeMapDataOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/MazeMapDataOuterClass.java @@ -21,7 +21,7 @@ public static final class MazeMapData extends ProtoMessage implemen private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 4; + * optional uint32 retcode = 5; */ private int retcode; @@ -31,7 +31,7 @@ public static final class MazeMapData extends ProtoMessage implemen private int curMapEntryId; /** - * optional uint32 entry_id = 14; + * optional uint32 entry_id = 13; */ private int entryId; @@ -41,24 +41,24 @@ public static final class MazeMapData extends ProtoMessage implemen private final RepeatedInt lightenSectionList = RepeatedInt.newEmptyInstance(); /** - * repeated uint32 unlocked_teleport_list = 11; + * repeated uint32 unlocked_teleport_list = 7; */ private final RepeatedInt unlockedTeleportList = RepeatedInt.newEmptyInstance(); /** - * repeated .MazeChest unlocked_chest_list = 1; + * repeated .MazeGroup maze_group_list = 1; */ - private final RepeatedMessage unlockedChestList = RepeatedMessage.newEmptyInstance(MazeChestOuterClass.MazeChest.getFactory()); + private final RepeatedMessage mazeGroupList = RepeatedMessage.newEmptyInstance(MazeGroupOuterClass.MazeGroup.getFactory()); /** - * repeated .MazeGroup maze_group_list = 5; + * repeated .MazeProp maze_prop_list = 4; */ - private final RepeatedMessage mazeGroupList = RepeatedMessage.newEmptyInstance(MazeGroupOuterClass.MazeGroup.getFactory()); + private final RepeatedMessage mazePropList = RepeatedMessage.newEmptyInstance(MazePropOuterClass.MazeProp.getFactory()); /** - * repeated .MazeProp maze_prop_list = 9; + * repeated .MazeChest unlocked_chest_list = 11; */ - private final RepeatedMessage mazePropList = RepeatedMessage.newEmptyInstance(MazePropOuterClass.MazeProp.getFactory()); + private final RepeatedMessage unlockedChestList = RepeatedMessage.newEmptyInstance(MazeChestOuterClass.MazeChest.getFactory()); private MazeMapData() { } @@ -71,7 +71,7 @@ public static MazeMapData newInstance() { } /** - * optional uint32 retcode = 4; + * optional uint32 retcode = 5; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -79,7 +79,7 @@ public boolean hasRetcode() { } /** - * optional uint32 retcode = 4; + * optional uint32 retcode = 5; * @return this */ public MazeMapData clearRetcode() { @@ -89,7 +89,7 @@ public MazeMapData clearRetcode() { } /** - * optional uint32 retcode = 4; + * optional uint32 retcode = 5; * @return the retcode */ public int getRetcode() { @@ -97,7 +97,7 @@ public int getRetcode() { } /** - * optional uint32 retcode = 4; + * optional uint32 retcode = 5; * @param value the retcode to set * @return this */ @@ -145,7 +145,7 @@ public MazeMapData setCurMapEntryId(final int value) { } /** - * optional uint32 entry_id = 14; + * optional uint32 entry_id = 13; * @return whether the entryId field is set */ public boolean hasEntryId() { @@ -153,7 +153,7 @@ public boolean hasEntryId() { } /** - * optional uint32 entry_id = 14; + * optional uint32 entry_id = 13; * @return this */ public MazeMapData clearEntryId() { @@ -163,7 +163,7 @@ public MazeMapData clearEntryId() { } /** - * optional uint32 entry_id = 14; + * optional uint32 entry_id = 13; * @return the entryId */ public int getEntryId() { @@ -171,7 +171,7 @@ public int getEntryId() { } /** - * optional uint32 entry_id = 14; + * optional uint32 entry_id = 13; * @param value the entryId to set * @return this */ @@ -250,7 +250,7 @@ public MazeMapData addAllLightenSectionList(final int... values) { } /** - * repeated uint32 unlocked_teleport_list = 11; + * repeated uint32 unlocked_teleport_list = 7; * @return whether the unlockedTeleportList field is set */ public boolean hasUnlockedTeleportList() { @@ -258,7 +258,7 @@ public boolean hasUnlockedTeleportList() { } /** - * repeated uint32 unlocked_teleport_list = 11; + * repeated uint32 unlocked_teleport_list = 7; * @return this */ public MazeMapData clearUnlockedTeleportList() { @@ -268,7 +268,7 @@ public MazeMapData clearUnlockedTeleportList() { } /** - * repeated uint32 unlocked_teleport_list = 11; + * repeated uint32 unlocked_teleport_list = 7; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -282,7 +282,7 @@ public RepeatedInt getUnlockedTeleportList() { } /** - * repeated uint32 unlocked_teleport_list = 11; + * repeated uint32 unlocked_teleport_list = 7; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -296,7 +296,7 @@ public RepeatedInt getMutableUnlockedTeleportList() { } /** - * repeated uint32 unlocked_teleport_list = 11; + * repeated uint32 unlocked_teleport_list = 7; * @param value the unlockedTeleportList to add * @return this */ @@ -307,7 +307,7 @@ public MazeMapData addUnlockedTeleportList(final int value) { } /** - * repeated uint32 unlocked_teleport_list = 11; + * repeated uint32 unlocked_teleport_list = 7; * @param values the unlockedTeleportList to add * @return this */ @@ -318,39 +318,39 @@ public MazeMapData addAllUnlockedTeleportList(final int... values) { } /** - * repeated .MazeChest unlocked_chest_list = 1; - * @return whether the unlockedChestList field is set + * repeated .MazeGroup maze_group_list = 1; + * @return whether the mazeGroupList field is set */ - public boolean hasUnlockedChestList() { + public boolean hasMazeGroupList() { return (bitField0_ & 0x00000020) != 0; } /** - * repeated .MazeChest unlocked_chest_list = 1; + * repeated .MazeGroup maze_group_list = 1; * @return this */ - public MazeMapData clearUnlockedChestList() { + public MazeMapData clearMazeGroupList() { bitField0_ &= ~0x00000020; - unlockedChestList.clear(); + mazeGroupList.clear(); return this; } /** - * repeated .MazeChest unlocked_chest_list = 1; + * repeated .MazeGroup maze_group_list = 1; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableUnlockedChestList()} if you want to modify it. + * Use {@link #getMutableMazeGroupList()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedMessage getUnlockedChestList() { - return unlockedChestList; + public RepeatedMessage getMazeGroupList() { + return mazeGroupList; } /** - * repeated .MazeChest unlocked_chest_list = 1; + * repeated .MazeGroup maze_group_list = 1; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -358,67 +358,67 @@ public RepeatedMessage getUnlockedChestList() { * * @return internal storage object for modifications */ - public RepeatedMessage getMutableUnlockedChestList() { + public RepeatedMessage getMutableMazeGroupList() { bitField0_ |= 0x00000020; - return unlockedChestList; + return mazeGroupList; } /** - * repeated .MazeChest unlocked_chest_list = 1; - * @param value the unlockedChestList to add + * repeated .MazeGroup maze_group_list = 1; + * @param value the mazeGroupList to add * @return this */ - public MazeMapData addUnlockedChestList(final MazeChestOuterClass.MazeChest value) { + public MazeMapData addMazeGroupList(final MazeGroupOuterClass.MazeGroup value) { bitField0_ |= 0x00000020; - unlockedChestList.add(value); + mazeGroupList.add(value); return this; } /** - * repeated .MazeChest unlocked_chest_list = 1; - * @param values the unlockedChestList to add + * repeated .MazeGroup maze_group_list = 1; + * @param values the mazeGroupList to add * @return this */ - public MazeMapData addAllUnlockedChestList(final MazeChestOuterClass.MazeChest... values) { + public MazeMapData addAllMazeGroupList(final MazeGroupOuterClass.MazeGroup... values) { bitField0_ |= 0x00000020; - unlockedChestList.addAll(values); + mazeGroupList.addAll(values); return this; } /** - * repeated .MazeGroup maze_group_list = 5; - * @return whether the mazeGroupList field is set + * repeated .MazeProp maze_prop_list = 4; + * @return whether the mazePropList field is set */ - public boolean hasMazeGroupList() { + public boolean hasMazePropList() { return (bitField0_ & 0x00000040) != 0; } /** - * repeated .MazeGroup maze_group_list = 5; + * repeated .MazeProp maze_prop_list = 4; * @return this */ - public MazeMapData clearMazeGroupList() { + public MazeMapData clearMazePropList() { bitField0_ &= ~0x00000040; - mazeGroupList.clear(); + mazePropList.clear(); return this; } /** - * repeated .MazeGroup maze_group_list = 5; + * repeated .MazeProp maze_prop_list = 4; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableMazeGroupList()} if you want to modify it. + * Use {@link #getMutableMazePropList()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedMessage getMazeGroupList() { - return mazeGroupList; + public RepeatedMessage getMazePropList() { + return mazePropList; } /** - * repeated .MazeGroup maze_group_list = 5; + * repeated .MazeProp maze_prop_list = 4; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -426,67 +426,67 @@ public RepeatedMessage getMazeGroupList() { * * @return internal storage object for modifications */ - public RepeatedMessage getMutableMazeGroupList() { + public RepeatedMessage getMutableMazePropList() { bitField0_ |= 0x00000040; - return mazeGroupList; + return mazePropList; } /** - * repeated .MazeGroup maze_group_list = 5; - * @param value the mazeGroupList to add + * repeated .MazeProp maze_prop_list = 4; + * @param value the mazePropList to add * @return this */ - public MazeMapData addMazeGroupList(final MazeGroupOuterClass.MazeGroup value) { + public MazeMapData addMazePropList(final MazePropOuterClass.MazeProp value) { bitField0_ |= 0x00000040; - mazeGroupList.add(value); + mazePropList.add(value); return this; } /** - * repeated .MazeGroup maze_group_list = 5; - * @param values the mazeGroupList to add + * repeated .MazeProp maze_prop_list = 4; + * @param values the mazePropList to add * @return this */ - public MazeMapData addAllMazeGroupList(final MazeGroupOuterClass.MazeGroup... values) { + public MazeMapData addAllMazePropList(final MazePropOuterClass.MazeProp... values) { bitField0_ |= 0x00000040; - mazeGroupList.addAll(values); + mazePropList.addAll(values); return this; } /** - * repeated .MazeProp maze_prop_list = 9; - * @return whether the mazePropList field is set + * repeated .MazeChest unlocked_chest_list = 11; + * @return whether the unlockedChestList field is set */ - public boolean hasMazePropList() { + public boolean hasUnlockedChestList() { return (bitField0_ & 0x00000080) != 0; } /** - * repeated .MazeProp maze_prop_list = 9; + * repeated .MazeChest unlocked_chest_list = 11; * @return this */ - public MazeMapData clearMazePropList() { + public MazeMapData clearUnlockedChestList() { bitField0_ &= ~0x00000080; - mazePropList.clear(); + unlockedChestList.clear(); return this; } /** - * repeated .MazeProp maze_prop_list = 9; + * repeated .MazeChest unlocked_chest_list = 11; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableMazePropList()} if you want to modify it. + * Use {@link #getMutableUnlockedChestList()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedMessage getMazePropList() { - return mazePropList; + public RepeatedMessage getUnlockedChestList() { + return unlockedChestList; } /** - * repeated .MazeProp maze_prop_list = 9; + * repeated .MazeChest unlocked_chest_list = 11; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -494,30 +494,30 @@ public RepeatedMessage getMazePropList() { * * @return internal storage object for modifications */ - public RepeatedMessage getMutableMazePropList() { + public RepeatedMessage getMutableUnlockedChestList() { bitField0_ |= 0x00000080; - return mazePropList; + return unlockedChestList; } /** - * repeated .MazeProp maze_prop_list = 9; - * @param value the mazePropList to add + * repeated .MazeChest unlocked_chest_list = 11; + * @param value the unlockedChestList to add * @return this */ - public MazeMapData addMazePropList(final MazePropOuterClass.MazeProp value) { + public MazeMapData addUnlockedChestList(final MazeChestOuterClass.MazeChest value) { bitField0_ |= 0x00000080; - mazePropList.add(value); + unlockedChestList.add(value); return this; } /** - * repeated .MazeProp maze_prop_list = 9; - * @param values the mazePropList to add + * repeated .MazeChest unlocked_chest_list = 11; + * @param values the unlockedChestList to add * @return this */ - public MazeMapData addAllMazePropList(final MazePropOuterClass.MazeProp... values) { + public MazeMapData addAllUnlockedChestList(final MazeChestOuterClass.MazeChest... values) { bitField0_ |= 0x00000080; - mazePropList.addAll(values); + unlockedChestList.addAll(values); return this; } @@ -531,9 +531,9 @@ public MazeMapData copyFrom(final MazeMapData other) { entryId = other.entryId; lightenSectionList.copyFrom(other.lightenSectionList); unlockedTeleportList.copyFrom(other.unlockedTeleportList); - unlockedChestList.copyFrom(other.unlockedChestList); mazeGroupList.copyFrom(other.mazeGroupList); mazePropList.copyFrom(other.mazePropList); + unlockedChestList.copyFrom(other.unlockedChestList); } return this; } @@ -559,15 +559,15 @@ public MazeMapData mergeFrom(final MazeMapData other) { if (other.hasUnlockedTeleportList()) { getMutableUnlockedTeleportList().addAll(other.unlockedTeleportList); } - if (other.hasUnlockedChestList()) { - getMutableUnlockedChestList().addAll(other.unlockedChestList); - } if (other.hasMazeGroupList()) { getMutableMazeGroupList().addAll(other.mazeGroupList); } if (other.hasMazePropList()) { getMutableMazePropList().addAll(other.mazePropList); } + if (other.hasUnlockedChestList()) { + getMutableUnlockedChestList().addAll(other.unlockedChestList); + } return this; } @@ -583,9 +583,9 @@ public MazeMapData clear() { entryId = 0; lightenSectionList.clear(); unlockedTeleportList.clear(); - unlockedChestList.clear(); mazeGroupList.clear(); mazePropList.clear(); + unlockedChestList.clear(); return this; } @@ -598,9 +598,9 @@ public MazeMapData clearQuick() { bitField0_ = 0; lightenSectionList.clear(); unlockedTeleportList.clear(); - unlockedChestList.clearQuick(); mazeGroupList.clearQuick(); mazePropList.clearQuick(); + unlockedChestList.clearQuick(); return this; } @@ -619,15 +619,15 @@ public boolean equals(Object o) { && (!hasEntryId() || entryId == other.entryId) && (!hasLightenSectionList() || lightenSectionList.equals(other.lightenSectionList)) && (!hasUnlockedTeleportList() || unlockedTeleportList.equals(other.unlockedTeleportList)) - && (!hasUnlockedChestList() || unlockedChestList.equals(other.unlockedChestList)) && (!hasMazeGroupList() || mazeGroupList.equals(other.mazeGroupList)) - && (!hasMazePropList() || mazePropList.equals(other.mazePropList)); + && (!hasMazePropList() || mazePropList.equals(other.mazePropList)) + && (!hasUnlockedChestList() || unlockedChestList.equals(other.unlockedChestList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 32); + output.writeRawByte((byte) 40); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { @@ -635,7 +635,7 @@ public void writeTo(final ProtoSink output) throws IOException { output.writeUInt32NoTag(curMapEntryId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 104); output.writeUInt32NoTag(entryId); } if ((bitField0_ & 0x00000008) != 0) { @@ -646,26 +646,26 @@ public void writeTo(final ProtoSink output) throws IOException { } if ((bitField0_ & 0x00000010) != 0) { for (int i = 0; i < unlockedTeleportList.length(); i++) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 56); output.writeUInt32NoTag(unlockedTeleportList.array()[i]); } } if ((bitField0_ & 0x00000020) != 0) { - for (int i = 0; i < unlockedChestList.length(); i++) { + for (int i = 0; i < mazeGroupList.length(); i++) { output.writeRawByte((byte) 10); - output.writeMessageNoTag(unlockedChestList.get(i)); + output.writeMessageNoTag(mazeGroupList.get(i)); } } if ((bitField0_ & 0x00000040) != 0) { - for (int i = 0; i < mazeGroupList.length(); i++) { - output.writeRawByte((byte) 42); - output.writeMessageNoTag(mazeGroupList.get(i)); + for (int i = 0; i < mazePropList.length(); i++) { + output.writeRawByte((byte) 34); + output.writeMessageNoTag(mazePropList.get(i)); } } if ((bitField0_ & 0x00000080) != 0) { - for (int i = 0; i < mazePropList.length(); i++) { - output.writeRawByte((byte) 74); - output.writeMessageNoTag(mazePropList.get(i)); + for (int i = 0; i < unlockedChestList.length(); i++) { + output.writeRawByte((byte) 90); + output.writeMessageNoTag(unlockedChestList.get(i)); } } } @@ -689,13 +689,13 @@ protected int computeSerializedSize() { size += (1 * unlockedTeleportList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(unlockedTeleportList); } if ((bitField0_ & 0x00000020) != 0) { - size += (1 * unlockedChestList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(unlockedChestList); + size += (1 * mazeGroupList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(mazeGroupList); } if ((bitField0_ & 0x00000040) != 0) { - size += (1 * mazeGroupList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(mazeGroupList); + size += (1 * mazePropList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(mazePropList); } if ((bitField0_ & 0x00000080) != 0) { - size += (1 * mazePropList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(mazePropList); + size += (1 * unlockedChestList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(unlockedChestList); } return size; } @@ -707,7 +707,7 @@ public MazeMapData mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 32: { + case 40: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; @@ -721,11 +721,11 @@ public MazeMapData mergeFrom(final ProtoSource input) throws IOException { curMapEntryId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 112) { + if (tag != 104) { break; } } - case 112: { + case 104: { // entryId entryId = input.readUInt32(); bitField0_ |= 0x00000004; @@ -739,11 +739,11 @@ public MazeMapData mergeFrom(final ProtoSource input) throws IOException { input.readPackedUInt32(lightenSectionList, tag); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 90) { + if (tag != 58) { break; } } - case 90: { + case 58: { // unlockedTeleportList [packed=true] input.readPackedUInt32(unlockedTeleportList, tag); bitField0_ |= 0x00000010; @@ -753,24 +753,24 @@ public MazeMapData mergeFrom(final ProtoSource input) throws IOException { } } case 10: { - // unlockedChestList - tag = input.readRepeatedMessage(unlockedChestList, tag); + // mazeGroupList + tag = input.readRepeatedMessage(mazeGroupList, tag); bitField0_ |= 0x00000020; - if (tag != 42) { + if (tag != 34) { break; } } - case 42: { - // mazeGroupList - tag = input.readRepeatedMessage(mazeGroupList, tag); + case 34: { + // mazePropList + tag = input.readRepeatedMessage(mazePropList, tag); bitField0_ |= 0x00000040; - if (tag != 74) { + if (tag != 90) { break; } } - case 74: { - // mazePropList - tag = input.readRepeatedMessage(mazePropList, tag); + case 90: { + // unlockedChestList + tag = input.readRepeatedMessage(unlockedChestList, tag); bitField0_ |= 0x00000080; if (tag != 0) { break; @@ -792,7 +792,7 @@ public MazeMapData mergeFrom(final ProtoSource input) throws IOException { bitField0_ |= 0x00000008; break; } - case 88: { + case 56: { // unlockedTeleportList [packed=false] tag = input.readRepeatedUInt32(unlockedTeleportList, tag); bitField0_ |= 0x00000010; @@ -821,13 +821,13 @@ public void writeTo(final JsonSink output) throws IOException { output.writeRepeatedUInt32(FieldNames.unlockedTeleportList, unlockedTeleportList); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRepeatedMessage(FieldNames.unlockedChestList, unlockedChestList); + output.writeRepeatedMessage(FieldNames.mazeGroupList, mazeGroupList); } if ((bitField0_ & 0x00000040) != 0) { - output.writeRepeatedMessage(FieldNames.mazeGroupList, mazeGroupList); + output.writeRepeatedMessage(FieldNames.mazePropList, mazePropList); } if ((bitField0_ & 0x00000080) != 0) { - output.writeRepeatedMessage(FieldNames.mazePropList, mazePropList); + output.writeRepeatedMessage(FieldNames.unlockedChestList, unlockedChestList); } output.endObject(); } @@ -898,11 +898,11 @@ public MazeMapData mergeFrom(final JsonSource input) throws IOException { } break; } - case -337762404: - case 231688696: { - if (input.isAtField(FieldNames.unlockedChestList)) { + case -317054274: + case 407435998: { + if (input.isAtField(FieldNames.mazeGroupList)) { if (!input.trySkipNullValue()) { - input.readRepeatedMessage(unlockedChestList); + input.readRepeatedMessage(mazeGroupList); bitField0_ |= 0x00000020; } } else { @@ -910,11 +910,11 @@ public MazeMapData mergeFrom(final JsonSource input) throws IOException { } break; } - case -317054274: - case 407435998: { - if (input.isAtField(FieldNames.mazeGroupList)) { + case 1676123008: + case 1875839866: { + if (input.isAtField(FieldNames.mazePropList)) { if (!input.trySkipNullValue()) { - input.readRepeatedMessage(mazeGroupList); + input.readRepeatedMessage(mazePropList); bitField0_ |= 0x00000040; } } else { @@ -922,11 +922,11 @@ public MazeMapData mergeFrom(final JsonSource input) throws IOException { } break; } - case 1676123008: - case 1875839866: { - if (input.isAtField(FieldNames.mazePropList)) { + case -337762404: + case 231688696: { + if (input.isAtField(FieldNames.unlockedChestList)) { if (!input.trySkipNullValue()) { - input.readRepeatedMessage(mazePropList); + input.readRepeatedMessage(unlockedChestList); bitField0_ |= 0x00000080; } } else { @@ -996,11 +996,11 @@ static class FieldNames { static final FieldName unlockedTeleportList = FieldName.forField("unlockedTeleportList", "unlocked_teleport_list"); - static final FieldName unlockedChestList = FieldName.forField("unlockedChestList", "unlocked_chest_list"); - static final FieldName mazeGroupList = FieldName.forField("mazeGroupList", "maze_group_list"); static final FieldName mazePropList = FieldName.forField("mazePropList", "maze_prop_list"); + + static final FieldName unlockedChestList = FieldName.forField("unlockedChestList", "unlocked_chest_list"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/MazePropOuterClass.java b/src/generated/main/emu/lunarcore/proto/MazePropOuterClass.java index f13ceb06a..214bacdfd 100644 --- a/src/generated/main/emu/lunarcore/proto/MazePropOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/MazePropOuterClass.java @@ -19,19 +19,19 @@ public static final class MazeProp extends ProtoMessage implements Clo private static final long serialVersionUID = 0L; /** - * optional uint32 state = 1; + * optional uint32 group_id = 1; */ - private int state; + private int groupId; /** - * optional uint32 group_id = 7; + * optional uint32 config_id = 8; */ - private int groupId; + private int configId; /** - * optional uint32 config_id = 15; + * optional uint32 state = 11; */ - private int configId; + private int state; private MazeProp() { } @@ -44,113 +44,113 @@ public static MazeProp newInstance() { } /** - * optional uint32 state = 1; - * @return whether the state field is set + * optional uint32 group_id = 1; + * @return whether the groupId field is set */ - public boolean hasState() { + public boolean hasGroupId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 state = 1; + * optional uint32 group_id = 1; * @return this */ - public MazeProp clearState() { + public MazeProp clearGroupId() { bitField0_ &= ~0x00000001; - state = 0; + groupId = 0; return this; } /** - * optional uint32 state = 1; - * @return the state + * optional uint32 group_id = 1; + * @return the groupId */ - public int getState() { - return state; + public int getGroupId() { + return groupId; } /** - * optional uint32 state = 1; - * @param value the state to set + * optional uint32 group_id = 1; + * @param value the groupId to set * @return this */ - public MazeProp setState(final int value) { + public MazeProp setGroupId(final int value) { bitField0_ |= 0x00000001; - state = value; + groupId = value; return this; } /** - * optional uint32 group_id = 7; - * @return whether the groupId field is set + * optional uint32 config_id = 8; + * @return whether the configId field is set */ - public boolean hasGroupId() { + public boolean hasConfigId() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 group_id = 7; + * optional uint32 config_id = 8; * @return this */ - public MazeProp clearGroupId() { + public MazeProp clearConfigId() { bitField0_ &= ~0x00000002; - groupId = 0; + configId = 0; return this; } /** - * optional uint32 group_id = 7; - * @return the groupId + * optional uint32 config_id = 8; + * @return the configId */ - public int getGroupId() { - return groupId; + public int getConfigId() { + return configId; } /** - * optional uint32 group_id = 7; - * @param value the groupId to set + * optional uint32 config_id = 8; + * @param value the configId to set * @return this */ - public MazeProp setGroupId(final int value) { + public MazeProp setConfigId(final int value) { bitField0_ |= 0x00000002; - groupId = value; + configId = value; return this; } /** - * optional uint32 config_id = 15; - * @return whether the configId field is set + * optional uint32 state = 11; + * @return whether the state field is set */ - public boolean hasConfigId() { + public boolean hasState() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 config_id = 15; + * optional uint32 state = 11; * @return this */ - public MazeProp clearConfigId() { + public MazeProp clearState() { bitField0_ &= ~0x00000004; - configId = 0; + state = 0; return this; } /** - * optional uint32 config_id = 15; - * @return the configId + * optional uint32 state = 11; + * @return the state */ - public int getConfigId() { - return configId; + public int getState() { + return state; } /** - * optional uint32 config_id = 15; - * @param value the configId to set + * optional uint32 state = 11; + * @param value the state to set * @return this */ - public MazeProp setConfigId(final int value) { + public MazeProp setState(final int value) { bitField0_ |= 0x00000004; - configId = value; + state = value; return this; } @@ -159,9 +159,9 @@ public MazeProp copyFrom(final MazeProp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - state = other.state; groupId = other.groupId; configId = other.configId; + state = other.state; } return this; } @@ -172,15 +172,15 @@ public MazeProp mergeFrom(final MazeProp other) { return this; } cachedSize = -1; - if (other.hasState()) { - setState(other.state); - } if (other.hasGroupId()) { setGroupId(other.groupId); } if (other.hasConfigId()) { setConfigId(other.configId); } + if (other.hasState()) { + setState(other.state); + } return this; } @@ -191,9 +191,9 @@ public MazeProp clear() { } cachedSize = -1; bitField0_ = 0; - state = 0; groupId = 0; configId = 0; + state = 0; return this; } @@ -217,24 +217,24 @@ public boolean equals(Object o) { } MazeProp other = (MazeProp) o; return bitField0_ == other.bitField0_ - && (!hasState() || state == other.state) && (!hasGroupId() || groupId == other.groupId) - && (!hasConfigId() || configId == other.configId); + && (!hasConfigId() || configId == other.configId) + && (!hasState() || state == other.state); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { output.writeRawByte((byte) 8); - output.writeUInt32NoTag(state); + output.writeUInt32NoTag(groupId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 56); - output.writeUInt32NoTag(groupId); + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(configId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 120); - output.writeUInt32NoTag(configId); + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(state); } } @@ -242,13 +242,13 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(state); + size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(configId); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(configId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(state); } return size; } @@ -261,26 +261,26 @@ public MazeProp mergeFrom(final ProtoSource input) throws IOException { while (true) { switch (tag) { case 8: { - // state - state = input.readUInt32(); + // groupId + groupId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 56) { + if (tag != 64) { break; } } - case 56: { - // groupId - groupId = input.readUInt32(); + case 64: { + // configId + configId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 120) { + if (tag != 88) { break; } } - case 120: { - // configId - configId = input.readUInt32(); + case 88: { + // state + state = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 0) { @@ -305,13 +305,13 @@ public MazeProp mergeFrom(final ProtoSource input) throws IOException { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.state, state); + output.writeUInt32(FieldNames.groupId, groupId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.groupId, groupId); + output.writeUInt32(FieldNames.configId, configId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.configId, configId); + output.writeUInt32(FieldNames.state, state); } output.endObject(); } @@ -323,10 +323,11 @@ public MazeProp mergeFrom(final JsonSource input) throws IOException { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 109757585: { - if (input.isAtField(FieldNames.state)) { + case 293428218: + case 506361563: { + if (input.isAtField(FieldNames.groupId)) { if (!input.trySkipNullValue()) { - state = input.readUInt32(); + groupId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -334,11 +335,11 @@ public MazeProp mergeFrom(final JsonSource input) throws IOException { } break; } - case 293428218: - case 506361563: { - if (input.isAtField(FieldNames.groupId)) { + case -580140035: + case -804450504: { + if (input.isAtField(FieldNames.configId)) { if (!input.trySkipNullValue()) { - groupId = input.readUInt32(); + configId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -346,11 +347,10 @@ public MazeProp mergeFrom(final JsonSource input) throws IOException { } break; } - case -580140035: - case -804450504: { - if (input.isAtField(FieldNames.configId)) { + case 109757585: { + if (input.isAtField(FieldNames.state)) { if (!input.trySkipNullValue()) { - configId = input.readUInt32(); + state = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -410,11 +410,11 @@ public MazeProp create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName state = FieldName.forField("state"); - static final FieldName groupId = FieldName.forField("groupId", "group_id"); static final FieldName configId = FieldName.forField("configId", "config_id"); + + static final FieldName state = FieldName.forField("state"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/MissionOuterClass.java b/src/generated/main/emu/lunarcore/proto/MissionOuterClass.java index 8ad0e9e88..2c55599b6 100644 --- a/src/generated/main/emu/lunarcore/proto/MissionOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/MissionOuterClass.java @@ -19,17 +19,17 @@ public static final class Mission extends ProtoMessage implements Clone private static final long serialVersionUID = 0L; /** - * optional uint32 id = 11; + * optional uint32 progress = 14; */ - private int id; + private int progress; /** - * optional uint32 progress = 13; + * optional uint32 id = 15; */ - private int progress; + private int id; /** - * optional .MissionStatus status = 8; + * optional .MissionStatus status = 11; */ private int status; @@ -44,81 +44,81 @@ public static Mission newInstance() { } /** - * optional uint32 id = 11; - * @return whether the id field is set + * optional uint32 progress = 14; + * @return whether the progress field is set */ - public boolean hasId() { + public boolean hasProgress() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 id = 11; + * optional uint32 progress = 14; * @return this */ - public Mission clearId() { + public Mission clearProgress() { bitField0_ &= ~0x00000001; - id = 0; + progress = 0; return this; } /** - * optional uint32 id = 11; - * @return the id + * optional uint32 progress = 14; + * @return the progress */ - public int getId() { - return id; + public int getProgress() { + return progress; } /** - * optional uint32 id = 11; - * @param value the id to set + * optional uint32 progress = 14; + * @param value the progress to set * @return this */ - public Mission setId(final int value) { + public Mission setProgress(final int value) { bitField0_ |= 0x00000001; - id = value; + progress = value; return this; } /** - * optional uint32 progress = 13; - * @return whether the progress field is set + * optional uint32 id = 15; + * @return whether the id field is set */ - public boolean hasProgress() { + public boolean hasId() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 progress = 13; + * optional uint32 id = 15; * @return this */ - public Mission clearProgress() { + public Mission clearId() { bitField0_ &= ~0x00000002; - progress = 0; + id = 0; return this; } /** - * optional uint32 progress = 13; - * @return the progress + * optional uint32 id = 15; + * @return the id */ - public int getProgress() { - return progress; + public int getId() { + return id; } /** - * optional uint32 progress = 13; - * @param value the progress to set + * optional uint32 id = 15; + * @param value the id to set * @return this */ - public Mission setProgress(final int value) { + public Mission setId(final int value) { bitField0_ |= 0x00000002; - progress = value; + id = value; return this; } /** - * optional .MissionStatus status = 8; + * optional .MissionStatus status = 11; * @return whether the status field is set */ public boolean hasStatus() { @@ -126,7 +126,7 @@ public boolean hasStatus() { } /** - * optional .MissionStatus status = 8; + * optional .MissionStatus status = 11; * @return this */ public Mission clearStatus() { @@ -136,7 +136,7 @@ public Mission clearStatus() { } /** - * optional .MissionStatus status = 8; + * optional .MissionStatus status = 11; * @return the status */ public MissionStatusOuterClass.MissionStatus getStatus() { @@ -169,7 +169,7 @@ public Mission setStatusValue(final int value) { } /** - * optional .MissionStatus status = 8; + * optional .MissionStatus status = 11; * @param value the status to set * @return this */ @@ -184,8 +184,8 @@ public Mission copyFrom(final Mission other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - id = other.id; progress = other.progress; + id = other.id; status = other.status; } return this; @@ -197,12 +197,12 @@ public Mission mergeFrom(final Mission other) { return this; } cachedSize = -1; - if (other.hasId()) { - setId(other.id); - } if (other.hasProgress()) { setProgress(other.progress); } + if (other.hasId()) { + setId(other.id); + } if (other.hasStatus()) { setStatusValue(other.status); } @@ -216,8 +216,8 @@ public Mission clear() { } cachedSize = -1; bitField0_ = 0; - id = 0; progress = 0; + id = 0; status = 0; return this; } @@ -242,23 +242,23 @@ public boolean equals(Object o) { } Mission other = (Mission) o; return bitField0_ == other.bitField0_ - && (!hasId() || id == other.id) && (!hasProgress() || progress == other.progress) + && (!hasId() || id == other.id) && (!hasStatus() || status == other.status); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 88); - output.writeUInt32NoTag(id); + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(progress); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 104); - output.writeUInt32NoTag(progress); + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(id); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 88); output.writeEnumNoTag(status); } } @@ -267,10 +267,10 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(id); + size += 1 + ProtoSink.computeUInt32SizeNoTag(progress); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(progress); + size += 1 + ProtoSink.computeUInt32SizeNoTag(id); } if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeEnumSizeNoTag(status); @@ -285,25 +285,25 @@ public Mission mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 88: { - // id - id = input.readUInt32(); + case 112: { + // progress + progress = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 104) { + if (tag != 120) { break; } } - case 104: { - // progress - progress = input.readUInt32(); + case 120: { + // id + id = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 64) { + if (tag != 88) { break; } } - case 64: { + case 88: { // status final int value = input.readInt32(); if (MissionStatusOuterClass.MissionStatus.forNumber(value) != null) { @@ -333,10 +333,10 @@ public Mission mergeFrom(final ProtoSource input) throws IOException { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.id, id); + output.writeUInt32(FieldNames.progress, progress); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.progress, progress); + output.writeUInt32(FieldNames.id, id); } if ((bitField0_ & 0x00000004) != 0) { output.writeEnum(FieldNames.status, status, MissionStatusOuterClass.MissionStatus.converter()); @@ -351,10 +351,10 @@ public Mission mergeFrom(final JsonSource input) throws IOException { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 3355: { - if (input.isAtField(FieldNames.id)) { + case -1001078227: { + if (input.isAtField(FieldNames.progress)) { if (!input.trySkipNullValue()) { - id = input.readUInt32(); + progress = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -362,10 +362,10 @@ public Mission mergeFrom(final JsonSource input) throws IOException { } break; } - case -1001078227: { - if (input.isAtField(FieldNames.progress)) { + case 3355: { + if (input.isAtField(FieldNames.id)) { if (!input.trySkipNullValue()) { - progress = input.readUInt32(); + id = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -441,10 +441,10 @@ public Mission create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName id = FieldName.forField("id"); - static final FieldName progress = FieldName.forField("progress"); + static final FieldName id = FieldName.forField("id"); + static final FieldName status = FieldName.forField("status"); } } diff --git a/src/generated/main/emu/lunarcore/proto/MonsterArchiveOuterClass.java b/src/generated/main/emu/lunarcore/proto/MonsterArchiveOuterClass.java index c3d184081..6f9dea1fa 100644 --- a/src/generated/main/emu/lunarcore/proto/MonsterArchiveOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/MonsterArchiveOuterClass.java @@ -19,14 +19,14 @@ public static final class MonsterArchive extends ProtoMessage im private static final long serialVersionUID = 0L; /** - * optional uint32 num = 9; + * optional uint32 monster_id = 8; */ - private int num; + private int monsterId; /** - * optional uint32 monster_id = 11; + * optional uint32 num = 14; */ - private int monsterId; + private int num; private MonsterArchive() { } @@ -39,76 +39,76 @@ public static MonsterArchive newInstance() { } /** - * optional uint32 num = 9; - * @return whether the num field is set + * optional uint32 monster_id = 8; + * @return whether the monsterId field is set */ - public boolean hasNum() { + public boolean hasMonsterId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 num = 9; + * optional uint32 monster_id = 8; * @return this */ - public MonsterArchive clearNum() { + public MonsterArchive clearMonsterId() { bitField0_ &= ~0x00000001; - num = 0; + monsterId = 0; return this; } /** - * optional uint32 num = 9; - * @return the num + * optional uint32 monster_id = 8; + * @return the monsterId */ - public int getNum() { - return num; + public int getMonsterId() { + return monsterId; } /** - * optional uint32 num = 9; - * @param value the num to set + * optional uint32 monster_id = 8; + * @param value the monsterId to set * @return this */ - public MonsterArchive setNum(final int value) { + public MonsterArchive setMonsterId(final int value) { bitField0_ |= 0x00000001; - num = value; + monsterId = value; return this; } /** - * optional uint32 monster_id = 11; - * @return whether the monsterId field is set + * optional uint32 num = 14; + * @return whether the num field is set */ - public boolean hasMonsterId() { + public boolean hasNum() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 monster_id = 11; + * optional uint32 num = 14; * @return this */ - public MonsterArchive clearMonsterId() { + public MonsterArchive clearNum() { bitField0_ &= ~0x00000002; - monsterId = 0; + num = 0; return this; } /** - * optional uint32 monster_id = 11; - * @return the monsterId + * optional uint32 num = 14; + * @return the num */ - public int getMonsterId() { - return monsterId; + public int getNum() { + return num; } /** - * optional uint32 monster_id = 11; - * @param value the monsterId to set + * optional uint32 num = 14; + * @param value the num to set * @return this */ - public MonsterArchive setMonsterId(final int value) { + public MonsterArchive setNum(final int value) { bitField0_ |= 0x00000002; - monsterId = value; + num = value; return this; } @@ -117,8 +117,8 @@ public MonsterArchive copyFrom(final MonsterArchive other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - num = other.num; monsterId = other.monsterId; + num = other.num; } return this; } @@ -129,12 +129,12 @@ public MonsterArchive mergeFrom(final MonsterArchive other) { return this; } cachedSize = -1; - if (other.hasNum()) { - setNum(other.num); - } if (other.hasMonsterId()) { setMonsterId(other.monsterId); } + if (other.hasNum()) { + setNum(other.num); + } return this; } @@ -145,8 +145,8 @@ public MonsterArchive clear() { } cachedSize = -1; bitField0_ = 0; - num = 0; monsterId = 0; + num = 0; return this; } @@ -170,19 +170,19 @@ public boolean equals(Object o) { } MonsterArchive other = (MonsterArchive) o; return bitField0_ == other.bitField0_ - && (!hasNum() || num == other.num) - && (!hasMonsterId() || monsterId == other.monsterId); + && (!hasMonsterId() || monsterId == other.monsterId) + && (!hasNum() || num == other.num); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 72); - output.writeUInt32NoTag(num); + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(monsterId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 88); - output.writeUInt32NoTag(monsterId); + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(num); } } @@ -190,10 +190,10 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(num); + size += 1 + ProtoSink.computeUInt32SizeNoTag(monsterId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(monsterId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(num); } return size; } @@ -205,18 +205,18 @@ public MonsterArchive mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 72: { - // num - num = input.readUInt32(); + case 64: { + // monsterId + monsterId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 88) { + if (tag != 112) { break; } } - case 88: { - // monsterId - monsterId = input.readUInt32(); + case 112: { + // num + num = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { @@ -241,10 +241,10 @@ public MonsterArchive mergeFrom(final ProtoSource input) throws IOException { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.num, num); + output.writeUInt32(FieldNames.monsterId, monsterId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.monsterId, monsterId); + output.writeUInt32(FieldNames.num, num); } output.endObject(); } @@ -256,10 +256,11 @@ public MonsterArchive mergeFrom(final JsonSource input) throws IOException { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 109446: { - if (input.isAtField(FieldNames.num)) { + case -1316830571: + case 2127946656: { + if (input.isAtField(FieldNames.monsterId)) { if (!input.trySkipNullValue()) { - num = input.readUInt32(); + monsterId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -267,11 +268,10 @@ public MonsterArchive mergeFrom(final JsonSource input) throws IOException { } break; } - case -1316830571: - case 2127946656: { - if (input.isAtField(FieldNames.monsterId)) { + case 109446: { + if (input.isAtField(FieldNames.num)) { if (!input.trySkipNullValue()) { - monsterId = input.readUInt32(); + num = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -332,9 +332,9 @@ public MonsterArchive create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName num = FieldName.forField("num"); - static final FieldName monsterId = FieldName.forField("monsterId", "monster_id"); + + static final FieldName num = FieldName.forField("num"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/MotionInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/MotionInfoOuterClass.java index 3d4503c4a..115aa8cd7 100644 --- a/src/generated/main/emu/lunarcore/proto/MotionInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/MotionInfoOuterClass.java @@ -19,14 +19,14 @@ public static final class MotionInfo extends ProtoMessage implements private static final long serialVersionUID = 0L; /** - * optional .Vector pos = 3; + * optional .Vector rot = 9; */ - private final VectorOuterClass.Vector pos = VectorOuterClass.Vector.newInstance(); + private final VectorOuterClass.Vector rot = VectorOuterClass.Vector.newInstance(); /** - * optional .Vector rot = 14; + * optional .Vector pos = 12; */ - private final VectorOuterClass.Vector rot = VectorOuterClass.Vector.newInstance(); + private final VectorOuterClass.Vector pos = VectorOuterClass.Vector.newInstance(); private MotionInfo() { } @@ -39,39 +39,39 @@ public static MotionInfo newInstance() { } /** - * optional .Vector pos = 3; - * @return whether the pos field is set + * optional .Vector rot = 9; + * @return whether the rot field is set */ - public boolean hasPos() { + public boolean hasRot() { return (bitField0_ & 0x00000001) != 0; } /** - * optional .Vector pos = 3; + * optional .Vector rot = 9; * @return this */ - public MotionInfo clearPos() { + public MotionInfo clearRot() { bitField0_ &= ~0x00000001; - pos.clear(); + rot.clear(); return this; } /** - * optional .Vector pos = 3; + * optional .Vector rot = 9; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutablePos()} if you want to modify it. + * Use {@link #getMutableRot()} if you want to modify it. * * @return internal storage object for reading */ - public VectorOuterClass.Vector getPos() { - return pos; + public VectorOuterClass.Vector getRot() { + return rot; } /** - * optional .Vector pos = 3; + * optional .Vector rot = 9; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -79,56 +79,56 @@ public VectorOuterClass.Vector getPos() { * * @return internal storage object for modifications */ - public VectorOuterClass.Vector getMutablePos() { + public VectorOuterClass.Vector getMutableRot() { bitField0_ |= 0x00000001; - return pos; + return rot; } /** - * optional .Vector pos = 3; - * @param value the pos to set + * optional .Vector rot = 9; + * @param value the rot to set * @return this */ - public MotionInfo setPos(final VectorOuterClass.Vector value) { + public MotionInfo setRot(final VectorOuterClass.Vector value) { bitField0_ |= 0x00000001; - pos.copyFrom(value); + rot.copyFrom(value); return this; } /** - * optional .Vector rot = 14; - * @return whether the rot field is set + * optional .Vector pos = 12; + * @return whether the pos field is set */ - public boolean hasRot() { + public boolean hasPos() { return (bitField0_ & 0x00000002) != 0; } /** - * optional .Vector rot = 14; + * optional .Vector pos = 12; * @return this */ - public MotionInfo clearRot() { + public MotionInfo clearPos() { bitField0_ &= ~0x00000002; - rot.clear(); + pos.clear(); return this; } /** - * optional .Vector rot = 14; + * optional .Vector pos = 12; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableRot()} if you want to modify it. + * Use {@link #getMutablePos()} if you want to modify it. * * @return internal storage object for reading */ - public VectorOuterClass.Vector getRot() { - return rot; + public VectorOuterClass.Vector getPos() { + return pos; } /** - * optional .Vector rot = 14; + * optional .Vector pos = 12; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -136,19 +136,19 @@ public VectorOuterClass.Vector getRot() { * * @return internal storage object for modifications */ - public VectorOuterClass.Vector getMutableRot() { + public VectorOuterClass.Vector getMutablePos() { bitField0_ |= 0x00000002; - return rot; + return pos; } /** - * optional .Vector rot = 14; - * @param value the rot to set + * optional .Vector pos = 12; + * @param value the pos to set * @return this */ - public MotionInfo setRot(final VectorOuterClass.Vector value) { + public MotionInfo setPos(final VectorOuterClass.Vector value) { bitField0_ |= 0x00000002; - rot.copyFrom(value); + pos.copyFrom(value); return this; } @@ -157,8 +157,8 @@ public MotionInfo copyFrom(final MotionInfo other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - pos.copyFrom(other.pos); rot.copyFrom(other.rot); + pos.copyFrom(other.pos); } return this; } @@ -169,12 +169,12 @@ public MotionInfo mergeFrom(final MotionInfo other) { return this; } cachedSize = -1; - if (other.hasPos()) { - getMutablePos().mergeFrom(other.pos); - } if (other.hasRot()) { getMutableRot().mergeFrom(other.rot); } + if (other.hasPos()) { + getMutablePos().mergeFrom(other.pos); + } return this; } @@ -185,8 +185,8 @@ public MotionInfo clear() { } cachedSize = -1; bitField0_ = 0; - pos.clear(); rot.clear(); + pos.clear(); return this; } @@ -197,8 +197,8 @@ public MotionInfo clearQuick() { } cachedSize = -1; bitField0_ = 0; - pos.clearQuick(); rot.clearQuick(); + pos.clearQuick(); return this; } @@ -212,19 +212,19 @@ public boolean equals(Object o) { } MotionInfo other = (MotionInfo) o; return bitField0_ == other.bitField0_ - && (!hasPos() || pos.equals(other.pos)) - && (!hasRot() || rot.equals(other.rot)); + && (!hasRot() || rot.equals(other.rot)) + && (!hasPos() || pos.equals(other.pos)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 26); - output.writeMessageNoTag(pos); + output.writeRawByte((byte) 74); + output.writeMessageNoTag(rot); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 114); - output.writeMessageNoTag(rot); + output.writeRawByte((byte) 98); + output.writeMessageNoTag(pos); } } @@ -232,10 +232,10 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(pos); + size += 1 + ProtoSink.computeMessageSizeNoTag(rot); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(rot); + size += 1 + ProtoSink.computeMessageSizeNoTag(pos); } return size; } @@ -247,18 +247,18 @@ public MotionInfo mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 26: { - // pos - input.readMessage(pos); + case 74: { + // rot + input.readMessage(rot); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 114) { + if (tag != 98) { break; } } - case 114: { - // rot - input.readMessage(rot); + case 98: { + // pos + input.readMessage(pos); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { @@ -283,10 +283,10 @@ public MotionInfo mergeFrom(final ProtoSource input) throws IOException { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeMessage(FieldNames.pos, pos); + output.writeMessage(FieldNames.rot, rot); } if ((bitField0_ & 0x00000002) != 0) { - output.writeMessage(FieldNames.rot, rot); + output.writeMessage(FieldNames.pos, pos); } output.endObject(); } @@ -298,10 +298,10 @@ public MotionInfo mergeFrom(final JsonSource input) throws IOException { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 111188: { - if (input.isAtField(FieldNames.pos)) { + case 113111: { + if (input.isAtField(FieldNames.rot)) { if (!input.trySkipNullValue()) { - input.readMessage(pos); + input.readMessage(rot); bitField0_ |= 0x00000001; } } else { @@ -309,10 +309,10 @@ public MotionInfo mergeFrom(final JsonSource input) throws IOException { } break; } - case 113111: { - if (input.isAtField(FieldNames.rot)) { + case 111188: { + if (input.isAtField(FieldNames.pos)) { if (!input.trySkipNullValue()) { - input.readMessage(rot); + input.readMessage(pos); bitField0_ |= 0x00000002; } } else { @@ -372,9 +372,9 @@ public MotionInfo create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName pos = FieldName.forField("pos"); - static final FieldName rot = FieldName.forField("rot"); + + static final FieldName pos = FieldName.forField("pos"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/NpcExtraInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/NpcExtraInfoOuterClass.java index a904fce1c..f21dda3df 100644 --- a/src/generated/main/emu/lunarcore/proto/NpcExtraInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/NpcExtraInfoOuterClass.java @@ -33,17 +33,6 @@ public static NpcExtraInfo newInstance() { return new NpcExtraInfo(); } - public boolean hasInfo() { - return (((bitField0_ & 0x00000001)) != 0); - } - - public NpcExtraInfo clearInfo() { - if (hasInfo()) { - clearRogueInfo(); - } - return this; - } - /** * optional .NpcRogueInfo rogue_info = 12; * @return whether the rogueInfo field is set diff --git a/src/generated/main/emu/lunarcore/proto/NpcTalkInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/NpcTalkInfoOuterClass.java index 9e746b4ab..f51305990 100644 --- a/src/generated/main/emu/lunarcore/proto/NpcTalkInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/NpcTalkInfoOuterClass.java @@ -19,7 +19,7 @@ public static final class NpcTalkInfo extends ProtoMessage implemen private static final long serialVersionUID = 0L; /** - * optional uint32 npc_talk_id = 14; + * optional uint32 npc_talk_id = 4; */ private int npcTalkId; @@ -34,7 +34,7 @@ public static NpcTalkInfo newInstance() { } /** - * optional uint32 npc_talk_id = 14; + * optional uint32 npc_talk_id = 4; * @return whether the npcTalkId field is set */ public boolean hasNpcTalkId() { @@ -42,7 +42,7 @@ public boolean hasNpcTalkId() { } /** - * optional uint32 npc_talk_id = 14; + * optional uint32 npc_talk_id = 4; * @return this */ public NpcTalkInfo clearNpcTalkId() { @@ -52,7 +52,7 @@ public NpcTalkInfo clearNpcTalkId() { } /** - * optional uint32 npc_talk_id = 14; + * optional uint32 npc_talk_id = 4; * @return the npcTalkId */ public int getNpcTalkId() { @@ -60,7 +60,7 @@ public int getNpcTalkId() { } /** - * optional uint32 npc_talk_id = 14; + * optional uint32 npc_talk_id = 4; * @param value the npcTalkId to set * @return this */ @@ -129,7 +129,7 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(npcTalkId); } } @@ -150,7 +150,7 @@ public NpcTalkInfo mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 112: { + case 32: { // npcTalkId npcTalkId = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/PVEBattleResultCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/PVEBattleResultCsReqOuterClass.java index adfadc9b3..4da1fddc4 100644 --- a/src/generated/main/emu/lunarcore/proto/PVEBattleResultCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/PVEBattleResultCsReqOuterClass.java @@ -21,47 +21,47 @@ public static final class PVEBattleResultCsReq extends ProtoMessageoptional uint32 battle_id = 1; + * optional uint32 stage_id = 2; */ - private int battleId; + private int stageId; /** - * optional uint32 cost_time = 5; + * optional uint32 battle_id = 10; */ - private int costTime; + private int battleId; /** - * optional uint32 stage_id = 7; + * optional uint32 client_res_version = 12; */ - private int stageId; + private int clientResVersion; /** - * optional uint32 client_res_version = 10; + * optional uint32 cost_time = 14; */ - private int clientResVersion; + private int costTime; /** - * optional .BattleEndStatus end_status = 13; + * optional .BattleEndStatus end_status = 11; */ private int endStatus; /** - * optional bool is_ai_consider_ultra_skill = 9; + * optional bool is_ai_consider_ultra_skill = 13; */ private boolean isAiConsiderUltraSkill; /** - * optional .BattleStatistics stt = 8; + * optional .BattleStatistics stt = 1; */ private final BattleStatisticsOuterClass.BattleStatistics stt = BattleStatisticsOuterClass.BattleStatistics.newInstance(); /** - * optional bytes turn_snapshot_hash = 2; + * optional bytes turn_snapshot_hash = 3; */ private final RepeatedByte turnSnapshotHash = RepeatedByte.newEmptyInstance(); /** - * repeated .BattleOp op_list = 6; + * repeated .BattleOp op_list = 4; */ private final RepeatedMessage opList = RepeatedMessage.newEmptyInstance(BattleOpOuterClass.BattleOp.getFactory()); @@ -76,155 +76,155 @@ public static PVEBattleResultCsReq newInstance() { } /** - * optional uint32 battle_id = 1; - * @return whether the battleId field is set + * optional uint32 stage_id = 2; + * @return whether the stageId field is set */ - public boolean hasBattleId() { + public boolean hasStageId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 battle_id = 1; + * optional uint32 stage_id = 2; * @return this */ - public PVEBattleResultCsReq clearBattleId() { + public PVEBattleResultCsReq clearStageId() { bitField0_ &= ~0x00000001; - battleId = 0; + stageId = 0; return this; } /** - * optional uint32 battle_id = 1; - * @return the battleId + * optional uint32 stage_id = 2; + * @return the stageId */ - public int getBattleId() { - return battleId; + public int getStageId() { + return stageId; } /** - * optional uint32 battle_id = 1; - * @param value the battleId to set + * optional uint32 stage_id = 2; + * @param value the stageId to set * @return this */ - public PVEBattleResultCsReq setBattleId(final int value) { + public PVEBattleResultCsReq setStageId(final int value) { bitField0_ |= 0x00000001; - battleId = value; + stageId = value; return this; } /** - * optional uint32 cost_time = 5; - * @return whether the costTime field is set + * optional uint32 battle_id = 10; + * @return whether the battleId field is set */ - public boolean hasCostTime() { + public boolean hasBattleId() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 cost_time = 5; + * optional uint32 battle_id = 10; * @return this */ - public PVEBattleResultCsReq clearCostTime() { + public PVEBattleResultCsReq clearBattleId() { bitField0_ &= ~0x00000002; - costTime = 0; + battleId = 0; return this; } /** - * optional uint32 cost_time = 5; - * @return the costTime + * optional uint32 battle_id = 10; + * @return the battleId */ - public int getCostTime() { - return costTime; + public int getBattleId() { + return battleId; } /** - * optional uint32 cost_time = 5; - * @param value the costTime to set + * optional uint32 battle_id = 10; + * @param value the battleId to set * @return this */ - public PVEBattleResultCsReq setCostTime(final int value) { + public PVEBattleResultCsReq setBattleId(final int value) { bitField0_ |= 0x00000002; - costTime = value; + battleId = value; return this; } /** - * optional uint32 stage_id = 7; - * @return whether the stageId field is set + * optional uint32 client_res_version = 12; + * @return whether the clientResVersion field is set */ - public boolean hasStageId() { + public boolean hasClientResVersion() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 stage_id = 7; + * optional uint32 client_res_version = 12; * @return this */ - public PVEBattleResultCsReq clearStageId() { + public PVEBattleResultCsReq clearClientResVersion() { bitField0_ &= ~0x00000004; - stageId = 0; + clientResVersion = 0; return this; } /** - * optional uint32 stage_id = 7; - * @return the stageId + * optional uint32 client_res_version = 12; + * @return the clientResVersion */ - public int getStageId() { - return stageId; + public int getClientResVersion() { + return clientResVersion; } /** - * optional uint32 stage_id = 7; - * @param value the stageId to set + * optional uint32 client_res_version = 12; + * @param value the clientResVersion to set * @return this */ - public PVEBattleResultCsReq setStageId(final int value) { + public PVEBattleResultCsReq setClientResVersion(final int value) { bitField0_ |= 0x00000004; - stageId = value; + clientResVersion = value; return this; } /** - * optional uint32 client_res_version = 10; - * @return whether the clientResVersion field is set + * optional uint32 cost_time = 14; + * @return whether the costTime field is set */ - public boolean hasClientResVersion() { + public boolean hasCostTime() { return (bitField0_ & 0x00000008) != 0; } /** - * optional uint32 client_res_version = 10; + * optional uint32 cost_time = 14; * @return this */ - public PVEBattleResultCsReq clearClientResVersion() { + public PVEBattleResultCsReq clearCostTime() { bitField0_ &= ~0x00000008; - clientResVersion = 0; + costTime = 0; return this; } /** - * optional uint32 client_res_version = 10; - * @return the clientResVersion + * optional uint32 cost_time = 14; + * @return the costTime */ - public int getClientResVersion() { - return clientResVersion; + public int getCostTime() { + return costTime; } /** - * optional uint32 client_res_version = 10; - * @param value the clientResVersion to set + * optional uint32 cost_time = 14; + * @param value the costTime to set * @return this */ - public PVEBattleResultCsReq setClientResVersion(final int value) { + public PVEBattleResultCsReq setCostTime(final int value) { bitField0_ |= 0x00000008; - clientResVersion = value; + costTime = value; return this; } /** - * optional .BattleEndStatus end_status = 13; + * optional .BattleEndStatus end_status = 11; * @return whether the endStatus field is set */ public boolean hasEndStatus() { @@ -232,7 +232,7 @@ public boolean hasEndStatus() { } /** - * optional .BattleEndStatus end_status = 13; + * optional .BattleEndStatus end_status = 11; * @return this */ public PVEBattleResultCsReq clearEndStatus() { @@ -242,7 +242,7 @@ public PVEBattleResultCsReq clearEndStatus() { } /** - * optional .BattleEndStatus end_status = 13; + * optional .BattleEndStatus end_status = 11; * @return the endStatus */ public BattleEndStatusOuterClass.BattleEndStatus getEndStatus() { @@ -275,7 +275,7 @@ public PVEBattleResultCsReq setEndStatusValue(final int value) { } /** - * optional .BattleEndStatus end_status = 13; + * optional .BattleEndStatus end_status = 11; * @param value the endStatus to set * @return this */ @@ -287,7 +287,7 @@ public PVEBattleResultCsReq setEndStatus( } /** - * optional bool is_ai_consider_ultra_skill = 9; + * optional bool is_ai_consider_ultra_skill = 13; * @return whether the isAiConsiderUltraSkill field is set */ public boolean hasIsAiConsiderUltraSkill() { @@ -295,7 +295,7 @@ public boolean hasIsAiConsiderUltraSkill() { } /** - * optional bool is_ai_consider_ultra_skill = 9; + * optional bool is_ai_consider_ultra_skill = 13; * @return this */ public PVEBattleResultCsReq clearIsAiConsiderUltraSkill() { @@ -305,7 +305,7 @@ public PVEBattleResultCsReq clearIsAiConsiderUltraSkill() { } /** - * optional bool is_ai_consider_ultra_skill = 9; + * optional bool is_ai_consider_ultra_skill = 13; * @return the isAiConsiderUltraSkill */ public boolean getIsAiConsiderUltraSkill() { @@ -313,7 +313,7 @@ public boolean getIsAiConsiderUltraSkill() { } /** - * optional bool is_ai_consider_ultra_skill = 9; + * optional bool is_ai_consider_ultra_skill = 13; * @param value the isAiConsiderUltraSkill to set * @return this */ @@ -324,7 +324,7 @@ public PVEBattleResultCsReq setIsAiConsiderUltraSkill(final boolean value) { } /** - * optional .BattleStatistics stt = 8; + * optional .BattleStatistics stt = 1; * @return whether the stt field is set */ public boolean hasStt() { @@ -332,7 +332,7 @@ public boolean hasStt() { } /** - * optional .BattleStatistics stt = 8; + * optional .BattleStatistics stt = 1; * @return this */ public PVEBattleResultCsReq clearStt() { @@ -342,7 +342,7 @@ public PVEBattleResultCsReq clearStt() { } /** - * optional .BattleStatistics stt = 8; + * optional .BattleStatistics stt = 1; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -356,7 +356,7 @@ public BattleStatisticsOuterClass.BattleStatistics getStt() { } /** - * optional .BattleStatistics stt = 8; + * optional .BattleStatistics stt = 1; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -370,7 +370,7 @@ public BattleStatisticsOuterClass.BattleStatistics getMutableStt() { } /** - * optional .BattleStatistics stt = 8; + * optional .BattleStatistics stt = 1; * @param value the stt to set * @return this */ @@ -381,7 +381,7 @@ public PVEBattleResultCsReq setStt(final BattleStatisticsOuterClass.BattleStatis } /** - * optional bytes turn_snapshot_hash = 2; + * optional bytes turn_snapshot_hash = 3; * @return whether the turnSnapshotHash field is set */ public boolean hasTurnSnapshotHash() { @@ -389,7 +389,7 @@ public boolean hasTurnSnapshotHash() { } /** - * optional bytes turn_snapshot_hash = 2; + * optional bytes turn_snapshot_hash = 3; * @return this */ public PVEBattleResultCsReq clearTurnSnapshotHash() { @@ -399,7 +399,7 @@ public PVEBattleResultCsReq clearTurnSnapshotHash() { } /** - * optional bytes turn_snapshot_hash = 2; + * optional bytes turn_snapshot_hash = 3; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -413,7 +413,7 @@ public RepeatedByte getTurnSnapshotHash() { } /** - * optional bytes turn_snapshot_hash = 2; + * optional bytes turn_snapshot_hash = 3; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -427,7 +427,7 @@ public RepeatedByte getMutableTurnSnapshotHash() { } /** - * optional bytes turn_snapshot_hash = 2; + * optional bytes turn_snapshot_hash = 3; * @param value the turnSnapshotHash to add * @return this */ @@ -438,7 +438,7 @@ public PVEBattleResultCsReq addTurnSnapshotHash(final byte value) { } /** - * optional bytes turn_snapshot_hash = 2; + * optional bytes turn_snapshot_hash = 3; * @param values the turnSnapshotHash to add * @return this */ @@ -449,7 +449,7 @@ public PVEBattleResultCsReq addAllTurnSnapshotHash(final byte... values) { } /** - * optional bytes turn_snapshot_hash = 2; + * optional bytes turn_snapshot_hash = 3; * @param values the turnSnapshotHash to set * @return this */ @@ -460,7 +460,7 @@ public PVEBattleResultCsReq setTurnSnapshotHash(final byte... values) { } /** - * repeated .BattleOp op_list = 6; + * repeated .BattleOp op_list = 4; * @return whether the opList field is set */ public boolean hasOpList() { @@ -468,7 +468,7 @@ public boolean hasOpList() { } /** - * repeated .BattleOp op_list = 6; + * repeated .BattleOp op_list = 4; * @return this */ public PVEBattleResultCsReq clearOpList() { @@ -478,7 +478,7 @@ public PVEBattleResultCsReq clearOpList() { } /** - * repeated .BattleOp op_list = 6; + * repeated .BattleOp op_list = 4; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -492,7 +492,7 @@ public RepeatedMessage getOpList() { } /** - * repeated .BattleOp op_list = 6; + * repeated .BattleOp op_list = 4; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -506,7 +506,7 @@ public RepeatedMessage getMutableOpList() { } /** - * repeated .BattleOp op_list = 6; + * repeated .BattleOp op_list = 4; * @param value the opList to add * @return this */ @@ -517,7 +517,7 @@ public PVEBattleResultCsReq addOpList(final BattleOpOuterClass.BattleOp value) { } /** - * repeated .BattleOp op_list = 6; + * repeated .BattleOp op_list = 4; * @param values the opList to add * @return this */ @@ -532,10 +532,10 @@ public PVEBattleResultCsReq copyFrom(final PVEBattleResultCsReq other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - battleId = other.battleId; - costTime = other.costTime; stageId = other.stageId; + battleId = other.battleId; clientResVersion = other.clientResVersion; + costTime = other.costTime; endStatus = other.endStatus; isAiConsiderUltraSkill = other.isAiConsiderUltraSkill; stt.copyFrom(other.stt); @@ -551,18 +551,18 @@ public PVEBattleResultCsReq mergeFrom(final PVEBattleResultCsReq other) { return this; } cachedSize = -1; - if (other.hasBattleId()) { - setBattleId(other.battleId); - } - if (other.hasCostTime()) { - setCostTime(other.costTime); - } if (other.hasStageId()) { setStageId(other.stageId); } + if (other.hasBattleId()) { + setBattleId(other.battleId); + } if (other.hasClientResVersion()) { setClientResVersion(other.clientResVersion); } + if (other.hasCostTime()) { + setCostTime(other.costTime); + } if (other.hasEndStatus()) { setEndStatusValue(other.endStatus); } @@ -588,10 +588,10 @@ public PVEBattleResultCsReq clear() { } cachedSize = -1; bitField0_ = 0; - battleId = 0; - costTime = 0; stageId = 0; + battleId = 0; clientResVersion = 0; + costTime = 0; endStatus = 0; isAiConsiderUltraSkill = false; stt.clear(); @@ -623,10 +623,10 @@ public boolean equals(Object o) { } PVEBattleResultCsReq other = (PVEBattleResultCsReq) o; return bitField0_ == other.bitField0_ - && (!hasBattleId() || battleId == other.battleId) - && (!hasCostTime() || costTime == other.costTime) && (!hasStageId() || stageId == other.stageId) + && (!hasBattleId() || battleId == other.battleId) && (!hasClientResVersion() || clientResVersion == other.clientResVersion) + && (!hasCostTime() || costTime == other.costTime) && (!hasEndStatus() || endStatus == other.endStatus) && (!hasIsAiConsiderUltraSkill() || isAiConsiderUltraSkill == other.isAiConsiderUltraSkill) && (!hasStt() || stt.equals(other.stt)) @@ -637,40 +637,40 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(battleId); + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(stageId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 40); - output.writeUInt32NoTag(costTime); + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(battleId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 56); - output.writeUInt32NoTag(stageId); + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(clientResVersion); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 80); - output.writeUInt32NoTag(clientResVersion); + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(costTime); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 88); output.writeEnumNoTag(endStatus); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 72); + output.writeRawByte((byte) 104); output.writeBoolNoTag(isAiConsiderUltraSkill); } if ((bitField0_ & 0x00000040) != 0) { - output.writeRawByte((byte) 66); + output.writeRawByte((byte) 10); output.writeMessageNoTag(stt); } if ((bitField0_ & 0x00000080) != 0) { - output.writeRawByte((byte) 18); + output.writeRawByte((byte) 26); output.writeBytesNoTag(turnSnapshotHash); } if ((bitField0_ & 0x00000100) != 0) { for (int i = 0; i < opList.length(); i++) { - output.writeRawByte((byte) 50); + output.writeRawByte((byte) 34); output.writeMessageNoTag(opList.get(i)); } } @@ -680,16 +680,16 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(battleId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(stageId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(costTime); + size += 1 + ProtoSink.computeUInt32SizeNoTag(battleId); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(stageId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(clientResVersion); } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(clientResVersion); + size += 1 + ProtoSink.computeUInt32SizeNoTag(costTime); } if ((bitField0_ & 0x00000010) != 0) { size += 1 + ProtoSink.computeEnumSizeNoTag(endStatus); @@ -716,43 +716,43 @@ public PVEBattleResultCsReq mergeFrom(final ProtoSource input) throws IOExceptio int tag = input.readTag(); while (true) { switch (tag) { - case 8: { - // battleId - battleId = input.readUInt32(); + case 16: { + // stageId + stageId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 40) { + if (tag != 80) { break; } } - case 40: { - // costTime - costTime = input.readUInt32(); + case 80: { + // battleId + battleId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 56) { + if (tag != 96) { break; } } - case 56: { - // stageId - stageId = input.readUInt32(); + case 96: { + // clientResVersion + clientResVersion = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 80) { + if (tag != 112) { break; } } - case 80: { - // clientResVersion - clientResVersion = input.readUInt32(); + case 112: { + // costTime + costTime = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 104) { + if (tag != 88) { break; } } - case 104: { + case 88: { // endStatus final int value = input.readInt32(); if (BattleEndStatusOuterClass.BattleEndStatus.forNumber(value) != null) { @@ -760,38 +760,38 @@ public PVEBattleResultCsReq mergeFrom(final ProtoSource input) throws IOExceptio bitField0_ |= 0x00000010; } tag = input.readTag(); - if (tag != 72) { + if (tag != 104) { break; } } - case 72: { + case 104: { // isAiConsiderUltraSkill isAiConsiderUltraSkill = input.readBool(); bitField0_ |= 0x00000020; tag = input.readTag(); - if (tag != 66) { + if (tag != 10) { break; } } - case 66: { + case 10: { // stt input.readMessage(stt); bitField0_ |= 0x00000040; tag = input.readTag(); - if (tag != 18) { + if (tag != 26) { break; } } - case 18: { + case 26: { // turnSnapshotHash input.readBytes(turnSnapshotHash); bitField0_ |= 0x00000080; tag = input.readTag(); - if (tag != 50) { + if (tag != 34) { break; } } - case 50: { + case 34: { // opList tag = input.readRepeatedMessage(opList, tag); bitField0_ |= 0x00000100; @@ -817,16 +817,16 @@ public PVEBattleResultCsReq mergeFrom(final ProtoSource input) throws IOExceptio public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.battleId, battleId); + output.writeUInt32(FieldNames.stageId, stageId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.costTime, costTime); + output.writeUInt32(FieldNames.battleId, battleId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.stageId, stageId); + output.writeUInt32(FieldNames.clientResVersion, clientResVersion); } if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.clientResVersion, clientResVersion); + output.writeUInt32(FieldNames.costTime, costTime); } if ((bitField0_ & 0x00000010) != 0) { output.writeEnum(FieldNames.endStatus, endStatus, BattleEndStatusOuterClass.BattleEndStatus.converter()); @@ -853,11 +853,11 @@ public PVEBattleResultCsReq mergeFrom(final JsonSource input) throws IOException } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -1678308365: - case -487930366: { - if (input.isAtField(FieldNames.battleId)) { + case -1897528135: + case 1306191356: { + if (input.isAtField(FieldNames.stageId)) { if (!input.trySkipNullValue()) { - battleId = input.readUInt32(); + stageId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -865,11 +865,11 @@ public PVEBattleResultCsReq mergeFrom(final JsonSource input) throws IOException } break; } - case -424687558: - case -269929473: { - if (input.isAtField(FieldNames.costTime)) { + case -1678308365: + case -487930366: { + if (input.isAtField(FieldNames.battleId)) { if (!input.trySkipNullValue()) { - costTime = input.readUInt32(); + battleId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -877,11 +877,11 @@ public PVEBattleResultCsReq mergeFrom(final JsonSource input) throws IOException } break; } - case -1897528135: - case 1306191356: { - if (input.isAtField(FieldNames.stageId)) { + case -2005674429: + case -349907515: { + if (input.isAtField(FieldNames.clientResVersion)) { if (!input.trySkipNullValue()) { - stageId = input.readUInt32(); + clientResVersion = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -889,11 +889,11 @@ public PVEBattleResultCsReq mergeFrom(final JsonSource input) throws IOException } break; } - case -2005674429: - case -349907515: { - if (input.isAtField(FieldNames.clientResVersion)) { + case -424687558: + case -269929473: { + if (input.isAtField(FieldNames.costTime)) { if (!input.trySkipNullValue()) { - clientResVersion = input.readUInt32(); + costTime = input.readUInt32(); bitField0_ |= 0x00000008; } } else { @@ -1018,14 +1018,14 @@ public PVEBattleResultCsReq create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName battleId = FieldName.forField("battleId", "battle_id"); - - static final FieldName costTime = FieldName.forField("costTime", "cost_time"); - static final FieldName stageId = FieldName.forField("stageId", "stage_id"); + static final FieldName battleId = FieldName.forField("battleId", "battle_id"); + static final FieldName clientResVersion = FieldName.forField("clientResVersion", "client_res_version"); + static final FieldName costTime = FieldName.forField("costTime", "cost_time"); + static final FieldName endStatus = FieldName.forField("endStatus", "end_status"); static final FieldName isAiConsiderUltraSkill = FieldName.forField("isAiConsiderUltraSkill", "is_ai_consider_ultra_skill"); diff --git a/src/generated/main/emu/lunarcore/proto/PVEBattleResultScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/PVEBattleResultScRspOuterClass.java index 56283a20b..9888a894f 100644 --- a/src/generated/main/emu/lunarcore/proto/PVEBattleResultScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/PVEBattleResultScRspOuterClass.java @@ -21,72 +21,72 @@ public static final class PVEBattleResultScRsp extends ProtoMessageoptional uint32 event_id = 4; + * optional uint32 mismatch_turn_count = 2; */ - private int eventId; + private int mismatchTurnCount; /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 3; */ private int retcode; /** - * optional uint32 battle_id = 9; + * optional uint32 battle_id = 10; */ private int battleId; /** - * optional uint32 stage_id = 10; + * optional uint32 event_id = 12; */ - private int stageId; + private int eventId; /** - * optional uint32 mismatch_turn_count = 14; + * optional uint32 stage_id = 15; */ - private int mismatchTurnCount; + private int stageId; /** - * optional .BattleEndStatus end_status = 13; + * optional .BattleEndStatus end_status = 5; */ private int endStatus; /** - * optional bool check_identical = 15; + * optional bool check_identical = 1; */ private boolean checkIdentical; /** - * optional .ItemList drop_data = 3; + * optional .ItemList drop_data = 8; */ private final ItemListOuterClass.ItemList dropData = ItemListOuterClass.ItemList.newInstance(); /** - * optional .ItemList unk1 = 11; + * optional .ItemList unk1 = 9; */ private final ItemListOuterClass.ItemList unk1 = ItemListOuterClass.ItemList.newInstance(); /** - * optional .ItemList extra_drop_data = 12; + * optional .ItemList unk2 = 14; */ - private final ItemListOuterClass.ItemList extraDropData = ItemListOuterClass.ItemList.newInstance(); + private final ItemListOuterClass.ItemList unk2 = ItemListOuterClass.ItemList.newInstance(); /** - * optional .ItemList unk2 = 355; + * optional .ItemList unk3 = 743; */ - private final ItemListOuterClass.ItemList unk2 = ItemListOuterClass.ItemList.newInstance(); + private final ItemListOuterClass.ItemList unk3 = ItemListOuterClass.ItemList.newInstance(); /** - * optional string bin_version = 7; + * optional string bin_version = 11; */ private final Utf8String binVersion = Utf8String.newEmptyInstance(); /** - * optional string res_version = 8; + * optional string res_version = 13; */ private final Utf8String resVersion = Utf8String.newEmptyInstance(); /** - * repeated .BattleAvatar battle_avatar_list = 6; + * repeated .BattleAvatar battle_avatar_list = 4; */ private final RepeatedMessage battleAvatarList = RepeatedMessage.newEmptyInstance(BattleAvatarOuterClass.BattleAvatar.getFactory()); @@ -101,44 +101,44 @@ public static PVEBattleResultScRsp newInstance() { } /** - * optional uint32 event_id = 4; - * @return whether the eventId field is set + * optional uint32 mismatch_turn_count = 2; + * @return whether the mismatchTurnCount field is set */ - public boolean hasEventId() { + public boolean hasMismatchTurnCount() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 event_id = 4; + * optional uint32 mismatch_turn_count = 2; * @return this */ - public PVEBattleResultScRsp clearEventId() { + public PVEBattleResultScRsp clearMismatchTurnCount() { bitField0_ &= ~0x00000001; - eventId = 0; + mismatchTurnCount = 0; return this; } /** - * optional uint32 event_id = 4; - * @return the eventId + * optional uint32 mismatch_turn_count = 2; + * @return the mismatchTurnCount */ - public int getEventId() { - return eventId; + public int getMismatchTurnCount() { + return mismatchTurnCount; } /** - * optional uint32 event_id = 4; - * @param value the eventId to set + * optional uint32 mismatch_turn_count = 2; + * @param value the mismatchTurnCount to set * @return this */ - public PVEBattleResultScRsp setEventId(final int value) { + public PVEBattleResultScRsp setMismatchTurnCount(final int value) { bitField0_ |= 0x00000001; - eventId = value; + mismatchTurnCount = value; return this; } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 3; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -146,7 +146,7 @@ public boolean hasRetcode() { } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 3; * @return this */ public PVEBattleResultScRsp clearRetcode() { @@ -156,7 +156,7 @@ public PVEBattleResultScRsp clearRetcode() { } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 3; * @return the retcode */ public int getRetcode() { @@ -164,7 +164,7 @@ public int getRetcode() { } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 3; * @param value the retcode to set * @return this */ @@ -175,7 +175,7 @@ public PVEBattleResultScRsp setRetcode(final int value) { } /** - * optional uint32 battle_id = 9; + * optional uint32 battle_id = 10; * @return whether the battleId field is set */ public boolean hasBattleId() { @@ -183,7 +183,7 @@ public boolean hasBattleId() { } /** - * optional uint32 battle_id = 9; + * optional uint32 battle_id = 10; * @return this */ public PVEBattleResultScRsp clearBattleId() { @@ -193,7 +193,7 @@ public PVEBattleResultScRsp clearBattleId() { } /** - * optional uint32 battle_id = 9; + * optional uint32 battle_id = 10; * @return the battleId */ public int getBattleId() { @@ -201,7 +201,7 @@ public int getBattleId() { } /** - * optional uint32 battle_id = 9; + * optional uint32 battle_id = 10; * @param value the battleId to set * @return this */ @@ -212,81 +212,81 @@ public PVEBattleResultScRsp setBattleId(final int value) { } /** - * optional uint32 stage_id = 10; - * @return whether the stageId field is set + * optional uint32 event_id = 12; + * @return whether the eventId field is set */ - public boolean hasStageId() { + public boolean hasEventId() { return (bitField0_ & 0x00000008) != 0; } /** - * optional uint32 stage_id = 10; + * optional uint32 event_id = 12; * @return this */ - public PVEBattleResultScRsp clearStageId() { + public PVEBattleResultScRsp clearEventId() { bitField0_ &= ~0x00000008; - stageId = 0; + eventId = 0; return this; } /** - * optional uint32 stage_id = 10; - * @return the stageId + * optional uint32 event_id = 12; + * @return the eventId */ - public int getStageId() { - return stageId; + public int getEventId() { + return eventId; } /** - * optional uint32 stage_id = 10; - * @param value the stageId to set + * optional uint32 event_id = 12; + * @param value the eventId to set * @return this */ - public PVEBattleResultScRsp setStageId(final int value) { + public PVEBattleResultScRsp setEventId(final int value) { bitField0_ |= 0x00000008; - stageId = value; + eventId = value; return this; } /** - * optional uint32 mismatch_turn_count = 14; - * @return whether the mismatchTurnCount field is set + * optional uint32 stage_id = 15; + * @return whether the stageId field is set */ - public boolean hasMismatchTurnCount() { + public boolean hasStageId() { return (bitField0_ & 0x00000010) != 0; } /** - * optional uint32 mismatch_turn_count = 14; + * optional uint32 stage_id = 15; * @return this */ - public PVEBattleResultScRsp clearMismatchTurnCount() { + public PVEBattleResultScRsp clearStageId() { bitField0_ &= ~0x00000010; - mismatchTurnCount = 0; + stageId = 0; return this; } /** - * optional uint32 mismatch_turn_count = 14; - * @return the mismatchTurnCount + * optional uint32 stage_id = 15; + * @return the stageId */ - public int getMismatchTurnCount() { - return mismatchTurnCount; + public int getStageId() { + return stageId; } /** - * optional uint32 mismatch_turn_count = 14; - * @param value the mismatchTurnCount to set + * optional uint32 stage_id = 15; + * @param value the stageId to set * @return this */ - public PVEBattleResultScRsp setMismatchTurnCount(final int value) { + public PVEBattleResultScRsp setStageId(final int value) { bitField0_ |= 0x00000010; - mismatchTurnCount = value; + stageId = value; return this; } /** - * optional .BattleEndStatus end_status = 13; + * optional .BattleEndStatus end_status = 5; * @return whether the endStatus field is set */ public boolean hasEndStatus() { @@ -294,7 +294,7 @@ public boolean hasEndStatus() { } /** - * optional .BattleEndStatus end_status = 13; + * optional .BattleEndStatus end_status = 5; * @return this */ public PVEBattleResultScRsp clearEndStatus() { @@ -304,7 +304,7 @@ public PVEBattleResultScRsp clearEndStatus() { } /** - * optional .BattleEndStatus end_status = 13; + * optional .BattleEndStatus end_status = 5; * @return the endStatus */ public BattleEndStatusOuterClass.BattleEndStatus getEndStatus() { @@ -337,7 +337,7 @@ public PVEBattleResultScRsp setEndStatusValue(final int value) { } /** - * optional .BattleEndStatus end_status = 13; + * optional .BattleEndStatus end_status = 5; * @param value the endStatus to set * @return this */ @@ -349,7 +349,7 @@ public PVEBattleResultScRsp setEndStatus( } /** - * optional bool check_identical = 15; + * optional bool check_identical = 1; * @return whether the checkIdentical field is set */ public boolean hasCheckIdentical() { @@ -357,7 +357,7 @@ public boolean hasCheckIdentical() { } /** - * optional bool check_identical = 15; + * optional bool check_identical = 1; * @return this */ public PVEBattleResultScRsp clearCheckIdentical() { @@ -367,7 +367,7 @@ public PVEBattleResultScRsp clearCheckIdentical() { } /** - * optional bool check_identical = 15; + * optional bool check_identical = 1; * @return the checkIdentical */ public boolean getCheckIdentical() { @@ -375,7 +375,7 @@ public boolean getCheckIdentical() { } /** - * optional bool check_identical = 15; + * optional bool check_identical = 1; * @param value the checkIdentical to set * @return this */ @@ -386,7 +386,7 @@ public PVEBattleResultScRsp setCheckIdentical(final boolean value) { } /** - * optional .ItemList drop_data = 3; + * optional .ItemList drop_data = 8; * @return whether the dropData field is set */ public boolean hasDropData() { @@ -394,7 +394,7 @@ public boolean hasDropData() { } /** - * optional .ItemList drop_data = 3; + * optional .ItemList drop_data = 8; * @return this */ public PVEBattleResultScRsp clearDropData() { @@ -404,7 +404,7 @@ public PVEBattleResultScRsp clearDropData() { } /** - * optional .ItemList drop_data = 3; + * optional .ItemList drop_data = 8; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -418,7 +418,7 @@ public ItemListOuterClass.ItemList getDropData() { } /** - * optional .ItemList drop_data = 3; + * optional .ItemList drop_data = 8; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -432,7 +432,7 @@ public ItemListOuterClass.ItemList getMutableDropData() { } /** - * optional .ItemList drop_data = 3; + * optional .ItemList drop_data = 8; * @param value the dropData to set * @return this */ @@ -443,7 +443,7 @@ public PVEBattleResultScRsp setDropData(final ItemListOuterClass.ItemList value) } /** - * optional .ItemList unk1 = 11; + * optional .ItemList unk1 = 9; * @return whether the unk1 field is set */ public boolean hasUnk1() { @@ -451,7 +451,7 @@ public boolean hasUnk1() { } /** - * optional .ItemList unk1 = 11; + * optional .ItemList unk1 = 9; * @return this */ public PVEBattleResultScRsp clearUnk1() { @@ -461,7 +461,7 @@ public PVEBattleResultScRsp clearUnk1() { } /** - * optional .ItemList unk1 = 11; + * optional .ItemList unk1 = 9; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -475,7 +475,7 @@ public ItemListOuterClass.ItemList getUnk1() { } /** - * optional .ItemList unk1 = 11; + * optional .ItemList unk1 = 9; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -489,7 +489,7 @@ public ItemListOuterClass.ItemList getMutableUnk1() { } /** - * optional .ItemList unk1 = 11; + * optional .ItemList unk1 = 9; * @param value the unk1 to set * @return this */ @@ -500,39 +500,39 @@ public PVEBattleResultScRsp setUnk1(final ItemListOuterClass.ItemList value) { } /** - * optional .ItemList extra_drop_data = 12; - * @return whether the extraDropData field is set + * optional .ItemList unk2 = 14; + * @return whether the unk2 field is set */ - public boolean hasExtraDropData() { + public boolean hasUnk2() { return (bitField0_ & 0x00000200) != 0; } /** - * optional .ItemList extra_drop_data = 12; + * optional .ItemList unk2 = 14; * @return this */ - public PVEBattleResultScRsp clearExtraDropData() { + public PVEBattleResultScRsp clearUnk2() { bitField0_ &= ~0x00000200; - extraDropData.clear(); + unk2.clear(); return this; } /** - * optional .ItemList extra_drop_data = 12; + * optional .ItemList unk2 = 14; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableExtraDropData()} if you want to modify it. + * Use {@link #getMutableUnk2()} if you want to modify it. * * @return internal storage object for reading */ - public ItemListOuterClass.ItemList getExtraDropData() { - return extraDropData; + public ItemListOuterClass.ItemList getUnk2() { + return unk2; } /** - * optional .ItemList extra_drop_data = 12; + * optional .ItemList unk2 = 14; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -540,56 +540,56 @@ public ItemListOuterClass.ItemList getExtraDropData() { * * @return internal storage object for modifications */ - public ItemListOuterClass.ItemList getMutableExtraDropData() { + public ItemListOuterClass.ItemList getMutableUnk2() { bitField0_ |= 0x00000200; - return extraDropData; + return unk2; } /** - * optional .ItemList extra_drop_data = 12; - * @param value the extraDropData to set + * optional .ItemList unk2 = 14; + * @param value the unk2 to set * @return this */ - public PVEBattleResultScRsp setExtraDropData(final ItemListOuterClass.ItemList value) { + public PVEBattleResultScRsp setUnk2(final ItemListOuterClass.ItemList value) { bitField0_ |= 0x00000200; - extraDropData.copyFrom(value); + unk2.copyFrom(value); return this; } /** - * optional .ItemList unk2 = 355; - * @return whether the unk2 field is set + * optional .ItemList unk3 = 743; + * @return whether the unk3 field is set */ - public boolean hasUnk2() { + public boolean hasUnk3() { return (bitField0_ & 0x00000400) != 0; } /** - * optional .ItemList unk2 = 355; + * optional .ItemList unk3 = 743; * @return this */ - public PVEBattleResultScRsp clearUnk2() { + public PVEBattleResultScRsp clearUnk3() { bitField0_ &= ~0x00000400; - unk2.clear(); + unk3.clear(); return this; } /** - * optional .ItemList unk2 = 355; + * optional .ItemList unk3 = 743; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableUnk2()} if you want to modify it. + * Use {@link #getMutableUnk3()} if you want to modify it. * * @return internal storage object for reading */ - public ItemListOuterClass.ItemList getUnk2() { - return unk2; + public ItemListOuterClass.ItemList getUnk3() { + return unk3; } /** - * optional .ItemList unk2 = 355; + * optional .ItemList unk3 = 743; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -597,24 +597,24 @@ public ItemListOuterClass.ItemList getUnk2() { * * @return internal storage object for modifications */ - public ItemListOuterClass.ItemList getMutableUnk2() { + public ItemListOuterClass.ItemList getMutableUnk3() { bitField0_ |= 0x00000400; - return unk2; + return unk3; } /** - * optional .ItemList unk2 = 355; - * @param value the unk2 to set + * optional .ItemList unk3 = 743; + * @param value the unk3 to set * @return this */ - public PVEBattleResultScRsp setUnk2(final ItemListOuterClass.ItemList value) { + public PVEBattleResultScRsp setUnk3(final ItemListOuterClass.ItemList value) { bitField0_ |= 0x00000400; - unk2.copyFrom(value); + unk3.copyFrom(value); return this; } /** - * optional string bin_version = 7; + * optional string bin_version = 11; * @return whether the binVersion field is set */ public boolean hasBinVersion() { @@ -622,7 +622,7 @@ public boolean hasBinVersion() { } /** - * optional string bin_version = 7; + * optional string bin_version = 11; * @return this */ public PVEBattleResultScRsp clearBinVersion() { @@ -632,7 +632,7 @@ public PVEBattleResultScRsp clearBinVersion() { } /** - * optional string bin_version = 7; + * optional string bin_version = 11; * @return the binVersion */ public String getBinVersion() { @@ -640,7 +640,7 @@ public String getBinVersion() { } /** - * optional string bin_version = 7; + * optional string bin_version = 11; * @return internal {@code Utf8String} representation of binVersion for reading */ public Utf8String getBinVersionBytes() { @@ -648,7 +648,7 @@ public Utf8String getBinVersionBytes() { } /** - * optional string bin_version = 7; + * optional string bin_version = 11; * @return internal {@code Utf8String} representation of binVersion for modifications */ public Utf8String getMutableBinVersionBytes() { @@ -657,7 +657,7 @@ public Utf8String getMutableBinVersionBytes() { } /** - * optional string bin_version = 7; + * optional string bin_version = 11; * @param value the binVersion to set * @return this */ @@ -668,7 +668,7 @@ public PVEBattleResultScRsp setBinVersion(final CharSequence value) { } /** - * optional string bin_version = 7; + * optional string bin_version = 11; * @param value the binVersion to set * @return this */ @@ -679,7 +679,7 @@ public PVEBattleResultScRsp setBinVersion(final Utf8String value) { } /** - * optional string res_version = 8; + * optional string res_version = 13; * @return whether the resVersion field is set */ public boolean hasResVersion() { @@ -687,7 +687,7 @@ public boolean hasResVersion() { } /** - * optional string res_version = 8; + * optional string res_version = 13; * @return this */ public PVEBattleResultScRsp clearResVersion() { @@ -697,7 +697,7 @@ public PVEBattleResultScRsp clearResVersion() { } /** - * optional string res_version = 8; + * optional string res_version = 13; * @return the resVersion */ public String getResVersion() { @@ -705,7 +705,7 @@ public String getResVersion() { } /** - * optional string res_version = 8; + * optional string res_version = 13; * @return internal {@code Utf8String} representation of resVersion for reading */ public Utf8String getResVersionBytes() { @@ -713,7 +713,7 @@ public Utf8String getResVersionBytes() { } /** - * optional string res_version = 8; + * optional string res_version = 13; * @return internal {@code Utf8String} representation of resVersion for modifications */ public Utf8String getMutableResVersionBytes() { @@ -722,7 +722,7 @@ public Utf8String getMutableResVersionBytes() { } /** - * optional string res_version = 8; + * optional string res_version = 13; * @param value the resVersion to set * @return this */ @@ -733,7 +733,7 @@ public PVEBattleResultScRsp setResVersion(final CharSequence value) { } /** - * optional string res_version = 8; + * optional string res_version = 13; * @param value the resVersion to set * @return this */ @@ -744,7 +744,7 @@ public PVEBattleResultScRsp setResVersion(final Utf8String value) { } /** - * repeated .BattleAvatar battle_avatar_list = 6; + * repeated .BattleAvatar battle_avatar_list = 4; * @return whether the battleAvatarList field is set */ public boolean hasBattleAvatarList() { @@ -752,7 +752,7 @@ public boolean hasBattleAvatarList() { } /** - * repeated .BattleAvatar battle_avatar_list = 6; + * repeated .BattleAvatar battle_avatar_list = 4; * @return this */ public PVEBattleResultScRsp clearBattleAvatarList() { @@ -762,7 +762,7 @@ public PVEBattleResultScRsp clearBattleAvatarList() { } /** - * repeated .BattleAvatar battle_avatar_list = 6; + * repeated .BattleAvatar battle_avatar_list = 4; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -776,7 +776,7 @@ public RepeatedMessage getBattleAvatarList( } /** - * repeated .BattleAvatar battle_avatar_list = 6; + * repeated .BattleAvatar battle_avatar_list = 4; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -790,7 +790,7 @@ public RepeatedMessage getMutableBattleAvat } /** - * repeated .BattleAvatar battle_avatar_list = 6; + * repeated .BattleAvatar battle_avatar_list = 4; * @param value the battleAvatarList to add * @return this */ @@ -802,7 +802,7 @@ public PVEBattleResultScRsp addBattleAvatarList( } /** - * repeated .BattleAvatar battle_avatar_list = 6; + * repeated .BattleAvatar battle_avatar_list = 4; * @param values the battleAvatarList to add * @return this */ @@ -818,17 +818,17 @@ public PVEBattleResultScRsp copyFrom(final PVEBattleResultScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - eventId = other.eventId; + mismatchTurnCount = other.mismatchTurnCount; retcode = other.retcode; battleId = other.battleId; + eventId = other.eventId; stageId = other.stageId; - mismatchTurnCount = other.mismatchTurnCount; endStatus = other.endStatus; checkIdentical = other.checkIdentical; dropData.copyFrom(other.dropData); unk1.copyFrom(other.unk1); - extraDropData.copyFrom(other.extraDropData); unk2.copyFrom(other.unk2); + unk3.copyFrom(other.unk3); binVersion.copyFrom(other.binVersion); resVersion.copyFrom(other.resVersion); battleAvatarList.copyFrom(other.battleAvatarList); @@ -842,8 +842,8 @@ public PVEBattleResultScRsp mergeFrom(final PVEBattleResultScRsp other) { return this; } cachedSize = -1; - if (other.hasEventId()) { - setEventId(other.eventId); + if (other.hasMismatchTurnCount()) { + setMismatchTurnCount(other.mismatchTurnCount); } if (other.hasRetcode()) { setRetcode(other.retcode); @@ -851,12 +851,12 @@ public PVEBattleResultScRsp mergeFrom(final PVEBattleResultScRsp other) { if (other.hasBattleId()) { setBattleId(other.battleId); } + if (other.hasEventId()) { + setEventId(other.eventId); + } if (other.hasStageId()) { setStageId(other.stageId); } - if (other.hasMismatchTurnCount()) { - setMismatchTurnCount(other.mismatchTurnCount); - } if (other.hasEndStatus()) { setEndStatusValue(other.endStatus); } @@ -869,12 +869,12 @@ public PVEBattleResultScRsp mergeFrom(final PVEBattleResultScRsp other) { if (other.hasUnk1()) { getMutableUnk1().mergeFrom(other.unk1); } - if (other.hasExtraDropData()) { - getMutableExtraDropData().mergeFrom(other.extraDropData); - } if (other.hasUnk2()) { getMutableUnk2().mergeFrom(other.unk2); } + if (other.hasUnk3()) { + getMutableUnk3().mergeFrom(other.unk3); + } if (other.hasBinVersion()) { getMutableBinVersionBytes().copyFrom(other.binVersion); } @@ -894,17 +894,17 @@ public PVEBattleResultScRsp clear() { } cachedSize = -1; bitField0_ = 0; - eventId = 0; + mismatchTurnCount = 0; retcode = 0; battleId = 0; + eventId = 0; stageId = 0; - mismatchTurnCount = 0; endStatus = 0; checkIdentical = false; dropData.clear(); unk1.clear(); - extraDropData.clear(); unk2.clear(); + unk3.clear(); binVersion.clear(); resVersion.clear(); battleAvatarList.clear(); @@ -920,8 +920,8 @@ public PVEBattleResultScRsp clearQuick() { bitField0_ = 0; dropData.clearQuick(); unk1.clearQuick(); - extraDropData.clearQuick(); unk2.clearQuick(); + unk3.clearQuick(); binVersion.clear(); resVersion.clear(); battleAvatarList.clearQuick(); @@ -938,17 +938,17 @@ public boolean equals(Object o) { } PVEBattleResultScRsp other = (PVEBattleResultScRsp) o; return bitField0_ == other.bitField0_ - && (!hasEventId() || eventId == other.eventId) + && (!hasMismatchTurnCount() || mismatchTurnCount == other.mismatchTurnCount) && (!hasRetcode() || retcode == other.retcode) && (!hasBattleId() || battleId == other.battleId) + && (!hasEventId() || eventId == other.eventId) && (!hasStageId() || stageId == other.stageId) - && (!hasMismatchTurnCount() || mismatchTurnCount == other.mismatchTurnCount) && (!hasEndStatus() || endStatus == other.endStatus) && (!hasCheckIdentical() || checkIdentical == other.checkIdentical) && (!hasDropData() || dropData.equals(other.dropData)) && (!hasUnk1() || unk1.equals(other.unk1)) - && (!hasExtraDropData() || extraDropData.equals(other.extraDropData)) && (!hasUnk2() || unk2.equals(other.unk2)) + && (!hasUnk3() || unk3.equals(other.unk3)) && (!hasBinVersion() || binVersion.equals(other.binVersion)) && (!hasResVersion() || resVersion.equals(other.resVersion)) && (!hasBattleAvatarList() || battleAvatarList.equals(other.battleAvatarList)); @@ -957,60 +957,60 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 32); - output.writeUInt32NoTag(eventId); + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(mismatchTurnCount); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 24); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 72); + output.writeRawByte((byte) 80); output.writeUInt32NoTag(battleId); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 80); - output.writeUInt32NoTag(stageId); + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(eventId); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 112); - output.writeUInt32NoTag(mismatchTurnCount); + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(stageId); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 40); output.writeEnumNoTag(endStatus); } if ((bitField0_ & 0x00000040) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 8); output.writeBoolNoTag(checkIdentical); } if ((bitField0_ & 0x00000080) != 0) { - output.writeRawByte((byte) 26); + output.writeRawByte((byte) 66); output.writeMessageNoTag(dropData); } if ((bitField0_ & 0x00000100) != 0) { - output.writeRawByte((byte) 90); + output.writeRawByte((byte) 74); output.writeMessageNoTag(unk1); } if ((bitField0_ & 0x00000200) != 0) { - output.writeRawByte((byte) 98); - output.writeMessageNoTag(extraDropData); + output.writeRawByte((byte) 114); + output.writeMessageNoTag(unk2); } if ((bitField0_ & 0x00000400) != 0) { - output.writeRawLittleEndian16((short) 5786); - output.writeMessageNoTag(unk2); + output.writeRawLittleEndian16((short) 11962); + output.writeMessageNoTag(unk3); } if ((bitField0_ & 0x00000800) != 0) { - output.writeRawByte((byte) 58); + output.writeRawByte((byte) 90); output.writeStringNoTag(binVersion); } if ((bitField0_ & 0x00001000) != 0) { - output.writeRawByte((byte) 66); + output.writeRawByte((byte) 106); output.writeStringNoTag(resVersion); } if ((bitField0_ & 0x00002000) != 0) { for (int i = 0; i < battleAvatarList.length(); i++) { - output.writeRawByte((byte) 50); + output.writeRawByte((byte) 34); output.writeMessageNoTag(battleAvatarList.get(i)); } } @@ -1020,7 +1020,7 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(eventId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(mismatchTurnCount); } if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); @@ -1029,10 +1029,10 @@ protected int computeSerializedSize() { size += 1 + ProtoSink.computeUInt32SizeNoTag(battleId); } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(stageId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(eventId); } if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(mismatchTurnCount); + size += 1 + ProtoSink.computeUInt32SizeNoTag(stageId); } if ((bitField0_ & 0x00000020) != 0) { size += 1 + ProtoSink.computeEnumSizeNoTag(endStatus); @@ -1047,10 +1047,10 @@ protected int computeSerializedSize() { size += 1 + ProtoSink.computeMessageSizeNoTag(unk1); } if ((bitField0_ & 0x00000200) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(extraDropData); + size += 1 + ProtoSink.computeMessageSizeNoTag(unk2); } if ((bitField0_ & 0x00000400) != 0) { - size += 2 + ProtoSink.computeMessageSizeNoTag(unk2); + size += 2 + ProtoSink.computeMessageSizeNoTag(unk3); } if ((bitField0_ & 0x00000800) != 0) { size += 1 + ProtoSink.computeStringSizeNoTag(binVersion); @@ -1071,52 +1071,52 @@ public PVEBattleResultScRsp mergeFrom(final ProtoSource input) throws IOExceptio int tag = input.readTag(); while (true) { switch (tag) { - case 32: { - // eventId - eventId = input.readUInt32(); + case 16: { + // mismatchTurnCount + mismatchTurnCount = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 40) { + if (tag != 24) { break; } } - case 40: { + case 24: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 72) { + if (tag != 80) { break; } } - case 72: { + case 80: { // battleId battleId = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 80) { + if (tag != 96) { break; } } - case 80: { - // stageId - stageId = input.readUInt32(); + case 96: { + // eventId + eventId = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 112) { + if (tag != 120) { break; } } - case 112: { - // mismatchTurnCount - mismatchTurnCount = input.readUInt32(); + case 120: { + // stageId + stageId = input.readUInt32(); bitField0_ |= 0x00000010; tag = input.readTag(); - if (tag != 104) { + if (tag != 40) { break; } } - case 104: { + case 40: { // endStatus final int value = input.readInt32(); if (BattleEndStatusOuterClass.BattleEndStatus.forNumber(value) != null) { @@ -1124,74 +1124,74 @@ public PVEBattleResultScRsp mergeFrom(final ProtoSource input) throws IOExceptio bitField0_ |= 0x00000020; } tag = input.readTag(); - if (tag != 120) { + if (tag != 8) { break; } } - case 120: { + case 8: { // checkIdentical checkIdentical = input.readBool(); bitField0_ |= 0x00000040; tag = input.readTag(); - if (tag != 26) { + if (tag != 66) { break; } } - case 26: { + case 66: { // dropData input.readMessage(dropData); bitField0_ |= 0x00000080; tag = input.readTag(); - if (tag != 90) { + if (tag != 74) { break; } } - case 90: { + case 74: { // unk1 input.readMessage(unk1); bitField0_ |= 0x00000100; tag = input.readTag(); - if (tag != 98) { + if (tag != 114) { break; } } - case 98: { - // extraDropData - input.readMessage(extraDropData); + case 114: { + // unk2 + input.readMessage(unk2); bitField0_ |= 0x00000200; tag = input.readTag(); - if (tag != 2842) { + if (tag != 5946) { break; } } - case 2842: { - // unk2 - input.readMessage(unk2); + case 5946: { + // unk3 + input.readMessage(unk3); bitField0_ |= 0x00000400; tag = input.readTag(); - if (tag != 58) { + if (tag != 90) { break; } } - case 58: { + case 90: { // binVersion input.readString(binVersion); bitField0_ |= 0x00000800; tag = input.readTag(); - if (tag != 66) { + if (tag != 106) { break; } } - case 66: { + case 106: { // resVersion input.readString(resVersion); bitField0_ |= 0x00001000; tag = input.readTag(); - if (tag != 50) { + if (tag != 34) { break; } } - case 50: { + case 34: { // battleAvatarList tag = input.readRepeatedMessage(battleAvatarList, tag); bitField0_ |= 0x00002000; @@ -1217,7 +1217,7 @@ public PVEBattleResultScRsp mergeFrom(final ProtoSource input) throws IOExceptio public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.eventId, eventId); + output.writeUInt32(FieldNames.mismatchTurnCount, mismatchTurnCount); } if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.retcode, retcode); @@ -1226,10 +1226,10 @@ public void writeTo(final JsonSink output) throws IOException { output.writeUInt32(FieldNames.battleId, battleId); } if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.stageId, stageId); + output.writeUInt32(FieldNames.eventId, eventId); } if ((bitField0_ & 0x00000010) != 0) { - output.writeUInt32(FieldNames.mismatchTurnCount, mismatchTurnCount); + output.writeUInt32(FieldNames.stageId, stageId); } if ((bitField0_ & 0x00000020) != 0) { output.writeEnum(FieldNames.endStatus, endStatus, BattleEndStatusOuterClass.BattleEndStatus.converter()); @@ -1244,10 +1244,10 @@ public void writeTo(final JsonSink output) throws IOException { output.writeMessage(FieldNames.unk1, unk1); } if ((bitField0_ & 0x00000200) != 0) { - output.writeMessage(FieldNames.extraDropData, extraDropData); + output.writeMessage(FieldNames.unk2, unk2); } if ((bitField0_ & 0x00000400) != 0) { - output.writeMessage(FieldNames.unk2, unk2); + output.writeMessage(FieldNames.unk3, unk3); } if ((bitField0_ & 0x00000800) != 0) { output.writeString(FieldNames.binVersion, binVersion); @@ -1268,11 +1268,11 @@ public PVEBattleResultScRsp mergeFrom(final JsonSource input) throws IOException } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -1376502443: - case 278118624: { - if (input.isAtField(FieldNames.eventId)) { + case -2096079772: + case -1800906274: { + if (input.isAtField(FieldNames.mismatchTurnCount)) { if (!input.trySkipNullValue()) { - eventId = input.readUInt32(); + mismatchTurnCount = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -1303,11 +1303,11 @@ public PVEBattleResultScRsp mergeFrom(final JsonSource input) throws IOException } break; } - case -1897528135: - case 1306191356: { - if (input.isAtField(FieldNames.stageId)) { + case -1376502443: + case 278118624: { + if (input.isAtField(FieldNames.eventId)) { if (!input.trySkipNullValue()) { - stageId = input.readUInt32(); + eventId = input.readUInt32(); bitField0_ |= 0x00000008; } } else { @@ -1315,11 +1315,11 @@ public PVEBattleResultScRsp mergeFrom(final JsonSource input) throws IOException } break; } - case -2096079772: - case -1800906274: { - if (input.isAtField(FieldNames.mismatchTurnCount)) { + case -1897528135: + case 1306191356: { + if (input.isAtField(FieldNames.stageId)) { if (!input.trySkipNullValue()) { - mismatchTurnCount = input.readUInt32(); + stageId = input.readUInt32(); bitField0_ |= 0x00000010; } } else { @@ -1379,11 +1379,10 @@ public PVEBattleResultScRsp mergeFrom(final JsonSource input) throws IOException } break; } - case 222653289: - case -951570037: { - if (input.isAtField(FieldNames.extraDropData)) { + case 3594624: { + if (input.isAtField(FieldNames.unk2)) { if (!input.trySkipNullValue()) { - input.readMessage(extraDropData); + input.readMessage(unk2); bitField0_ |= 0x00000200; } } else { @@ -1391,10 +1390,10 @@ public PVEBattleResultScRsp mergeFrom(final JsonSource input) throws IOException } break; } - case 3594624: { - if (input.isAtField(FieldNames.unk2)) { + case 3594625: { + if (input.isAtField(FieldNames.unk3)) { if (!input.trySkipNullValue()) { - input.readMessage(unk2); + input.readMessage(unk3); bitField0_ |= 0x00000400; } } else { @@ -1491,15 +1490,15 @@ public PVEBattleResultScRsp create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName eventId = FieldName.forField("eventId", "event_id"); + static final FieldName mismatchTurnCount = FieldName.forField("mismatchTurnCount", "mismatch_turn_count"); static final FieldName retcode = FieldName.forField("retcode"); static final FieldName battleId = FieldName.forField("battleId", "battle_id"); - static final FieldName stageId = FieldName.forField("stageId", "stage_id"); + static final FieldName eventId = FieldName.forField("eventId", "event_id"); - static final FieldName mismatchTurnCount = FieldName.forField("mismatchTurnCount", "mismatch_turn_count"); + static final FieldName stageId = FieldName.forField("stageId", "stage_id"); static final FieldName endStatus = FieldName.forField("endStatus", "end_status"); @@ -1509,10 +1508,10 @@ static class FieldNames { static final FieldName unk1 = FieldName.forField("unk1"); - static final FieldName extraDropData = FieldName.forField("extraDropData", "extra_drop_data"); - static final FieldName unk2 = FieldName.forField("unk2"); + static final FieldName unk3 = FieldName.forField("unk3"); + static final FieldName binVersion = FieldName.forField("binVersion", "bin_version"); static final FieldName resVersion = FieldName.forField("resVersion", "res_version"); diff --git a/src/generated/main/emu/lunarcore/proto/PileItemOuterClass.java b/src/generated/main/emu/lunarcore/proto/PileItemOuterClass.java index 9af91ab69..6e1322362 100644 --- a/src/generated/main/emu/lunarcore/proto/PileItemOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/PileItemOuterClass.java @@ -19,14 +19,14 @@ public static final class PileItem extends ProtoMessage implements Clo private static final long serialVersionUID = 0L; /** - * optional uint32 item_num = 6; + * optional uint32 item_id = 10; */ - private int itemNum; + private int itemId; /** - * optional uint32 item_id = 8; + * optional uint32 item_num = 12; */ - private int itemId; + private int itemNum; private PileItem() { } @@ -39,76 +39,76 @@ public static PileItem newInstance() { } /** - * optional uint32 item_num = 6; - * @return whether the itemNum field is set + * optional uint32 item_id = 10; + * @return whether the itemId field is set */ - public boolean hasItemNum() { + public boolean hasItemId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 item_num = 6; + * optional uint32 item_id = 10; * @return this */ - public PileItem clearItemNum() { + public PileItem clearItemId() { bitField0_ &= ~0x00000001; - itemNum = 0; + itemId = 0; return this; } /** - * optional uint32 item_num = 6; - * @return the itemNum + * optional uint32 item_id = 10; + * @return the itemId */ - public int getItemNum() { - return itemNum; + public int getItemId() { + return itemId; } /** - * optional uint32 item_num = 6; - * @param value the itemNum to set + * optional uint32 item_id = 10; + * @param value the itemId to set * @return this */ - public PileItem setItemNum(final int value) { + public PileItem setItemId(final int value) { bitField0_ |= 0x00000001; - itemNum = value; + itemId = value; return this; } /** - * optional uint32 item_id = 8; - * @return whether the itemId field is set + * optional uint32 item_num = 12; + * @return whether the itemNum field is set */ - public boolean hasItemId() { + public boolean hasItemNum() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 item_id = 8; + * optional uint32 item_num = 12; * @return this */ - public PileItem clearItemId() { + public PileItem clearItemNum() { bitField0_ &= ~0x00000002; - itemId = 0; + itemNum = 0; return this; } /** - * optional uint32 item_id = 8; - * @return the itemId + * optional uint32 item_num = 12; + * @return the itemNum */ - public int getItemId() { - return itemId; + public int getItemNum() { + return itemNum; } /** - * optional uint32 item_id = 8; - * @param value the itemId to set + * optional uint32 item_num = 12; + * @param value the itemNum to set * @return this */ - public PileItem setItemId(final int value) { + public PileItem setItemNum(final int value) { bitField0_ |= 0x00000002; - itemId = value; + itemNum = value; return this; } @@ -117,8 +117,8 @@ public PileItem copyFrom(final PileItem other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - itemNum = other.itemNum; itemId = other.itemId; + itemNum = other.itemNum; } return this; } @@ -129,12 +129,12 @@ public PileItem mergeFrom(final PileItem other) { return this; } cachedSize = -1; - if (other.hasItemNum()) { - setItemNum(other.itemNum); - } if (other.hasItemId()) { setItemId(other.itemId); } + if (other.hasItemNum()) { + setItemNum(other.itemNum); + } return this; } @@ -145,8 +145,8 @@ public PileItem clear() { } cachedSize = -1; bitField0_ = 0; - itemNum = 0; itemId = 0; + itemNum = 0; return this; } @@ -170,19 +170,19 @@ public boolean equals(Object o) { } PileItem other = (PileItem) o; return bitField0_ == other.bitField0_ - && (!hasItemNum() || itemNum == other.itemNum) - && (!hasItemId() || itemId == other.itemId); + && (!hasItemId() || itemId == other.itemId) + && (!hasItemNum() || itemNum == other.itemNum); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 48); - output.writeUInt32NoTag(itemNum); + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(itemId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 64); - output.writeUInt32NoTag(itemId); + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(itemNum); } } @@ -190,10 +190,10 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(itemNum); + size += 1 + ProtoSink.computeUInt32SizeNoTag(itemId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(itemId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(itemNum); } return size; } @@ -205,18 +205,18 @@ public PileItem mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 48: { - // itemNum - itemNum = input.readUInt32(); + case 80: { + // itemId + itemId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 64) { + if (tag != 96) { break; } } - case 64: { - // itemId - itemId = input.readUInt32(); + case 96: { + // itemNum + itemNum = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { @@ -241,10 +241,10 @@ public PileItem mergeFrom(final ProtoSource input) throws IOException { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.itemNum, itemNum); + output.writeUInt32(FieldNames.itemId, itemId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.itemId, itemId); + output.writeUInt32(FieldNames.itemNum, itemNum); } output.endObject(); } @@ -256,11 +256,11 @@ public PileItem mergeFrom(final JsonSource input) throws IOException { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 2116189043: - case 1177850970: { - if (input.isAtField(FieldNames.itemNum)) { + case -1178662002: + case 2116204999: { + if (input.isAtField(FieldNames.itemId)) { if (!input.trySkipNullValue()) { - itemNum = input.readUInt32(); + itemId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -268,11 +268,11 @@ public PileItem mergeFrom(final JsonSource input) throws IOException { } break; } - case -1178662002: - case 2116204999: { - if (input.isAtField(FieldNames.itemId)) { + case 2116189043: + case 1177850970: { + if (input.isAtField(FieldNames.itemNum)) { if (!input.trySkipNullValue()) { - itemId = input.readUInt32(); + itemNum = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -332,9 +332,9 @@ public PileItem create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName itemNum = FieldName.forField("itemNum", "item_num"); - static final FieldName itemId = FieldName.forField("itemId", "item_id"); + + static final FieldName itemNum = FieldName.forField("itemNum", "item_num"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/PlayBackGroundMusicCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/PlayBackGroundMusicCsReqOuterClass.java index 86aee445a..e66278ac5 100644 --- a/src/generated/main/emu/lunarcore/proto/PlayBackGroundMusicCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/PlayBackGroundMusicCsReqOuterClass.java @@ -19,7 +19,7 @@ public static final class PlayBackGroundMusicCsReq extends ProtoMessageoptional uint32 play_music_id = 6; + * optional uint32 play_music_id = 9; */ private int playMusicId; @@ -34,7 +34,7 @@ public static PlayBackGroundMusicCsReq newInstance() { } /** - * optional uint32 play_music_id = 6; + * optional uint32 play_music_id = 9; * @return whether the playMusicId field is set */ public boolean hasPlayMusicId() { @@ -42,7 +42,7 @@ public boolean hasPlayMusicId() { } /** - * optional uint32 play_music_id = 6; + * optional uint32 play_music_id = 9; * @return this */ public PlayBackGroundMusicCsReq clearPlayMusicId() { @@ -52,7 +52,7 @@ public PlayBackGroundMusicCsReq clearPlayMusicId() { } /** - * optional uint32 play_music_id = 6; + * optional uint32 play_music_id = 9; * @return the playMusicId */ public int getPlayMusicId() { @@ -60,7 +60,7 @@ public int getPlayMusicId() { } /** - * optional uint32 play_music_id = 6; + * optional uint32 play_music_id = 9; * @param value the playMusicId to set * @return this */ @@ -129,7 +129,7 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 72); output.writeUInt32NoTag(playMusicId); } } @@ -150,7 +150,7 @@ public PlayBackGroundMusicCsReq mergeFrom(final ProtoSource input) throws IOExce int tag = input.readTag(); while (true) { switch (tag) { - case 48: { + case 72: { // playMusicId playMusicId = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/PlayBackGroundMusicScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/PlayBackGroundMusicScRspOuterClass.java index 3f86cea3d..be2ca25ce 100644 --- a/src/generated/main/emu/lunarcore/proto/PlayBackGroundMusicScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/PlayBackGroundMusicScRspOuterClass.java @@ -19,19 +19,19 @@ public static final class PlayBackGroundMusicScRsp extends ProtoMessageoptional uint32 retcode = 6; + * optional uint32 playing_id = 6; */ - private int retcode; + private int playingId; /** - * optional uint32 playing_id = 7; + * optional uint32 play_music_id = 9; */ - private int playingId; + private int playMusicId; /** - * optional uint32 play_music_id = 8; + * optional uint32 retcode = 10; */ - private int playMusicId; + private int retcode; private PlayBackGroundMusicScRsp() { } @@ -44,113 +44,113 @@ public static PlayBackGroundMusicScRsp newInstance() { } /** - * optional uint32 retcode = 6; - * @return whether the retcode field is set + * optional uint32 playing_id = 6; + * @return whether the playingId field is set */ - public boolean hasRetcode() { + public boolean hasPlayingId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 retcode = 6; + * optional uint32 playing_id = 6; * @return this */ - public PlayBackGroundMusicScRsp clearRetcode() { + public PlayBackGroundMusicScRsp clearPlayingId() { bitField0_ &= ~0x00000001; - retcode = 0; + playingId = 0; return this; } /** - * optional uint32 retcode = 6; - * @return the retcode + * optional uint32 playing_id = 6; + * @return the playingId */ - public int getRetcode() { - return retcode; + public int getPlayingId() { + return playingId; } /** - * optional uint32 retcode = 6; - * @param value the retcode to set + * optional uint32 playing_id = 6; + * @param value the playingId to set * @return this */ - public PlayBackGroundMusicScRsp setRetcode(final int value) { + public PlayBackGroundMusicScRsp setPlayingId(final int value) { bitField0_ |= 0x00000001; - retcode = value; + playingId = value; return this; } /** - * optional uint32 playing_id = 7; - * @return whether the playingId field is set + * optional uint32 play_music_id = 9; + * @return whether the playMusicId field is set */ - public boolean hasPlayingId() { + public boolean hasPlayMusicId() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 playing_id = 7; + * optional uint32 play_music_id = 9; * @return this */ - public PlayBackGroundMusicScRsp clearPlayingId() { + public PlayBackGroundMusicScRsp clearPlayMusicId() { bitField0_ &= ~0x00000002; - playingId = 0; + playMusicId = 0; return this; } /** - * optional uint32 playing_id = 7; - * @return the playingId + * optional uint32 play_music_id = 9; + * @return the playMusicId */ - public int getPlayingId() { - return playingId; + public int getPlayMusicId() { + return playMusicId; } /** - * optional uint32 playing_id = 7; - * @param value the playingId to set + * optional uint32 play_music_id = 9; + * @param value the playMusicId to set * @return this */ - public PlayBackGroundMusicScRsp setPlayingId(final int value) { + public PlayBackGroundMusicScRsp setPlayMusicId(final int value) { bitField0_ |= 0x00000002; - playingId = value; + playMusicId = value; return this; } /** - * optional uint32 play_music_id = 8; - * @return whether the playMusicId field is set + * optional uint32 retcode = 10; + * @return whether the retcode field is set */ - public boolean hasPlayMusicId() { + public boolean hasRetcode() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 play_music_id = 8; + * optional uint32 retcode = 10; * @return this */ - public PlayBackGroundMusicScRsp clearPlayMusicId() { + public PlayBackGroundMusicScRsp clearRetcode() { bitField0_ &= ~0x00000004; - playMusicId = 0; + retcode = 0; return this; } /** - * optional uint32 play_music_id = 8; - * @return the playMusicId + * optional uint32 retcode = 10; + * @return the retcode */ - public int getPlayMusicId() { - return playMusicId; + public int getRetcode() { + return retcode; } /** - * optional uint32 play_music_id = 8; - * @param value the playMusicId to set + * optional uint32 retcode = 10; + * @param value the retcode to set * @return this */ - public PlayBackGroundMusicScRsp setPlayMusicId(final int value) { + public PlayBackGroundMusicScRsp setRetcode(final int value) { bitField0_ |= 0x00000004; - playMusicId = value; + retcode = value; return this; } @@ -159,9 +159,9 @@ public PlayBackGroundMusicScRsp copyFrom(final PlayBackGroundMusicScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - retcode = other.retcode; playingId = other.playingId; playMusicId = other.playMusicId; + retcode = other.retcode; } return this; } @@ -172,15 +172,15 @@ public PlayBackGroundMusicScRsp mergeFrom(final PlayBackGroundMusicScRsp other) return this; } cachedSize = -1; - if (other.hasRetcode()) { - setRetcode(other.retcode); - } if (other.hasPlayingId()) { setPlayingId(other.playingId); } if (other.hasPlayMusicId()) { setPlayMusicId(other.playMusicId); } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } return this; } @@ -191,9 +191,9 @@ public PlayBackGroundMusicScRsp clear() { } cachedSize = -1; bitField0_ = 0; - retcode = 0; playingId = 0; playMusicId = 0; + retcode = 0; return this; } @@ -217,24 +217,24 @@ public boolean equals(Object o) { } PlayBackGroundMusicScRsp other = (PlayBackGroundMusicScRsp) o; return bitField0_ == other.bitField0_ - && (!hasRetcode() || retcode == other.retcode) && (!hasPlayingId() || playingId == other.playingId) - && (!hasPlayMusicId() || playMusicId == other.playMusicId); + && (!hasPlayMusicId() || playMusicId == other.playMusicId) + && (!hasRetcode() || retcode == other.retcode); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { output.writeRawByte((byte) 48); - output.writeUInt32NoTag(retcode); + output.writeUInt32NoTag(playingId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 56); - output.writeUInt32NoTag(playingId); + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(playMusicId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 64); - output.writeUInt32NoTag(playMusicId); + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(retcode); } } @@ -242,13 +242,13 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(playingId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(playingId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(playMusicId); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(playMusicId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } return size; } @@ -261,26 +261,26 @@ public PlayBackGroundMusicScRsp mergeFrom(final ProtoSource input) throws IOExce while (true) { switch (tag) { case 48: { - // retcode - retcode = input.readUInt32(); + // playingId + playingId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 56) { + if (tag != 72) { break; } } - case 56: { - // playingId - playingId = input.readUInt32(); + case 72: { + // playMusicId + playMusicId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 64) { + if (tag != 80) { break; } } - case 64: { - // playMusicId - playMusicId = input.readUInt32(); + case 80: { + // retcode + retcode = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 0) { @@ -305,13 +305,13 @@ public PlayBackGroundMusicScRsp mergeFrom(final ProtoSource input) throws IOExce public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.playingId, playingId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.playingId, playingId); + output.writeUInt32(FieldNames.playMusicId, playMusicId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.playMusicId, playMusicId); + output.writeUInt32(FieldNames.retcode, retcode); } output.endObject(); } @@ -323,10 +323,11 @@ public PlayBackGroundMusicScRsp mergeFrom(final JsonSource input) throws IOExcep } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { + case -1868462615: + case -2087744820: { + if (input.isAtField(FieldNames.playingId)) { if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); + playingId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -334,11 +335,11 @@ public PlayBackGroundMusicScRsp mergeFrom(final JsonSource input) throws IOExcep } break; } - case -1868462615: - case -2087744820: { - if (input.isAtField(FieldNames.playingId)) { + case 835898444: + case -1319856608: { + if (input.isAtField(FieldNames.playMusicId)) { if (!input.trySkipNullValue()) { - playingId = input.readUInt32(); + playMusicId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -346,11 +347,10 @@ public PlayBackGroundMusicScRsp mergeFrom(final JsonSource input) throws IOExcep } break; } - case 835898444: - case -1319856608: { - if (input.isAtField(FieldNames.playMusicId)) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { - playMusicId = input.readUInt32(); + retcode = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -411,11 +411,11 @@ public PlayBackGroundMusicScRsp create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName retcode = FieldName.forField("retcode"); - static final FieldName playingId = FieldName.forField("playingId", "playing_id"); static final FieldName playMusicId = FieldName.forField("playMusicId", "play_music_id"); + + static final FieldName retcode = FieldName.forField("retcode"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/PlayerGetTokenCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/PlayerGetTokenCsReqOuterClass.java index 18e81b060..09d913743 100644 --- a/src/generated/main/emu/lunarcore/proto/PlayerGetTokenCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/PlayerGetTokenCsReqOuterClass.java @@ -20,22 +20,17 @@ public static final class PlayerGetTokenCsReq extends ProtoMessageoptional uint32 platform_type = 10; + * optional uint32 platform_type = 11; */ private int platformType; /** - * optional uint32 uid = 11; - */ - private int uid; - - /** - * optional string token = 3; + * optional string token = 4; */ private final Utf8String token = Utf8String.newEmptyInstance(); /** - * optional string account_uid = 6; + * optional string account_uid = 7; */ private final Utf8String accountUid = Utf8String.newEmptyInstance(); @@ -50,7 +45,7 @@ public static PlayerGetTokenCsReq newInstance() { } /** - * optional uint32 platform_type = 10; + * optional uint32 platform_type = 11; * @return whether the platformType field is set */ public boolean hasPlatformType() { @@ -58,7 +53,7 @@ public boolean hasPlatformType() { } /** - * optional uint32 platform_type = 10; + * optional uint32 platform_type = 11; * @return this */ public PlayerGetTokenCsReq clearPlatformType() { @@ -68,7 +63,7 @@ public PlayerGetTokenCsReq clearPlatformType() { } /** - * optional uint32 platform_type = 10; + * optional uint32 platform_type = 11; * @return the platformType */ public int getPlatformType() { @@ -76,7 +71,7 @@ public int getPlatformType() { } /** - * optional uint32 platform_type = 10; + * optional uint32 platform_type = 11; * @param value the platformType to set * @return this */ @@ -87,62 +82,25 @@ public PlayerGetTokenCsReq setPlatformType(final int value) { } /** - * optional uint32 uid = 11; - * @return whether the uid field is set - */ - public boolean hasUid() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 uid = 11; - * @return this - */ - public PlayerGetTokenCsReq clearUid() { - bitField0_ &= ~0x00000002; - uid = 0; - return this; - } - - /** - * optional uint32 uid = 11; - * @return the uid - */ - public int getUid() { - return uid; - } - - /** - * optional uint32 uid = 11; - * @param value the uid to set - * @return this - */ - public PlayerGetTokenCsReq setUid(final int value) { - bitField0_ |= 0x00000002; - uid = value; - return this; - } - - /** - * optional string token = 3; + * optional string token = 4; * @return whether the token field is set */ public boolean hasToken() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000002) != 0; } /** - * optional string token = 3; + * optional string token = 4; * @return this */ public PlayerGetTokenCsReq clearToken() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; token.clear(); return this; } /** - * optional string token = 3; + * optional string token = 4; * @return the token */ public String getToken() { @@ -150,7 +108,7 @@ public String getToken() { } /** - * optional string token = 3; + * optional string token = 4; * @return internal {@code Utf8String} representation of token for reading */ public Utf8String getTokenBytes() { @@ -158,56 +116,56 @@ public Utf8String getTokenBytes() { } /** - * optional string token = 3; + * optional string token = 4; * @return internal {@code Utf8String} representation of token for modifications */ public Utf8String getMutableTokenBytes() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; return this.token; } /** - * optional string token = 3; + * optional string token = 4; * @param value the token to set * @return this */ public PlayerGetTokenCsReq setToken(final CharSequence value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; token.copyFrom(value); return this; } /** - * optional string token = 3; + * optional string token = 4; * @param value the token to set * @return this */ public PlayerGetTokenCsReq setToken(final Utf8String value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; token.copyFrom(value); return this; } /** - * optional string account_uid = 6; + * optional string account_uid = 7; * @return whether the accountUid field is set */ public boolean hasAccountUid() { - return (bitField0_ & 0x00000008) != 0; + return (bitField0_ & 0x00000004) != 0; } /** - * optional string account_uid = 6; + * optional string account_uid = 7; * @return this */ public PlayerGetTokenCsReq clearAccountUid() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000004; accountUid.clear(); return this; } /** - * optional string account_uid = 6; + * optional string account_uid = 7; * @return the accountUid */ public String getAccountUid() { @@ -215,7 +173,7 @@ public String getAccountUid() { } /** - * optional string account_uid = 6; + * optional string account_uid = 7; * @return internal {@code Utf8String} representation of accountUid for reading */ public Utf8String getAccountUidBytes() { @@ -223,32 +181,32 @@ public Utf8String getAccountUidBytes() { } /** - * optional string account_uid = 6; + * optional string account_uid = 7; * @return internal {@code Utf8String} representation of accountUid for modifications */ public Utf8String getMutableAccountUidBytes() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; return this.accountUid; } /** - * optional string account_uid = 6; + * optional string account_uid = 7; * @param value the accountUid to set * @return this */ public PlayerGetTokenCsReq setAccountUid(final CharSequence value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; accountUid.copyFrom(value); return this; } /** - * optional string account_uid = 6; + * optional string account_uid = 7; * @param value the accountUid to set * @return this */ public PlayerGetTokenCsReq setAccountUid(final Utf8String value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; accountUid.copyFrom(value); return this; } @@ -259,7 +217,6 @@ public PlayerGetTokenCsReq copyFrom(final PlayerGetTokenCsReq other) { if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; platformType = other.platformType; - uid = other.uid; token.copyFrom(other.token); accountUid.copyFrom(other.accountUid); } @@ -275,9 +232,6 @@ public PlayerGetTokenCsReq mergeFrom(final PlayerGetTokenCsReq other) { if (other.hasPlatformType()) { setPlatformType(other.platformType); } - if (other.hasUid()) { - setUid(other.uid); - } if (other.hasToken()) { getMutableTokenBytes().copyFrom(other.token); } @@ -295,7 +249,6 @@ public PlayerGetTokenCsReq clear() { cachedSize = -1; bitField0_ = 0; platformType = 0; - uid = 0; token.clear(); accountUid.clear(); return this; @@ -324,7 +277,6 @@ public boolean equals(Object o) { PlayerGetTokenCsReq other = (PlayerGetTokenCsReq) o; return bitField0_ == other.bitField0_ && (!hasPlatformType() || platformType == other.platformType) - && (!hasUid() || uid == other.uid) && (!hasToken() || token.equals(other.token)) && (!hasAccountUid() || accountUid.equals(other.accountUid)); } @@ -332,19 +284,15 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 88); output.writeUInt32NoTag(platformType); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 88); - output.writeUInt32NoTag(uid); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 26); + output.writeRawByte((byte) 34); output.writeStringNoTag(token); } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 50); + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 58); output.writeStringNoTag(accountUid); } } @@ -356,12 +304,9 @@ protected int computeSerializedSize() { size += 1 + ProtoSink.computeUInt32SizeNoTag(platformType); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(uid); - } - if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeStringSizeNoTag(token); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeStringSizeNoTag(accountUid); } return size; @@ -374,37 +319,28 @@ public PlayerGetTokenCsReq mergeFrom(final ProtoSource input) throws IOException int tag = input.readTag(); while (true) { switch (tag) { - case 80: { + case 88: { // platformType platformType = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 88) { - break; - } - } - case 88: { - // uid - uid = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 26) { + if (tag != 34) { break; } } - case 26: { + case 34: { // token input.readString(token); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 50) { + if (tag != 58) { break; } } - case 50: { + case 58: { // accountUid input.readString(accountUid); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 0) { break; @@ -431,12 +367,9 @@ public void writeTo(final JsonSink output) throws IOException { output.writeUInt32(FieldNames.platformType, platformType); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.uid, uid); - } - if ((bitField0_ & 0x00000004) != 0) { output.writeString(FieldNames.token, token); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000004) != 0) { output.writeString(FieldNames.accountUid, accountUid); } output.endObject(); @@ -461,22 +394,11 @@ public PlayerGetTokenCsReq mergeFrom(final JsonSource input) throws IOException } break; } - case 115792: { - if (input.isAtField(FieldNames.uid)) { - if (!input.trySkipNullValue()) { - uid = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } case 110541305: { if (input.isAtField(FieldNames.token)) { if (!input.trySkipNullValue()) { input.readString(token); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; } } else { input.skipUnknownField(); @@ -488,7 +410,7 @@ public PlayerGetTokenCsReq mergeFrom(final JsonSource input) throws IOException if (input.isAtField(FieldNames.accountUid)) { if (!input.trySkipNullValue()) { input.readString(accountUid); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; } } else { input.skipUnknownField(); @@ -550,8 +472,6 @@ public PlayerGetTokenCsReq create() { static class FieldNames { static final FieldName platformType = FieldName.forField("platformType", "platform_type"); - static final FieldName uid = FieldName.forField("uid"); - static final FieldName token = FieldName.forField("token"); static final FieldName accountUid = FieldName.forField("accountUid", "account_uid"); diff --git a/src/generated/main/emu/lunarcore/proto/PlayerGetTokenScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/PlayerGetTokenScRspOuterClass.java index 1921ee4e3..e20fb39a5 100644 --- a/src/generated/main/emu/lunarcore/proto/PlayerGetTokenScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/PlayerGetTokenScRspOuterClass.java @@ -20,27 +20,27 @@ public static final class PlayerGetTokenScRsp extends ProtoMessageoptional uint64 secret_key_seed = 2; + * optional uint64 secret_key_seed = 11; */ private long secretKeySeed; /** - * optional uint32 retcode = 10; + * optional uint32 uid = 8; */ - private int retcode; + private int uid; /** - * optional uint32 uid = 14; + * optional uint32 retcode = 13; */ - private int uid; + private int retcode; /** - * optional .BlackInfo black_info = 7; + * optional .BlackInfo black_info = 12; */ private final BlackInfoOuterClass.BlackInfo blackInfo = BlackInfoOuterClass.BlackInfo.newInstance(); /** - * optional string msg = 8; + * optional string msg = 14; */ private final Utf8String msg = Utf8String.newEmptyInstance(); @@ -55,7 +55,7 @@ public static PlayerGetTokenScRsp newInstance() { } /** - * optional uint64 secret_key_seed = 2; + * optional uint64 secret_key_seed = 11; * @return whether the secretKeySeed field is set */ public boolean hasSecretKeySeed() { @@ -63,7 +63,7 @@ public boolean hasSecretKeySeed() { } /** - * optional uint64 secret_key_seed = 2; + * optional uint64 secret_key_seed = 11; * @return this */ public PlayerGetTokenScRsp clearSecretKeySeed() { @@ -73,7 +73,7 @@ public PlayerGetTokenScRsp clearSecretKeySeed() { } /** - * optional uint64 secret_key_seed = 2; + * optional uint64 secret_key_seed = 11; * @return the secretKeySeed */ public long getSecretKeySeed() { @@ -81,7 +81,7 @@ public long getSecretKeySeed() { } /** - * optional uint64 secret_key_seed = 2; + * optional uint64 secret_key_seed = 11; * @param value the secretKeySeed to set * @return this */ @@ -92,81 +92,81 @@ public PlayerGetTokenScRsp setSecretKeySeed(final long value) { } /** - * optional uint32 retcode = 10; - * @return whether the retcode field is set + * optional uint32 uid = 8; + * @return whether the uid field is set */ - public boolean hasRetcode() { + public boolean hasUid() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 retcode = 10; + * optional uint32 uid = 8; * @return this */ - public PlayerGetTokenScRsp clearRetcode() { + public PlayerGetTokenScRsp clearUid() { bitField0_ &= ~0x00000002; - retcode = 0; + uid = 0; return this; } /** - * optional uint32 retcode = 10; - * @return the retcode + * optional uint32 uid = 8; + * @return the uid */ - public int getRetcode() { - return retcode; + public int getUid() { + return uid; } /** - * optional uint32 retcode = 10; - * @param value the retcode to set + * optional uint32 uid = 8; + * @param value the uid to set * @return this */ - public PlayerGetTokenScRsp setRetcode(final int value) { + public PlayerGetTokenScRsp setUid(final int value) { bitField0_ |= 0x00000002; - retcode = value; + uid = value; return this; } /** - * optional uint32 uid = 14; - * @return whether the uid field is set + * optional uint32 retcode = 13; + * @return whether the retcode field is set */ - public boolean hasUid() { + public boolean hasRetcode() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 uid = 14; + * optional uint32 retcode = 13; * @return this */ - public PlayerGetTokenScRsp clearUid() { + public PlayerGetTokenScRsp clearRetcode() { bitField0_ &= ~0x00000004; - uid = 0; + retcode = 0; return this; } /** - * optional uint32 uid = 14; - * @return the uid + * optional uint32 retcode = 13; + * @return the retcode */ - public int getUid() { - return uid; + public int getRetcode() { + return retcode; } /** - * optional uint32 uid = 14; - * @param value the uid to set + * optional uint32 retcode = 13; + * @param value the retcode to set * @return this */ - public PlayerGetTokenScRsp setUid(final int value) { + public PlayerGetTokenScRsp setRetcode(final int value) { bitField0_ |= 0x00000004; - uid = value; + retcode = value; return this; } /** - * optional .BlackInfo black_info = 7; + * optional .BlackInfo black_info = 12; * @return whether the blackInfo field is set */ public boolean hasBlackInfo() { @@ -174,7 +174,7 @@ public boolean hasBlackInfo() { } /** - * optional .BlackInfo black_info = 7; + * optional .BlackInfo black_info = 12; * @return this */ public PlayerGetTokenScRsp clearBlackInfo() { @@ -184,7 +184,7 @@ public PlayerGetTokenScRsp clearBlackInfo() { } /** - * optional .BlackInfo black_info = 7; + * optional .BlackInfo black_info = 12; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -198,7 +198,7 @@ public BlackInfoOuterClass.BlackInfo getBlackInfo() { } /** - * optional .BlackInfo black_info = 7; + * optional .BlackInfo black_info = 12; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -212,7 +212,7 @@ public BlackInfoOuterClass.BlackInfo getMutableBlackInfo() { } /** - * optional .BlackInfo black_info = 7; + * optional .BlackInfo black_info = 12; * @param value the blackInfo to set * @return this */ @@ -223,7 +223,7 @@ public PlayerGetTokenScRsp setBlackInfo(final BlackInfoOuterClass.BlackInfo valu } /** - * optional string msg = 8; + * optional string msg = 14; * @return whether the msg field is set */ public boolean hasMsg() { @@ -231,7 +231,7 @@ public boolean hasMsg() { } /** - * optional string msg = 8; + * optional string msg = 14; * @return this */ public PlayerGetTokenScRsp clearMsg() { @@ -241,7 +241,7 @@ public PlayerGetTokenScRsp clearMsg() { } /** - * optional string msg = 8; + * optional string msg = 14; * @return the msg */ public String getMsg() { @@ -249,7 +249,7 @@ public String getMsg() { } /** - * optional string msg = 8; + * optional string msg = 14; * @return internal {@code Utf8String} representation of msg for reading */ public Utf8String getMsgBytes() { @@ -257,7 +257,7 @@ public Utf8String getMsgBytes() { } /** - * optional string msg = 8; + * optional string msg = 14; * @return internal {@code Utf8String} representation of msg for modifications */ public Utf8String getMutableMsgBytes() { @@ -266,7 +266,7 @@ public Utf8String getMutableMsgBytes() { } /** - * optional string msg = 8; + * optional string msg = 14; * @param value the msg to set * @return this */ @@ -277,7 +277,7 @@ public PlayerGetTokenScRsp setMsg(final CharSequence value) { } /** - * optional string msg = 8; + * optional string msg = 14; * @param value the msg to set * @return this */ @@ -293,8 +293,8 @@ public PlayerGetTokenScRsp copyFrom(final PlayerGetTokenScRsp other) { if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; secretKeySeed = other.secretKeySeed; - retcode = other.retcode; uid = other.uid; + retcode = other.retcode; blackInfo.copyFrom(other.blackInfo); msg.copyFrom(other.msg); } @@ -310,12 +310,12 @@ public PlayerGetTokenScRsp mergeFrom(final PlayerGetTokenScRsp other) { if (other.hasSecretKeySeed()) { setSecretKeySeed(other.secretKeySeed); } - if (other.hasRetcode()) { - setRetcode(other.retcode); - } if (other.hasUid()) { setUid(other.uid); } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } if (other.hasBlackInfo()) { getMutableBlackInfo().mergeFrom(other.blackInfo); } @@ -333,8 +333,8 @@ public PlayerGetTokenScRsp clear() { cachedSize = -1; bitField0_ = 0; secretKeySeed = 0L; - retcode = 0; uid = 0; + retcode = 0; blackInfo.clear(); msg.clear(); return this; @@ -363,8 +363,8 @@ public boolean equals(Object o) { PlayerGetTokenScRsp other = (PlayerGetTokenScRsp) o; return bitField0_ == other.bitField0_ && (!hasSecretKeySeed() || secretKeySeed == other.secretKeySeed) - && (!hasRetcode() || retcode == other.retcode) && (!hasUid() || uid == other.uid) + && (!hasRetcode() || retcode == other.retcode) && (!hasBlackInfo() || blackInfo.equals(other.blackInfo)) && (!hasMsg() || msg.equals(other.msg)); } @@ -372,23 +372,23 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); + output.writeRawByte((byte) 88); output.writeUInt64NoTag(secretKeySeed); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 80); - output.writeUInt32NoTag(retcode); + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(uid); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 112); - output.writeUInt32NoTag(uid); + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 58); + output.writeRawByte((byte) 98); output.writeMessageNoTag(blackInfo); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 66); + output.writeRawByte((byte) 114); output.writeStringNoTag(msg); } } @@ -400,10 +400,10 @@ protected int computeSerializedSize() { size += 1 + ProtoSink.computeUInt64SizeNoTag(secretKeySeed); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(uid); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(uid); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(blackInfo); @@ -421,43 +421,43 @@ public PlayerGetTokenScRsp mergeFrom(final ProtoSource input) throws IOException int tag = input.readTag(); while (true) { switch (tag) { - case 16: { + case 88: { // secretKeySeed secretKeySeed = input.readUInt64(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 80) { + if (tag != 64) { break; } } - case 80: { - // retcode - retcode = input.readUInt32(); + case 64: { + // uid + uid = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 112) { + if (tag != 104) { break; } } - case 112: { - // uid - uid = input.readUInt32(); + case 104: { + // retcode + retcode = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 58) { + if (tag != 98) { break; } } - case 58: { + case 98: { // blackInfo input.readMessage(blackInfo); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 66) { + if (tag != 114) { break; } } - case 66: { + case 114: { // msg input.readString(msg); bitField0_ |= 0x00000010; @@ -487,10 +487,10 @@ public void writeTo(final JsonSink output) throws IOException { output.writeUInt64(FieldNames.secretKeySeed, secretKeySeed); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.uid, uid); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.uid, uid); + output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000008) != 0) { output.writeMessage(FieldNames.blackInfo, blackInfo); @@ -520,10 +520,10 @@ public PlayerGetTokenScRsp mergeFrom(final JsonSource input) throws IOException } break; } - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { + case 115792: { + if (input.isAtField(FieldNames.uid)) { if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); + uid = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -531,10 +531,10 @@ public PlayerGetTokenScRsp mergeFrom(final JsonSource input) throws IOException } break; } - case 115792: { - if (input.isAtField(FieldNames.uid)) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { - uid = input.readUInt32(); + retcode = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -620,10 +620,10 @@ public PlayerGetTokenScRsp create() { static class FieldNames { static final FieldName secretKeySeed = FieldName.forField("secretKeySeed", "secret_key_seed"); - static final FieldName retcode = FieldName.forField("retcode"); - static final FieldName uid = FieldName.forField("uid"); + static final FieldName retcode = FieldName.forField("retcode"); + static final FieldName blackInfo = FieldName.forField("blackInfo", "black_info"); static final FieldName msg = FieldName.forField("msg"); diff --git a/src/generated/main/emu/lunarcore/proto/PlayerHeartbeatCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/PlayerHeartbeatCsReqOuterClass.java index b79bed084..4fb83370c 100644 --- a/src/generated/main/emu/lunarcore/proto/PlayerHeartbeatCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/PlayerHeartbeatCsReqOuterClass.java @@ -19,20 +19,10 @@ public static final class PlayerHeartbeatCsReq extends ProtoMessageoptional uint64 client_time_ms = 3; + * optional uint64 client_time_ms = 12; */ private long clientTimeMs; - /** - * optional uint32 DIMAFIDFCOD = 7; - */ - private int dIMAFIDFCOD; - - /** - * optional .ClientUploadData upload_data = 13; - */ - private final ClientUploadDataOuterClass.ClientUploadData uploadData = ClientUploadDataOuterClass.ClientUploadData.newInstance(); - private PlayerHeartbeatCsReq() { } @@ -44,7 +34,7 @@ public static PlayerHeartbeatCsReq newInstance() { } /** - * optional uint64 client_time_ms = 3; + * optional uint64 client_time_ms = 12; * @return whether the clientTimeMs field is set */ public boolean hasClientTimeMs() { @@ -52,7 +42,7 @@ public boolean hasClientTimeMs() { } /** - * optional uint64 client_time_ms = 3; + * optional uint64 client_time_ms = 12; * @return this */ public PlayerHeartbeatCsReq clearClientTimeMs() { @@ -62,7 +52,7 @@ public PlayerHeartbeatCsReq clearClientTimeMs() { } /** - * optional uint64 client_time_ms = 3; + * optional uint64 client_time_ms = 12; * @return the clientTimeMs */ public long getClientTimeMs() { @@ -70,7 +60,7 @@ public long getClientTimeMs() { } /** - * optional uint64 client_time_ms = 3; + * optional uint64 client_time_ms = 12; * @param value the clientTimeMs to set * @return this */ @@ -80,109 +70,12 @@ public PlayerHeartbeatCsReq setClientTimeMs(final long value) { return this; } - /** - * optional uint32 DIMAFIDFCOD = 7; - * @return whether the dIMAFIDFCOD field is set - */ - public boolean hasDIMAFIDFCOD() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 DIMAFIDFCOD = 7; - * @return this - */ - public PlayerHeartbeatCsReq clearDIMAFIDFCOD() { - bitField0_ &= ~0x00000002; - dIMAFIDFCOD = 0; - return this; - } - - /** - * optional uint32 DIMAFIDFCOD = 7; - * @return the dIMAFIDFCOD - */ - public int getDIMAFIDFCOD() { - return dIMAFIDFCOD; - } - - /** - * optional uint32 DIMAFIDFCOD = 7; - * @param value the dIMAFIDFCOD to set - * @return this - */ - public PlayerHeartbeatCsReq setDIMAFIDFCOD(final int value) { - bitField0_ |= 0x00000002; - dIMAFIDFCOD = value; - return this; - } - - /** - * optional .ClientUploadData upload_data = 13; - * @return whether the uploadData field is set - */ - public boolean hasUploadData() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional .ClientUploadData upload_data = 13; - * @return this - */ - public PlayerHeartbeatCsReq clearUploadData() { - bitField0_ &= ~0x00000004; - uploadData.clear(); - return this; - } - - /** - * optional .ClientUploadData upload_data = 13; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableUploadData()} if you want to modify it. - * - * @return internal storage object for reading - */ - public ClientUploadDataOuterClass.ClientUploadData getUploadData() { - return uploadData; - } - - /** - * optional .ClientUploadData upload_data = 13; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public ClientUploadDataOuterClass.ClientUploadData getMutableUploadData() { - bitField0_ |= 0x00000004; - return uploadData; - } - - /** - * optional .ClientUploadData upload_data = 13; - * @param value the uploadData to set - * @return this - */ - public PlayerHeartbeatCsReq setUploadData( - final ClientUploadDataOuterClass.ClientUploadData value) { - bitField0_ |= 0x00000004; - uploadData.copyFrom(value); - return this; - } - @Override public PlayerHeartbeatCsReq copyFrom(final PlayerHeartbeatCsReq other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; clientTimeMs = other.clientTimeMs; - dIMAFIDFCOD = other.dIMAFIDFCOD; - uploadData.copyFrom(other.uploadData); } return this; } @@ -196,12 +89,6 @@ public PlayerHeartbeatCsReq mergeFrom(final PlayerHeartbeatCsReq other) { if (other.hasClientTimeMs()) { setClientTimeMs(other.clientTimeMs); } - if (other.hasDIMAFIDFCOD()) { - setDIMAFIDFCOD(other.dIMAFIDFCOD); - } - if (other.hasUploadData()) { - getMutableUploadData().mergeFrom(other.uploadData); - } return this; } @@ -213,8 +100,6 @@ public PlayerHeartbeatCsReq clear() { cachedSize = -1; bitField0_ = 0; clientTimeMs = 0L; - dIMAFIDFCOD = 0; - uploadData.clear(); return this; } @@ -225,7 +110,6 @@ public PlayerHeartbeatCsReq clearQuick() { } cachedSize = -1; bitField0_ = 0; - uploadData.clearQuick(); return this; } @@ -239,25 +123,15 @@ public boolean equals(Object o) { } PlayerHeartbeatCsReq other = (PlayerHeartbeatCsReq) o; return bitField0_ == other.bitField0_ - && (!hasClientTimeMs() || clientTimeMs == other.clientTimeMs) - && (!hasDIMAFIDFCOD() || dIMAFIDFCOD == other.dIMAFIDFCOD) - && (!hasUploadData() || uploadData.equals(other.uploadData)); + && (!hasClientTimeMs() || clientTimeMs == other.clientTimeMs); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 96); output.writeUInt64NoTag(clientTimeMs); } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 56); - output.writeUInt32NoTag(dIMAFIDFCOD); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 106); - output.writeMessageNoTag(uploadData); - } } @Override @@ -266,12 +140,6 @@ protected int computeSerializedSize() { if ((bitField0_ & 0x00000001) != 0) { size += 1 + ProtoSink.computeUInt64SizeNoTag(clientTimeMs); } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(dIMAFIDFCOD); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(uploadData); - } return size; } @@ -282,29 +150,11 @@ public PlayerHeartbeatCsReq mergeFrom(final ProtoSource input) throws IOExceptio int tag = input.readTag(); while (true) { switch (tag) { - case 24: { + case 96: { // clientTimeMs clientTimeMs = input.readUInt64(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 56) { - break; - } - } - case 56: { - // dIMAFIDFCOD - dIMAFIDFCOD = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 106) { - break; - } - } - case 106: { - // uploadData - input.readMessage(uploadData); - bitField0_ |= 0x00000004; - tag = input.readTag(); if (tag != 0) { break; } @@ -329,12 +179,6 @@ public void writeTo(final JsonSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { output.writeUInt64(FieldNames.clientTimeMs, clientTimeMs); } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.dIMAFIDFCOD, dIMAFIDFCOD); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeMessage(FieldNames.uploadData, uploadData); - } output.endObject(); } @@ -357,29 +201,6 @@ public PlayerHeartbeatCsReq mergeFrom(final JsonSource input) throws IOException } break; } - case 634885050: { - if (input.isAtField(FieldNames.dIMAFIDFCOD)) { - if (!input.trySkipNullValue()) { - dIMAFIDFCOD = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case -243562165: - case 1064514344: { - if (input.isAtField(FieldNames.uploadData)) { - if (!input.trySkipNullValue()) { - input.readMessage(uploadData); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } default: { input.skipUnknownField(); break; @@ -434,10 +255,6 @@ public PlayerHeartbeatCsReq create() { */ static class FieldNames { static final FieldName clientTimeMs = FieldName.forField("clientTimeMs", "client_time_ms"); - - static final FieldName dIMAFIDFCOD = FieldName.forField("DIMAFIDFCOD"); - - static final FieldName uploadData = FieldName.forField("uploadData", "upload_data"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/PlayerHeartbeatScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/PlayerHeartbeatScRspOuterClass.java index 29ad68558..5243c70d7 100644 --- a/src/generated/main/emu/lunarcore/proto/PlayerHeartbeatScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/PlayerHeartbeatScRspOuterClass.java @@ -18,22 +18,22 @@ public final class PlayerHeartbeatScRspOuterClass { public static final class PlayerHeartbeatScRsp extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; - /** - * optional uint64 client_time_ms = 8; - */ - private long clientTimeMs; - /** *
-     * ClientDownloadData download_data = 1;
+     * ClientDownloadData download_data = 13;
      * 
* - * optional uint64 server_time_ms = 10; + * optional uint64 server_time_ms = 6; */ private long serverTimeMs; /** - * optional uint32 retcode = 12; + * optional uint64 client_time_ms = 8; + */ + private long clientTimeMs; + + /** + * optional uint32 retcode = 4; */ private int retcode; @@ -48,97 +48,97 @@ public static PlayerHeartbeatScRsp newInstance() { } /** - * optional uint64 client_time_ms = 8; - * @return whether the clientTimeMs field is set + *
+     * ClientDownloadData download_data = 13;
+     * 
+ * + * optional uint64 server_time_ms = 6; + * @return whether the serverTimeMs field is set */ - public boolean hasClientTimeMs() { + public boolean hasServerTimeMs() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint64 client_time_ms = 8; + *
+     * ClientDownloadData download_data = 13;
+     * 
+ * + * optional uint64 server_time_ms = 6; * @return this */ - public PlayerHeartbeatScRsp clearClientTimeMs() { + public PlayerHeartbeatScRsp clearServerTimeMs() { bitField0_ &= ~0x00000001; - clientTimeMs = 0L; + serverTimeMs = 0L; return this; } /** - * optional uint64 client_time_ms = 8; - * @return the clientTimeMs + *
+     * ClientDownloadData download_data = 13;
+     * 
+ * + * optional uint64 server_time_ms = 6; + * @return the serverTimeMs */ - public long getClientTimeMs() { - return clientTimeMs; + public long getServerTimeMs() { + return serverTimeMs; } /** - * optional uint64 client_time_ms = 8; - * @param value the clientTimeMs to set + *
+     * ClientDownloadData download_data = 13;
+     * 
+ * + * optional uint64 server_time_ms = 6; + * @param value the serverTimeMs to set * @return this */ - public PlayerHeartbeatScRsp setClientTimeMs(final long value) { + public PlayerHeartbeatScRsp setServerTimeMs(final long value) { bitField0_ |= 0x00000001; - clientTimeMs = value; + serverTimeMs = value; return this; } /** - *
-     * ClientDownloadData download_data = 1;
-     * 
- * - * optional uint64 server_time_ms = 10; - * @return whether the serverTimeMs field is set + * optional uint64 client_time_ms = 8; + * @return whether the clientTimeMs field is set */ - public boolean hasServerTimeMs() { + public boolean hasClientTimeMs() { return (bitField0_ & 0x00000002) != 0; } /** - *
-     * ClientDownloadData download_data = 1;
-     * 
- * - * optional uint64 server_time_ms = 10; + * optional uint64 client_time_ms = 8; * @return this */ - public PlayerHeartbeatScRsp clearServerTimeMs() { + public PlayerHeartbeatScRsp clearClientTimeMs() { bitField0_ &= ~0x00000002; - serverTimeMs = 0L; + clientTimeMs = 0L; return this; } /** - *
-     * ClientDownloadData download_data = 1;
-     * 
- * - * optional uint64 server_time_ms = 10; - * @return the serverTimeMs + * optional uint64 client_time_ms = 8; + * @return the clientTimeMs */ - public long getServerTimeMs() { - return serverTimeMs; + public long getClientTimeMs() { + return clientTimeMs; } /** - *
-     * ClientDownloadData download_data = 1;
-     * 
- * - * optional uint64 server_time_ms = 10; - * @param value the serverTimeMs to set + * optional uint64 client_time_ms = 8; + * @param value the clientTimeMs to set * @return this */ - public PlayerHeartbeatScRsp setServerTimeMs(final long value) { + public PlayerHeartbeatScRsp setClientTimeMs(final long value) { bitField0_ |= 0x00000002; - serverTimeMs = value; + clientTimeMs = value; return this; } /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 4; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -146,7 +146,7 @@ public boolean hasRetcode() { } /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 4; * @return this */ public PlayerHeartbeatScRsp clearRetcode() { @@ -156,7 +156,7 @@ public PlayerHeartbeatScRsp clearRetcode() { } /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 4; * @return the retcode */ public int getRetcode() { @@ -164,7 +164,7 @@ public int getRetcode() { } /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 4; * @param value the retcode to set * @return this */ @@ -179,8 +179,8 @@ public PlayerHeartbeatScRsp copyFrom(final PlayerHeartbeatScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - clientTimeMs = other.clientTimeMs; serverTimeMs = other.serverTimeMs; + clientTimeMs = other.clientTimeMs; retcode = other.retcode; } return this; @@ -192,12 +192,12 @@ public PlayerHeartbeatScRsp mergeFrom(final PlayerHeartbeatScRsp other) { return this; } cachedSize = -1; - if (other.hasClientTimeMs()) { - setClientTimeMs(other.clientTimeMs); - } if (other.hasServerTimeMs()) { setServerTimeMs(other.serverTimeMs); } + if (other.hasClientTimeMs()) { + setClientTimeMs(other.clientTimeMs); + } if (other.hasRetcode()) { setRetcode(other.retcode); } @@ -211,8 +211,8 @@ public PlayerHeartbeatScRsp clear() { } cachedSize = -1; bitField0_ = 0; - clientTimeMs = 0L; serverTimeMs = 0L; + clientTimeMs = 0L; retcode = 0; return this; } @@ -237,23 +237,23 @@ public boolean equals(Object o) { } PlayerHeartbeatScRsp other = (PlayerHeartbeatScRsp) o; return bitField0_ == other.bitField0_ - && (!hasClientTimeMs() || clientTimeMs == other.clientTimeMs) && (!hasServerTimeMs() || serverTimeMs == other.serverTimeMs) + && (!hasClientTimeMs() || clientTimeMs == other.clientTimeMs) && (!hasRetcode() || retcode == other.retcode); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 64); - output.writeUInt64NoTag(clientTimeMs); + output.writeRawByte((byte) 48); + output.writeUInt64NoTag(serverTimeMs); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 80); - output.writeUInt64NoTag(serverTimeMs); + output.writeRawByte((byte) 64); + output.writeUInt64NoTag(clientTimeMs); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(retcode); } } @@ -262,10 +262,10 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt64SizeNoTag(clientTimeMs); + size += 1 + ProtoSink.computeUInt64SizeNoTag(serverTimeMs); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt64SizeNoTag(serverTimeMs); + size += 1 + ProtoSink.computeUInt64SizeNoTag(clientTimeMs); } if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); @@ -280,25 +280,25 @@ public PlayerHeartbeatScRsp mergeFrom(final ProtoSource input) throws IOExceptio int tag = input.readTag(); while (true) { switch (tag) { - case 64: { - // clientTimeMs - clientTimeMs = input.readUInt64(); + case 48: { + // serverTimeMs + serverTimeMs = input.readUInt64(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 80) { + if (tag != 64) { break; } } - case 80: { - // serverTimeMs - serverTimeMs = input.readUInt64(); + case 64: { + // clientTimeMs + clientTimeMs = input.readUInt64(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 96) { + if (tag != 32) { break; } } - case 96: { + case 32: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000004; @@ -325,10 +325,10 @@ public PlayerHeartbeatScRsp mergeFrom(final ProtoSource input) throws IOExceptio public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt64(FieldNames.clientTimeMs, clientTimeMs); + output.writeUInt64(FieldNames.serverTimeMs, serverTimeMs); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt64(FieldNames.serverTimeMs, serverTimeMs); + output.writeUInt64(FieldNames.clientTimeMs, clientTimeMs); } if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.retcode, retcode); @@ -343,11 +343,11 @@ public PlayerHeartbeatScRsp mergeFrom(final JsonSource input) throws IOException } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -1414301442: - case 1123200996: { - if (input.isAtField(FieldNames.clientTimeMs)) { + case 1928739446: + case 1149956956: { + if (input.isAtField(FieldNames.serverTimeMs)) { if (!input.trySkipNullValue()) { - clientTimeMs = input.readUInt64(); + serverTimeMs = input.readUInt64(); bitField0_ |= 0x00000001; } } else { @@ -355,11 +355,11 @@ public PlayerHeartbeatScRsp mergeFrom(final JsonSource input) throws IOException } break; } - case 1928739446: - case 1149956956: { - if (input.isAtField(FieldNames.serverTimeMs)) { + case -1414301442: + case 1123200996: { + if (input.isAtField(FieldNames.clientTimeMs)) { if (!input.trySkipNullValue()) { - serverTimeMs = input.readUInt64(); + clientTimeMs = input.readUInt64(); bitField0_ |= 0x00000002; } } else { @@ -431,10 +431,10 @@ public PlayerHeartbeatScRsp create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName clientTimeMs = FieldName.forField("clientTimeMs", "client_time_ms"); - static final FieldName serverTimeMs = FieldName.forField("serverTimeMs", "server_time_ms"); + static final FieldName clientTimeMs = FieldName.forField("clientTimeMs", "client_time_ms"); + static final FieldName retcode = FieldName.forField("retcode"); } } diff --git a/src/generated/main/emu/lunarcore/proto/PlayerLoginCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/PlayerLoginCsReqOuterClass.java index 4c10c2597..a46580507 100644 --- a/src/generated/main/emu/lunarcore/proto/PlayerLoginCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/PlayerLoginCsReqOuterClass.java @@ -20,12 +20,17 @@ public static final class PlayerLoginCsReq extends ProtoMessageoptional uint64 login_random = 8; + * optional uint64 login_random = 1; */ private long loginRandom; /** - * optional string signature = 5; + * optional .PlatformType platform = 12; + */ + private int platform; + + /** + * optional string signature = 4; */ private final Utf8String signature = Utf8String.newEmptyInstance(); @@ -40,7 +45,7 @@ public static PlayerLoginCsReq newInstance() { } /** - * optional uint64 login_random = 8; + * optional uint64 login_random = 1; * @return whether the loginRandom field is set */ public boolean hasLoginRandom() { @@ -48,7 +53,7 @@ public boolean hasLoginRandom() { } /** - * optional uint64 login_random = 8; + * optional uint64 login_random = 1; * @return this */ public PlayerLoginCsReq clearLoginRandom() { @@ -58,7 +63,7 @@ public PlayerLoginCsReq clearLoginRandom() { } /** - * optional uint64 login_random = 8; + * optional uint64 login_random = 1; * @return the loginRandom */ public long getLoginRandom() { @@ -66,7 +71,7 @@ public long getLoginRandom() { } /** - * optional uint64 login_random = 8; + * optional uint64 login_random = 1; * @param value the loginRandom to set * @return this */ @@ -77,25 +82,87 @@ public PlayerLoginCsReq setLoginRandom(final long value) { } /** - * optional string signature = 5; + * optional .PlatformType platform = 12; + * @return whether the platform field is set + */ + public boolean hasPlatform() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .PlatformType platform = 12; + * @return this + */ + public PlayerLoginCsReq clearPlatform() { + bitField0_ &= ~0x00000002; + platform = 0; + return this; + } + + /** + * optional .PlatformType platform = 12; + * @return the platform + */ + public PlatformTypeOuterClass.PlatformType getPlatform() { + return PlatformTypeOuterClass.PlatformType.forNumber(platform); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link PlayerLoginCsReq#getPlatform()}.getNumber(). + * + * @return numeric wire representation + */ + public int getPlatformValue() { + return platform; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link PlatformTypeOuterClass.PlatformType}. Setting an invalid value + * can cause {@link PlayerLoginCsReq#getPlatform()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public PlayerLoginCsReq setPlatformValue(final int value) { + bitField0_ |= 0x00000002; + platform = value; + return this; + } + + /** + * optional .PlatformType platform = 12; + * @param value the platform to set + * @return this + */ + public PlayerLoginCsReq setPlatform(final PlatformTypeOuterClass.PlatformType value) { + bitField0_ |= 0x00000002; + platform = value.getNumber(); + return this; + } + + /** + * optional string signature = 4; * @return whether the signature field is set */ public boolean hasSignature() { - return (bitField0_ & 0x00000002) != 0; + return (bitField0_ & 0x00000004) != 0; } /** - * optional string signature = 5; + * optional string signature = 4; * @return this */ public PlayerLoginCsReq clearSignature() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000004; signature.clear(); return this; } /** - * optional string signature = 5; + * optional string signature = 4; * @return the signature */ public String getSignature() { @@ -103,7 +170,7 @@ public String getSignature() { } /** - * optional string signature = 5; + * optional string signature = 4; * @return internal {@code Utf8String} representation of signature for reading */ public Utf8String getSignatureBytes() { @@ -111,32 +178,32 @@ public Utf8String getSignatureBytes() { } /** - * optional string signature = 5; + * optional string signature = 4; * @return internal {@code Utf8String} representation of signature for modifications */ public Utf8String getMutableSignatureBytes() { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; return this.signature; } /** - * optional string signature = 5; + * optional string signature = 4; * @param value the signature to set * @return this */ public PlayerLoginCsReq setSignature(final CharSequence value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; signature.copyFrom(value); return this; } /** - * optional string signature = 5; + * optional string signature = 4; * @param value the signature to set * @return this */ public PlayerLoginCsReq setSignature(final Utf8String value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; signature.copyFrom(value); return this; } @@ -147,6 +214,7 @@ public PlayerLoginCsReq copyFrom(final PlayerLoginCsReq other) { if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; loginRandom = other.loginRandom; + platform = other.platform; signature.copyFrom(other.signature); } return this; @@ -161,6 +229,9 @@ public PlayerLoginCsReq mergeFrom(final PlayerLoginCsReq other) { if (other.hasLoginRandom()) { setLoginRandom(other.loginRandom); } + if (other.hasPlatform()) { + setPlatformValue(other.platform); + } if (other.hasSignature()) { getMutableSignatureBytes().copyFrom(other.signature); } @@ -175,6 +246,7 @@ public PlayerLoginCsReq clear() { cachedSize = -1; bitField0_ = 0; loginRandom = 0L; + platform = 0; signature.clear(); return this; } @@ -201,17 +273,22 @@ public boolean equals(Object o) { PlayerLoginCsReq other = (PlayerLoginCsReq) o; return bitField0_ == other.bitField0_ && (!hasLoginRandom() || loginRandom == other.loginRandom) + && (!hasPlatform() || platform == other.platform) && (!hasSignature() || signature.equals(other.signature)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 8); output.writeUInt64NoTag(loginRandom); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 42); + output.writeRawByte((byte) 96); + output.writeEnumNoTag(platform); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 34); output.writeStringNoTag(signature); } } @@ -223,6 +300,9 @@ protected int computeSerializedSize() { size += 1 + ProtoSink.computeUInt64SizeNoTag(loginRandom); } if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(platform); + } + if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeStringSizeNoTag(signature); } return size; @@ -235,19 +315,31 @@ public PlayerLoginCsReq mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 64: { + case 8: { // loginRandom loginRandom = input.readUInt64(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 42) { + if (tag != 96) { break; } } - case 42: { + case 96: { + // platform + final int value = input.readInt32(); + if (PlatformTypeOuterClass.PlatformType.forNumber(value) != null) { + platform = value; + bitField0_ |= 0x00000002; + } + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { // signature input.readString(signature); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 0) { break; @@ -274,6 +366,9 @@ public void writeTo(final JsonSink output) throws IOException { output.writeUInt64(FieldNames.loginRandom, loginRandom); } if ((bitField0_ & 0x00000002) != 0) { + output.writeEnum(FieldNames.platform, platform, PlatformTypeOuterClass.PlatformType.converter()); + } + if ((bitField0_ & 0x00000004) != 0) { output.writeString(FieldNames.signature, signature); } output.endObject(); @@ -298,11 +393,27 @@ public PlayerLoginCsReq mergeFrom(final JsonSource input) throws IOException { } break; } + case 1874684019: { + if (input.isAtField(FieldNames.platform)) { + if (!input.trySkipNullValue()) { + final PlatformTypeOuterClass.PlatformType value = input.readEnum(PlatformTypeOuterClass.PlatformType.converter()); + if (value != null) { + platform = value.getNumber(); + bitField0_ |= 0x00000002; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } case 1073584312: { if (input.isAtField(FieldNames.signature)) { if (!input.trySkipNullValue()) { input.readString(signature); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; } } else { input.skipUnknownField(); @@ -364,6 +475,8 @@ public PlayerLoginCsReq create() { static class FieldNames { static final FieldName loginRandom = FieldName.forField("loginRandom", "login_random"); + static final FieldName platform = FieldName.forField("platform"); + static final FieldName signature = FieldName.forField("signature"); } } diff --git a/src/generated/main/emu/lunarcore/proto/PlayerLoginScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/PlayerLoginScRspOuterClass.java index 043c74d74..589f9ee08 100644 --- a/src/generated/main/emu/lunarcore/proto/PlayerLoginScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/PlayerLoginScRspOuterClass.java @@ -18,33 +18,33 @@ public final class PlayerLoginScRspOuterClass { public static final class PlayerLoginScRsp extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; - /** - * optional uint64 login_random = 7; - */ - private long loginRandom; - /** * optional uint64 server_timestamp_ms = 8; */ private long serverTimestampMs; /** - * optional uint32 retcode = 6; + * optional uint64 login_random = 14; */ - private int retcode; + private long loginRandom; /** - * optional uint32 stamina = 10; + * optional uint32 stamina = 7; */ private int stamina; /** - * optional sint32 cur_timezone = 2; + * optional uint32 retcode = 13; + */ + private int retcode; + + /** + * optional sint32 cur_timezone = 1; */ private int curTimezone; /** - * optional .PlayerBasicInfo basic_info = 9; + * optional .PlayerBasicInfo basic_info = 11; */ private final PlayerBasicInfoOuterClass.PlayerBasicInfo basicInfo = PlayerBasicInfoOuterClass.PlayerBasicInfo.newInstance(); @@ -59,155 +59,155 @@ public static PlayerLoginScRsp newInstance() { } /** - * optional uint64 login_random = 7; - * @return whether the loginRandom field is set + * optional uint64 server_timestamp_ms = 8; + * @return whether the serverTimestampMs field is set */ - public boolean hasLoginRandom() { + public boolean hasServerTimestampMs() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint64 login_random = 7; + * optional uint64 server_timestamp_ms = 8; * @return this */ - public PlayerLoginScRsp clearLoginRandom() { + public PlayerLoginScRsp clearServerTimestampMs() { bitField0_ &= ~0x00000001; - loginRandom = 0L; + serverTimestampMs = 0L; return this; } /** - * optional uint64 login_random = 7; - * @return the loginRandom + * optional uint64 server_timestamp_ms = 8; + * @return the serverTimestampMs */ - public long getLoginRandom() { - return loginRandom; + public long getServerTimestampMs() { + return serverTimestampMs; } /** - * optional uint64 login_random = 7; - * @param value the loginRandom to set + * optional uint64 server_timestamp_ms = 8; + * @param value the serverTimestampMs to set * @return this */ - public PlayerLoginScRsp setLoginRandom(final long value) { + public PlayerLoginScRsp setServerTimestampMs(final long value) { bitField0_ |= 0x00000001; - loginRandom = value; + serverTimestampMs = value; return this; } /** - * optional uint64 server_timestamp_ms = 8; - * @return whether the serverTimestampMs field is set + * optional uint64 login_random = 14; + * @return whether the loginRandom field is set */ - public boolean hasServerTimestampMs() { + public boolean hasLoginRandom() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint64 server_timestamp_ms = 8; + * optional uint64 login_random = 14; * @return this */ - public PlayerLoginScRsp clearServerTimestampMs() { + public PlayerLoginScRsp clearLoginRandom() { bitField0_ &= ~0x00000002; - serverTimestampMs = 0L; + loginRandom = 0L; return this; } /** - * optional uint64 server_timestamp_ms = 8; - * @return the serverTimestampMs + * optional uint64 login_random = 14; + * @return the loginRandom */ - public long getServerTimestampMs() { - return serverTimestampMs; + public long getLoginRandom() { + return loginRandom; } /** - * optional uint64 server_timestamp_ms = 8; - * @param value the serverTimestampMs to set + * optional uint64 login_random = 14; + * @param value the loginRandom to set * @return this */ - public PlayerLoginScRsp setServerTimestampMs(final long value) { + public PlayerLoginScRsp setLoginRandom(final long value) { bitField0_ |= 0x00000002; - serverTimestampMs = value; + loginRandom = value; return this; } /** - * optional uint32 retcode = 6; - * @return whether the retcode field is set + * optional uint32 stamina = 7; + * @return whether the stamina field is set */ - public boolean hasRetcode() { + public boolean hasStamina() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 retcode = 6; + * optional uint32 stamina = 7; * @return this */ - public PlayerLoginScRsp clearRetcode() { + public PlayerLoginScRsp clearStamina() { bitField0_ &= ~0x00000004; - retcode = 0; + stamina = 0; return this; } /** - * optional uint32 retcode = 6; - * @return the retcode + * optional uint32 stamina = 7; + * @return the stamina */ - public int getRetcode() { - return retcode; + public int getStamina() { + return stamina; } /** - * optional uint32 retcode = 6; - * @param value the retcode to set + * optional uint32 stamina = 7; + * @param value the stamina to set * @return this */ - public PlayerLoginScRsp setRetcode(final int value) { + public PlayerLoginScRsp setStamina(final int value) { bitField0_ |= 0x00000004; - retcode = value; + stamina = value; return this; } /** - * optional uint32 stamina = 10; - * @return whether the stamina field is set + * optional uint32 retcode = 13; + * @return whether the retcode field is set */ - public boolean hasStamina() { + public boolean hasRetcode() { return (bitField0_ & 0x00000008) != 0; } /** - * optional uint32 stamina = 10; + * optional uint32 retcode = 13; * @return this */ - public PlayerLoginScRsp clearStamina() { + public PlayerLoginScRsp clearRetcode() { bitField0_ &= ~0x00000008; - stamina = 0; + retcode = 0; return this; } /** - * optional uint32 stamina = 10; - * @return the stamina + * optional uint32 retcode = 13; + * @return the retcode */ - public int getStamina() { - return stamina; + public int getRetcode() { + return retcode; } /** - * optional uint32 stamina = 10; - * @param value the stamina to set + * optional uint32 retcode = 13; + * @param value the retcode to set * @return this */ - public PlayerLoginScRsp setStamina(final int value) { + public PlayerLoginScRsp setRetcode(final int value) { bitField0_ |= 0x00000008; - stamina = value; + retcode = value; return this; } /** - * optional sint32 cur_timezone = 2; + * optional sint32 cur_timezone = 1; * @return whether the curTimezone field is set */ public boolean hasCurTimezone() { @@ -215,7 +215,7 @@ public boolean hasCurTimezone() { } /** - * optional sint32 cur_timezone = 2; + * optional sint32 cur_timezone = 1; * @return this */ public PlayerLoginScRsp clearCurTimezone() { @@ -225,7 +225,7 @@ public PlayerLoginScRsp clearCurTimezone() { } /** - * optional sint32 cur_timezone = 2; + * optional sint32 cur_timezone = 1; * @return the curTimezone */ public int getCurTimezone() { @@ -233,7 +233,7 @@ public int getCurTimezone() { } /** - * optional sint32 cur_timezone = 2; + * optional sint32 cur_timezone = 1; * @param value the curTimezone to set * @return this */ @@ -244,7 +244,7 @@ public PlayerLoginScRsp setCurTimezone(final int value) { } /** - * optional .PlayerBasicInfo basic_info = 9; + * optional .PlayerBasicInfo basic_info = 11; * @return whether the basicInfo field is set */ public boolean hasBasicInfo() { @@ -252,7 +252,7 @@ public boolean hasBasicInfo() { } /** - * optional .PlayerBasicInfo basic_info = 9; + * optional .PlayerBasicInfo basic_info = 11; * @return this */ public PlayerLoginScRsp clearBasicInfo() { @@ -262,7 +262,7 @@ public PlayerLoginScRsp clearBasicInfo() { } /** - * optional .PlayerBasicInfo basic_info = 9; + * optional .PlayerBasicInfo basic_info = 11; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -276,7 +276,7 @@ public PlayerBasicInfoOuterClass.PlayerBasicInfo getBasicInfo() { } /** - * optional .PlayerBasicInfo basic_info = 9; + * optional .PlayerBasicInfo basic_info = 11; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -290,7 +290,7 @@ public PlayerBasicInfoOuterClass.PlayerBasicInfo getMutableBasicInfo() { } /** - * optional .PlayerBasicInfo basic_info = 9; + * optional .PlayerBasicInfo basic_info = 11; * @param value the basicInfo to set * @return this */ @@ -305,10 +305,10 @@ public PlayerLoginScRsp copyFrom(final PlayerLoginScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - loginRandom = other.loginRandom; serverTimestampMs = other.serverTimestampMs; - retcode = other.retcode; + loginRandom = other.loginRandom; stamina = other.stamina; + retcode = other.retcode; curTimezone = other.curTimezone; basicInfo.copyFrom(other.basicInfo); } @@ -321,18 +321,18 @@ public PlayerLoginScRsp mergeFrom(final PlayerLoginScRsp other) { return this; } cachedSize = -1; - if (other.hasLoginRandom()) { - setLoginRandom(other.loginRandom); - } if (other.hasServerTimestampMs()) { setServerTimestampMs(other.serverTimestampMs); } - if (other.hasRetcode()) { - setRetcode(other.retcode); + if (other.hasLoginRandom()) { + setLoginRandom(other.loginRandom); } if (other.hasStamina()) { setStamina(other.stamina); } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } if (other.hasCurTimezone()) { setCurTimezone(other.curTimezone); } @@ -349,10 +349,10 @@ public PlayerLoginScRsp clear() { } cachedSize = -1; bitField0_ = 0; - loginRandom = 0L; serverTimestampMs = 0L; - retcode = 0; + loginRandom = 0L; stamina = 0; + retcode = 0; curTimezone = 0; basicInfo.clear(); return this; @@ -379,10 +379,10 @@ public boolean equals(Object o) { } PlayerLoginScRsp other = (PlayerLoginScRsp) o; return bitField0_ == other.bitField0_ - && (!hasLoginRandom() || loginRandom == other.loginRandom) && (!hasServerTimestampMs() || serverTimestampMs == other.serverTimestampMs) - && (!hasRetcode() || retcode == other.retcode) + && (!hasLoginRandom() || loginRandom == other.loginRandom) && (!hasStamina() || stamina == other.stamina) + && (!hasRetcode() || retcode == other.retcode) && (!hasCurTimezone() || curTimezone == other.curTimezone) && (!hasBasicInfo() || basicInfo.equals(other.basicInfo)); } @@ -390,27 +390,27 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 56); - output.writeUInt64NoTag(loginRandom); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 64); output.writeUInt64NoTag(serverTimestampMs); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 112); + output.writeUInt64NoTag(loginRandom); + } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 48); - output.writeUInt32NoTag(retcode); + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(stamina); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 80); - output.writeUInt32NoTag(stamina); + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 16); + output.writeRawByte((byte) 8); output.writeSInt32NoTag(curTimezone); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 74); + output.writeRawByte((byte) 90); output.writeMessageNoTag(basicInfo); } } @@ -419,16 +419,16 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt64SizeNoTag(loginRandom); + size += 1 + ProtoSink.computeUInt64SizeNoTag(serverTimestampMs); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt64SizeNoTag(serverTimestampMs); + size += 1 + ProtoSink.computeUInt64SizeNoTag(loginRandom); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(stamina); } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(stamina); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000010) != 0) { size += 1 + ProtoSink.computeSInt32SizeNoTag(curTimezone); @@ -446,52 +446,52 @@ public PlayerLoginScRsp mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 56: { - // loginRandom - loginRandom = input.readUInt64(); + case 64: { + // serverTimestampMs + serverTimestampMs = input.readUInt64(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 64) { + if (tag != 112) { break; } } - case 64: { - // serverTimestampMs - serverTimestampMs = input.readUInt64(); + case 112: { + // loginRandom + loginRandom = input.readUInt64(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 48) { + if (tag != 56) { break; } } - case 48: { - // retcode - retcode = input.readUInt32(); + case 56: { + // stamina + stamina = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 80) { + if (tag != 104) { break; } } - case 80: { - // stamina - stamina = input.readUInt32(); + case 104: { + // retcode + retcode = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 16) { + if (tag != 8) { break; } } - case 16: { + case 8: { // curTimezone curTimezone = input.readSInt32(); bitField0_ |= 0x00000010; tag = input.readTag(); - if (tag != 74) { + if (tag != 90) { break; } } - case 74: { + case 90: { // basicInfo input.readMessage(basicInfo); bitField0_ |= 0x00000020; @@ -518,16 +518,16 @@ public PlayerLoginScRsp mergeFrom(final ProtoSource input) throws IOException { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt64(FieldNames.loginRandom, loginRandom); + output.writeUInt64(FieldNames.serverTimestampMs, serverTimestampMs); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt64(FieldNames.serverTimestampMs, serverTimestampMs); + output.writeUInt64(FieldNames.loginRandom, loginRandom); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.stamina, stamina); } if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.stamina, stamina); + output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000010) != 0) { output.writeSInt32(FieldNames.curTimezone, curTimezone); @@ -545,11 +545,11 @@ public PlayerLoginScRsp mergeFrom(final JsonSource input) throws IOException { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1268567436: - case -201491879: { - if (input.isAtField(FieldNames.loginRandom)) { + case -1700420071: + case -1078785813: { + if (input.isAtField(FieldNames.serverTimestampMs)) { if (!input.trySkipNullValue()) { - loginRandom = input.readUInt64(); + serverTimestampMs = input.readUInt64(); bitField0_ |= 0x00000001; } } else { @@ -557,11 +557,11 @@ public PlayerLoginScRsp mergeFrom(final JsonSource input) throws IOException { } break; } - case -1700420071: - case -1078785813: { - if (input.isAtField(FieldNames.serverTimestampMs)) { + case 1268567436: + case -201491879: { + if (input.isAtField(FieldNames.loginRandom)) { if (!input.trySkipNullValue()) { - serverTimestampMs = input.readUInt64(); + loginRandom = input.readUInt64(); bitField0_ |= 0x00000002; } } else { @@ -569,10 +569,10 @@ public PlayerLoginScRsp mergeFrom(final JsonSource input) throws IOException { } break; } - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { + case -1897344401: { + if (input.isAtField(FieldNames.stamina)) { if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); + stamina = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -580,10 +580,10 @@ public PlayerLoginScRsp mergeFrom(final JsonSource input) throws IOException { } break; } - case -1897344401: { - if (input.isAtField(FieldNames.stamina)) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { - stamina = input.readUInt32(); + retcode = input.readUInt32(); bitField0_ |= 0x00000008; } } else { @@ -668,14 +668,14 @@ public PlayerLoginScRsp create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName loginRandom = FieldName.forField("loginRandom", "login_random"); - static final FieldName serverTimestampMs = FieldName.forField("serverTimestampMs", "server_timestamp_ms"); - static final FieldName retcode = FieldName.forField("retcode"); + static final FieldName loginRandom = FieldName.forField("loginRandom", "login_random"); static final FieldName stamina = FieldName.forField("stamina"); + static final FieldName retcode = FieldName.forField("retcode"); + static final FieldName curTimezone = FieldName.forField("curTimezone", "cur_timezone"); static final FieldName basicInfo = FieldName.forField("basicInfo", "basic_info"); diff --git a/src/generated/main/emu/lunarcore/proto/PlayerSyncScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/PlayerSyncScNotifyOuterClass.java index 578c1743c..cdda8e22d 100644 --- a/src/generated/main/emu/lunarcore/proto/PlayerSyncScNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/PlayerSyncScNotifyOuterClass.java @@ -21,22 +21,22 @@ public static final class PlayerSyncScNotify extends ProtoMessageoptional .PlayerBasicInfo basic_info = 6; + * optional .AvatarSync avatar_sync = 1; */ - private final PlayerBasicInfoOuterClass.PlayerBasicInfo basicInfo = PlayerBasicInfoOuterClass.PlayerBasicInfo.newInstance(); + private final AvatarSyncOuterClass.AvatarSync avatarSync = AvatarSyncOuterClass.AvatarSync.newInstance(); /** - * optional .AvatarSync avatar_sync = 13; + * optional .PlayerBasicInfo basic_info = 6; */ - private final AvatarSyncOuterClass.AvatarSync avatarSync = AvatarSyncOuterClass.AvatarSync.newInstance(); + private final PlayerBasicInfoOuterClass.PlayerBasicInfo basicInfo = PlayerBasicInfoOuterClass.PlayerBasicInfo.newInstance(); /** - * optional .BoardDataSync board_data_sync = 617; + * optional .BoardDataSync board_data_sync = 2034; */ private final BoardDataSyncOuterClass.BoardDataSync boardDataSync = BoardDataSyncOuterClass.BoardDataSync.newInstance(); /** - * repeated uint32 del_equipment_list = 5; + * repeated uint32 del_equipment_list = 10; */ private final RepeatedInt delEquipmentList = RepeatedInt.newEmptyInstance(); @@ -46,24 +46,24 @@ public static final class PlayerSyncScNotify extends ProtoMessagerepeated .Material material_list = 7; + * repeated .Relic relic_list = 2; */ - private final RepeatedMessage materialList = RepeatedMessage.newEmptyInstance(MaterialOuterClass.Material.getFactory()); + private final RepeatedMessage relicList = RepeatedMessage.newEmptyInstance(RelicOuterClass.Relic.getFactory()); /** - * repeated .HeroBasicTypeInfo basic_type_info_list = 8; + * repeated .Equipment equipment_list = 5; */ - private final RepeatedMessage basicTypeInfoList = RepeatedMessage.newEmptyInstance(HeroBasicTypeInfoOuterClass.HeroBasicTypeInfo.getFactory()); + private final RepeatedMessage equipmentList = RepeatedMessage.newEmptyInstance(EquipmentOuterClass.Equipment.getFactory()); /** - * repeated .Relic relic_list = 10; + * repeated .Material material_list = 11; */ - private final RepeatedMessage relicList = RepeatedMessage.newEmptyInstance(RelicOuterClass.Relic.getFactory()); + private final RepeatedMessage materialList = RepeatedMessage.newEmptyInstance(MaterialOuterClass.Material.getFactory()); /** - * repeated .Equipment equipment_list = 11; + * repeated .HeroBasicTypeInfo basic_type_info_list = 15; */ - private final RepeatedMessage equipmentList = RepeatedMessage.newEmptyInstance(EquipmentOuterClass.Equipment.getFactory()); + private final RepeatedMessage basicTypeInfoList = RepeatedMessage.newEmptyInstance(HeroBasicTypeInfoOuterClass.HeroBasicTypeInfo.getFactory()); private PlayerSyncScNotify() { } @@ -76,39 +76,39 @@ public static PlayerSyncScNotify newInstance() { } /** - * optional .PlayerBasicInfo basic_info = 6; - * @return whether the basicInfo field is set + * optional .AvatarSync avatar_sync = 1; + * @return whether the avatarSync field is set */ - public boolean hasBasicInfo() { + public boolean hasAvatarSync() { return (bitField0_ & 0x00000001) != 0; } /** - * optional .PlayerBasicInfo basic_info = 6; + * optional .AvatarSync avatar_sync = 1; * @return this */ - public PlayerSyncScNotify clearBasicInfo() { + public PlayerSyncScNotify clearAvatarSync() { bitField0_ &= ~0x00000001; - basicInfo.clear(); + avatarSync.clear(); return this; } /** - * optional .PlayerBasicInfo basic_info = 6; + * optional .AvatarSync avatar_sync = 1; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableBasicInfo()} if you want to modify it. + * Use {@link #getMutableAvatarSync()} if you want to modify it. * * @return internal storage object for reading */ - public PlayerBasicInfoOuterClass.PlayerBasicInfo getBasicInfo() { - return basicInfo; + public AvatarSyncOuterClass.AvatarSync getAvatarSync() { + return avatarSync; } /** - * optional .PlayerBasicInfo basic_info = 6; + * optional .AvatarSync avatar_sync = 1; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -116,56 +116,56 @@ public PlayerBasicInfoOuterClass.PlayerBasicInfo getBasicInfo() { * * @return internal storage object for modifications */ - public PlayerBasicInfoOuterClass.PlayerBasicInfo getMutableBasicInfo() { + public AvatarSyncOuterClass.AvatarSync getMutableAvatarSync() { bitField0_ |= 0x00000001; - return basicInfo; + return avatarSync; } /** - * optional .PlayerBasicInfo basic_info = 6; - * @param value the basicInfo to set + * optional .AvatarSync avatar_sync = 1; + * @param value the avatarSync to set * @return this */ - public PlayerSyncScNotify setBasicInfo(final PlayerBasicInfoOuterClass.PlayerBasicInfo value) { + public PlayerSyncScNotify setAvatarSync(final AvatarSyncOuterClass.AvatarSync value) { bitField0_ |= 0x00000001; - basicInfo.copyFrom(value); + avatarSync.copyFrom(value); return this; } /** - * optional .AvatarSync avatar_sync = 13; - * @return whether the avatarSync field is set + * optional .PlayerBasicInfo basic_info = 6; + * @return whether the basicInfo field is set */ - public boolean hasAvatarSync() { + public boolean hasBasicInfo() { return (bitField0_ & 0x00000002) != 0; } /** - * optional .AvatarSync avatar_sync = 13; + * optional .PlayerBasicInfo basic_info = 6; * @return this */ - public PlayerSyncScNotify clearAvatarSync() { + public PlayerSyncScNotify clearBasicInfo() { bitField0_ &= ~0x00000002; - avatarSync.clear(); + basicInfo.clear(); return this; } /** - * optional .AvatarSync avatar_sync = 13; + * optional .PlayerBasicInfo basic_info = 6; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableAvatarSync()} if you want to modify it. + * Use {@link #getMutableBasicInfo()} if you want to modify it. * * @return internal storage object for reading */ - public AvatarSyncOuterClass.AvatarSync getAvatarSync() { - return avatarSync; + public PlayerBasicInfoOuterClass.PlayerBasicInfo getBasicInfo() { + return basicInfo; } /** - * optional .AvatarSync avatar_sync = 13; + * optional .PlayerBasicInfo basic_info = 6; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -173,24 +173,24 @@ public AvatarSyncOuterClass.AvatarSync getAvatarSync() { * * @return internal storage object for modifications */ - public AvatarSyncOuterClass.AvatarSync getMutableAvatarSync() { + public PlayerBasicInfoOuterClass.PlayerBasicInfo getMutableBasicInfo() { bitField0_ |= 0x00000002; - return avatarSync; + return basicInfo; } /** - * optional .AvatarSync avatar_sync = 13; - * @param value the avatarSync to set + * optional .PlayerBasicInfo basic_info = 6; + * @param value the basicInfo to set * @return this */ - public PlayerSyncScNotify setAvatarSync(final AvatarSyncOuterClass.AvatarSync value) { + public PlayerSyncScNotify setBasicInfo(final PlayerBasicInfoOuterClass.PlayerBasicInfo value) { bitField0_ |= 0x00000002; - avatarSync.copyFrom(value); + basicInfo.copyFrom(value); return this; } /** - * optional .BoardDataSync board_data_sync = 617; + * optional .BoardDataSync board_data_sync = 2034; * @return whether the boardDataSync field is set */ public boolean hasBoardDataSync() { @@ -198,7 +198,7 @@ public boolean hasBoardDataSync() { } /** - * optional .BoardDataSync board_data_sync = 617; + * optional .BoardDataSync board_data_sync = 2034; * @return this */ public PlayerSyncScNotify clearBoardDataSync() { @@ -208,7 +208,7 @@ public PlayerSyncScNotify clearBoardDataSync() { } /** - * optional .BoardDataSync board_data_sync = 617; + * optional .BoardDataSync board_data_sync = 2034; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -222,7 +222,7 @@ public BoardDataSyncOuterClass.BoardDataSync getBoardDataSync() { } /** - * optional .BoardDataSync board_data_sync = 617; + * optional .BoardDataSync board_data_sync = 2034; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -236,7 +236,7 @@ public BoardDataSyncOuterClass.BoardDataSync getMutableBoardDataSync() { } /** - * optional .BoardDataSync board_data_sync = 617; + * optional .BoardDataSync board_data_sync = 2034; * @param value the boardDataSync to set * @return this */ @@ -247,7 +247,7 @@ public PlayerSyncScNotify setBoardDataSync(final BoardDataSyncOuterClass.BoardDa } /** - * repeated uint32 del_equipment_list = 5; + * repeated uint32 del_equipment_list = 10; * @return whether the delEquipmentList field is set */ public boolean hasDelEquipmentList() { @@ -255,7 +255,7 @@ public boolean hasDelEquipmentList() { } /** - * repeated uint32 del_equipment_list = 5; + * repeated uint32 del_equipment_list = 10; * @return this */ public PlayerSyncScNotify clearDelEquipmentList() { @@ -265,7 +265,7 @@ public PlayerSyncScNotify clearDelEquipmentList() { } /** - * repeated uint32 del_equipment_list = 5; + * repeated uint32 del_equipment_list = 10; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -279,7 +279,7 @@ public RepeatedInt getDelEquipmentList() { } /** - * repeated uint32 del_equipment_list = 5; + * repeated uint32 del_equipment_list = 10; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -293,7 +293,7 @@ public RepeatedInt getMutableDelEquipmentList() { } /** - * repeated uint32 del_equipment_list = 5; + * repeated uint32 del_equipment_list = 10; * @param value the delEquipmentList to add * @return this */ @@ -304,7 +304,7 @@ public PlayerSyncScNotify addDelEquipmentList(final int value) { } /** - * repeated uint32 del_equipment_list = 5; + * repeated uint32 del_equipment_list = 10; * @param values the delEquipmentList to add * @return this */ @@ -383,39 +383,39 @@ public PlayerSyncScNotify addAllDelRelicList(final int... values) { } /** - * repeated .Material material_list = 7; - * @return whether the materialList field is set + * repeated .Relic relic_list = 2; + * @return whether the relicList field is set */ - public boolean hasMaterialList() { + public boolean hasRelicList() { return (bitField0_ & 0x00000020) != 0; } /** - * repeated .Material material_list = 7; + * repeated .Relic relic_list = 2; * @return this */ - public PlayerSyncScNotify clearMaterialList() { + public PlayerSyncScNotify clearRelicList() { bitField0_ &= ~0x00000020; - materialList.clear(); + relicList.clear(); return this; } /** - * repeated .Material material_list = 7; + * repeated .Relic relic_list = 2; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableMaterialList()} if you want to modify it. + * Use {@link #getMutableRelicList()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedMessage getMaterialList() { - return materialList; + public RepeatedMessage getRelicList() { + return relicList; } /** - * repeated .Material material_list = 7; + * repeated .Relic relic_list = 2; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -423,67 +423,67 @@ public RepeatedMessage getMaterialList() { * * @return internal storage object for modifications */ - public RepeatedMessage getMutableMaterialList() { + public RepeatedMessage getMutableRelicList() { bitField0_ |= 0x00000020; - return materialList; + return relicList; } /** - * repeated .Material material_list = 7; - * @param value the materialList to add + * repeated .Relic relic_list = 2; + * @param value the relicList to add * @return this */ - public PlayerSyncScNotify addMaterialList(final MaterialOuterClass.Material value) { + public PlayerSyncScNotify addRelicList(final RelicOuterClass.Relic value) { bitField0_ |= 0x00000020; - materialList.add(value); + relicList.add(value); return this; } /** - * repeated .Material material_list = 7; - * @param values the materialList to add + * repeated .Relic relic_list = 2; + * @param values the relicList to add * @return this */ - public PlayerSyncScNotify addAllMaterialList(final MaterialOuterClass.Material... values) { + public PlayerSyncScNotify addAllRelicList(final RelicOuterClass.Relic... values) { bitField0_ |= 0x00000020; - materialList.addAll(values); + relicList.addAll(values); return this; } /** - * repeated .HeroBasicTypeInfo basic_type_info_list = 8; - * @return whether the basicTypeInfoList field is set + * repeated .Equipment equipment_list = 5; + * @return whether the equipmentList field is set */ - public boolean hasBasicTypeInfoList() { + public boolean hasEquipmentList() { return (bitField0_ & 0x00000040) != 0; } /** - * repeated .HeroBasicTypeInfo basic_type_info_list = 8; + * repeated .Equipment equipment_list = 5; * @return this */ - public PlayerSyncScNotify clearBasicTypeInfoList() { + public PlayerSyncScNotify clearEquipmentList() { bitField0_ &= ~0x00000040; - basicTypeInfoList.clear(); + equipmentList.clear(); return this; } /** - * repeated .HeroBasicTypeInfo basic_type_info_list = 8; + * repeated .Equipment equipment_list = 5; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableBasicTypeInfoList()} if you want to modify it. + * Use {@link #getMutableEquipmentList()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedMessage getBasicTypeInfoList() { - return basicTypeInfoList; + public RepeatedMessage getEquipmentList() { + return equipmentList; } /** - * repeated .HeroBasicTypeInfo basic_type_info_list = 8; + * repeated .Equipment equipment_list = 5; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -491,70 +491,67 @@ public RepeatedMessage getBasicTy * * @return internal storage object for modifications */ - public RepeatedMessage getMutableBasicTypeInfoList( - ) { + public RepeatedMessage getMutableEquipmentList() { bitField0_ |= 0x00000040; - return basicTypeInfoList; + return equipmentList; } /** - * repeated .HeroBasicTypeInfo basic_type_info_list = 8; - * @param value the basicTypeInfoList to add + * repeated .Equipment equipment_list = 5; + * @param value the equipmentList to add * @return this */ - public PlayerSyncScNotify addBasicTypeInfoList( - final HeroBasicTypeInfoOuterClass.HeroBasicTypeInfo value) { + public PlayerSyncScNotify addEquipmentList(final EquipmentOuterClass.Equipment value) { bitField0_ |= 0x00000040; - basicTypeInfoList.add(value); + equipmentList.add(value); return this; } /** - * repeated .HeroBasicTypeInfo basic_type_info_list = 8; - * @param values the basicTypeInfoList to add + * repeated .Equipment equipment_list = 5; + * @param values the equipmentList to add * @return this */ - public PlayerSyncScNotify addAllBasicTypeInfoList( - final HeroBasicTypeInfoOuterClass.HeroBasicTypeInfo... values) { + public PlayerSyncScNotify addAllEquipmentList(final EquipmentOuterClass.Equipment... values) { bitField0_ |= 0x00000040; - basicTypeInfoList.addAll(values); + equipmentList.addAll(values); return this; } /** - * repeated .Relic relic_list = 10; - * @return whether the relicList field is set + * repeated .Material material_list = 11; + * @return whether the materialList field is set */ - public boolean hasRelicList() { + public boolean hasMaterialList() { return (bitField0_ & 0x00000080) != 0; } /** - * repeated .Relic relic_list = 10; + * repeated .Material material_list = 11; * @return this */ - public PlayerSyncScNotify clearRelicList() { + public PlayerSyncScNotify clearMaterialList() { bitField0_ &= ~0x00000080; - relicList.clear(); + materialList.clear(); return this; } /** - * repeated .Relic relic_list = 10; + * repeated .Material material_list = 11; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableRelicList()} if you want to modify it. + * Use {@link #getMutableMaterialList()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedMessage getRelicList() { - return relicList; + public RepeatedMessage getMaterialList() { + return materialList; } /** - * repeated .Relic relic_list = 10; + * repeated .Material material_list = 11; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -562,67 +559,67 @@ public RepeatedMessage getRelicList() { * * @return internal storage object for modifications */ - public RepeatedMessage getMutableRelicList() { + public RepeatedMessage getMutableMaterialList() { bitField0_ |= 0x00000080; - return relicList; + return materialList; } /** - * repeated .Relic relic_list = 10; - * @param value the relicList to add + * repeated .Material material_list = 11; + * @param value the materialList to add * @return this */ - public PlayerSyncScNotify addRelicList(final RelicOuterClass.Relic value) { + public PlayerSyncScNotify addMaterialList(final MaterialOuterClass.Material value) { bitField0_ |= 0x00000080; - relicList.add(value); + materialList.add(value); return this; } /** - * repeated .Relic relic_list = 10; - * @param values the relicList to add + * repeated .Material material_list = 11; + * @param values the materialList to add * @return this */ - public PlayerSyncScNotify addAllRelicList(final RelicOuterClass.Relic... values) { + public PlayerSyncScNotify addAllMaterialList(final MaterialOuterClass.Material... values) { bitField0_ |= 0x00000080; - relicList.addAll(values); + materialList.addAll(values); return this; } /** - * repeated .Equipment equipment_list = 11; - * @return whether the equipmentList field is set + * repeated .HeroBasicTypeInfo basic_type_info_list = 15; + * @return whether the basicTypeInfoList field is set */ - public boolean hasEquipmentList() { + public boolean hasBasicTypeInfoList() { return (bitField0_ & 0x00000100) != 0; } /** - * repeated .Equipment equipment_list = 11; + * repeated .HeroBasicTypeInfo basic_type_info_list = 15; * @return this */ - public PlayerSyncScNotify clearEquipmentList() { + public PlayerSyncScNotify clearBasicTypeInfoList() { bitField0_ &= ~0x00000100; - equipmentList.clear(); + basicTypeInfoList.clear(); return this; } /** - * repeated .Equipment equipment_list = 11; + * repeated .HeroBasicTypeInfo basic_type_info_list = 15; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableEquipmentList()} if you want to modify it. + * Use {@link #getMutableBasicTypeInfoList()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedMessage getEquipmentList() { - return equipmentList; + public RepeatedMessage getBasicTypeInfoList() { + return basicTypeInfoList; } /** - * repeated .Equipment equipment_list = 11; + * repeated .HeroBasicTypeInfo basic_type_info_list = 15; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -630,30 +627,33 @@ public RepeatedMessage getEquipmentList() { * * @return internal storage object for modifications */ - public RepeatedMessage getMutableEquipmentList() { + public RepeatedMessage getMutableBasicTypeInfoList( + ) { bitField0_ |= 0x00000100; - return equipmentList; + return basicTypeInfoList; } /** - * repeated .Equipment equipment_list = 11; - * @param value the equipmentList to add + * repeated .HeroBasicTypeInfo basic_type_info_list = 15; + * @param value the basicTypeInfoList to add * @return this */ - public PlayerSyncScNotify addEquipmentList(final EquipmentOuterClass.Equipment value) { + public PlayerSyncScNotify addBasicTypeInfoList( + final HeroBasicTypeInfoOuterClass.HeroBasicTypeInfo value) { bitField0_ |= 0x00000100; - equipmentList.add(value); + basicTypeInfoList.add(value); return this; } /** - * repeated .Equipment equipment_list = 11; - * @param values the equipmentList to add + * repeated .HeroBasicTypeInfo basic_type_info_list = 15; + * @param values the basicTypeInfoList to add * @return this */ - public PlayerSyncScNotify addAllEquipmentList(final EquipmentOuterClass.Equipment... values) { + public PlayerSyncScNotify addAllBasicTypeInfoList( + final HeroBasicTypeInfoOuterClass.HeroBasicTypeInfo... values) { bitField0_ |= 0x00000100; - equipmentList.addAll(values); + basicTypeInfoList.addAll(values); return this; } @@ -662,15 +662,15 @@ public PlayerSyncScNotify copyFrom(final PlayerSyncScNotify other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - basicInfo.copyFrom(other.basicInfo); avatarSync.copyFrom(other.avatarSync); + basicInfo.copyFrom(other.basicInfo); boardDataSync.copyFrom(other.boardDataSync); delEquipmentList.copyFrom(other.delEquipmentList); delRelicList.copyFrom(other.delRelicList); - materialList.copyFrom(other.materialList); - basicTypeInfoList.copyFrom(other.basicTypeInfoList); relicList.copyFrom(other.relicList); equipmentList.copyFrom(other.equipmentList); + materialList.copyFrom(other.materialList); + basicTypeInfoList.copyFrom(other.basicTypeInfoList); } return this; } @@ -681,12 +681,12 @@ public PlayerSyncScNotify mergeFrom(final PlayerSyncScNotify other) { return this; } cachedSize = -1; - if (other.hasBasicInfo()) { - getMutableBasicInfo().mergeFrom(other.basicInfo); - } if (other.hasAvatarSync()) { getMutableAvatarSync().mergeFrom(other.avatarSync); } + if (other.hasBasicInfo()) { + getMutableBasicInfo().mergeFrom(other.basicInfo); + } if (other.hasBoardDataSync()) { getMutableBoardDataSync().mergeFrom(other.boardDataSync); } @@ -696,18 +696,18 @@ public PlayerSyncScNotify mergeFrom(final PlayerSyncScNotify other) { if (other.hasDelRelicList()) { getMutableDelRelicList().addAll(other.delRelicList); } - if (other.hasMaterialList()) { - getMutableMaterialList().addAll(other.materialList); - } - if (other.hasBasicTypeInfoList()) { - getMutableBasicTypeInfoList().addAll(other.basicTypeInfoList); - } if (other.hasRelicList()) { getMutableRelicList().addAll(other.relicList); } if (other.hasEquipmentList()) { getMutableEquipmentList().addAll(other.equipmentList); } + if (other.hasMaterialList()) { + getMutableMaterialList().addAll(other.materialList); + } + if (other.hasBasicTypeInfoList()) { + getMutableBasicTypeInfoList().addAll(other.basicTypeInfoList); + } return this; } @@ -718,15 +718,15 @@ public PlayerSyncScNotify clear() { } cachedSize = -1; bitField0_ = 0; - basicInfo.clear(); avatarSync.clear(); + basicInfo.clear(); boardDataSync.clear(); delEquipmentList.clear(); delRelicList.clear(); - materialList.clear(); - basicTypeInfoList.clear(); relicList.clear(); equipmentList.clear(); + materialList.clear(); + basicTypeInfoList.clear(); return this; } @@ -737,15 +737,15 @@ public PlayerSyncScNotify clearQuick() { } cachedSize = -1; bitField0_ = 0; - basicInfo.clearQuick(); avatarSync.clearQuick(); + basicInfo.clearQuick(); boardDataSync.clearQuick(); delEquipmentList.clear(); delRelicList.clear(); - materialList.clearQuick(); - basicTypeInfoList.clearQuick(); relicList.clearQuick(); equipmentList.clearQuick(); + materialList.clearQuick(); + basicTypeInfoList.clearQuick(); return this; } @@ -759,34 +759,34 @@ public boolean equals(Object o) { } PlayerSyncScNotify other = (PlayerSyncScNotify) o; return bitField0_ == other.bitField0_ - && (!hasBasicInfo() || basicInfo.equals(other.basicInfo)) && (!hasAvatarSync() || avatarSync.equals(other.avatarSync)) + && (!hasBasicInfo() || basicInfo.equals(other.basicInfo)) && (!hasBoardDataSync() || boardDataSync.equals(other.boardDataSync)) && (!hasDelEquipmentList() || delEquipmentList.equals(other.delEquipmentList)) && (!hasDelRelicList() || delRelicList.equals(other.delRelicList)) - && (!hasMaterialList() || materialList.equals(other.materialList)) - && (!hasBasicTypeInfoList() || basicTypeInfoList.equals(other.basicTypeInfoList)) && (!hasRelicList() || relicList.equals(other.relicList)) - && (!hasEquipmentList() || equipmentList.equals(other.equipmentList)); + && (!hasEquipmentList() || equipmentList.equals(other.equipmentList)) + && (!hasMaterialList() || materialList.equals(other.materialList)) + && (!hasBasicTypeInfoList() || basicTypeInfoList.equals(other.basicTypeInfoList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 50); - output.writeMessageNoTag(basicInfo); + output.writeRawByte((byte) 10); + output.writeMessageNoTag(avatarSync); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 106); - output.writeMessageNoTag(avatarSync); + output.writeRawByte((byte) 50); + output.writeMessageNoTag(basicInfo); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawLittleEndian16((short) 9930); + output.writeRawLittleEndian16((short) 32658); output.writeMessageNoTag(boardDataSync); } if ((bitField0_ & 0x00000008) != 0) { for (int i = 0; i < delEquipmentList.length(); i++) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 80); output.writeUInt32NoTag(delEquipmentList.array()[i]); } } @@ -797,27 +797,27 @@ public void writeTo(final ProtoSink output) throws IOException { } } if ((bitField0_ & 0x00000020) != 0) { - for (int i = 0; i < materialList.length(); i++) { - output.writeRawByte((byte) 58); - output.writeMessageNoTag(materialList.get(i)); + for (int i = 0; i < relicList.length(); i++) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(relicList.get(i)); } } if ((bitField0_ & 0x00000040) != 0) { - for (int i = 0; i < basicTypeInfoList.length(); i++) { - output.writeRawByte((byte) 66); - output.writeMessageNoTag(basicTypeInfoList.get(i)); + for (int i = 0; i < equipmentList.length(); i++) { + output.writeRawByte((byte) 42); + output.writeMessageNoTag(equipmentList.get(i)); } } if ((bitField0_ & 0x00000080) != 0) { - for (int i = 0; i < relicList.length(); i++) { - output.writeRawByte((byte) 82); - output.writeMessageNoTag(relicList.get(i)); + for (int i = 0; i < materialList.length(); i++) { + output.writeRawByte((byte) 90); + output.writeMessageNoTag(materialList.get(i)); } } if ((bitField0_ & 0x00000100) != 0) { - for (int i = 0; i < equipmentList.length(); i++) { - output.writeRawByte((byte) 90); - output.writeMessageNoTag(equipmentList.get(i)); + for (int i = 0; i < basicTypeInfoList.length(); i++) { + output.writeRawByte((byte) 122); + output.writeMessageNoTag(basicTypeInfoList.get(i)); } } } @@ -826,10 +826,10 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(basicInfo); + size += 1 + ProtoSink.computeMessageSizeNoTag(avatarSync); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(avatarSync); + size += 1 + ProtoSink.computeMessageSizeNoTag(basicInfo); } if ((bitField0_ & 0x00000004) != 0) { size += 2 + ProtoSink.computeMessageSizeNoTag(boardDataSync); @@ -841,16 +841,16 @@ protected int computeSerializedSize() { size += (1 * delRelicList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(delRelicList); } if ((bitField0_ & 0x00000020) != 0) { - size += (1 * materialList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(materialList); + size += (1 * relicList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(relicList); } if ((bitField0_ & 0x00000040) != 0) { - size += (1 * basicTypeInfoList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(basicTypeInfoList); + size += (1 * equipmentList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(equipmentList); } if ((bitField0_ & 0x00000080) != 0) { - size += (1 * relicList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(relicList); + size += (1 * materialList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(materialList); } if ((bitField0_ & 0x00000100) != 0) { - size += (1 * equipmentList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(equipmentList); + size += (1 * basicTypeInfoList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(basicTypeInfoList); } return size; } @@ -862,34 +862,34 @@ public PlayerSyncScNotify mergeFrom(final ProtoSource input) throws IOException int tag = input.readTag(); while (true) { switch (tag) { - case 50: { - // basicInfo - input.readMessage(basicInfo); + case 10: { + // avatarSync + input.readMessage(avatarSync); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 106) { + if (tag != 50) { break; } } - case 106: { - // avatarSync - input.readMessage(avatarSync); + case 50: { + // basicInfo + input.readMessage(basicInfo); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 4938) { + if (tag != 16274) { break; } } - case 4938: { + case 16274: { // boardDataSync input.readMessage(boardDataSync); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 42) { + if (tag != 82) { break; } } - case 42: { + case 82: { // delEquipmentList [packed=true] input.readPackedUInt32(delEquipmentList, tag); bitField0_ |= 0x00000008; @@ -903,37 +903,37 @@ public PlayerSyncScNotify mergeFrom(final ProtoSource input) throws IOException input.readPackedUInt32(delRelicList, tag); bitField0_ |= 0x00000010; tag = input.readTag(); - if (tag != 58) { + if (tag != 18) { break; } } - case 58: { - // materialList - tag = input.readRepeatedMessage(materialList, tag); + case 18: { + // relicList + tag = input.readRepeatedMessage(relicList, tag); bitField0_ |= 0x00000020; - if (tag != 66) { + if (tag != 42) { break; } } - case 66: { - // basicTypeInfoList - tag = input.readRepeatedMessage(basicTypeInfoList, tag); + case 42: { + // equipmentList + tag = input.readRepeatedMessage(equipmentList, tag); bitField0_ |= 0x00000040; - if (tag != 82) { + if (tag != 90) { break; } } - case 82: { - // relicList - tag = input.readRepeatedMessage(relicList, tag); + case 90: { + // materialList + tag = input.readRepeatedMessage(materialList, tag); bitField0_ |= 0x00000080; - if (tag != 90) { + if (tag != 122) { break; } } - case 90: { - // equipmentList - tag = input.readRepeatedMessage(equipmentList, tag); + case 122: { + // basicTypeInfoList + tag = input.readRepeatedMessage(basicTypeInfoList, tag); bitField0_ |= 0x00000100; if (tag != 0) { break; @@ -949,7 +949,7 @@ public PlayerSyncScNotify mergeFrom(final ProtoSource input) throws IOException tag = input.readTag(); break; } - case 40: { + case 80: { // delEquipmentList [packed=false] tag = input.readRepeatedUInt32(delEquipmentList, tag); bitField0_ |= 0x00000008; @@ -969,10 +969,10 @@ public PlayerSyncScNotify mergeFrom(final ProtoSource input) throws IOException public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeMessage(FieldNames.basicInfo, basicInfo); + output.writeMessage(FieldNames.avatarSync, avatarSync); } if ((bitField0_ & 0x00000002) != 0) { - output.writeMessage(FieldNames.avatarSync, avatarSync); + output.writeMessage(FieldNames.basicInfo, basicInfo); } if ((bitField0_ & 0x00000004) != 0) { output.writeMessage(FieldNames.boardDataSync, boardDataSync); @@ -984,16 +984,16 @@ public void writeTo(final JsonSink output) throws IOException { output.writeRepeatedUInt32(FieldNames.delRelicList, delRelicList); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRepeatedMessage(FieldNames.materialList, materialList); + output.writeRepeatedMessage(FieldNames.relicList, relicList); } if ((bitField0_ & 0x00000040) != 0) { - output.writeRepeatedMessage(FieldNames.basicTypeInfoList, basicTypeInfoList); + output.writeRepeatedMessage(FieldNames.equipmentList, equipmentList); } if ((bitField0_ & 0x00000080) != 0) { - output.writeRepeatedMessage(FieldNames.relicList, relicList); + output.writeRepeatedMessage(FieldNames.materialList, materialList); } if ((bitField0_ & 0x00000100) != 0) { - output.writeRepeatedMessage(FieldNames.equipmentList, equipmentList); + output.writeRepeatedMessage(FieldNames.basicTypeInfoList, basicTypeInfoList); } output.endObject(); } @@ -1005,11 +1005,11 @@ public PlayerSyncScNotify mergeFrom(final JsonSource input) throws IOException { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -1699486212: - case -1124288993: { - if (input.isAtField(FieldNames.basicInfo)) { + case -403178604: + case 397279681: { + if (input.isAtField(FieldNames.avatarSync)) { if (!input.trySkipNullValue()) { - input.readMessage(basicInfo); + input.readMessage(avatarSync); bitField0_ |= 0x00000001; } } else { @@ -1017,11 +1017,11 @@ public PlayerSyncScNotify mergeFrom(final JsonSource input) throws IOException { } break; } - case -403178604: - case 397279681: { - if (input.isAtField(FieldNames.avatarSync)) { + case -1699486212: + case -1124288993: { + if (input.isAtField(FieldNames.basicInfo)) { if (!input.trySkipNullValue()) { - input.readMessage(avatarSync); + input.readMessage(basicInfo); bitField0_ |= 0x00000002; } } else { @@ -1065,11 +1065,11 @@ public PlayerSyncScNotify mergeFrom(final JsonSource input) throws IOException { } break; } - case -2115854747: - case -1149360970: { - if (input.isAtField(FieldNames.materialList)) { + case 204814001: + case 2071893482: { + if (input.isAtField(FieldNames.relicList)) { if (!input.trySkipNullValue()) { - input.readRepeatedMessage(materialList); + input.readRepeatedMessage(relicList); bitField0_ |= 0x00000020; } } else { @@ -1077,11 +1077,11 @@ public PlayerSyncScNotify mergeFrom(final JsonSource input) throws IOException { } break; } - case -344592620: - case -1315699973: { - if (input.isAtField(FieldNames.basicTypeInfoList)) { + case 2007143244: + case 2109525167: { + if (input.isAtField(FieldNames.equipmentList)) { if (!input.trySkipNullValue()) { - input.readRepeatedMessage(basicTypeInfoList); + input.readRepeatedMessage(equipmentList); bitField0_ |= 0x00000040; } } else { @@ -1089,11 +1089,11 @@ public PlayerSyncScNotify mergeFrom(final JsonSource input) throws IOException { } break; } - case 204814001: - case 2071893482: { - if (input.isAtField(FieldNames.relicList)) { + case -2115854747: + case -1149360970: { + if (input.isAtField(FieldNames.materialList)) { if (!input.trySkipNullValue()) { - input.readRepeatedMessage(relicList); + input.readRepeatedMessage(materialList); bitField0_ |= 0x00000080; } } else { @@ -1101,11 +1101,11 @@ public PlayerSyncScNotify mergeFrom(final JsonSource input) throws IOException { } break; } - case 2007143244: - case 2109525167: { - if (input.isAtField(FieldNames.equipmentList)) { + case -344592620: + case -1315699973: { + if (input.isAtField(FieldNames.basicTypeInfoList)) { if (!input.trySkipNullValue()) { - input.readRepeatedMessage(equipmentList); + input.readRepeatedMessage(basicTypeInfoList); bitField0_ |= 0x00000100; } } else { @@ -1166,23 +1166,23 @@ public PlayerSyncScNotify create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName basicInfo = FieldName.forField("basicInfo", "basic_info"); - static final FieldName avatarSync = FieldName.forField("avatarSync", "avatar_sync"); + static final FieldName basicInfo = FieldName.forField("basicInfo", "basic_info"); + static final FieldName boardDataSync = FieldName.forField("boardDataSync", "board_data_sync"); static final FieldName delEquipmentList = FieldName.forField("delEquipmentList", "del_equipment_list"); static final FieldName delRelicList = FieldName.forField("delRelicList", "del_relic_list"); - static final FieldName materialList = FieldName.forField("materialList", "material_list"); - - static final FieldName basicTypeInfoList = FieldName.forField("basicTypeInfoList", "basic_type_info_list"); - static final FieldName relicList = FieldName.forField("relicList", "relic_list"); static final FieldName equipmentList = FieldName.forField("equipmentList", "equipment_list"); + + static final FieldName materialList = FieldName.forField("materialList", "material_list"); + + static final FieldName basicTypeInfoList = FieldName.forField("basicTypeInfoList", "basic_type_info_list"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/PromoteAvatarCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/PromoteAvatarCsReqOuterClass.java index df38a4c4a..a7b17e747 100644 --- a/src/generated/main/emu/lunarcore/proto/PromoteAvatarCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/PromoteAvatarCsReqOuterClass.java @@ -20,12 +20,12 @@ public static final class PromoteAvatarCsReq extends ProtoMessageoptional uint32 base_avatar_id = 3; + * optional uint32 base_avatar_id = 14; */ private int baseAvatarId; /** - * repeated .ItemCost item_list = 9; + * repeated .ItemCost item_list = 7; */ private final RepeatedMessage itemList = RepeatedMessage.newEmptyInstance(ItemCostOuterClass.ItemCost.getFactory()); @@ -40,7 +40,7 @@ public static PromoteAvatarCsReq newInstance() { } /** - * optional uint32 base_avatar_id = 3; + * optional uint32 base_avatar_id = 14; * @return whether the baseAvatarId field is set */ public boolean hasBaseAvatarId() { @@ -48,7 +48,7 @@ public boolean hasBaseAvatarId() { } /** - * optional uint32 base_avatar_id = 3; + * optional uint32 base_avatar_id = 14; * @return this */ public PromoteAvatarCsReq clearBaseAvatarId() { @@ -58,7 +58,7 @@ public PromoteAvatarCsReq clearBaseAvatarId() { } /** - * optional uint32 base_avatar_id = 3; + * optional uint32 base_avatar_id = 14; * @return the baseAvatarId */ public int getBaseAvatarId() { @@ -66,7 +66,7 @@ public int getBaseAvatarId() { } /** - * optional uint32 base_avatar_id = 3; + * optional uint32 base_avatar_id = 14; * @param value the baseAvatarId to set * @return this */ @@ -77,7 +77,7 @@ public PromoteAvatarCsReq setBaseAvatarId(final int value) { } /** - * repeated .ItemCost item_list = 9; + * repeated .ItemCost item_list = 7; * @return whether the itemList field is set */ public boolean hasItemList() { @@ -85,7 +85,7 @@ public boolean hasItemList() { } /** - * repeated .ItemCost item_list = 9; + * repeated .ItemCost item_list = 7; * @return this */ public PromoteAvatarCsReq clearItemList() { @@ -95,7 +95,7 @@ public PromoteAvatarCsReq clearItemList() { } /** - * repeated .ItemCost item_list = 9; + * repeated .ItemCost item_list = 7; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -109,7 +109,7 @@ public RepeatedMessage getItemList() { } /** - * repeated .ItemCost item_list = 9; + * repeated .ItemCost item_list = 7; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -123,7 +123,7 @@ public RepeatedMessage getMutableItemList() { } /** - * repeated .ItemCost item_list = 9; + * repeated .ItemCost item_list = 7; * @param value the itemList to add * @return this */ @@ -134,7 +134,7 @@ public PromoteAvatarCsReq addItemList(final ItemCostOuterClass.ItemCost value) { } /** - * repeated .ItemCost item_list = 9; + * repeated .ItemCost item_list = 7; * @param values the itemList to add * @return this */ @@ -210,12 +210,12 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 112); output.writeUInt32NoTag(baseAvatarId); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < itemList.length(); i++) { - output.writeRawByte((byte) 74); + output.writeRawByte((byte) 58); output.writeMessageNoTag(itemList.get(i)); } } @@ -240,16 +240,16 @@ public PromoteAvatarCsReq mergeFrom(final ProtoSource input) throws IOException int tag = input.readTag(); while (true) { switch (tag) { - case 24: { + case 112: { // baseAvatarId baseAvatarId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 74) { + if (tag != 58) { break; } } - case 74: { + case 58: { // itemList tag = input.readRepeatedMessage(itemList, tag); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/PromoteEquipmentCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/PromoteEquipmentCsReqOuterClass.java index 5549139d1..33a969290 100644 --- a/src/generated/main/emu/lunarcore/proto/PromoteEquipmentCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/PromoteEquipmentCsReqOuterClass.java @@ -19,12 +19,12 @@ public static final class PromoteEquipmentCsReq extends ProtoMessageoptional uint32 equipment_unique_id = 13; + * optional uint32 equipment_unique_id = 7; */ private int equipmentUniqueId; /** - * optional .ItemCostList item_cost_list = 5; + * optional .ItemCostList item_cost_list = 2; */ private final ItemCostListOuterClass.ItemCostList itemCostList = ItemCostListOuterClass.ItemCostList.newInstance(); @@ -39,7 +39,7 @@ public static PromoteEquipmentCsReq newInstance() { } /** - * optional uint32 equipment_unique_id = 13; + * optional uint32 equipment_unique_id = 7; * @return whether the equipmentUniqueId field is set */ public boolean hasEquipmentUniqueId() { @@ -47,7 +47,7 @@ public boolean hasEquipmentUniqueId() { } /** - * optional uint32 equipment_unique_id = 13; + * optional uint32 equipment_unique_id = 7; * @return this */ public PromoteEquipmentCsReq clearEquipmentUniqueId() { @@ -57,7 +57,7 @@ public PromoteEquipmentCsReq clearEquipmentUniqueId() { } /** - * optional uint32 equipment_unique_id = 13; + * optional uint32 equipment_unique_id = 7; * @return the equipmentUniqueId */ public int getEquipmentUniqueId() { @@ -65,7 +65,7 @@ public int getEquipmentUniqueId() { } /** - * optional uint32 equipment_unique_id = 13; + * optional uint32 equipment_unique_id = 7; * @param value the equipmentUniqueId to set * @return this */ @@ -76,7 +76,7 @@ public PromoteEquipmentCsReq setEquipmentUniqueId(final int value) { } /** - * optional .ItemCostList item_cost_list = 5; + * optional .ItemCostList item_cost_list = 2; * @return whether the itemCostList field is set */ public boolean hasItemCostList() { @@ -84,7 +84,7 @@ public boolean hasItemCostList() { } /** - * optional .ItemCostList item_cost_list = 5; + * optional .ItemCostList item_cost_list = 2; * @return this */ public PromoteEquipmentCsReq clearItemCostList() { @@ -94,7 +94,7 @@ public PromoteEquipmentCsReq clearItemCostList() { } /** - * optional .ItemCostList item_cost_list = 5; + * optional .ItemCostList item_cost_list = 2; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -108,7 +108,7 @@ public ItemCostListOuterClass.ItemCostList getItemCostList() { } /** - * optional .ItemCostList item_cost_list = 5; + * optional .ItemCostList item_cost_list = 2; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -122,7 +122,7 @@ public ItemCostListOuterClass.ItemCostList getMutableItemCostList() { } /** - * optional .ItemCostList item_cost_list = 5; + * optional .ItemCostList item_cost_list = 2; * @param value the itemCostList to set * @return this */ @@ -198,11 +198,11 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 56); output.writeUInt32NoTag(equipmentUniqueId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 42); + output.writeRawByte((byte) 18); output.writeMessageNoTag(itemCostList); } } @@ -226,16 +226,16 @@ public PromoteEquipmentCsReq mergeFrom(final ProtoSource input) throws IOExcepti int tag = input.readTag(); while (true) { switch (tag) { - case 104: { + case 56: { // equipmentUniqueId equipmentUniqueId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 42) { + if (tag != 18) { break; } } - case 42: { + case 18: { // itemCostList input.readMessage(itemCostList); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/PropExtraInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/PropExtraInfoOuterClass.java index c51fb4297..0ee9711cc 100644 --- a/src/generated/main/emu/lunarcore/proto/PropExtraInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/PropExtraInfoOuterClass.java @@ -19,7 +19,7 @@ public static final class PropExtraInfo extends ProtoMessage impl private static final long serialVersionUID = 0L; /** - * optional .PropRogueInfo rogue_info = 7; + * optional .PropRogueInfo rogue_info = 11; */ private final PropRogueInfoOuterClass.PropRogueInfo rogueInfo = PropRogueInfoOuterClass.PropRogueInfo.newInstance(); @@ -33,19 +33,8 @@ public static PropExtraInfo newInstance() { return new PropExtraInfo(); } - public boolean hasInfo() { - return (((bitField0_ & 0x00000001)) != 0); - } - - public PropExtraInfo clearInfo() { - if (hasInfo()) { - clearRogueInfo(); - } - return this; - } - /** - * optional .PropRogueInfo rogue_info = 7; + * optional .PropRogueInfo rogue_info = 11; * @return whether the rogueInfo field is set */ public boolean hasRogueInfo() { @@ -53,7 +42,7 @@ public boolean hasRogueInfo() { } /** - * optional .PropRogueInfo rogue_info = 7; + * optional .PropRogueInfo rogue_info = 11; * @return this */ public PropExtraInfo clearRogueInfo() { @@ -63,7 +52,7 @@ public PropExtraInfo clearRogueInfo() { } /** - * optional .PropRogueInfo rogue_info = 7; + * optional .PropRogueInfo rogue_info = 11; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -77,7 +66,7 @@ public PropRogueInfoOuterClass.PropRogueInfo getRogueInfo() { } /** - * optional .PropRogueInfo rogue_info = 7; + * optional .PropRogueInfo rogue_info = 11; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -91,7 +80,7 @@ public PropRogueInfoOuterClass.PropRogueInfo getMutableRogueInfo() { } /** - * optional .PropRogueInfo rogue_info = 7; + * optional .PropRogueInfo rogue_info = 11; * @param value the rogueInfo to set * @return this */ @@ -161,7 +150,7 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 58); + output.writeRawByte((byte) 90); output.writeMessageNoTag(rogueInfo); } } @@ -182,7 +171,7 @@ public PropExtraInfo mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 58: { + case 90: { // rogueInfo input.readMessage(rogueInfo); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/QuestOuterClass.java b/src/generated/main/emu/lunarcore/proto/QuestOuterClass.java index 824387885..7eadf86be 100644 --- a/src/generated/main/emu/lunarcore/proto/QuestOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/QuestOuterClass.java @@ -7,11 +7,9 @@ import us.hebi.quickbuf.JsonSink; import us.hebi.quickbuf.JsonSource; import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoEnum; import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; -import us.hebi.quickbuf.ProtoUtil; import us.hebi.quickbuf.RepeatedInt; public final class QuestOuterClass { @@ -37,7 +35,7 @@ public static final class Quest extends ProtoMessage implements Cloneable private int progress; /** - * optional .Quest.QuestStatus status = 5; + * optional .QuestStatus status = 5; */ private int status; @@ -168,7 +166,7 @@ public Quest setProgress(final int value) { } /** - * optional .Quest.QuestStatus status = 5; + * optional .QuestStatus status = 5; * @return whether the status field is set */ public boolean hasStatus() { @@ -176,7 +174,7 @@ public boolean hasStatus() { } /** - * optional .Quest.QuestStatus status = 5; + * optional .QuestStatus status = 5; * @return this */ public Quest clearStatus() { @@ -186,11 +184,11 @@ public Quest clearStatus() { } /** - * optional .Quest.QuestStatus status = 5; + * optional .QuestStatus status = 5; * @return the status */ - public QuestStatus getStatus() { - return QuestStatus.forNumber(status); + public QuestStatusOuterClass.QuestStatus getStatus() { + return QuestStatusOuterClass.QuestStatus.forNumber(status); } /** @@ -206,7 +204,7 @@ public int getStatusValue() { /** * Sets the value of the internal enum store. This does not * do any validity checks, so be sure to use appropriate value - * constants from {@link QuestStatus}. Setting an invalid value + * constants from {@link QuestStatusOuterClass.QuestStatus}. Setting an invalid value * can cause {@link Quest#getStatus()} to return null * * @param value the numeric wire value to set @@ -219,11 +217,11 @@ public Quest setStatusValue(final int value) { } /** - * optional .Quest.QuestStatus status = 5; + * optional .QuestStatus status = 5; * @param value the status to set * @return this */ - public Quest setStatus(final QuestStatus value) { + public Quest setStatus(final QuestStatusOuterClass.QuestStatus value) { bitField0_ |= 0x00000008; status = value.getNumber(); return this; @@ -462,7 +460,7 @@ public Quest mergeFrom(final ProtoSource input) throws IOException { case 40: { // status final int value = input.readInt32(); - if (QuestStatus.forNumber(value) != null) { + if (QuestStatusOuterClass.QuestStatus.forNumber(value) != null) { status = value; bitField0_ |= 0x00000008; } @@ -513,7 +511,7 @@ public void writeTo(final JsonSink output) throws IOException { output.writeUInt32(FieldNames.progress, progress); } if ((bitField0_ & 0x00000008) != 0) { - output.writeEnum(FieldNames.status, status, QuestStatus.converter()); + output.writeEnum(FieldNames.status, status, QuestStatusOuterClass.QuestStatus.converter()); } if ((bitField0_ & 0x00000010) != 0) { output.writeRepeatedUInt32(FieldNames.takenAchievementLevelList, takenAchievementLevelList); @@ -565,7 +563,7 @@ public Quest mergeFrom(final JsonSource input) throws IOException { case -892481550: { if (input.isAtField(FieldNames.status)) { if (!input.trySkipNullValue()) { - final QuestStatus value = input.readEnum(QuestStatus.converter()); + final QuestStatusOuterClass.QuestStatus value = input.readEnum(QuestStatusOuterClass.QuestStatus.converter()); if (value != null) { status = value.getNumber(); bitField0_ |= 0x00000008; @@ -629,159 +627,6 @@ public static MessageFactory getFactory() { return QuestFactory.INSTANCE; } - /** - * Protobuf enum {@code QuestStatus} - */ - public enum QuestStatus implements ProtoEnum { - /** - * QUEST_NONE = 0; - */ - QUEST_NONE("QUEST_NONE", 0), - - /** - * QUEST_DOING = 1; - */ - QUEST_DOING("QUEST_DOING", 1), - - /** - * QUEST_FINISH = 2; - */ - QUEST_FINISH("QUEST_FINISH", 2), - - /** - * QUEST_CLOSE = 3; - */ - QUEST_CLOSE("QUEST_CLOSE", 3), - - /** - * QUEST_DELETE = 4; - */ - QUEST_DELETE("QUEST_DELETE", 4); - - /** - * QUEST_NONE = 0; - */ - public static final int QUEST_NONE_VALUE = 0; - - /** - * QUEST_DOING = 1; - */ - public static final int QUEST_DOING_VALUE = 1; - - /** - * QUEST_FINISH = 2; - */ - public static final int QUEST_FINISH_VALUE = 2; - - /** - * QUEST_CLOSE = 3; - */ - public static final int QUEST_CLOSE_VALUE = 3; - - /** - * QUEST_DELETE = 4; - */ - public static final int QUEST_DELETE_VALUE = 4; - - private final String name; - - private final int number; - - private QuestStatus(String name, int number) { - this.name = name; - this.number = number; - } - - /** - * @return the string representation of enum entry - */ - @Override - public String getName() { - return name; - } - - /** - * @return the numeric wire value of this enum entry - */ - @Override - public int getNumber() { - return number; - } - - /** - * @return a converter that maps between this enum's numeric and text representations - */ - public static ProtoEnum.EnumConverter converter() { - return QuestStatusConverter.INSTANCE; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value, or null if unknown. - */ - public static QuestStatus forNumber(int value) { - return QuestStatusConverter.INSTANCE.forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @param other Fallback value in case the value is not known. - * @return The enum associated with the given numeric wire value, or the fallback value if unknown. - */ - public static QuestStatus forNumberOr(int number, QuestStatus other) { - QuestStatus value = forNumber(number); - return value == null ? other : value; - } - - enum QuestStatusConverter implements ProtoEnum.EnumConverter { - INSTANCE; - - private static final QuestStatus[] lookup = new QuestStatus[5]; - - static { - lookup[0] = QUEST_NONE; - lookup[1] = QUEST_DOING; - lookup[2] = QUEST_FINISH; - lookup[3] = QUEST_CLOSE; - lookup[4] = QUEST_DELETE; - } - - @Override - public final QuestStatus forNumber(final int value) { - if (value >= 0 && value < lookup.length) { - return lookup[value]; - } - return null; - } - - @Override - public final QuestStatus forName(final CharSequence value) { - if (value.length() == 10) { - if (ProtoUtil.isEqual("QUEST_NONE", value)) { - return QUEST_NONE; - } - } - if (value.length() == 11) { - if (ProtoUtil.isEqual("QUEST_DOING", value)) { - return QUEST_DOING; - } - if (ProtoUtil.isEqual("QUEST_CLOSE", value)) { - return QUEST_CLOSE; - } - } - if (value.length() == 12) { - if (ProtoUtil.isEqual("QUEST_FINISH", value)) { - return QUEST_FINISH; - } - if (ProtoUtil.isEqual("QUEST_DELETE", value)) { - return QUEST_DELETE; - } - } - return null; - } - } - } - private enum QuestFactory implements MessageFactory { INSTANCE; diff --git a/src/generated/main/emu/lunarcore/proto/QuestStatusOuterClass.java b/src/generated/main/emu/lunarcore/proto/QuestStatusOuterClass.java new file mode 100644 index 000000000..985c2754e --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/QuestStatusOuterClass.java @@ -0,0 +1,160 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import us.hebi.quickbuf.ProtoEnum; +import us.hebi.quickbuf.ProtoUtil; + +public final class QuestStatusOuterClass { + /** + * Protobuf enum {@code QuestStatus} + */ + public enum QuestStatus implements ProtoEnum { + /** + * QUEST_NONE = 0; + */ + QUEST_NONE("QUEST_NONE", 0), + + /** + * QUEST_DOING = 1; + */ + QUEST_DOING("QUEST_DOING", 1), + + /** + * QUEST_FINISH = 2; + */ + QUEST_FINISH("QUEST_FINISH", 2), + + /** + * QUEST_CLOSE = 3; + */ + QUEST_CLOSE("QUEST_CLOSE", 3), + + /** + * QUEST_DELETE = 4; + */ + QUEST_DELETE("QUEST_DELETE", 4); + + /** + * QUEST_NONE = 0; + */ + public static final int QUEST_NONE_VALUE = 0; + + /** + * QUEST_DOING = 1; + */ + public static final int QUEST_DOING_VALUE = 1; + + /** + * QUEST_FINISH = 2; + */ + public static final int QUEST_FINISH_VALUE = 2; + + /** + * QUEST_CLOSE = 3; + */ + public static final int QUEST_CLOSE_VALUE = 3; + + /** + * QUEST_DELETE = 4; + */ + public static final int QUEST_DELETE_VALUE = 4; + + private final String name; + + private final int number; + + private QuestStatus(String name, int number) { + this.name = name; + this.number = number; + } + + /** + * @return the string representation of enum entry + */ + @Override + public String getName() { + return name; + } + + /** + * @return the numeric wire value of this enum entry + */ + @Override + public int getNumber() { + return number; + } + + /** + * @return a converter that maps between this enum's numeric and text representations + */ + public static ProtoEnum.EnumConverter converter() { + return QuestStatusConverter.INSTANCE; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value, or null if unknown. + */ + public static QuestStatus forNumber(int value) { + return QuestStatusConverter.INSTANCE.forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @param other Fallback value in case the value is not known. + * @return The enum associated with the given numeric wire value, or the fallback value if unknown. + */ + public static QuestStatus forNumberOr(int number, QuestStatus other) { + QuestStatus value = forNumber(number); + return value == null ? other : value; + } + + enum QuestStatusConverter implements ProtoEnum.EnumConverter { + INSTANCE; + + private static final QuestStatus[] lookup = new QuestStatus[5]; + + static { + lookup[0] = QUEST_NONE; + lookup[1] = QUEST_DOING; + lookup[2] = QUEST_FINISH; + lookup[3] = QUEST_CLOSE; + lookup[4] = QUEST_DELETE; + } + + @Override + public final QuestStatus forNumber(final int value) { + if (value >= 0 && value < lookup.length) { + return lookup[value]; + } + return null; + } + + @Override + public final QuestStatus forName(final CharSequence value) { + if (value.length() == 10) { + if (ProtoUtil.isEqual("QUEST_NONE", value)) { + return QUEST_NONE; + } + } + if (value.length() == 11) { + if (ProtoUtil.isEqual("QUEST_DOING", value)) { + return QUEST_DOING; + } + if (ProtoUtil.isEqual("QUEST_CLOSE", value)) { + return QUEST_CLOSE; + } + } + if (value.length() == 12) { + if (ProtoUtil.isEqual("QUEST_FINISH", value)) { + return QUEST_FINISH; + } + if (ProtoUtil.isEqual("QUEST_DELETE", value)) { + return QUEST_DELETE; + } + } + return null; + } + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/QuitLineupCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/QuitLineupCsReqOuterClass.java index 30b34dd39..86894037f 100644 --- a/src/generated/main/emu/lunarcore/proto/QuitLineupCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/QuitLineupCsReqOuterClass.java @@ -19,22 +19,22 @@ public static final class QuitLineupCsReq extends ProtoMessage private static final long serialVersionUID = 0L; /** - * optional uint32 index = 2; + * optional uint32 index = 1; */ private int index; /** - * optional uint32 plane_id = 10; + * optional uint32 plane_id = 5; */ private int planeId; /** - * optional uint32 base_avatar_id = 15; + * optional uint32 base_avatar_id = 7; */ private int baseAvatarId; /** - * optional .AvatarType avatar_type = 4; + * optional .AvatarType avatar_type = 6; */ private int avatarType; @@ -44,7 +44,7 @@ public static final class QuitLineupCsReq extends ProtoMessage private int extraLineupType; /** - * optional bool is_virtual = 11; + * optional bool is_virtual = 2; */ private boolean isVirtual; @@ -59,7 +59,7 @@ public static QuitLineupCsReq newInstance() { } /** - * optional uint32 index = 2; + * optional uint32 index = 1; * @return whether the index field is set */ public boolean hasIndex() { @@ -67,7 +67,7 @@ public boolean hasIndex() { } /** - * optional uint32 index = 2; + * optional uint32 index = 1; * @return this */ public QuitLineupCsReq clearIndex() { @@ -77,7 +77,7 @@ public QuitLineupCsReq clearIndex() { } /** - * optional uint32 index = 2; + * optional uint32 index = 1; * @return the index */ public int getIndex() { @@ -85,7 +85,7 @@ public int getIndex() { } /** - * optional uint32 index = 2; + * optional uint32 index = 1; * @param value the index to set * @return this */ @@ -96,7 +96,7 @@ public QuitLineupCsReq setIndex(final int value) { } /** - * optional uint32 plane_id = 10; + * optional uint32 plane_id = 5; * @return whether the planeId field is set */ public boolean hasPlaneId() { @@ -104,7 +104,7 @@ public boolean hasPlaneId() { } /** - * optional uint32 plane_id = 10; + * optional uint32 plane_id = 5; * @return this */ public QuitLineupCsReq clearPlaneId() { @@ -114,7 +114,7 @@ public QuitLineupCsReq clearPlaneId() { } /** - * optional uint32 plane_id = 10; + * optional uint32 plane_id = 5; * @return the planeId */ public int getPlaneId() { @@ -122,7 +122,7 @@ public int getPlaneId() { } /** - * optional uint32 plane_id = 10; + * optional uint32 plane_id = 5; * @param value the planeId to set * @return this */ @@ -133,7 +133,7 @@ public QuitLineupCsReq setPlaneId(final int value) { } /** - * optional uint32 base_avatar_id = 15; + * optional uint32 base_avatar_id = 7; * @return whether the baseAvatarId field is set */ public boolean hasBaseAvatarId() { @@ -141,7 +141,7 @@ public boolean hasBaseAvatarId() { } /** - * optional uint32 base_avatar_id = 15; + * optional uint32 base_avatar_id = 7; * @return this */ public QuitLineupCsReq clearBaseAvatarId() { @@ -151,7 +151,7 @@ public QuitLineupCsReq clearBaseAvatarId() { } /** - * optional uint32 base_avatar_id = 15; + * optional uint32 base_avatar_id = 7; * @return the baseAvatarId */ public int getBaseAvatarId() { @@ -159,7 +159,7 @@ public int getBaseAvatarId() { } /** - * optional uint32 base_avatar_id = 15; + * optional uint32 base_avatar_id = 7; * @param value the baseAvatarId to set * @return this */ @@ -170,7 +170,7 @@ public QuitLineupCsReq setBaseAvatarId(final int value) { } /** - * optional .AvatarType avatar_type = 4; + * optional .AvatarType avatar_type = 6; * @return whether the avatarType field is set */ public boolean hasAvatarType() { @@ -178,7 +178,7 @@ public boolean hasAvatarType() { } /** - * optional .AvatarType avatar_type = 4; + * optional .AvatarType avatar_type = 6; * @return this */ public QuitLineupCsReq clearAvatarType() { @@ -188,7 +188,7 @@ public QuitLineupCsReq clearAvatarType() { } /** - * optional .AvatarType avatar_type = 4; + * optional .AvatarType avatar_type = 6; * @return the avatarType */ public AvatarTypeOuterClass.AvatarType getAvatarType() { @@ -221,7 +221,7 @@ public QuitLineupCsReq setAvatarTypeValue(final int value) { } /** - * optional .AvatarType avatar_type = 4; + * optional .AvatarType avatar_type = 6; * @param value the avatarType to set * @return this */ @@ -295,7 +295,7 @@ public QuitLineupCsReq setExtraLineupType( } /** - * optional bool is_virtual = 11; + * optional bool is_virtual = 2; * @return whether the isVirtual field is set */ public boolean hasIsVirtual() { @@ -303,7 +303,7 @@ public boolean hasIsVirtual() { } /** - * optional bool is_virtual = 11; + * optional bool is_virtual = 2; * @return this */ public QuitLineupCsReq clearIsVirtual() { @@ -313,7 +313,7 @@ public QuitLineupCsReq clearIsVirtual() { } /** - * optional bool is_virtual = 11; + * optional bool is_virtual = 2; * @return the isVirtual */ public boolean getIsVirtual() { @@ -321,7 +321,7 @@ public boolean getIsVirtual() { } /** - * optional bool is_virtual = 11; + * optional bool is_virtual = 2; * @param value the isVirtual to set * @return this */ @@ -420,19 +420,19 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); + output.writeRawByte((byte) 8); output.writeUInt32NoTag(index); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 40); output.writeUInt32NoTag(planeId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 56); output.writeUInt32NoTag(baseAvatarId); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 32); + output.writeRawByte((byte) 48); output.writeEnumNoTag(avatarType); } if ((bitField0_ & 0x00000010) != 0) { @@ -440,7 +440,7 @@ public void writeTo(final ProtoSink output) throws IOException { output.writeEnumNoTag(extraLineupType); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 16); output.writeBoolNoTag(isVirtual); } } @@ -476,34 +476,34 @@ public QuitLineupCsReq mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { + case 8: { // index index = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 80) { + if (tag != 40) { break; } } - case 80: { + case 40: { // planeId planeId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 120) { + if (tag != 56) { break; } } - case 120: { + case 56: { // baseAvatarId baseAvatarId = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 32) { + if (tag != 48) { break; } } - case 32: { + case 48: { // avatarType final int value = input.readInt32(); if (AvatarTypeOuterClass.AvatarType.forNumber(value) != null) { @@ -523,11 +523,11 @@ public QuitLineupCsReq mergeFrom(final ProtoSource input) throws IOException { bitField0_ |= 0x00000010; } tag = input.readTag(); - if (tag != 88) { + if (tag != 16) { break; } } - case 88: { + case 16: { // isVirtual isVirtual = input.readBool(); bitField0_ |= 0x00000020; diff --git a/src/generated/main/emu/lunarcore/proto/RankUpAvatarCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/RankUpAvatarCsReqOuterClass.java index 2a6640a85..4f4d6d74c 100644 --- a/src/generated/main/emu/lunarcore/proto/RankUpAvatarCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RankUpAvatarCsReqOuterClass.java @@ -19,17 +19,17 @@ public static final class RankUpAvatarCsReq extends ProtoMessageoptional uint32 base_avatar_id = 4; + * optional uint32 rank = 6; */ - private int baseAvatarId; + private int rank; /** - * optional uint32 rank = 9; + * optional uint32 base_avatar_id = 10; */ - private int rank; + private int baseAvatarId; /** - * optional .ItemCostList item_cost_list = 1; + * optional .ItemCostList item_cost_list = 8; */ private final ItemCostListOuterClass.ItemCostList itemCostList = ItemCostListOuterClass.ItemCostList.newInstance(); @@ -44,81 +44,81 @@ public static RankUpAvatarCsReq newInstance() { } /** - * optional uint32 base_avatar_id = 4; - * @return whether the baseAvatarId field is set + * optional uint32 rank = 6; + * @return whether the rank field is set */ - public boolean hasBaseAvatarId() { + public boolean hasRank() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 base_avatar_id = 4; + * optional uint32 rank = 6; * @return this */ - public RankUpAvatarCsReq clearBaseAvatarId() { + public RankUpAvatarCsReq clearRank() { bitField0_ &= ~0x00000001; - baseAvatarId = 0; + rank = 0; return this; } /** - * optional uint32 base_avatar_id = 4; - * @return the baseAvatarId + * optional uint32 rank = 6; + * @return the rank */ - public int getBaseAvatarId() { - return baseAvatarId; + public int getRank() { + return rank; } /** - * optional uint32 base_avatar_id = 4; - * @param value the baseAvatarId to set + * optional uint32 rank = 6; + * @param value the rank to set * @return this */ - public RankUpAvatarCsReq setBaseAvatarId(final int value) { + public RankUpAvatarCsReq setRank(final int value) { bitField0_ |= 0x00000001; - baseAvatarId = value; + rank = value; return this; } /** - * optional uint32 rank = 9; - * @return whether the rank field is set + * optional uint32 base_avatar_id = 10; + * @return whether the baseAvatarId field is set */ - public boolean hasRank() { + public boolean hasBaseAvatarId() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 rank = 9; + * optional uint32 base_avatar_id = 10; * @return this */ - public RankUpAvatarCsReq clearRank() { + public RankUpAvatarCsReq clearBaseAvatarId() { bitField0_ &= ~0x00000002; - rank = 0; + baseAvatarId = 0; return this; } /** - * optional uint32 rank = 9; - * @return the rank + * optional uint32 base_avatar_id = 10; + * @return the baseAvatarId */ - public int getRank() { - return rank; + public int getBaseAvatarId() { + return baseAvatarId; } /** - * optional uint32 rank = 9; - * @param value the rank to set + * optional uint32 base_avatar_id = 10; + * @param value the baseAvatarId to set * @return this */ - public RankUpAvatarCsReq setRank(final int value) { + public RankUpAvatarCsReq setBaseAvatarId(final int value) { bitField0_ |= 0x00000002; - rank = value; + baseAvatarId = value; return this; } /** - * optional .ItemCostList item_cost_list = 1; + * optional .ItemCostList item_cost_list = 8; * @return whether the itemCostList field is set */ public boolean hasItemCostList() { @@ -126,7 +126,7 @@ public boolean hasItemCostList() { } /** - * optional .ItemCostList item_cost_list = 1; + * optional .ItemCostList item_cost_list = 8; * @return this */ public RankUpAvatarCsReq clearItemCostList() { @@ -136,7 +136,7 @@ public RankUpAvatarCsReq clearItemCostList() { } /** - * optional .ItemCostList item_cost_list = 1; + * optional .ItemCostList item_cost_list = 8; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -150,7 +150,7 @@ public ItemCostListOuterClass.ItemCostList getItemCostList() { } /** - * optional .ItemCostList item_cost_list = 1; + * optional .ItemCostList item_cost_list = 8; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -164,7 +164,7 @@ public ItemCostListOuterClass.ItemCostList getMutableItemCostList() { } /** - * optional .ItemCostList item_cost_list = 1; + * optional .ItemCostList item_cost_list = 8; * @param value the itemCostList to set * @return this */ @@ -179,8 +179,8 @@ public RankUpAvatarCsReq copyFrom(final RankUpAvatarCsReq other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - baseAvatarId = other.baseAvatarId; rank = other.rank; + baseAvatarId = other.baseAvatarId; itemCostList.copyFrom(other.itemCostList); } return this; @@ -192,12 +192,12 @@ public RankUpAvatarCsReq mergeFrom(final RankUpAvatarCsReq other) { return this; } cachedSize = -1; - if (other.hasBaseAvatarId()) { - setBaseAvatarId(other.baseAvatarId); - } if (other.hasRank()) { setRank(other.rank); } + if (other.hasBaseAvatarId()) { + setBaseAvatarId(other.baseAvatarId); + } if (other.hasItemCostList()) { getMutableItemCostList().mergeFrom(other.itemCostList); } @@ -211,8 +211,8 @@ public RankUpAvatarCsReq clear() { } cachedSize = -1; bitField0_ = 0; - baseAvatarId = 0; rank = 0; + baseAvatarId = 0; itemCostList.clear(); return this; } @@ -238,23 +238,23 @@ public boolean equals(Object o) { } RankUpAvatarCsReq other = (RankUpAvatarCsReq) o; return bitField0_ == other.bitField0_ - && (!hasBaseAvatarId() || baseAvatarId == other.baseAvatarId) && (!hasRank() || rank == other.rank) + && (!hasBaseAvatarId() || baseAvatarId == other.baseAvatarId) && (!hasItemCostList() || itemCostList.equals(other.itemCostList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 32); - output.writeUInt32NoTag(baseAvatarId); + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(rank); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 72); - output.writeUInt32NoTag(rank); + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(baseAvatarId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 10); + output.writeRawByte((byte) 66); output.writeMessageNoTag(itemCostList); } } @@ -263,10 +263,10 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(rank); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(rank); + size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); } if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(itemCostList); @@ -281,25 +281,25 @@ public RankUpAvatarCsReq mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 32: { - // baseAvatarId - baseAvatarId = input.readUInt32(); + case 48: { + // rank + rank = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 72) { + if (tag != 80) { break; } } - case 72: { - // rank - rank = input.readUInt32(); + case 80: { + // baseAvatarId + baseAvatarId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 10) { + if (tag != 66) { break; } } - case 10: { + case 66: { // itemCostList input.readMessage(itemCostList); bitField0_ |= 0x00000004; @@ -326,10 +326,10 @@ public RankUpAvatarCsReq mergeFrom(final ProtoSource input) throws IOException { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.baseAvatarId, baseAvatarId); + output.writeUInt32(FieldNames.rank, rank); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.rank, rank); + output.writeUInt32(FieldNames.baseAvatarId, baseAvatarId); } if ((bitField0_ & 0x00000004) != 0) { output.writeMessage(FieldNames.itemCostList, itemCostList); @@ -344,11 +344,10 @@ public RankUpAvatarCsReq mergeFrom(final JsonSource input) throws IOException { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 118022725: - case -1756826157: { - if (input.isAtField(FieldNames.baseAvatarId)) { + case 3492908: { + if (input.isAtField(FieldNames.rank)) { if (!input.trySkipNullValue()) { - baseAvatarId = input.readUInt32(); + rank = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -356,10 +355,11 @@ public RankUpAvatarCsReq mergeFrom(final JsonSource input) throws IOException { } break; } - case 3492908: { - if (input.isAtField(FieldNames.rank)) { + case 118022725: + case -1756826157: { + if (input.isAtField(FieldNames.baseAvatarId)) { if (!input.trySkipNullValue()) { - rank = input.readUInt32(); + baseAvatarId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -432,10 +432,10 @@ public RankUpAvatarCsReq create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName baseAvatarId = FieldName.forField("baseAvatarId", "base_avatar_id"); - static final FieldName rank = FieldName.forField("rank"); + static final FieldName baseAvatarId = FieldName.forField("baseAvatarId", "base_avatar_id"); + static final FieldName itemCostList = FieldName.forField("itemCostList", "item_cost_list"); } } diff --git a/src/generated/main/emu/lunarcore/proto/RankUpEquipmentCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/RankUpEquipmentCsReqOuterClass.java index bf24189a5..5d70ff792 100644 --- a/src/generated/main/emu/lunarcore/proto/RankUpEquipmentCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RankUpEquipmentCsReqOuterClass.java @@ -19,12 +19,12 @@ public static final class RankUpEquipmentCsReq extends ProtoMessageoptional uint32 equipment_unique_id = 7; + * optional uint32 equipment_unique_id = 1; */ private int equipmentUniqueId; /** - * optional .ItemCostList item_cost_list = 15; + * optional .ItemCostList item_cost_list = 9; */ private final ItemCostListOuterClass.ItemCostList itemCostList = ItemCostListOuterClass.ItemCostList.newInstance(); @@ -39,7 +39,7 @@ public static RankUpEquipmentCsReq newInstance() { } /** - * optional uint32 equipment_unique_id = 7; + * optional uint32 equipment_unique_id = 1; * @return whether the equipmentUniqueId field is set */ public boolean hasEquipmentUniqueId() { @@ -47,7 +47,7 @@ public boolean hasEquipmentUniqueId() { } /** - * optional uint32 equipment_unique_id = 7; + * optional uint32 equipment_unique_id = 1; * @return this */ public RankUpEquipmentCsReq clearEquipmentUniqueId() { @@ -57,7 +57,7 @@ public RankUpEquipmentCsReq clearEquipmentUniqueId() { } /** - * optional uint32 equipment_unique_id = 7; + * optional uint32 equipment_unique_id = 1; * @return the equipmentUniqueId */ public int getEquipmentUniqueId() { @@ -65,7 +65,7 @@ public int getEquipmentUniqueId() { } /** - * optional uint32 equipment_unique_id = 7; + * optional uint32 equipment_unique_id = 1; * @param value the equipmentUniqueId to set * @return this */ @@ -76,7 +76,7 @@ public RankUpEquipmentCsReq setEquipmentUniqueId(final int value) { } /** - * optional .ItemCostList item_cost_list = 15; + * optional .ItemCostList item_cost_list = 9; * @return whether the itemCostList field is set */ public boolean hasItemCostList() { @@ -84,7 +84,7 @@ public boolean hasItemCostList() { } /** - * optional .ItemCostList item_cost_list = 15; + * optional .ItemCostList item_cost_list = 9; * @return this */ public RankUpEquipmentCsReq clearItemCostList() { @@ -94,7 +94,7 @@ public RankUpEquipmentCsReq clearItemCostList() { } /** - * optional .ItemCostList item_cost_list = 15; + * optional .ItemCostList item_cost_list = 9; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -108,7 +108,7 @@ public ItemCostListOuterClass.ItemCostList getItemCostList() { } /** - * optional .ItemCostList item_cost_list = 15; + * optional .ItemCostList item_cost_list = 9; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -122,7 +122,7 @@ public ItemCostListOuterClass.ItemCostList getMutableItemCostList() { } /** - * optional .ItemCostList item_cost_list = 15; + * optional .ItemCostList item_cost_list = 9; * @param value the itemCostList to set * @return this */ @@ -198,11 +198,11 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 8); output.writeUInt32NoTag(equipmentUniqueId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 122); + output.writeRawByte((byte) 74); output.writeMessageNoTag(itemCostList); } } @@ -226,16 +226,16 @@ public RankUpEquipmentCsReq mergeFrom(final ProtoSource input) throws IOExceptio int tag = input.readTag(); while (true) { switch (tag) { - case 56: { + case 8: { // equipmentUniqueId equipmentUniqueId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 122) { + if (tag != 74) { break; } } - case 122: { + case 74: { // itemCostList input.readMessage(itemCostList); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/ReEnterLastElementStageCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/ReEnterLastElementStageCsReqOuterClass.java index 90954f501..c2077b73f 100644 --- a/src/generated/main/emu/lunarcore/proto/ReEnterLastElementStageCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ReEnterLastElementStageCsReqOuterClass.java @@ -19,7 +19,7 @@ public static final class ReEnterLastElementStageCsReq extends ProtoMessageoptional uint32 stage_id = 2; + * optional uint32 stage_id = 4; */ private int stageId; @@ -34,7 +34,7 @@ public static ReEnterLastElementStageCsReq newInstance() { } /** - * optional uint32 stage_id = 2; + * optional uint32 stage_id = 4; * @return whether the stageId field is set */ public boolean hasStageId() { @@ -42,7 +42,7 @@ public boolean hasStageId() { } /** - * optional uint32 stage_id = 2; + * optional uint32 stage_id = 4; * @return this */ public ReEnterLastElementStageCsReq clearStageId() { @@ -52,7 +52,7 @@ public ReEnterLastElementStageCsReq clearStageId() { } /** - * optional uint32 stage_id = 2; + * optional uint32 stage_id = 4; * @return the stageId */ public int getStageId() { @@ -60,7 +60,7 @@ public int getStageId() { } /** - * optional uint32 stage_id = 2; + * optional uint32 stage_id = 4; * @param value the stageId to set * @return this */ @@ -129,7 +129,7 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(stageId); } } @@ -150,7 +150,7 @@ public ReEnterLastElementStageCsReq mergeFrom(final ProtoSource input) throws IO int tag = input.readTag(); while (true) { switch (tag) { - case 16: { + case 32: { // stageId stageId = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/ReEnterLastElementStageScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/ReEnterLastElementStageScRspOuterClass.java index b20770fab..13154b6b7 100644 --- a/src/generated/main/emu/lunarcore/proto/ReEnterLastElementStageScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ReEnterLastElementStageScRspOuterClass.java @@ -19,17 +19,17 @@ public static final class ReEnterLastElementStageScRsp extends ProtoMessageoptional uint32 stage_id = 3; + * optional uint32 retcode = 3; */ - private int stageId; + private int retcode; /** - * optional uint32 retcode = 6; + * optional uint32 stage_id = 10; */ - private int retcode; + private int stageId; /** - * optional .SceneBattleInfo battle_info = 12; + * optional .SceneBattleInfo battle_info = 15; */ private final SceneBattleInfoOuterClass.SceneBattleInfo battleInfo = SceneBattleInfoOuterClass.SceneBattleInfo.newInstance(); @@ -44,81 +44,81 @@ public static ReEnterLastElementStageScRsp newInstance() { } /** - * optional uint32 stage_id = 3; - * @return whether the stageId field is set + * optional uint32 retcode = 3; + * @return whether the retcode field is set */ - public boolean hasStageId() { + public boolean hasRetcode() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 stage_id = 3; + * optional uint32 retcode = 3; * @return this */ - public ReEnterLastElementStageScRsp clearStageId() { + public ReEnterLastElementStageScRsp clearRetcode() { bitField0_ &= ~0x00000001; - stageId = 0; + retcode = 0; return this; } /** - * optional uint32 stage_id = 3; - * @return the stageId + * optional uint32 retcode = 3; + * @return the retcode */ - public int getStageId() { - return stageId; + public int getRetcode() { + return retcode; } /** - * optional uint32 stage_id = 3; - * @param value the stageId to set + * optional uint32 retcode = 3; + * @param value the retcode to set * @return this */ - public ReEnterLastElementStageScRsp setStageId(final int value) { + public ReEnterLastElementStageScRsp setRetcode(final int value) { bitField0_ |= 0x00000001; - stageId = value; + retcode = value; return this; } /** - * optional uint32 retcode = 6; - * @return whether the retcode field is set + * optional uint32 stage_id = 10; + * @return whether the stageId field is set */ - public boolean hasRetcode() { + public boolean hasStageId() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 retcode = 6; + * optional uint32 stage_id = 10; * @return this */ - public ReEnterLastElementStageScRsp clearRetcode() { + public ReEnterLastElementStageScRsp clearStageId() { bitField0_ &= ~0x00000002; - retcode = 0; + stageId = 0; return this; } /** - * optional uint32 retcode = 6; - * @return the retcode + * optional uint32 stage_id = 10; + * @return the stageId */ - public int getRetcode() { - return retcode; + public int getStageId() { + return stageId; } /** - * optional uint32 retcode = 6; - * @param value the retcode to set + * optional uint32 stage_id = 10; + * @param value the stageId to set * @return this */ - public ReEnterLastElementStageScRsp setRetcode(final int value) { + public ReEnterLastElementStageScRsp setStageId(final int value) { bitField0_ |= 0x00000002; - retcode = value; + stageId = value; return this; } /** - * optional .SceneBattleInfo battle_info = 12; + * optional .SceneBattleInfo battle_info = 15; * @return whether the battleInfo field is set */ public boolean hasBattleInfo() { @@ -126,7 +126,7 @@ public boolean hasBattleInfo() { } /** - * optional .SceneBattleInfo battle_info = 12; + * optional .SceneBattleInfo battle_info = 15; * @return this */ public ReEnterLastElementStageScRsp clearBattleInfo() { @@ -136,7 +136,7 @@ public ReEnterLastElementStageScRsp clearBattleInfo() { } /** - * optional .SceneBattleInfo battle_info = 12; + * optional .SceneBattleInfo battle_info = 15; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -150,7 +150,7 @@ public SceneBattleInfoOuterClass.SceneBattleInfo getBattleInfo() { } /** - * optional .SceneBattleInfo battle_info = 12; + * optional .SceneBattleInfo battle_info = 15; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -164,7 +164,7 @@ public SceneBattleInfoOuterClass.SceneBattleInfo getMutableBattleInfo() { } /** - * optional .SceneBattleInfo battle_info = 12; + * optional .SceneBattleInfo battle_info = 15; * @param value the battleInfo to set * @return this */ @@ -180,8 +180,8 @@ public ReEnterLastElementStageScRsp copyFrom(final ReEnterLastElementStageScRsp cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - stageId = other.stageId; retcode = other.retcode; + stageId = other.stageId; battleInfo.copyFrom(other.battleInfo); } return this; @@ -193,12 +193,12 @@ public ReEnterLastElementStageScRsp mergeFrom(final ReEnterLastElementStageScRsp return this; } cachedSize = -1; - if (other.hasStageId()) { - setStageId(other.stageId); - } if (other.hasRetcode()) { setRetcode(other.retcode); } + if (other.hasStageId()) { + setStageId(other.stageId); + } if (other.hasBattleInfo()) { getMutableBattleInfo().mergeFrom(other.battleInfo); } @@ -212,8 +212,8 @@ public ReEnterLastElementStageScRsp clear() { } cachedSize = -1; bitField0_ = 0; - stageId = 0; retcode = 0; + stageId = 0; battleInfo.clear(); return this; } @@ -239,8 +239,8 @@ public boolean equals(Object o) { } ReEnterLastElementStageScRsp other = (ReEnterLastElementStageScRsp) o; return bitField0_ == other.bitField0_ - && (!hasStageId() || stageId == other.stageId) && (!hasRetcode() || retcode == other.retcode) + && (!hasStageId() || stageId == other.stageId) && (!hasBattleInfo() || battleInfo.equals(other.battleInfo)); } @@ -248,14 +248,14 @@ public boolean equals(Object o) { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { output.writeRawByte((byte) 24); - output.writeUInt32NoTag(stageId); + output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 48); - output.writeUInt32NoTag(retcode); + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(stageId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 98); + output.writeRawByte((byte) 122); output.writeMessageNoTag(battleInfo); } } @@ -264,10 +264,10 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(stageId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(stageId); } if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(battleInfo); @@ -283,24 +283,24 @@ public ReEnterLastElementStageScRsp mergeFrom(final ProtoSource input) throws IO while (true) { switch (tag) { case 24: { - // stageId - stageId = input.readUInt32(); + // retcode + retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 48) { + if (tag != 80) { break; } } - case 48: { - // retcode - retcode = input.readUInt32(); + case 80: { + // stageId + stageId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 98) { + if (tag != 122) { break; } } - case 98: { + case 122: { // battleInfo input.readMessage(battleInfo); bitField0_ |= 0x00000004; @@ -327,10 +327,10 @@ public ReEnterLastElementStageScRsp mergeFrom(final ProtoSource input) throws IO public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.stageId, stageId); + output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.stageId, stageId); } if ((bitField0_ & 0x00000004) != 0) { output.writeMessage(FieldNames.battleInfo, battleInfo); @@ -345,11 +345,10 @@ public ReEnterLastElementStageScRsp mergeFrom(final JsonSource input) throws IOE } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -1897528135: - case 1306191356: { - if (input.isAtField(FieldNames.stageId)) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { - stageId = input.readUInt32(); + retcode = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -357,10 +356,11 @@ public ReEnterLastElementStageScRsp mergeFrom(final JsonSource input) throws IOE } break; } - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { + case -1897528135: + case 1306191356: { + if (input.isAtField(FieldNames.stageId)) { if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); + stageId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -435,10 +435,10 @@ public ReEnterLastElementStageScRsp create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName stageId = FieldName.forField("stageId", "stage_id"); - static final FieldName retcode = FieldName.forField("retcode"); + static final FieldName stageId = FieldName.forField("stageId", "stage_id"); + static final FieldName battleInfo = FieldName.forField("battleInfo", "battle_info"); } } diff --git a/src/generated/main/emu/lunarcore/proto/RefreshTriggerByClientCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/RefreshTriggerByClientCsReqOuterClass.java index 47804311d..1e681b613 100644 --- a/src/generated/main/emu/lunarcore/proto/RefreshTriggerByClientCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RefreshTriggerByClientCsReqOuterClass.java @@ -21,22 +21,22 @@ public static final class RefreshTriggerByClientCsReq extends ProtoMessageoptional uint32 trigger_entity_id = 6; + * optional uint32 trigger_entity_id = 4; */ private int triggerEntityId; /** - * optional .MotionInfo trigger_motion = 11; + * optional .MotionInfo trigger_motion = 6; */ private final MotionInfoOuterClass.MotionInfo triggerMotion = MotionInfoOuterClass.MotionInfo.newInstance(); /** - * optional string trigger_name = 8; + * optional string trigger_name = 3; */ private final Utf8String triggerName = Utf8String.newEmptyInstance(); /** - * repeated uint32 trigger_target_id_list = 3; + * repeated uint32 trigger_target_id_list = 12; */ private final RepeatedInt triggerTargetIdList = RepeatedInt.newEmptyInstance(); @@ -51,7 +51,7 @@ public static RefreshTriggerByClientCsReq newInstance() { } /** - * optional uint32 trigger_entity_id = 6; + * optional uint32 trigger_entity_id = 4; * @return whether the triggerEntityId field is set */ public boolean hasTriggerEntityId() { @@ -59,7 +59,7 @@ public boolean hasTriggerEntityId() { } /** - * optional uint32 trigger_entity_id = 6; + * optional uint32 trigger_entity_id = 4; * @return this */ public RefreshTriggerByClientCsReq clearTriggerEntityId() { @@ -69,7 +69,7 @@ public RefreshTriggerByClientCsReq clearTriggerEntityId() { } /** - * optional uint32 trigger_entity_id = 6; + * optional uint32 trigger_entity_id = 4; * @return the triggerEntityId */ public int getTriggerEntityId() { @@ -77,7 +77,7 @@ public int getTriggerEntityId() { } /** - * optional uint32 trigger_entity_id = 6; + * optional uint32 trigger_entity_id = 4; * @param value the triggerEntityId to set * @return this */ @@ -88,7 +88,7 @@ public RefreshTriggerByClientCsReq setTriggerEntityId(final int value) { } /** - * optional .MotionInfo trigger_motion = 11; + * optional .MotionInfo trigger_motion = 6; * @return whether the triggerMotion field is set */ public boolean hasTriggerMotion() { @@ -96,7 +96,7 @@ public boolean hasTriggerMotion() { } /** - * optional .MotionInfo trigger_motion = 11; + * optional .MotionInfo trigger_motion = 6; * @return this */ public RefreshTriggerByClientCsReq clearTriggerMotion() { @@ -106,7 +106,7 @@ public RefreshTriggerByClientCsReq clearTriggerMotion() { } /** - * optional .MotionInfo trigger_motion = 11; + * optional .MotionInfo trigger_motion = 6; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -120,7 +120,7 @@ public MotionInfoOuterClass.MotionInfo getTriggerMotion() { } /** - * optional .MotionInfo trigger_motion = 11; + * optional .MotionInfo trigger_motion = 6; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -134,7 +134,7 @@ public MotionInfoOuterClass.MotionInfo getMutableTriggerMotion() { } /** - * optional .MotionInfo trigger_motion = 11; + * optional .MotionInfo trigger_motion = 6; * @param value the triggerMotion to set * @return this */ @@ -146,7 +146,7 @@ public RefreshTriggerByClientCsReq setTriggerMotion( } /** - * optional string trigger_name = 8; + * optional string trigger_name = 3; * @return whether the triggerName field is set */ public boolean hasTriggerName() { @@ -154,7 +154,7 @@ public boolean hasTriggerName() { } /** - * optional string trigger_name = 8; + * optional string trigger_name = 3; * @return this */ public RefreshTriggerByClientCsReq clearTriggerName() { @@ -164,7 +164,7 @@ public RefreshTriggerByClientCsReq clearTriggerName() { } /** - * optional string trigger_name = 8; + * optional string trigger_name = 3; * @return the triggerName */ public String getTriggerName() { @@ -172,7 +172,7 @@ public String getTriggerName() { } /** - * optional string trigger_name = 8; + * optional string trigger_name = 3; * @return internal {@code Utf8String} representation of triggerName for reading */ public Utf8String getTriggerNameBytes() { @@ -180,7 +180,7 @@ public Utf8String getTriggerNameBytes() { } /** - * optional string trigger_name = 8; + * optional string trigger_name = 3; * @return internal {@code Utf8String} representation of triggerName for modifications */ public Utf8String getMutableTriggerNameBytes() { @@ -189,7 +189,7 @@ public Utf8String getMutableTriggerNameBytes() { } /** - * optional string trigger_name = 8; + * optional string trigger_name = 3; * @param value the triggerName to set * @return this */ @@ -200,7 +200,7 @@ public RefreshTriggerByClientCsReq setTriggerName(final CharSequence value) { } /** - * optional string trigger_name = 8; + * optional string trigger_name = 3; * @param value the triggerName to set * @return this */ @@ -211,7 +211,7 @@ public RefreshTriggerByClientCsReq setTriggerName(final Utf8String value) { } /** - * repeated uint32 trigger_target_id_list = 3; + * repeated uint32 trigger_target_id_list = 12; * @return whether the triggerTargetIdList field is set */ public boolean hasTriggerTargetIdList() { @@ -219,7 +219,7 @@ public boolean hasTriggerTargetIdList() { } /** - * repeated uint32 trigger_target_id_list = 3; + * repeated uint32 trigger_target_id_list = 12; * @return this */ public RefreshTriggerByClientCsReq clearTriggerTargetIdList() { @@ -229,7 +229,7 @@ public RefreshTriggerByClientCsReq clearTriggerTargetIdList() { } /** - * repeated uint32 trigger_target_id_list = 3; + * repeated uint32 trigger_target_id_list = 12; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -243,7 +243,7 @@ public RepeatedInt getTriggerTargetIdList() { } /** - * repeated uint32 trigger_target_id_list = 3; + * repeated uint32 trigger_target_id_list = 12; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -257,7 +257,7 @@ public RepeatedInt getMutableTriggerTargetIdList() { } /** - * repeated uint32 trigger_target_id_list = 3; + * repeated uint32 trigger_target_id_list = 12; * @param value the triggerTargetIdList to add * @return this */ @@ -268,7 +268,7 @@ public RefreshTriggerByClientCsReq addTriggerTargetIdList(final int value) { } /** - * repeated uint32 trigger_target_id_list = 3; + * repeated uint32 trigger_target_id_list = 12; * @param values the triggerTargetIdList to add * @return this */ @@ -358,20 +358,20 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(triggerEntityId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 90); + output.writeRawByte((byte) 50); output.writeMessageNoTag(triggerMotion); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 66); + output.writeRawByte((byte) 26); output.writeStringNoTag(triggerName); } if ((bitField0_ & 0x00000008) != 0) { for (int i = 0; i < triggerTargetIdList.length(); i++) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 96); output.writeUInt32NoTag(triggerTargetIdList.array()[i]); } } @@ -402,34 +402,34 @@ public RefreshTriggerByClientCsReq mergeFrom(final ProtoSource input) throws IOE int tag = input.readTag(); while (true) { switch (tag) { - case 48: { + case 32: { // triggerEntityId triggerEntityId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 90) { + if (tag != 50) { break; } } - case 90: { + case 50: { // triggerMotion input.readMessage(triggerMotion); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 66) { + if (tag != 26) { break; } } - case 66: { + case 26: { // triggerName input.readString(triggerName); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 26) { + if (tag != 98) { break; } } - case 26: { + case 98: { // triggerTargetIdList [packed=true] input.readPackedUInt32(triggerTargetIdList, tag); bitField0_ |= 0x00000008; @@ -448,7 +448,7 @@ public RefreshTriggerByClientCsReq mergeFrom(final ProtoSource input) throws IOE tag = input.readTag(); break; } - case 24: { + case 96: { // triggerTargetIdList [packed=false] tag = input.readRepeatedUInt32(triggerTargetIdList, tag); bitField0_ |= 0x00000008; diff --git a/src/generated/main/emu/lunarcore/proto/RefreshTriggerByClientScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/RefreshTriggerByClientScNotifyOuterClass.java index 3c06390ef..8d9b98f25 100644 --- a/src/generated/main/emu/lunarcore/proto/RefreshTriggerByClientScNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RefreshTriggerByClientScNotifyOuterClass.java @@ -21,17 +21,17 @@ public static final class RefreshTriggerByClientScNotify extends ProtoMessageoptional uint32 trigger_entity_id = 14; + * optional uint32 trigger_entity_id = 4; */ private int triggerEntityId; /** - * optional string trigger_name = 11; + * optional string trigger_name = 14; */ private final Utf8String triggerName = Utf8String.newEmptyInstance(); /** - * repeated uint32 trigger_target_id_list = 3; + * repeated uint32 trigger_target_id_list = 15; */ private final RepeatedInt triggerTargetIdList = RepeatedInt.newEmptyInstance(); @@ -46,7 +46,7 @@ public static RefreshTriggerByClientScNotify newInstance() { } /** - * optional uint32 trigger_entity_id = 14; + * optional uint32 trigger_entity_id = 4; * @return whether the triggerEntityId field is set */ public boolean hasTriggerEntityId() { @@ -54,7 +54,7 @@ public boolean hasTriggerEntityId() { } /** - * optional uint32 trigger_entity_id = 14; + * optional uint32 trigger_entity_id = 4; * @return this */ public RefreshTriggerByClientScNotify clearTriggerEntityId() { @@ -64,7 +64,7 @@ public RefreshTriggerByClientScNotify clearTriggerEntityId() { } /** - * optional uint32 trigger_entity_id = 14; + * optional uint32 trigger_entity_id = 4; * @return the triggerEntityId */ public int getTriggerEntityId() { @@ -72,7 +72,7 @@ public int getTriggerEntityId() { } /** - * optional uint32 trigger_entity_id = 14; + * optional uint32 trigger_entity_id = 4; * @param value the triggerEntityId to set * @return this */ @@ -83,7 +83,7 @@ public RefreshTriggerByClientScNotify setTriggerEntityId(final int value) { } /** - * optional string trigger_name = 11; + * optional string trigger_name = 14; * @return whether the triggerName field is set */ public boolean hasTriggerName() { @@ -91,7 +91,7 @@ public boolean hasTriggerName() { } /** - * optional string trigger_name = 11; + * optional string trigger_name = 14; * @return this */ public RefreshTriggerByClientScNotify clearTriggerName() { @@ -101,7 +101,7 @@ public RefreshTriggerByClientScNotify clearTriggerName() { } /** - * optional string trigger_name = 11; + * optional string trigger_name = 14; * @return the triggerName */ public String getTriggerName() { @@ -109,7 +109,7 @@ public String getTriggerName() { } /** - * optional string trigger_name = 11; + * optional string trigger_name = 14; * @return internal {@code Utf8String} representation of triggerName for reading */ public Utf8String getTriggerNameBytes() { @@ -117,7 +117,7 @@ public Utf8String getTriggerNameBytes() { } /** - * optional string trigger_name = 11; + * optional string trigger_name = 14; * @return internal {@code Utf8String} representation of triggerName for modifications */ public Utf8String getMutableTriggerNameBytes() { @@ -126,7 +126,7 @@ public Utf8String getMutableTriggerNameBytes() { } /** - * optional string trigger_name = 11; + * optional string trigger_name = 14; * @param value the triggerName to set * @return this */ @@ -137,7 +137,7 @@ public RefreshTriggerByClientScNotify setTriggerName(final CharSequence value) { } /** - * optional string trigger_name = 11; + * optional string trigger_name = 14; * @param value the triggerName to set * @return this */ @@ -148,7 +148,7 @@ public RefreshTriggerByClientScNotify setTriggerName(final Utf8String value) { } /** - * repeated uint32 trigger_target_id_list = 3; + * repeated uint32 trigger_target_id_list = 15; * @return whether the triggerTargetIdList field is set */ public boolean hasTriggerTargetIdList() { @@ -156,7 +156,7 @@ public boolean hasTriggerTargetIdList() { } /** - * repeated uint32 trigger_target_id_list = 3; + * repeated uint32 trigger_target_id_list = 15; * @return this */ public RefreshTriggerByClientScNotify clearTriggerTargetIdList() { @@ -166,7 +166,7 @@ public RefreshTriggerByClientScNotify clearTriggerTargetIdList() { } /** - * repeated uint32 trigger_target_id_list = 3; + * repeated uint32 trigger_target_id_list = 15; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -180,7 +180,7 @@ public RepeatedInt getTriggerTargetIdList() { } /** - * repeated uint32 trigger_target_id_list = 3; + * repeated uint32 trigger_target_id_list = 15; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -194,7 +194,7 @@ public RepeatedInt getMutableTriggerTargetIdList() { } /** - * repeated uint32 trigger_target_id_list = 3; + * repeated uint32 trigger_target_id_list = 15; * @param value the triggerTargetIdList to add * @return this */ @@ -205,7 +205,7 @@ public RefreshTriggerByClientScNotify addTriggerTargetIdList(final int value) { } /** - * repeated uint32 trigger_target_id_list = 3; + * repeated uint32 trigger_target_id_list = 15; * @param values the triggerTargetIdList to add * @return this */ @@ -288,16 +288,16 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(triggerEntityId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 90); + output.writeRawByte((byte) 114); output.writeStringNoTag(triggerName); } if ((bitField0_ & 0x00000004) != 0) { for (int i = 0; i < triggerTargetIdList.length(); i++) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 120); output.writeUInt32NoTag(triggerTargetIdList.array()[i]); } } @@ -325,25 +325,25 @@ public RefreshTriggerByClientScNotify mergeFrom(final ProtoSource input) throws int tag = input.readTag(); while (true) { switch (tag) { - case 112: { + case 32: { // triggerEntityId triggerEntityId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 90) { + if (tag != 114) { break; } } - case 90: { + case 114: { // triggerName input.readString(triggerName); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 26) { + if (tag != 122) { break; } } - case 26: { + case 122: { // triggerTargetIdList [packed=true] input.readPackedUInt32(triggerTargetIdList, tag); bitField0_ |= 0x00000004; @@ -362,7 +362,7 @@ public RefreshTriggerByClientScNotify mergeFrom(final ProtoSource input) throws tag = input.readTag(); break; } - case 24: { + case 120: { // triggerTargetIdList [packed=false] tag = input.readRepeatedUInt32(triggerTargetIdList, tag); bitField0_ |= 0x00000004; diff --git a/src/generated/main/emu/lunarcore/proto/RefreshTriggerByClientScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/RefreshTriggerByClientScRspOuterClass.java index 93d58ad2b..303d185f0 100644 --- a/src/generated/main/emu/lunarcore/proto/RefreshTriggerByClientScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RefreshTriggerByClientScRspOuterClass.java @@ -20,22 +20,22 @@ public static final class RefreshTriggerByClientScRsp extends ProtoMessageoptional uint32 trigger_entity_id = 5; + * optional uint32 retcode = 10; */ - private int triggerEntityId; + private int retcode; /** - * optional uint32 retcode = 10; + * optional uint32 trigger_entity_id = 13; */ - private int retcode; + private int triggerEntityId; /** - * optional bool refresh_trigger = 14; + * optional bool refresh_trigger = 8; */ private boolean refreshTrigger; /** - * optional string trigger_name = 1; + * optional string trigger_name = 12; */ private final Utf8String triggerName = Utf8String.newEmptyInstance(); @@ -50,81 +50,81 @@ public static RefreshTriggerByClientScRsp newInstance() { } /** - * optional uint32 trigger_entity_id = 5; - * @return whether the triggerEntityId field is set + * optional uint32 retcode = 10; + * @return whether the retcode field is set */ - public boolean hasTriggerEntityId() { + public boolean hasRetcode() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 trigger_entity_id = 5; + * optional uint32 retcode = 10; * @return this */ - public RefreshTriggerByClientScRsp clearTriggerEntityId() { + public RefreshTriggerByClientScRsp clearRetcode() { bitField0_ &= ~0x00000001; - triggerEntityId = 0; + retcode = 0; return this; } /** - * optional uint32 trigger_entity_id = 5; - * @return the triggerEntityId + * optional uint32 retcode = 10; + * @return the retcode */ - public int getTriggerEntityId() { - return triggerEntityId; + public int getRetcode() { + return retcode; } /** - * optional uint32 trigger_entity_id = 5; - * @param value the triggerEntityId to set + * optional uint32 retcode = 10; + * @param value the retcode to set * @return this */ - public RefreshTriggerByClientScRsp setTriggerEntityId(final int value) { + public RefreshTriggerByClientScRsp setRetcode(final int value) { bitField0_ |= 0x00000001; - triggerEntityId = value; + retcode = value; return this; } /** - * optional uint32 retcode = 10; - * @return whether the retcode field is set + * optional uint32 trigger_entity_id = 13; + * @return whether the triggerEntityId field is set */ - public boolean hasRetcode() { + public boolean hasTriggerEntityId() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 retcode = 10; + * optional uint32 trigger_entity_id = 13; * @return this */ - public RefreshTriggerByClientScRsp clearRetcode() { + public RefreshTriggerByClientScRsp clearTriggerEntityId() { bitField0_ &= ~0x00000002; - retcode = 0; + triggerEntityId = 0; return this; } /** - * optional uint32 retcode = 10; - * @return the retcode + * optional uint32 trigger_entity_id = 13; + * @return the triggerEntityId */ - public int getRetcode() { - return retcode; + public int getTriggerEntityId() { + return triggerEntityId; } /** - * optional uint32 retcode = 10; - * @param value the retcode to set + * optional uint32 trigger_entity_id = 13; + * @param value the triggerEntityId to set * @return this */ - public RefreshTriggerByClientScRsp setRetcode(final int value) { + public RefreshTriggerByClientScRsp setTriggerEntityId(final int value) { bitField0_ |= 0x00000002; - retcode = value; + triggerEntityId = value; return this; } /** - * optional bool refresh_trigger = 14; + * optional bool refresh_trigger = 8; * @return whether the refreshTrigger field is set */ public boolean hasRefreshTrigger() { @@ -132,7 +132,7 @@ public boolean hasRefreshTrigger() { } /** - * optional bool refresh_trigger = 14; + * optional bool refresh_trigger = 8; * @return this */ public RefreshTriggerByClientScRsp clearRefreshTrigger() { @@ -142,7 +142,7 @@ public RefreshTriggerByClientScRsp clearRefreshTrigger() { } /** - * optional bool refresh_trigger = 14; + * optional bool refresh_trigger = 8; * @return the refreshTrigger */ public boolean getRefreshTrigger() { @@ -150,7 +150,7 @@ public boolean getRefreshTrigger() { } /** - * optional bool refresh_trigger = 14; + * optional bool refresh_trigger = 8; * @param value the refreshTrigger to set * @return this */ @@ -161,7 +161,7 @@ public RefreshTriggerByClientScRsp setRefreshTrigger(final boolean value) { } /** - * optional string trigger_name = 1; + * optional string trigger_name = 12; * @return whether the triggerName field is set */ public boolean hasTriggerName() { @@ -169,7 +169,7 @@ public boolean hasTriggerName() { } /** - * optional string trigger_name = 1; + * optional string trigger_name = 12; * @return this */ public RefreshTriggerByClientScRsp clearTriggerName() { @@ -179,7 +179,7 @@ public RefreshTriggerByClientScRsp clearTriggerName() { } /** - * optional string trigger_name = 1; + * optional string trigger_name = 12; * @return the triggerName */ public String getTriggerName() { @@ -187,7 +187,7 @@ public String getTriggerName() { } /** - * optional string trigger_name = 1; + * optional string trigger_name = 12; * @return internal {@code Utf8String} representation of triggerName for reading */ public Utf8String getTriggerNameBytes() { @@ -195,7 +195,7 @@ public Utf8String getTriggerNameBytes() { } /** - * optional string trigger_name = 1; + * optional string trigger_name = 12; * @return internal {@code Utf8String} representation of triggerName for modifications */ public Utf8String getMutableTriggerNameBytes() { @@ -204,7 +204,7 @@ public Utf8String getMutableTriggerNameBytes() { } /** - * optional string trigger_name = 1; + * optional string trigger_name = 12; * @param value the triggerName to set * @return this */ @@ -215,7 +215,7 @@ public RefreshTriggerByClientScRsp setTriggerName(final CharSequence value) { } /** - * optional string trigger_name = 1; + * optional string trigger_name = 12; * @param value the triggerName to set * @return this */ @@ -230,8 +230,8 @@ public RefreshTriggerByClientScRsp copyFrom(final RefreshTriggerByClientScRsp ot cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - triggerEntityId = other.triggerEntityId; retcode = other.retcode; + triggerEntityId = other.triggerEntityId; refreshTrigger = other.refreshTrigger; triggerName.copyFrom(other.triggerName); } @@ -244,12 +244,12 @@ public RefreshTriggerByClientScRsp mergeFrom(final RefreshTriggerByClientScRsp o return this; } cachedSize = -1; - if (other.hasTriggerEntityId()) { - setTriggerEntityId(other.triggerEntityId); - } if (other.hasRetcode()) { setRetcode(other.retcode); } + if (other.hasTriggerEntityId()) { + setTriggerEntityId(other.triggerEntityId); + } if (other.hasRefreshTrigger()) { setRefreshTrigger(other.refreshTrigger); } @@ -266,8 +266,8 @@ public RefreshTriggerByClientScRsp clear() { } cachedSize = -1; bitField0_ = 0; - triggerEntityId = 0; retcode = 0; + triggerEntityId = 0; refreshTrigger = false; triggerName.clear(); return this; @@ -294,8 +294,8 @@ public boolean equals(Object o) { } RefreshTriggerByClientScRsp other = (RefreshTriggerByClientScRsp) o; return bitField0_ == other.bitField0_ - && (!hasTriggerEntityId() || triggerEntityId == other.triggerEntityId) && (!hasRetcode() || retcode == other.retcode) + && (!hasTriggerEntityId() || triggerEntityId == other.triggerEntityId) && (!hasRefreshTrigger() || refreshTrigger == other.refreshTrigger) && (!hasTriggerName() || triggerName.equals(other.triggerName)); } @@ -303,19 +303,19 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); - output.writeUInt32NoTag(triggerEntityId); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 80); output.writeUInt32NoTag(retcode); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(triggerEntityId); + } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 64); output.writeBoolNoTag(refreshTrigger); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 10); + output.writeRawByte((byte) 98); output.writeStringNoTag(triggerName); } } @@ -324,10 +324,10 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(triggerEntityId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(triggerEntityId); } if ((bitField0_ & 0x00000004) != 0) { size += 2; @@ -345,34 +345,34 @@ public RefreshTriggerByClientScRsp mergeFrom(final ProtoSource input) throws IOE int tag = input.readTag(); while (true) { switch (tag) { - case 40: { - // triggerEntityId - triggerEntityId = input.readUInt32(); + case 80: { + // retcode + retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 80) { + if (tag != 104) { break; } } - case 80: { - // retcode - retcode = input.readUInt32(); + case 104: { + // triggerEntityId + triggerEntityId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 112) { + if (tag != 64) { break; } } - case 112: { + case 64: { // refreshTrigger refreshTrigger = input.readBool(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 10) { + if (tag != 98) { break; } } - case 10: { + case 98: { // triggerName input.readString(triggerName); bitField0_ |= 0x00000008; @@ -399,10 +399,10 @@ public RefreshTriggerByClientScRsp mergeFrom(final ProtoSource input) throws IOE public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.triggerEntityId, triggerEntityId); + output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.triggerEntityId, triggerEntityId); } if ((bitField0_ & 0x00000004) != 0) { output.writeBool(FieldNames.refreshTrigger, refreshTrigger); @@ -420,11 +420,10 @@ public RefreshTriggerByClientScRsp mergeFrom(final JsonSource input) throws IOEx } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 242025014: - case -2081789648: { - if (input.isAtField(FieldNames.triggerEntityId)) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { - triggerEntityId = input.readUInt32(); + retcode = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -432,10 +431,11 @@ public RefreshTriggerByClientScRsp mergeFrom(final JsonSource input) throws IOEx } break; } - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { + case 242025014: + case -2081789648: { + if (input.isAtField(FieldNames.triggerEntityId)) { if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); + triggerEntityId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -521,10 +521,10 @@ public RefreshTriggerByClientScRsp create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName triggerEntityId = FieldName.forField("triggerEntityId", "trigger_entity_id"); - static final FieldName retcode = FieldName.forField("retcode"); + static final FieldName triggerEntityId = FieldName.forField("triggerEntityId", "trigger_entity_id"); + static final FieldName refreshTrigger = FieldName.forField("refreshTrigger", "refresh_trigger"); static final FieldName triggerName = FieldName.forField("triggerName", "trigger_name"); diff --git a/src/generated/main/emu/lunarcore/proto/RelicOuterClass.java b/src/generated/main/emu/lunarcore/proto/RelicOuterClass.java index c63df2c57..307d5ed7f 100644 --- a/src/generated/main/emu/lunarcore/proto/RelicOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RelicOuterClass.java @@ -20,19 +20,19 @@ public static final class Relic extends ProtoMessage implements Cloneable private static final long serialVersionUID = 0L; /** - * optional uint32 level = 1; + * optional uint32 exp = 3; */ - private int level; + private int exp; /** - * optional uint32 main_affix_id = 3; + * optional uint32 main_affix_id = 4; */ private int mainAffixId; /** - * optional uint32 tid = 5; + * optional uint32 base_avatar_id = 5; */ - private int tid; + private int baseAvatarId; /** * optional uint32 unique_id = 9; @@ -40,22 +40,22 @@ public static final class Relic extends ProtoMessage implements Cloneable private int uniqueId; /** - * optional uint32 base_avatar_id = 10; + * optional uint32 tid = 12; */ - private int baseAvatarId; + private int tid; /** - * optional uint32 exp = 13; + * optional uint32 level = 15; */ - private int exp; + private int level; /** - * optional bool is_protected = 14; + * optional bool is_protected = 13; */ private boolean isProtected; /** - * repeated .RelicAffix sub_affix_list = 15; + * repeated .RelicAffix sub_affix_list = 10; */ private final RepeatedMessage subAffixList = RepeatedMessage.newEmptyInstance(RelicAffixOuterClass.RelicAffix.getFactory()); @@ -70,44 +70,44 @@ public static Relic newInstance() { } /** - * optional uint32 level = 1; - * @return whether the level field is set + * optional uint32 exp = 3; + * @return whether the exp field is set */ - public boolean hasLevel() { + public boolean hasExp() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 level = 1; + * optional uint32 exp = 3; * @return this */ - public Relic clearLevel() { + public Relic clearExp() { bitField0_ &= ~0x00000001; - level = 0; + exp = 0; return this; } /** - * optional uint32 level = 1; - * @return the level + * optional uint32 exp = 3; + * @return the exp */ - public int getLevel() { - return level; + public int getExp() { + return exp; } /** - * optional uint32 level = 1; - * @param value the level to set + * optional uint32 exp = 3; + * @param value the exp to set * @return this */ - public Relic setLevel(final int value) { + public Relic setExp(final int value) { bitField0_ |= 0x00000001; - level = value; + exp = value; return this; } /** - * optional uint32 main_affix_id = 3; + * optional uint32 main_affix_id = 4; * @return whether the mainAffixId field is set */ public boolean hasMainAffixId() { @@ -115,7 +115,7 @@ public boolean hasMainAffixId() { } /** - * optional uint32 main_affix_id = 3; + * optional uint32 main_affix_id = 4; * @return this */ public Relic clearMainAffixId() { @@ -125,7 +125,7 @@ public Relic clearMainAffixId() { } /** - * optional uint32 main_affix_id = 3; + * optional uint32 main_affix_id = 4; * @return the mainAffixId */ public int getMainAffixId() { @@ -133,7 +133,7 @@ public int getMainAffixId() { } /** - * optional uint32 main_affix_id = 3; + * optional uint32 main_affix_id = 4; * @param value the mainAffixId to set * @return this */ @@ -144,39 +144,39 @@ public Relic setMainAffixId(final int value) { } /** - * optional uint32 tid = 5; - * @return whether the tid field is set + * optional uint32 base_avatar_id = 5; + * @return whether the baseAvatarId field is set */ - public boolean hasTid() { + public boolean hasBaseAvatarId() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 tid = 5; + * optional uint32 base_avatar_id = 5; * @return this */ - public Relic clearTid() { + public Relic clearBaseAvatarId() { bitField0_ &= ~0x00000004; - tid = 0; + baseAvatarId = 0; return this; } /** - * optional uint32 tid = 5; - * @return the tid + * optional uint32 base_avatar_id = 5; + * @return the baseAvatarId */ - public int getTid() { - return tid; + public int getBaseAvatarId() { + return baseAvatarId; } /** - * optional uint32 tid = 5; - * @param value the tid to set + * optional uint32 base_avatar_id = 5; + * @param value the baseAvatarId to set * @return this */ - public Relic setTid(final int value) { + public Relic setBaseAvatarId(final int value) { bitField0_ |= 0x00000004; - tid = value; + baseAvatarId = value; return this; } @@ -218,81 +218,81 @@ public Relic setUniqueId(final int value) { } /** - * optional uint32 base_avatar_id = 10; - * @return whether the baseAvatarId field is set + * optional uint32 tid = 12; + * @return whether the tid field is set */ - public boolean hasBaseAvatarId() { + public boolean hasTid() { return (bitField0_ & 0x00000010) != 0; } /** - * optional uint32 base_avatar_id = 10; + * optional uint32 tid = 12; * @return this */ - public Relic clearBaseAvatarId() { + public Relic clearTid() { bitField0_ &= ~0x00000010; - baseAvatarId = 0; + tid = 0; return this; } /** - * optional uint32 base_avatar_id = 10; - * @return the baseAvatarId + * optional uint32 tid = 12; + * @return the tid */ - public int getBaseAvatarId() { - return baseAvatarId; + public int getTid() { + return tid; } /** - * optional uint32 base_avatar_id = 10; - * @param value the baseAvatarId to set + * optional uint32 tid = 12; + * @param value the tid to set * @return this */ - public Relic setBaseAvatarId(final int value) { + public Relic setTid(final int value) { bitField0_ |= 0x00000010; - baseAvatarId = value; + tid = value; return this; } /** - * optional uint32 exp = 13; - * @return whether the exp field is set + * optional uint32 level = 15; + * @return whether the level field is set */ - public boolean hasExp() { + public boolean hasLevel() { return (bitField0_ & 0x00000020) != 0; } /** - * optional uint32 exp = 13; + * optional uint32 level = 15; * @return this */ - public Relic clearExp() { + public Relic clearLevel() { bitField0_ &= ~0x00000020; - exp = 0; + level = 0; return this; } /** - * optional uint32 exp = 13; - * @return the exp + * optional uint32 level = 15; + * @return the level */ - public int getExp() { - return exp; + public int getLevel() { + return level; } /** - * optional uint32 exp = 13; - * @param value the exp to set + * optional uint32 level = 15; + * @param value the level to set * @return this */ - public Relic setExp(final int value) { + public Relic setLevel(final int value) { bitField0_ |= 0x00000020; - exp = value; + level = value; return this; } /** - * optional bool is_protected = 14; + * optional bool is_protected = 13; * @return whether the isProtected field is set */ public boolean hasIsProtected() { @@ -300,7 +300,7 @@ public boolean hasIsProtected() { } /** - * optional bool is_protected = 14; + * optional bool is_protected = 13; * @return this */ public Relic clearIsProtected() { @@ -310,7 +310,7 @@ public Relic clearIsProtected() { } /** - * optional bool is_protected = 14; + * optional bool is_protected = 13; * @return the isProtected */ public boolean getIsProtected() { @@ -318,7 +318,7 @@ public boolean getIsProtected() { } /** - * optional bool is_protected = 14; + * optional bool is_protected = 13; * @param value the isProtected to set * @return this */ @@ -329,7 +329,7 @@ public Relic setIsProtected(final boolean value) { } /** - * repeated .RelicAffix sub_affix_list = 15; + * repeated .RelicAffix sub_affix_list = 10; * @return whether the subAffixList field is set */ public boolean hasSubAffixList() { @@ -337,7 +337,7 @@ public boolean hasSubAffixList() { } /** - * repeated .RelicAffix sub_affix_list = 15; + * repeated .RelicAffix sub_affix_list = 10; * @return this */ public Relic clearSubAffixList() { @@ -347,7 +347,7 @@ public Relic clearSubAffixList() { } /** - * repeated .RelicAffix sub_affix_list = 15; + * repeated .RelicAffix sub_affix_list = 10; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -361,7 +361,7 @@ public RepeatedMessage getSubAffixList() { } /** - * repeated .RelicAffix sub_affix_list = 15; + * repeated .RelicAffix sub_affix_list = 10; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -375,7 +375,7 @@ public RepeatedMessage getMutableSubAffixList() } /** - * repeated .RelicAffix sub_affix_list = 15; + * repeated .RelicAffix sub_affix_list = 10; * @param value the subAffixList to add * @return this */ @@ -386,7 +386,7 @@ public Relic addSubAffixList(final RelicAffixOuterClass.RelicAffix value) { } /** - * repeated .RelicAffix sub_affix_list = 15; + * repeated .RelicAffix sub_affix_list = 10; * @param values the subAffixList to add * @return this */ @@ -401,12 +401,12 @@ public Relic copyFrom(final Relic other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - level = other.level; + exp = other.exp; mainAffixId = other.mainAffixId; - tid = other.tid; - uniqueId = other.uniqueId; baseAvatarId = other.baseAvatarId; - exp = other.exp; + uniqueId = other.uniqueId; + tid = other.tid; + level = other.level; isProtected = other.isProtected; subAffixList.copyFrom(other.subAffixList); } @@ -419,23 +419,23 @@ public Relic mergeFrom(final Relic other) { return this; } cachedSize = -1; - if (other.hasLevel()) { - setLevel(other.level); + if (other.hasExp()) { + setExp(other.exp); } if (other.hasMainAffixId()) { setMainAffixId(other.mainAffixId); } - if (other.hasTid()) { - setTid(other.tid); + if (other.hasBaseAvatarId()) { + setBaseAvatarId(other.baseAvatarId); } if (other.hasUniqueId()) { setUniqueId(other.uniqueId); } - if (other.hasBaseAvatarId()) { - setBaseAvatarId(other.baseAvatarId); + if (other.hasTid()) { + setTid(other.tid); } - if (other.hasExp()) { - setExp(other.exp); + if (other.hasLevel()) { + setLevel(other.level); } if (other.hasIsProtected()) { setIsProtected(other.isProtected); @@ -453,12 +453,12 @@ public Relic clear() { } cachedSize = -1; bitField0_ = 0; - level = 0; + exp = 0; mainAffixId = 0; - tid = 0; - uniqueId = 0; baseAvatarId = 0; - exp = 0; + uniqueId = 0; + tid = 0; + level = 0; isProtected = false; subAffixList.clear(); return this; @@ -485,12 +485,12 @@ public boolean equals(Object o) { } Relic other = (Relic) o; return bitField0_ == other.bitField0_ - && (!hasLevel() || level == other.level) + && (!hasExp() || exp == other.exp) && (!hasMainAffixId() || mainAffixId == other.mainAffixId) - && (!hasTid() || tid == other.tid) - && (!hasUniqueId() || uniqueId == other.uniqueId) && (!hasBaseAvatarId() || baseAvatarId == other.baseAvatarId) - && (!hasExp() || exp == other.exp) + && (!hasUniqueId() || uniqueId == other.uniqueId) + && (!hasTid() || tid == other.tid) + && (!hasLevel() || level == other.level) && (!hasIsProtected() || isProtected == other.isProtected) && (!hasSubAffixList() || subAffixList.equals(other.subAffixList)); } @@ -498,36 +498,36 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(level); + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(exp); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(mainAffixId); } if ((bitField0_ & 0x00000004) != 0) { output.writeRawByte((byte) 40); - output.writeUInt32NoTag(tid); + output.writeUInt32NoTag(baseAvatarId); } if ((bitField0_ & 0x00000008) != 0) { output.writeRawByte((byte) 72); output.writeUInt32NoTag(uniqueId); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 80); - output.writeUInt32NoTag(baseAvatarId); + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(tid); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 104); - output.writeUInt32NoTag(exp); + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(level); } if ((bitField0_ & 0x00000040) != 0) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 104); output.writeBoolNoTag(isProtected); } if ((bitField0_ & 0x00000080) != 0) { for (int i = 0; i < subAffixList.length(); i++) { - output.writeRawByte((byte) 122); + output.writeRawByte((byte) 82); output.writeMessageNoTag(subAffixList.get(i)); } } @@ -537,22 +537,22 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(level); + size += 1 + ProtoSink.computeUInt32SizeNoTag(exp); } if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(mainAffixId); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(tid); + size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); } if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(uniqueId); } if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(tid); } if ((bitField0_ & 0x00000020) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(exp); + size += 1 + ProtoSink.computeUInt32SizeNoTag(level); } if ((bitField0_ & 0x00000040) != 0) { size += 2; @@ -570,16 +570,16 @@ public Relic mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 8: { - // level - level = input.readUInt32(); + case 24: { + // exp + exp = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 24) { + if (tag != 32) { break; } } - case 24: { + case 32: { // mainAffixId mainAffixId = input.readUInt32(); bitField0_ |= 0x00000002; @@ -589,8 +589,8 @@ public Relic mergeFrom(final ProtoSource input) throws IOException { } } case 40: { - // tid - tid = input.readUInt32(); + // baseAvatarId + baseAvatarId = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 72) { @@ -602,38 +602,38 @@ public Relic mergeFrom(final ProtoSource input) throws IOException { uniqueId = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 80) { + if (tag != 96) { break; } } - case 80: { - // baseAvatarId - baseAvatarId = input.readUInt32(); + case 96: { + // tid + tid = input.readUInt32(); bitField0_ |= 0x00000010; tag = input.readTag(); - if (tag != 104) { + if (tag != 120) { break; } } - case 104: { - // exp - exp = input.readUInt32(); + case 120: { + // level + level = input.readUInt32(); bitField0_ |= 0x00000020; tag = input.readTag(); - if (tag != 112) { + if (tag != 104) { break; } } - case 112: { + case 104: { // isProtected isProtected = input.readBool(); bitField0_ |= 0x00000040; tag = input.readTag(); - if (tag != 122) { + if (tag != 82) { break; } } - case 122: { + case 82: { // subAffixList tag = input.readRepeatedMessage(subAffixList, tag); bitField0_ |= 0x00000080; @@ -659,22 +659,22 @@ public Relic mergeFrom(final ProtoSource input) throws IOException { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.level, level); + output.writeUInt32(FieldNames.exp, exp); } if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.mainAffixId, mainAffixId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.tid, tid); + output.writeUInt32(FieldNames.baseAvatarId, baseAvatarId); } if ((bitField0_ & 0x00000008) != 0) { output.writeUInt32(FieldNames.uniqueId, uniqueId); } if ((bitField0_ & 0x00000010) != 0) { - output.writeUInt32(FieldNames.baseAvatarId, baseAvatarId); + output.writeUInt32(FieldNames.tid, tid); } if ((bitField0_ & 0x00000020) != 0) { - output.writeUInt32(FieldNames.exp, exp); + output.writeUInt32(FieldNames.level, level); } if ((bitField0_ & 0x00000040) != 0) { output.writeBool(FieldNames.isProtected, isProtected); @@ -692,10 +692,10 @@ public Relic mergeFrom(final JsonSource input) throws IOException { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 102865796: { - if (input.isAtField(FieldNames.level)) { + case 100893: { + if (input.isAtField(FieldNames.exp)) { if (!input.trySkipNullValue()) { - level = input.readUInt32(); + exp = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -715,10 +715,11 @@ public Relic mergeFrom(final JsonSource input) throws IOException { } break; } - case 114831: { - if (input.isAtField(FieldNames.tid)) { + case 118022725: + case -1756826157: { + if (input.isAtField(FieldNames.baseAvatarId)) { if (!input.trySkipNullValue()) { - tid = input.readUInt32(); + baseAvatarId = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -738,11 +739,10 @@ public Relic mergeFrom(final JsonSource input) throws IOException { } break; } - case 118022725: - case -1756826157: { - if (input.isAtField(FieldNames.baseAvatarId)) { + case 114831: { + if (input.isAtField(FieldNames.tid)) { if (!input.trySkipNullValue()) { - baseAvatarId = input.readUInt32(); + tid = input.readUInt32(); bitField0_ |= 0x00000010; } } else { @@ -750,10 +750,10 @@ public Relic mergeFrom(final JsonSource input) throws IOException { } break; } - case 100893: { - if (input.isAtField(FieldNames.exp)) { + case 102865796: { + if (input.isAtField(FieldNames.level)) { if (!input.trySkipNullValue()) { - exp = input.readUInt32(); + level = input.readUInt32(); bitField0_ |= 0x00000020; } } else { @@ -837,17 +837,17 @@ public Relic create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName level = FieldName.forField("level"); + static final FieldName exp = FieldName.forField("exp"); static final FieldName mainAffixId = FieldName.forField("mainAffixId", "main_affix_id"); - static final FieldName tid = FieldName.forField("tid"); + static final FieldName baseAvatarId = FieldName.forField("baseAvatarId", "base_avatar_id"); static final FieldName uniqueId = FieldName.forField("uniqueId", "unique_id"); - static final FieldName baseAvatarId = FieldName.forField("baseAvatarId", "base_avatar_id"); + static final FieldName tid = FieldName.forField("tid"); - static final FieldName exp = FieldName.forField("exp"); + static final FieldName level = FieldName.forField("level"); static final FieldName isProtected = FieldName.forField("isProtected", "is_protected"); diff --git a/src/generated/main/emu/lunarcore/proto/RelicParamOuterClass.java b/src/generated/main/emu/lunarcore/proto/RelicParamOuterClass.java index b20b365ec..5bbbbf6b8 100644 --- a/src/generated/main/emu/lunarcore/proto/RelicParamOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RelicParamOuterClass.java @@ -24,7 +24,7 @@ public static final class RelicParam extends ProtoMessage implements private int slot; /** - * optional uint32 relic_unique_id = 5; + * optional uint32 relic_unique_id = 15; */ private int relicUniqueId; @@ -76,7 +76,7 @@ public RelicParam setSlot(final int value) { } /** - * optional uint32 relic_unique_id = 5; + * optional uint32 relic_unique_id = 15; * @return whether the relicUniqueId field is set */ public boolean hasRelicUniqueId() { @@ -84,7 +84,7 @@ public boolean hasRelicUniqueId() { } /** - * optional uint32 relic_unique_id = 5; + * optional uint32 relic_unique_id = 15; * @return this */ public RelicParam clearRelicUniqueId() { @@ -94,7 +94,7 @@ public RelicParam clearRelicUniqueId() { } /** - * optional uint32 relic_unique_id = 5; + * optional uint32 relic_unique_id = 15; * @return the relicUniqueId */ public int getRelicUniqueId() { @@ -102,7 +102,7 @@ public int getRelicUniqueId() { } /** - * optional uint32 relic_unique_id = 5; + * optional uint32 relic_unique_id = 15; * @param value the relicUniqueId to set * @return this */ @@ -181,7 +181,7 @@ public void writeTo(final ProtoSink output) throws IOException { output.writeUInt32NoTag(slot); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 120); output.writeUInt32NoTag(relicUniqueId); } } @@ -210,11 +210,11 @@ public RelicParam mergeFrom(final ProtoSource input) throws IOException { slot = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 40) { + if (tag != 120) { break; } } - case 40: { + case 120: { // relicUniqueId relicUniqueId = input.readUInt32(); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/ReplaceLineupCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/ReplaceLineupCsReqOuterClass.java index c5928d5e9..b24b0ac2c 100644 --- a/src/generated/main/emu/lunarcore/proto/ReplaceLineupCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ReplaceLineupCsReqOuterClass.java @@ -20,32 +20,32 @@ public static final class ReplaceLineupCsReq extends ProtoMessageoptional uint32 plane_id = 7; + * optional uint32 index = 9; */ - private int planeId; + private int index; /** - * optional uint32 index = 11; + * optional uint32 leader_slot = 10; */ - private int index; + private int leaderSlot; /** - * optional uint32 leader_slot = 13; + * optional uint32 plane_id = 12; */ - private int leaderSlot; + private int planeId; /** - * optional .ExtraLineupType extra_lineup_type = 5; + * optional .ExtraLineupType extra_lineup_type = 4; */ private int extraLineupType; /** - * optional bool is_virtual = 6; + * optional bool is_virtual = 5; */ private boolean isVirtual; /** - * repeated .LineupSlotData slots = 12; + * repeated .LineupSlotData slots = 11; */ private final RepeatedMessage slots = RepeatedMessage.newEmptyInstance(LineupSlotDataOuterClass.LineupSlotData.getFactory()); @@ -60,118 +60,118 @@ public static ReplaceLineupCsReq newInstance() { } /** - * optional uint32 plane_id = 7; - * @return whether the planeId field is set + * optional uint32 index = 9; + * @return whether the index field is set */ - public boolean hasPlaneId() { + public boolean hasIndex() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 plane_id = 7; + * optional uint32 index = 9; * @return this */ - public ReplaceLineupCsReq clearPlaneId() { + public ReplaceLineupCsReq clearIndex() { bitField0_ &= ~0x00000001; - planeId = 0; + index = 0; return this; } /** - * optional uint32 plane_id = 7; - * @return the planeId + * optional uint32 index = 9; + * @return the index */ - public int getPlaneId() { - return planeId; + public int getIndex() { + return index; } /** - * optional uint32 plane_id = 7; - * @param value the planeId to set + * optional uint32 index = 9; + * @param value the index to set * @return this */ - public ReplaceLineupCsReq setPlaneId(final int value) { + public ReplaceLineupCsReq setIndex(final int value) { bitField0_ |= 0x00000001; - planeId = value; + index = value; return this; } /** - * optional uint32 index = 11; - * @return whether the index field is set + * optional uint32 leader_slot = 10; + * @return whether the leaderSlot field is set */ - public boolean hasIndex() { + public boolean hasLeaderSlot() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 index = 11; + * optional uint32 leader_slot = 10; * @return this */ - public ReplaceLineupCsReq clearIndex() { + public ReplaceLineupCsReq clearLeaderSlot() { bitField0_ &= ~0x00000002; - index = 0; + leaderSlot = 0; return this; } /** - * optional uint32 index = 11; - * @return the index + * optional uint32 leader_slot = 10; + * @return the leaderSlot */ - public int getIndex() { - return index; + public int getLeaderSlot() { + return leaderSlot; } /** - * optional uint32 index = 11; - * @param value the index to set + * optional uint32 leader_slot = 10; + * @param value the leaderSlot to set * @return this */ - public ReplaceLineupCsReq setIndex(final int value) { + public ReplaceLineupCsReq setLeaderSlot(final int value) { bitField0_ |= 0x00000002; - index = value; + leaderSlot = value; return this; } /** - * optional uint32 leader_slot = 13; - * @return whether the leaderSlot field is set + * optional uint32 plane_id = 12; + * @return whether the planeId field is set */ - public boolean hasLeaderSlot() { + public boolean hasPlaneId() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 leader_slot = 13; + * optional uint32 plane_id = 12; * @return this */ - public ReplaceLineupCsReq clearLeaderSlot() { + public ReplaceLineupCsReq clearPlaneId() { bitField0_ &= ~0x00000004; - leaderSlot = 0; + planeId = 0; return this; } /** - * optional uint32 leader_slot = 13; - * @return the leaderSlot + * optional uint32 plane_id = 12; + * @return the planeId */ - public int getLeaderSlot() { - return leaderSlot; + public int getPlaneId() { + return planeId; } /** - * optional uint32 leader_slot = 13; - * @param value the leaderSlot to set + * optional uint32 plane_id = 12; + * @param value the planeId to set * @return this */ - public ReplaceLineupCsReq setLeaderSlot(final int value) { + public ReplaceLineupCsReq setPlaneId(final int value) { bitField0_ |= 0x00000004; - leaderSlot = value; + planeId = value; return this; } /** - * optional .ExtraLineupType extra_lineup_type = 5; + * optional .ExtraLineupType extra_lineup_type = 4; * @return whether the extraLineupType field is set */ public boolean hasExtraLineupType() { @@ -179,7 +179,7 @@ public boolean hasExtraLineupType() { } /** - * optional .ExtraLineupType extra_lineup_type = 5; + * optional .ExtraLineupType extra_lineup_type = 4; * @return this */ public ReplaceLineupCsReq clearExtraLineupType() { @@ -189,7 +189,7 @@ public ReplaceLineupCsReq clearExtraLineupType() { } /** - * optional .ExtraLineupType extra_lineup_type = 5; + * optional .ExtraLineupType extra_lineup_type = 4; * @return the extraLineupType */ public ExtraLineupTypeOuterClass.ExtraLineupType getExtraLineupType() { @@ -222,7 +222,7 @@ public ReplaceLineupCsReq setExtraLineupTypeValue(final int value) { } /** - * optional .ExtraLineupType extra_lineup_type = 5; + * optional .ExtraLineupType extra_lineup_type = 4; * @param value the extraLineupType to set * @return this */ @@ -234,7 +234,7 @@ public ReplaceLineupCsReq setExtraLineupType( } /** - * optional bool is_virtual = 6; + * optional bool is_virtual = 5; * @return whether the isVirtual field is set */ public boolean hasIsVirtual() { @@ -242,7 +242,7 @@ public boolean hasIsVirtual() { } /** - * optional bool is_virtual = 6; + * optional bool is_virtual = 5; * @return this */ public ReplaceLineupCsReq clearIsVirtual() { @@ -252,7 +252,7 @@ public ReplaceLineupCsReq clearIsVirtual() { } /** - * optional bool is_virtual = 6; + * optional bool is_virtual = 5; * @return the isVirtual */ public boolean getIsVirtual() { @@ -260,7 +260,7 @@ public boolean getIsVirtual() { } /** - * optional bool is_virtual = 6; + * optional bool is_virtual = 5; * @param value the isVirtual to set * @return this */ @@ -271,7 +271,7 @@ public ReplaceLineupCsReq setIsVirtual(final boolean value) { } /** - * repeated .LineupSlotData slots = 12; + * repeated .LineupSlotData slots = 11; * @return whether the slots field is set */ public boolean hasSlots() { @@ -279,7 +279,7 @@ public boolean hasSlots() { } /** - * repeated .LineupSlotData slots = 12; + * repeated .LineupSlotData slots = 11; * @return this */ public ReplaceLineupCsReq clearSlots() { @@ -289,7 +289,7 @@ public ReplaceLineupCsReq clearSlots() { } /** - * repeated .LineupSlotData slots = 12; + * repeated .LineupSlotData slots = 11; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -303,7 +303,7 @@ public RepeatedMessage getSlots() { } /** - * repeated .LineupSlotData slots = 12; + * repeated .LineupSlotData slots = 11; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -317,7 +317,7 @@ public RepeatedMessage getMutableSlots( } /** - * repeated .LineupSlotData slots = 12; + * repeated .LineupSlotData slots = 11; * @param value the slots to add * @return this */ @@ -328,7 +328,7 @@ public ReplaceLineupCsReq addSlots(final LineupSlotDataOuterClass.LineupSlotData } /** - * repeated .LineupSlotData slots = 12; + * repeated .LineupSlotData slots = 11; * @param values the slots to add * @return this */ @@ -343,9 +343,9 @@ public ReplaceLineupCsReq copyFrom(final ReplaceLineupCsReq other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - planeId = other.planeId; index = other.index; leaderSlot = other.leaderSlot; + planeId = other.planeId; extraLineupType = other.extraLineupType; isVirtual = other.isVirtual; slots.copyFrom(other.slots); @@ -359,15 +359,15 @@ public ReplaceLineupCsReq mergeFrom(final ReplaceLineupCsReq other) { return this; } cachedSize = -1; - if (other.hasPlaneId()) { - setPlaneId(other.planeId); - } if (other.hasIndex()) { setIndex(other.index); } if (other.hasLeaderSlot()) { setLeaderSlot(other.leaderSlot); } + if (other.hasPlaneId()) { + setPlaneId(other.planeId); + } if (other.hasExtraLineupType()) { setExtraLineupTypeValue(other.extraLineupType); } @@ -387,9 +387,9 @@ public ReplaceLineupCsReq clear() { } cachedSize = -1; bitField0_ = 0; - planeId = 0; index = 0; leaderSlot = 0; + planeId = 0; extraLineupType = 0; isVirtual = false; slots.clear(); @@ -417,9 +417,9 @@ public boolean equals(Object o) { } ReplaceLineupCsReq other = (ReplaceLineupCsReq) o; return bitField0_ == other.bitField0_ - && (!hasPlaneId() || planeId == other.planeId) && (!hasIndex() || index == other.index) && (!hasLeaderSlot() || leaderSlot == other.leaderSlot) + && (!hasPlaneId() || planeId == other.planeId) && (!hasExtraLineupType() || extraLineupType == other.extraLineupType) && (!hasIsVirtual() || isVirtual == other.isVirtual) && (!hasSlots() || slots.equals(other.slots)); @@ -428,28 +428,28 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 56); - output.writeUInt32NoTag(planeId); + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(index); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 88); - output.writeUInt32NoTag(index); + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(leaderSlot); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 104); - output.writeUInt32NoTag(leaderSlot); + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(planeId); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 32); output.writeEnumNoTag(extraLineupType); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 40); output.writeBoolNoTag(isVirtual); } if ((bitField0_ & 0x00000020) != 0) { for (int i = 0; i < slots.length(); i++) { - output.writeRawByte((byte) 98); + output.writeRawByte((byte) 90); output.writeMessageNoTag(slots.get(i)); } } @@ -459,13 +459,13 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(planeId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(index); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(index); + size += 1 + ProtoSink.computeUInt32SizeNoTag(leaderSlot); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(leaderSlot); + size += 1 + ProtoSink.computeUInt32SizeNoTag(planeId); } if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeEnumSizeNoTag(extraLineupType); @@ -486,34 +486,34 @@ public ReplaceLineupCsReq mergeFrom(final ProtoSource input) throws IOException int tag = input.readTag(); while (true) { switch (tag) { - case 56: { - // planeId - planeId = input.readUInt32(); + case 72: { + // index + index = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 88) { + if (tag != 80) { break; } } - case 88: { - // index - index = input.readUInt32(); + case 80: { + // leaderSlot + leaderSlot = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 104) { + if (tag != 96) { break; } } - case 104: { - // leaderSlot - leaderSlot = input.readUInt32(); + case 96: { + // planeId + planeId = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 40) { + if (tag != 32) { break; } } - case 40: { + case 32: { // extraLineupType final int value = input.readInt32(); if (ExtraLineupTypeOuterClass.ExtraLineupType.forNumber(value) != null) { @@ -521,20 +521,20 @@ public ReplaceLineupCsReq mergeFrom(final ProtoSource input) throws IOException bitField0_ |= 0x00000008; } tag = input.readTag(); - if (tag != 48) { + if (tag != 40) { break; } } - case 48: { + case 40: { // isVirtual isVirtual = input.readBool(); bitField0_ |= 0x00000010; tag = input.readTag(); - if (tag != 98) { + if (tag != 90) { break; } } - case 98: { + case 90: { // slots tag = input.readRepeatedMessage(slots, tag); bitField0_ |= 0x00000020; @@ -560,13 +560,13 @@ public ReplaceLineupCsReq mergeFrom(final ProtoSource input) throws IOException public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.planeId, planeId); + output.writeUInt32(FieldNames.index, index); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.index, index); + output.writeUInt32(FieldNames.leaderSlot, leaderSlot); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.leaderSlot, leaderSlot); + output.writeUInt32(FieldNames.planeId, planeId); } if ((bitField0_ & 0x00000008) != 0) { output.writeEnum(FieldNames.extraLineupType, extraLineupType, ExtraLineupTypeOuterClass.ExtraLineupType.converter()); @@ -587,11 +587,10 @@ public ReplaceLineupCsReq mergeFrom(final JsonSource input) throws IOException { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -493896553: - case 1869097438: { - if (input.isAtField(FieldNames.planeId)) { + case 100346066: { + if (input.isAtField(FieldNames.index)) { if (!input.trySkipNullValue()) { - planeId = input.readUInt32(); + index = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -599,10 +598,11 @@ public ReplaceLineupCsReq mergeFrom(final JsonSource input) throws IOException { } break; } - case 100346066: { - if (input.isAtField(FieldNames.index)) { + case 1191442087: + case -1708713100: { + if (input.isAtField(FieldNames.leaderSlot)) { if (!input.trySkipNullValue()) { - index = input.readUInt32(); + leaderSlot = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -610,11 +610,11 @@ public ReplaceLineupCsReq mergeFrom(final JsonSource input) throws IOException { } break; } - case 1191442087: - case -1708713100: { - if (input.isAtField(FieldNames.leaderSlot)) { + case -493896553: + case 1869097438: { + if (input.isAtField(FieldNames.planeId)) { if (!input.trySkipNullValue()) { - leaderSlot = input.readUInt32(); + planeId = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -715,12 +715,12 @@ public ReplaceLineupCsReq create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName planeId = FieldName.forField("planeId", "plane_id"); - static final FieldName index = FieldName.forField("index"); static final FieldName leaderSlot = FieldName.forField("leaderSlot", "leader_slot"); + static final FieldName planeId = FieldName.forField("planeId", "plane_id"); + static final FieldName extraLineupType = FieldName.forField("extraLineupType", "extra_lineup_type"); static final FieldName isVirtual = FieldName.forField("isVirtual", "is_virtual"); diff --git a/src/generated/main/emu/lunarcore/proto/ReserveStaminaExchangeCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/ReserveStaminaExchangeCsReqOuterClass.java index 4d04e870d..e476f3fd6 100644 --- a/src/generated/main/emu/lunarcore/proto/ReserveStaminaExchangeCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ReserveStaminaExchangeCsReqOuterClass.java @@ -19,7 +19,7 @@ public static final class ReserveStaminaExchangeCsReq extends ProtoMessageoptional uint32 num = 10; + * optional uint32 num = 7; */ private int num; @@ -34,7 +34,7 @@ public static ReserveStaminaExchangeCsReq newInstance() { } /** - * optional uint32 num = 10; + * optional uint32 num = 7; * @return whether the num field is set */ public boolean hasNum() { @@ -42,7 +42,7 @@ public boolean hasNum() { } /** - * optional uint32 num = 10; + * optional uint32 num = 7; * @return this */ public ReserveStaminaExchangeCsReq clearNum() { @@ -52,7 +52,7 @@ public ReserveStaminaExchangeCsReq clearNum() { } /** - * optional uint32 num = 10; + * optional uint32 num = 7; * @return the num */ public int getNum() { @@ -60,7 +60,7 @@ public int getNum() { } /** - * optional uint32 num = 10; + * optional uint32 num = 7; * @param value the num to set * @return this */ @@ -129,7 +129,7 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 56); output.writeUInt32NoTag(num); } } @@ -150,7 +150,7 @@ public ReserveStaminaExchangeCsReq mergeFrom(final ProtoSource input) throws IOE int tag = input.readTag(); while (true) { switch (tag) { - case 80: { + case 56: { // num num = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/ReserveStaminaExchangeScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/ReserveStaminaExchangeScRspOuterClass.java index 0dd1dace8..0a5cdfdf1 100644 --- a/src/generated/main/emu/lunarcore/proto/ReserveStaminaExchangeScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ReserveStaminaExchangeScRspOuterClass.java @@ -19,14 +19,14 @@ public static final class ReserveStaminaExchangeScRsp extends ProtoMessageoptional uint32 num = 14; + * optional uint32 retcode = 3; */ - private int num; + private int retcode; /** - * optional uint32 retcode = 15; + * optional uint32 num = 4; */ - private int retcode; + private int num; private ReserveStaminaExchangeScRsp() { } @@ -39,76 +39,76 @@ public static ReserveStaminaExchangeScRsp newInstance() { } /** - * optional uint32 num = 14; - * @return whether the num field is set + * optional uint32 retcode = 3; + * @return whether the retcode field is set */ - public boolean hasNum() { + public boolean hasRetcode() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 num = 14; + * optional uint32 retcode = 3; * @return this */ - public ReserveStaminaExchangeScRsp clearNum() { + public ReserveStaminaExchangeScRsp clearRetcode() { bitField0_ &= ~0x00000001; - num = 0; + retcode = 0; return this; } /** - * optional uint32 num = 14; - * @return the num + * optional uint32 retcode = 3; + * @return the retcode */ - public int getNum() { - return num; + public int getRetcode() { + return retcode; } /** - * optional uint32 num = 14; - * @param value the num to set + * optional uint32 retcode = 3; + * @param value the retcode to set * @return this */ - public ReserveStaminaExchangeScRsp setNum(final int value) { + public ReserveStaminaExchangeScRsp setRetcode(final int value) { bitField0_ |= 0x00000001; - num = value; + retcode = value; return this; } /** - * optional uint32 retcode = 15; - * @return whether the retcode field is set + * optional uint32 num = 4; + * @return whether the num field is set */ - public boolean hasRetcode() { + public boolean hasNum() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 retcode = 15; + * optional uint32 num = 4; * @return this */ - public ReserveStaminaExchangeScRsp clearRetcode() { + public ReserveStaminaExchangeScRsp clearNum() { bitField0_ &= ~0x00000002; - retcode = 0; + num = 0; return this; } /** - * optional uint32 retcode = 15; - * @return the retcode + * optional uint32 num = 4; + * @return the num */ - public int getRetcode() { - return retcode; + public int getNum() { + return num; } /** - * optional uint32 retcode = 15; - * @param value the retcode to set + * optional uint32 num = 4; + * @param value the num to set * @return this */ - public ReserveStaminaExchangeScRsp setRetcode(final int value) { + public ReserveStaminaExchangeScRsp setNum(final int value) { bitField0_ |= 0x00000002; - retcode = value; + num = value; return this; } @@ -117,8 +117,8 @@ public ReserveStaminaExchangeScRsp copyFrom(final ReserveStaminaExchangeScRsp ot cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - num = other.num; retcode = other.retcode; + num = other.num; } return this; } @@ -129,12 +129,12 @@ public ReserveStaminaExchangeScRsp mergeFrom(final ReserveStaminaExchangeScRsp o return this; } cachedSize = -1; - if (other.hasNum()) { - setNum(other.num); - } if (other.hasRetcode()) { setRetcode(other.retcode); } + if (other.hasNum()) { + setNum(other.num); + } return this; } @@ -145,8 +145,8 @@ public ReserveStaminaExchangeScRsp clear() { } cachedSize = -1; bitField0_ = 0; - num = 0; retcode = 0; + num = 0; return this; } @@ -170,19 +170,19 @@ public boolean equals(Object o) { } ReserveStaminaExchangeScRsp other = (ReserveStaminaExchangeScRsp) o; return bitField0_ == other.bitField0_ - && (!hasNum() || num == other.num) - && (!hasRetcode() || retcode == other.retcode); + && (!hasRetcode() || retcode == other.retcode) + && (!hasNum() || num == other.num); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 112); - output.writeUInt32NoTag(num); + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 120); - output.writeUInt32NoTag(retcode); + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(num); } } @@ -190,10 +190,10 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(num); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(num); } return size; } @@ -205,18 +205,18 @@ public ReserveStaminaExchangeScRsp mergeFrom(final ProtoSource input) throws IOE int tag = input.readTag(); while (true) { switch (tag) { - case 112: { - // num - num = input.readUInt32(); + case 24: { + // retcode + retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 120) { + if (tag != 32) { break; } } - case 120: { - // retcode - retcode = input.readUInt32(); + case 32: { + // num + num = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { @@ -241,10 +241,10 @@ public ReserveStaminaExchangeScRsp mergeFrom(final ProtoSource input) throws IOE public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.num, num); + output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.num, num); } output.endObject(); } @@ -256,10 +256,10 @@ public ReserveStaminaExchangeScRsp mergeFrom(final JsonSource input) throws IOEx } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 109446: { - if (input.isAtField(FieldNames.num)) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { - num = input.readUInt32(); + retcode = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -267,10 +267,10 @@ public ReserveStaminaExchangeScRsp mergeFrom(final JsonSource input) throws IOEx } break; } - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { + case 109446: { + if (input.isAtField(FieldNames.num)) { if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); + num = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -332,9 +332,9 @@ public ReserveStaminaExchangeScRsp create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName num = FieldName.forField("num"); - static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName num = FieldName.forField("num"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/RevcMsgScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/RevcMsgScNotifyOuterClass.java index c48bcd0cb..d87098354 100644 --- a/src/generated/main/emu/lunarcore/proto/RevcMsgScNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RevcMsgScNotifyOuterClass.java @@ -20,32 +20,32 @@ public static final class RevcMsgScNotify extends ProtoMessage private static final long serialVersionUID = 0L; /** - * optional uint32 fromUid = 6; + * optional uint32 emote = 2; */ - private int fromUid; + private int emote; /** - * optional uint32 toUid = 8; + * optional uint32 to_uid = 11; */ private int toUid; /** - * optional uint32 emote = 12; + * optional uint32 from_uid = 15; */ - private int emote; + private int fromUid; /** - * optional .ChatType chat_type = 3; + * optional .ChatType chat_type = 1; */ private int chatType; /** - * optional .MsgType msg_type = 10; + * optional .MsgType msg_type = 12; */ private int msgType; /** - * optional string text = 13; + * optional string text = 4; */ private final Utf8String text = Utf8String.newEmptyInstance(); @@ -60,44 +60,44 @@ public static RevcMsgScNotify newInstance() { } /** - * optional uint32 fromUid = 6; - * @return whether the fromUid field is set + * optional uint32 emote = 2; + * @return whether the emote field is set */ - public boolean hasFromUid() { + public boolean hasEmote() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 fromUid = 6; + * optional uint32 emote = 2; * @return this */ - public RevcMsgScNotify clearFromUid() { + public RevcMsgScNotify clearEmote() { bitField0_ &= ~0x00000001; - fromUid = 0; + emote = 0; return this; } /** - * optional uint32 fromUid = 6; - * @return the fromUid + * optional uint32 emote = 2; + * @return the emote */ - public int getFromUid() { - return fromUid; + public int getEmote() { + return emote; } /** - * optional uint32 fromUid = 6; - * @param value the fromUid to set + * optional uint32 emote = 2; + * @param value the emote to set * @return this */ - public RevcMsgScNotify setFromUid(final int value) { + public RevcMsgScNotify setEmote(final int value) { bitField0_ |= 0x00000001; - fromUid = value; + emote = value; return this; } /** - * optional uint32 toUid = 8; + * optional uint32 to_uid = 11; * @return whether the toUid field is set */ public boolean hasToUid() { @@ -105,7 +105,7 @@ public boolean hasToUid() { } /** - * optional uint32 toUid = 8; + * optional uint32 to_uid = 11; * @return this */ public RevcMsgScNotify clearToUid() { @@ -115,7 +115,7 @@ public RevcMsgScNotify clearToUid() { } /** - * optional uint32 toUid = 8; + * optional uint32 to_uid = 11; * @return the toUid */ public int getToUid() { @@ -123,7 +123,7 @@ public int getToUid() { } /** - * optional uint32 toUid = 8; + * optional uint32 to_uid = 11; * @param value the toUid to set * @return this */ @@ -134,44 +134,44 @@ public RevcMsgScNotify setToUid(final int value) { } /** - * optional uint32 emote = 12; - * @return whether the emote field is set + * optional uint32 from_uid = 15; + * @return whether the fromUid field is set */ - public boolean hasEmote() { + public boolean hasFromUid() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 emote = 12; + * optional uint32 from_uid = 15; * @return this */ - public RevcMsgScNotify clearEmote() { + public RevcMsgScNotify clearFromUid() { bitField0_ &= ~0x00000004; - emote = 0; + fromUid = 0; return this; } /** - * optional uint32 emote = 12; - * @return the emote + * optional uint32 from_uid = 15; + * @return the fromUid */ - public int getEmote() { - return emote; + public int getFromUid() { + return fromUid; } /** - * optional uint32 emote = 12; - * @param value the emote to set + * optional uint32 from_uid = 15; + * @param value the fromUid to set * @return this */ - public RevcMsgScNotify setEmote(final int value) { + public RevcMsgScNotify setFromUid(final int value) { bitField0_ |= 0x00000004; - emote = value; + fromUid = value; return this; } /** - * optional .ChatType chat_type = 3; + * optional .ChatType chat_type = 1; * @return whether the chatType field is set */ public boolean hasChatType() { @@ -179,7 +179,7 @@ public boolean hasChatType() { } /** - * optional .ChatType chat_type = 3; + * optional .ChatType chat_type = 1; * @return this */ public RevcMsgScNotify clearChatType() { @@ -189,7 +189,7 @@ public RevcMsgScNotify clearChatType() { } /** - * optional .ChatType chat_type = 3; + * optional .ChatType chat_type = 1; * @return the chatType */ public ChatTypeOuterClass.ChatType getChatType() { @@ -222,7 +222,7 @@ public RevcMsgScNotify setChatTypeValue(final int value) { } /** - * optional .ChatType chat_type = 3; + * optional .ChatType chat_type = 1; * @param value the chatType to set * @return this */ @@ -233,7 +233,7 @@ public RevcMsgScNotify setChatType(final ChatTypeOuterClass.ChatType value) { } /** - * optional .MsgType msg_type = 10; + * optional .MsgType msg_type = 12; * @return whether the msgType field is set */ public boolean hasMsgType() { @@ -241,7 +241,7 @@ public boolean hasMsgType() { } /** - * optional .MsgType msg_type = 10; + * optional .MsgType msg_type = 12; * @return this */ public RevcMsgScNotify clearMsgType() { @@ -251,7 +251,7 @@ public RevcMsgScNotify clearMsgType() { } /** - * optional .MsgType msg_type = 10; + * optional .MsgType msg_type = 12; * @return the msgType */ public MsgTypeOuterClass.MsgType getMsgType() { @@ -284,7 +284,7 @@ public RevcMsgScNotify setMsgTypeValue(final int value) { } /** - * optional .MsgType msg_type = 10; + * optional .MsgType msg_type = 12; * @param value the msgType to set * @return this */ @@ -295,7 +295,7 @@ public RevcMsgScNotify setMsgType(final MsgTypeOuterClass.MsgType value) { } /** - * optional string text = 13; + * optional string text = 4; * @return whether the text field is set */ public boolean hasText() { @@ -303,7 +303,7 @@ public boolean hasText() { } /** - * optional string text = 13; + * optional string text = 4; * @return this */ public RevcMsgScNotify clearText() { @@ -313,7 +313,7 @@ public RevcMsgScNotify clearText() { } /** - * optional string text = 13; + * optional string text = 4; * @return the text */ public String getText() { @@ -321,7 +321,7 @@ public String getText() { } /** - * optional string text = 13; + * optional string text = 4; * @return internal {@code Utf8String} representation of text for reading */ public Utf8String getTextBytes() { @@ -329,7 +329,7 @@ public Utf8String getTextBytes() { } /** - * optional string text = 13; + * optional string text = 4; * @return internal {@code Utf8String} representation of text for modifications */ public Utf8String getMutableTextBytes() { @@ -338,7 +338,7 @@ public Utf8String getMutableTextBytes() { } /** - * optional string text = 13; + * optional string text = 4; * @param value the text to set * @return this */ @@ -349,7 +349,7 @@ public RevcMsgScNotify setText(final CharSequence value) { } /** - * optional string text = 13; + * optional string text = 4; * @param value the text to set * @return this */ @@ -364,9 +364,9 @@ public RevcMsgScNotify copyFrom(final RevcMsgScNotify other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - fromUid = other.fromUid; - toUid = other.toUid; emote = other.emote; + toUid = other.toUid; + fromUid = other.fromUid; chatType = other.chatType; msgType = other.msgType; text.copyFrom(other.text); @@ -380,14 +380,14 @@ public RevcMsgScNotify mergeFrom(final RevcMsgScNotify other) { return this; } cachedSize = -1; - if (other.hasFromUid()) { - setFromUid(other.fromUid); + if (other.hasEmote()) { + setEmote(other.emote); } if (other.hasToUid()) { setToUid(other.toUid); } - if (other.hasEmote()) { - setEmote(other.emote); + if (other.hasFromUid()) { + setFromUid(other.fromUid); } if (other.hasChatType()) { setChatTypeValue(other.chatType); @@ -408,9 +408,9 @@ public RevcMsgScNotify clear() { } cachedSize = -1; bitField0_ = 0; - fromUid = 0; - toUid = 0; emote = 0; + toUid = 0; + fromUid = 0; chatType = 0; msgType = 0; text.clear(); @@ -438,9 +438,9 @@ public boolean equals(Object o) { } RevcMsgScNotify other = (RevcMsgScNotify) o; return bitField0_ == other.bitField0_ - && (!hasFromUid() || fromUid == other.fromUid) - && (!hasToUid() || toUid == other.toUid) && (!hasEmote() || emote == other.emote) + && (!hasToUid() || toUid == other.toUid) + && (!hasFromUid() || fromUid == other.fromUid) && (!hasChatType() || chatType == other.chatType) && (!hasMsgType() || msgType == other.msgType) && (!hasText() || text.equals(other.text)); @@ -449,27 +449,27 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 48); - output.writeUInt32NoTag(fromUid); + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(emote); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 88); output.writeUInt32NoTag(toUid); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 96); - output.writeUInt32NoTag(emote); + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(fromUid); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 8); output.writeEnumNoTag(chatType); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 96); output.writeEnumNoTag(msgType); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 106); + output.writeRawByte((byte) 34); output.writeStringNoTag(text); } } @@ -478,13 +478,13 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(fromUid); + size += 1 + ProtoSink.computeUInt32SizeNoTag(emote); } if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(toUid); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(emote); + size += 1 + ProtoSink.computeUInt32SizeNoTag(fromUid); } if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeEnumSizeNoTag(chatType); @@ -505,34 +505,34 @@ public RevcMsgScNotify mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 48: { - // fromUid - fromUid = input.readUInt32(); + case 16: { + // emote + emote = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 64) { + if (tag != 88) { break; } } - case 64: { + case 88: { // toUid toUid = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 96) { + if (tag != 120) { break; } } - case 96: { - // emote - emote = input.readUInt32(); + case 120: { + // fromUid + fromUid = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 24) { + if (tag != 8) { break; } } - case 24: { + case 8: { // chatType final int value = input.readInt32(); if (ChatTypeOuterClass.ChatType.forNumber(value) != null) { @@ -540,11 +540,11 @@ public RevcMsgScNotify mergeFrom(final ProtoSource input) throws IOException { bitField0_ |= 0x00000008; } tag = input.readTag(); - if (tag != 80) { + if (tag != 96) { break; } } - case 80: { + case 96: { // msgType final int value = input.readInt32(); if (MsgTypeOuterClass.MsgType.forNumber(value) != null) { @@ -552,11 +552,11 @@ public RevcMsgScNotify mergeFrom(final ProtoSource input) throws IOException { bitField0_ |= 0x00000010; } tag = input.readTag(); - if (tag != 106) { + if (tag != 34) { break; } } - case 106: { + case 34: { // text input.readString(text); bitField0_ |= 0x00000020; @@ -583,13 +583,13 @@ public RevcMsgScNotify mergeFrom(final ProtoSource input) throws IOException { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.fromUid, fromUid); + output.writeUInt32(FieldNames.emote, emote); } if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.toUid, toUid); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.emote, emote); + output.writeUInt32(FieldNames.fromUid, fromUid); } if ((bitField0_ & 0x00000008) != 0) { output.writeEnum(FieldNames.chatType, chatType, ChatTypeOuterClass.ChatType.converter()); @@ -610,10 +610,10 @@ public RevcMsgScNotify mergeFrom(final JsonSource input) throws IOException { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -594338746: { - if (input.isAtField(FieldNames.fromUid)) { + case 96633208: { + if (input.isAtField(FieldNames.emote)) { if (!input.trySkipNullValue()) { - fromUid = input.readUInt32(); + emote = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -621,7 +621,8 @@ public RevcMsgScNotify mergeFrom(final JsonSource input) throws IOException { } break; } - case 110520277: { + case 110520277: + case -868529012: { if (input.isAtField(FieldNames.toUid)) { if (!input.trySkipNullValue()) { toUid = input.readUInt32(); @@ -632,10 +633,11 @@ public RevcMsgScNotify mergeFrom(final JsonSource input) throws IOException { } break; } - case 96633208: { - if (input.isAtField(FieldNames.emote)) { + case -594338746: + case -1244322245: { + if (input.isAtField(FieldNames.fromUid)) { if (!input.trySkipNullValue()) { - emote = input.readUInt32(); + fromUid = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -741,11 +743,11 @@ public RevcMsgScNotify create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName fromUid = FieldName.forField("fromUid"); + static final FieldName emote = FieldName.forField("emote"); - static final FieldName toUid = FieldName.forField("toUid"); + static final FieldName toUid = FieldName.forField("toUid", "to_uid"); - static final FieldName emote = FieldName.forField("emote"); + static final FieldName fromUid = FieldName.forField("fromUid", "from_uid"); static final FieldName chatType = FieldName.forField("chatType", "chat_type"); diff --git a/src/generated/main/emu/lunarcore/proto/RogueTalentInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueTalentInfoOuterClass.java index f19de1e68..bf023d073 100644 --- a/src/generated/main/emu/lunarcore/proto/RogueTalentInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RogueTalentInfoOuterClass.java @@ -20,7 +20,7 @@ public static final class RogueTalentInfo extends ProtoMessage private static final long serialVersionUID = 0L; /** - * repeated .RogueTalent rogue_talent = 10; + * repeated .RogueTalent rogue_talent = 8; */ private final RepeatedMessage rogueTalent = RepeatedMessage.newEmptyInstance(RogueTalentOuterClass.RogueTalent.getFactory()); @@ -35,7 +35,7 @@ public static RogueTalentInfo newInstance() { } /** - * repeated .RogueTalent rogue_talent = 10; + * repeated .RogueTalent rogue_talent = 8; * @return whether the rogueTalent field is set */ public boolean hasRogueTalent() { @@ -43,7 +43,7 @@ public boolean hasRogueTalent() { } /** - * repeated .RogueTalent rogue_talent = 10; + * repeated .RogueTalent rogue_talent = 8; * @return this */ public RogueTalentInfo clearRogueTalent() { @@ -53,7 +53,7 @@ public RogueTalentInfo clearRogueTalent() { } /** - * repeated .RogueTalent rogue_talent = 10; + * repeated .RogueTalent rogue_talent = 8; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -67,7 +67,7 @@ public RepeatedMessage getRogueTalent() { } /** - * repeated .RogueTalent rogue_talent = 10; + * repeated .RogueTalent rogue_talent = 8; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -81,7 +81,7 @@ public RepeatedMessage getMutableRogueTalent( } /** - * repeated .RogueTalent rogue_talent = 10; + * repeated .RogueTalent rogue_talent = 8; * @param value the rogueTalent to add * @return this */ @@ -92,7 +92,7 @@ public RogueTalentInfo addRogueTalent(final RogueTalentOuterClass.RogueTalent va } /** - * repeated .RogueTalent rogue_talent = 10; + * repeated .RogueTalent rogue_talent = 8; * @param values the rogueTalent to add * @return this */ @@ -163,7 +163,7 @@ public boolean equals(Object o) { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { for (int i = 0; i < rogueTalent.length(); i++) { - output.writeRawByte((byte) 82); + output.writeRawByte((byte) 66); output.writeMessageNoTag(rogueTalent.get(i)); } } @@ -185,7 +185,7 @@ public RogueTalentInfo mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 82: { + case 66: { // rogueTalent tag = input.readRepeatedMessage(rogueTalent, tag); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/RogueTalentOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueTalentOuterClass.java index 0b2494c24..dfd414d85 100644 --- a/src/generated/main/emu/lunarcore/proto/RogueTalentOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RogueTalentOuterClass.java @@ -20,17 +20,17 @@ public static final class RogueTalent extends ProtoMessage implemen private static final long serialVersionUID = 0L; /** - * optional uint32 talent_id = 3; + * optional uint32 talent_id = 11; */ private int talentId; /** - * optional .RogueTalentStatus status = 14; + * optional .RogueTalentStatus status = 8; */ private int status; /** - * repeated .RogueUnlockProgress unlock_progress_list = 4; + * repeated .RogueUnlockProgress unlock_progress_list = 13; */ private final RepeatedMessage unlockProgressList = RepeatedMessage.newEmptyInstance(RogueUnlockProgressOuterClass.RogueUnlockProgress.getFactory()); @@ -45,7 +45,7 @@ public static RogueTalent newInstance() { } /** - * optional uint32 talent_id = 3; + * optional uint32 talent_id = 11; * @return whether the talentId field is set */ public boolean hasTalentId() { @@ -53,7 +53,7 @@ public boolean hasTalentId() { } /** - * optional uint32 talent_id = 3; + * optional uint32 talent_id = 11; * @return this */ public RogueTalent clearTalentId() { @@ -63,7 +63,7 @@ public RogueTalent clearTalentId() { } /** - * optional uint32 talent_id = 3; + * optional uint32 talent_id = 11; * @return the talentId */ public int getTalentId() { @@ -71,7 +71,7 @@ public int getTalentId() { } /** - * optional uint32 talent_id = 3; + * optional uint32 talent_id = 11; * @param value the talentId to set * @return this */ @@ -82,7 +82,7 @@ public RogueTalent setTalentId(final int value) { } /** - * optional .RogueTalentStatus status = 14; + * optional .RogueTalentStatus status = 8; * @return whether the status field is set */ public boolean hasStatus() { @@ -90,7 +90,7 @@ public boolean hasStatus() { } /** - * optional .RogueTalentStatus status = 14; + * optional .RogueTalentStatus status = 8; * @return this */ public RogueTalent clearStatus() { @@ -100,7 +100,7 @@ public RogueTalent clearStatus() { } /** - * optional .RogueTalentStatus status = 14; + * optional .RogueTalentStatus status = 8; * @return the status */ public RogueTalentStatusOuterClass.RogueTalentStatus getStatus() { @@ -133,7 +133,7 @@ public RogueTalent setStatusValue(final int value) { } /** - * optional .RogueTalentStatus status = 14; + * optional .RogueTalentStatus status = 8; * @param value the status to set * @return this */ @@ -144,7 +144,7 @@ public RogueTalent setStatus(final RogueTalentStatusOuterClass.RogueTalentStatus } /** - * repeated .RogueUnlockProgress unlock_progress_list = 4; + * repeated .RogueUnlockProgress unlock_progress_list = 13; * @return whether the unlockProgressList field is set */ public boolean hasUnlockProgressList() { @@ -152,7 +152,7 @@ public boolean hasUnlockProgressList() { } /** - * repeated .RogueUnlockProgress unlock_progress_list = 4; + * repeated .RogueUnlockProgress unlock_progress_list = 13; * @return this */ public RogueTalent clearUnlockProgressList() { @@ -162,7 +162,7 @@ public RogueTalent clearUnlockProgressList() { } /** - * repeated .RogueUnlockProgress unlock_progress_list = 4; + * repeated .RogueUnlockProgress unlock_progress_list = 13; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -177,7 +177,7 @@ public RepeatedMessage getUnl } /** - * repeated .RogueUnlockProgress unlock_progress_list = 4; + * repeated .RogueUnlockProgress unlock_progress_list = 13; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -192,7 +192,7 @@ public RepeatedMessage getMut } /** - * repeated .RogueUnlockProgress unlock_progress_list = 4; + * repeated .RogueUnlockProgress unlock_progress_list = 13; * @param value the unlockProgressList to add * @return this */ @@ -204,7 +204,7 @@ public RogueTalent addUnlockProgressList( } /** - * repeated .RogueUnlockProgress unlock_progress_list = 4; + * repeated .RogueUnlockProgress unlock_progress_list = 13; * @param values the unlockProgressList to add * @return this */ @@ -287,16 +287,16 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 88); output.writeUInt32NoTag(talentId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 64); output.writeEnumNoTag(status); } if ((bitField0_ & 0x00000004) != 0) { for (int i = 0; i < unlockProgressList.length(); i++) { - output.writeRawByte((byte) 34); + output.writeRawByte((byte) 106); output.writeMessageNoTag(unlockProgressList.get(i)); } } @@ -324,16 +324,16 @@ public RogueTalent mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 24: { + case 88: { // talentId talentId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 112) { + if (tag != 64) { break; } } - case 112: { + case 64: { // status final int value = input.readInt32(); if (RogueTalentStatusOuterClass.RogueTalentStatus.forNumber(value) != null) { @@ -341,11 +341,11 @@ public RogueTalent mergeFrom(final ProtoSource input) throws IOException { bitField0_ |= 0x00000002; } tag = input.readTag(); - if (tag != 34) { + if (tag != 106) { break; } } - case 34: { + case 106: { // unlockProgressList tag = input.readRepeatedMessage(unlockProgressList, tag); bitField0_ |= 0x00000004; diff --git a/src/generated/main/emu/lunarcore/proto/RogueUnlockProgressOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueUnlockProgressOuterClass.java index 527360b09..0b48b0971 100644 --- a/src/generated/main/emu/lunarcore/proto/RogueUnlockProgressOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RogueUnlockProgressOuterClass.java @@ -19,7 +19,7 @@ public static final class RogueUnlockProgress extends ProtoMessageoptional uint32 unlock_id = 5; + * optional uint32 unlock_id = 11; */ private int unlockId; @@ -29,7 +29,7 @@ public static final class RogueUnlockProgress extends ProtoMessageoptional bool finish = 1; + * optional bool finish = 4; */ private boolean finish; @@ -44,7 +44,7 @@ public static RogueUnlockProgress newInstance() { } /** - * optional uint32 unlock_id = 5; + * optional uint32 unlock_id = 11; * @return whether the unlockId field is set */ public boolean hasUnlockId() { @@ -52,7 +52,7 @@ public boolean hasUnlockId() { } /** - * optional uint32 unlock_id = 5; + * optional uint32 unlock_id = 11; * @return this */ public RogueUnlockProgress clearUnlockId() { @@ -62,7 +62,7 @@ public RogueUnlockProgress clearUnlockId() { } /** - * optional uint32 unlock_id = 5; + * optional uint32 unlock_id = 11; * @return the unlockId */ public int getUnlockId() { @@ -70,7 +70,7 @@ public int getUnlockId() { } /** - * optional uint32 unlock_id = 5; + * optional uint32 unlock_id = 11; * @param value the unlockId to set * @return this */ @@ -118,7 +118,7 @@ public RogueUnlockProgress setProgress(final int value) { } /** - * optional bool finish = 1; + * optional bool finish = 4; * @return whether the finish field is set */ public boolean hasFinish() { @@ -126,7 +126,7 @@ public boolean hasFinish() { } /** - * optional bool finish = 1; + * optional bool finish = 4; * @return this */ public RogueUnlockProgress clearFinish() { @@ -136,7 +136,7 @@ public RogueUnlockProgress clearFinish() { } /** - * optional bool finish = 1; + * optional bool finish = 4; * @return the finish */ public boolean getFinish() { @@ -144,7 +144,7 @@ public boolean getFinish() { } /** - * optional bool finish = 1; + * optional bool finish = 4; * @param value the finish to set * @return this */ @@ -225,7 +225,7 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 88); output.writeUInt32NoTag(unlockId); } if ((bitField0_ & 0x00000002) != 0) { @@ -233,7 +233,7 @@ public void writeTo(final ProtoSink output) throws IOException { output.writeUInt32NoTag(progress); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 8); + output.writeRawByte((byte) 32); output.writeBoolNoTag(finish); } } @@ -260,7 +260,7 @@ public RogueUnlockProgress mergeFrom(final ProtoSource input) throws IOException int tag = input.readTag(); while (true) { switch (tag) { - case 40: { + case 88: { // unlockId unlockId = input.readUInt32(); bitField0_ |= 0x00000001; @@ -274,11 +274,11 @@ public RogueUnlockProgress mergeFrom(final ProtoSource input) throws IOException progress = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 8) { + if (tag != 32) { break; } } - case 8: { + case 32: { // finish finish = input.readBool(); bitField0_ |= 0x00000004; diff --git a/src/generated/main/emu/lunarcore/proto/SceneActorInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneActorInfoOuterClass.java index 5cb23c59e..6caa0e9ee 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneActorInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneActorInfoOuterClass.java @@ -19,22 +19,22 @@ public static final class SceneActorInfo extends ProtoMessage im private static final long serialVersionUID = 0L; /** - * optional uint32 uid = 1; + * optional uint32 map_layer = 4; */ - private int uid; + private int mapLayer; /** - * optional uint32 base_avatar_id = 3; + * optional uint32 base_avatar_id = 7; */ private int baseAvatarId; /** - * optional uint32 map_layer = 7; + * optional uint32 uid = 10; */ - private int mapLayer; + private int uid; /** - * optional .AvatarType avatar_type = 12; + * optional .AvatarType avatar_type = 8; */ private int avatarType; @@ -49,44 +49,44 @@ public static SceneActorInfo newInstance() { } /** - * optional uint32 uid = 1; - * @return whether the uid field is set + * optional uint32 map_layer = 4; + * @return whether the mapLayer field is set */ - public boolean hasUid() { + public boolean hasMapLayer() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 uid = 1; + * optional uint32 map_layer = 4; * @return this */ - public SceneActorInfo clearUid() { + public SceneActorInfo clearMapLayer() { bitField0_ &= ~0x00000001; - uid = 0; + mapLayer = 0; return this; } /** - * optional uint32 uid = 1; - * @return the uid + * optional uint32 map_layer = 4; + * @return the mapLayer */ - public int getUid() { - return uid; + public int getMapLayer() { + return mapLayer; } /** - * optional uint32 uid = 1; - * @param value the uid to set + * optional uint32 map_layer = 4; + * @param value the mapLayer to set * @return this */ - public SceneActorInfo setUid(final int value) { + public SceneActorInfo setMapLayer(final int value) { bitField0_ |= 0x00000001; - uid = value; + mapLayer = value; return this; } /** - * optional uint32 base_avatar_id = 3; + * optional uint32 base_avatar_id = 7; * @return whether the baseAvatarId field is set */ public boolean hasBaseAvatarId() { @@ -94,7 +94,7 @@ public boolean hasBaseAvatarId() { } /** - * optional uint32 base_avatar_id = 3; + * optional uint32 base_avatar_id = 7; * @return this */ public SceneActorInfo clearBaseAvatarId() { @@ -104,7 +104,7 @@ public SceneActorInfo clearBaseAvatarId() { } /** - * optional uint32 base_avatar_id = 3; + * optional uint32 base_avatar_id = 7; * @return the baseAvatarId */ public int getBaseAvatarId() { @@ -112,7 +112,7 @@ public int getBaseAvatarId() { } /** - * optional uint32 base_avatar_id = 3; + * optional uint32 base_avatar_id = 7; * @param value the baseAvatarId to set * @return this */ @@ -123,44 +123,44 @@ public SceneActorInfo setBaseAvatarId(final int value) { } /** - * optional uint32 map_layer = 7; - * @return whether the mapLayer field is set + * optional uint32 uid = 10; + * @return whether the uid field is set */ - public boolean hasMapLayer() { + public boolean hasUid() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 map_layer = 7; + * optional uint32 uid = 10; * @return this */ - public SceneActorInfo clearMapLayer() { + public SceneActorInfo clearUid() { bitField0_ &= ~0x00000004; - mapLayer = 0; + uid = 0; return this; } /** - * optional uint32 map_layer = 7; - * @return the mapLayer + * optional uint32 uid = 10; + * @return the uid */ - public int getMapLayer() { - return mapLayer; + public int getUid() { + return uid; } /** - * optional uint32 map_layer = 7; - * @param value the mapLayer to set + * optional uint32 uid = 10; + * @param value the uid to set * @return this */ - public SceneActorInfo setMapLayer(final int value) { + public SceneActorInfo setUid(final int value) { bitField0_ |= 0x00000004; - mapLayer = value; + uid = value; return this; } /** - * optional .AvatarType avatar_type = 12; + * optional .AvatarType avatar_type = 8; * @return whether the avatarType field is set */ public boolean hasAvatarType() { @@ -168,7 +168,7 @@ public boolean hasAvatarType() { } /** - * optional .AvatarType avatar_type = 12; + * optional .AvatarType avatar_type = 8; * @return this */ public SceneActorInfo clearAvatarType() { @@ -178,7 +178,7 @@ public SceneActorInfo clearAvatarType() { } /** - * optional .AvatarType avatar_type = 12; + * optional .AvatarType avatar_type = 8; * @return the avatarType */ public AvatarTypeOuterClass.AvatarType getAvatarType() { @@ -211,7 +211,7 @@ public SceneActorInfo setAvatarTypeValue(final int value) { } /** - * optional .AvatarType avatar_type = 12; + * optional .AvatarType avatar_type = 8; * @param value the avatarType to set * @return this */ @@ -226,9 +226,9 @@ public SceneActorInfo copyFrom(final SceneActorInfo other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - uid = other.uid; - baseAvatarId = other.baseAvatarId; mapLayer = other.mapLayer; + baseAvatarId = other.baseAvatarId; + uid = other.uid; avatarType = other.avatarType; } return this; @@ -240,14 +240,14 @@ public SceneActorInfo mergeFrom(final SceneActorInfo other) { return this; } cachedSize = -1; - if (other.hasUid()) { - setUid(other.uid); + if (other.hasMapLayer()) { + setMapLayer(other.mapLayer); } if (other.hasBaseAvatarId()) { setBaseAvatarId(other.baseAvatarId); } - if (other.hasMapLayer()) { - setMapLayer(other.mapLayer); + if (other.hasUid()) { + setUid(other.uid); } if (other.hasAvatarType()) { setAvatarTypeValue(other.avatarType); @@ -262,9 +262,9 @@ public SceneActorInfo clear() { } cachedSize = -1; bitField0_ = 0; - uid = 0; - baseAvatarId = 0; mapLayer = 0; + baseAvatarId = 0; + uid = 0; avatarType = 0; return this; } @@ -289,28 +289,28 @@ public boolean equals(Object o) { } SceneActorInfo other = (SceneActorInfo) o; return bitField0_ == other.bitField0_ - && (!hasUid() || uid == other.uid) - && (!hasBaseAvatarId() || baseAvatarId == other.baseAvatarId) && (!hasMapLayer() || mapLayer == other.mapLayer) + && (!hasBaseAvatarId() || baseAvatarId == other.baseAvatarId) + && (!hasUid() || uid == other.uid) && (!hasAvatarType() || avatarType == other.avatarType); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(uid); + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(mapLayer); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 56); output.writeUInt32NoTag(baseAvatarId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 56); - output.writeUInt32NoTag(mapLayer); + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(uid); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 64); output.writeEnumNoTag(avatarType); } } @@ -319,13 +319,13 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(uid); + size += 1 + ProtoSink.computeUInt32SizeNoTag(mapLayer); } if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(mapLayer); + size += 1 + ProtoSink.computeUInt32SizeNoTag(uid); } if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeEnumSizeNoTag(avatarType); @@ -340,34 +340,34 @@ public SceneActorInfo mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 8: { - // uid - uid = input.readUInt32(); + case 32: { + // mapLayer + mapLayer = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 24) { + if (tag != 56) { break; } } - case 24: { + case 56: { // baseAvatarId baseAvatarId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 56) { + if (tag != 80) { break; } } - case 56: { - // mapLayer - mapLayer = input.readUInt32(); + case 80: { + // uid + uid = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 96) { + if (tag != 64) { break; } } - case 96: { + case 64: { // avatarType final int value = input.readInt32(); if (AvatarTypeOuterClass.AvatarType.forNumber(value) != null) { @@ -397,13 +397,13 @@ public SceneActorInfo mergeFrom(final ProtoSource input) throws IOException { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.uid, uid); + output.writeUInt32(FieldNames.mapLayer, mapLayer); } if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.baseAvatarId, baseAvatarId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.mapLayer, mapLayer); + output.writeUInt32(FieldNames.uid, uid); } if ((bitField0_ & 0x00000008) != 0) { output.writeEnum(FieldNames.avatarType, avatarType, AvatarTypeOuterClass.AvatarType.converter()); @@ -418,10 +418,11 @@ public SceneActorInfo mergeFrom(final JsonSource input) throws IOException { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 115792: { - if (input.isAtField(FieldNames.uid)) { + case 160971093: + case 1248553134: { + if (input.isAtField(FieldNames.mapLayer)) { if (!input.trySkipNullValue()) { - uid = input.readUInt32(); + mapLayer = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -441,11 +442,10 @@ public SceneActorInfo mergeFrom(final JsonSource input) throws IOException { } break; } - case 160971093: - case 1248553134: { - if (input.isAtField(FieldNames.mapLayer)) { + case 115792: { + if (input.isAtField(FieldNames.uid)) { if (!input.trySkipNullValue()) { - mapLayer = input.readUInt32(); + uid = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -523,11 +523,11 @@ public SceneActorInfo create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName uid = FieldName.forField("uid"); + static final FieldName mapLayer = FieldName.forField("mapLayer", "map_layer"); static final FieldName baseAvatarId = FieldName.forField("baseAvatarId", "base_avatar_id"); - static final FieldName mapLayer = FieldName.forField("mapLayer", "map_layer"); + static final FieldName uid = FieldName.forField("uid"); static final FieldName avatarType = FieldName.forField("avatarType", "avatar_type"); } diff --git a/src/generated/main/emu/lunarcore/proto/SceneBattleInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneBattleInfoOuterClass.java index 9a57c871e..c22af6d22 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneBattleInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneBattleInfoOuterClass.java @@ -20,49 +20,49 @@ public static final class SceneBattleInfo extends ProtoMessage private static final long serialVersionUID = 0L; /** - * optional uint32 rounds_limit = 3; + * optional uint32 battle_id = 1; */ - private int roundsLimit; - - /** - * optional uint32 logic_random_seed = 4; - */ - private int logicRandomSeed; + private int battleId; /** - * optional uint32 stage_id = 5; + * optional uint32 stage_id = 7; */ private int stageId; /** - * optional uint32 world_level = 8; + * optional uint32 rounds_limit = 11; */ - private int worldLevel; + private int roundsLimit; /** - * optional uint32 battle_id = 10; + * optional uint32 logic_random_seed = 13; */ - private int battleId; + private int logicRandomSeed; /** - * repeated .BattleAvatar battle_avatar_list = 1; + * optional uint32 world_level = 15; */ - private final RepeatedMessage battleAvatarList = RepeatedMessage.newEmptyInstance(BattleAvatarOuterClass.BattleAvatar.getFactory()); + private int worldLevel; /** - * repeated .SceneMonsterWave monster_wave_list = 9; + * repeated .SceneMonsterWave monster_wave_list = 2; */ private final RepeatedMessage monsterWaveList = RepeatedMessage.newEmptyInstance(SceneMonsterWaveOuterClass.SceneMonsterWave.getFactory()); /** - * repeated .BattleBuff buff_list = 13; + * repeated .BattleBuff buff_list = 3; */ private final RepeatedMessage buffList = RepeatedMessage.newEmptyInstance(BattleBuffOuterClass.BattleBuff.getFactory()); /** - * repeated .ClientTurnSnapshot turn_snapshot_list = 219; + * repeated .BattleAvatar battle_avatar_list = 8; + */ + private final RepeatedMessage battleAvatarList = RepeatedMessage.newEmptyInstance(BattleAvatarOuterClass.BattleAvatar.getFactory()); + + /** + * repeated .BattleEventBattleInfo event_battle_info_list = 77; */ - private final RepeatedMessage turnSnapshotList = RepeatedMessage.newEmptyInstance(ClientTurnSnapshotOuterClass.ClientTurnSnapshot.getFactory()); + private final RepeatedMessage eventBattleInfoList = RepeatedMessage.newEmptyInstance(BattleEventBattleInfoOuterClass.BattleEventBattleInfo.getFactory()); private SceneBattleInfo() { } @@ -75,224 +75,224 @@ public static SceneBattleInfo newInstance() { } /** - * optional uint32 rounds_limit = 3; - * @return whether the roundsLimit field is set + * optional uint32 battle_id = 1; + * @return whether the battleId field is set */ - public boolean hasRoundsLimit() { + public boolean hasBattleId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 rounds_limit = 3; + * optional uint32 battle_id = 1; * @return this */ - public SceneBattleInfo clearRoundsLimit() { + public SceneBattleInfo clearBattleId() { bitField0_ &= ~0x00000001; - roundsLimit = 0; + battleId = 0; return this; } /** - * optional uint32 rounds_limit = 3; - * @return the roundsLimit + * optional uint32 battle_id = 1; + * @return the battleId */ - public int getRoundsLimit() { - return roundsLimit; + public int getBattleId() { + return battleId; } /** - * optional uint32 rounds_limit = 3; - * @param value the roundsLimit to set + * optional uint32 battle_id = 1; + * @param value the battleId to set * @return this */ - public SceneBattleInfo setRoundsLimit(final int value) { + public SceneBattleInfo setBattleId(final int value) { bitField0_ |= 0x00000001; - roundsLimit = value; + battleId = value; return this; } /** - * optional uint32 logic_random_seed = 4; - * @return whether the logicRandomSeed field is set + * optional uint32 stage_id = 7; + * @return whether the stageId field is set */ - public boolean hasLogicRandomSeed() { + public boolean hasStageId() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 logic_random_seed = 4; + * optional uint32 stage_id = 7; * @return this */ - public SceneBattleInfo clearLogicRandomSeed() { + public SceneBattleInfo clearStageId() { bitField0_ &= ~0x00000002; - logicRandomSeed = 0; + stageId = 0; return this; } /** - * optional uint32 logic_random_seed = 4; - * @return the logicRandomSeed + * optional uint32 stage_id = 7; + * @return the stageId */ - public int getLogicRandomSeed() { - return logicRandomSeed; + public int getStageId() { + return stageId; } /** - * optional uint32 logic_random_seed = 4; - * @param value the logicRandomSeed to set + * optional uint32 stage_id = 7; + * @param value the stageId to set * @return this */ - public SceneBattleInfo setLogicRandomSeed(final int value) { + public SceneBattleInfo setStageId(final int value) { bitField0_ |= 0x00000002; - logicRandomSeed = value; + stageId = value; return this; } /** - * optional uint32 stage_id = 5; - * @return whether the stageId field is set + * optional uint32 rounds_limit = 11; + * @return whether the roundsLimit field is set */ - public boolean hasStageId() { + public boolean hasRoundsLimit() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 stage_id = 5; + * optional uint32 rounds_limit = 11; * @return this */ - public SceneBattleInfo clearStageId() { + public SceneBattleInfo clearRoundsLimit() { bitField0_ &= ~0x00000004; - stageId = 0; + roundsLimit = 0; return this; } /** - * optional uint32 stage_id = 5; - * @return the stageId + * optional uint32 rounds_limit = 11; + * @return the roundsLimit */ - public int getStageId() { - return stageId; + public int getRoundsLimit() { + return roundsLimit; } /** - * optional uint32 stage_id = 5; - * @param value the stageId to set + * optional uint32 rounds_limit = 11; + * @param value the roundsLimit to set * @return this */ - public SceneBattleInfo setStageId(final int value) { + public SceneBattleInfo setRoundsLimit(final int value) { bitField0_ |= 0x00000004; - stageId = value; + roundsLimit = value; return this; } /** - * optional uint32 world_level = 8; - * @return whether the worldLevel field is set + * optional uint32 logic_random_seed = 13; + * @return whether the logicRandomSeed field is set */ - public boolean hasWorldLevel() { + public boolean hasLogicRandomSeed() { return (bitField0_ & 0x00000008) != 0; } /** - * optional uint32 world_level = 8; + * optional uint32 logic_random_seed = 13; * @return this */ - public SceneBattleInfo clearWorldLevel() { + public SceneBattleInfo clearLogicRandomSeed() { bitField0_ &= ~0x00000008; - worldLevel = 0; + logicRandomSeed = 0; return this; } /** - * optional uint32 world_level = 8; - * @return the worldLevel + * optional uint32 logic_random_seed = 13; + * @return the logicRandomSeed */ - public int getWorldLevel() { - return worldLevel; + public int getLogicRandomSeed() { + return logicRandomSeed; } /** - * optional uint32 world_level = 8; - * @param value the worldLevel to set + * optional uint32 logic_random_seed = 13; + * @param value the logicRandomSeed to set * @return this */ - public SceneBattleInfo setWorldLevel(final int value) { + public SceneBattleInfo setLogicRandomSeed(final int value) { bitField0_ |= 0x00000008; - worldLevel = value; + logicRandomSeed = value; return this; } /** - * optional uint32 battle_id = 10; - * @return whether the battleId field is set + * optional uint32 world_level = 15; + * @return whether the worldLevel field is set */ - public boolean hasBattleId() { + public boolean hasWorldLevel() { return (bitField0_ & 0x00000010) != 0; } /** - * optional uint32 battle_id = 10; + * optional uint32 world_level = 15; * @return this */ - public SceneBattleInfo clearBattleId() { + public SceneBattleInfo clearWorldLevel() { bitField0_ &= ~0x00000010; - battleId = 0; + worldLevel = 0; return this; } /** - * optional uint32 battle_id = 10; - * @return the battleId + * optional uint32 world_level = 15; + * @return the worldLevel */ - public int getBattleId() { - return battleId; + public int getWorldLevel() { + return worldLevel; } /** - * optional uint32 battle_id = 10; - * @param value the battleId to set + * optional uint32 world_level = 15; + * @param value the worldLevel to set * @return this */ - public SceneBattleInfo setBattleId(final int value) { + public SceneBattleInfo setWorldLevel(final int value) { bitField0_ |= 0x00000010; - battleId = value; + worldLevel = value; return this; } /** - * repeated .BattleAvatar battle_avatar_list = 1; - * @return whether the battleAvatarList field is set + * repeated .SceneMonsterWave monster_wave_list = 2; + * @return whether the monsterWaveList field is set */ - public boolean hasBattleAvatarList() { + public boolean hasMonsterWaveList() { return (bitField0_ & 0x00000020) != 0; } /** - * repeated .BattleAvatar battle_avatar_list = 1; + * repeated .SceneMonsterWave monster_wave_list = 2; * @return this */ - public SceneBattleInfo clearBattleAvatarList() { + public SceneBattleInfo clearMonsterWaveList() { bitField0_ &= ~0x00000020; - battleAvatarList.clear(); + monsterWaveList.clear(); return this; } /** - * repeated .BattleAvatar battle_avatar_list = 1; + * repeated .SceneMonsterWave monster_wave_list = 2; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableBattleAvatarList()} if you want to modify it. + * Use {@link #getMutableMonsterWaveList()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedMessage getBattleAvatarList() { - return battleAvatarList; + public RepeatedMessage getMonsterWaveList() { + return monsterWaveList; } /** - * repeated .BattleAvatar battle_avatar_list = 1; + * repeated .SceneMonsterWave monster_wave_list = 2; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -300,68 +300,70 @@ public RepeatedMessage getBattleAvatarList( * * @return internal storage object for modifications */ - public RepeatedMessage getMutableBattleAvatarList() { + public RepeatedMessage getMutableMonsterWaveList( + ) { bitField0_ |= 0x00000020; - return battleAvatarList; + return monsterWaveList; } /** - * repeated .BattleAvatar battle_avatar_list = 1; - * @param value the battleAvatarList to add + * repeated .SceneMonsterWave monster_wave_list = 2; + * @param value the monsterWaveList to add * @return this */ - public SceneBattleInfo addBattleAvatarList(final BattleAvatarOuterClass.BattleAvatar value) { + public SceneBattleInfo addMonsterWaveList( + final SceneMonsterWaveOuterClass.SceneMonsterWave value) { bitField0_ |= 0x00000020; - battleAvatarList.add(value); + monsterWaveList.add(value); return this; } /** - * repeated .BattleAvatar battle_avatar_list = 1; - * @param values the battleAvatarList to add + * repeated .SceneMonsterWave monster_wave_list = 2; + * @param values the monsterWaveList to add * @return this */ - public SceneBattleInfo addAllBattleAvatarList( - final BattleAvatarOuterClass.BattleAvatar... values) { + public SceneBattleInfo addAllMonsterWaveList( + final SceneMonsterWaveOuterClass.SceneMonsterWave... values) { bitField0_ |= 0x00000020; - battleAvatarList.addAll(values); + monsterWaveList.addAll(values); return this; } /** - * repeated .SceneMonsterWave monster_wave_list = 9; - * @return whether the monsterWaveList field is set + * repeated .BattleBuff buff_list = 3; + * @return whether the buffList field is set */ - public boolean hasMonsterWaveList() { + public boolean hasBuffList() { return (bitField0_ & 0x00000040) != 0; } /** - * repeated .SceneMonsterWave monster_wave_list = 9; + * repeated .BattleBuff buff_list = 3; * @return this */ - public SceneBattleInfo clearMonsterWaveList() { + public SceneBattleInfo clearBuffList() { bitField0_ &= ~0x00000040; - monsterWaveList.clear(); + buffList.clear(); return this; } /** - * repeated .SceneMonsterWave monster_wave_list = 9; + * repeated .BattleBuff buff_list = 3; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableMonsterWaveList()} if you want to modify it. + * Use {@link #getMutableBuffList()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedMessage getMonsterWaveList() { - return monsterWaveList; + public RepeatedMessage getBuffList() { + return buffList; } /** - * repeated .SceneMonsterWave monster_wave_list = 9; + * repeated .BattleBuff buff_list = 3; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -369,70 +371,67 @@ public RepeatedMessage getMonsterWa * * @return internal storage object for modifications */ - public RepeatedMessage getMutableMonsterWaveList( - ) { + public RepeatedMessage getMutableBuffList() { bitField0_ |= 0x00000040; - return monsterWaveList; + return buffList; } /** - * repeated .SceneMonsterWave monster_wave_list = 9; - * @param value the monsterWaveList to add + * repeated .BattleBuff buff_list = 3; + * @param value the buffList to add * @return this */ - public SceneBattleInfo addMonsterWaveList( - final SceneMonsterWaveOuterClass.SceneMonsterWave value) { + public SceneBattleInfo addBuffList(final BattleBuffOuterClass.BattleBuff value) { bitField0_ |= 0x00000040; - monsterWaveList.add(value); + buffList.add(value); return this; } /** - * repeated .SceneMonsterWave monster_wave_list = 9; - * @param values the monsterWaveList to add + * repeated .BattleBuff buff_list = 3; + * @param values the buffList to add * @return this */ - public SceneBattleInfo addAllMonsterWaveList( - final SceneMonsterWaveOuterClass.SceneMonsterWave... values) { + public SceneBattleInfo addAllBuffList(final BattleBuffOuterClass.BattleBuff... values) { bitField0_ |= 0x00000040; - monsterWaveList.addAll(values); + buffList.addAll(values); return this; } /** - * repeated .BattleBuff buff_list = 13; - * @return whether the buffList field is set + * repeated .BattleAvatar battle_avatar_list = 8; + * @return whether the battleAvatarList field is set */ - public boolean hasBuffList() { + public boolean hasBattleAvatarList() { return (bitField0_ & 0x00000080) != 0; } /** - * repeated .BattleBuff buff_list = 13; + * repeated .BattleAvatar battle_avatar_list = 8; * @return this */ - public SceneBattleInfo clearBuffList() { + public SceneBattleInfo clearBattleAvatarList() { bitField0_ &= ~0x00000080; - buffList.clear(); + battleAvatarList.clear(); return this; } /** - * repeated .BattleBuff buff_list = 13; + * repeated .BattleAvatar battle_avatar_list = 8; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableBuffList()} if you want to modify it. + * Use {@link #getMutableBattleAvatarList()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedMessage getBuffList() { - return buffList; + public RepeatedMessage getBattleAvatarList() { + return battleAvatarList; } /** - * repeated .BattleBuff buff_list = 13; + * repeated .BattleAvatar battle_avatar_list = 8; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -440,67 +439,69 @@ public RepeatedMessage getBuffList() { * * @return internal storage object for modifications */ - public RepeatedMessage getMutableBuffList() { + public RepeatedMessage getMutableBattleAvatarList() { bitField0_ |= 0x00000080; - return buffList; + return battleAvatarList; } /** - * repeated .BattleBuff buff_list = 13; - * @param value the buffList to add + * repeated .BattleAvatar battle_avatar_list = 8; + * @param value the battleAvatarList to add * @return this */ - public SceneBattleInfo addBuffList(final BattleBuffOuterClass.BattleBuff value) { + public SceneBattleInfo addBattleAvatarList(final BattleAvatarOuterClass.BattleAvatar value) { bitField0_ |= 0x00000080; - buffList.add(value); + battleAvatarList.add(value); return this; } /** - * repeated .BattleBuff buff_list = 13; - * @param values the buffList to add + * repeated .BattleAvatar battle_avatar_list = 8; + * @param values the battleAvatarList to add * @return this */ - public SceneBattleInfo addAllBuffList(final BattleBuffOuterClass.BattleBuff... values) { + public SceneBattleInfo addAllBattleAvatarList( + final BattleAvatarOuterClass.BattleAvatar... values) { bitField0_ |= 0x00000080; - buffList.addAll(values); + battleAvatarList.addAll(values); return this; } /** - * repeated .ClientTurnSnapshot turn_snapshot_list = 219; - * @return whether the turnSnapshotList field is set + * repeated .BattleEventBattleInfo event_battle_info_list = 77; + * @return whether the eventBattleInfoList field is set */ - public boolean hasTurnSnapshotList() { + public boolean hasEventBattleInfoList() { return (bitField0_ & 0x00000100) != 0; } /** - * repeated .ClientTurnSnapshot turn_snapshot_list = 219; + * repeated .BattleEventBattleInfo event_battle_info_list = 77; * @return this */ - public SceneBattleInfo clearTurnSnapshotList() { + public SceneBattleInfo clearEventBattleInfoList() { bitField0_ &= ~0x00000100; - turnSnapshotList.clear(); + eventBattleInfoList.clear(); return this; } /** - * repeated .ClientTurnSnapshot turn_snapshot_list = 219; + * repeated .BattleEventBattleInfo event_battle_info_list = 77; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableTurnSnapshotList()} if you want to modify it. + * Use {@link #getMutableEventBattleInfoList()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedMessage getTurnSnapshotList() { - return turnSnapshotList; + public RepeatedMessage getEventBattleInfoList( + ) { + return eventBattleInfoList; } /** - * repeated .ClientTurnSnapshot turn_snapshot_list = 219; + * repeated .BattleEventBattleInfo event_battle_info_list = 77; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -508,33 +509,33 @@ public RepeatedMessage getTurnS * * @return internal storage object for modifications */ - public RepeatedMessage getMutableTurnSnapshotList( + public RepeatedMessage getMutableEventBattleInfoList( ) { bitField0_ |= 0x00000100; - return turnSnapshotList; + return eventBattleInfoList; } /** - * repeated .ClientTurnSnapshot turn_snapshot_list = 219; - * @param value the turnSnapshotList to add + * repeated .BattleEventBattleInfo event_battle_info_list = 77; + * @param value the eventBattleInfoList to add * @return this */ - public SceneBattleInfo addTurnSnapshotList( - final ClientTurnSnapshotOuterClass.ClientTurnSnapshot value) { + public SceneBattleInfo addEventBattleInfoList( + final BattleEventBattleInfoOuterClass.BattleEventBattleInfo value) { bitField0_ |= 0x00000100; - turnSnapshotList.add(value); + eventBattleInfoList.add(value); return this; } /** - * repeated .ClientTurnSnapshot turn_snapshot_list = 219; - * @param values the turnSnapshotList to add + * repeated .BattleEventBattleInfo event_battle_info_list = 77; + * @param values the eventBattleInfoList to add * @return this */ - public SceneBattleInfo addAllTurnSnapshotList( - final ClientTurnSnapshotOuterClass.ClientTurnSnapshot... values) { + public SceneBattleInfo addAllEventBattleInfoList( + final BattleEventBattleInfoOuterClass.BattleEventBattleInfo... values) { bitField0_ |= 0x00000100; - turnSnapshotList.addAll(values); + eventBattleInfoList.addAll(values); return this; } @@ -543,15 +544,15 @@ public SceneBattleInfo copyFrom(final SceneBattleInfo other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; + battleId = other.battleId; + stageId = other.stageId; roundsLimit = other.roundsLimit; logicRandomSeed = other.logicRandomSeed; - stageId = other.stageId; worldLevel = other.worldLevel; - battleId = other.battleId; - battleAvatarList.copyFrom(other.battleAvatarList); monsterWaveList.copyFrom(other.monsterWaveList); buffList.copyFrom(other.buffList); - turnSnapshotList.copyFrom(other.turnSnapshotList); + battleAvatarList.copyFrom(other.battleAvatarList); + eventBattleInfoList.copyFrom(other.eventBattleInfoList); } return this; } @@ -562,32 +563,32 @@ public SceneBattleInfo mergeFrom(final SceneBattleInfo other) { return this; } cachedSize = -1; + if (other.hasBattleId()) { + setBattleId(other.battleId); + } + if (other.hasStageId()) { + setStageId(other.stageId); + } if (other.hasRoundsLimit()) { setRoundsLimit(other.roundsLimit); } if (other.hasLogicRandomSeed()) { setLogicRandomSeed(other.logicRandomSeed); } - if (other.hasStageId()) { - setStageId(other.stageId); - } if (other.hasWorldLevel()) { setWorldLevel(other.worldLevel); } - if (other.hasBattleId()) { - setBattleId(other.battleId); - } - if (other.hasBattleAvatarList()) { - getMutableBattleAvatarList().addAll(other.battleAvatarList); - } if (other.hasMonsterWaveList()) { getMutableMonsterWaveList().addAll(other.monsterWaveList); } if (other.hasBuffList()) { getMutableBuffList().addAll(other.buffList); } - if (other.hasTurnSnapshotList()) { - getMutableTurnSnapshotList().addAll(other.turnSnapshotList); + if (other.hasBattleAvatarList()) { + getMutableBattleAvatarList().addAll(other.battleAvatarList); + } + if (other.hasEventBattleInfoList()) { + getMutableEventBattleInfoList().addAll(other.eventBattleInfoList); } return this; } @@ -599,15 +600,15 @@ public SceneBattleInfo clear() { } cachedSize = -1; bitField0_ = 0; + battleId = 0; + stageId = 0; roundsLimit = 0; logicRandomSeed = 0; - stageId = 0; worldLevel = 0; - battleId = 0; - battleAvatarList.clear(); monsterWaveList.clear(); buffList.clear(); - turnSnapshotList.clear(); + battleAvatarList.clear(); + eventBattleInfoList.clear(); return this; } @@ -618,10 +619,10 @@ public SceneBattleInfo clearQuick() { } cachedSize = -1; bitField0_ = 0; - battleAvatarList.clearQuick(); monsterWaveList.clearQuick(); buffList.clearQuick(); - turnSnapshotList.clearQuick(); + battleAvatarList.clearQuick(); + eventBattleInfoList.clearQuick(); return this; } @@ -635,61 +636,61 @@ public boolean equals(Object o) { } SceneBattleInfo other = (SceneBattleInfo) o; return bitField0_ == other.bitField0_ + && (!hasBattleId() || battleId == other.battleId) + && (!hasStageId() || stageId == other.stageId) && (!hasRoundsLimit() || roundsLimit == other.roundsLimit) && (!hasLogicRandomSeed() || logicRandomSeed == other.logicRandomSeed) - && (!hasStageId() || stageId == other.stageId) && (!hasWorldLevel() || worldLevel == other.worldLevel) - && (!hasBattleId() || battleId == other.battleId) - && (!hasBattleAvatarList() || battleAvatarList.equals(other.battleAvatarList)) && (!hasMonsterWaveList() || monsterWaveList.equals(other.monsterWaveList)) && (!hasBuffList() || buffList.equals(other.buffList)) - && (!hasTurnSnapshotList() || turnSnapshotList.equals(other.turnSnapshotList)); + && (!hasBattleAvatarList() || battleAvatarList.equals(other.battleAvatarList)) + && (!hasEventBattleInfoList() || eventBattleInfoList.equals(other.eventBattleInfoList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(roundsLimit); + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(battleId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 32); - output.writeUInt32NoTag(logicRandomSeed); + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(stageId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 40); - output.writeUInt32NoTag(stageId); + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(roundsLimit); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 64); - output.writeUInt32NoTag(worldLevel); + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(logicRandomSeed); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 80); - output.writeUInt32NoTag(battleId); + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(worldLevel); } if ((bitField0_ & 0x00000020) != 0) { - for (int i = 0; i < battleAvatarList.length(); i++) { - output.writeRawByte((byte) 10); - output.writeMessageNoTag(battleAvatarList.get(i)); - } - } - if ((bitField0_ & 0x00000040) != 0) { for (int i = 0; i < monsterWaveList.length(); i++) { - output.writeRawByte((byte) 74); + output.writeRawByte((byte) 18); output.writeMessageNoTag(monsterWaveList.get(i)); } } - if ((bitField0_ & 0x00000080) != 0) { + if ((bitField0_ & 0x00000040) != 0) { for (int i = 0; i < buffList.length(); i++) { - output.writeRawByte((byte) 106); + output.writeRawByte((byte) 26); output.writeMessageNoTag(buffList.get(i)); } } + if ((bitField0_ & 0x00000080) != 0) { + for (int i = 0; i < battleAvatarList.length(); i++) { + output.writeRawByte((byte) 66); + output.writeMessageNoTag(battleAvatarList.get(i)); + } + } if ((bitField0_ & 0x00000100) != 0) { - for (int i = 0; i < turnSnapshotList.length(); i++) { - output.writeRawLittleEndian16((short) 3546); - output.writeMessageNoTag(turnSnapshotList.get(i)); + for (int i = 0; i < eventBattleInfoList.length(); i++) { + output.writeRawLittleEndian16((short) 1258); + output.writeMessageNoTag(eventBattleInfoList.get(i)); } } } @@ -698,31 +699,31 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(roundsLimit); + size += 1 + ProtoSink.computeUInt32SizeNoTag(battleId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(logicRandomSeed); + size += 1 + ProtoSink.computeUInt32SizeNoTag(stageId); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(stageId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(roundsLimit); } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(worldLevel); + size += 1 + ProtoSink.computeUInt32SizeNoTag(logicRandomSeed); } if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(battleId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(worldLevel); } if ((bitField0_ & 0x00000020) != 0) { - size += (1 * battleAvatarList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(battleAvatarList); + size += (1 * monsterWaveList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(monsterWaveList); } if ((bitField0_ & 0x00000040) != 0) { - size += (1 * monsterWaveList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(monsterWaveList); + size += (1 * buffList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(buffList); } if ((bitField0_ & 0x00000080) != 0) { - size += (1 * buffList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(buffList); + size += (1 * battleAvatarList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(battleAvatarList); } if ((bitField0_ & 0x00000100) != 0) { - size += (2 * turnSnapshotList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(turnSnapshotList); + size += (2 * eventBattleInfoList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(eventBattleInfoList); } return size; } @@ -734,78 +735,78 @@ public SceneBattleInfo mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 24: { - // roundsLimit - roundsLimit = input.readUInt32(); + case 8: { + // battleId + battleId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 32) { + if (tag != 56) { break; } } - case 32: { - // logicRandomSeed - logicRandomSeed = input.readUInt32(); + case 56: { + // stageId + stageId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 40) { + if (tag != 88) { break; } } - case 40: { - // stageId - stageId = input.readUInt32(); + case 88: { + // roundsLimit + roundsLimit = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 64) { + if (tag != 104) { break; } } - case 64: { - // worldLevel - worldLevel = input.readUInt32(); + case 104: { + // logicRandomSeed + logicRandomSeed = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 80) { + if (tag != 120) { break; } } - case 80: { - // battleId - battleId = input.readUInt32(); + case 120: { + // worldLevel + worldLevel = input.readUInt32(); bitField0_ |= 0x00000010; tag = input.readTag(); - if (tag != 10) { + if (tag != 18) { break; } } - case 10: { - // battleAvatarList - tag = input.readRepeatedMessage(battleAvatarList, tag); + case 18: { + // monsterWaveList + tag = input.readRepeatedMessage(monsterWaveList, tag); bitField0_ |= 0x00000020; - if (tag != 74) { + if (tag != 26) { break; } } - case 74: { - // monsterWaveList - tag = input.readRepeatedMessage(monsterWaveList, tag); + case 26: { + // buffList + tag = input.readRepeatedMessage(buffList, tag); bitField0_ |= 0x00000040; - if (tag != 106) { + if (tag != 66) { break; } } - case 106: { - // buffList - tag = input.readRepeatedMessage(buffList, tag); + case 66: { + // battleAvatarList + tag = input.readRepeatedMessage(battleAvatarList, tag); bitField0_ |= 0x00000080; - if (tag != 1754) { + if (tag != 618) { break; } } - case 1754: { - // turnSnapshotList - tag = input.readRepeatedMessage(turnSnapshotList, tag); + case 618: { + // eventBattleInfoList + tag = input.readRepeatedMessage(eventBattleInfoList, tag); bitField0_ |= 0x00000100; if (tag != 0) { break; @@ -829,31 +830,31 @@ public SceneBattleInfo mergeFrom(final ProtoSource input) throws IOException { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.roundsLimit, roundsLimit); + output.writeUInt32(FieldNames.battleId, battleId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.logicRandomSeed, logicRandomSeed); + output.writeUInt32(FieldNames.stageId, stageId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.stageId, stageId); + output.writeUInt32(FieldNames.roundsLimit, roundsLimit); } if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.worldLevel, worldLevel); + output.writeUInt32(FieldNames.logicRandomSeed, logicRandomSeed); } if ((bitField0_ & 0x00000010) != 0) { - output.writeUInt32(FieldNames.battleId, battleId); + output.writeUInt32(FieldNames.worldLevel, worldLevel); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRepeatedMessage(FieldNames.battleAvatarList, battleAvatarList); + output.writeRepeatedMessage(FieldNames.monsterWaveList, monsterWaveList); } if ((bitField0_ & 0x00000040) != 0) { - output.writeRepeatedMessage(FieldNames.monsterWaveList, monsterWaveList); + output.writeRepeatedMessage(FieldNames.buffList, buffList); } if ((bitField0_ & 0x00000080) != 0) { - output.writeRepeatedMessage(FieldNames.buffList, buffList); + output.writeRepeatedMessage(FieldNames.battleAvatarList, battleAvatarList); } if ((bitField0_ & 0x00000100) != 0) { - output.writeRepeatedMessage(FieldNames.turnSnapshotList, turnSnapshotList); + output.writeRepeatedMessage(FieldNames.eventBattleInfoList, eventBattleInfoList); } output.endObject(); } @@ -865,11 +866,11 @@ public SceneBattleInfo mergeFrom(final JsonSource input) throws IOException { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 306477590: - case 1457479585: { - if (input.isAtField(FieldNames.roundsLimit)) { + case -1678308365: + case -487930366: { + if (input.isAtField(FieldNames.battleId)) { if (!input.trySkipNullValue()) { - roundsLimit = input.readUInt32(); + battleId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -877,11 +878,11 @@ public SceneBattleInfo mergeFrom(final JsonSource input) throws IOException { } break; } - case 141999058: - case -1894951668: { - if (input.isAtField(FieldNames.logicRandomSeed)) { + case -1897528135: + case 1306191356: { + if (input.isAtField(FieldNames.stageId)) { if (!input.trySkipNullValue()) { - logicRandomSeed = input.readUInt32(); + stageId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -889,11 +890,11 @@ public SceneBattleInfo mergeFrom(final JsonSource input) throws IOException { } break; } - case -1897528135: - case 1306191356: { - if (input.isAtField(FieldNames.stageId)) { + case 306477590: + case 1457479585: { + if (input.isAtField(FieldNames.roundsLimit)) { if (!input.trySkipNullValue()) { - stageId = input.readUInt32(); + roundsLimit = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -901,11 +902,11 @@ public SceneBattleInfo mergeFrom(final JsonSource input) throws IOException { } break; } - case 440007442: - case 1305257111: { - if (input.isAtField(FieldNames.worldLevel)) { + case 141999058: + case -1894951668: { + if (input.isAtField(FieldNames.logicRandomSeed)) { if (!input.trySkipNullValue()) { - worldLevel = input.readUInt32(); + logicRandomSeed = input.readUInt32(); bitField0_ |= 0x00000008; } } else { @@ -913,11 +914,11 @@ public SceneBattleInfo mergeFrom(final JsonSource input) throws IOException { } break; } - case -1678308365: - case -487930366: { - if (input.isAtField(FieldNames.battleId)) { + case 440007442: + case 1305257111: { + if (input.isAtField(FieldNames.worldLevel)) { if (!input.trySkipNullValue()) { - battleId = input.readUInt32(); + worldLevel = input.readUInt32(); bitField0_ |= 0x00000010; } } else { @@ -925,11 +926,11 @@ public SceneBattleInfo mergeFrom(final JsonSource input) throws IOException { } break; } - case 768292975: - case 328463037: { - if (input.isAtField(FieldNames.battleAvatarList)) { + case 697746737: + case -1492024321: { + if (input.isAtField(FieldNames.monsterWaveList)) { if (!input.trySkipNullValue()) { - input.readRepeatedMessage(battleAvatarList); + input.readRepeatedMessage(monsterWaveList); bitField0_ |= 0x00000020; } } else { @@ -937,11 +938,11 @@ public SceneBattleInfo mergeFrom(final JsonSource input) throws IOException { } break; } - case 697746737: - case -1492024321: { - if (input.isAtField(FieldNames.monsterWaveList)) { + case -1522789487: + case 55792906: { + if (input.isAtField(FieldNames.buffList)) { if (!input.trySkipNullValue()) { - input.readRepeatedMessage(monsterWaveList); + input.readRepeatedMessage(buffList); bitField0_ |= 0x00000040; } } else { @@ -949,11 +950,11 @@ public SceneBattleInfo mergeFrom(final JsonSource input) throws IOException { } break; } - case -1522789487: - case 55792906: { - if (input.isAtField(FieldNames.buffList)) { + case 768292975: + case 328463037: { + if (input.isAtField(FieldNames.battleAvatarList)) { if (!input.trySkipNullValue()) { - input.readRepeatedMessage(buffList); + input.readRepeatedMessage(battleAvatarList); bitField0_ |= 0x00000080; } } else { @@ -961,11 +962,11 @@ public SceneBattleInfo mergeFrom(final JsonSource input) throws IOException { } break; } - case 716339615: - case 397197815: { - if (input.isAtField(FieldNames.turnSnapshotList)) { + case 1643489406: + case 1679998413: { + if (input.isAtField(FieldNames.eventBattleInfoList)) { if (!input.trySkipNullValue()) { - input.readRepeatedMessage(turnSnapshotList); + input.readRepeatedMessage(eventBattleInfoList); bitField0_ |= 0x00000100; } } else { @@ -1026,23 +1027,23 @@ public SceneBattleInfo create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName roundsLimit = FieldName.forField("roundsLimit", "rounds_limit"); - - static final FieldName logicRandomSeed = FieldName.forField("logicRandomSeed", "logic_random_seed"); + static final FieldName battleId = FieldName.forField("battleId", "battle_id"); static final FieldName stageId = FieldName.forField("stageId", "stage_id"); - static final FieldName worldLevel = FieldName.forField("worldLevel", "world_level"); + static final FieldName roundsLimit = FieldName.forField("roundsLimit", "rounds_limit"); - static final FieldName battleId = FieldName.forField("battleId", "battle_id"); + static final FieldName logicRandomSeed = FieldName.forField("logicRandomSeed", "logic_random_seed"); - static final FieldName battleAvatarList = FieldName.forField("battleAvatarList", "battle_avatar_list"); + static final FieldName worldLevel = FieldName.forField("worldLevel", "world_level"); static final FieldName monsterWaveList = FieldName.forField("monsterWaveList", "monster_wave_list"); static final FieldName buffList = FieldName.forField("buffList", "buff_list"); - static final FieldName turnSnapshotList = FieldName.forField("turnSnapshotList", "turn_snapshot_list"); + static final FieldName battleAvatarList = FieldName.forField("battleAvatarList", "battle_avatar_list"); + + static final FieldName eventBattleInfoList = FieldName.forField("eventBattleInfoList", "event_battle_info_list"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/SceneCastSkillCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneCastSkillCsReqOuterClass.java index 2fb47a53d..1b0b9c618 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneCastSkillCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneCastSkillCsReqOuterClass.java @@ -20,34 +20,34 @@ public static final class SceneCastSkillCsReq extends ProtoMessageoptional uint32 attacked_group_id = 2; + * optional uint32 attacked_group_id = 8; */ private int attackedGroupId; /** - * optional uint32 skill_index = 8; + * optional uint32 caster_id = 11; */ - private int skillIndex; + private int casterId; /** - * optional uint32 caster_id = 11; + * optional uint32 skill_index = 15; */ - private int casterId; + private int skillIndex; /** - * optional .MotionInfo target_motion = 5; + * optional .MotionInfo target_motion = 7; */ private final MotionInfoOuterClass.MotionInfo targetMotion = MotionInfoOuterClass.MotionInfo.newInstance(); /** - * repeated uint32 hit_target_id_list = 1; + * repeated uint32 hit_target_entity_id_list = 2; */ - private final RepeatedInt hitTargetIdList = RepeatedInt.newEmptyInstance(); + private final RepeatedInt hitTargetEntityIdList = RepeatedInt.newEmptyInstance(); /** - * repeated uint32 assist_monster_id_list = 3; + * repeated uint32 assist_monster_entity_id_list = 13; */ - private final RepeatedInt assistMonsterIdList = RepeatedInt.newEmptyInstance(); + private final RepeatedInt assistMonsterEntityIdList = RepeatedInt.newEmptyInstance(); private SceneCastSkillCsReq() { } @@ -60,7 +60,7 @@ public static SceneCastSkillCsReq newInstance() { } /** - * optional uint32 attacked_group_id = 2; + * optional uint32 attacked_group_id = 8; * @return whether the attackedGroupId field is set */ public boolean hasAttackedGroupId() { @@ -68,7 +68,7 @@ public boolean hasAttackedGroupId() { } /** - * optional uint32 attacked_group_id = 2; + * optional uint32 attacked_group_id = 8; * @return this */ public SceneCastSkillCsReq clearAttackedGroupId() { @@ -78,7 +78,7 @@ public SceneCastSkillCsReq clearAttackedGroupId() { } /** - * optional uint32 attacked_group_id = 2; + * optional uint32 attacked_group_id = 8; * @return the attackedGroupId */ public int getAttackedGroupId() { @@ -86,7 +86,7 @@ public int getAttackedGroupId() { } /** - * optional uint32 attacked_group_id = 2; + * optional uint32 attacked_group_id = 8; * @param value the attackedGroupId to set * @return this */ @@ -97,81 +97,81 @@ public SceneCastSkillCsReq setAttackedGroupId(final int value) { } /** - * optional uint32 skill_index = 8; - * @return whether the skillIndex field is set + * optional uint32 caster_id = 11; + * @return whether the casterId field is set */ - public boolean hasSkillIndex() { + public boolean hasCasterId() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 skill_index = 8; + * optional uint32 caster_id = 11; * @return this */ - public SceneCastSkillCsReq clearSkillIndex() { + public SceneCastSkillCsReq clearCasterId() { bitField0_ &= ~0x00000002; - skillIndex = 0; + casterId = 0; return this; } /** - * optional uint32 skill_index = 8; - * @return the skillIndex + * optional uint32 caster_id = 11; + * @return the casterId */ - public int getSkillIndex() { - return skillIndex; + public int getCasterId() { + return casterId; } /** - * optional uint32 skill_index = 8; - * @param value the skillIndex to set + * optional uint32 caster_id = 11; + * @param value the casterId to set * @return this */ - public SceneCastSkillCsReq setSkillIndex(final int value) { + public SceneCastSkillCsReq setCasterId(final int value) { bitField0_ |= 0x00000002; - skillIndex = value; + casterId = value; return this; } /** - * optional uint32 caster_id = 11; - * @return whether the casterId field is set + * optional uint32 skill_index = 15; + * @return whether the skillIndex field is set */ - public boolean hasCasterId() { + public boolean hasSkillIndex() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 caster_id = 11; + * optional uint32 skill_index = 15; * @return this */ - public SceneCastSkillCsReq clearCasterId() { + public SceneCastSkillCsReq clearSkillIndex() { bitField0_ &= ~0x00000004; - casterId = 0; + skillIndex = 0; return this; } /** - * optional uint32 caster_id = 11; - * @return the casterId + * optional uint32 skill_index = 15; + * @return the skillIndex */ - public int getCasterId() { - return casterId; + public int getSkillIndex() { + return skillIndex; } /** - * optional uint32 caster_id = 11; - * @param value the casterId to set + * optional uint32 skill_index = 15; + * @param value the skillIndex to set * @return this */ - public SceneCastSkillCsReq setCasterId(final int value) { + public SceneCastSkillCsReq setSkillIndex(final int value) { bitField0_ |= 0x00000004; - casterId = value; + skillIndex = value; return this; } /** - * optional .MotionInfo target_motion = 5; + * optional .MotionInfo target_motion = 7; * @return whether the targetMotion field is set */ public boolean hasTargetMotion() { @@ -179,7 +179,7 @@ public boolean hasTargetMotion() { } /** - * optional .MotionInfo target_motion = 5; + * optional .MotionInfo target_motion = 7; * @return this */ public SceneCastSkillCsReq clearTargetMotion() { @@ -189,7 +189,7 @@ public SceneCastSkillCsReq clearTargetMotion() { } /** - * optional .MotionInfo target_motion = 5; + * optional .MotionInfo target_motion = 7; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -203,7 +203,7 @@ public MotionInfoOuterClass.MotionInfo getTargetMotion() { } /** - * optional .MotionInfo target_motion = 5; + * optional .MotionInfo target_motion = 7; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -217,7 +217,7 @@ public MotionInfoOuterClass.MotionInfo getMutableTargetMotion() { } /** - * optional .MotionInfo target_motion = 5; + * optional .MotionInfo target_motion = 7; * @param value the targetMotion to set * @return this */ @@ -228,39 +228,39 @@ public SceneCastSkillCsReq setTargetMotion(final MotionInfoOuterClass.MotionInfo } /** - * repeated uint32 hit_target_id_list = 1; - * @return whether the hitTargetIdList field is set + * repeated uint32 hit_target_entity_id_list = 2; + * @return whether the hitTargetEntityIdList field is set */ - public boolean hasHitTargetIdList() { + public boolean hasHitTargetEntityIdList() { return (bitField0_ & 0x00000010) != 0; } /** - * repeated uint32 hit_target_id_list = 1; + * repeated uint32 hit_target_entity_id_list = 2; * @return this */ - public SceneCastSkillCsReq clearHitTargetIdList() { + public SceneCastSkillCsReq clearHitTargetEntityIdList() { bitField0_ &= ~0x00000010; - hitTargetIdList.clear(); + hitTargetEntityIdList.clear(); return this; } /** - * repeated uint32 hit_target_id_list = 1; + * repeated uint32 hit_target_entity_id_list = 2; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableHitTargetIdList()} if you want to modify it. + * Use {@link #getMutableHitTargetEntityIdList()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedInt getHitTargetIdList() { - return hitTargetIdList; + public RepeatedInt getHitTargetEntityIdList() { + return hitTargetEntityIdList; } /** - * repeated uint32 hit_target_id_list = 1; + * repeated uint32 hit_target_entity_id_list = 2; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -268,67 +268,67 @@ public RepeatedInt getHitTargetIdList() { * * @return internal storage object for modifications */ - public RepeatedInt getMutableHitTargetIdList() { + public RepeatedInt getMutableHitTargetEntityIdList() { bitField0_ |= 0x00000010; - return hitTargetIdList; + return hitTargetEntityIdList; } /** - * repeated uint32 hit_target_id_list = 1; - * @param value the hitTargetIdList to add + * repeated uint32 hit_target_entity_id_list = 2; + * @param value the hitTargetEntityIdList to add * @return this */ - public SceneCastSkillCsReq addHitTargetIdList(final int value) { + public SceneCastSkillCsReq addHitTargetEntityIdList(final int value) { bitField0_ |= 0x00000010; - hitTargetIdList.add(value); + hitTargetEntityIdList.add(value); return this; } /** - * repeated uint32 hit_target_id_list = 1; - * @param values the hitTargetIdList to add + * repeated uint32 hit_target_entity_id_list = 2; + * @param values the hitTargetEntityIdList to add * @return this */ - public SceneCastSkillCsReq addAllHitTargetIdList(final int... values) { + public SceneCastSkillCsReq addAllHitTargetEntityIdList(final int... values) { bitField0_ |= 0x00000010; - hitTargetIdList.addAll(values); + hitTargetEntityIdList.addAll(values); return this; } /** - * repeated uint32 assist_monster_id_list = 3; - * @return whether the assistMonsterIdList field is set + * repeated uint32 assist_monster_entity_id_list = 13; + * @return whether the assistMonsterEntityIdList field is set */ - public boolean hasAssistMonsterIdList() { + public boolean hasAssistMonsterEntityIdList() { return (bitField0_ & 0x00000020) != 0; } /** - * repeated uint32 assist_monster_id_list = 3; + * repeated uint32 assist_monster_entity_id_list = 13; * @return this */ - public SceneCastSkillCsReq clearAssistMonsterIdList() { + public SceneCastSkillCsReq clearAssistMonsterEntityIdList() { bitField0_ &= ~0x00000020; - assistMonsterIdList.clear(); + assistMonsterEntityIdList.clear(); return this; } /** - * repeated uint32 assist_monster_id_list = 3; + * repeated uint32 assist_monster_entity_id_list = 13; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableAssistMonsterIdList()} if you want to modify it. + * Use {@link #getMutableAssistMonsterEntityIdList()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedInt getAssistMonsterIdList() { - return assistMonsterIdList; + public RepeatedInt getAssistMonsterEntityIdList() { + return assistMonsterEntityIdList; } /** - * repeated uint32 assist_monster_id_list = 3; + * repeated uint32 assist_monster_entity_id_list = 13; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -336,30 +336,30 @@ public RepeatedInt getAssistMonsterIdList() { * * @return internal storage object for modifications */ - public RepeatedInt getMutableAssistMonsterIdList() { + public RepeatedInt getMutableAssistMonsterEntityIdList() { bitField0_ |= 0x00000020; - return assistMonsterIdList; + return assistMonsterEntityIdList; } /** - * repeated uint32 assist_monster_id_list = 3; - * @param value the assistMonsterIdList to add + * repeated uint32 assist_monster_entity_id_list = 13; + * @param value the assistMonsterEntityIdList to add * @return this */ - public SceneCastSkillCsReq addAssistMonsterIdList(final int value) { + public SceneCastSkillCsReq addAssistMonsterEntityIdList(final int value) { bitField0_ |= 0x00000020; - assistMonsterIdList.add(value); + assistMonsterEntityIdList.add(value); return this; } /** - * repeated uint32 assist_monster_id_list = 3; - * @param values the assistMonsterIdList to add + * repeated uint32 assist_monster_entity_id_list = 13; + * @param values the assistMonsterEntityIdList to add * @return this */ - public SceneCastSkillCsReq addAllAssistMonsterIdList(final int... values) { + public SceneCastSkillCsReq addAllAssistMonsterEntityIdList(final int... values) { bitField0_ |= 0x00000020; - assistMonsterIdList.addAll(values); + assistMonsterEntityIdList.addAll(values); return this; } @@ -369,11 +369,11 @@ public SceneCastSkillCsReq copyFrom(final SceneCastSkillCsReq other) { if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; attackedGroupId = other.attackedGroupId; - skillIndex = other.skillIndex; casterId = other.casterId; + skillIndex = other.skillIndex; targetMotion.copyFrom(other.targetMotion); - hitTargetIdList.copyFrom(other.hitTargetIdList); - assistMonsterIdList.copyFrom(other.assistMonsterIdList); + hitTargetEntityIdList.copyFrom(other.hitTargetEntityIdList); + assistMonsterEntityIdList.copyFrom(other.assistMonsterEntityIdList); } return this; } @@ -387,20 +387,20 @@ public SceneCastSkillCsReq mergeFrom(final SceneCastSkillCsReq other) { if (other.hasAttackedGroupId()) { setAttackedGroupId(other.attackedGroupId); } - if (other.hasSkillIndex()) { - setSkillIndex(other.skillIndex); - } if (other.hasCasterId()) { setCasterId(other.casterId); } + if (other.hasSkillIndex()) { + setSkillIndex(other.skillIndex); + } if (other.hasTargetMotion()) { getMutableTargetMotion().mergeFrom(other.targetMotion); } - if (other.hasHitTargetIdList()) { - getMutableHitTargetIdList().addAll(other.hitTargetIdList); + if (other.hasHitTargetEntityIdList()) { + getMutableHitTargetEntityIdList().addAll(other.hitTargetEntityIdList); } - if (other.hasAssistMonsterIdList()) { - getMutableAssistMonsterIdList().addAll(other.assistMonsterIdList); + if (other.hasAssistMonsterEntityIdList()) { + getMutableAssistMonsterEntityIdList().addAll(other.assistMonsterEntityIdList); } return this; } @@ -413,11 +413,11 @@ public SceneCastSkillCsReq clear() { cachedSize = -1; bitField0_ = 0; attackedGroupId = 0; - skillIndex = 0; casterId = 0; + skillIndex = 0; targetMotion.clear(); - hitTargetIdList.clear(); - assistMonsterIdList.clear(); + hitTargetEntityIdList.clear(); + assistMonsterEntityIdList.clear(); return this; } @@ -429,8 +429,8 @@ public SceneCastSkillCsReq clearQuick() { cachedSize = -1; bitField0_ = 0; targetMotion.clearQuick(); - hitTargetIdList.clear(); - assistMonsterIdList.clear(); + hitTargetEntityIdList.clear(); + assistMonsterEntityIdList.clear(); return this; } @@ -445,41 +445,41 @@ public boolean equals(Object o) { SceneCastSkillCsReq other = (SceneCastSkillCsReq) o; return bitField0_ == other.bitField0_ && (!hasAttackedGroupId() || attackedGroupId == other.attackedGroupId) - && (!hasSkillIndex() || skillIndex == other.skillIndex) && (!hasCasterId() || casterId == other.casterId) + && (!hasSkillIndex() || skillIndex == other.skillIndex) && (!hasTargetMotion() || targetMotion.equals(other.targetMotion)) - && (!hasHitTargetIdList() || hitTargetIdList.equals(other.hitTargetIdList)) - && (!hasAssistMonsterIdList() || assistMonsterIdList.equals(other.assistMonsterIdList)); + && (!hasHitTargetEntityIdList() || hitTargetEntityIdList.equals(other.hitTargetEntityIdList)) + && (!hasAssistMonsterEntityIdList() || assistMonsterEntityIdList.equals(other.assistMonsterEntityIdList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); + output.writeRawByte((byte) 64); output.writeUInt32NoTag(attackedGroupId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 64); - output.writeUInt32NoTag(skillIndex); - } - if ((bitField0_ & 0x00000004) != 0) { output.writeRawByte((byte) 88); output.writeUInt32NoTag(casterId); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(skillIndex); + } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 42); + output.writeRawByte((byte) 58); output.writeMessageNoTag(targetMotion); } if ((bitField0_ & 0x00000010) != 0) { - for (int i = 0; i < hitTargetIdList.length(); i++) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(hitTargetIdList.array()[i]); + for (int i = 0; i < hitTargetEntityIdList.length(); i++) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(hitTargetEntityIdList.array()[i]); } } if ((bitField0_ & 0x00000020) != 0) { - for (int i = 0; i < assistMonsterIdList.length(); i++) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(assistMonsterIdList.array()[i]); + for (int i = 0; i < assistMonsterEntityIdList.length(); i++) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(assistMonsterEntityIdList.array()[i]); } } } @@ -491,19 +491,19 @@ protected int computeSerializedSize() { size += 1 + ProtoSink.computeUInt32SizeNoTag(attackedGroupId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(skillIndex); + size += 1 + ProtoSink.computeUInt32SizeNoTag(casterId); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(casterId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(skillIndex); } if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(targetMotion); } if ((bitField0_ & 0x00000010) != 0) { - size += (1 * hitTargetIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(hitTargetIdList); + size += (1 * hitTargetEntityIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(hitTargetEntityIdList); } if ((bitField0_ & 0x00000020) != 0) { - size += (1 * assistMonsterIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(assistMonsterIdList); + size += (1 * assistMonsterEntityIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(assistMonsterEntityIdList); } return size; } @@ -515,54 +515,54 @@ public SceneCastSkillCsReq mergeFrom(final ProtoSource input) throws IOException int tag = input.readTag(); while (true) { switch (tag) { - case 16: { + case 64: { // attackedGroupId attackedGroupId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 64) { + if (tag != 88) { break; } } - case 64: { - // skillIndex - skillIndex = input.readUInt32(); + case 88: { + // casterId + casterId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 88) { + if (tag != 120) { break; } } - case 88: { - // casterId - casterId = input.readUInt32(); + case 120: { + // skillIndex + skillIndex = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 42) { + if (tag != 58) { break; } } - case 42: { + case 58: { // targetMotion input.readMessage(targetMotion); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 10) { + if (tag != 18) { break; } } - case 10: { - // hitTargetIdList [packed=true] - input.readPackedUInt32(hitTargetIdList, tag); + case 18: { + // hitTargetEntityIdList [packed=true] + input.readPackedUInt32(hitTargetEntityIdList, tag); bitField0_ |= 0x00000010; tag = input.readTag(); - if (tag != 26) { + if (tag != 106) { break; } } - case 26: { - // assistMonsterIdList [packed=true] - input.readPackedUInt32(assistMonsterIdList, tag); + case 106: { + // assistMonsterEntityIdList [packed=true] + input.readPackedUInt32(assistMonsterEntityIdList, tag); bitField0_ |= 0x00000020; tag = input.readTag(); if (tag != 0) { @@ -579,15 +579,15 @@ public SceneCastSkillCsReq mergeFrom(final ProtoSource input) throws IOException tag = input.readTag(); break; } - case 8: { - // hitTargetIdList [packed=false] - tag = input.readRepeatedUInt32(hitTargetIdList, tag); + case 16: { + // hitTargetEntityIdList [packed=false] + tag = input.readRepeatedUInt32(hitTargetEntityIdList, tag); bitField0_ |= 0x00000010; break; } - case 24: { - // assistMonsterIdList [packed=false] - tag = input.readRepeatedUInt32(assistMonsterIdList, tag); + case 104: { + // assistMonsterEntityIdList [packed=false] + tag = input.readRepeatedUInt32(assistMonsterEntityIdList, tag); bitField0_ |= 0x00000020; break; } @@ -602,19 +602,19 @@ public void writeTo(final JsonSink output) throws IOException { output.writeUInt32(FieldNames.attackedGroupId, attackedGroupId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.skillIndex, skillIndex); + output.writeUInt32(FieldNames.casterId, casterId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.casterId, casterId); + output.writeUInt32(FieldNames.skillIndex, skillIndex); } if ((bitField0_ & 0x00000008) != 0) { output.writeMessage(FieldNames.targetMotion, targetMotion); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRepeatedUInt32(FieldNames.hitTargetIdList, hitTargetIdList); + output.writeRepeatedUInt32(FieldNames.hitTargetEntityIdList, hitTargetEntityIdList); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRepeatedUInt32(FieldNames.assistMonsterIdList, assistMonsterIdList); + output.writeRepeatedUInt32(FieldNames.assistMonsterEntityIdList, assistMonsterEntityIdList); } output.endObject(); } @@ -638,11 +638,11 @@ public SceneCastSkillCsReq mergeFrom(final JsonSource input) throws IOException } break; } - case 1587034369: - case -1716021916: { - if (input.isAtField(FieldNames.skillIndex)) { + case 35676775: + case 1106001422: { + if (input.isAtField(FieldNames.casterId)) { if (!input.trySkipNullValue()) { - skillIndex = input.readUInt32(); + casterId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -650,11 +650,11 @@ public SceneCastSkillCsReq mergeFrom(final JsonSource input) throws IOException } break; } - case 35676775: - case 1106001422: { - if (input.isAtField(FieldNames.casterId)) { + case 1587034369: + case -1716021916: { + if (input.isAtField(FieldNames.skillIndex)) { if (!input.trySkipNullValue()) { - casterId = input.readUInt32(); + skillIndex = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -674,11 +674,11 @@ public SceneCastSkillCsReq mergeFrom(final JsonSource input) throws IOException } break; } - case 269057149: - case 197471936: { - if (input.isAtField(FieldNames.hitTargetIdList)) { + case 1319168832: + case -35493464: { + if (input.isAtField(FieldNames.hitTargetEntityIdList)) { if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(hitTargetIdList); + input.readRepeatedUInt32(hitTargetEntityIdList); bitField0_ |= 0x00000010; } } else { @@ -686,11 +686,11 @@ public SceneCastSkillCsReq mergeFrom(final JsonSource input) throws IOException } break; } - case -1198312214: - case -1972457465: { - if (input.isAtField(FieldNames.assistMonsterIdList)) { + case -1391993363: + case -1507247487: { + if (input.isAtField(FieldNames.assistMonsterEntityIdList)) { if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(assistMonsterIdList); + input.readRepeatedUInt32(assistMonsterEntityIdList); bitField0_ |= 0x00000020; } } else { @@ -753,15 +753,15 @@ public SceneCastSkillCsReq create() { static class FieldNames { static final FieldName attackedGroupId = FieldName.forField("attackedGroupId", "attacked_group_id"); - static final FieldName skillIndex = FieldName.forField("skillIndex", "skill_index"); - static final FieldName casterId = FieldName.forField("casterId", "caster_id"); + static final FieldName skillIndex = FieldName.forField("skillIndex", "skill_index"); + static final FieldName targetMotion = FieldName.forField("targetMotion", "target_motion"); - static final FieldName hitTargetIdList = FieldName.forField("hitTargetIdList", "hit_target_id_list"); + static final FieldName hitTargetEntityIdList = FieldName.forField("hitTargetEntityIdList", "hit_target_entity_id_list"); - static final FieldName assistMonsterIdList = FieldName.forField("assistMonsterIdList", "assist_monster_id_list"); + static final FieldName assistMonsterEntityIdList = FieldName.forField("assistMonsterEntityIdList", "assist_monster_entity_id_list"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/SceneCastSkillMpUpdateScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneCastSkillMpUpdateScNotifyOuterClass.java index 205dd4fc7..5eb153f01 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneCastSkillMpUpdateScNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneCastSkillMpUpdateScNotifyOuterClass.java @@ -19,14 +19,14 @@ public static final class SceneCastSkillMpUpdateScNotify extends ProtoMessageoptional uint32 mp = 3; + * optional uint32 attacked_group_id = 4; */ - private int mp; + private int attackedGroupId; /** - * optional uint32 attacked_group_id = 8; + * optional uint32 mp = 6; */ - private int attackedGroupId; + private int mp; private SceneCastSkillMpUpdateScNotify() { } @@ -39,76 +39,76 @@ public static SceneCastSkillMpUpdateScNotify newInstance() { } /** - * optional uint32 mp = 3; - * @return whether the mp field is set + * optional uint32 attacked_group_id = 4; + * @return whether the attackedGroupId field is set */ - public boolean hasMp() { + public boolean hasAttackedGroupId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 mp = 3; + * optional uint32 attacked_group_id = 4; * @return this */ - public SceneCastSkillMpUpdateScNotify clearMp() { + public SceneCastSkillMpUpdateScNotify clearAttackedGroupId() { bitField0_ &= ~0x00000001; - mp = 0; + attackedGroupId = 0; return this; } /** - * optional uint32 mp = 3; - * @return the mp + * optional uint32 attacked_group_id = 4; + * @return the attackedGroupId */ - public int getMp() { - return mp; + public int getAttackedGroupId() { + return attackedGroupId; } /** - * optional uint32 mp = 3; - * @param value the mp to set + * optional uint32 attacked_group_id = 4; + * @param value the attackedGroupId to set * @return this */ - public SceneCastSkillMpUpdateScNotify setMp(final int value) { + public SceneCastSkillMpUpdateScNotify setAttackedGroupId(final int value) { bitField0_ |= 0x00000001; - mp = value; + attackedGroupId = value; return this; } /** - * optional uint32 attacked_group_id = 8; - * @return whether the attackedGroupId field is set + * optional uint32 mp = 6; + * @return whether the mp field is set */ - public boolean hasAttackedGroupId() { + public boolean hasMp() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 attacked_group_id = 8; + * optional uint32 mp = 6; * @return this */ - public SceneCastSkillMpUpdateScNotify clearAttackedGroupId() { + public SceneCastSkillMpUpdateScNotify clearMp() { bitField0_ &= ~0x00000002; - attackedGroupId = 0; + mp = 0; return this; } /** - * optional uint32 attacked_group_id = 8; - * @return the attackedGroupId + * optional uint32 mp = 6; + * @return the mp */ - public int getAttackedGroupId() { - return attackedGroupId; + public int getMp() { + return mp; } /** - * optional uint32 attacked_group_id = 8; - * @param value the attackedGroupId to set + * optional uint32 mp = 6; + * @param value the mp to set * @return this */ - public SceneCastSkillMpUpdateScNotify setAttackedGroupId(final int value) { + public SceneCastSkillMpUpdateScNotify setMp(final int value) { bitField0_ |= 0x00000002; - attackedGroupId = value; + mp = value; return this; } @@ -117,8 +117,8 @@ public SceneCastSkillMpUpdateScNotify copyFrom(final SceneCastSkillMpUpdateScNot cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - mp = other.mp; attackedGroupId = other.attackedGroupId; + mp = other.mp; } return this; } @@ -129,12 +129,12 @@ public SceneCastSkillMpUpdateScNotify mergeFrom(final SceneCastSkillMpUpdateScNo return this; } cachedSize = -1; - if (other.hasMp()) { - setMp(other.mp); - } if (other.hasAttackedGroupId()) { setAttackedGroupId(other.attackedGroupId); } + if (other.hasMp()) { + setMp(other.mp); + } return this; } @@ -145,8 +145,8 @@ public SceneCastSkillMpUpdateScNotify clear() { } cachedSize = -1; bitField0_ = 0; - mp = 0; attackedGroupId = 0; + mp = 0; return this; } @@ -170,19 +170,19 @@ public boolean equals(Object o) { } SceneCastSkillMpUpdateScNotify other = (SceneCastSkillMpUpdateScNotify) o; return bitField0_ == other.bitField0_ - && (!hasMp() || mp == other.mp) - && (!hasAttackedGroupId() || attackedGroupId == other.attackedGroupId); + && (!hasAttackedGroupId() || attackedGroupId == other.attackedGroupId) + && (!hasMp() || mp == other.mp); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(mp); + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(attackedGroupId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 64); - output.writeUInt32NoTag(attackedGroupId); + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(mp); } } @@ -190,10 +190,10 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(mp); + size += 1 + ProtoSink.computeUInt32SizeNoTag(attackedGroupId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(attackedGroupId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(mp); } return size; } @@ -205,18 +205,18 @@ public SceneCastSkillMpUpdateScNotify mergeFrom(final ProtoSource input) throws int tag = input.readTag(); while (true) { switch (tag) { - case 24: { - // mp - mp = input.readUInt32(); + case 32: { + // attackedGroupId + attackedGroupId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 64) { + if (tag != 48) { break; } } - case 64: { - // attackedGroupId - attackedGroupId = input.readUInt32(); + case 48: { + // mp + mp = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { @@ -241,10 +241,10 @@ public SceneCastSkillMpUpdateScNotify mergeFrom(final ProtoSource input) throws public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.mp, mp); + output.writeUInt32(FieldNames.attackedGroupId, attackedGroupId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.attackedGroupId, attackedGroupId); + output.writeUInt32(FieldNames.mp, mp); } output.endObject(); } @@ -256,10 +256,11 @@ public SceneCastSkillMpUpdateScNotify mergeFrom(final JsonSource input) throws I } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 3491: { - if (input.isAtField(FieldNames.mp)) { + case -1725961965: + case -715836621: { + if (input.isAtField(FieldNames.attackedGroupId)) { if (!input.trySkipNullValue()) { - mp = input.readUInt32(); + attackedGroupId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -267,11 +268,10 @@ public SceneCastSkillMpUpdateScNotify mergeFrom(final JsonSource input) throws I } break; } - case -1725961965: - case -715836621: { - if (input.isAtField(FieldNames.attackedGroupId)) { + case 3491: { + if (input.isAtField(FieldNames.mp)) { if (!input.trySkipNullValue()) { - attackedGroupId = input.readUInt32(); + mp = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -334,9 +334,9 @@ public SceneCastSkillMpUpdateScNotify create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName mp = FieldName.forField("mp"); - static final FieldName attackedGroupId = FieldName.forField("attackedGroupId", "attacked_group_id"); + + static final FieldName mp = FieldName.forField("mp"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/SceneCastSkillScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneCastSkillScRspOuterClass.java index bced885c9..c61a9e9e1 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneCastSkillScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneCastSkillScRspOuterClass.java @@ -19,17 +19,17 @@ public static final class SceneCastSkillScRsp extends ProtoMessageoptional uint32 retcode = 8; + * optional uint32 attacked_group_id = 5; */ - private int retcode; + private int attackedGroupId; /** - * optional uint32 attacked_group_id = 12; + * optional uint32 retcode = 15; */ - private int attackedGroupId; + private int retcode; /** - * optional .SceneBattleInfo battle_info = 4; + * optional .SceneBattleInfo battle_info = 11; */ private final SceneBattleInfoOuterClass.SceneBattleInfo battleInfo = SceneBattleInfoOuterClass.SceneBattleInfo.newInstance(); @@ -44,81 +44,81 @@ public static SceneCastSkillScRsp newInstance() { } /** - * optional uint32 retcode = 8; - * @return whether the retcode field is set + * optional uint32 attacked_group_id = 5; + * @return whether the attackedGroupId field is set */ - public boolean hasRetcode() { + public boolean hasAttackedGroupId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 retcode = 8; + * optional uint32 attacked_group_id = 5; * @return this */ - public SceneCastSkillScRsp clearRetcode() { + public SceneCastSkillScRsp clearAttackedGroupId() { bitField0_ &= ~0x00000001; - retcode = 0; + attackedGroupId = 0; return this; } /** - * optional uint32 retcode = 8; - * @return the retcode + * optional uint32 attacked_group_id = 5; + * @return the attackedGroupId */ - public int getRetcode() { - return retcode; + public int getAttackedGroupId() { + return attackedGroupId; } /** - * optional uint32 retcode = 8; - * @param value the retcode to set + * optional uint32 attacked_group_id = 5; + * @param value the attackedGroupId to set * @return this */ - public SceneCastSkillScRsp setRetcode(final int value) { + public SceneCastSkillScRsp setAttackedGroupId(final int value) { bitField0_ |= 0x00000001; - retcode = value; + attackedGroupId = value; return this; } /** - * optional uint32 attacked_group_id = 12; - * @return whether the attackedGroupId field is set + * optional uint32 retcode = 15; + * @return whether the retcode field is set */ - public boolean hasAttackedGroupId() { + public boolean hasRetcode() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 attacked_group_id = 12; + * optional uint32 retcode = 15; * @return this */ - public SceneCastSkillScRsp clearAttackedGroupId() { + public SceneCastSkillScRsp clearRetcode() { bitField0_ &= ~0x00000002; - attackedGroupId = 0; + retcode = 0; return this; } /** - * optional uint32 attacked_group_id = 12; - * @return the attackedGroupId + * optional uint32 retcode = 15; + * @return the retcode */ - public int getAttackedGroupId() { - return attackedGroupId; + public int getRetcode() { + return retcode; } /** - * optional uint32 attacked_group_id = 12; - * @param value the attackedGroupId to set + * optional uint32 retcode = 15; + * @param value the retcode to set * @return this */ - public SceneCastSkillScRsp setAttackedGroupId(final int value) { + public SceneCastSkillScRsp setRetcode(final int value) { bitField0_ |= 0x00000002; - attackedGroupId = value; + retcode = value; return this; } /** - * optional .SceneBattleInfo battle_info = 4; + * optional .SceneBattleInfo battle_info = 11; * @return whether the battleInfo field is set */ public boolean hasBattleInfo() { @@ -126,7 +126,7 @@ public boolean hasBattleInfo() { } /** - * optional .SceneBattleInfo battle_info = 4; + * optional .SceneBattleInfo battle_info = 11; * @return this */ public SceneCastSkillScRsp clearBattleInfo() { @@ -136,7 +136,7 @@ public SceneCastSkillScRsp clearBattleInfo() { } /** - * optional .SceneBattleInfo battle_info = 4; + * optional .SceneBattleInfo battle_info = 11; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -150,7 +150,7 @@ public SceneBattleInfoOuterClass.SceneBattleInfo getBattleInfo() { } /** - * optional .SceneBattleInfo battle_info = 4; + * optional .SceneBattleInfo battle_info = 11; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -164,7 +164,7 @@ public SceneBattleInfoOuterClass.SceneBattleInfo getMutableBattleInfo() { } /** - * optional .SceneBattleInfo battle_info = 4; + * optional .SceneBattleInfo battle_info = 11; * @param value the battleInfo to set * @return this */ @@ -180,8 +180,8 @@ public SceneCastSkillScRsp copyFrom(final SceneCastSkillScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - retcode = other.retcode; attackedGroupId = other.attackedGroupId; + retcode = other.retcode; battleInfo.copyFrom(other.battleInfo); } return this; @@ -193,12 +193,12 @@ public SceneCastSkillScRsp mergeFrom(final SceneCastSkillScRsp other) { return this; } cachedSize = -1; - if (other.hasRetcode()) { - setRetcode(other.retcode); - } if (other.hasAttackedGroupId()) { setAttackedGroupId(other.attackedGroupId); } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } if (other.hasBattleInfo()) { getMutableBattleInfo().mergeFrom(other.battleInfo); } @@ -212,8 +212,8 @@ public SceneCastSkillScRsp clear() { } cachedSize = -1; bitField0_ = 0; - retcode = 0; attackedGroupId = 0; + retcode = 0; battleInfo.clear(); return this; } @@ -239,23 +239,23 @@ public boolean equals(Object o) { } SceneCastSkillScRsp other = (SceneCastSkillScRsp) o; return bitField0_ == other.bitField0_ - && (!hasRetcode() || retcode == other.retcode) && (!hasAttackedGroupId() || attackedGroupId == other.attackedGroupId) + && (!hasRetcode() || retcode == other.retcode) && (!hasBattleInfo() || battleInfo.equals(other.battleInfo)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 64); - output.writeUInt32NoTag(retcode); + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(attackedGroupId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 96); - output.writeUInt32NoTag(attackedGroupId); + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 34); + output.writeRawByte((byte) 90); output.writeMessageNoTag(battleInfo); } } @@ -264,10 +264,10 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(attackedGroupId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(attackedGroupId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(battleInfo); @@ -282,25 +282,25 @@ public SceneCastSkillScRsp mergeFrom(final ProtoSource input) throws IOException int tag = input.readTag(); while (true) { switch (tag) { - case 64: { - // retcode - retcode = input.readUInt32(); + case 40: { + // attackedGroupId + attackedGroupId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 96) { + if (tag != 120) { break; } } - case 96: { - // attackedGroupId - attackedGroupId = input.readUInt32(); + case 120: { + // retcode + retcode = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 34) { + if (tag != 90) { break; } } - case 34: { + case 90: { // battleInfo input.readMessage(battleInfo); bitField0_ |= 0x00000004; @@ -327,10 +327,10 @@ public SceneCastSkillScRsp mergeFrom(final ProtoSource input) throws IOException public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.attackedGroupId, attackedGroupId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.attackedGroupId, attackedGroupId); + output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000004) != 0) { output.writeMessage(FieldNames.battleInfo, battleInfo); @@ -345,10 +345,11 @@ public SceneCastSkillScRsp mergeFrom(final JsonSource input) throws IOException } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { + case -1725961965: + case -715836621: { + if (input.isAtField(FieldNames.attackedGroupId)) { if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); + attackedGroupId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -356,11 +357,10 @@ public SceneCastSkillScRsp mergeFrom(final JsonSource input) throws IOException } break; } - case -1725961965: - case -715836621: { - if (input.isAtField(FieldNames.attackedGroupId)) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { - attackedGroupId = input.readUInt32(); + retcode = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -433,10 +433,10 @@ public SceneCastSkillScRsp create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName retcode = FieldName.forField("retcode"); - static final FieldName attackedGroupId = FieldName.forField("attackedGroupId", "attacked_group_id"); + static final FieldName retcode = FieldName.forField("retcode"); + static final FieldName battleInfo = FieldName.forField("battleInfo", "battle_info"); } } diff --git a/src/generated/main/emu/lunarcore/proto/SceneEntityGroupInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneEntityGroupInfoOuterClass.java index 193b03eeb..0db8135af 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneEntityGroupInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneEntityGroupInfoOuterClass.java @@ -20,17 +20,17 @@ public static final class SceneEntityGroupInfo extends ProtoMessageoptional uint32 state = 3; + * optional uint32 state = 1; */ private int state; /** - * optional uint32 group_id = 9; + * optional uint32 group_id = 4; */ private int groupId; /** - * repeated .SceneEntityInfo entity_list = 14; + * repeated .SceneEntityInfo entity_list = 5; */ private final RepeatedMessage entityList = RepeatedMessage.newEmptyInstance(SceneEntityInfoOuterClass.SceneEntityInfo.getFactory()); @@ -45,7 +45,7 @@ public static SceneEntityGroupInfo newInstance() { } /** - * optional uint32 state = 3; + * optional uint32 state = 1; * @return whether the state field is set */ public boolean hasState() { @@ -53,7 +53,7 @@ public boolean hasState() { } /** - * optional uint32 state = 3; + * optional uint32 state = 1; * @return this */ public SceneEntityGroupInfo clearState() { @@ -63,7 +63,7 @@ public SceneEntityGroupInfo clearState() { } /** - * optional uint32 state = 3; + * optional uint32 state = 1; * @return the state */ public int getState() { @@ -71,7 +71,7 @@ public int getState() { } /** - * optional uint32 state = 3; + * optional uint32 state = 1; * @param value the state to set * @return this */ @@ -82,7 +82,7 @@ public SceneEntityGroupInfo setState(final int value) { } /** - * optional uint32 group_id = 9; + * optional uint32 group_id = 4; * @return whether the groupId field is set */ public boolean hasGroupId() { @@ -90,7 +90,7 @@ public boolean hasGroupId() { } /** - * optional uint32 group_id = 9; + * optional uint32 group_id = 4; * @return this */ public SceneEntityGroupInfo clearGroupId() { @@ -100,7 +100,7 @@ public SceneEntityGroupInfo clearGroupId() { } /** - * optional uint32 group_id = 9; + * optional uint32 group_id = 4; * @return the groupId */ public int getGroupId() { @@ -108,7 +108,7 @@ public int getGroupId() { } /** - * optional uint32 group_id = 9; + * optional uint32 group_id = 4; * @param value the groupId to set * @return this */ @@ -119,7 +119,7 @@ public SceneEntityGroupInfo setGroupId(final int value) { } /** - * repeated .SceneEntityInfo entity_list = 14; + * repeated .SceneEntityInfo entity_list = 5; * @return whether the entityList field is set */ public boolean hasEntityList() { @@ -127,7 +127,7 @@ public boolean hasEntityList() { } /** - * repeated .SceneEntityInfo entity_list = 14; + * repeated .SceneEntityInfo entity_list = 5; * @return this */ public SceneEntityGroupInfo clearEntityList() { @@ -137,7 +137,7 @@ public SceneEntityGroupInfo clearEntityList() { } /** - * repeated .SceneEntityInfo entity_list = 14; + * repeated .SceneEntityInfo entity_list = 5; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -151,7 +151,7 @@ public RepeatedMessage getEntityList( } /** - * repeated .SceneEntityInfo entity_list = 14; + * repeated .SceneEntityInfo entity_list = 5; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -165,7 +165,7 @@ public RepeatedMessage getMutableEnti } /** - * repeated .SceneEntityInfo entity_list = 14; + * repeated .SceneEntityInfo entity_list = 5; * @param value the entityList to add * @return this */ @@ -177,7 +177,7 @@ public SceneEntityGroupInfo addEntityList( } /** - * repeated .SceneEntityInfo entity_list = 14; + * repeated .SceneEntityInfo entity_list = 5; * @param values the entityList to add * @return this */ @@ -260,16 +260,16 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 8); output.writeUInt32NoTag(state); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 72); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(groupId); } if ((bitField0_ & 0x00000004) != 0) { for (int i = 0; i < entityList.length(); i++) { - output.writeRawByte((byte) 114); + output.writeRawByte((byte) 42); output.writeMessageNoTag(entityList.get(i)); } } @@ -297,25 +297,25 @@ public SceneEntityGroupInfo mergeFrom(final ProtoSource input) throws IOExceptio int tag = input.readTag(); while (true) { switch (tag) { - case 24: { + case 8: { // state state = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 72) { + if (tag != 32) { break; } } - case 72: { + case 32: { // groupId groupId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 114) { + if (tag != 42) { break; } } - case 114: { + case 42: { // entityList tag = input.readRepeatedMessage(entityList, tag); bitField0_ |= 0x00000004; diff --git a/src/generated/main/emu/lunarcore/proto/SceneEntityInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneEntityInfoOuterClass.java index 057a26d7a..8f326f558 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneEntityInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneEntityInfoOuterClass.java @@ -19,49 +19,49 @@ public static final class SceneEntityInfo extends ProtoMessage private static final long serialVersionUID = 0L; /** - * optional uint32 group_id = 1; + * optional uint32 entity_id = 1; */ - private int groupId; + private int entityId; /** - * optional uint32 inst_id = 5; + * optional uint32 group_id = 3; */ - private int instId; + private int groupId; /** - * optional uint32 entity_id = 8; + * optional uint32 inst_id = 15; */ - private int entityId; + private int instId; /** - * optional .MotionInfo motion = 4; + * optional .SceneSummonUnitInfo summon_unit = 4; */ - private final MotionInfoOuterClass.MotionInfo motion = MotionInfoOuterClass.MotionInfo.newInstance(); + private final SceneSummonUnitInfoOuterClass.SceneSummonUnitInfo summonUnit = SceneSummonUnitInfoOuterClass.SceneSummonUnitInfo.newInstance(); /** - * optional .SceneNpcInfo npc = 6; + * optional .ScenePropInfo prop = 5; */ - private final SceneNpcInfoOuterClass.SceneNpcInfo npc = SceneNpcInfoOuterClass.SceneNpcInfo.newInstance(); + private final ScenePropInfoOuterClass.ScenePropInfo prop = ScenePropInfoOuterClass.ScenePropInfo.newInstance(); /** - * optional .SceneNpcMonsterInfo npc_monster = 9; + * optional .SceneActorInfo actor = 9; */ - private final SceneNpcMonsterInfoOuterClass.SceneNpcMonsterInfo npcMonster = SceneNpcMonsterInfoOuterClass.SceneNpcMonsterInfo.newInstance(); + private final SceneActorInfoOuterClass.SceneActorInfo actor = SceneActorInfoOuterClass.SceneActorInfo.newInstance(); /** - * optional .ScenePropInfo prop = 10; + * optional .SceneNpcInfo npc = 12; */ - private final ScenePropInfoOuterClass.ScenePropInfo prop = ScenePropInfoOuterClass.ScenePropInfo.newInstance(); + private final SceneNpcInfoOuterClass.SceneNpcInfo npc = SceneNpcInfoOuterClass.SceneNpcInfo.newInstance(); /** - * optional .SceneActorInfo actor = 13; + * optional .MotionInfo motion = 13; */ - private final SceneActorInfoOuterClass.SceneActorInfo actor = SceneActorInfoOuterClass.SceneActorInfo.newInstance(); + private final MotionInfoOuterClass.MotionInfo motion = MotionInfoOuterClass.MotionInfo.newInstance(); /** - * optional .SceneSummonUnitInfo summon_unit = 15; + * optional .SceneNpcMonsterInfo npc_monster = 14; */ - private final SceneSummonUnitInfoOuterClass.SceneSummonUnitInfo summonUnit = SceneSummonUnitInfoOuterClass.SceneSummonUnitInfo.newInstance(); + private final SceneNpcMonsterInfoOuterClass.SceneNpcMonsterInfo npcMonster = SceneNpcMonsterInfoOuterClass.SceneNpcMonsterInfo.newInstance(); private SceneEntityInfo() { } @@ -73,86 +73,63 @@ public static SceneEntityInfo newInstance() { return new SceneEntityInfo(); } - public boolean hasEntityCase() { - return (((bitField0_ & 0x0000001f)) != 0); + /** + * optional uint32 entity_id = 1; + * @return whether the entityId field is set + */ + public boolean hasEntityId() { + return (bitField0_ & 0x00000001) != 0; } - public SceneEntityInfo clearEntityCase() { - if (hasEntityCase()) { - clearNpc(); - clearNpcMonster(); - clearProp(); - clearActor(); - clearSummonUnit(); - } + /** + * optional uint32 entity_id = 1; + * @return this + */ + public SceneEntityInfo clearEntityId() { + bitField0_ &= ~0x00000001; + entityId = 0; return this; } - private void clearEntityCaseOtherNpc() { - if ((((bitField0_ & 0x0000001e)) != 0)) { - clearNpcMonster(); - clearProp(); - clearActor(); - clearSummonUnit(); - } - } - - private void clearEntityCaseOtherNpcMonster() { - if ((((bitField0_ & 0x0000001d)) != 0)) { - clearNpc(); - clearProp(); - clearActor(); - clearSummonUnit(); - } - } - - private void clearEntityCaseOtherProp() { - if ((((bitField0_ & 0x0000001b)) != 0)) { - clearNpc(); - clearNpcMonster(); - clearActor(); - clearSummonUnit(); - } - } - - private void clearEntityCaseOtherActor() { - if ((((bitField0_ & 0x00000017)) != 0)) { - clearNpc(); - clearNpcMonster(); - clearProp(); - clearSummonUnit(); - } + /** + * optional uint32 entity_id = 1; + * @return the entityId + */ + public int getEntityId() { + return entityId; } - private void clearEntityCaseOtherSummonUnit() { - if ((((bitField0_ & 0x0000000f)) != 0)) { - clearNpc(); - clearNpcMonster(); - clearProp(); - clearActor(); - } + /** + * optional uint32 entity_id = 1; + * @param value the entityId to set + * @return this + */ + public SceneEntityInfo setEntityId(final int value) { + bitField0_ |= 0x00000001; + entityId = value; + return this; } /** - * optional uint32 group_id = 1; + * optional uint32 group_id = 3; * @return whether the groupId field is set */ public boolean hasGroupId() { - return (bitField0_ & 0x00000020) != 0; + return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 group_id = 1; + * optional uint32 group_id = 3; * @return this */ public SceneEntityInfo clearGroupId() { - bitField0_ &= ~0x00000020; + bitField0_ &= ~0x00000002; groupId = 0; return this; } /** - * optional uint32 group_id = 1; + * optional uint32 group_id = 3; * @return the groupId */ public int getGroupId() { @@ -160,36 +137,36 @@ public int getGroupId() { } /** - * optional uint32 group_id = 1; + * optional uint32 group_id = 3; * @param value the groupId to set * @return this */ public SceneEntityInfo setGroupId(final int value) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000002; groupId = value; return this; } /** - * optional uint32 inst_id = 5; + * optional uint32 inst_id = 15; * @return whether the instId field is set */ public boolean hasInstId() { - return (bitField0_ & 0x00000040) != 0; + return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 inst_id = 5; + * optional uint32 inst_id = 15; * @return this */ public SceneEntityInfo clearInstId() { - bitField0_ &= ~0x00000040; + bitField0_ &= ~0x00000004; instId = 0; return this; } /** - * optional uint32 inst_id = 5; + * optional uint32 inst_id = 15; * @return the instId */ public int getInstId() { @@ -197,87 +174,108 @@ public int getInstId() { } /** - * optional uint32 inst_id = 5; + * optional uint32 inst_id = 15; * @param value the instId to set * @return this */ public SceneEntityInfo setInstId(final int value) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000004; instId = value; return this; } /** - * optional uint32 entity_id = 8; - * @return whether the entityId field is set + * optional .SceneSummonUnitInfo summon_unit = 4; + * @return whether the summonUnit field is set */ - public boolean hasEntityId() { - return (bitField0_ & 0x00000080) != 0; + public boolean hasSummonUnit() { + return (bitField0_ & 0x00000008) != 0; } /** - * optional uint32 entity_id = 8; + * optional .SceneSummonUnitInfo summon_unit = 4; * @return this */ - public SceneEntityInfo clearEntityId() { - bitField0_ &= ~0x00000080; - entityId = 0; + public SceneEntityInfo clearSummonUnit() { + bitField0_ &= ~0x00000008; + summonUnit.clear(); return this; } /** - * optional uint32 entity_id = 8; - * @return the entityId + * optional .SceneSummonUnitInfo summon_unit = 4; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableSummonUnit()} if you want to modify it. + * + * @return internal storage object for reading */ - public int getEntityId() { - return entityId; + public SceneSummonUnitInfoOuterClass.SceneSummonUnitInfo getSummonUnit() { + return summonUnit; } /** - * optional uint32 entity_id = 8; - * @param value the entityId to set + * optional .SceneSummonUnitInfo summon_unit = 4; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public SceneSummonUnitInfoOuterClass.SceneSummonUnitInfo getMutableSummonUnit() { + bitField0_ |= 0x00000008; + return summonUnit; + } + + /** + * optional .SceneSummonUnitInfo summon_unit = 4; + * @param value the summonUnit to set * @return this */ - public SceneEntityInfo setEntityId(final int value) { - bitField0_ |= 0x00000080; - entityId = value; + public SceneEntityInfo setSummonUnit( + final SceneSummonUnitInfoOuterClass.SceneSummonUnitInfo value) { + bitField0_ |= 0x00000008; + summonUnit.copyFrom(value); return this; } /** - * optional .MotionInfo motion = 4; - * @return whether the motion field is set + * optional .ScenePropInfo prop = 5; + * @return whether the prop field is set */ - public boolean hasMotion() { - return (bitField0_ & 0x00000100) != 0; + public boolean hasProp() { + return (bitField0_ & 0x00000010) != 0; } /** - * optional .MotionInfo motion = 4; + * optional .ScenePropInfo prop = 5; * @return this */ - public SceneEntityInfo clearMotion() { - bitField0_ &= ~0x00000100; - motion.clear(); + public SceneEntityInfo clearProp() { + bitField0_ &= ~0x00000010; + prop.clear(); return this; } /** - * optional .MotionInfo motion = 4; + * optional .ScenePropInfo prop = 5; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableMotion()} if you want to modify it. + * Use {@link #getMutableProp()} if you want to modify it. * * @return internal storage object for reading */ - public MotionInfoOuterClass.MotionInfo getMotion() { - return motion; + public ScenePropInfoOuterClass.ScenePropInfo getProp() { + return prop; } /** - * optional .MotionInfo motion = 4; + * optional .ScenePropInfo prop = 5; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -285,56 +283,56 @@ public MotionInfoOuterClass.MotionInfo getMotion() { * * @return internal storage object for modifications */ - public MotionInfoOuterClass.MotionInfo getMutableMotion() { - bitField0_ |= 0x00000100; - return motion; + public ScenePropInfoOuterClass.ScenePropInfo getMutableProp() { + bitField0_ |= 0x00000010; + return prop; } /** - * optional .MotionInfo motion = 4; - * @param value the motion to set + * optional .ScenePropInfo prop = 5; + * @param value the prop to set * @return this */ - public SceneEntityInfo setMotion(final MotionInfoOuterClass.MotionInfo value) { - bitField0_ |= 0x00000100; - motion.copyFrom(value); + public SceneEntityInfo setProp(final ScenePropInfoOuterClass.ScenePropInfo value) { + bitField0_ |= 0x00000010; + prop.copyFrom(value); return this; } /** - * optional .SceneNpcInfo npc = 6; - * @return whether the npc field is set + * optional .SceneActorInfo actor = 9; + * @return whether the actor field is set */ - public boolean hasNpc() { - return (bitField0_ & 0x00000001) != 0; + public boolean hasActor() { + return (bitField0_ & 0x00000020) != 0; } /** - * optional .SceneNpcInfo npc = 6; + * optional .SceneActorInfo actor = 9; * @return this */ - public SceneEntityInfo clearNpc() { - bitField0_ &= ~0x00000001; - npc.clear(); + public SceneEntityInfo clearActor() { + bitField0_ &= ~0x00000020; + actor.clear(); return this; } /** - * optional .SceneNpcInfo npc = 6; + * optional .SceneActorInfo actor = 9; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableNpc()} if you want to modify it. + * Use {@link #getMutableActor()} if you want to modify it. * * @return internal storage object for reading */ - public SceneNpcInfoOuterClass.SceneNpcInfo getNpc() { - return npc; + public SceneActorInfoOuterClass.SceneActorInfo getActor() { + return actor; } /** - * optional .SceneNpcInfo npc = 6; + * optional .SceneActorInfo actor = 9; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -342,58 +340,56 @@ public SceneNpcInfoOuterClass.SceneNpcInfo getNpc() { * * @return internal storage object for modifications */ - public SceneNpcInfoOuterClass.SceneNpcInfo getMutableNpc() { - clearEntityCaseOtherNpc(); - bitField0_ |= 0x00000001; - return npc; + public SceneActorInfoOuterClass.SceneActorInfo getMutableActor() { + bitField0_ |= 0x00000020; + return actor; } /** - * optional .SceneNpcInfo npc = 6; - * @param value the npc to set + * optional .SceneActorInfo actor = 9; + * @param value the actor to set * @return this */ - public SceneEntityInfo setNpc(final SceneNpcInfoOuterClass.SceneNpcInfo value) { - clearEntityCaseOtherNpc(); - bitField0_ |= 0x00000001; - npc.copyFrom(value); + public SceneEntityInfo setActor(final SceneActorInfoOuterClass.SceneActorInfo value) { + bitField0_ |= 0x00000020; + actor.copyFrom(value); return this; } /** - * optional .SceneNpcMonsterInfo npc_monster = 9; - * @return whether the npcMonster field is set + * optional .SceneNpcInfo npc = 12; + * @return whether the npc field is set */ - public boolean hasNpcMonster() { - return (bitField0_ & 0x00000002) != 0; + public boolean hasNpc() { + return (bitField0_ & 0x00000040) != 0; } /** - * optional .SceneNpcMonsterInfo npc_monster = 9; + * optional .SceneNpcInfo npc = 12; * @return this */ - public SceneEntityInfo clearNpcMonster() { - bitField0_ &= ~0x00000002; - npcMonster.clear(); + public SceneEntityInfo clearNpc() { + bitField0_ &= ~0x00000040; + npc.clear(); return this; } /** - * optional .SceneNpcMonsterInfo npc_monster = 9; + * optional .SceneNpcInfo npc = 12; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableNpcMonster()} if you want to modify it. + * Use {@link #getMutableNpc()} if you want to modify it. * * @return internal storage object for reading */ - public SceneNpcMonsterInfoOuterClass.SceneNpcMonsterInfo getNpcMonster() { - return npcMonster; + public SceneNpcInfoOuterClass.SceneNpcInfo getNpc() { + return npc; } /** - * optional .SceneNpcMonsterInfo npc_monster = 9; + * optional .SceneNpcInfo npc = 12; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -401,59 +397,56 @@ public SceneNpcMonsterInfoOuterClass.SceneNpcMonsterInfo getNpcMonster() { * * @return internal storage object for modifications */ - public SceneNpcMonsterInfoOuterClass.SceneNpcMonsterInfo getMutableNpcMonster() { - clearEntityCaseOtherNpcMonster(); - bitField0_ |= 0x00000002; - return npcMonster; + public SceneNpcInfoOuterClass.SceneNpcInfo getMutableNpc() { + bitField0_ |= 0x00000040; + return npc; } /** - * optional .SceneNpcMonsterInfo npc_monster = 9; - * @param value the npcMonster to set + * optional .SceneNpcInfo npc = 12; + * @param value the npc to set * @return this */ - public SceneEntityInfo setNpcMonster( - final SceneNpcMonsterInfoOuterClass.SceneNpcMonsterInfo value) { - clearEntityCaseOtherNpcMonster(); - bitField0_ |= 0x00000002; - npcMonster.copyFrom(value); + public SceneEntityInfo setNpc(final SceneNpcInfoOuterClass.SceneNpcInfo value) { + bitField0_ |= 0x00000040; + npc.copyFrom(value); return this; } /** - * optional .ScenePropInfo prop = 10; - * @return whether the prop field is set + * optional .MotionInfo motion = 13; + * @return whether the motion field is set */ - public boolean hasProp() { - return (bitField0_ & 0x00000004) != 0; + public boolean hasMotion() { + return (bitField0_ & 0x00000080) != 0; } /** - * optional .ScenePropInfo prop = 10; + * optional .MotionInfo motion = 13; * @return this */ - public SceneEntityInfo clearProp() { - bitField0_ &= ~0x00000004; - prop.clear(); + public SceneEntityInfo clearMotion() { + bitField0_ &= ~0x00000080; + motion.clear(); return this; } /** - * optional .ScenePropInfo prop = 10; + * optional .MotionInfo motion = 13; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableProp()} if you want to modify it. + * Use {@link #getMutableMotion()} if you want to modify it. * * @return internal storage object for reading */ - public ScenePropInfoOuterClass.ScenePropInfo getProp() { - return prop; + public MotionInfoOuterClass.MotionInfo getMotion() { + return motion; } /** - * optional .ScenePropInfo prop = 10; + * optional .MotionInfo motion = 13; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -461,117 +454,56 @@ public ScenePropInfoOuterClass.ScenePropInfo getProp() { * * @return internal storage object for modifications */ - public ScenePropInfoOuterClass.ScenePropInfo getMutableProp() { - clearEntityCaseOtherProp(); - bitField0_ |= 0x00000004; - return prop; + public MotionInfoOuterClass.MotionInfo getMutableMotion() { + bitField0_ |= 0x00000080; + return motion; } /** - * optional .ScenePropInfo prop = 10; - * @param value the prop to set + * optional .MotionInfo motion = 13; + * @param value the motion to set * @return this */ - public SceneEntityInfo setProp(final ScenePropInfoOuterClass.ScenePropInfo value) { - clearEntityCaseOtherProp(); - bitField0_ |= 0x00000004; - prop.copyFrom(value); + public SceneEntityInfo setMotion(final MotionInfoOuterClass.MotionInfo value) { + bitField0_ |= 0x00000080; + motion.copyFrom(value); return this; } /** - * optional .SceneActorInfo actor = 13; - * @return whether the actor field is set + * optional .SceneNpcMonsterInfo npc_monster = 14; + * @return whether the npcMonster field is set */ - public boolean hasActor() { - return (bitField0_ & 0x00000008) != 0; + public boolean hasNpcMonster() { + return (bitField0_ & 0x00000100) != 0; } /** - * optional .SceneActorInfo actor = 13; + * optional .SceneNpcMonsterInfo npc_monster = 14; * @return this */ - public SceneEntityInfo clearActor() { - bitField0_ &= ~0x00000008; - actor.clear(); + public SceneEntityInfo clearNpcMonster() { + bitField0_ &= ~0x00000100; + npcMonster.clear(); return this; } /** - * optional .SceneActorInfo actor = 13; + * optional .SceneNpcMonsterInfo npc_monster = 14; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableActor()} if you want to modify it. + * Use {@link #getMutableNpcMonster()} if you want to modify it. * * @return internal storage object for reading */ - public SceneActorInfoOuterClass.SceneActorInfo getActor() { - return actor; - } - - /** - * optional .SceneActorInfo actor = 13; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public SceneActorInfoOuterClass.SceneActorInfo getMutableActor() { - clearEntityCaseOtherActor(); - bitField0_ |= 0x00000008; - return actor; - } - - /** - * optional .SceneActorInfo actor = 13; - * @param value the actor to set - * @return this - */ - public SceneEntityInfo setActor(final SceneActorInfoOuterClass.SceneActorInfo value) { - clearEntityCaseOtherActor(); - bitField0_ |= 0x00000008; - actor.copyFrom(value); - return this; - } - - /** - * optional .SceneSummonUnitInfo summon_unit = 15; - * @return whether the summonUnit field is set - */ - public boolean hasSummonUnit() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - * optional .SceneSummonUnitInfo summon_unit = 15; - * @return this - */ - public SceneEntityInfo clearSummonUnit() { - bitField0_ &= ~0x00000010; - summonUnit.clear(); - return this; - } - - /** - * optional .SceneSummonUnitInfo summon_unit = 15; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableSummonUnit()} if you want to modify it. - * - * @return internal storage object for reading - */ - public SceneSummonUnitInfoOuterClass.SceneSummonUnitInfo getSummonUnit() { - return summonUnit; + public SceneNpcMonsterInfoOuterClass.SceneNpcMonsterInfo getNpcMonster() { + return npcMonster; } /** - * optional .SceneSummonUnitInfo summon_unit = 15; + * optional .SceneNpcMonsterInfo npc_monster = 14; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -579,22 +511,20 @@ public SceneSummonUnitInfoOuterClass.SceneSummonUnitInfo getSummonUnit() { * * @return internal storage object for modifications */ - public SceneSummonUnitInfoOuterClass.SceneSummonUnitInfo getMutableSummonUnit() { - clearEntityCaseOtherSummonUnit(); - bitField0_ |= 0x00000010; - return summonUnit; + public SceneNpcMonsterInfoOuterClass.SceneNpcMonsterInfo getMutableNpcMonster() { + bitField0_ |= 0x00000100; + return npcMonster; } /** - * optional .SceneSummonUnitInfo summon_unit = 15; - * @param value the summonUnit to set + * optional .SceneNpcMonsterInfo npc_monster = 14; + * @param value the npcMonster to set * @return this */ - public SceneEntityInfo setSummonUnit( - final SceneSummonUnitInfoOuterClass.SceneSummonUnitInfo value) { - clearEntityCaseOtherSummonUnit(); - bitField0_ |= 0x00000010; - summonUnit.copyFrom(value); + public SceneEntityInfo setNpcMonster( + final SceneNpcMonsterInfoOuterClass.SceneNpcMonsterInfo value) { + bitField0_ |= 0x00000100; + npcMonster.copyFrom(value); return this; } @@ -603,15 +533,15 @@ public SceneEntityInfo copyFrom(final SceneEntityInfo other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; + entityId = other.entityId; groupId = other.groupId; instId = other.instId; - entityId = other.entityId; - motion.copyFrom(other.motion); - npc.copyFrom(other.npc); - npcMonster.copyFrom(other.npcMonster); + summonUnit.copyFrom(other.summonUnit); prop.copyFrom(other.prop); actor.copyFrom(other.actor); - summonUnit.copyFrom(other.summonUnit); + npc.copyFrom(other.npc); + motion.copyFrom(other.motion); + npcMonster.copyFrom(other.npcMonster); } return this; } @@ -622,23 +552,17 @@ public SceneEntityInfo mergeFrom(final SceneEntityInfo other) { return this; } cachedSize = -1; + if (other.hasEntityId()) { + setEntityId(other.entityId); + } if (other.hasGroupId()) { setGroupId(other.groupId); } if (other.hasInstId()) { setInstId(other.instId); } - if (other.hasEntityId()) { - setEntityId(other.entityId); - } - if (other.hasMotion()) { - getMutableMotion().mergeFrom(other.motion); - } - if (other.hasNpc()) { - getMutableNpc().mergeFrom(other.npc); - } - if (other.hasNpcMonster()) { - getMutableNpcMonster().mergeFrom(other.npcMonster); + if (other.hasSummonUnit()) { + getMutableSummonUnit().mergeFrom(other.summonUnit); } if (other.hasProp()) { getMutableProp().mergeFrom(other.prop); @@ -646,8 +570,14 @@ public SceneEntityInfo mergeFrom(final SceneEntityInfo other) { if (other.hasActor()) { getMutableActor().mergeFrom(other.actor); } - if (other.hasSummonUnit()) { - getMutableSummonUnit().mergeFrom(other.summonUnit); + if (other.hasNpc()) { + getMutableNpc().mergeFrom(other.npc); + } + if (other.hasMotion()) { + getMutableMotion().mergeFrom(other.motion); + } + if (other.hasNpcMonster()) { + getMutableNpcMonster().mergeFrom(other.npcMonster); } return this; } @@ -659,15 +589,15 @@ public SceneEntityInfo clear() { } cachedSize = -1; bitField0_ = 0; + entityId = 0; groupId = 0; instId = 0; - entityId = 0; - motion.clear(); - npc.clear(); - npcMonster.clear(); + summonUnit.clear(); prop.clear(); actor.clear(); - summonUnit.clear(); + npc.clear(); + motion.clear(); + npcMonster.clear(); return this; } @@ -678,12 +608,12 @@ public SceneEntityInfo clearQuick() { } cachedSize = -1; bitField0_ = 0; - motion.clearQuick(); - npc.clearQuick(); - npcMonster.clearQuick(); + summonUnit.clearQuick(); prop.clearQuick(); actor.clearQuick(); - summonUnit.clearQuick(); + npc.clearQuick(); + motion.clearQuick(); + npcMonster.clearQuick(); return this; } @@ -697,86 +627,86 @@ public boolean equals(Object o) { } SceneEntityInfo other = (SceneEntityInfo) o; return bitField0_ == other.bitField0_ + && (!hasEntityId() || entityId == other.entityId) && (!hasGroupId() || groupId == other.groupId) && (!hasInstId() || instId == other.instId) - && (!hasEntityId() || entityId == other.entityId) - && (!hasMotion() || motion.equals(other.motion)) - && (!hasNpc() || npc.equals(other.npc)) - && (!hasNpcMonster() || npcMonster.equals(other.npcMonster)) + && (!hasSummonUnit() || summonUnit.equals(other.summonUnit)) && (!hasProp() || prop.equals(other.prop)) && (!hasActor() || actor.equals(other.actor)) - && (!hasSummonUnit() || summonUnit.equals(other.summonUnit)); + && (!hasNpc() || npc.equals(other.npc)) + && (!hasMotion() || motion.equals(other.motion)) + && (!hasNpcMonster() || npcMonster.equals(other.npcMonster)); } @Override public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000020) != 0) { + if ((bitField0_ & 0x00000001) != 0) { output.writeRawByte((byte) 8); - output.writeUInt32NoTag(groupId); - } - if ((bitField0_ & 0x00000040) != 0) { - output.writeRawByte((byte) 40); - output.writeUInt32NoTag(instId); - } - if ((bitField0_ & 0x00000080) != 0) { - output.writeRawByte((byte) 64); output.writeUInt32NoTag(entityId); } - if ((bitField0_ & 0x00000100) != 0) { - output.writeRawByte((byte) 34); - output.writeMessageNoTag(motion); - } - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 50); - output.writeMessageNoTag(npc); - } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 74); - output.writeMessageNoTag(npcMonster); + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(groupId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 82); - output.writeMessageNoTag(prop); + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(instId); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 106); - output.writeMessageNoTag(actor); + output.writeRawByte((byte) 34); + output.writeMessageNoTag(summonUnit); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 122); - output.writeMessageNoTag(summonUnit); + output.writeRawByte((byte) 42); + output.writeMessageNoTag(prop); } - } - - @Override - protected int computeSerializedSize() { - int size = 0; if ((bitField0_ & 0x00000020) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); + output.writeRawByte((byte) 74); + output.writeMessageNoTag(actor); } if ((bitField0_ & 0x00000040) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(instId); + output.writeRawByte((byte) 98); + output.writeMessageNoTag(npc); } if ((bitField0_ & 0x00000080) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(entityId); + output.writeRawByte((byte) 106); + output.writeMessageNoTag(motion); } if ((bitField0_ & 0x00000100) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(motion); + output.writeRawByte((byte) 114); + output.writeMessageNoTag(npcMonster); } + } + + @Override + protected int computeSerializedSize() { + int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(npc); + size += 1 + ProtoSink.computeUInt32SizeNoTag(entityId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(npcMonster); + size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(prop); + size += 1 + ProtoSink.computeUInt32SizeNoTag(instId); } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(actor); + size += 1 + ProtoSink.computeMessageSizeNoTag(summonUnit); } if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(summonUnit); + size += 1 + ProtoSink.computeMessageSizeNoTag(prop); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(actor); + } + if ((bitField0_ & 0x00000040) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(npc); + } + if ((bitField0_ & 0x00000080) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(motion); + } + if ((bitField0_ & 0x00000100) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(npcMonster); } return size; } @@ -789,86 +719,81 @@ public SceneEntityInfo mergeFrom(final ProtoSource input) throws IOException { while (true) { switch (tag) { case 8: { - // groupId - groupId = input.readUInt32(); - bitField0_ |= 0x00000020; + // entityId + entityId = input.readUInt32(); + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 40) { + if (tag != 24) { break; } } - case 40: { - // instId - instId = input.readUInt32(); - bitField0_ |= 0x00000040; + case 24: { + // groupId + groupId = input.readUInt32(); + bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 64) { + if (tag != 120) { break; } } - case 64: { - // entityId - entityId = input.readUInt32(); - bitField0_ |= 0x00000080; + case 120: { + // instId + instId = input.readUInt32(); + bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 34) { break; } } case 34: { - // motion - input.readMessage(motion); - bitField0_ |= 0x00000100; + // summonUnit + input.readMessage(summonUnit); + bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 50) { + if (tag != 42) { break; } } - case 50: { - // npc - clearEntityCaseOtherNpc(); - input.readMessage(npc); - bitField0_ |= 0x00000001; + case 42: { + // prop + input.readMessage(prop); + bitField0_ |= 0x00000010; tag = input.readTag(); if (tag != 74) { break; } } case 74: { - // npcMonster - clearEntityCaseOtherNpcMonster(); - input.readMessage(npcMonster); - bitField0_ |= 0x00000002; + // actor + input.readMessage(actor); + bitField0_ |= 0x00000020; tag = input.readTag(); - if (tag != 82) { + if (tag != 98) { break; } } - case 82: { - // prop - clearEntityCaseOtherProp(); - input.readMessage(prop); - bitField0_ |= 0x00000004; + case 98: { + // npc + input.readMessage(npc); + bitField0_ |= 0x00000040; tag = input.readTag(); if (tag != 106) { break; } } case 106: { - // actor - clearEntityCaseOtherActor(); - input.readMessage(actor); - bitField0_ |= 0x00000008; + // motion + input.readMessage(motion); + bitField0_ |= 0x00000080; tag = input.readTag(); - if (tag != 122) { + if (tag != 114) { break; } } - case 122: { - // summonUnit - clearEntityCaseOtherSummonUnit(); - input.readMessage(summonUnit); - bitField0_ |= 0x00000010; + case 114: { + // npcMonster + input.readMessage(npcMonster); + bitField0_ |= 0x00000100; tag = input.readTag(); if (tag != 0) { break; @@ -891,32 +816,32 @@ public SceneEntityInfo mergeFrom(final ProtoSource input) throws IOException { @Override public void writeTo(final JsonSink output) throws IOException { output.beginObject(); - if ((bitField0_ & 0x00000020) != 0) { - output.writeUInt32(FieldNames.groupId, groupId); - } - if ((bitField0_ & 0x00000040) != 0) { - output.writeUInt32(FieldNames.instId, instId); - } - if ((bitField0_ & 0x00000080) != 0) { - output.writeUInt32(FieldNames.entityId, entityId); - } - if ((bitField0_ & 0x00000100) != 0) { - output.writeMessage(FieldNames.motion, motion); - } if ((bitField0_ & 0x00000001) != 0) { - output.writeMessage(FieldNames.npc, npc); + output.writeUInt32(FieldNames.entityId, entityId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeMessage(FieldNames.npcMonster, npcMonster); + output.writeUInt32(FieldNames.groupId, groupId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeMessage(FieldNames.prop, prop); + output.writeUInt32(FieldNames.instId, instId); } if ((bitField0_ & 0x00000008) != 0) { - output.writeMessage(FieldNames.actor, actor); + output.writeMessage(FieldNames.summonUnit, summonUnit); } if ((bitField0_ & 0x00000010) != 0) { - output.writeMessage(FieldNames.summonUnit, summonUnit); + output.writeMessage(FieldNames.prop, prop); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeMessage(FieldNames.actor, actor); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeMessage(FieldNames.npc, npc); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeMessage(FieldNames.motion, motion); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeMessage(FieldNames.npcMonster, npcMonster); } output.endObject(); } @@ -928,12 +853,24 @@ public SceneEntityInfo mergeFrom(final JsonSource input) throws IOException { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { + case -2102099874: + case -740565257: { + if (input.isAtField(FieldNames.entityId)) { + if (!input.trySkipNullValue()) { + entityId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } case 293428218: case 506361563: { if (input.isAtField(FieldNames.groupId)) { if (!input.trySkipNullValue()) { groupId = input.readUInt32(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000002; } } else { input.skipUnknownField(); @@ -945,92 +882,75 @@ public SceneEntityInfo mergeFrom(final JsonSource input) throws IOException { if (input.isAtField(FieldNames.instId)) { if (!input.trySkipNullValue()) { instId = input.readUInt32(); - bitField0_ |= 0x00000040; - } - } else { - input.skipUnknownField(); - } - break; - } - case -2102099874: - case -740565257: { - if (input.isAtField(FieldNames.entityId)) { - if (!input.trySkipNullValue()) { - entityId = input.readUInt32(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000004; } } else { input.skipUnknownField(); } break; } - case -1068318794: { - if (input.isAtField(FieldNames.motion)) { + case 80492037: + case -1790265822: { + if (input.isAtField(FieldNames.summonUnit)) { if (!input.trySkipNullValue()) { - input.readMessage(motion); - bitField0_ |= 0x00000100; + input.readMessage(summonUnit); + bitField0_ |= 0x00000008; } } else { input.skipUnknownField(); } break; } - case 109281: { - if (input.isAtField(FieldNames.npc)) { + case 3449699: { + if (input.isAtField(FieldNames.prop)) { if (!input.trySkipNullValue()) { - clearEntityCaseOtherNpc(); - input.readMessage(npc); - bitField0_ |= 0x00000001; + input.readMessage(prop); + bitField0_ |= 0x00000010; } } else { input.skipUnknownField(); } break; } - case -1367251527: - case 119679100: { - if (input.isAtField(FieldNames.npcMonster)) { + case 92645877: { + if (input.isAtField(FieldNames.actor)) { if (!input.trySkipNullValue()) { - clearEntityCaseOtherNpcMonster(); - input.readMessage(npcMonster); - bitField0_ |= 0x00000002; + input.readMessage(actor); + bitField0_ |= 0x00000020; } } else { input.skipUnknownField(); } break; } - case 3449699: { - if (input.isAtField(FieldNames.prop)) { + case 109281: { + if (input.isAtField(FieldNames.npc)) { if (!input.trySkipNullValue()) { - clearEntityCaseOtherProp(); - input.readMessage(prop); - bitField0_ |= 0x00000004; + input.readMessage(npc); + bitField0_ |= 0x00000040; } } else { input.skipUnknownField(); } break; } - case 92645877: { - if (input.isAtField(FieldNames.actor)) { + case -1068318794: { + if (input.isAtField(FieldNames.motion)) { if (!input.trySkipNullValue()) { - clearEntityCaseOtherActor(); - input.readMessage(actor); - bitField0_ |= 0x00000008; + input.readMessage(motion); + bitField0_ |= 0x00000080; } } else { input.skipUnknownField(); } break; } - case 80492037: - case -1790265822: { - if (input.isAtField(FieldNames.summonUnit)) { + case -1367251527: + case 119679100: { + if (input.isAtField(FieldNames.npcMonster)) { if (!input.trySkipNullValue()) { - clearEntityCaseOtherSummonUnit(); - input.readMessage(summonUnit); - bitField0_ |= 0x00000010; + input.readMessage(npcMonster); + bitField0_ |= 0x00000100; } } else { input.skipUnknownField(); @@ -1090,23 +1010,23 @@ public SceneEntityInfo create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName groupId = FieldName.forField("groupId", "group_id"); - - static final FieldName instId = FieldName.forField("instId", "inst_id"); - static final FieldName entityId = FieldName.forField("entityId", "entity_id"); - static final FieldName motion = FieldName.forField("motion"); + static final FieldName groupId = FieldName.forField("groupId", "group_id"); - static final FieldName npc = FieldName.forField("npc"); + static final FieldName instId = FieldName.forField("instId", "inst_id"); - static final FieldName npcMonster = FieldName.forField("npcMonster", "npc_monster"); + static final FieldName summonUnit = FieldName.forField("summonUnit", "summon_unit"); static final FieldName prop = FieldName.forField("prop"); static final FieldName actor = FieldName.forField("actor"); - static final FieldName summonUnit = FieldName.forField("summonUnit", "summon_unit"); + static final FieldName npc = FieldName.forField("npc"); + + static final FieldName motion = FieldName.forField("motion"); + + static final FieldName npcMonster = FieldName.forField("npcMonster", "npc_monster"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/SceneEntityMoveCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneEntityMoveCsReqOuterClass.java index 569b492c8..450134e7f 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneEntityMoveCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneEntityMoveCsReqOuterClass.java @@ -20,12 +20,12 @@ public static final class SceneEntityMoveCsReq extends ProtoMessageoptional uint32 entry_id = 4; + * optional uint32 entry_id = 11; */ private int entryId; /** - * repeated .EntityMotion entity_motion_list = 14; + * repeated .EntityMotion entity_motion_list = 8; */ private final RepeatedMessage entityMotionList = RepeatedMessage.newEmptyInstance(EntityMotionOuterClass.EntityMotion.getFactory()); @@ -40,7 +40,7 @@ public static SceneEntityMoveCsReq newInstance() { } /** - * optional uint32 entry_id = 4; + * optional uint32 entry_id = 11; * @return whether the entryId field is set */ public boolean hasEntryId() { @@ -48,7 +48,7 @@ public boolean hasEntryId() { } /** - * optional uint32 entry_id = 4; + * optional uint32 entry_id = 11; * @return this */ public SceneEntityMoveCsReq clearEntryId() { @@ -58,7 +58,7 @@ public SceneEntityMoveCsReq clearEntryId() { } /** - * optional uint32 entry_id = 4; + * optional uint32 entry_id = 11; * @return the entryId */ public int getEntryId() { @@ -66,7 +66,7 @@ public int getEntryId() { } /** - * optional uint32 entry_id = 4; + * optional uint32 entry_id = 11; * @param value the entryId to set * @return this */ @@ -77,7 +77,7 @@ public SceneEntityMoveCsReq setEntryId(final int value) { } /** - * repeated .EntityMotion entity_motion_list = 14; + * repeated .EntityMotion entity_motion_list = 8; * @return whether the entityMotionList field is set */ public boolean hasEntityMotionList() { @@ -85,7 +85,7 @@ public boolean hasEntityMotionList() { } /** - * repeated .EntityMotion entity_motion_list = 14; + * repeated .EntityMotion entity_motion_list = 8; * @return this */ public SceneEntityMoveCsReq clearEntityMotionList() { @@ -95,7 +95,7 @@ public SceneEntityMoveCsReq clearEntityMotionList() { } /** - * repeated .EntityMotion entity_motion_list = 14; + * repeated .EntityMotion entity_motion_list = 8; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -109,7 +109,7 @@ public RepeatedMessage getEntityMotionList( } /** - * repeated .EntityMotion entity_motion_list = 14; + * repeated .EntityMotion entity_motion_list = 8; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -123,7 +123,7 @@ public RepeatedMessage getMutableEntityMoti } /** - * repeated .EntityMotion entity_motion_list = 14; + * repeated .EntityMotion entity_motion_list = 8; * @param value the entityMotionList to add * @return this */ @@ -135,7 +135,7 @@ public SceneEntityMoveCsReq addEntityMotionList( } /** - * repeated .EntityMotion entity_motion_list = 14; + * repeated .EntityMotion entity_motion_list = 8; * @param values the entityMotionList to add * @return this */ @@ -212,12 +212,12 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 32); + output.writeRawByte((byte) 88); output.writeUInt32NoTag(entryId); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < entityMotionList.length(); i++) { - output.writeRawByte((byte) 114); + output.writeRawByte((byte) 66); output.writeMessageNoTag(entityMotionList.get(i)); } } @@ -242,16 +242,16 @@ public SceneEntityMoveCsReq mergeFrom(final ProtoSource input) throws IOExceptio int tag = input.readTag(); while (true) { switch (tag) { - case 32: { + case 88: { // entryId entryId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 114) { + if (tag != 66) { break; } } - case 114: { + case 66: { // entityMotionList tag = input.readRepeatedMessage(entityMotionList, tag); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/SceneEntityMoveScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneEntityMoveScNotifyOuterClass.java index 1ddac55da..ae57ced92 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneEntityMoveScNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneEntityMoveScNotifyOuterClass.java @@ -19,22 +19,22 @@ public static final class SceneEntityMoveScNotify extends ProtoMessageoptional uint32 entity_id = 1; + * optional uint32 client_pos_version = 5; */ - private int entityId; + private int clientPosVersion; /** - * optional uint32 entry_id = 10; + * optional uint32 entity_id = 8; */ - private int entryId; + private int entityId; /** - * optional uint32 client_pos_version = 11; + * optional uint32 entry_id = 11; */ - private int clientPosVersion; + private int entryId; /** - * optional .MotionInfo motion = 13; + * optional .MotionInfo motion = 12; */ private final MotionInfoOuterClass.MotionInfo motion = MotionInfoOuterClass.MotionInfo.newInstance(); @@ -49,118 +49,118 @@ public static SceneEntityMoveScNotify newInstance() { } /** - * optional uint32 entity_id = 1; - * @return whether the entityId field is set + * optional uint32 client_pos_version = 5; + * @return whether the clientPosVersion field is set */ - public boolean hasEntityId() { + public boolean hasClientPosVersion() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 entity_id = 1; + * optional uint32 client_pos_version = 5; * @return this */ - public SceneEntityMoveScNotify clearEntityId() { + public SceneEntityMoveScNotify clearClientPosVersion() { bitField0_ &= ~0x00000001; - entityId = 0; + clientPosVersion = 0; return this; } /** - * optional uint32 entity_id = 1; - * @return the entityId + * optional uint32 client_pos_version = 5; + * @return the clientPosVersion */ - public int getEntityId() { - return entityId; + public int getClientPosVersion() { + return clientPosVersion; } /** - * optional uint32 entity_id = 1; - * @param value the entityId to set + * optional uint32 client_pos_version = 5; + * @param value the clientPosVersion to set * @return this */ - public SceneEntityMoveScNotify setEntityId(final int value) { + public SceneEntityMoveScNotify setClientPosVersion(final int value) { bitField0_ |= 0x00000001; - entityId = value; + clientPosVersion = value; return this; } /** - * optional uint32 entry_id = 10; - * @return whether the entryId field is set + * optional uint32 entity_id = 8; + * @return whether the entityId field is set */ - public boolean hasEntryId() { + public boolean hasEntityId() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 entry_id = 10; + * optional uint32 entity_id = 8; * @return this */ - public SceneEntityMoveScNotify clearEntryId() { + public SceneEntityMoveScNotify clearEntityId() { bitField0_ &= ~0x00000002; - entryId = 0; + entityId = 0; return this; } /** - * optional uint32 entry_id = 10; - * @return the entryId + * optional uint32 entity_id = 8; + * @return the entityId */ - public int getEntryId() { - return entryId; + public int getEntityId() { + return entityId; } /** - * optional uint32 entry_id = 10; - * @param value the entryId to set + * optional uint32 entity_id = 8; + * @param value the entityId to set * @return this */ - public SceneEntityMoveScNotify setEntryId(final int value) { + public SceneEntityMoveScNotify setEntityId(final int value) { bitField0_ |= 0x00000002; - entryId = value; + entityId = value; return this; } /** - * optional uint32 client_pos_version = 11; - * @return whether the clientPosVersion field is set + * optional uint32 entry_id = 11; + * @return whether the entryId field is set */ - public boolean hasClientPosVersion() { + public boolean hasEntryId() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 client_pos_version = 11; + * optional uint32 entry_id = 11; * @return this */ - public SceneEntityMoveScNotify clearClientPosVersion() { + public SceneEntityMoveScNotify clearEntryId() { bitField0_ &= ~0x00000004; - clientPosVersion = 0; + entryId = 0; return this; } /** - * optional uint32 client_pos_version = 11; - * @return the clientPosVersion + * optional uint32 entry_id = 11; + * @return the entryId */ - public int getClientPosVersion() { - return clientPosVersion; + public int getEntryId() { + return entryId; } /** - * optional uint32 client_pos_version = 11; - * @param value the clientPosVersion to set + * optional uint32 entry_id = 11; + * @param value the entryId to set * @return this */ - public SceneEntityMoveScNotify setClientPosVersion(final int value) { + public SceneEntityMoveScNotify setEntryId(final int value) { bitField0_ |= 0x00000004; - clientPosVersion = value; + entryId = value; return this; } /** - * optional .MotionInfo motion = 13; + * optional .MotionInfo motion = 12; * @return whether the motion field is set */ public boolean hasMotion() { @@ -168,7 +168,7 @@ public boolean hasMotion() { } /** - * optional .MotionInfo motion = 13; + * optional .MotionInfo motion = 12; * @return this */ public SceneEntityMoveScNotify clearMotion() { @@ -178,7 +178,7 @@ public SceneEntityMoveScNotify clearMotion() { } /** - * optional .MotionInfo motion = 13; + * optional .MotionInfo motion = 12; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -192,7 +192,7 @@ public MotionInfoOuterClass.MotionInfo getMotion() { } /** - * optional .MotionInfo motion = 13; + * optional .MotionInfo motion = 12; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -206,7 +206,7 @@ public MotionInfoOuterClass.MotionInfo getMutableMotion() { } /** - * optional .MotionInfo motion = 13; + * optional .MotionInfo motion = 12; * @param value the motion to set * @return this */ @@ -221,9 +221,9 @@ public SceneEntityMoveScNotify copyFrom(final SceneEntityMoveScNotify other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; + clientPosVersion = other.clientPosVersion; entityId = other.entityId; entryId = other.entryId; - clientPosVersion = other.clientPosVersion; motion.copyFrom(other.motion); } return this; @@ -235,15 +235,15 @@ public SceneEntityMoveScNotify mergeFrom(final SceneEntityMoveScNotify other) { return this; } cachedSize = -1; + if (other.hasClientPosVersion()) { + setClientPosVersion(other.clientPosVersion); + } if (other.hasEntityId()) { setEntityId(other.entityId); } if (other.hasEntryId()) { setEntryId(other.entryId); } - if (other.hasClientPosVersion()) { - setClientPosVersion(other.clientPosVersion); - } if (other.hasMotion()) { getMutableMotion().mergeFrom(other.motion); } @@ -257,9 +257,9 @@ public SceneEntityMoveScNotify clear() { } cachedSize = -1; bitField0_ = 0; + clientPosVersion = 0; entityId = 0; entryId = 0; - clientPosVersion = 0; motion.clear(); return this; } @@ -285,28 +285,28 @@ public boolean equals(Object o) { } SceneEntityMoveScNotify other = (SceneEntityMoveScNotify) o; return bitField0_ == other.bitField0_ + && (!hasClientPosVersion() || clientPosVersion == other.clientPosVersion) && (!hasEntityId() || entityId == other.entityId) && (!hasEntryId() || entryId == other.entryId) - && (!hasClientPosVersion() || clientPosVersion == other.clientPosVersion) && (!hasMotion() || motion.equals(other.motion)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(entityId); + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(clientPosVersion); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 80); - output.writeUInt32NoTag(entryId); + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(entityId); } if ((bitField0_ & 0x00000004) != 0) { output.writeRawByte((byte) 88); - output.writeUInt32NoTag(clientPosVersion); + output.writeUInt32NoTag(entryId); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 106); + output.writeRawByte((byte) 98); output.writeMessageNoTag(motion); } } @@ -315,13 +315,13 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(entityId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(clientPosVersion); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(entryId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(entityId); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(clientPosVersion); + size += 1 + ProtoSink.computeUInt32SizeNoTag(entryId); } if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(motion); @@ -336,18 +336,18 @@ public SceneEntityMoveScNotify mergeFrom(final ProtoSource input) throws IOExcep int tag = input.readTag(); while (true) { switch (tag) { - case 8: { - // entityId - entityId = input.readUInt32(); + case 40: { + // clientPosVersion + clientPosVersion = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 80) { + if (tag != 64) { break; } } - case 80: { - // entryId - entryId = input.readUInt32(); + case 64: { + // entityId + entityId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 88) { @@ -355,15 +355,15 @@ public SceneEntityMoveScNotify mergeFrom(final ProtoSource input) throws IOExcep } } case 88: { - // clientPosVersion - clientPosVersion = input.readUInt32(); + // entryId + entryId = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 106) { + if (tag != 98) { break; } } - case 106: { + case 98: { // motion input.readMessage(motion); bitField0_ |= 0x00000008; @@ -390,13 +390,13 @@ public SceneEntityMoveScNotify mergeFrom(final ProtoSource input) throws IOExcep public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.entityId, entityId); + output.writeUInt32(FieldNames.clientPosVersion, clientPosVersion); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.entryId, entryId); + output.writeUInt32(FieldNames.entityId, entityId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.clientPosVersion, clientPosVersion); + output.writeUInt32(FieldNames.entryId, entryId); } if ((bitField0_ & 0x00000008) != 0) { output.writeMessage(FieldNames.motion, motion); @@ -411,11 +411,11 @@ public SceneEntityMoveScNotify mergeFrom(final JsonSource input) throws IOExcept } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -2102099874: - case -740565257: { - if (input.isAtField(FieldNames.entityId)) { + case 1787644431: + case 1278860153: { + if (input.isAtField(FieldNames.clientPosVersion)) { if (!input.trySkipNullValue()) { - entityId = input.readUInt32(); + clientPosVersion = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -423,11 +423,11 @@ public SceneEntityMoveScNotify mergeFrom(final JsonSource input) throws IOExcept } break; } - case -1591558867: - case -2093663224: { - if (input.isAtField(FieldNames.entryId)) { + case -2102099874: + case -740565257: { + if (input.isAtField(FieldNames.entityId)) { if (!input.trySkipNullValue()) { - entryId = input.readUInt32(); + entityId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -435,11 +435,11 @@ public SceneEntityMoveScNotify mergeFrom(final JsonSource input) throws IOExcept } break; } - case 1787644431: - case 1278860153: { - if (input.isAtField(FieldNames.clientPosVersion)) { + case -1591558867: + case -2093663224: { + if (input.isAtField(FieldNames.entryId)) { if (!input.trySkipNullValue()) { - clientPosVersion = input.readUInt32(); + entryId = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -511,12 +511,12 @@ public SceneEntityMoveScNotify create() { * Contains name constants used for serializing JSON */ static class FieldNames { + static final FieldName clientPosVersion = FieldName.forField("clientPosVersion", "client_pos_version"); + static final FieldName entityId = FieldName.forField("entityId", "entity_id"); static final FieldName entryId = FieldName.forField("entryId", "entry_id"); - static final FieldName clientPosVersion = FieldName.forField("clientPosVersion", "client_pos_version"); - static final FieldName motion = FieldName.forField("motion"); } } diff --git a/src/generated/main/emu/lunarcore/proto/SceneEntityRefreshInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneEntityRefreshInfoOuterClass.java index 65cfa6bf8..7e3c0dbcb 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneEntityRefreshInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneEntityRefreshInfoOuterClass.java @@ -19,12 +19,12 @@ public static final class SceneEntityRefreshInfo extends ProtoMessageoptional uint32 del_entity = 7; + * optional uint32 del_entity = 8; */ private int delEntity; /** - * optional .SceneEntityInfo add_entity = 14; + * optional .SceneEntityInfo add_entity = 1; */ private final SceneEntityInfoOuterClass.SceneEntityInfo addEntity = SceneEntityInfoOuterClass.SceneEntityInfo.newInstance(); @@ -38,32 +38,8 @@ public static SceneEntityRefreshInfo newInstance() { return new SceneEntityRefreshInfo(); } - public boolean hasUpdateType() { - return (((bitField0_ & 0x00000003)) != 0); - } - - public SceneEntityRefreshInfo clearUpdateType() { - if (hasUpdateType()) { - clearDelEntity(); - clearAddEntity(); - } - return this; - } - - private void clearUpdateTypeOtherDelEntity() { - if ((((bitField0_ & 0x00000002)) != 0)) { - clearAddEntity(); - } - } - - private void clearUpdateTypeOtherAddEntity() { - if ((((bitField0_ & 0x00000001)) != 0)) { - clearDelEntity(); - } - } - /** - * optional uint32 del_entity = 7; + * optional uint32 del_entity = 8; * @return whether the delEntity field is set */ public boolean hasDelEntity() { @@ -71,7 +47,7 @@ public boolean hasDelEntity() { } /** - * optional uint32 del_entity = 7; + * optional uint32 del_entity = 8; * @return this */ public SceneEntityRefreshInfo clearDelEntity() { @@ -81,7 +57,7 @@ public SceneEntityRefreshInfo clearDelEntity() { } /** - * optional uint32 del_entity = 7; + * optional uint32 del_entity = 8; * @return the delEntity */ public int getDelEntity() { @@ -89,19 +65,18 @@ public int getDelEntity() { } /** - * optional uint32 del_entity = 7; + * optional uint32 del_entity = 8; * @param value the delEntity to set * @return this */ public SceneEntityRefreshInfo setDelEntity(final int value) { - clearUpdateTypeOtherDelEntity(); bitField0_ |= 0x00000001; delEntity = value; return this; } /** - * optional .SceneEntityInfo add_entity = 14; + * optional .SceneEntityInfo add_entity = 1; * @return whether the addEntity field is set */ public boolean hasAddEntity() { @@ -109,7 +84,7 @@ public boolean hasAddEntity() { } /** - * optional .SceneEntityInfo add_entity = 14; + * optional .SceneEntityInfo add_entity = 1; * @return this */ public SceneEntityRefreshInfo clearAddEntity() { @@ -119,7 +94,7 @@ public SceneEntityRefreshInfo clearAddEntity() { } /** - * optional .SceneEntityInfo add_entity = 14; + * optional .SceneEntityInfo add_entity = 1; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -133,7 +108,7 @@ public SceneEntityInfoOuterClass.SceneEntityInfo getAddEntity() { } /** - * optional .SceneEntityInfo add_entity = 14; + * optional .SceneEntityInfo add_entity = 1; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -142,19 +117,17 @@ public SceneEntityInfoOuterClass.SceneEntityInfo getAddEntity() { * @return internal storage object for modifications */ public SceneEntityInfoOuterClass.SceneEntityInfo getMutableAddEntity() { - clearUpdateTypeOtherAddEntity(); bitField0_ |= 0x00000002; return addEntity; } /** - * optional .SceneEntityInfo add_entity = 14; + * optional .SceneEntityInfo add_entity = 1; * @param value the addEntity to set * @return this */ public SceneEntityRefreshInfo setAddEntity( final SceneEntityInfoOuterClass.SceneEntityInfo value) { - clearUpdateTypeOtherAddEntity(); bitField0_ |= 0x00000002; addEntity.copyFrom(value); return this; @@ -226,11 +199,11 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 64); output.writeUInt32NoTag(delEntity); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 114); + output.writeRawByte((byte) 10); output.writeMessageNoTag(addEntity); } } @@ -254,19 +227,17 @@ public SceneEntityRefreshInfo mergeFrom(final ProtoSource input) throws IOExcept int tag = input.readTag(); while (true) { switch (tag) { - case 56: { + case 64: { // delEntity - clearUpdateTypeOtherDelEntity(); delEntity = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 114) { + if (tag != 10) { break; } } - case 114: { + case 10: { // addEntity - clearUpdateTypeOtherAddEntity(); input.readMessage(addEntity); bitField0_ |= 0x00000002; tag = input.readTag(); @@ -311,7 +282,6 @@ public SceneEntityRefreshInfo mergeFrom(final JsonSource input) throws IOExcepti case 314362519: { if (input.isAtField(FieldNames.delEntity)) { if (!input.trySkipNullValue()) { - clearUpdateTypeOtherDelEntity(); delEntity = input.readUInt32(); bitField0_ |= 0x00000001; } @@ -324,7 +294,6 @@ public SceneEntityRefreshInfo mergeFrom(final JsonSource input) throws IOExcepti case 1653776705: { if (input.isAtField(FieldNames.addEntity)) { if (!input.trySkipNullValue()) { - clearUpdateTypeOtherAddEntity(); input.readMessage(addEntity); bitField0_ |= 0x00000002; } diff --git a/src/generated/main/emu/lunarcore/proto/SceneGroupRefreshInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneGroupRefreshInfoOuterClass.java index 2d17a3435..0b9eded8f 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneGroupRefreshInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneGroupRefreshInfoOuterClass.java @@ -20,17 +20,17 @@ public static final class SceneGroupRefreshInfo extends ProtoMessageoptional uint32 group_id = 6; + * optional uint32 group_id = 4; */ private int groupId; /** - * optional uint32 state = 7; + * optional uint32 state = 5; */ private int state; /** - * repeated .SceneEntityRefreshInfo refresh_entity = 4; + * repeated .SceneEntityRefreshInfo refresh_entity = 7; */ private final RepeatedMessage refreshEntity = RepeatedMessage.newEmptyInstance(SceneEntityRefreshInfoOuterClass.SceneEntityRefreshInfo.getFactory()); @@ -45,7 +45,7 @@ public static SceneGroupRefreshInfo newInstance() { } /** - * optional uint32 group_id = 6; + * optional uint32 group_id = 4; * @return whether the groupId field is set */ public boolean hasGroupId() { @@ -53,7 +53,7 @@ public boolean hasGroupId() { } /** - * optional uint32 group_id = 6; + * optional uint32 group_id = 4; * @return this */ public SceneGroupRefreshInfo clearGroupId() { @@ -63,7 +63,7 @@ public SceneGroupRefreshInfo clearGroupId() { } /** - * optional uint32 group_id = 6; + * optional uint32 group_id = 4; * @return the groupId */ public int getGroupId() { @@ -71,7 +71,7 @@ public int getGroupId() { } /** - * optional uint32 group_id = 6; + * optional uint32 group_id = 4; * @param value the groupId to set * @return this */ @@ -82,7 +82,7 @@ public SceneGroupRefreshInfo setGroupId(final int value) { } /** - * optional uint32 state = 7; + * optional uint32 state = 5; * @return whether the state field is set */ public boolean hasState() { @@ -90,7 +90,7 @@ public boolean hasState() { } /** - * optional uint32 state = 7; + * optional uint32 state = 5; * @return this */ public SceneGroupRefreshInfo clearState() { @@ -100,7 +100,7 @@ public SceneGroupRefreshInfo clearState() { } /** - * optional uint32 state = 7; + * optional uint32 state = 5; * @return the state */ public int getState() { @@ -108,7 +108,7 @@ public int getState() { } /** - * optional uint32 state = 7; + * optional uint32 state = 5; * @param value the state to set * @return this */ @@ -119,7 +119,7 @@ public SceneGroupRefreshInfo setState(final int value) { } /** - * repeated .SceneEntityRefreshInfo refresh_entity = 4; + * repeated .SceneEntityRefreshInfo refresh_entity = 7; * @return whether the refreshEntity field is set */ public boolean hasRefreshEntity() { @@ -127,7 +127,7 @@ public boolean hasRefreshEntity() { } /** - * repeated .SceneEntityRefreshInfo refresh_entity = 4; + * repeated .SceneEntityRefreshInfo refresh_entity = 7; * @return this */ public SceneGroupRefreshInfo clearRefreshEntity() { @@ -137,7 +137,7 @@ public SceneGroupRefreshInfo clearRefreshEntity() { } /** - * repeated .SceneEntityRefreshInfo refresh_entity = 4; + * repeated .SceneEntityRefreshInfo refresh_entity = 7; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -152,7 +152,7 @@ public RepeatedMessage } /** - * repeated .SceneEntityRefreshInfo refresh_entity = 4; + * repeated .SceneEntityRefreshInfo refresh_entity = 7; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -167,7 +167,7 @@ public RepeatedMessage } /** - * repeated .SceneEntityRefreshInfo refresh_entity = 4; + * repeated .SceneEntityRefreshInfo refresh_entity = 7; * @param value the refreshEntity to add * @return this */ @@ -179,7 +179,7 @@ public SceneGroupRefreshInfo addRefreshEntity( } /** - * repeated .SceneEntityRefreshInfo refresh_entity = 4; + * repeated .SceneEntityRefreshInfo refresh_entity = 7; * @param values the refreshEntity to add * @return this */ @@ -262,16 +262,16 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(groupId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 40); output.writeUInt32NoTag(state); } if ((bitField0_ & 0x00000004) != 0) { for (int i = 0; i < refreshEntity.length(); i++) { - output.writeRawByte((byte) 34); + output.writeRawByte((byte) 58); output.writeMessageNoTag(refreshEntity.get(i)); } } @@ -299,25 +299,25 @@ public SceneGroupRefreshInfo mergeFrom(final ProtoSource input) throws IOExcepti int tag = input.readTag(); while (true) { switch (tag) { - case 48: { + case 32: { // groupId groupId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 56) { + if (tag != 40) { break; } } - case 56: { + case 40: { // state state = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 34) { + if (tag != 58) { break; } } - case 34: { + case 58: { // refreshEntity tag = input.readRepeatedMessage(refreshEntity, tag); bitField0_ |= 0x00000004; diff --git a/src/generated/main/emu/lunarcore/proto/SceneGroupRefreshScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneGroupRefreshScNotifyOuterClass.java index f1f96c423..c4811ba5d 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneGroupRefreshScNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneGroupRefreshScNotifyOuterClass.java @@ -20,7 +20,7 @@ public static final class SceneGroupRefreshScNotify extends ProtoMessagerepeated .SceneGroupRefreshInfo group_refresh_info = 3; + * repeated .SceneGroupRefreshInfo group_refresh_info = 13; */ private final RepeatedMessage groupRefreshInfo = RepeatedMessage.newEmptyInstance(SceneGroupRefreshInfoOuterClass.SceneGroupRefreshInfo.getFactory()); @@ -35,7 +35,7 @@ public static SceneGroupRefreshScNotify newInstance() { } /** - * repeated .SceneGroupRefreshInfo group_refresh_info = 3; + * repeated .SceneGroupRefreshInfo group_refresh_info = 13; * @return whether the groupRefreshInfo field is set */ public boolean hasGroupRefreshInfo() { @@ -43,7 +43,7 @@ public boolean hasGroupRefreshInfo() { } /** - * repeated .SceneGroupRefreshInfo group_refresh_info = 3; + * repeated .SceneGroupRefreshInfo group_refresh_info = 13; * @return this */ public SceneGroupRefreshScNotify clearGroupRefreshInfo() { @@ -53,7 +53,7 @@ public SceneGroupRefreshScNotify clearGroupRefreshInfo() { } /** - * repeated .SceneGroupRefreshInfo group_refresh_info = 3; + * repeated .SceneGroupRefreshInfo group_refresh_info = 13; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -68,7 +68,7 @@ public RepeatedMessage ge } /** - * repeated .SceneGroupRefreshInfo group_refresh_info = 3; + * repeated .SceneGroupRefreshInfo group_refresh_info = 13; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -83,7 +83,7 @@ public RepeatedMessage ge } /** - * repeated .SceneGroupRefreshInfo group_refresh_info = 3; + * repeated .SceneGroupRefreshInfo group_refresh_info = 13; * @param value the groupRefreshInfo to add * @return this */ @@ -95,7 +95,7 @@ public SceneGroupRefreshScNotify addGroupRefreshInfo( } /** - * repeated .SceneGroupRefreshInfo group_refresh_info = 3; + * repeated .SceneGroupRefreshInfo group_refresh_info = 13; * @param values the groupRefreshInfo to add * @return this */ @@ -167,7 +167,7 @@ public boolean equals(Object o) { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { for (int i = 0; i < groupRefreshInfo.length(); i++) { - output.writeRawByte((byte) 26); + output.writeRawByte((byte) 106); output.writeMessageNoTag(groupRefreshInfo.get(i)); } } @@ -189,7 +189,7 @@ public SceneGroupRefreshScNotify mergeFrom(final ProtoSource input) throws IOExc int tag = input.readTag(); while (true) { switch (tag) { - case 26: { + case 106: { // groupRefreshInfo tag = input.readRepeatedMessage(groupRefreshInfo, tag); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/SceneGroupStateOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneGroupStateOuterClass.java index 2a94d1356..5046f33fb 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneGroupStateOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneGroupStateOuterClass.java @@ -19,12 +19,12 @@ public static final class SceneGroupState extends ProtoMessage private static final long serialVersionUID = 0L; /** - * optional uint32 group_id = 4; + * optional uint32 group_id = 12; */ private int groupId; /** - * optional uint32 state = 15; + * optional uint32 state = 13; */ private int state; @@ -44,7 +44,7 @@ public static SceneGroupState newInstance() { } /** - * optional uint32 group_id = 4; + * optional uint32 group_id = 12; * @return whether the groupId field is set */ public boolean hasGroupId() { @@ -52,7 +52,7 @@ public boolean hasGroupId() { } /** - * optional uint32 group_id = 4; + * optional uint32 group_id = 12; * @return this */ public SceneGroupState clearGroupId() { @@ -62,7 +62,7 @@ public SceneGroupState clearGroupId() { } /** - * optional uint32 group_id = 4; + * optional uint32 group_id = 12; * @return the groupId */ public int getGroupId() { @@ -70,7 +70,7 @@ public int getGroupId() { } /** - * optional uint32 group_id = 4; + * optional uint32 group_id = 12; * @param value the groupId to set * @return this */ @@ -81,7 +81,7 @@ public SceneGroupState setGroupId(final int value) { } /** - * optional uint32 state = 15; + * optional uint32 state = 13; * @return whether the state field is set */ public boolean hasState() { @@ -89,7 +89,7 @@ public boolean hasState() { } /** - * optional uint32 state = 15; + * optional uint32 state = 13; * @return this */ public SceneGroupState clearState() { @@ -99,7 +99,7 @@ public SceneGroupState clearState() { } /** - * optional uint32 state = 15; + * optional uint32 state = 13; * @return the state */ public int getState() { @@ -107,7 +107,7 @@ public int getState() { } /** - * optional uint32 state = 15; + * optional uint32 state = 13; * @param value the state to set * @return this */ @@ -225,11 +225,11 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 32); + output.writeRawByte((byte) 96); output.writeUInt32NoTag(groupId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 104); output.writeUInt32NoTag(state); } if ((bitField0_ & 0x00000004) != 0) { @@ -260,16 +260,16 @@ public SceneGroupState mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 32: { + case 96: { // groupId groupId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 120) { + if (tag != 104) { break; } } - case 120: { + case 104: { // state state = input.readUInt32(); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/SceneInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneInfoOuterClass.java index 82e9aa256..0bdd7f056 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneInfoOuterClass.java @@ -21,64 +21,64 @@ public static final class SceneInfo extends ProtoMessage implements C private static final long serialVersionUID = 0L; /** - * optional uint32 world_id = 2; + * optional uint32 floor_id = 3; */ - private int worldId; + private int floorId; /** - * optional uint32 leader_entity_id = 5; + * optional uint32 entry_id = 5; */ - private int leaderEntityId; + private int entryId; /** - * optional uint32 floor_id = 6; + * optional uint32 plane_id = 8; */ - private int floorId; + private int planeId; /** - * optional uint32 client_pos_version = 7; + * optional uint32 game_mode_type = 9; */ - private int clientPosVersion; + private int gameModeType; /** - * optional uint32 game_mode_type = 10; + * optional uint32 world_id = 11; */ - private int gameModeType; + private int worldId; /** - * optional uint32 plane_id = 12; + * optional uint32 leader_entity_id = 14; */ - private int planeId; + private int leaderEntityId; /** - * optional uint32 entry_id = 14; + * optional uint32 client_pos_version = 15; */ - private int entryId; + private int clientPosVersion; /** - * repeated uint32 lighten_section_list = 4; + * repeated uint32 group_id_list = 7; */ - private final RepeatedInt lightenSectionList = RepeatedInt.newEmptyInstance(); + private final RepeatedInt groupIdList = RepeatedInt.newEmptyInstance(); /** - * repeated uint32 group_id_list = 15; + * repeated uint32 lighten_section_list = 10; */ - private final RepeatedInt groupIdList = RepeatedInt.newEmptyInstance(); + private final RepeatedInt lightenSectionList = RepeatedInt.newEmptyInstance(); /** - * repeated .SceneEntityInfo entity_list = 9; + * repeated .SceneEntityInfo entity_list = 2; */ private final RepeatedMessage entityList = RepeatedMessage.newEmptyInstance(SceneEntityInfoOuterClass.SceneEntityInfo.getFactory()); /** - * repeated .SceneEntityGroupInfo entity_group_list = 469; + * repeated .SceneGroupState group_state_list = 1654; */ - private final RepeatedMessage entityGroupList = RepeatedMessage.newEmptyInstance(SceneEntityGroupInfoOuterClass.SceneEntityGroupInfo.getFactory()); + private final RepeatedMessage groupStateList = RepeatedMessage.newEmptyInstance(SceneGroupStateOuterClass.SceneGroupState.getFactory()); /** - * repeated .SceneGroupState group_state_list = 743; + * repeated .SceneEntityGroupInfo entity_group_list = 1740; */ - private final RepeatedMessage groupStateList = RepeatedMessage.newEmptyInstance(SceneGroupStateOuterClass.SceneGroupState.getFactory()); + private final RepeatedMessage entityGroupList = RepeatedMessage.newEmptyInstance(SceneEntityGroupInfoOuterClass.SceneEntityGroupInfo.getFactory()); private SceneInfo() { } @@ -91,298 +91,298 @@ public static SceneInfo newInstance() { } /** - * optional uint32 world_id = 2; - * @return whether the worldId field is set + * optional uint32 floor_id = 3; + * @return whether the floorId field is set */ - public boolean hasWorldId() { + public boolean hasFloorId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 world_id = 2; + * optional uint32 floor_id = 3; * @return this */ - public SceneInfo clearWorldId() { + public SceneInfo clearFloorId() { bitField0_ &= ~0x00000001; - worldId = 0; + floorId = 0; return this; } /** - * optional uint32 world_id = 2; - * @return the worldId + * optional uint32 floor_id = 3; + * @return the floorId */ - public int getWorldId() { - return worldId; + public int getFloorId() { + return floorId; } /** - * optional uint32 world_id = 2; - * @param value the worldId to set + * optional uint32 floor_id = 3; + * @param value the floorId to set * @return this */ - public SceneInfo setWorldId(final int value) { + public SceneInfo setFloorId(final int value) { bitField0_ |= 0x00000001; - worldId = value; + floorId = value; return this; } /** - * optional uint32 leader_entity_id = 5; - * @return whether the leaderEntityId field is set + * optional uint32 entry_id = 5; + * @return whether the entryId field is set */ - public boolean hasLeaderEntityId() { + public boolean hasEntryId() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 leader_entity_id = 5; + * optional uint32 entry_id = 5; * @return this */ - public SceneInfo clearLeaderEntityId() { + public SceneInfo clearEntryId() { bitField0_ &= ~0x00000002; - leaderEntityId = 0; + entryId = 0; return this; } /** - * optional uint32 leader_entity_id = 5; - * @return the leaderEntityId + * optional uint32 entry_id = 5; + * @return the entryId */ - public int getLeaderEntityId() { - return leaderEntityId; + public int getEntryId() { + return entryId; } /** - * optional uint32 leader_entity_id = 5; - * @param value the leaderEntityId to set + * optional uint32 entry_id = 5; + * @param value the entryId to set * @return this */ - public SceneInfo setLeaderEntityId(final int value) { + public SceneInfo setEntryId(final int value) { bitField0_ |= 0x00000002; - leaderEntityId = value; + entryId = value; return this; } /** - * optional uint32 floor_id = 6; - * @return whether the floorId field is set + * optional uint32 plane_id = 8; + * @return whether the planeId field is set */ - public boolean hasFloorId() { + public boolean hasPlaneId() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 floor_id = 6; + * optional uint32 plane_id = 8; * @return this */ - public SceneInfo clearFloorId() { + public SceneInfo clearPlaneId() { bitField0_ &= ~0x00000004; - floorId = 0; + planeId = 0; return this; } /** - * optional uint32 floor_id = 6; - * @return the floorId + * optional uint32 plane_id = 8; + * @return the planeId */ - public int getFloorId() { - return floorId; + public int getPlaneId() { + return planeId; } /** - * optional uint32 floor_id = 6; - * @param value the floorId to set + * optional uint32 plane_id = 8; + * @param value the planeId to set * @return this */ - public SceneInfo setFloorId(final int value) { + public SceneInfo setPlaneId(final int value) { bitField0_ |= 0x00000004; - floorId = value; + planeId = value; return this; } /** - * optional uint32 client_pos_version = 7; - * @return whether the clientPosVersion field is set + * optional uint32 game_mode_type = 9; + * @return whether the gameModeType field is set */ - public boolean hasClientPosVersion() { + public boolean hasGameModeType() { return (bitField0_ & 0x00000008) != 0; } /** - * optional uint32 client_pos_version = 7; + * optional uint32 game_mode_type = 9; * @return this */ - public SceneInfo clearClientPosVersion() { + public SceneInfo clearGameModeType() { bitField0_ &= ~0x00000008; - clientPosVersion = 0; + gameModeType = 0; return this; } /** - * optional uint32 client_pos_version = 7; - * @return the clientPosVersion + * optional uint32 game_mode_type = 9; + * @return the gameModeType */ - public int getClientPosVersion() { - return clientPosVersion; + public int getGameModeType() { + return gameModeType; } /** - * optional uint32 client_pos_version = 7; - * @param value the clientPosVersion to set + * optional uint32 game_mode_type = 9; + * @param value the gameModeType to set * @return this */ - public SceneInfo setClientPosVersion(final int value) { + public SceneInfo setGameModeType(final int value) { bitField0_ |= 0x00000008; - clientPosVersion = value; + gameModeType = value; return this; } /** - * optional uint32 game_mode_type = 10; - * @return whether the gameModeType field is set + * optional uint32 world_id = 11; + * @return whether the worldId field is set */ - public boolean hasGameModeType() { + public boolean hasWorldId() { return (bitField0_ & 0x00000010) != 0; } /** - * optional uint32 game_mode_type = 10; + * optional uint32 world_id = 11; * @return this */ - public SceneInfo clearGameModeType() { + public SceneInfo clearWorldId() { bitField0_ &= ~0x00000010; - gameModeType = 0; + worldId = 0; return this; } /** - * optional uint32 game_mode_type = 10; - * @return the gameModeType + * optional uint32 world_id = 11; + * @return the worldId */ - public int getGameModeType() { - return gameModeType; + public int getWorldId() { + return worldId; } /** - * optional uint32 game_mode_type = 10; - * @param value the gameModeType to set + * optional uint32 world_id = 11; + * @param value the worldId to set * @return this */ - public SceneInfo setGameModeType(final int value) { + public SceneInfo setWorldId(final int value) { bitField0_ |= 0x00000010; - gameModeType = value; + worldId = value; return this; } /** - * optional uint32 plane_id = 12; - * @return whether the planeId field is set + * optional uint32 leader_entity_id = 14; + * @return whether the leaderEntityId field is set */ - public boolean hasPlaneId() { + public boolean hasLeaderEntityId() { return (bitField0_ & 0x00000020) != 0; } /** - * optional uint32 plane_id = 12; + * optional uint32 leader_entity_id = 14; * @return this */ - public SceneInfo clearPlaneId() { + public SceneInfo clearLeaderEntityId() { bitField0_ &= ~0x00000020; - planeId = 0; + leaderEntityId = 0; return this; } /** - * optional uint32 plane_id = 12; - * @return the planeId + * optional uint32 leader_entity_id = 14; + * @return the leaderEntityId */ - public int getPlaneId() { - return planeId; + public int getLeaderEntityId() { + return leaderEntityId; } /** - * optional uint32 plane_id = 12; - * @param value the planeId to set + * optional uint32 leader_entity_id = 14; + * @param value the leaderEntityId to set * @return this */ - public SceneInfo setPlaneId(final int value) { + public SceneInfo setLeaderEntityId(final int value) { bitField0_ |= 0x00000020; - planeId = value; + leaderEntityId = value; return this; } /** - * optional uint32 entry_id = 14; - * @return whether the entryId field is set + * optional uint32 client_pos_version = 15; + * @return whether the clientPosVersion field is set */ - public boolean hasEntryId() { + public boolean hasClientPosVersion() { return (bitField0_ & 0x00000040) != 0; } /** - * optional uint32 entry_id = 14; + * optional uint32 client_pos_version = 15; * @return this */ - public SceneInfo clearEntryId() { + public SceneInfo clearClientPosVersion() { bitField0_ &= ~0x00000040; - entryId = 0; + clientPosVersion = 0; return this; } /** - * optional uint32 entry_id = 14; - * @return the entryId + * optional uint32 client_pos_version = 15; + * @return the clientPosVersion */ - public int getEntryId() { - return entryId; + public int getClientPosVersion() { + return clientPosVersion; } /** - * optional uint32 entry_id = 14; - * @param value the entryId to set + * optional uint32 client_pos_version = 15; + * @param value the clientPosVersion to set * @return this */ - public SceneInfo setEntryId(final int value) { + public SceneInfo setClientPosVersion(final int value) { bitField0_ |= 0x00000040; - entryId = value; + clientPosVersion = value; return this; } /** - * repeated uint32 lighten_section_list = 4; - * @return whether the lightenSectionList field is set + * repeated uint32 group_id_list = 7; + * @return whether the groupIdList field is set */ - public boolean hasLightenSectionList() { + public boolean hasGroupIdList() { return (bitField0_ & 0x00000080) != 0; } /** - * repeated uint32 lighten_section_list = 4; + * repeated uint32 group_id_list = 7; * @return this */ - public SceneInfo clearLightenSectionList() { + public SceneInfo clearGroupIdList() { bitField0_ &= ~0x00000080; - lightenSectionList.clear(); + groupIdList.clear(); return this; } /** - * repeated uint32 lighten_section_list = 4; + * repeated uint32 group_id_list = 7; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableLightenSectionList()} if you want to modify it. + * Use {@link #getMutableGroupIdList()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedInt getLightenSectionList() { - return lightenSectionList; + public RepeatedInt getGroupIdList() { + return groupIdList; } /** - * repeated uint32 lighten_section_list = 4; + * repeated uint32 group_id_list = 7; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -390,67 +390,67 @@ public RepeatedInt getLightenSectionList() { * * @return internal storage object for modifications */ - public RepeatedInt getMutableLightenSectionList() { + public RepeatedInt getMutableGroupIdList() { bitField0_ |= 0x00000080; - return lightenSectionList; + return groupIdList; } /** - * repeated uint32 lighten_section_list = 4; - * @param value the lightenSectionList to add + * repeated uint32 group_id_list = 7; + * @param value the groupIdList to add * @return this */ - public SceneInfo addLightenSectionList(final int value) { + public SceneInfo addGroupIdList(final int value) { bitField0_ |= 0x00000080; - lightenSectionList.add(value); + groupIdList.add(value); return this; } /** - * repeated uint32 lighten_section_list = 4; - * @param values the lightenSectionList to add + * repeated uint32 group_id_list = 7; + * @param values the groupIdList to add * @return this */ - public SceneInfo addAllLightenSectionList(final int... values) { + public SceneInfo addAllGroupIdList(final int... values) { bitField0_ |= 0x00000080; - lightenSectionList.addAll(values); + groupIdList.addAll(values); return this; } /** - * repeated uint32 group_id_list = 15; - * @return whether the groupIdList field is set + * repeated uint32 lighten_section_list = 10; + * @return whether the lightenSectionList field is set */ - public boolean hasGroupIdList() { + public boolean hasLightenSectionList() { return (bitField0_ & 0x00000100) != 0; } /** - * repeated uint32 group_id_list = 15; + * repeated uint32 lighten_section_list = 10; * @return this */ - public SceneInfo clearGroupIdList() { + public SceneInfo clearLightenSectionList() { bitField0_ &= ~0x00000100; - groupIdList.clear(); + lightenSectionList.clear(); return this; } /** - * repeated uint32 group_id_list = 15; + * repeated uint32 lighten_section_list = 10; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableGroupIdList()} if you want to modify it. + * Use {@link #getMutableLightenSectionList()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedInt getGroupIdList() { - return groupIdList; + public RepeatedInt getLightenSectionList() { + return lightenSectionList; } /** - * repeated uint32 group_id_list = 15; + * repeated uint32 lighten_section_list = 10; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -458,35 +458,35 @@ public RepeatedInt getGroupIdList() { * * @return internal storage object for modifications */ - public RepeatedInt getMutableGroupIdList() { + public RepeatedInt getMutableLightenSectionList() { bitField0_ |= 0x00000100; - return groupIdList; + return lightenSectionList; } /** - * repeated uint32 group_id_list = 15; - * @param value the groupIdList to add + * repeated uint32 lighten_section_list = 10; + * @param value the lightenSectionList to add * @return this */ - public SceneInfo addGroupIdList(final int value) { + public SceneInfo addLightenSectionList(final int value) { bitField0_ |= 0x00000100; - groupIdList.add(value); + lightenSectionList.add(value); return this; } /** - * repeated uint32 group_id_list = 15; - * @param values the groupIdList to add + * repeated uint32 lighten_section_list = 10; + * @param values the lightenSectionList to add * @return this */ - public SceneInfo addAllGroupIdList(final int... values) { + public SceneInfo addAllLightenSectionList(final int... values) { bitField0_ |= 0x00000100; - groupIdList.addAll(values); + lightenSectionList.addAll(values); return this; } /** - * repeated .SceneEntityInfo entity_list = 9; + * repeated .SceneEntityInfo entity_list = 2; * @return whether the entityList field is set */ public boolean hasEntityList() { @@ -494,7 +494,7 @@ public boolean hasEntityList() { } /** - * repeated .SceneEntityInfo entity_list = 9; + * repeated .SceneEntityInfo entity_list = 2; * @return this */ public SceneInfo clearEntityList() { @@ -504,7 +504,7 @@ public SceneInfo clearEntityList() { } /** - * repeated .SceneEntityInfo entity_list = 9; + * repeated .SceneEntityInfo entity_list = 2; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -518,7 +518,7 @@ public RepeatedMessage getEntityList( } /** - * repeated .SceneEntityInfo entity_list = 9; + * repeated .SceneEntityInfo entity_list = 2; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -532,7 +532,7 @@ public RepeatedMessage getMutableEnti } /** - * repeated .SceneEntityInfo entity_list = 9; + * repeated .SceneEntityInfo entity_list = 2; * @param value the entityList to add * @return this */ @@ -543,7 +543,7 @@ public SceneInfo addEntityList(final SceneEntityInfoOuterClass.SceneEntityInfo v } /** - * repeated .SceneEntityInfo entity_list = 9; + * repeated .SceneEntityInfo entity_list = 2; * @param values the entityList to add * @return this */ @@ -554,40 +554,39 @@ public SceneInfo addAllEntityList(final SceneEntityInfoOuterClass.SceneEntityInf } /** - * repeated .SceneEntityGroupInfo entity_group_list = 469; - * @return whether the entityGroupList field is set + * repeated .SceneGroupState group_state_list = 1654; + * @return whether the groupStateList field is set */ - public boolean hasEntityGroupList() { + public boolean hasGroupStateList() { return (bitField0_ & 0x00000400) != 0; } /** - * repeated .SceneEntityGroupInfo entity_group_list = 469; + * repeated .SceneGroupState group_state_list = 1654; * @return this */ - public SceneInfo clearEntityGroupList() { + public SceneInfo clearGroupStateList() { bitField0_ &= ~0x00000400; - entityGroupList.clear(); + groupStateList.clear(); return this; } /** - * repeated .SceneEntityGroupInfo entity_group_list = 469; + * repeated .SceneGroupState group_state_list = 1654; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableEntityGroupList()} if you want to modify it. + * Use {@link #getMutableGroupStateList()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedMessage getEntityGroupList( - ) { - return entityGroupList; + public RepeatedMessage getGroupStateList() { + return groupStateList; } /** - * repeated .SceneEntityGroupInfo entity_group_list = 469; + * repeated .SceneGroupState group_state_list = 1654; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -595,70 +594,69 @@ public RepeatedMessage getE * * @return internal storage object for modifications */ - public RepeatedMessage getMutableEntityGroupList( - ) { + public RepeatedMessage getMutableGroupStateList() { bitField0_ |= 0x00000400; - return entityGroupList; + return groupStateList; } /** - * repeated .SceneEntityGroupInfo entity_group_list = 469; - * @param value the entityGroupList to add + * repeated .SceneGroupState group_state_list = 1654; + * @param value the groupStateList to add * @return this */ - public SceneInfo addEntityGroupList( - final SceneEntityGroupInfoOuterClass.SceneEntityGroupInfo value) { + public SceneInfo addGroupStateList(final SceneGroupStateOuterClass.SceneGroupState value) { bitField0_ |= 0x00000400; - entityGroupList.add(value); + groupStateList.add(value); return this; } /** - * repeated .SceneEntityGroupInfo entity_group_list = 469; - * @param values the entityGroupList to add + * repeated .SceneGroupState group_state_list = 1654; + * @param values the groupStateList to add * @return this */ - public SceneInfo addAllEntityGroupList( - final SceneEntityGroupInfoOuterClass.SceneEntityGroupInfo... values) { + public SceneInfo addAllGroupStateList( + final SceneGroupStateOuterClass.SceneGroupState... values) { bitField0_ |= 0x00000400; - entityGroupList.addAll(values); + groupStateList.addAll(values); return this; } /** - * repeated .SceneGroupState group_state_list = 743; - * @return whether the groupStateList field is set + * repeated .SceneEntityGroupInfo entity_group_list = 1740; + * @return whether the entityGroupList field is set */ - public boolean hasGroupStateList() { + public boolean hasEntityGroupList() { return (bitField0_ & 0x00000800) != 0; } /** - * repeated .SceneGroupState group_state_list = 743; + * repeated .SceneEntityGroupInfo entity_group_list = 1740; * @return this */ - public SceneInfo clearGroupStateList() { + public SceneInfo clearEntityGroupList() { bitField0_ &= ~0x00000800; - groupStateList.clear(); + entityGroupList.clear(); return this; } /** - * repeated .SceneGroupState group_state_list = 743; + * repeated .SceneEntityGroupInfo entity_group_list = 1740; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableGroupStateList()} if you want to modify it. + * Use {@link #getMutableEntityGroupList()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedMessage getGroupStateList() { - return groupStateList; + public RepeatedMessage getEntityGroupList( + ) { + return entityGroupList; } /** - * repeated .SceneGroupState group_state_list = 743; + * repeated .SceneEntityGroupInfo entity_group_list = 1740; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -666,31 +664,33 @@ public RepeatedMessage getGroupStateL * * @return internal storage object for modifications */ - public RepeatedMessage getMutableGroupStateList() { + public RepeatedMessage getMutableEntityGroupList( + ) { bitField0_ |= 0x00000800; - return groupStateList; + return entityGroupList; } /** - * repeated .SceneGroupState group_state_list = 743; - * @param value the groupStateList to add + * repeated .SceneEntityGroupInfo entity_group_list = 1740; + * @param value the entityGroupList to add * @return this */ - public SceneInfo addGroupStateList(final SceneGroupStateOuterClass.SceneGroupState value) { + public SceneInfo addEntityGroupList( + final SceneEntityGroupInfoOuterClass.SceneEntityGroupInfo value) { bitField0_ |= 0x00000800; - groupStateList.add(value); + entityGroupList.add(value); return this; } /** - * repeated .SceneGroupState group_state_list = 743; - * @param values the groupStateList to add + * repeated .SceneEntityGroupInfo entity_group_list = 1740; + * @param values the entityGroupList to add * @return this */ - public SceneInfo addAllGroupStateList( - final SceneGroupStateOuterClass.SceneGroupState... values) { + public SceneInfo addAllEntityGroupList( + final SceneEntityGroupInfoOuterClass.SceneEntityGroupInfo... values) { bitField0_ |= 0x00000800; - groupStateList.addAll(values); + entityGroupList.addAll(values); return this; } @@ -699,18 +699,18 @@ public SceneInfo copyFrom(final SceneInfo other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; + floorId = other.floorId; + entryId = other.entryId; + planeId = other.planeId; + gameModeType = other.gameModeType; worldId = other.worldId; leaderEntityId = other.leaderEntityId; - floorId = other.floorId; clientPosVersion = other.clientPosVersion; - gameModeType = other.gameModeType; - planeId = other.planeId; - entryId = other.entryId; - lightenSectionList.copyFrom(other.lightenSectionList); groupIdList.copyFrom(other.groupIdList); + lightenSectionList.copyFrom(other.lightenSectionList); entityList.copyFrom(other.entityList); - entityGroupList.copyFrom(other.entityGroupList); groupStateList.copyFrom(other.groupStateList); + entityGroupList.copyFrom(other.entityGroupList); } return this; } @@ -721,42 +721,42 @@ public SceneInfo mergeFrom(final SceneInfo other) { return this; } cachedSize = -1; - if (other.hasWorldId()) { - setWorldId(other.worldId); - } - if (other.hasLeaderEntityId()) { - setLeaderEntityId(other.leaderEntityId); - } if (other.hasFloorId()) { setFloorId(other.floorId); } - if (other.hasClientPosVersion()) { - setClientPosVersion(other.clientPosVersion); + if (other.hasEntryId()) { + setEntryId(other.entryId); + } + if (other.hasPlaneId()) { + setPlaneId(other.planeId); } if (other.hasGameModeType()) { setGameModeType(other.gameModeType); } - if (other.hasPlaneId()) { - setPlaneId(other.planeId); + if (other.hasWorldId()) { + setWorldId(other.worldId); } - if (other.hasEntryId()) { - setEntryId(other.entryId); + if (other.hasLeaderEntityId()) { + setLeaderEntityId(other.leaderEntityId); } - if (other.hasLightenSectionList()) { - getMutableLightenSectionList().addAll(other.lightenSectionList); + if (other.hasClientPosVersion()) { + setClientPosVersion(other.clientPosVersion); } if (other.hasGroupIdList()) { getMutableGroupIdList().addAll(other.groupIdList); } + if (other.hasLightenSectionList()) { + getMutableLightenSectionList().addAll(other.lightenSectionList); + } if (other.hasEntityList()) { getMutableEntityList().addAll(other.entityList); } - if (other.hasEntityGroupList()) { - getMutableEntityGroupList().addAll(other.entityGroupList); - } if (other.hasGroupStateList()) { getMutableGroupStateList().addAll(other.groupStateList); } + if (other.hasEntityGroupList()) { + getMutableEntityGroupList().addAll(other.entityGroupList); + } return this; } @@ -767,18 +767,18 @@ public SceneInfo clear() { } cachedSize = -1; bitField0_ = 0; + floorId = 0; + entryId = 0; + planeId = 0; + gameModeType = 0; worldId = 0; leaderEntityId = 0; - floorId = 0; clientPosVersion = 0; - gameModeType = 0; - planeId = 0; - entryId = 0; - lightenSectionList.clear(); groupIdList.clear(); + lightenSectionList.clear(); entityList.clear(); - entityGroupList.clear(); groupStateList.clear(); + entityGroupList.clear(); return this; } @@ -789,11 +789,11 @@ public SceneInfo clearQuick() { } cachedSize = -1; bitField0_ = 0; - lightenSectionList.clear(); groupIdList.clear(); + lightenSectionList.clear(); entityList.clearQuick(); - entityGroupList.clearQuick(); groupStateList.clearQuick(); + entityGroupList.clearQuick(); return this; } @@ -807,78 +807,78 @@ public boolean equals(Object o) { } SceneInfo other = (SceneInfo) o; return bitField0_ == other.bitField0_ + && (!hasFloorId() || floorId == other.floorId) + && (!hasEntryId() || entryId == other.entryId) + && (!hasPlaneId() || planeId == other.planeId) + && (!hasGameModeType() || gameModeType == other.gameModeType) && (!hasWorldId() || worldId == other.worldId) && (!hasLeaderEntityId() || leaderEntityId == other.leaderEntityId) - && (!hasFloorId() || floorId == other.floorId) && (!hasClientPosVersion() || clientPosVersion == other.clientPosVersion) - && (!hasGameModeType() || gameModeType == other.gameModeType) - && (!hasPlaneId() || planeId == other.planeId) - && (!hasEntryId() || entryId == other.entryId) - && (!hasLightenSectionList() || lightenSectionList.equals(other.lightenSectionList)) && (!hasGroupIdList() || groupIdList.equals(other.groupIdList)) + && (!hasLightenSectionList() || lightenSectionList.equals(other.lightenSectionList)) && (!hasEntityList() || entityList.equals(other.entityList)) - && (!hasEntityGroupList() || entityGroupList.equals(other.entityGroupList)) - && (!hasGroupStateList() || groupStateList.equals(other.groupStateList)); + && (!hasGroupStateList() || groupStateList.equals(other.groupStateList)) + && (!hasEntityGroupList() || entityGroupList.equals(other.entityGroupList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(worldId); + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(floorId); } if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 40); - output.writeUInt32NoTag(leaderEntityId); + output.writeUInt32NoTag(entryId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 48); - output.writeUInt32NoTag(floorId); + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(planeId); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 56); - output.writeUInt32NoTag(clientPosVersion); + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(gameModeType); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 80); - output.writeUInt32NoTag(gameModeType); + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(worldId); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 96); - output.writeUInt32NoTag(planeId); + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(leaderEntityId); } if ((bitField0_ & 0x00000040) != 0) { - output.writeRawByte((byte) 112); - output.writeUInt32NoTag(entryId); + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(clientPosVersion); } if ((bitField0_ & 0x00000080) != 0) { - for (int i = 0; i < lightenSectionList.length(); i++) { - output.writeRawByte((byte) 32); - output.writeUInt32NoTag(lightenSectionList.array()[i]); + for (int i = 0; i < groupIdList.length(); i++) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(groupIdList.array()[i]); } } if ((bitField0_ & 0x00000100) != 0) { - for (int i = 0; i < groupIdList.length(); i++) { - output.writeRawByte((byte) 120); - output.writeUInt32NoTag(groupIdList.array()[i]); + for (int i = 0; i < lightenSectionList.length(); i++) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(lightenSectionList.array()[i]); } } if ((bitField0_ & 0x00000200) != 0) { for (int i = 0; i < entityList.length(); i++) { - output.writeRawByte((byte) 74); + output.writeRawByte((byte) 18); output.writeMessageNoTag(entityList.get(i)); } } if ((bitField0_ & 0x00000400) != 0) { - for (int i = 0; i < entityGroupList.length(); i++) { - output.writeRawLittleEndian16((short) 7594); - output.writeMessageNoTag(entityGroupList.get(i)); + for (int i = 0; i < groupStateList.length(); i++) { + output.writeRawLittleEndian16((short) 26546); + output.writeMessageNoTag(groupStateList.get(i)); } } if ((bitField0_ & 0x00000800) != 0) { - for (int i = 0; i < groupStateList.length(); i++) { - output.writeRawLittleEndian16((short) 11962); - output.writeMessageNoTag(groupStateList.get(i)); + for (int i = 0; i < entityGroupList.length(); i++) { + output.writeRawLittleEndian16((short) 27874); + output.writeMessageNoTag(entityGroupList.get(i)); } } } @@ -887,40 +887,40 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(worldId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(floorId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(leaderEntityId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(entryId); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(floorId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(planeId); } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(clientPosVersion); + size += 1 + ProtoSink.computeUInt32SizeNoTag(gameModeType); } if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(gameModeType); + size += 1 + ProtoSink.computeUInt32SizeNoTag(worldId); } if ((bitField0_ & 0x00000020) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(planeId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(leaderEntityId); } if ((bitField0_ & 0x00000040) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(entryId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(clientPosVersion); } if ((bitField0_ & 0x00000080) != 0) { - size += (1 * lightenSectionList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(lightenSectionList); + size += (1 * groupIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(groupIdList); } if ((bitField0_ & 0x00000100) != 0) { - size += (1 * groupIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(groupIdList); + size += (1 * lightenSectionList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(lightenSectionList); } if ((bitField0_ & 0x00000200) != 0) { size += (1 * entityList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(entityList); } if ((bitField0_ & 0x00000400) != 0) { - size += (2 * entityGroupList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(entityGroupList); + size += (2 * groupStateList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(groupStateList); } if ((bitField0_ & 0x00000800) != 0) { - size += (2 * groupStateList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(groupStateList); + size += (2 * entityGroupList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(entityGroupList); } return size; } @@ -932,9 +932,9 @@ public SceneInfo mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { - // worldId - worldId = input.readUInt32(); + case 24: { + // floorId + floorId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 40) { @@ -942,96 +942,96 @@ public SceneInfo mergeFrom(final ProtoSource input) throws IOException { } } case 40: { - // leaderEntityId - leaderEntityId = input.readUInt32(); + // entryId + entryId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 48) { + if (tag != 64) { break; } } - case 48: { - // floorId - floorId = input.readUInt32(); + case 64: { + // planeId + planeId = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 56) { + if (tag != 72) { break; } } - case 56: { - // clientPosVersion - clientPosVersion = input.readUInt32(); + case 72: { + // gameModeType + gameModeType = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 80) { + if (tag != 88) { break; } } - case 80: { - // gameModeType - gameModeType = input.readUInt32(); + case 88: { + // worldId + worldId = input.readUInt32(); bitField0_ |= 0x00000010; tag = input.readTag(); - if (tag != 96) { + if (tag != 112) { break; } } - case 96: { - // planeId - planeId = input.readUInt32(); + case 112: { + // leaderEntityId + leaderEntityId = input.readUInt32(); bitField0_ |= 0x00000020; tag = input.readTag(); - if (tag != 112) { + if (tag != 120) { break; } } - case 112: { - // entryId - entryId = input.readUInt32(); + case 120: { + // clientPosVersion + clientPosVersion = input.readUInt32(); bitField0_ |= 0x00000040; tag = input.readTag(); - if (tag != 34) { + if (tag != 58) { break; } } - case 34: { - // lightenSectionList [packed=true] - input.readPackedUInt32(lightenSectionList, tag); + case 58: { + // groupIdList [packed=true] + input.readPackedUInt32(groupIdList, tag); bitField0_ |= 0x00000080; tag = input.readTag(); - if (tag != 122) { + if (tag != 82) { break; } } - case 122: { - // groupIdList [packed=true] - input.readPackedUInt32(groupIdList, tag); + case 82: { + // lightenSectionList [packed=true] + input.readPackedUInt32(lightenSectionList, tag); bitField0_ |= 0x00000100; tag = input.readTag(); - if (tag != 74) { + if (tag != 18) { break; } } - case 74: { + case 18: { // entityList tag = input.readRepeatedMessage(entityList, tag); bitField0_ |= 0x00000200; - if (tag != 3754) { + if (tag != 13234) { break; } } - case 3754: { - // entityGroupList - tag = input.readRepeatedMessage(entityGroupList, tag); + case 13234: { + // groupStateList + tag = input.readRepeatedMessage(groupStateList, tag); bitField0_ |= 0x00000400; - if (tag != 5946) { + if (tag != 13922) { break; } } - case 5946: { - // groupStateList - tag = input.readRepeatedMessage(groupStateList, tag); + case 13922: { + // entityGroupList + tag = input.readRepeatedMessage(entityGroupList, tag); bitField0_ |= 0x00000800; if (tag != 0) { break; @@ -1047,15 +1047,15 @@ public SceneInfo mergeFrom(final ProtoSource input) throws IOException { tag = input.readTag(); break; } - case 32: { - // lightenSectionList [packed=false] - tag = input.readRepeatedUInt32(lightenSectionList, tag); + case 56: { + // groupIdList [packed=false] + tag = input.readRepeatedUInt32(groupIdList, tag); bitField0_ |= 0x00000080; break; } - case 120: { - // groupIdList [packed=false] - tag = input.readRepeatedUInt32(groupIdList, tag); + case 80: { + // lightenSectionList [packed=false] + tag = input.readRepeatedUInt32(lightenSectionList, tag); bitField0_ |= 0x00000100; break; } @@ -1067,40 +1067,40 @@ public SceneInfo mergeFrom(final ProtoSource input) throws IOException { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.worldId, worldId); + output.writeUInt32(FieldNames.floorId, floorId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.leaderEntityId, leaderEntityId); + output.writeUInt32(FieldNames.entryId, entryId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.floorId, floorId); + output.writeUInt32(FieldNames.planeId, planeId); } if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.clientPosVersion, clientPosVersion); + output.writeUInt32(FieldNames.gameModeType, gameModeType); } if ((bitField0_ & 0x00000010) != 0) { - output.writeUInt32(FieldNames.gameModeType, gameModeType); + output.writeUInt32(FieldNames.worldId, worldId); } if ((bitField0_ & 0x00000020) != 0) { - output.writeUInt32(FieldNames.planeId, planeId); + output.writeUInt32(FieldNames.leaderEntityId, leaderEntityId); } if ((bitField0_ & 0x00000040) != 0) { - output.writeUInt32(FieldNames.entryId, entryId); + output.writeUInt32(FieldNames.clientPosVersion, clientPosVersion); } if ((bitField0_ & 0x00000080) != 0) { - output.writeRepeatedUInt32(FieldNames.lightenSectionList, lightenSectionList); + output.writeRepeatedUInt32(FieldNames.groupIdList, groupIdList); } if ((bitField0_ & 0x00000100) != 0) { - output.writeRepeatedUInt32(FieldNames.groupIdList, groupIdList); + output.writeRepeatedUInt32(FieldNames.lightenSectionList, lightenSectionList); } if ((bitField0_ & 0x00000200) != 0) { output.writeRepeatedMessage(FieldNames.entityList, entityList); } if ((bitField0_ & 0x00000400) != 0) { - output.writeRepeatedMessage(FieldNames.entityGroupList, entityGroupList); + output.writeRepeatedMessage(FieldNames.groupStateList, groupStateList); } if ((bitField0_ & 0x00000800) != 0) { - output.writeRepeatedMessage(FieldNames.groupStateList, groupStateList); + output.writeRepeatedMessage(FieldNames.entityGroupList, entityGroupList); } output.endObject(); } @@ -1112,11 +1112,11 @@ public SceneInfo mergeFrom(final JsonSource input) throws IOException { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1525188685: - case 36230376: { - if (input.isAtField(FieldNames.worldId)) { + case -766027193: + case 2022982190: { + if (input.isAtField(FieldNames.floorId)) { if (!input.trySkipNullValue()) { - worldId = input.readUInt32(); + floorId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -1124,11 +1124,11 @@ public SceneInfo mergeFrom(final JsonSource input) throws IOException { } break; } - case 1693061255: - case 794634049: { - if (input.isAtField(FieldNames.leaderEntityId)) { + case -1591558867: + case -2093663224: { + if (input.isAtField(FieldNames.entryId)) { if (!input.trySkipNullValue()) { - leaderEntityId = input.readUInt32(); + entryId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -1136,11 +1136,11 @@ public SceneInfo mergeFrom(final JsonSource input) throws IOException { } break; } - case -766027193: - case 2022982190: { - if (input.isAtField(FieldNames.floorId)) { + case -493896553: + case 1869097438: { + if (input.isAtField(FieldNames.planeId)) { if (!input.trySkipNullValue()) { - floorId = input.readUInt32(); + planeId = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -1148,11 +1148,11 @@ public SceneInfo mergeFrom(final JsonSource input) throws IOException { } break; } - case 1787644431: - case 1278860153: { - if (input.isAtField(FieldNames.clientPosVersion)) { + case -464498289: + case 1937775689: { + if (input.isAtField(FieldNames.gameModeType)) { if (!input.trySkipNullValue()) { - clientPosVersion = input.readUInt32(); + gameModeType = input.readUInt32(); bitField0_ |= 0x00000008; } } else { @@ -1160,11 +1160,11 @@ public SceneInfo mergeFrom(final JsonSource input) throws IOException { } break; } - case -464498289: - case 1937775689: { - if (input.isAtField(FieldNames.gameModeType)) { + case 1525188685: + case 36230376: { + if (input.isAtField(FieldNames.worldId)) { if (!input.trySkipNullValue()) { - gameModeType = input.readUInt32(); + worldId = input.readUInt32(); bitField0_ |= 0x00000010; } } else { @@ -1172,11 +1172,11 @@ public SceneInfo mergeFrom(final JsonSource input) throws IOException { } break; } - case -493896553: - case 1869097438: { - if (input.isAtField(FieldNames.planeId)) { + case 1693061255: + case 794634049: { + if (input.isAtField(FieldNames.leaderEntityId)) { if (!input.trySkipNullValue()) { - planeId = input.readUInt32(); + leaderEntityId = input.readUInt32(); bitField0_ |= 0x00000020; } } else { @@ -1184,11 +1184,11 @@ public SceneInfo mergeFrom(final JsonSource input) throws IOException { } break; } - case -1591558867: - case -2093663224: { - if (input.isAtField(FieldNames.entryId)) { + case 1787644431: + case 1278860153: { + if (input.isAtField(FieldNames.clientPosVersion)) { if (!input.trySkipNullValue()) { - entryId = input.readUInt32(); + clientPosVersion = input.readUInt32(); bitField0_ |= 0x00000040; } } else { @@ -1196,11 +1196,11 @@ public SceneInfo mergeFrom(final JsonSource input) throws IOException { } break; } - case -1942343836: - case 1328850360: { - if (input.isAtField(FieldNames.lightenSectionList)) { + case 457110456: + case 1703805826: { + if (input.isAtField(FieldNames.groupIdList)) { if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(lightenSectionList); + input.readRepeatedUInt32(groupIdList); bitField0_ |= 0x00000080; } } else { @@ -1208,11 +1208,11 @@ public SceneInfo mergeFrom(final JsonSource input) throws IOException { } break; } - case 457110456: - case 1703805826: { - if (input.isAtField(FieldNames.groupIdList)) { + case -1942343836: + case 1328850360: { + if (input.isAtField(FieldNames.lightenSectionList)) { if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(groupIdList); + input.readRepeatedUInt32(lightenSectionList); bitField0_ |= 0x00000100; } } else { @@ -1232,11 +1232,11 @@ public SceneInfo mergeFrom(final JsonSource input) throws IOException { } break; } - case -914706662: - case 1589108794: { - if (input.isAtField(FieldNames.entityGroupList)) { + case 1415397648: + case 1198817612: { + if (input.isAtField(FieldNames.groupStateList)) { if (!input.trySkipNullValue()) { - input.readRepeatedMessage(entityGroupList); + input.readRepeatedMessage(groupStateList); bitField0_ |= 0x00000400; } } else { @@ -1244,11 +1244,11 @@ public SceneInfo mergeFrom(final JsonSource input) throws IOException { } break; } - case 1415397648: - case 1198817612: { - if (input.isAtField(FieldNames.groupStateList)) { + case -914706662: + case 1589108794: { + if (input.isAtField(FieldNames.entityGroupList)) { if (!input.trySkipNullValue()) { - input.readRepeatedMessage(groupStateList); + input.readRepeatedMessage(entityGroupList); bitField0_ |= 0x00000800; } } else { @@ -1308,29 +1308,29 @@ public SceneInfo create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName worldId = FieldName.forField("worldId", "world_id"); - - static final FieldName leaderEntityId = FieldName.forField("leaderEntityId", "leader_entity_id"); - static final FieldName floorId = FieldName.forField("floorId", "floor_id"); - static final FieldName clientPosVersion = FieldName.forField("clientPosVersion", "client_pos_version"); + static final FieldName entryId = FieldName.forField("entryId", "entry_id"); + + static final FieldName planeId = FieldName.forField("planeId", "plane_id"); static final FieldName gameModeType = FieldName.forField("gameModeType", "game_mode_type"); - static final FieldName planeId = FieldName.forField("planeId", "plane_id"); + static final FieldName worldId = FieldName.forField("worldId", "world_id"); - static final FieldName entryId = FieldName.forField("entryId", "entry_id"); + static final FieldName leaderEntityId = FieldName.forField("leaderEntityId", "leader_entity_id"); - static final FieldName lightenSectionList = FieldName.forField("lightenSectionList", "lighten_section_list"); + static final FieldName clientPosVersion = FieldName.forField("clientPosVersion", "client_pos_version"); static final FieldName groupIdList = FieldName.forField("groupIdList", "group_id_list"); - static final FieldName entityList = FieldName.forField("entityList", "entity_list"); + static final FieldName lightenSectionList = FieldName.forField("lightenSectionList", "lighten_section_list"); - static final FieldName entityGroupList = FieldName.forField("entityGroupList", "entity_group_list"); + static final FieldName entityList = FieldName.forField("entityList", "entity_list"); static final FieldName groupStateList = FieldName.forField("groupStateList", "group_state_list"); + + static final FieldName entityGroupList = FieldName.forField("entityGroupList", "entity_group_list"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/SceneMonsterOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneMonsterOuterClass.java index 4c18b0dd9..83d12cfda 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneMonsterOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneMonsterOuterClass.java @@ -19,19 +19,19 @@ public static final class SceneMonster extends ProtoMessage implem private static final long serialVersionUID = 0L; /** - * optional uint32 cur_hp = 6; + * optional uint32 monster_id = 4; */ - private int curHp; + private int monsterId; /** - * optional uint32 monster_id = 8; + * optional uint32 max_hp = 6; */ - private int monsterId; + private int maxHp; /** - * optional uint32 max_hp = 9; + * optional uint32 cur_hp = 14; */ - private int maxHp; + private int curHp; private SceneMonster() { } @@ -44,113 +44,113 @@ public static SceneMonster newInstance() { } /** - * optional uint32 cur_hp = 6; - * @return whether the curHp field is set + * optional uint32 monster_id = 4; + * @return whether the monsterId field is set */ - public boolean hasCurHp() { + public boolean hasMonsterId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 cur_hp = 6; + * optional uint32 monster_id = 4; * @return this */ - public SceneMonster clearCurHp() { + public SceneMonster clearMonsterId() { bitField0_ &= ~0x00000001; - curHp = 0; + monsterId = 0; return this; } /** - * optional uint32 cur_hp = 6; - * @return the curHp + * optional uint32 monster_id = 4; + * @return the monsterId */ - public int getCurHp() { - return curHp; + public int getMonsterId() { + return monsterId; } /** - * optional uint32 cur_hp = 6; - * @param value the curHp to set + * optional uint32 monster_id = 4; + * @param value the monsterId to set * @return this */ - public SceneMonster setCurHp(final int value) { + public SceneMonster setMonsterId(final int value) { bitField0_ |= 0x00000001; - curHp = value; + monsterId = value; return this; } /** - * optional uint32 monster_id = 8; - * @return whether the monsterId field is set + * optional uint32 max_hp = 6; + * @return whether the maxHp field is set */ - public boolean hasMonsterId() { + public boolean hasMaxHp() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 monster_id = 8; + * optional uint32 max_hp = 6; * @return this */ - public SceneMonster clearMonsterId() { + public SceneMonster clearMaxHp() { bitField0_ &= ~0x00000002; - monsterId = 0; + maxHp = 0; return this; } /** - * optional uint32 monster_id = 8; - * @return the monsterId + * optional uint32 max_hp = 6; + * @return the maxHp */ - public int getMonsterId() { - return monsterId; + public int getMaxHp() { + return maxHp; } /** - * optional uint32 monster_id = 8; - * @param value the monsterId to set + * optional uint32 max_hp = 6; + * @param value the maxHp to set * @return this */ - public SceneMonster setMonsterId(final int value) { + public SceneMonster setMaxHp(final int value) { bitField0_ |= 0x00000002; - monsterId = value; + maxHp = value; return this; } /** - * optional uint32 max_hp = 9; - * @return whether the maxHp field is set + * optional uint32 cur_hp = 14; + * @return whether the curHp field is set */ - public boolean hasMaxHp() { + public boolean hasCurHp() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 max_hp = 9; + * optional uint32 cur_hp = 14; * @return this */ - public SceneMonster clearMaxHp() { + public SceneMonster clearCurHp() { bitField0_ &= ~0x00000004; - maxHp = 0; + curHp = 0; return this; } /** - * optional uint32 max_hp = 9; - * @return the maxHp + * optional uint32 cur_hp = 14; + * @return the curHp */ - public int getMaxHp() { - return maxHp; + public int getCurHp() { + return curHp; } /** - * optional uint32 max_hp = 9; - * @param value the maxHp to set + * optional uint32 cur_hp = 14; + * @param value the curHp to set * @return this */ - public SceneMonster setMaxHp(final int value) { + public SceneMonster setCurHp(final int value) { bitField0_ |= 0x00000004; - maxHp = value; + curHp = value; return this; } @@ -159,9 +159,9 @@ public SceneMonster copyFrom(final SceneMonster other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - curHp = other.curHp; monsterId = other.monsterId; maxHp = other.maxHp; + curHp = other.curHp; } return this; } @@ -172,15 +172,15 @@ public SceneMonster mergeFrom(final SceneMonster other) { return this; } cachedSize = -1; - if (other.hasCurHp()) { - setCurHp(other.curHp); - } if (other.hasMonsterId()) { setMonsterId(other.monsterId); } if (other.hasMaxHp()) { setMaxHp(other.maxHp); } + if (other.hasCurHp()) { + setCurHp(other.curHp); + } return this; } @@ -191,9 +191,9 @@ public SceneMonster clear() { } cachedSize = -1; bitField0_ = 0; - curHp = 0; monsterId = 0; maxHp = 0; + curHp = 0; return this; } @@ -217,24 +217,24 @@ public boolean equals(Object o) { } SceneMonster other = (SceneMonster) o; return bitField0_ == other.bitField0_ - && (!hasCurHp() || curHp == other.curHp) && (!hasMonsterId() || monsterId == other.monsterId) - && (!hasMaxHp() || maxHp == other.maxHp); + && (!hasMaxHp() || maxHp == other.maxHp) + && (!hasCurHp() || curHp == other.curHp); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 48); - output.writeUInt32NoTag(curHp); + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(monsterId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 64); - output.writeUInt32NoTag(monsterId); + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(maxHp); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 72); - output.writeUInt32NoTag(maxHp); + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(curHp); } } @@ -242,13 +242,13 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(curHp); + size += 1 + ProtoSink.computeUInt32SizeNoTag(monsterId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(monsterId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(maxHp); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(maxHp); + size += 1 + ProtoSink.computeUInt32SizeNoTag(curHp); } return size; } @@ -260,27 +260,27 @@ public SceneMonster mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 48: { - // curHp - curHp = input.readUInt32(); + case 32: { + // monsterId + monsterId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 64) { + if (tag != 48) { break; } } - case 64: { - // monsterId - monsterId = input.readUInt32(); + case 48: { + // maxHp + maxHp = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 72) { + if (tag != 112) { break; } } - case 72: { - // maxHp - maxHp = input.readUInt32(); + case 112: { + // curHp + curHp = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 0) { @@ -305,13 +305,13 @@ public SceneMonster mergeFrom(final ProtoSource input) throws IOException { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.curHp, curHp); + output.writeUInt32(FieldNames.monsterId, monsterId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.monsterId, monsterId); + output.writeUInt32(FieldNames.maxHp, maxHp); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.maxHp, maxHp); + output.writeUInt32(FieldNames.curHp, curHp); } output.endObject(); } @@ -323,11 +323,11 @@ public SceneMonster mergeFrom(final JsonSource input) throws IOException { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 95026024: - case -1349138585: { - if (input.isAtField(FieldNames.curHp)) { + case -1316830571: + case 2127946656: { + if (input.isAtField(FieldNames.monsterId)) { if (!input.trySkipNullValue()) { - curHp = input.readUInt32(); + monsterId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -335,11 +335,11 @@ public SceneMonster mergeFrom(final JsonSource input) throws IOException { } break; } - case -1316830571: - case 2127946656: { - if (input.isAtField(FieldNames.monsterId)) { + case 103671180: + case -1081138749: { + if (input.isAtField(FieldNames.maxHp)) { if (!input.trySkipNullValue()) { - monsterId = input.readUInt32(); + maxHp = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -347,11 +347,11 @@ public SceneMonster mergeFrom(final JsonSource input) throws IOException { } break; } - case 103671180: - case -1081138749: { - if (input.isAtField(FieldNames.maxHp)) { + case 95026024: + case -1349138585: { + if (input.isAtField(FieldNames.curHp)) { if (!input.trySkipNullValue()) { - maxHp = input.readUInt32(); + curHp = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -411,11 +411,11 @@ public SceneMonster create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName curHp = FieldName.forField("curHp", "cur_hp"); - static final FieldName monsterId = FieldName.forField("monsterId", "monster_id"); static final FieldName maxHp = FieldName.forField("maxHp", "max_hp"); + + static final FieldName curHp = FieldName.forField("curHp", "cur_hp"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/SceneMonsterWaveOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneMonsterWaveOuterClass.java index 7d0cc14ce..825e4e04a 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneMonsterWaveOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneMonsterWaveOuterClass.java @@ -20,29 +20,29 @@ public static final class SceneMonsterWave extends ProtoMessageoptional uint32 stage_id = 13; + * optional uint32 stage_id = 8; */ private int stageId; /** - * optional uint32 wave_id = 14; + * optional uint32 wave_id = 15; */ private int waveId; /** - * optional .SceneMonsterWaveParam wave_param = 5; + * optional .SceneMonsterWaveParam wave_param = 13; */ private final SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam waveParam = SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam.newInstance(); /** - * repeated .ItemList drop_list = 9; + * repeated .SceneMonster monster_list = 5; */ - private final RepeatedMessage dropList = RepeatedMessage.newEmptyInstance(ItemListOuterClass.ItemList.getFactory()); + private final RepeatedMessage monsterList = RepeatedMessage.newEmptyInstance(SceneMonsterOuterClass.SceneMonster.getFactory()); /** - * repeated .SceneMonster monster_list = 10; + * repeated .ItemList drop_list = 11; */ - private final RepeatedMessage monsterList = RepeatedMessage.newEmptyInstance(SceneMonsterOuterClass.SceneMonster.getFactory()); + private final RepeatedMessage dropList = RepeatedMessage.newEmptyInstance(ItemListOuterClass.ItemList.getFactory()); private SceneMonsterWave() { } @@ -55,7 +55,7 @@ public static SceneMonsterWave newInstance() { } /** - * optional uint32 stage_id = 13; + * optional uint32 stage_id = 8; * @return whether the stageId field is set */ public boolean hasStageId() { @@ -63,7 +63,7 @@ public boolean hasStageId() { } /** - * optional uint32 stage_id = 13; + * optional uint32 stage_id = 8; * @return this */ public SceneMonsterWave clearStageId() { @@ -73,7 +73,7 @@ public SceneMonsterWave clearStageId() { } /** - * optional uint32 stage_id = 13; + * optional uint32 stage_id = 8; * @return the stageId */ public int getStageId() { @@ -81,7 +81,7 @@ public int getStageId() { } /** - * optional uint32 stage_id = 13; + * optional uint32 stage_id = 8; * @param value the stageId to set * @return this */ @@ -92,7 +92,7 @@ public SceneMonsterWave setStageId(final int value) { } /** - * optional uint32 wave_id = 14; + * optional uint32 wave_id = 15; * @return whether the waveId field is set */ public boolean hasWaveId() { @@ -100,7 +100,7 @@ public boolean hasWaveId() { } /** - * optional uint32 wave_id = 14; + * optional uint32 wave_id = 15; * @return this */ public SceneMonsterWave clearWaveId() { @@ -110,7 +110,7 @@ public SceneMonsterWave clearWaveId() { } /** - * optional uint32 wave_id = 14; + * optional uint32 wave_id = 15; * @return the waveId */ public int getWaveId() { @@ -118,7 +118,7 @@ public int getWaveId() { } /** - * optional uint32 wave_id = 14; + * optional uint32 wave_id = 15; * @param value the waveId to set * @return this */ @@ -129,7 +129,7 @@ public SceneMonsterWave setWaveId(final int value) { } /** - * optional .SceneMonsterWaveParam wave_param = 5; + * optional .SceneMonsterWaveParam wave_param = 13; * @return whether the waveParam field is set */ public boolean hasWaveParam() { @@ -137,7 +137,7 @@ public boolean hasWaveParam() { } /** - * optional .SceneMonsterWaveParam wave_param = 5; + * optional .SceneMonsterWaveParam wave_param = 13; * @return this */ public SceneMonsterWave clearWaveParam() { @@ -147,7 +147,7 @@ public SceneMonsterWave clearWaveParam() { } /** - * optional .SceneMonsterWaveParam wave_param = 5; + * optional .SceneMonsterWaveParam wave_param = 13; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -161,7 +161,7 @@ public SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam getWaveParam() { } /** - * optional .SceneMonsterWaveParam wave_param = 5; + * optional .SceneMonsterWaveParam wave_param = 13; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -175,7 +175,7 @@ public SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam getMutableWaveParam } /** - * optional .SceneMonsterWaveParam wave_param = 5; + * optional .SceneMonsterWaveParam wave_param = 13; * @param value the waveParam to set * @return this */ @@ -187,39 +187,39 @@ public SceneMonsterWave setWaveParam( } /** - * repeated .ItemList drop_list = 9; - * @return whether the dropList field is set + * repeated .SceneMonster monster_list = 5; + * @return whether the monsterList field is set */ - public boolean hasDropList() { + public boolean hasMonsterList() { return (bitField0_ & 0x00000008) != 0; } /** - * repeated .ItemList drop_list = 9; + * repeated .SceneMonster monster_list = 5; * @return this */ - public SceneMonsterWave clearDropList() { + public SceneMonsterWave clearMonsterList() { bitField0_ &= ~0x00000008; - dropList.clear(); + monsterList.clear(); return this; } /** - * repeated .ItemList drop_list = 9; + * repeated .SceneMonster monster_list = 5; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableDropList()} if you want to modify it. + * Use {@link #getMutableMonsterList()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedMessage getDropList() { - return dropList; + public RepeatedMessage getMonsterList() { + return monsterList; } /** - * repeated .ItemList drop_list = 9; + * repeated .SceneMonster monster_list = 5; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -227,67 +227,67 @@ public RepeatedMessage getDropList() { * * @return internal storage object for modifications */ - public RepeatedMessage getMutableDropList() { + public RepeatedMessage getMutableMonsterList() { bitField0_ |= 0x00000008; - return dropList; + return monsterList; } /** - * repeated .ItemList drop_list = 9; - * @param value the dropList to add + * repeated .SceneMonster monster_list = 5; + * @param value the monsterList to add * @return this */ - public SceneMonsterWave addDropList(final ItemListOuterClass.ItemList value) { + public SceneMonsterWave addMonsterList(final SceneMonsterOuterClass.SceneMonster value) { bitField0_ |= 0x00000008; - dropList.add(value); + monsterList.add(value); return this; } /** - * repeated .ItemList drop_list = 9; - * @param values the dropList to add + * repeated .SceneMonster monster_list = 5; + * @param values the monsterList to add * @return this */ - public SceneMonsterWave addAllDropList(final ItemListOuterClass.ItemList... values) { + public SceneMonsterWave addAllMonsterList(final SceneMonsterOuterClass.SceneMonster... values) { bitField0_ |= 0x00000008; - dropList.addAll(values); + monsterList.addAll(values); return this; } /** - * repeated .SceneMonster monster_list = 10; - * @return whether the monsterList field is set + * repeated .ItemList drop_list = 11; + * @return whether the dropList field is set */ - public boolean hasMonsterList() { + public boolean hasDropList() { return (bitField0_ & 0x00000010) != 0; } /** - * repeated .SceneMonster monster_list = 10; + * repeated .ItemList drop_list = 11; * @return this */ - public SceneMonsterWave clearMonsterList() { + public SceneMonsterWave clearDropList() { bitField0_ &= ~0x00000010; - monsterList.clear(); + dropList.clear(); return this; } /** - * repeated .SceneMonster monster_list = 10; + * repeated .ItemList drop_list = 11; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableMonsterList()} if you want to modify it. + * Use {@link #getMutableDropList()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedMessage getMonsterList() { - return monsterList; + public RepeatedMessage getDropList() { + return dropList; } /** - * repeated .SceneMonster monster_list = 10; + * repeated .ItemList drop_list = 11; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -295,30 +295,30 @@ public RepeatedMessage getMonsterList() { * * @return internal storage object for modifications */ - public RepeatedMessage getMutableMonsterList() { + public RepeatedMessage getMutableDropList() { bitField0_ |= 0x00000010; - return monsterList; + return dropList; } /** - * repeated .SceneMonster monster_list = 10; - * @param value the monsterList to add + * repeated .ItemList drop_list = 11; + * @param value the dropList to add * @return this */ - public SceneMonsterWave addMonsterList(final SceneMonsterOuterClass.SceneMonster value) { + public SceneMonsterWave addDropList(final ItemListOuterClass.ItemList value) { bitField0_ |= 0x00000010; - monsterList.add(value); + dropList.add(value); return this; } /** - * repeated .SceneMonster monster_list = 10; - * @param values the monsterList to add + * repeated .ItemList drop_list = 11; + * @param values the dropList to add * @return this */ - public SceneMonsterWave addAllMonsterList(final SceneMonsterOuterClass.SceneMonster... values) { + public SceneMonsterWave addAllDropList(final ItemListOuterClass.ItemList... values) { bitField0_ |= 0x00000010; - monsterList.addAll(values); + dropList.addAll(values); return this; } @@ -330,8 +330,8 @@ public SceneMonsterWave copyFrom(final SceneMonsterWave other) { stageId = other.stageId; waveId = other.waveId; waveParam.copyFrom(other.waveParam); - dropList.copyFrom(other.dropList); monsterList.copyFrom(other.monsterList); + dropList.copyFrom(other.dropList); } return this; } @@ -351,12 +351,12 @@ public SceneMonsterWave mergeFrom(final SceneMonsterWave other) { if (other.hasWaveParam()) { getMutableWaveParam().mergeFrom(other.waveParam); } - if (other.hasDropList()) { - getMutableDropList().addAll(other.dropList); - } if (other.hasMonsterList()) { getMutableMonsterList().addAll(other.monsterList); } + if (other.hasDropList()) { + getMutableDropList().addAll(other.dropList); + } return this; } @@ -370,8 +370,8 @@ public SceneMonsterWave clear() { stageId = 0; waveId = 0; waveParam.clear(); - dropList.clear(); monsterList.clear(); + dropList.clear(); return this; } @@ -383,8 +383,8 @@ public SceneMonsterWave clearQuick() { cachedSize = -1; bitField0_ = 0; waveParam.clearQuick(); - dropList.clearQuick(); monsterList.clearQuick(); + dropList.clearQuick(); return this; } @@ -401,34 +401,34 @@ public boolean equals(Object o) { && (!hasStageId() || stageId == other.stageId) && (!hasWaveId() || waveId == other.waveId) && (!hasWaveParam() || waveParam.equals(other.waveParam)) - && (!hasDropList() || dropList.equals(other.dropList)) - && (!hasMonsterList() || monsterList.equals(other.monsterList)); + && (!hasMonsterList() || monsterList.equals(other.monsterList)) + && (!hasDropList() || dropList.equals(other.dropList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 64); output.writeUInt32NoTag(stageId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 120); output.writeUInt32NoTag(waveId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 42); + output.writeRawByte((byte) 106); output.writeMessageNoTag(waveParam); } if ((bitField0_ & 0x00000008) != 0) { - for (int i = 0; i < dropList.length(); i++) { - output.writeRawByte((byte) 74); - output.writeMessageNoTag(dropList.get(i)); + for (int i = 0; i < monsterList.length(); i++) { + output.writeRawByte((byte) 42); + output.writeMessageNoTag(monsterList.get(i)); } } if ((bitField0_ & 0x00000010) != 0) { - for (int i = 0; i < monsterList.length(); i++) { - output.writeRawByte((byte) 82); - output.writeMessageNoTag(monsterList.get(i)); + for (int i = 0; i < dropList.length(); i++) { + output.writeRawByte((byte) 90); + output.writeMessageNoTag(dropList.get(i)); } } } @@ -446,10 +446,10 @@ protected int computeSerializedSize() { size += 1 + ProtoSink.computeMessageSizeNoTag(waveParam); } if ((bitField0_ & 0x00000008) != 0) { - size += (1 * dropList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(dropList); + size += (1 * monsterList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(monsterList); } if ((bitField0_ & 0x00000010) != 0) { - size += (1 * monsterList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(monsterList); + size += (1 * dropList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(dropList); } return size; } @@ -461,44 +461,44 @@ public SceneMonsterWave mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 104: { + case 64: { // stageId stageId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 112) { + if (tag != 120) { break; } } - case 112: { + case 120: { // waveId waveId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 42) { + if (tag != 106) { break; } } - case 42: { + case 106: { // waveParam input.readMessage(waveParam); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 74) { + if (tag != 42) { break; } } - case 74: { - // dropList - tag = input.readRepeatedMessage(dropList, tag); + case 42: { + // monsterList + tag = input.readRepeatedMessage(monsterList, tag); bitField0_ |= 0x00000008; - if (tag != 82) { + if (tag != 90) { break; } } - case 82: { - // monsterList - tag = input.readRepeatedMessage(monsterList, tag); + case 90: { + // dropList + tag = input.readRepeatedMessage(dropList, tag); bitField0_ |= 0x00000010; if (tag != 0) { break; @@ -531,10 +531,10 @@ public void writeTo(final JsonSink output) throws IOException { output.writeMessage(FieldNames.waveParam, waveParam); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRepeatedMessage(FieldNames.dropList, dropList); + output.writeRepeatedMessage(FieldNames.monsterList, monsterList); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRepeatedMessage(FieldNames.monsterList, monsterList); + output.writeRepeatedMessage(FieldNames.dropList, dropList); } output.endObject(); } @@ -582,11 +582,11 @@ public SceneMonsterWave mergeFrom(final JsonSource input) throws IOException { } break; } - case -432782291: - case -513722386: { - if (input.isAtField(FieldNames.dropList)) { + case 1541271448: + case 552401379: { + if (input.isAtField(FieldNames.monsterList)) { if (!input.trySkipNullValue()) { - input.readRepeatedMessage(dropList); + input.readRepeatedMessage(monsterList); bitField0_ |= 0x00000008; } } else { @@ -594,11 +594,11 @@ public SceneMonsterWave mergeFrom(final JsonSource input) throws IOException { } break; } - case 1541271448: - case 552401379: { - if (input.isAtField(FieldNames.monsterList)) { + case -432782291: + case -513722386: { + if (input.isAtField(FieldNames.dropList)) { if (!input.trySkipNullValue()) { - input.readRepeatedMessage(monsterList); + input.readRepeatedMessage(dropList); bitField0_ |= 0x00000010; } } else { @@ -665,9 +665,9 @@ static class FieldNames { static final FieldName waveParam = FieldName.forField("waveParam", "wave_param"); - static final FieldName dropList = FieldName.forField("dropList", "drop_list"); - static final FieldName monsterList = FieldName.forField("monsterList", "monster_list"); + + static final FieldName dropList = FieldName.forField("dropList", "drop_list"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/SceneMonsterWaveParamOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneMonsterWaveParamOuterClass.java index cb524ec77..d361377f1 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneMonsterWaveParamOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneMonsterWaveParamOuterClass.java @@ -19,7 +19,7 @@ public static final class SceneMonsterWaveParam extends ProtoMessageoptional uint32 level = 13; + * optional uint32 level = 8; */ private int level; @@ -34,7 +34,7 @@ public static SceneMonsterWaveParam newInstance() { } /** - * optional uint32 level = 13; + * optional uint32 level = 8; * @return whether the level field is set */ public boolean hasLevel() { @@ -42,7 +42,7 @@ public boolean hasLevel() { } /** - * optional uint32 level = 13; + * optional uint32 level = 8; * @return this */ public SceneMonsterWaveParam clearLevel() { @@ -52,7 +52,7 @@ public SceneMonsterWaveParam clearLevel() { } /** - * optional uint32 level = 13; + * optional uint32 level = 8; * @return the level */ public int getLevel() { @@ -60,7 +60,7 @@ public int getLevel() { } /** - * optional uint32 level = 13; + * optional uint32 level = 8; * @param value the level to set * @return this */ @@ -129,7 +129,7 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 64); output.writeUInt32NoTag(level); } } @@ -150,7 +150,7 @@ public SceneMonsterWaveParam mergeFrom(final ProtoSource input) throws IOExcepti int tag = input.readTag(); while (true) { switch (tag) { - case 104: { + case 64: { // level level = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/SceneNpcInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneNpcInfoOuterClass.java index 985fbff65..848fee259 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneNpcInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneNpcInfoOuterClass.java @@ -19,12 +19,12 @@ public static final class SceneNpcInfo extends ProtoMessage implem private static final long serialVersionUID = 0L; /** - * optional uint32 npc_id = 11; + * optional uint32 npc_id = 12; */ private int npcId; /** - * optional .NpcExtraInfo extra_info = 6; + * optional .NpcExtraInfo extra_info = 13; */ private final NpcExtraInfoOuterClass.NpcExtraInfo extraInfo = NpcExtraInfoOuterClass.NpcExtraInfo.newInstance(); @@ -39,7 +39,7 @@ public static SceneNpcInfo newInstance() { } /** - * optional uint32 npc_id = 11; + * optional uint32 npc_id = 12; * @return whether the npcId field is set */ public boolean hasNpcId() { @@ -47,7 +47,7 @@ public boolean hasNpcId() { } /** - * optional uint32 npc_id = 11; + * optional uint32 npc_id = 12; * @return this */ public SceneNpcInfo clearNpcId() { @@ -57,7 +57,7 @@ public SceneNpcInfo clearNpcId() { } /** - * optional uint32 npc_id = 11; + * optional uint32 npc_id = 12; * @return the npcId */ public int getNpcId() { @@ -65,7 +65,7 @@ public int getNpcId() { } /** - * optional uint32 npc_id = 11; + * optional uint32 npc_id = 12; * @param value the npcId to set * @return this */ @@ -76,7 +76,7 @@ public SceneNpcInfo setNpcId(final int value) { } /** - * optional .NpcExtraInfo extra_info = 6; + * optional .NpcExtraInfo extra_info = 13; * @return whether the extraInfo field is set */ public boolean hasExtraInfo() { @@ -84,7 +84,7 @@ public boolean hasExtraInfo() { } /** - * optional .NpcExtraInfo extra_info = 6; + * optional .NpcExtraInfo extra_info = 13; * @return this */ public SceneNpcInfo clearExtraInfo() { @@ -94,7 +94,7 @@ public SceneNpcInfo clearExtraInfo() { } /** - * optional .NpcExtraInfo extra_info = 6; + * optional .NpcExtraInfo extra_info = 13; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -108,7 +108,7 @@ public NpcExtraInfoOuterClass.NpcExtraInfo getExtraInfo() { } /** - * optional .NpcExtraInfo extra_info = 6; + * optional .NpcExtraInfo extra_info = 13; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -122,7 +122,7 @@ public NpcExtraInfoOuterClass.NpcExtraInfo getMutableExtraInfo() { } /** - * optional .NpcExtraInfo extra_info = 6; + * optional .NpcExtraInfo extra_info = 13; * @param value the extraInfo to set * @return this */ @@ -198,11 +198,11 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 96); output.writeUInt32NoTag(npcId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 50); + output.writeRawByte((byte) 106); output.writeMessageNoTag(extraInfo); } } @@ -226,16 +226,16 @@ public SceneNpcInfo mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 88: { + case 96: { // npcId npcId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 50) { + if (tag != 106) { break; } } - case 50: { + case 106: { // extraInfo input.readMessage(extraInfo); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/SceneNpcMonsterInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneNpcMonsterInfoOuterClass.java index a70fec123..29d720d45 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneNpcMonsterInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneNpcMonsterInfoOuterClass.java @@ -19,19 +19,19 @@ public static final class SceneNpcMonsterInfo extends ProtoMessageoptional uint32 monster_id = 6; + * optional uint32 world_level = 4; */ - private int monsterId; + private int worldLevel; /** - * optional uint32 event_id = 8; + * optional uint32 event_id = 7; */ private int eventId; /** - * optional uint32 world_level = 12; + * optional uint32 monster_id = 8; */ - private int worldLevel; + private int monsterId; private SceneNpcMonsterInfo() { } @@ -44,44 +44,44 @@ public static SceneNpcMonsterInfo newInstance() { } /** - * optional uint32 monster_id = 6; - * @return whether the monsterId field is set + * optional uint32 world_level = 4; + * @return whether the worldLevel field is set */ - public boolean hasMonsterId() { + public boolean hasWorldLevel() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 monster_id = 6; + * optional uint32 world_level = 4; * @return this */ - public SceneNpcMonsterInfo clearMonsterId() { + public SceneNpcMonsterInfo clearWorldLevel() { bitField0_ &= ~0x00000001; - monsterId = 0; + worldLevel = 0; return this; } /** - * optional uint32 monster_id = 6; - * @return the monsterId + * optional uint32 world_level = 4; + * @return the worldLevel */ - public int getMonsterId() { - return monsterId; + public int getWorldLevel() { + return worldLevel; } /** - * optional uint32 monster_id = 6; - * @param value the monsterId to set + * optional uint32 world_level = 4; + * @param value the worldLevel to set * @return this */ - public SceneNpcMonsterInfo setMonsterId(final int value) { + public SceneNpcMonsterInfo setWorldLevel(final int value) { bitField0_ |= 0x00000001; - monsterId = value; + worldLevel = value; return this; } /** - * optional uint32 event_id = 8; + * optional uint32 event_id = 7; * @return whether the eventId field is set */ public boolean hasEventId() { @@ -89,7 +89,7 @@ public boolean hasEventId() { } /** - * optional uint32 event_id = 8; + * optional uint32 event_id = 7; * @return this */ public SceneNpcMonsterInfo clearEventId() { @@ -99,7 +99,7 @@ public SceneNpcMonsterInfo clearEventId() { } /** - * optional uint32 event_id = 8; + * optional uint32 event_id = 7; * @return the eventId */ public int getEventId() { @@ -107,7 +107,7 @@ public int getEventId() { } /** - * optional uint32 event_id = 8; + * optional uint32 event_id = 7; * @param value the eventId to set * @return this */ @@ -118,39 +118,39 @@ public SceneNpcMonsterInfo setEventId(final int value) { } /** - * optional uint32 world_level = 12; - * @return whether the worldLevel field is set + * optional uint32 monster_id = 8; + * @return whether the monsterId field is set */ - public boolean hasWorldLevel() { + public boolean hasMonsterId() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 world_level = 12; + * optional uint32 monster_id = 8; * @return this */ - public SceneNpcMonsterInfo clearWorldLevel() { + public SceneNpcMonsterInfo clearMonsterId() { bitField0_ &= ~0x00000004; - worldLevel = 0; + monsterId = 0; return this; } /** - * optional uint32 world_level = 12; - * @return the worldLevel + * optional uint32 monster_id = 8; + * @return the monsterId */ - public int getWorldLevel() { - return worldLevel; + public int getMonsterId() { + return monsterId; } /** - * optional uint32 world_level = 12; - * @param value the worldLevel to set + * optional uint32 monster_id = 8; + * @param value the monsterId to set * @return this */ - public SceneNpcMonsterInfo setWorldLevel(final int value) { + public SceneNpcMonsterInfo setMonsterId(final int value) { bitField0_ |= 0x00000004; - worldLevel = value; + monsterId = value; return this; } @@ -159,9 +159,9 @@ public SceneNpcMonsterInfo copyFrom(final SceneNpcMonsterInfo other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - monsterId = other.monsterId; - eventId = other.eventId; worldLevel = other.worldLevel; + eventId = other.eventId; + monsterId = other.monsterId; } return this; } @@ -172,14 +172,14 @@ public SceneNpcMonsterInfo mergeFrom(final SceneNpcMonsterInfo other) { return this; } cachedSize = -1; - if (other.hasMonsterId()) { - setMonsterId(other.monsterId); + if (other.hasWorldLevel()) { + setWorldLevel(other.worldLevel); } if (other.hasEventId()) { setEventId(other.eventId); } - if (other.hasWorldLevel()) { - setWorldLevel(other.worldLevel); + if (other.hasMonsterId()) { + setMonsterId(other.monsterId); } return this; } @@ -191,9 +191,9 @@ public SceneNpcMonsterInfo clear() { } cachedSize = -1; bitField0_ = 0; - monsterId = 0; - eventId = 0; worldLevel = 0; + eventId = 0; + monsterId = 0; return this; } @@ -217,24 +217,24 @@ public boolean equals(Object o) { } SceneNpcMonsterInfo other = (SceneNpcMonsterInfo) o; return bitField0_ == other.bitField0_ - && (!hasMonsterId() || monsterId == other.monsterId) + && (!hasWorldLevel() || worldLevel == other.worldLevel) && (!hasEventId() || eventId == other.eventId) - && (!hasWorldLevel() || worldLevel == other.worldLevel); + && (!hasMonsterId() || monsterId == other.monsterId); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 48); - output.writeUInt32NoTag(monsterId); + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(worldLevel); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 56); output.writeUInt32NoTag(eventId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 96); - output.writeUInt32NoTag(worldLevel); + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(monsterId); } } @@ -242,13 +242,13 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(monsterId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(worldLevel); } if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(eventId); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(worldLevel); + size += 1 + ProtoSink.computeUInt32SizeNoTag(monsterId); } return size; } @@ -260,27 +260,27 @@ public SceneNpcMonsterInfo mergeFrom(final ProtoSource input) throws IOException int tag = input.readTag(); while (true) { switch (tag) { - case 48: { - // monsterId - monsterId = input.readUInt32(); + case 32: { + // worldLevel + worldLevel = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 64) { + if (tag != 56) { break; } } - case 64: { + case 56: { // eventId eventId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 96) { + if (tag != 64) { break; } } - case 96: { - // worldLevel - worldLevel = input.readUInt32(); + case 64: { + // monsterId + monsterId = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 0) { @@ -305,13 +305,13 @@ public SceneNpcMonsterInfo mergeFrom(final ProtoSource input) throws IOException public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.monsterId, monsterId); + output.writeUInt32(FieldNames.worldLevel, worldLevel); } if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.eventId, eventId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.worldLevel, worldLevel); + output.writeUInt32(FieldNames.monsterId, monsterId); } output.endObject(); } @@ -323,11 +323,11 @@ public SceneNpcMonsterInfo mergeFrom(final JsonSource input) throws IOException } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -1316830571: - case 2127946656: { - if (input.isAtField(FieldNames.monsterId)) { + case 440007442: + case 1305257111: { + if (input.isAtField(FieldNames.worldLevel)) { if (!input.trySkipNullValue()) { - monsterId = input.readUInt32(); + worldLevel = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -347,11 +347,11 @@ public SceneNpcMonsterInfo mergeFrom(final JsonSource input) throws IOException } break; } - case 440007442: - case 1305257111: { - if (input.isAtField(FieldNames.worldLevel)) { + case -1316830571: + case 2127946656: { + if (input.isAtField(FieldNames.monsterId)) { if (!input.trySkipNullValue()) { - worldLevel = input.readUInt32(); + monsterId = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -412,11 +412,11 @@ public SceneNpcMonsterInfo create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName monsterId = FieldName.forField("monsterId", "monster_id"); + static final FieldName worldLevel = FieldName.forField("worldLevel", "world_level"); static final FieldName eventId = FieldName.forField("eventId", "event_id"); - static final FieldName worldLevel = FieldName.forField("worldLevel", "world_level"); + static final FieldName monsterId = FieldName.forField("monsterId", "monster_id"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/ScenePlaneEventScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/ScenePlaneEventScNotifyOuterClass.java index 8ef58f902..a9c1947e1 100644 --- a/src/generated/main/emu/lunarcore/proto/ScenePlaneEventScNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ScenePlaneEventScNotifyOuterClass.java @@ -19,7 +19,7 @@ public static final class ScenePlaneEventScNotify extends ProtoMessageoptional .ItemList get_item_list = 13; + * optional .ItemList get_item_list = 8; */ private final ItemListOuterClass.ItemList getItemList = ItemListOuterClass.ItemList.newInstance(); @@ -34,7 +34,7 @@ public static ScenePlaneEventScNotify newInstance() { } /** - * optional .ItemList get_item_list = 13; + * optional .ItemList get_item_list = 8; * @return whether the getItemList field is set */ public boolean hasGetItemList() { @@ -42,7 +42,7 @@ public boolean hasGetItemList() { } /** - * optional .ItemList get_item_list = 13; + * optional .ItemList get_item_list = 8; * @return this */ public ScenePlaneEventScNotify clearGetItemList() { @@ -52,7 +52,7 @@ public ScenePlaneEventScNotify clearGetItemList() { } /** - * optional .ItemList get_item_list = 13; + * optional .ItemList get_item_list = 8; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -66,7 +66,7 @@ public ItemListOuterClass.ItemList getGetItemList() { } /** - * optional .ItemList get_item_list = 13; + * optional .ItemList get_item_list = 8; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -80,7 +80,7 @@ public ItemListOuterClass.ItemList getMutableGetItemList() { } /** - * optional .ItemList get_item_list = 13; + * optional .ItemList get_item_list = 8; * @param value the getItemList to set * @return this */ @@ -150,7 +150,7 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 106); + output.writeRawByte((byte) 66); output.writeMessageNoTag(getItemList); } } @@ -171,7 +171,7 @@ public ScenePlaneEventScNotify mergeFrom(final ProtoSource input) throws IOExcep int tag = input.readTag(); while (true) { switch (tag) { - case 106: { + case 66: { // getItemList input.readMessage(getItemList); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/ScenePropInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/ScenePropInfoOuterClass.java index 74273ea55..04d7c0b72 100644 --- a/src/generated/main/emu/lunarcore/proto/ScenePropInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ScenePropInfoOuterClass.java @@ -19,27 +19,27 @@ public static final class ScenePropInfo extends ProtoMessage impl private static final long serialVersionUID = 0L; /** - * optional uint64 create_time_ms = 10; + * optional uint64 create_time_ms = 11; */ private long createTimeMs; /** - * optional uint32 prop_id = 2; + * optional uint32 prop_id = 1; */ private int propId; /** - * optional uint32 life_time_ms = 13; + * optional uint32 prop_state = 5; */ - private int lifeTimeMs; + private int propState; /** - * optional uint32 prop_state = 14; + * optional uint32 life_time_ms = 6; */ - private int propState; + private int lifeTimeMs; /** - * optional .PropExtraInfo extra_info = 7; + * optional .PropExtraInfo extra_info = 15; */ private final PropExtraInfoOuterClass.PropExtraInfo extraInfo = PropExtraInfoOuterClass.PropExtraInfo.newInstance(); @@ -54,7 +54,7 @@ public static ScenePropInfo newInstance() { } /** - * optional uint64 create_time_ms = 10; + * optional uint64 create_time_ms = 11; * @return whether the createTimeMs field is set */ public boolean hasCreateTimeMs() { @@ -62,7 +62,7 @@ public boolean hasCreateTimeMs() { } /** - * optional uint64 create_time_ms = 10; + * optional uint64 create_time_ms = 11; * @return this */ public ScenePropInfo clearCreateTimeMs() { @@ -72,7 +72,7 @@ public ScenePropInfo clearCreateTimeMs() { } /** - * optional uint64 create_time_ms = 10; + * optional uint64 create_time_ms = 11; * @return the createTimeMs */ public long getCreateTimeMs() { @@ -80,7 +80,7 @@ public long getCreateTimeMs() { } /** - * optional uint64 create_time_ms = 10; + * optional uint64 create_time_ms = 11; * @param value the createTimeMs to set * @return this */ @@ -91,7 +91,7 @@ public ScenePropInfo setCreateTimeMs(final long value) { } /** - * optional uint32 prop_id = 2; + * optional uint32 prop_id = 1; * @return whether the propId field is set */ public boolean hasPropId() { @@ -99,7 +99,7 @@ public boolean hasPropId() { } /** - * optional uint32 prop_id = 2; + * optional uint32 prop_id = 1; * @return this */ public ScenePropInfo clearPropId() { @@ -109,7 +109,7 @@ public ScenePropInfo clearPropId() { } /** - * optional uint32 prop_id = 2; + * optional uint32 prop_id = 1; * @return the propId */ public int getPropId() { @@ -117,7 +117,7 @@ public int getPropId() { } /** - * optional uint32 prop_id = 2; + * optional uint32 prop_id = 1; * @param value the propId to set * @return this */ @@ -128,81 +128,81 @@ public ScenePropInfo setPropId(final int value) { } /** - * optional uint32 life_time_ms = 13; - * @return whether the lifeTimeMs field is set + * optional uint32 prop_state = 5; + * @return whether the propState field is set */ - public boolean hasLifeTimeMs() { + public boolean hasPropState() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 life_time_ms = 13; + * optional uint32 prop_state = 5; * @return this */ - public ScenePropInfo clearLifeTimeMs() { + public ScenePropInfo clearPropState() { bitField0_ &= ~0x00000004; - lifeTimeMs = 0; + propState = 0; return this; } /** - * optional uint32 life_time_ms = 13; - * @return the lifeTimeMs + * optional uint32 prop_state = 5; + * @return the propState */ - public int getLifeTimeMs() { - return lifeTimeMs; + public int getPropState() { + return propState; } /** - * optional uint32 life_time_ms = 13; - * @param value the lifeTimeMs to set + * optional uint32 prop_state = 5; + * @param value the propState to set * @return this */ - public ScenePropInfo setLifeTimeMs(final int value) { + public ScenePropInfo setPropState(final int value) { bitField0_ |= 0x00000004; - lifeTimeMs = value; + propState = value; return this; } /** - * optional uint32 prop_state = 14; - * @return whether the propState field is set + * optional uint32 life_time_ms = 6; + * @return whether the lifeTimeMs field is set */ - public boolean hasPropState() { + public boolean hasLifeTimeMs() { return (bitField0_ & 0x00000008) != 0; } /** - * optional uint32 prop_state = 14; + * optional uint32 life_time_ms = 6; * @return this */ - public ScenePropInfo clearPropState() { + public ScenePropInfo clearLifeTimeMs() { bitField0_ &= ~0x00000008; - propState = 0; + lifeTimeMs = 0; return this; } /** - * optional uint32 prop_state = 14; - * @return the propState + * optional uint32 life_time_ms = 6; + * @return the lifeTimeMs */ - public int getPropState() { - return propState; + public int getLifeTimeMs() { + return lifeTimeMs; } /** - * optional uint32 prop_state = 14; - * @param value the propState to set + * optional uint32 life_time_ms = 6; + * @param value the lifeTimeMs to set * @return this */ - public ScenePropInfo setPropState(final int value) { + public ScenePropInfo setLifeTimeMs(final int value) { bitField0_ |= 0x00000008; - propState = value; + lifeTimeMs = value; return this; } /** - * optional .PropExtraInfo extra_info = 7; + * optional .PropExtraInfo extra_info = 15; * @return whether the extraInfo field is set */ public boolean hasExtraInfo() { @@ -210,7 +210,7 @@ public boolean hasExtraInfo() { } /** - * optional .PropExtraInfo extra_info = 7; + * optional .PropExtraInfo extra_info = 15; * @return this */ public ScenePropInfo clearExtraInfo() { @@ -220,7 +220,7 @@ public ScenePropInfo clearExtraInfo() { } /** - * optional .PropExtraInfo extra_info = 7; + * optional .PropExtraInfo extra_info = 15; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -234,7 +234,7 @@ public PropExtraInfoOuterClass.PropExtraInfo getExtraInfo() { } /** - * optional .PropExtraInfo extra_info = 7; + * optional .PropExtraInfo extra_info = 15; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -248,7 +248,7 @@ public PropExtraInfoOuterClass.PropExtraInfo getMutableExtraInfo() { } /** - * optional .PropExtraInfo extra_info = 7; + * optional .PropExtraInfo extra_info = 15; * @param value the extraInfo to set * @return this */ @@ -265,8 +265,8 @@ public ScenePropInfo copyFrom(final ScenePropInfo other) { bitField0_ = other.bitField0_; createTimeMs = other.createTimeMs; propId = other.propId; - lifeTimeMs = other.lifeTimeMs; propState = other.propState; + lifeTimeMs = other.lifeTimeMs; extraInfo.copyFrom(other.extraInfo); } return this; @@ -284,12 +284,12 @@ public ScenePropInfo mergeFrom(final ScenePropInfo other) { if (other.hasPropId()) { setPropId(other.propId); } - if (other.hasLifeTimeMs()) { - setLifeTimeMs(other.lifeTimeMs); - } if (other.hasPropState()) { setPropState(other.propState); } + if (other.hasLifeTimeMs()) { + setLifeTimeMs(other.lifeTimeMs); + } if (other.hasExtraInfo()) { getMutableExtraInfo().mergeFrom(other.extraInfo); } @@ -305,8 +305,8 @@ public ScenePropInfo clear() { bitField0_ = 0; createTimeMs = 0L; propId = 0; - lifeTimeMs = 0; propState = 0; + lifeTimeMs = 0; extraInfo.clear(); return this; } @@ -334,31 +334,31 @@ public boolean equals(Object o) { return bitField0_ == other.bitField0_ && (!hasCreateTimeMs() || createTimeMs == other.createTimeMs) && (!hasPropId() || propId == other.propId) - && (!hasLifeTimeMs() || lifeTimeMs == other.lifeTimeMs) && (!hasPropState() || propState == other.propState) + && (!hasLifeTimeMs() || lifeTimeMs == other.lifeTimeMs) && (!hasExtraInfo() || extraInfo.equals(other.extraInfo)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 88); output.writeUInt64NoTag(createTimeMs); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 16); + output.writeRawByte((byte) 8); output.writeUInt32NoTag(propId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 104); - output.writeUInt32NoTag(lifeTimeMs); + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(propState); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 112); - output.writeUInt32NoTag(propState); + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(lifeTimeMs); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 58); + output.writeRawByte((byte) 122); output.writeMessageNoTag(extraInfo); } } @@ -373,10 +373,10 @@ protected int computeSerializedSize() { size += 1 + ProtoSink.computeUInt32SizeNoTag(propId); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(lifeTimeMs); + size += 1 + ProtoSink.computeUInt32SizeNoTag(propState); } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(propState); + size += 1 + ProtoSink.computeUInt32SizeNoTag(lifeTimeMs); } if ((bitField0_ & 0x00000010) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(extraInfo); @@ -391,43 +391,43 @@ public ScenePropInfo mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 80: { + case 88: { // createTimeMs createTimeMs = input.readUInt64(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 16) { + if (tag != 8) { break; } } - case 16: { + case 8: { // propId propId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 104) { + if (tag != 40) { break; } } - case 104: { - // lifeTimeMs - lifeTimeMs = input.readUInt32(); + case 40: { + // propState + propState = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 112) { + if (tag != 48) { break; } } - case 112: { - // propState - propState = input.readUInt32(); + case 48: { + // lifeTimeMs + lifeTimeMs = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 58) { + if (tag != 122) { break; } } - case 58: { + case 122: { // extraInfo input.readMessage(extraInfo); bitField0_ |= 0x00000010; @@ -460,10 +460,10 @@ public void writeTo(final JsonSink output) throws IOException { output.writeUInt32(FieldNames.propId, propId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.lifeTimeMs, lifeTimeMs); + output.writeUInt32(FieldNames.propState, propState); } if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.propState, propState); + output.writeUInt32(FieldNames.lifeTimeMs, lifeTimeMs); } if ((bitField0_ & 0x00000010) != 0) { output.writeMessage(FieldNames.extraInfo, extraInfo); @@ -502,11 +502,11 @@ public ScenePropInfo mergeFrom(final JsonSource input) throws IOException { } break; } - case -1226028177: - case 1665182229: { - if (input.isAtField(FieldNames.lifeTimeMs)) { + case -739191058: + case -1096911691: { + if (input.isAtField(FieldNames.propState)) { if (!input.trySkipNullValue()) { - lifeTimeMs = input.readUInt32(); + propState = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -514,11 +514,11 @@ public ScenePropInfo mergeFrom(final JsonSource input) throws IOException { } break; } - case -739191058: - case -1096911691: { - if (input.isAtField(FieldNames.propState)) { + case -1226028177: + case 1665182229: { + if (input.isAtField(FieldNames.lifeTimeMs)) { if (!input.trySkipNullValue()) { - propState = input.readUInt32(); + lifeTimeMs = input.readUInt32(); bitField0_ |= 0x00000008; } } else { @@ -594,10 +594,10 @@ static class FieldNames { static final FieldName propId = FieldName.forField("propId", "prop_id"); - static final FieldName lifeTimeMs = FieldName.forField("lifeTimeMs", "life_time_ms"); - static final FieldName propState = FieldName.forField("propState", "prop_state"); + static final FieldName lifeTimeMs = FieldName.forField("lifeTimeMs", "life_time_ms"); + static final FieldName extraInfo = FieldName.forField("extraInfo", "extra_info"); } } diff --git a/src/generated/main/emu/lunarcore/proto/SceneSummonUnitInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneSummonUnitInfoOuterClass.java index 12798d184..2101248ee 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneSummonUnitInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneSummonUnitInfoOuterClass.java @@ -20,32 +20,32 @@ public static final class SceneSummonUnitInfo extends ProtoMessageoptional uint64 create_time_ms = 14; + * optional uint64 create_time_ms = 7; */ private long createTimeMs; /** - * optional int32 life_time_ms = 6; + * optional uint32 summon_unit_id = 2; */ - private int lifeTimeMs; + private int summonUnitId; /** - * optional uint32 caster_entity_id = 11; + * optional uint32 caster_entity_id = 9; */ private int casterEntityId; /** - * optional uint32 attach_entity_id = 12; + * optional uint32 attach_entity_id = 11; */ private int attachEntityId; /** - * optional uint32 summon_unit_id = 13; + * optional sint32 life_time_ms = 8; */ - private int summonUnitId; + private int lifeTimeMs; /** - * repeated string custom_triggers = 3; + * repeated string custom_triggers = 4; */ private final RepeatedString customTriggers = RepeatedString.newEmptyInstance(); @@ -60,7 +60,7 @@ public static SceneSummonUnitInfo newInstance() { } /** - * optional uint64 create_time_ms = 14; + * optional uint64 create_time_ms = 7; * @return whether the createTimeMs field is set */ public boolean hasCreateTimeMs() { @@ -68,7 +68,7 @@ public boolean hasCreateTimeMs() { } /** - * optional uint64 create_time_ms = 14; + * optional uint64 create_time_ms = 7; * @return this */ public SceneSummonUnitInfo clearCreateTimeMs() { @@ -78,7 +78,7 @@ public SceneSummonUnitInfo clearCreateTimeMs() { } /** - * optional uint64 create_time_ms = 14; + * optional uint64 create_time_ms = 7; * @return the createTimeMs */ public long getCreateTimeMs() { @@ -86,7 +86,7 @@ public long getCreateTimeMs() { } /** - * optional uint64 create_time_ms = 14; + * optional uint64 create_time_ms = 7; * @param value the createTimeMs to set * @return this */ @@ -97,44 +97,44 @@ public SceneSummonUnitInfo setCreateTimeMs(final long value) { } /** - * optional int32 life_time_ms = 6; - * @return whether the lifeTimeMs field is set + * optional uint32 summon_unit_id = 2; + * @return whether the summonUnitId field is set */ - public boolean hasLifeTimeMs() { + public boolean hasSummonUnitId() { return (bitField0_ & 0x00000002) != 0; } /** - * optional int32 life_time_ms = 6; + * optional uint32 summon_unit_id = 2; * @return this */ - public SceneSummonUnitInfo clearLifeTimeMs() { + public SceneSummonUnitInfo clearSummonUnitId() { bitField0_ &= ~0x00000002; - lifeTimeMs = 0; + summonUnitId = 0; return this; } /** - * optional int32 life_time_ms = 6; - * @return the lifeTimeMs + * optional uint32 summon_unit_id = 2; + * @return the summonUnitId */ - public int getLifeTimeMs() { - return lifeTimeMs; + public int getSummonUnitId() { + return summonUnitId; } /** - * optional int32 life_time_ms = 6; - * @param value the lifeTimeMs to set + * optional uint32 summon_unit_id = 2; + * @param value the summonUnitId to set * @return this */ - public SceneSummonUnitInfo setLifeTimeMs(final int value) { + public SceneSummonUnitInfo setSummonUnitId(final int value) { bitField0_ |= 0x00000002; - lifeTimeMs = value; + summonUnitId = value; return this; } /** - * optional uint32 caster_entity_id = 11; + * optional uint32 caster_entity_id = 9; * @return whether the casterEntityId field is set */ public boolean hasCasterEntityId() { @@ -142,7 +142,7 @@ public boolean hasCasterEntityId() { } /** - * optional uint32 caster_entity_id = 11; + * optional uint32 caster_entity_id = 9; * @return this */ public SceneSummonUnitInfo clearCasterEntityId() { @@ -152,7 +152,7 @@ public SceneSummonUnitInfo clearCasterEntityId() { } /** - * optional uint32 caster_entity_id = 11; + * optional uint32 caster_entity_id = 9; * @return the casterEntityId */ public int getCasterEntityId() { @@ -160,7 +160,7 @@ public int getCasterEntityId() { } /** - * optional uint32 caster_entity_id = 11; + * optional uint32 caster_entity_id = 9; * @param value the casterEntityId to set * @return this */ @@ -171,7 +171,7 @@ public SceneSummonUnitInfo setCasterEntityId(final int value) { } /** - * optional uint32 attach_entity_id = 12; + * optional uint32 attach_entity_id = 11; * @return whether the attachEntityId field is set */ public boolean hasAttachEntityId() { @@ -179,7 +179,7 @@ public boolean hasAttachEntityId() { } /** - * optional uint32 attach_entity_id = 12; + * optional uint32 attach_entity_id = 11; * @return this */ public SceneSummonUnitInfo clearAttachEntityId() { @@ -189,7 +189,7 @@ public SceneSummonUnitInfo clearAttachEntityId() { } /** - * optional uint32 attach_entity_id = 12; + * optional uint32 attach_entity_id = 11; * @return the attachEntityId */ public int getAttachEntityId() { @@ -197,7 +197,7 @@ public int getAttachEntityId() { } /** - * optional uint32 attach_entity_id = 12; + * optional uint32 attach_entity_id = 11; * @param value the attachEntityId to set * @return this */ @@ -208,44 +208,44 @@ public SceneSummonUnitInfo setAttachEntityId(final int value) { } /** - * optional uint32 summon_unit_id = 13; - * @return whether the summonUnitId field is set + * optional sint32 life_time_ms = 8; + * @return whether the lifeTimeMs field is set */ - public boolean hasSummonUnitId() { + public boolean hasLifeTimeMs() { return (bitField0_ & 0x00000010) != 0; } /** - * optional uint32 summon_unit_id = 13; + * optional sint32 life_time_ms = 8; * @return this */ - public SceneSummonUnitInfo clearSummonUnitId() { + public SceneSummonUnitInfo clearLifeTimeMs() { bitField0_ &= ~0x00000010; - summonUnitId = 0; + lifeTimeMs = 0; return this; } /** - * optional uint32 summon_unit_id = 13; - * @return the summonUnitId + * optional sint32 life_time_ms = 8; + * @return the lifeTimeMs */ - public int getSummonUnitId() { - return summonUnitId; + public int getLifeTimeMs() { + return lifeTimeMs; } /** - * optional uint32 summon_unit_id = 13; - * @param value the summonUnitId to set + * optional sint32 life_time_ms = 8; + * @param value the lifeTimeMs to set * @return this */ - public SceneSummonUnitInfo setSummonUnitId(final int value) { + public SceneSummonUnitInfo setLifeTimeMs(final int value) { bitField0_ |= 0x00000010; - summonUnitId = value; + lifeTimeMs = value; return this; } /** - * repeated string custom_triggers = 3; + * repeated string custom_triggers = 4; * @return whether the customTriggers field is set */ public boolean hasCustomTriggers() { @@ -253,7 +253,7 @@ public boolean hasCustomTriggers() { } /** - * repeated string custom_triggers = 3; + * repeated string custom_triggers = 4; * @return this */ public SceneSummonUnitInfo clearCustomTriggers() { @@ -263,7 +263,7 @@ public SceneSummonUnitInfo clearCustomTriggers() { } /** - * repeated string custom_triggers = 3; + * repeated string custom_triggers = 4; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -277,7 +277,7 @@ public RepeatedString getCustomTriggers() { } /** - * repeated string custom_triggers = 3; + * repeated string custom_triggers = 4; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -291,7 +291,7 @@ public RepeatedString getMutableCustomTriggers() { } /** - * repeated string custom_triggers = 3; + * repeated string custom_triggers = 4; * @param value the customTriggers to add * @return this */ @@ -302,7 +302,7 @@ public SceneSummonUnitInfo addCustomTriggers(final CharSequence value) { } /** - * repeated string custom_triggers = 3; + * repeated string custom_triggers = 4; * @param values the customTriggers to add * @return this */ @@ -318,10 +318,10 @@ public SceneSummonUnitInfo copyFrom(final SceneSummonUnitInfo other) { if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; createTimeMs = other.createTimeMs; - lifeTimeMs = other.lifeTimeMs; + summonUnitId = other.summonUnitId; casterEntityId = other.casterEntityId; attachEntityId = other.attachEntityId; - summonUnitId = other.summonUnitId; + lifeTimeMs = other.lifeTimeMs; customTriggers.copyFrom(other.customTriggers); } return this; @@ -336,8 +336,8 @@ public SceneSummonUnitInfo mergeFrom(final SceneSummonUnitInfo other) { if (other.hasCreateTimeMs()) { setCreateTimeMs(other.createTimeMs); } - if (other.hasLifeTimeMs()) { - setLifeTimeMs(other.lifeTimeMs); + if (other.hasSummonUnitId()) { + setSummonUnitId(other.summonUnitId); } if (other.hasCasterEntityId()) { setCasterEntityId(other.casterEntityId); @@ -345,8 +345,8 @@ public SceneSummonUnitInfo mergeFrom(final SceneSummonUnitInfo other) { if (other.hasAttachEntityId()) { setAttachEntityId(other.attachEntityId); } - if (other.hasSummonUnitId()) { - setSummonUnitId(other.summonUnitId); + if (other.hasLifeTimeMs()) { + setLifeTimeMs(other.lifeTimeMs); } if (other.hasCustomTriggers()) { getMutableCustomTriggers().addAll(other.customTriggers); @@ -362,10 +362,10 @@ public SceneSummonUnitInfo clear() { cachedSize = -1; bitField0_ = 0; createTimeMs = 0L; - lifeTimeMs = 0; + summonUnitId = 0; casterEntityId = 0; attachEntityId = 0; - summonUnitId = 0; + lifeTimeMs = 0; customTriggers.clear(); return this; } @@ -392,38 +392,38 @@ public boolean equals(Object o) { SceneSummonUnitInfo other = (SceneSummonUnitInfo) o; return bitField0_ == other.bitField0_ && (!hasCreateTimeMs() || createTimeMs == other.createTimeMs) - && (!hasLifeTimeMs() || lifeTimeMs == other.lifeTimeMs) + && (!hasSummonUnitId() || summonUnitId == other.summonUnitId) && (!hasCasterEntityId() || casterEntityId == other.casterEntityId) && (!hasAttachEntityId() || attachEntityId == other.attachEntityId) - && (!hasSummonUnitId() || summonUnitId == other.summonUnitId) + && (!hasLifeTimeMs() || lifeTimeMs == other.lifeTimeMs) && (!hasCustomTriggers() || customTriggers.equals(other.customTriggers)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 56); output.writeUInt64NoTag(createTimeMs); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 48); - output.writeInt32NoTag(lifeTimeMs); + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(summonUnitId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 72); output.writeUInt32NoTag(casterEntityId); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 88); output.writeUInt32NoTag(attachEntityId); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 104); - output.writeUInt32NoTag(summonUnitId); + output.writeRawByte((byte) 64); + output.writeSInt32NoTag(lifeTimeMs); } if ((bitField0_ & 0x00000020) != 0) { for (int i = 0; i < customTriggers.length(); i++) { - output.writeRawByte((byte) 26); + output.writeRawByte((byte) 34); output.writeStringNoTag(customTriggers.get(i)); } } @@ -436,7 +436,7 @@ protected int computeSerializedSize() { size += 1 + ProtoSink.computeUInt64SizeNoTag(createTimeMs); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeInt32SizeNoTag(lifeTimeMs); + size += 1 + ProtoSink.computeUInt32SizeNoTag(summonUnitId); } if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(casterEntityId); @@ -445,7 +445,7 @@ protected int computeSerializedSize() { size += 1 + ProtoSink.computeUInt32SizeNoTag(attachEntityId); } if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(summonUnitId); + size += 1 + ProtoSink.computeSInt32SizeNoTag(lifeTimeMs); } if ((bitField0_ & 0x00000020) != 0) { size += (1 * customTriggers.length()) + ProtoSink.computeRepeatedStringSizeNoTag(customTriggers); @@ -460,52 +460,52 @@ public SceneSummonUnitInfo mergeFrom(final ProtoSource input) throws IOException int tag = input.readTag(); while (true) { switch (tag) { - case 112: { + case 56: { // createTimeMs createTimeMs = input.readUInt64(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 48) { + if (tag != 16) { break; } } - case 48: { - // lifeTimeMs - lifeTimeMs = input.readInt32(); + case 16: { + // summonUnitId + summonUnitId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 88) { + if (tag != 72) { break; } } - case 88: { + case 72: { // casterEntityId casterEntityId = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 96) { + if (tag != 88) { break; } } - case 96: { + case 88: { // attachEntityId attachEntityId = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 104) { + if (tag != 64) { break; } } - case 104: { - // summonUnitId - summonUnitId = input.readUInt32(); + case 64: { + // lifeTimeMs + lifeTimeMs = input.readSInt32(); bitField0_ |= 0x00000010; tag = input.readTag(); - if (tag != 26) { + if (tag != 34) { break; } } - case 26: { + case 34: { // customTriggers tag = input.readRepeatedString(customTriggers, tag); bitField0_ |= 0x00000020; @@ -534,7 +534,7 @@ public void writeTo(final JsonSink output) throws IOException { output.writeUInt64(FieldNames.createTimeMs, createTimeMs); } if ((bitField0_ & 0x00000002) != 0) { - output.writeInt32(FieldNames.lifeTimeMs, lifeTimeMs); + output.writeUInt32(FieldNames.summonUnitId, summonUnitId); } if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.casterEntityId, casterEntityId); @@ -543,7 +543,7 @@ public void writeTo(final JsonSink output) throws IOException { output.writeUInt32(FieldNames.attachEntityId, attachEntityId); } if ((bitField0_ & 0x00000010) != 0) { - output.writeUInt32(FieldNames.summonUnitId, summonUnitId); + output.writeSInt32(FieldNames.lifeTimeMs, lifeTimeMs); } if ((bitField0_ & 0x00000020) != 0) { output.writeRepeatedString(FieldNames.customTriggers, customTriggers); @@ -570,11 +570,11 @@ public SceneSummonUnitInfo mergeFrom(final JsonSource input) throws IOException } break; } - case -1226028177: - case 1665182229: { - if (input.isAtField(FieldNames.lifeTimeMs)) { + case 43438592: + case 1094873176: { + if (input.isAtField(FieldNames.summonUnitId)) { if (!input.trySkipNullValue()) { - lifeTimeMs = input.readInt32(); + summonUnitId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -606,11 +606,11 @@ public SceneSummonUnitInfo mergeFrom(final JsonSource input) throws IOException } break; } - case 43438592: - case 1094873176: { - if (input.isAtField(FieldNames.summonUnitId)) { + case -1226028177: + case 1665182229: { + if (input.isAtField(FieldNames.lifeTimeMs)) { if (!input.trySkipNullValue()) { - summonUnitId = input.readUInt32(); + lifeTimeMs = input.readSInt32(); bitField0_ |= 0x00000010; } } else { @@ -685,13 +685,13 @@ public SceneSummonUnitInfo create() { static class FieldNames { static final FieldName createTimeMs = FieldName.forField("createTimeMs", "create_time_ms"); - static final FieldName lifeTimeMs = FieldName.forField("lifeTimeMs", "life_time_ms"); + static final FieldName summonUnitId = FieldName.forField("summonUnitId", "summon_unit_id"); static final FieldName casterEntityId = FieldName.forField("casterEntityId", "caster_entity_id"); static final FieldName attachEntityId = FieldName.forField("attachEntityId", "attach_entity_id"); - static final FieldName summonUnitId = FieldName.forField("summonUnitId", "summon_unit_id"); + static final FieldName lifeTimeMs = FieldName.forField("lifeTimeMs", "life_time_ms"); static final FieldName customTriggers = FieldName.forField("customTriggers", "custom_triggers"); } diff --git a/src/generated/main/emu/lunarcore/proto/SearchPlayerCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SearchPlayerCsReqOuterClass.java index ee0e59ced..022c084da 100644 --- a/src/generated/main/emu/lunarcore/proto/SearchPlayerCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SearchPlayerCsReqOuterClass.java @@ -20,7 +20,7 @@ public static final class SearchPlayerCsReq extends ProtoMessagerepeated uint32 search_uid_list = 11; + * repeated uint32 search_uid_list = 4; */ private final RepeatedInt searchUidList = RepeatedInt.newEmptyInstance(); @@ -35,7 +35,7 @@ public static SearchPlayerCsReq newInstance() { } /** - * repeated uint32 search_uid_list = 11; + * repeated uint32 search_uid_list = 4; * @return whether the searchUidList field is set */ public boolean hasSearchUidList() { @@ -43,7 +43,7 @@ public boolean hasSearchUidList() { } /** - * repeated uint32 search_uid_list = 11; + * repeated uint32 search_uid_list = 4; * @return this */ public SearchPlayerCsReq clearSearchUidList() { @@ -53,7 +53,7 @@ public SearchPlayerCsReq clearSearchUidList() { } /** - * repeated uint32 search_uid_list = 11; + * repeated uint32 search_uid_list = 4; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -67,7 +67,7 @@ public RepeatedInt getSearchUidList() { } /** - * repeated uint32 search_uid_list = 11; + * repeated uint32 search_uid_list = 4; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -81,7 +81,7 @@ public RepeatedInt getMutableSearchUidList() { } /** - * repeated uint32 search_uid_list = 11; + * repeated uint32 search_uid_list = 4; * @param value the searchUidList to add * @return this */ @@ -92,7 +92,7 @@ public SearchPlayerCsReq addSearchUidList(final int value) { } /** - * repeated uint32 search_uid_list = 11; + * repeated uint32 search_uid_list = 4; * @param values the searchUidList to add * @return this */ @@ -163,7 +163,7 @@ public boolean equals(Object o) { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { for (int i = 0; i < searchUidList.length(); i++) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(searchUidList.array()[i]); } } @@ -185,7 +185,7 @@ public SearchPlayerCsReq mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 90: { + case 34: { // searchUidList [packed=true] input.readPackedUInt32(searchUidList, tag); bitField0_ |= 0x00000001; @@ -204,7 +204,7 @@ public SearchPlayerCsReq mergeFrom(final ProtoSource input) throws IOException { tag = input.readTag(); break; } - case 88: { + case 32: { // searchUidList [packed=false] tag = input.readRepeatedUInt32(searchUidList, tag); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/SearchPlayerScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/SearchPlayerScRspOuterClass.java index ac270a7ff..dfea3aa6d 100644 --- a/src/generated/main/emu/lunarcore/proto/SearchPlayerScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SearchPlayerScRspOuterClass.java @@ -10,7 +10,6 @@ import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; -import us.hebi.quickbuf.RepeatedInt; import us.hebi.quickbuf.RepeatedMessage; public final class SearchPlayerScRspOuterClass { @@ -21,17 +20,12 @@ public static final class SearchPlayerScRsp extends ProtoMessageoptional uint32 retcode = 1; + * optional uint32 retcode = 15; */ private int retcode; /** - * repeated uint32 HBCDGNCPNGB = 5; - */ - private final RepeatedInt hBCDGNCPNGB = RepeatedInt.newEmptyInstance(); - - /** - * repeated .SimpleInfo search_result_list = 15; + * repeated .SimpleInfo search_result_list = 6; */ private final RepeatedMessage searchResultList = RepeatedMessage.newEmptyInstance(SimpleInfoOuterClass.SimpleInfo.getFactory()); @@ -46,7 +40,7 @@ public static SearchPlayerScRsp newInstance() { } /** - * optional uint32 retcode = 1; + * optional uint32 retcode = 15; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -54,7 +48,7 @@ public boolean hasRetcode() { } /** - * optional uint32 retcode = 1; + * optional uint32 retcode = 15; * @return this */ public SearchPlayerScRsp clearRetcode() { @@ -64,7 +58,7 @@ public SearchPlayerScRsp clearRetcode() { } /** - * optional uint32 retcode = 1; + * optional uint32 retcode = 15; * @return the retcode */ public int getRetcode() { @@ -72,7 +66,7 @@ public int getRetcode() { } /** - * optional uint32 retcode = 1; + * optional uint32 retcode = 15; * @param value the retcode to set * @return this */ @@ -83,93 +77,25 @@ public SearchPlayerScRsp setRetcode(final int value) { } /** - * repeated uint32 HBCDGNCPNGB = 5; - * @return whether the hBCDGNCPNGB field is set - */ - public boolean hasHBCDGNCPNGB() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * repeated uint32 HBCDGNCPNGB = 5; - * @return this - */ - public SearchPlayerScRsp clearHBCDGNCPNGB() { - bitField0_ &= ~0x00000002; - hBCDGNCPNGB.clear(); - return this; - } - - /** - * repeated uint32 HBCDGNCPNGB = 5; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableHBCDGNCPNGB()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedInt getHBCDGNCPNGB() { - return hBCDGNCPNGB; - } - - /** - * repeated uint32 HBCDGNCPNGB = 5; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedInt getMutableHBCDGNCPNGB() { - bitField0_ |= 0x00000002; - return hBCDGNCPNGB; - } - - /** - * repeated uint32 HBCDGNCPNGB = 5; - * @param value the hBCDGNCPNGB to add - * @return this - */ - public SearchPlayerScRsp addHBCDGNCPNGB(final int value) { - bitField0_ |= 0x00000002; - hBCDGNCPNGB.add(value); - return this; - } - - /** - * repeated uint32 HBCDGNCPNGB = 5; - * @param values the hBCDGNCPNGB to add - * @return this - */ - public SearchPlayerScRsp addAllHBCDGNCPNGB(final int... values) { - bitField0_ |= 0x00000002; - hBCDGNCPNGB.addAll(values); - return this; - } - - /** - * repeated .SimpleInfo search_result_list = 15; + * repeated .SimpleInfo search_result_list = 6; * @return whether the searchResultList field is set */ public boolean hasSearchResultList() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000002) != 0; } /** - * repeated .SimpleInfo search_result_list = 15; + * repeated .SimpleInfo search_result_list = 6; * @return this */ public SearchPlayerScRsp clearSearchResultList() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; searchResultList.clear(); return this; } /** - * repeated .SimpleInfo search_result_list = 15; + * repeated .SimpleInfo search_result_list = 6; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -183,7 +109,7 @@ public RepeatedMessage getSearchResultList() { } /** - * repeated .SimpleInfo search_result_list = 15; + * repeated .SimpleInfo search_result_list = 6; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -192,29 +118,29 @@ public RepeatedMessage getSearchResultList() { * @return internal storage object for modifications */ public RepeatedMessage getMutableSearchResultList() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; return searchResultList; } /** - * repeated .SimpleInfo search_result_list = 15; + * repeated .SimpleInfo search_result_list = 6; * @param value the searchResultList to add * @return this */ public SearchPlayerScRsp addSearchResultList(final SimpleInfoOuterClass.SimpleInfo value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; searchResultList.add(value); return this; } /** - * repeated .SimpleInfo search_result_list = 15; + * repeated .SimpleInfo search_result_list = 6; * @param values the searchResultList to add * @return this */ public SearchPlayerScRsp addAllSearchResultList( final SimpleInfoOuterClass.SimpleInfo... values) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; searchResultList.addAll(values); return this; } @@ -225,7 +151,6 @@ public SearchPlayerScRsp copyFrom(final SearchPlayerScRsp other) { if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; retcode = other.retcode; - hBCDGNCPNGB.copyFrom(other.hBCDGNCPNGB); searchResultList.copyFrom(other.searchResultList); } return this; @@ -240,9 +165,6 @@ public SearchPlayerScRsp mergeFrom(final SearchPlayerScRsp other) { if (other.hasRetcode()) { setRetcode(other.retcode); } - if (other.hasHBCDGNCPNGB()) { - getMutableHBCDGNCPNGB().addAll(other.hBCDGNCPNGB); - } if (other.hasSearchResultList()) { getMutableSearchResultList().addAll(other.searchResultList); } @@ -257,7 +179,6 @@ public SearchPlayerScRsp clear() { cachedSize = -1; bitField0_ = 0; retcode = 0; - hBCDGNCPNGB.clear(); searchResultList.clear(); return this; } @@ -269,7 +190,6 @@ public SearchPlayerScRsp clearQuick() { } cachedSize = -1; bitField0_ = 0; - hBCDGNCPNGB.clear(); searchResultList.clearQuick(); return this; } @@ -285,25 +205,18 @@ public boolean equals(Object o) { SearchPlayerScRsp other = (SearchPlayerScRsp) o; return bitField0_ == other.bitField0_ && (!hasRetcode() || retcode == other.retcode) - && (!hasHBCDGNCPNGB() || hBCDGNCPNGB.equals(other.hBCDGNCPNGB)) && (!hasSearchResultList() || searchResultList.equals(other.searchResultList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); + output.writeRawByte((byte) 120); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - for (int i = 0; i < hBCDGNCPNGB.length(); i++) { - output.writeRawByte((byte) 40); - output.writeUInt32NoTag(hBCDGNCPNGB.array()[i]); - } - } - if ((bitField0_ & 0x00000004) != 0) { for (int i = 0; i < searchResultList.length(); i++) { - output.writeRawByte((byte) 122); + output.writeRawByte((byte) 50); output.writeMessageNoTag(searchResultList.get(i)); } } @@ -316,9 +229,6 @@ protected int computeSerializedSize() { size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - size += (1 * hBCDGNCPNGB.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(hBCDGNCPNGB); - } - if ((bitField0_ & 0x00000004) != 0) { size += (1 * searchResultList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(searchResultList); } return size; @@ -331,28 +241,19 @@ public SearchPlayerScRsp mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 8: { + case 120: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 42) { + if (tag != 50) { break; } } - case 42: { - // hBCDGNCPNGB [packed=true] - input.readPackedUInt32(hBCDGNCPNGB, tag); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 122) { - break; - } - } - case 122: { + case 50: { // searchResultList tag = input.readRepeatedMessage(searchResultList, tag); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; if (tag != 0) { break; } @@ -367,12 +268,6 @@ public SearchPlayerScRsp mergeFrom(final ProtoSource input) throws IOException { tag = input.readTag(); break; } - case 40: { - // hBCDGNCPNGB [packed=false] - tag = input.readRepeatedUInt32(hBCDGNCPNGB, tag); - bitField0_ |= 0x00000002; - break; - } } } } @@ -384,9 +279,6 @@ public void writeTo(final JsonSink output) throws IOException { output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRepeatedUInt32(FieldNames.hBCDGNCPNGB, hBCDGNCPNGB); - } - if ((bitField0_ & 0x00000004) != 0) { output.writeRepeatedMessage(FieldNames.searchResultList, searchResultList); } output.endObject(); @@ -410,23 +302,12 @@ public SearchPlayerScRsp mergeFrom(final JsonSource input) throws IOException { } break; } - case 1975814746: { - if (input.isAtField(FieldNames.hBCDGNCPNGB)) { - if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(hBCDGNCPNGB); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } case 1590552099: case -1788038295: { if (input.isAtField(FieldNames.searchResultList)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(searchResultList); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; } } else { input.skipUnknownField(); @@ -488,8 +369,6 @@ public SearchPlayerScRsp create() { static class FieldNames { static final FieldName retcode = FieldName.forField("retcode"); - static final FieldName hBCDGNCPNGB = FieldName.forField("HBCDGNCPNGB"); - static final FieldName searchResultList = FieldName.forField("searchResultList", "search_result_list"); } } diff --git a/src/generated/main/emu/lunarcore/proto/SelectChatBubbleCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SelectChatBubbleCsReqOuterClass.java index c40b6a080..fe885d04a 100644 --- a/src/generated/main/emu/lunarcore/proto/SelectChatBubbleCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SelectChatBubbleCsReqOuterClass.java @@ -19,7 +19,7 @@ public static final class SelectChatBubbleCsReq extends ProtoMessageoptional uint32 bubble_id = 7; + * optional uint32 bubble_id = 10; */ private int bubbleId; @@ -34,7 +34,7 @@ public static SelectChatBubbleCsReq newInstance() { } /** - * optional uint32 bubble_id = 7; + * optional uint32 bubble_id = 10; * @return whether the bubbleId field is set */ public boolean hasBubbleId() { @@ -42,7 +42,7 @@ public boolean hasBubbleId() { } /** - * optional uint32 bubble_id = 7; + * optional uint32 bubble_id = 10; * @return this */ public SelectChatBubbleCsReq clearBubbleId() { @@ -52,7 +52,7 @@ public SelectChatBubbleCsReq clearBubbleId() { } /** - * optional uint32 bubble_id = 7; + * optional uint32 bubble_id = 10; * @return the bubbleId */ public int getBubbleId() { @@ -60,7 +60,7 @@ public int getBubbleId() { } /** - * optional uint32 bubble_id = 7; + * optional uint32 bubble_id = 10; * @param value the bubbleId to set * @return this */ @@ -129,7 +129,7 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 80); output.writeUInt32NoTag(bubbleId); } } @@ -150,7 +150,7 @@ public SelectChatBubbleCsReq mergeFrom(final ProtoSource input) throws IOExcepti int tag = input.readTag(); while (true) { switch (tag) { - case 56: { + case 80: { // bubbleId bubbleId = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/SelectChatBubbleScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/SelectChatBubbleScRspOuterClass.java index a0617bcdf..712776e87 100644 --- a/src/generated/main/emu/lunarcore/proto/SelectChatBubbleScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SelectChatBubbleScRspOuterClass.java @@ -19,12 +19,12 @@ public static final class SelectChatBubbleScRsp extends ProtoMessageoptional uint32 cur_chat_bubble = 1; + * optional uint32 cur_chat_bubble = 5; */ private int curChatBubble; /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 6; */ private int retcode; @@ -39,7 +39,7 @@ public static SelectChatBubbleScRsp newInstance() { } /** - * optional uint32 cur_chat_bubble = 1; + * optional uint32 cur_chat_bubble = 5; * @return whether the curChatBubble field is set */ public boolean hasCurChatBubble() { @@ -47,7 +47,7 @@ public boolean hasCurChatBubble() { } /** - * optional uint32 cur_chat_bubble = 1; + * optional uint32 cur_chat_bubble = 5; * @return this */ public SelectChatBubbleScRsp clearCurChatBubble() { @@ -57,7 +57,7 @@ public SelectChatBubbleScRsp clearCurChatBubble() { } /** - * optional uint32 cur_chat_bubble = 1; + * optional uint32 cur_chat_bubble = 5; * @return the curChatBubble */ public int getCurChatBubble() { @@ -65,7 +65,7 @@ public int getCurChatBubble() { } /** - * optional uint32 cur_chat_bubble = 1; + * optional uint32 cur_chat_bubble = 5; * @param value the curChatBubble to set * @return this */ @@ -76,7 +76,7 @@ public SelectChatBubbleScRsp setCurChatBubble(final int value) { } /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 6; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -84,7 +84,7 @@ public boolean hasRetcode() { } /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 6; * @return this */ public SelectChatBubbleScRsp clearRetcode() { @@ -94,7 +94,7 @@ public SelectChatBubbleScRsp clearRetcode() { } /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 6; * @return the retcode */ public int getRetcode() { @@ -102,7 +102,7 @@ public int getRetcode() { } /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 6; * @param value the retcode to set * @return this */ @@ -177,11 +177,11 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); + output.writeRawByte((byte) 40); output.writeUInt32NoTag(curChatBubble); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 48); output.writeUInt32NoTag(retcode); } } @@ -205,16 +205,16 @@ public SelectChatBubbleScRsp mergeFrom(final ProtoSource input) throws IOExcepti int tag = input.readTag(); while (true) { switch (tag) { - case 8: { + case 40: { // curChatBubble curChatBubble = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 80) { + if (tag != 48) { break; } } - case 80: { + case 48: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/SelectPhoneThemeCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SelectPhoneThemeCsReqOuterClass.java index f21bdf340..9333a0493 100644 --- a/src/generated/main/emu/lunarcore/proto/SelectPhoneThemeCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SelectPhoneThemeCsReqOuterClass.java @@ -19,7 +19,7 @@ public static final class SelectPhoneThemeCsReq extends ProtoMessageoptional uint32 theme_id = 2; + * optional uint32 theme_id = 3; */ private int themeId; @@ -34,7 +34,7 @@ public static SelectPhoneThemeCsReq newInstance() { } /** - * optional uint32 theme_id = 2; + * optional uint32 theme_id = 3; * @return whether the themeId field is set */ public boolean hasThemeId() { @@ -42,7 +42,7 @@ public boolean hasThemeId() { } /** - * optional uint32 theme_id = 2; + * optional uint32 theme_id = 3; * @return this */ public SelectPhoneThemeCsReq clearThemeId() { @@ -52,7 +52,7 @@ public SelectPhoneThemeCsReq clearThemeId() { } /** - * optional uint32 theme_id = 2; + * optional uint32 theme_id = 3; * @return the themeId */ public int getThemeId() { @@ -60,7 +60,7 @@ public int getThemeId() { } /** - * optional uint32 theme_id = 2; + * optional uint32 theme_id = 3; * @param value the themeId to set * @return this */ @@ -129,7 +129,7 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); + output.writeRawByte((byte) 24); output.writeUInt32NoTag(themeId); } } @@ -150,7 +150,7 @@ public SelectPhoneThemeCsReq mergeFrom(final ProtoSource input) throws IOExcepti int tag = input.readTag(); while (true) { switch (tag) { - case 16: { + case 24: { // themeId themeId = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/SelectPhoneThemeScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/SelectPhoneThemeScRspOuterClass.java index b1b3beb15..b8e7a4c45 100644 --- a/src/generated/main/emu/lunarcore/proto/SelectPhoneThemeScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SelectPhoneThemeScRspOuterClass.java @@ -19,12 +19,12 @@ public static final class SelectPhoneThemeScRsp extends ProtoMessageoptional uint32 cur_phone_theme = 6; + * optional uint32 cur_phone_theme = 5; */ private int curPhoneTheme; /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 6; */ private int retcode; @@ -39,7 +39,7 @@ public static SelectPhoneThemeScRsp newInstance() { } /** - * optional uint32 cur_phone_theme = 6; + * optional uint32 cur_phone_theme = 5; * @return whether the curPhoneTheme field is set */ public boolean hasCurPhoneTheme() { @@ -47,7 +47,7 @@ public boolean hasCurPhoneTheme() { } /** - * optional uint32 cur_phone_theme = 6; + * optional uint32 cur_phone_theme = 5; * @return this */ public SelectPhoneThemeScRsp clearCurPhoneTheme() { @@ -57,7 +57,7 @@ public SelectPhoneThemeScRsp clearCurPhoneTheme() { } /** - * optional uint32 cur_phone_theme = 6; + * optional uint32 cur_phone_theme = 5; * @return the curPhoneTheme */ public int getCurPhoneTheme() { @@ -65,7 +65,7 @@ public int getCurPhoneTheme() { } /** - * optional uint32 cur_phone_theme = 6; + * optional uint32 cur_phone_theme = 5; * @param value the curPhoneTheme to set * @return this */ @@ -76,7 +76,7 @@ public SelectPhoneThemeScRsp setCurPhoneTheme(final int value) { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 6; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -84,7 +84,7 @@ public boolean hasRetcode() { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 6; * @return this */ public SelectPhoneThemeScRsp clearRetcode() { @@ -94,7 +94,7 @@ public SelectPhoneThemeScRsp clearRetcode() { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 6; * @return the retcode */ public int getRetcode() { @@ -102,7 +102,7 @@ public int getRetcode() { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 6; * @param value the retcode to set * @return this */ @@ -177,11 +177,11 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 40); output.writeUInt32NoTag(curPhoneTheme); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 48); output.writeUInt32NoTag(retcode); } } @@ -205,16 +205,16 @@ public SelectPhoneThemeScRsp mergeFrom(final ProtoSource input) throws IOExcepti int tag = input.readTag(); while (true) { switch (tag) { - case 48: { + case 40: { // curPhoneTheme curPhoneTheme = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 64) { + if (tag != 48) { break; } } - case 64: { + case 48: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/SellItemCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SellItemCsReqOuterClass.java index c85d3ab72..7a59f57fc 100644 --- a/src/generated/main/emu/lunarcore/proto/SellItemCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SellItemCsReqOuterClass.java @@ -19,7 +19,7 @@ public static final class SellItemCsReq extends ProtoMessage impl private static final long serialVersionUID = 0L; /** - * optional .ItemCostList item_cost_list = 8; + * optional .ItemCostList item_cost_list = 4; */ private final ItemCostListOuterClass.ItemCostList itemCostList = ItemCostListOuterClass.ItemCostList.newInstance(); @@ -34,7 +34,7 @@ public static SellItemCsReq newInstance() { } /** - * optional .ItemCostList item_cost_list = 8; + * optional .ItemCostList item_cost_list = 4; * @return whether the itemCostList field is set */ public boolean hasItemCostList() { @@ -42,7 +42,7 @@ public boolean hasItemCostList() { } /** - * optional .ItemCostList item_cost_list = 8; + * optional .ItemCostList item_cost_list = 4; * @return this */ public SellItemCsReq clearItemCostList() { @@ -52,7 +52,7 @@ public SellItemCsReq clearItemCostList() { } /** - * optional .ItemCostList item_cost_list = 8; + * optional .ItemCostList item_cost_list = 4; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -66,7 +66,7 @@ public ItemCostListOuterClass.ItemCostList getItemCostList() { } /** - * optional .ItemCostList item_cost_list = 8; + * optional .ItemCostList item_cost_list = 4; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -80,7 +80,7 @@ public ItemCostListOuterClass.ItemCostList getMutableItemCostList() { } /** - * optional .ItemCostList item_cost_list = 8; + * optional .ItemCostList item_cost_list = 4; * @param value the itemCostList to set * @return this */ @@ -150,7 +150,7 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 66); + output.writeRawByte((byte) 34); output.writeMessageNoTag(itemCostList); } } @@ -171,7 +171,7 @@ public SellItemCsReq mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 66: { + case 34: { // itemCostList input.readMessage(itemCostList); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/SellItemScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/SellItemScRspOuterClass.java index 15518f2d1..2c0e40dd2 100644 --- a/src/generated/main/emu/lunarcore/proto/SellItemScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SellItemScRspOuterClass.java @@ -19,12 +19,12 @@ public static final class SellItemScRsp extends ProtoMessage impl private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 5; */ private int retcode; /** - * optional .ItemList return_item_list = 8; + * optional .ItemList return_item_list = 15; */ private final ItemListOuterClass.ItemList returnItemList = ItemListOuterClass.ItemList.newInstance(); @@ -39,7 +39,7 @@ public static SellItemScRsp newInstance() { } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 5; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -47,7 +47,7 @@ public boolean hasRetcode() { } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 5; * @return this */ public SellItemScRsp clearRetcode() { @@ -57,7 +57,7 @@ public SellItemScRsp clearRetcode() { } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 5; * @return the retcode */ public int getRetcode() { @@ -65,7 +65,7 @@ public int getRetcode() { } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 5; * @param value the retcode to set * @return this */ @@ -76,7 +76,7 @@ public SellItemScRsp setRetcode(final int value) { } /** - * optional .ItemList return_item_list = 8; + * optional .ItemList return_item_list = 15; * @return whether the returnItemList field is set */ public boolean hasReturnItemList() { @@ -84,7 +84,7 @@ public boolean hasReturnItemList() { } /** - * optional .ItemList return_item_list = 8; + * optional .ItemList return_item_list = 15; * @return this */ public SellItemScRsp clearReturnItemList() { @@ -94,7 +94,7 @@ public SellItemScRsp clearReturnItemList() { } /** - * optional .ItemList return_item_list = 8; + * optional .ItemList return_item_list = 15; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -108,7 +108,7 @@ public ItemListOuterClass.ItemList getReturnItemList() { } /** - * optional .ItemList return_item_list = 8; + * optional .ItemList return_item_list = 15; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -122,7 +122,7 @@ public ItemListOuterClass.ItemList getMutableReturnItemList() { } /** - * optional .ItemList return_item_list = 8; + * optional .ItemList return_item_list = 15; * @param value the returnItemList to set * @return this */ @@ -198,11 +198,11 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 40); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 66); + output.writeRawByte((byte) 122); output.writeMessageNoTag(returnItemList); } } @@ -226,16 +226,16 @@ public SellItemScRsp mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 112: { + case 40: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 66) { + if (tag != 122) { break; } } - case 66: { + case 122: { // returnItemList input.readMessage(returnItemList); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/SendMsgCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SendMsgCsReqOuterClass.java index ab62fbdfd..c03ee1b03 100644 --- a/src/generated/main/emu/lunarcore/proto/SendMsgCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SendMsgCsReqOuterClass.java @@ -21,27 +21,27 @@ public static final class SendMsgCsReq extends ProtoMessage implem private static final long serialVersionUID = 0L; /** - * optional uint32 emote = 10; + * optional uint32 emote = 13; */ private int emote; /** - * optional .ChatType chat_type = 4; + * optional .ChatType chat_type = 6; */ private int chatType; /** - * optional .MsgType msg_type = 5; + * optional .MsgType msg_type = 10; */ private int msgType; /** - * optional string text = 2; + * optional string text = 8; */ private final Utf8String text = Utf8String.newEmptyInstance(); /** - * repeated uint32 to_uid_list = 14; + * repeated uint32 to_uid_list = 2; */ private final RepeatedInt toUidList = RepeatedInt.newEmptyInstance(); @@ -56,7 +56,7 @@ public static SendMsgCsReq newInstance() { } /** - * optional uint32 emote = 10; + * optional uint32 emote = 13; * @return whether the emote field is set */ public boolean hasEmote() { @@ -64,7 +64,7 @@ public boolean hasEmote() { } /** - * optional uint32 emote = 10; + * optional uint32 emote = 13; * @return this */ public SendMsgCsReq clearEmote() { @@ -74,7 +74,7 @@ public SendMsgCsReq clearEmote() { } /** - * optional uint32 emote = 10; + * optional uint32 emote = 13; * @return the emote */ public int getEmote() { @@ -82,7 +82,7 @@ public int getEmote() { } /** - * optional uint32 emote = 10; + * optional uint32 emote = 13; * @param value the emote to set * @return this */ @@ -93,7 +93,7 @@ public SendMsgCsReq setEmote(final int value) { } /** - * optional .ChatType chat_type = 4; + * optional .ChatType chat_type = 6; * @return whether the chatType field is set */ public boolean hasChatType() { @@ -101,7 +101,7 @@ public boolean hasChatType() { } /** - * optional .ChatType chat_type = 4; + * optional .ChatType chat_type = 6; * @return this */ public SendMsgCsReq clearChatType() { @@ -111,7 +111,7 @@ public SendMsgCsReq clearChatType() { } /** - * optional .ChatType chat_type = 4; + * optional .ChatType chat_type = 6; * @return the chatType */ public ChatTypeOuterClass.ChatType getChatType() { @@ -144,7 +144,7 @@ public SendMsgCsReq setChatTypeValue(final int value) { } /** - * optional .ChatType chat_type = 4; + * optional .ChatType chat_type = 6; * @param value the chatType to set * @return this */ @@ -155,7 +155,7 @@ public SendMsgCsReq setChatType(final ChatTypeOuterClass.ChatType value) { } /** - * optional .MsgType msg_type = 5; + * optional .MsgType msg_type = 10; * @return whether the msgType field is set */ public boolean hasMsgType() { @@ -163,7 +163,7 @@ public boolean hasMsgType() { } /** - * optional .MsgType msg_type = 5; + * optional .MsgType msg_type = 10; * @return this */ public SendMsgCsReq clearMsgType() { @@ -173,7 +173,7 @@ public SendMsgCsReq clearMsgType() { } /** - * optional .MsgType msg_type = 5; + * optional .MsgType msg_type = 10; * @return the msgType */ public MsgTypeOuterClass.MsgType getMsgType() { @@ -206,7 +206,7 @@ public SendMsgCsReq setMsgTypeValue(final int value) { } /** - * optional .MsgType msg_type = 5; + * optional .MsgType msg_type = 10; * @param value the msgType to set * @return this */ @@ -217,7 +217,7 @@ public SendMsgCsReq setMsgType(final MsgTypeOuterClass.MsgType value) { } /** - * optional string text = 2; + * optional string text = 8; * @return whether the text field is set */ public boolean hasText() { @@ -225,7 +225,7 @@ public boolean hasText() { } /** - * optional string text = 2; + * optional string text = 8; * @return this */ public SendMsgCsReq clearText() { @@ -235,7 +235,7 @@ public SendMsgCsReq clearText() { } /** - * optional string text = 2; + * optional string text = 8; * @return the text */ public String getText() { @@ -243,7 +243,7 @@ public String getText() { } /** - * optional string text = 2; + * optional string text = 8; * @return internal {@code Utf8String} representation of text for reading */ public Utf8String getTextBytes() { @@ -251,7 +251,7 @@ public Utf8String getTextBytes() { } /** - * optional string text = 2; + * optional string text = 8; * @return internal {@code Utf8String} representation of text for modifications */ public Utf8String getMutableTextBytes() { @@ -260,7 +260,7 @@ public Utf8String getMutableTextBytes() { } /** - * optional string text = 2; + * optional string text = 8; * @param value the text to set * @return this */ @@ -271,7 +271,7 @@ public SendMsgCsReq setText(final CharSequence value) { } /** - * optional string text = 2; + * optional string text = 8; * @param value the text to set * @return this */ @@ -282,7 +282,7 @@ public SendMsgCsReq setText(final Utf8String value) { } /** - * repeated uint32 to_uid_list = 14; + * repeated uint32 to_uid_list = 2; * @return whether the toUidList field is set */ public boolean hasToUidList() { @@ -290,7 +290,7 @@ public boolean hasToUidList() { } /** - * repeated uint32 to_uid_list = 14; + * repeated uint32 to_uid_list = 2; * @return this */ public SendMsgCsReq clearToUidList() { @@ -300,7 +300,7 @@ public SendMsgCsReq clearToUidList() { } /** - * repeated uint32 to_uid_list = 14; + * repeated uint32 to_uid_list = 2; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -314,7 +314,7 @@ public RepeatedInt getToUidList() { } /** - * repeated uint32 to_uid_list = 14; + * repeated uint32 to_uid_list = 2; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -328,7 +328,7 @@ public RepeatedInt getMutableToUidList() { } /** - * repeated uint32 to_uid_list = 14; + * repeated uint32 to_uid_list = 2; * @param value the toUidList to add * @return this */ @@ -339,7 +339,7 @@ public SendMsgCsReq addToUidList(final int value) { } /** - * repeated uint32 to_uid_list = 14; + * repeated uint32 to_uid_list = 2; * @param values the toUidList to add * @return this */ @@ -434,24 +434,24 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 104); output.writeUInt32NoTag(emote); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 32); + output.writeRawByte((byte) 48); output.writeEnumNoTag(chatType); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 80); output.writeEnumNoTag(msgType); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 18); + output.writeRawByte((byte) 66); output.writeStringNoTag(text); } if ((bitField0_ & 0x00000010) != 0) { for (int i = 0; i < toUidList.length(); i++) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 16); output.writeUInt32NoTag(toUidList.array()[i]); } } @@ -485,16 +485,16 @@ public SendMsgCsReq mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 80: { + case 104: { // emote emote = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 32) { + if (tag != 48) { break; } } - case 32: { + case 48: { // chatType final int value = input.readInt32(); if (ChatTypeOuterClass.ChatType.forNumber(value) != null) { @@ -502,11 +502,11 @@ public SendMsgCsReq mergeFrom(final ProtoSource input) throws IOException { bitField0_ |= 0x00000002; } tag = input.readTag(); - if (tag != 40) { + if (tag != 80) { break; } } - case 40: { + case 80: { // msgType final int value = input.readInt32(); if (MsgTypeOuterClass.MsgType.forNumber(value) != null) { @@ -514,20 +514,20 @@ public SendMsgCsReq mergeFrom(final ProtoSource input) throws IOException { bitField0_ |= 0x00000004; } tag = input.readTag(); - if (tag != 18) { + if (tag != 66) { break; } } - case 18: { + case 66: { // text input.readString(text); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 114) { + if (tag != 18) { break; } } - case 114: { + case 18: { // toUidList [packed=true] input.readPackedUInt32(toUidList, tag); bitField0_ |= 0x00000010; @@ -546,7 +546,7 @@ public SendMsgCsReq mergeFrom(final ProtoSource input) throws IOException { tag = input.readTag(); break; } - case 112: { + case 16: { // toUidList [packed=false] tag = input.readRepeatedUInt32(toUidList, tag); bitField0_ |= 0x00000010; diff --git a/src/generated/main/emu/lunarcore/proto/ServerAnnounceNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/ServerAnnounceNotifyOuterClass.java index c31bedaf9..3aba2e0a0 100644 --- a/src/generated/main/emu/lunarcore/proto/ServerAnnounceNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ServerAnnounceNotifyOuterClass.java @@ -21,7 +21,7 @@ public static final class ServerAnnounceNotify extends ProtoMessagerepeated .ServerAnnounceNotify.AnnounceData announce_data_list = 2; + * repeated .ServerAnnounceNotify.AnnounceData announce_data_list = 11; */ private final RepeatedMessage announceDataList = RepeatedMessage.newEmptyInstance(AnnounceData.getFactory()); @@ -36,7 +36,7 @@ public static ServerAnnounceNotify newInstance() { } /** - * repeated .ServerAnnounceNotify.AnnounceData announce_data_list = 2; + * repeated .ServerAnnounceNotify.AnnounceData announce_data_list = 11; * @return whether the announceDataList field is set */ public boolean hasAnnounceDataList() { @@ -44,7 +44,7 @@ public boolean hasAnnounceDataList() { } /** - * repeated .ServerAnnounceNotify.AnnounceData announce_data_list = 2; + * repeated .ServerAnnounceNotify.AnnounceData announce_data_list = 11; * @return this */ public ServerAnnounceNotify clearAnnounceDataList() { @@ -54,7 +54,7 @@ public ServerAnnounceNotify clearAnnounceDataList() { } /** - * repeated .ServerAnnounceNotify.AnnounceData announce_data_list = 2; + * repeated .ServerAnnounceNotify.AnnounceData announce_data_list = 11; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -68,7 +68,7 @@ public RepeatedMessage getAnnounceDataList() { } /** - * repeated .ServerAnnounceNotify.AnnounceData announce_data_list = 2; + * repeated .ServerAnnounceNotify.AnnounceData announce_data_list = 11; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -82,7 +82,7 @@ public RepeatedMessage getMutableAnnounceDataList() { } /** - * repeated .ServerAnnounceNotify.AnnounceData announce_data_list = 2; + * repeated .ServerAnnounceNotify.AnnounceData announce_data_list = 11; * @param value the announceDataList to add * @return this */ @@ -93,7 +93,7 @@ public ServerAnnounceNotify addAnnounceDataList(final AnnounceData value) { } /** - * repeated .ServerAnnounceNotify.AnnounceData announce_data_list = 2; + * repeated .ServerAnnounceNotify.AnnounceData announce_data_list = 11; * @param values the announceDataList to add * @return this */ @@ -164,7 +164,7 @@ public boolean equals(Object o) { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { for (int i = 0; i < announceDataList.length(); i++) { - output.writeRawByte((byte) 18); + output.writeRawByte((byte) 90); output.writeMessageNoTag(announceDataList.get(i)); } } @@ -186,7 +186,7 @@ public ServerAnnounceNotify mergeFrom(final ProtoSource input) throws IOExceptio int tag = input.readTag(); while (true) { switch (tag) { - case 18: { + case 90: { // announceDataList tag = input.readRepeatedMessage(announceDataList, tag); bitField0_ |= 0x00000001; @@ -277,60 +277,86 @@ public static MessageFactory getFactory() { } /** + *
+     *
+     * int64 begin_time = 1;
+     * uint32 center_system_frequency = 7;
+     * uint32 config_id = 6;
+     * string count_down_text = 5;
+     * string dungeon_confirm_text = 14;
+     * bool is_center_system_last_5_every_minutes = 11;
+     * string center_system_text = 8;
+     * int64 end_time = 4;
+     * uint32 count_down_frequency = 9;
+     * 
+ * * Protobuf type {@code AnnounceData} */ public static final class AnnounceData extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * optional int64 begin_time = 1; + * optional int64 begin_time = 14; */ private long beginTime; /** - * optional int64 end_time = 4; + * optional int64 end_time = 15; */ private long endTime; /** - * optional uint32 config_id = 6; + * optional uint32 config_id = 4; */ private int configId; /** - * optional uint32 center_system_frequency = 7; + * optional uint32 count_down_frequency = 5; */ - private int centerSystemFrequency; + private int countDownFrequency; /** - * optional uint32 count_down_frequency = 9; + * optional uint32 center_system_frequency = 9; */ - private int countDownFrequency; + private int centerSystemFrequency; /** - * optional bool is_center_system_last_5_every_minutes = 11; + * optional bool is_center_system_last_5_every_minutes = 2; */ private boolean isCenterSystemLast5EveryMinutes; /** - * optional string count_down_text = 5; + * optional string count_down_text = 1; */ private final Utf8String countDownText = Utf8String.newEmptyInstance(); /** - * optional string center_system_text = 8; + * optional string MEGGFNBLOAP = 7; */ - private final Utf8String centerSystemText = Utf8String.newEmptyInstance(); + private final Utf8String mEGGFNBLOAP = Utf8String.newEmptyInstance(); /** - * optional string dungeon_confirm_text = 14; + * optional string BOADMAKGOJI = 11; */ - private final Utf8String dungeonConfirmText = Utf8String.newEmptyInstance(); + private final Utf8String bOADMAKGOJI = Utf8String.newEmptyInstance(); private AnnounceData() { } /** + *
+       *
+       * int64 begin_time = 1;
+       * uint32 center_system_frequency = 7;
+       * uint32 config_id = 6;
+       * string count_down_text = 5;
+       * string dungeon_confirm_text = 14;
+       * bool is_center_system_last_5_every_minutes = 11;
+       * string center_system_text = 8;
+       * int64 end_time = 4;
+       * uint32 count_down_frequency = 9;
+       * 
+ * * @return a new empty instance of {@code AnnounceData} */ public static AnnounceData newInstance() { @@ -338,7 +364,7 @@ public static AnnounceData newInstance() { } /** - * optional int64 begin_time = 1; + * optional int64 begin_time = 14; * @return whether the beginTime field is set */ public boolean hasBeginTime() { @@ -346,7 +372,7 @@ public boolean hasBeginTime() { } /** - * optional int64 begin_time = 1; + * optional int64 begin_time = 14; * @return this */ public AnnounceData clearBeginTime() { @@ -356,7 +382,7 @@ public AnnounceData clearBeginTime() { } /** - * optional int64 begin_time = 1; + * optional int64 begin_time = 14; * @return the beginTime */ public long getBeginTime() { @@ -364,7 +390,7 @@ public long getBeginTime() { } /** - * optional int64 begin_time = 1; + * optional int64 begin_time = 14; * @param value the beginTime to set * @return this */ @@ -375,7 +401,7 @@ public AnnounceData setBeginTime(final long value) { } /** - * optional int64 end_time = 4; + * optional int64 end_time = 15; * @return whether the endTime field is set */ public boolean hasEndTime() { @@ -383,7 +409,7 @@ public boolean hasEndTime() { } /** - * optional int64 end_time = 4; + * optional int64 end_time = 15; * @return this */ public AnnounceData clearEndTime() { @@ -393,7 +419,7 @@ public AnnounceData clearEndTime() { } /** - * optional int64 end_time = 4; + * optional int64 end_time = 15; * @return the endTime */ public long getEndTime() { @@ -401,7 +427,7 @@ public long getEndTime() { } /** - * optional int64 end_time = 4; + * optional int64 end_time = 15; * @param value the endTime to set * @return this */ @@ -412,7 +438,7 @@ public AnnounceData setEndTime(final long value) { } /** - * optional uint32 config_id = 6; + * optional uint32 config_id = 4; * @return whether the configId field is set */ public boolean hasConfigId() { @@ -420,7 +446,7 @@ public boolean hasConfigId() { } /** - * optional uint32 config_id = 6; + * optional uint32 config_id = 4; * @return this */ public AnnounceData clearConfigId() { @@ -430,7 +456,7 @@ public AnnounceData clearConfigId() { } /** - * optional uint32 config_id = 6; + * optional uint32 config_id = 4; * @return the configId */ public int getConfigId() { @@ -438,7 +464,7 @@ public int getConfigId() { } /** - * optional uint32 config_id = 6; + * optional uint32 config_id = 4; * @param value the configId to set * @return this */ @@ -449,81 +475,81 @@ public AnnounceData setConfigId(final int value) { } /** - * optional uint32 center_system_frequency = 7; - * @return whether the centerSystemFrequency field is set + * optional uint32 count_down_frequency = 5; + * @return whether the countDownFrequency field is set */ - public boolean hasCenterSystemFrequency() { + public boolean hasCountDownFrequency() { return (bitField0_ & 0x00000008) != 0; } /** - * optional uint32 center_system_frequency = 7; + * optional uint32 count_down_frequency = 5; * @return this */ - public AnnounceData clearCenterSystemFrequency() { + public AnnounceData clearCountDownFrequency() { bitField0_ &= ~0x00000008; - centerSystemFrequency = 0; + countDownFrequency = 0; return this; } /** - * optional uint32 center_system_frequency = 7; - * @return the centerSystemFrequency + * optional uint32 count_down_frequency = 5; + * @return the countDownFrequency */ - public int getCenterSystemFrequency() { - return centerSystemFrequency; + public int getCountDownFrequency() { + return countDownFrequency; } /** - * optional uint32 center_system_frequency = 7; - * @param value the centerSystemFrequency to set + * optional uint32 count_down_frequency = 5; + * @param value the countDownFrequency to set * @return this */ - public AnnounceData setCenterSystemFrequency(final int value) { + public AnnounceData setCountDownFrequency(final int value) { bitField0_ |= 0x00000008; - centerSystemFrequency = value; + countDownFrequency = value; return this; } /** - * optional uint32 count_down_frequency = 9; - * @return whether the countDownFrequency field is set + * optional uint32 center_system_frequency = 9; + * @return whether the centerSystemFrequency field is set */ - public boolean hasCountDownFrequency() { + public boolean hasCenterSystemFrequency() { return (bitField0_ & 0x00000010) != 0; } /** - * optional uint32 count_down_frequency = 9; + * optional uint32 center_system_frequency = 9; * @return this */ - public AnnounceData clearCountDownFrequency() { + public AnnounceData clearCenterSystemFrequency() { bitField0_ &= ~0x00000010; - countDownFrequency = 0; + centerSystemFrequency = 0; return this; } /** - * optional uint32 count_down_frequency = 9; - * @return the countDownFrequency + * optional uint32 center_system_frequency = 9; + * @return the centerSystemFrequency */ - public int getCountDownFrequency() { - return countDownFrequency; + public int getCenterSystemFrequency() { + return centerSystemFrequency; } /** - * optional uint32 count_down_frequency = 9; - * @param value the countDownFrequency to set + * optional uint32 center_system_frequency = 9; + * @param value the centerSystemFrequency to set * @return this */ - public AnnounceData setCountDownFrequency(final int value) { + public AnnounceData setCenterSystemFrequency(final int value) { bitField0_ |= 0x00000010; - countDownFrequency = value; + centerSystemFrequency = value; return this; } /** - * optional bool is_center_system_last_5_every_minutes = 11; + * optional bool is_center_system_last_5_every_minutes = 2; * @return whether the isCenterSystemLast5EveryMinutes field is set */ public boolean hasIsCenterSystemLast5EveryMinutes() { @@ -531,7 +557,7 @@ public boolean hasIsCenterSystemLast5EveryMinutes() { } /** - * optional bool is_center_system_last_5_every_minutes = 11; + * optional bool is_center_system_last_5_every_minutes = 2; * @return this */ public AnnounceData clearIsCenterSystemLast5EveryMinutes() { @@ -541,7 +567,7 @@ public AnnounceData clearIsCenterSystemLast5EveryMinutes() { } /** - * optional bool is_center_system_last_5_every_minutes = 11; + * optional bool is_center_system_last_5_every_minutes = 2; * @return the isCenterSystemLast5EveryMinutes */ public boolean getIsCenterSystemLast5EveryMinutes() { @@ -549,7 +575,7 @@ public boolean getIsCenterSystemLast5EveryMinutes() { } /** - * optional bool is_center_system_last_5_every_minutes = 11; + * optional bool is_center_system_last_5_every_minutes = 2; * @param value the isCenterSystemLast5EveryMinutes to set * @return this */ @@ -560,7 +586,7 @@ public AnnounceData setIsCenterSystemLast5EveryMinutes(final boolean value) { } /** - * optional string count_down_text = 5; + * optional string count_down_text = 1; * @return whether the countDownText field is set */ public boolean hasCountDownText() { @@ -568,7 +594,7 @@ public boolean hasCountDownText() { } /** - * optional string count_down_text = 5; + * optional string count_down_text = 1; * @return this */ public AnnounceData clearCountDownText() { @@ -578,7 +604,7 @@ public AnnounceData clearCountDownText() { } /** - * optional string count_down_text = 5; + * optional string count_down_text = 1; * @return the countDownText */ public String getCountDownText() { @@ -586,7 +612,7 @@ public String getCountDownText() { } /** - * optional string count_down_text = 5; + * optional string count_down_text = 1; * @return internal {@code Utf8String} representation of countDownText for reading */ public Utf8String getCountDownTextBytes() { @@ -594,7 +620,7 @@ public Utf8String getCountDownTextBytes() { } /** - * optional string count_down_text = 5; + * optional string count_down_text = 1; * @return internal {@code Utf8String} representation of countDownText for modifications */ public Utf8String getMutableCountDownTextBytes() { @@ -603,7 +629,7 @@ public Utf8String getMutableCountDownTextBytes() { } /** - * optional string count_down_text = 5; + * optional string count_down_text = 1; * @param value the countDownText to set * @return this */ @@ -614,7 +640,7 @@ public AnnounceData setCountDownText(final CharSequence value) { } /** - * optional string count_down_text = 5; + * optional string count_down_text = 1; * @param value the countDownText to set * @return this */ @@ -625,132 +651,132 @@ public AnnounceData setCountDownText(final Utf8String value) { } /** - * optional string center_system_text = 8; - * @return whether the centerSystemText field is set + * optional string MEGGFNBLOAP = 7; + * @return whether the mEGGFNBLOAP field is set */ - public boolean hasCenterSystemText() { + public boolean hasMEGGFNBLOAP() { return (bitField0_ & 0x00000080) != 0; } /** - * optional string center_system_text = 8; + * optional string MEGGFNBLOAP = 7; * @return this */ - public AnnounceData clearCenterSystemText() { + public AnnounceData clearMEGGFNBLOAP() { bitField0_ &= ~0x00000080; - centerSystemText.clear(); + mEGGFNBLOAP.clear(); return this; } /** - * optional string center_system_text = 8; - * @return the centerSystemText + * optional string MEGGFNBLOAP = 7; + * @return the mEGGFNBLOAP */ - public String getCenterSystemText() { - return centerSystemText.getString(); + public String getMEGGFNBLOAP() { + return mEGGFNBLOAP.getString(); } /** - * optional string center_system_text = 8; - * @return internal {@code Utf8String} representation of centerSystemText for reading + * optional string MEGGFNBLOAP = 7; + * @return internal {@code Utf8String} representation of mEGGFNBLOAP for reading */ - public Utf8String getCenterSystemTextBytes() { - return this.centerSystemText; + public Utf8String getMEGGFNBLOAPBytes() { + return this.mEGGFNBLOAP; } /** - * optional string center_system_text = 8; - * @return internal {@code Utf8String} representation of centerSystemText for modifications + * optional string MEGGFNBLOAP = 7; + * @return internal {@code Utf8String} representation of mEGGFNBLOAP for modifications */ - public Utf8String getMutableCenterSystemTextBytes() { + public Utf8String getMutableMEGGFNBLOAPBytes() { bitField0_ |= 0x00000080; - return this.centerSystemText; + return this.mEGGFNBLOAP; } /** - * optional string center_system_text = 8; - * @param value the centerSystemText to set + * optional string MEGGFNBLOAP = 7; + * @param value the mEGGFNBLOAP to set * @return this */ - public AnnounceData setCenterSystemText(final CharSequence value) { + public AnnounceData setMEGGFNBLOAP(final CharSequence value) { bitField0_ |= 0x00000080; - centerSystemText.copyFrom(value); + mEGGFNBLOAP.copyFrom(value); return this; } /** - * optional string center_system_text = 8; - * @param value the centerSystemText to set + * optional string MEGGFNBLOAP = 7; + * @param value the mEGGFNBLOAP to set * @return this */ - public AnnounceData setCenterSystemText(final Utf8String value) { + public AnnounceData setMEGGFNBLOAP(final Utf8String value) { bitField0_ |= 0x00000080; - centerSystemText.copyFrom(value); + mEGGFNBLOAP.copyFrom(value); return this; } /** - * optional string dungeon_confirm_text = 14; - * @return whether the dungeonConfirmText field is set + * optional string BOADMAKGOJI = 11; + * @return whether the bOADMAKGOJI field is set */ - public boolean hasDungeonConfirmText() { + public boolean hasBOADMAKGOJI() { return (bitField0_ & 0x00000100) != 0; } /** - * optional string dungeon_confirm_text = 14; + * optional string BOADMAKGOJI = 11; * @return this */ - public AnnounceData clearDungeonConfirmText() { + public AnnounceData clearBOADMAKGOJI() { bitField0_ &= ~0x00000100; - dungeonConfirmText.clear(); + bOADMAKGOJI.clear(); return this; } /** - * optional string dungeon_confirm_text = 14; - * @return the dungeonConfirmText + * optional string BOADMAKGOJI = 11; + * @return the bOADMAKGOJI */ - public String getDungeonConfirmText() { - return dungeonConfirmText.getString(); + public String getBOADMAKGOJI() { + return bOADMAKGOJI.getString(); } /** - * optional string dungeon_confirm_text = 14; - * @return internal {@code Utf8String} representation of dungeonConfirmText for reading + * optional string BOADMAKGOJI = 11; + * @return internal {@code Utf8String} representation of bOADMAKGOJI for reading */ - public Utf8String getDungeonConfirmTextBytes() { - return this.dungeonConfirmText; + public Utf8String getBOADMAKGOJIBytes() { + return this.bOADMAKGOJI; } /** - * optional string dungeon_confirm_text = 14; - * @return internal {@code Utf8String} representation of dungeonConfirmText for modifications + * optional string BOADMAKGOJI = 11; + * @return internal {@code Utf8String} representation of bOADMAKGOJI for modifications */ - public Utf8String getMutableDungeonConfirmTextBytes() { + public Utf8String getMutableBOADMAKGOJIBytes() { bitField0_ |= 0x00000100; - return this.dungeonConfirmText; + return this.bOADMAKGOJI; } /** - * optional string dungeon_confirm_text = 14; - * @param value the dungeonConfirmText to set + * optional string BOADMAKGOJI = 11; + * @param value the bOADMAKGOJI to set * @return this */ - public AnnounceData setDungeonConfirmText(final CharSequence value) { + public AnnounceData setBOADMAKGOJI(final CharSequence value) { bitField0_ |= 0x00000100; - dungeonConfirmText.copyFrom(value); + bOADMAKGOJI.copyFrom(value); return this; } /** - * optional string dungeon_confirm_text = 14; - * @param value the dungeonConfirmText to set + * optional string BOADMAKGOJI = 11; + * @param value the bOADMAKGOJI to set * @return this */ - public AnnounceData setDungeonConfirmText(final Utf8String value) { + public AnnounceData setBOADMAKGOJI(final Utf8String value) { bitField0_ |= 0x00000100; - dungeonConfirmText.copyFrom(value); + bOADMAKGOJI.copyFrom(value); return this; } @@ -762,12 +788,12 @@ public AnnounceData copyFrom(final AnnounceData other) { beginTime = other.beginTime; endTime = other.endTime; configId = other.configId; - centerSystemFrequency = other.centerSystemFrequency; countDownFrequency = other.countDownFrequency; + centerSystemFrequency = other.centerSystemFrequency; isCenterSystemLast5EveryMinutes = other.isCenterSystemLast5EveryMinutes; countDownText.copyFrom(other.countDownText); - centerSystemText.copyFrom(other.centerSystemText); - dungeonConfirmText.copyFrom(other.dungeonConfirmText); + mEGGFNBLOAP.copyFrom(other.mEGGFNBLOAP); + bOADMAKGOJI.copyFrom(other.bOADMAKGOJI); } return this; } @@ -787,23 +813,23 @@ public AnnounceData mergeFrom(final AnnounceData other) { if (other.hasConfigId()) { setConfigId(other.configId); } - if (other.hasCenterSystemFrequency()) { - setCenterSystemFrequency(other.centerSystemFrequency); - } if (other.hasCountDownFrequency()) { setCountDownFrequency(other.countDownFrequency); } + if (other.hasCenterSystemFrequency()) { + setCenterSystemFrequency(other.centerSystemFrequency); + } if (other.hasIsCenterSystemLast5EveryMinutes()) { setIsCenterSystemLast5EveryMinutes(other.isCenterSystemLast5EveryMinutes); } if (other.hasCountDownText()) { getMutableCountDownTextBytes().copyFrom(other.countDownText); } - if (other.hasCenterSystemText()) { - getMutableCenterSystemTextBytes().copyFrom(other.centerSystemText); + if (other.hasMEGGFNBLOAP()) { + getMutableMEGGFNBLOAPBytes().copyFrom(other.mEGGFNBLOAP); } - if (other.hasDungeonConfirmText()) { - getMutableDungeonConfirmTextBytes().copyFrom(other.dungeonConfirmText); + if (other.hasBOADMAKGOJI()) { + getMutableBOADMAKGOJIBytes().copyFrom(other.bOADMAKGOJI); } return this; } @@ -818,12 +844,12 @@ public AnnounceData clear() { beginTime = 0L; endTime = 0L; configId = 0; - centerSystemFrequency = 0; countDownFrequency = 0; + centerSystemFrequency = 0; isCenterSystemLast5EveryMinutes = false; countDownText.clear(); - centerSystemText.clear(); - dungeonConfirmText.clear(); + mEGGFNBLOAP.clear(); + bOADMAKGOJI.clear(); return this; } @@ -835,8 +861,8 @@ public AnnounceData clearQuick() { cachedSize = -1; bitField0_ = 0; countDownText.clear(); - centerSystemText.clear(); - dungeonConfirmText.clear(); + mEGGFNBLOAP.clear(); + bOADMAKGOJI.clear(); return this; } @@ -853,51 +879,51 @@ public boolean equals(Object o) { && (!hasBeginTime() || beginTime == other.beginTime) && (!hasEndTime() || endTime == other.endTime) && (!hasConfigId() || configId == other.configId) - && (!hasCenterSystemFrequency() || centerSystemFrequency == other.centerSystemFrequency) && (!hasCountDownFrequency() || countDownFrequency == other.countDownFrequency) + && (!hasCenterSystemFrequency() || centerSystemFrequency == other.centerSystemFrequency) && (!hasIsCenterSystemLast5EveryMinutes() || isCenterSystemLast5EveryMinutes == other.isCenterSystemLast5EveryMinutes) && (!hasCountDownText() || countDownText.equals(other.countDownText)) - && (!hasCenterSystemText() || centerSystemText.equals(other.centerSystemText)) - && (!hasDungeonConfirmText() || dungeonConfirmText.equals(other.dungeonConfirmText)); + && (!hasMEGGFNBLOAP() || mEGGFNBLOAP.equals(other.mEGGFNBLOAP)) + && (!hasBOADMAKGOJI() || bOADMAKGOJI.equals(other.bOADMAKGOJI)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); + output.writeRawByte((byte) 112); output.writeInt64NoTag(beginTime); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 32); + output.writeRawByte((byte) 120); output.writeInt64NoTag(endTime); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(configId); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 56); - output.writeUInt32NoTag(centerSystemFrequency); + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(countDownFrequency); } if ((bitField0_ & 0x00000010) != 0) { output.writeRawByte((byte) 72); - output.writeUInt32NoTag(countDownFrequency); + output.writeUInt32NoTag(centerSystemFrequency); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 16); output.writeBoolNoTag(isCenterSystemLast5EveryMinutes); } if ((bitField0_ & 0x00000040) != 0) { - output.writeRawByte((byte) 42); + output.writeRawByte((byte) 10); output.writeStringNoTag(countDownText); } if ((bitField0_ & 0x00000080) != 0) { - output.writeRawByte((byte) 66); - output.writeStringNoTag(centerSystemText); + output.writeRawByte((byte) 58); + output.writeStringNoTag(mEGGFNBLOAP); } if ((bitField0_ & 0x00000100) != 0) { - output.writeRawByte((byte) 114); - output.writeStringNoTag(dungeonConfirmText); + output.writeRawByte((byte) 90); + output.writeStringNoTag(bOADMAKGOJI); } } @@ -914,10 +940,10 @@ protected int computeSerializedSize() { size += 1 + ProtoSink.computeUInt32SizeNoTag(configId); } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(centerSystemFrequency); + size += 1 + ProtoSink.computeUInt32SizeNoTag(countDownFrequency); } if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(countDownFrequency); + size += 1 + ProtoSink.computeUInt32SizeNoTag(centerSystemFrequency); } if ((bitField0_ & 0x00000020) != 0) { size += 2; @@ -926,10 +952,10 @@ protected int computeSerializedSize() { size += 1 + ProtoSink.computeStringSizeNoTag(countDownText); } if ((bitField0_ & 0x00000080) != 0) { - size += 1 + ProtoSink.computeStringSizeNoTag(centerSystemText); + size += 1 + ProtoSink.computeStringSizeNoTag(mEGGFNBLOAP); } if ((bitField0_ & 0x00000100) != 0) { - size += 1 + ProtoSink.computeStringSizeNoTag(dungeonConfirmText); + size += 1 + ProtoSink.computeStringSizeNoTag(bOADMAKGOJI); } return size; } @@ -941,36 +967,36 @@ public AnnounceData mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 8: { + case 112: { // beginTime beginTime = input.readInt64(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 32) { + if (tag != 120) { break; } } - case 32: { + case 120: { // endTime endTime = input.readInt64(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 48) { + if (tag != 32) { break; } } - case 48: { + case 32: { // configId configId = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 56) { + if (tag != 40) { break; } } - case 56: { - // centerSystemFrequency - centerSystemFrequency = input.readUInt32(); + case 40: { + // countDownFrequency + countDownFrequency = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 72) { @@ -978,44 +1004,44 @@ public AnnounceData mergeFrom(final ProtoSource input) throws IOException { } } case 72: { - // countDownFrequency - countDownFrequency = input.readUInt32(); + // centerSystemFrequency + centerSystemFrequency = input.readUInt32(); bitField0_ |= 0x00000010; tag = input.readTag(); - if (tag != 88) { + if (tag != 16) { break; } } - case 88: { + case 16: { // isCenterSystemLast5EveryMinutes isCenterSystemLast5EveryMinutes = input.readBool(); bitField0_ |= 0x00000020; tag = input.readTag(); - if (tag != 42) { + if (tag != 10) { break; } } - case 42: { + case 10: { // countDownText input.readString(countDownText); bitField0_ |= 0x00000040; tag = input.readTag(); - if (tag != 66) { + if (tag != 58) { break; } } - case 66: { - // centerSystemText - input.readString(centerSystemText); + case 58: { + // mEGGFNBLOAP + input.readString(mEGGFNBLOAP); bitField0_ |= 0x00000080; tag = input.readTag(); - if (tag != 114) { + if (tag != 90) { break; } } - case 114: { - // dungeonConfirmText - input.readString(dungeonConfirmText); + case 90: { + // bOADMAKGOJI + input.readString(bOADMAKGOJI); bitField0_ |= 0x00000100; tag = input.readTag(); if (tag != 0) { @@ -1049,10 +1075,10 @@ public void writeTo(final JsonSink output) throws IOException { output.writeUInt32(FieldNames.configId, configId); } if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.centerSystemFrequency, centerSystemFrequency); + output.writeUInt32(FieldNames.countDownFrequency, countDownFrequency); } if ((bitField0_ & 0x00000010) != 0) { - output.writeUInt32(FieldNames.countDownFrequency, countDownFrequency); + output.writeUInt32(FieldNames.centerSystemFrequency, centerSystemFrequency); } if ((bitField0_ & 0x00000020) != 0) { output.writeBool(FieldNames.isCenterSystemLast5EveryMinutes, isCenterSystemLast5EveryMinutes); @@ -1061,10 +1087,10 @@ public void writeTo(final JsonSink output) throws IOException { output.writeString(FieldNames.countDownText, countDownText); } if ((bitField0_ & 0x00000080) != 0) { - output.writeString(FieldNames.centerSystemText, centerSystemText); + output.writeString(FieldNames.mEGGFNBLOAP, mEGGFNBLOAP); } if ((bitField0_ & 0x00000100) != 0) { - output.writeString(FieldNames.dungeonConfirmText, dungeonConfirmText); + output.writeString(FieldNames.bOADMAKGOJI, bOADMAKGOJI); } output.endObject(); } @@ -1112,11 +1138,11 @@ public AnnounceData mergeFrom(final JsonSource input) throws IOException { } break; } - case -1285402920: - case 671051254: { - if (input.isAtField(FieldNames.centerSystemFrequency)) { + case 1551558155: + case -1526415569: { + if (input.isAtField(FieldNames.countDownFrequency)) { if (!input.trySkipNullValue()) { - centerSystemFrequency = input.readUInt32(); + countDownFrequency = input.readUInt32(); bitField0_ |= 0x00000008; } } else { @@ -1124,11 +1150,11 @@ public AnnounceData mergeFrom(final JsonSource input) throws IOException { } break; } - case 1551558155: - case -1526415569: { - if (input.isAtField(FieldNames.countDownFrequency)) { + case -1285402920: + case 671051254: { + if (input.isAtField(FieldNames.centerSystemFrequency)) { if (!input.trySkipNullValue()) { - countDownFrequency = input.readUInt32(); + centerSystemFrequency = input.readUInt32(); bitField0_ |= 0x00000010; } } else { @@ -1160,11 +1186,10 @@ public AnnounceData mergeFrom(final JsonSource input) throws IOException { } break; } - case -1011450319: - case 1305338963: { - if (input.isAtField(FieldNames.centerSystemText)) { + case -1898480396: { + if (input.isAtField(FieldNames.mEGGFNBLOAP)) { if (!input.trySkipNullValue()) { - input.readString(centerSystemText); + input.readString(mEGGFNBLOAP); bitField0_ |= 0x00000080; } } else { @@ -1172,11 +1197,10 @@ public AnnounceData mergeFrom(final JsonSource input) throws IOException { } break; } - case 136983795: - case 1723587761: { - if (input.isAtField(FieldNames.dungeonConfirmText)) { + case 1597851310: { + if (input.isAtField(FieldNames.bOADMAKGOJI)) { if (!input.trySkipNullValue()) { - input.readString(dungeonConfirmText); + input.readString(bOADMAKGOJI); bitField0_ |= 0x00000100; } } else { @@ -1243,17 +1267,17 @@ static class FieldNames { static final FieldName configId = FieldName.forField("configId", "config_id"); - static final FieldName centerSystemFrequency = FieldName.forField("centerSystemFrequency", "center_system_frequency"); - static final FieldName countDownFrequency = FieldName.forField("countDownFrequency", "count_down_frequency"); + static final FieldName centerSystemFrequency = FieldName.forField("centerSystemFrequency", "center_system_frequency"); + static final FieldName isCenterSystemLast5EveryMinutes = FieldName.forField("isCenterSystemLast5EveryMinutes", "is_center_system_last_5_every_minutes"); static final FieldName countDownText = FieldName.forField("countDownText", "count_down_text"); - static final FieldName centerSystemText = FieldName.forField("centerSystemText", "center_system_text"); + static final FieldName mEGGFNBLOAP = FieldName.forField("MEGGFNBLOAP"); - static final FieldName dungeonConfirmText = FieldName.forField("dungeonConfirmText", "dungeon_confirm_text"); + static final FieldName bOADMAKGOJI = FieldName.forField("BOADMAKGOJI"); } } diff --git a/src/generated/main/emu/lunarcore/proto/SetClientPausedCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SetClientPausedCsReqOuterClass.java index c59b5f615..50cfb15e9 100644 --- a/src/generated/main/emu/lunarcore/proto/SetClientPausedCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SetClientPausedCsReqOuterClass.java @@ -19,7 +19,7 @@ public static final class SetClientPausedCsReq extends ProtoMessageoptional bool paused = 7; + * optional bool paused = 2; */ private boolean paused; @@ -34,7 +34,7 @@ public static SetClientPausedCsReq newInstance() { } /** - * optional bool paused = 7; + * optional bool paused = 2; * @return whether the paused field is set */ public boolean hasPaused() { @@ -42,7 +42,7 @@ public boolean hasPaused() { } /** - * optional bool paused = 7; + * optional bool paused = 2; * @return this */ public SetClientPausedCsReq clearPaused() { @@ -52,7 +52,7 @@ public SetClientPausedCsReq clearPaused() { } /** - * optional bool paused = 7; + * optional bool paused = 2; * @return the paused */ public boolean getPaused() { @@ -60,7 +60,7 @@ public boolean getPaused() { } /** - * optional bool paused = 7; + * optional bool paused = 2; * @param value the paused to set * @return this */ @@ -129,7 +129,7 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 16); output.writeBoolNoTag(paused); } } @@ -150,7 +150,7 @@ public SetClientPausedCsReq mergeFrom(final ProtoSource input) throws IOExceptio int tag = input.readTag(); while (true) { switch (tag) { - case 56: { + case 16: { // paused paused = input.readBool(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/SetClientPausedScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/SetClientPausedScRspOuterClass.java index 0c7635c1b..260f9c111 100644 --- a/src/generated/main/emu/lunarcore/proto/SetClientPausedScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SetClientPausedScRspOuterClass.java @@ -19,12 +19,12 @@ public static final class SetClientPausedScRsp extends ProtoMessageoptional uint32 retcode = 9; + * optional uint32 retcode = 2; */ private int retcode; /** - * optional bool paused = 1; + * optional bool paused = 12; */ private boolean paused; @@ -39,7 +39,7 @@ public static SetClientPausedScRsp newInstance() { } /** - * optional uint32 retcode = 9; + * optional uint32 retcode = 2; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -47,7 +47,7 @@ public boolean hasRetcode() { } /** - * optional uint32 retcode = 9; + * optional uint32 retcode = 2; * @return this */ public SetClientPausedScRsp clearRetcode() { @@ -57,7 +57,7 @@ public SetClientPausedScRsp clearRetcode() { } /** - * optional uint32 retcode = 9; + * optional uint32 retcode = 2; * @return the retcode */ public int getRetcode() { @@ -65,7 +65,7 @@ public int getRetcode() { } /** - * optional uint32 retcode = 9; + * optional uint32 retcode = 2; * @param value the retcode to set * @return this */ @@ -76,7 +76,7 @@ public SetClientPausedScRsp setRetcode(final int value) { } /** - * optional bool paused = 1; + * optional bool paused = 12; * @return whether the paused field is set */ public boolean hasPaused() { @@ -84,7 +84,7 @@ public boolean hasPaused() { } /** - * optional bool paused = 1; + * optional bool paused = 12; * @return this */ public SetClientPausedScRsp clearPaused() { @@ -94,7 +94,7 @@ public SetClientPausedScRsp clearPaused() { } /** - * optional bool paused = 1; + * optional bool paused = 12; * @return the paused */ public boolean getPaused() { @@ -102,7 +102,7 @@ public boolean getPaused() { } /** - * optional bool paused = 1; + * optional bool paused = 12; * @param value the paused to set * @return this */ @@ -177,11 +177,11 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 72); + output.writeRawByte((byte) 16); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 8); + output.writeRawByte((byte) 96); output.writeBoolNoTag(paused); } } @@ -205,16 +205,16 @@ public SetClientPausedScRsp mergeFrom(final ProtoSource input) throws IOExceptio int tag = input.readTag(); while (true) { switch (tag) { - case 72: { + case 16: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 8) { + if (tag != 96) { break; } } - case 8: { + case 96: { // paused paused = input.readBool(); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/SetGameplayBirthdayCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SetGameplayBirthdayCsReqOuterClass.java index 1343ed8ee..5da5da348 100644 --- a/src/generated/main/emu/lunarcore/proto/SetGameplayBirthdayCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SetGameplayBirthdayCsReqOuterClass.java @@ -19,7 +19,7 @@ public static final class SetGameplayBirthdayCsReq extends ProtoMessageoptional uint32 birthday = 9; + * optional uint32 birthday = 4; */ private int birthday; @@ -34,7 +34,7 @@ public static SetGameplayBirthdayCsReq newInstance() { } /** - * optional uint32 birthday = 9; + * optional uint32 birthday = 4; * @return whether the birthday field is set */ public boolean hasBirthday() { @@ -42,7 +42,7 @@ public boolean hasBirthday() { } /** - * optional uint32 birthday = 9; + * optional uint32 birthday = 4; * @return this */ public SetGameplayBirthdayCsReq clearBirthday() { @@ -52,7 +52,7 @@ public SetGameplayBirthdayCsReq clearBirthday() { } /** - * optional uint32 birthday = 9; + * optional uint32 birthday = 4; * @return the birthday */ public int getBirthday() { @@ -60,7 +60,7 @@ public int getBirthday() { } /** - * optional uint32 birthday = 9; + * optional uint32 birthday = 4; * @param value the birthday to set * @return this */ @@ -129,7 +129,7 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 72); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(birthday); } } @@ -150,7 +150,7 @@ public SetGameplayBirthdayCsReq mergeFrom(final ProtoSource input) throws IOExce int tag = input.readTag(); while (true) { switch (tag) { - case 72: { + case 32: { // birthday birthday = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/SetGameplayBirthdayScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/SetGameplayBirthdayScRspOuterClass.java index f320e29df..ec48b3b6f 100644 --- a/src/generated/main/emu/lunarcore/proto/SetGameplayBirthdayScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SetGameplayBirthdayScRspOuterClass.java @@ -19,12 +19,12 @@ public static final class SetGameplayBirthdayScRsp extends ProtoMessageoptional uint32 birthday = 11; + * optional uint32 birthday = 5; */ private int birthday; /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 15; */ private int retcode; @@ -39,7 +39,7 @@ public static SetGameplayBirthdayScRsp newInstance() { } /** - * optional uint32 birthday = 11; + * optional uint32 birthday = 5; * @return whether the birthday field is set */ public boolean hasBirthday() { @@ -47,7 +47,7 @@ public boolean hasBirthday() { } /** - * optional uint32 birthday = 11; + * optional uint32 birthday = 5; * @return this */ public SetGameplayBirthdayScRsp clearBirthday() { @@ -57,7 +57,7 @@ public SetGameplayBirthdayScRsp clearBirthday() { } /** - * optional uint32 birthday = 11; + * optional uint32 birthday = 5; * @return the birthday */ public int getBirthday() { @@ -65,7 +65,7 @@ public int getBirthday() { } /** - * optional uint32 birthday = 11; + * optional uint32 birthday = 5; * @param value the birthday to set * @return this */ @@ -76,7 +76,7 @@ public SetGameplayBirthdayScRsp setBirthday(final int value) { } /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 15; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -84,7 +84,7 @@ public boolean hasRetcode() { } /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 15; * @return this */ public SetGameplayBirthdayScRsp clearRetcode() { @@ -94,7 +94,7 @@ public SetGameplayBirthdayScRsp clearRetcode() { } /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 15; * @return the retcode */ public int getRetcode() { @@ -102,7 +102,7 @@ public int getRetcode() { } /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 15; * @param value the retcode to set * @return this */ @@ -177,11 +177,11 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 40); output.writeUInt32NoTag(birthday); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 120); output.writeUInt32NoTag(retcode); } } @@ -205,16 +205,16 @@ public SetGameplayBirthdayScRsp mergeFrom(final ProtoSource input) throws IOExce int tag = input.readTag(); while (true) { switch (tag) { - case 88: { + case 40: { // birthday birthday = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 96) { + if (tag != 120) { break; } } - case 96: { + case 120: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/SetHeadIconCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SetHeadIconCsReqOuterClass.java index ecf0393c2..dffad3421 100644 --- a/src/generated/main/emu/lunarcore/proto/SetHeadIconCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SetHeadIconCsReqOuterClass.java @@ -19,7 +19,7 @@ public static final class SetHeadIconCsReq extends ProtoMessageoptional uint32 id = 6; + * optional uint32 id = 5; */ private int id; @@ -34,7 +34,7 @@ public static SetHeadIconCsReq newInstance() { } /** - * optional uint32 id = 6; + * optional uint32 id = 5; * @return whether the id field is set */ public boolean hasId() { @@ -42,7 +42,7 @@ public boolean hasId() { } /** - * optional uint32 id = 6; + * optional uint32 id = 5; * @return this */ public SetHeadIconCsReq clearId() { @@ -52,7 +52,7 @@ public SetHeadIconCsReq clearId() { } /** - * optional uint32 id = 6; + * optional uint32 id = 5; * @return the id */ public int getId() { @@ -60,7 +60,7 @@ public int getId() { } /** - * optional uint32 id = 6; + * optional uint32 id = 5; * @param value the id to set * @return this */ @@ -129,7 +129,7 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 40); output.writeUInt32NoTag(id); } } @@ -150,7 +150,7 @@ public SetHeadIconCsReq mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 48: { + case 40: { // id id = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/SetHeadIconScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/SetHeadIconScRspOuterClass.java index 7155b3304..677ffed7c 100644 --- a/src/generated/main/emu/lunarcore/proto/SetHeadIconScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SetHeadIconScRspOuterClass.java @@ -19,12 +19,12 @@ public static final class SetHeadIconScRsp extends ProtoMessageoptional uint32 retcode = 9; + * optional uint32 retcode = 7; */ private int retcode; /** - * optional uint32 current_head_icon_id = 15; + * optional uint32 current_head_icon_id = 11; */ private int currentHeadIconId; @@ -39,7 +39,7 @@ public static SetHeadIconScRsp newInstance() { } /** - * optional uint32 retcode = 9; + * optional uint32 retcode = 7; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -47,7 +47,7 @@ public boolean hasRetcode() { } /** - * optional uint32 retcode = 9; + * optional uint32 retcode = 7; * @return this */ public SetHeadIconScRsp clearRetcode() { @@ -57,7 +57,7 @@ public SetHeadIconScRsp clearRetcode() { } /** - * optional uint32 retcode = 9; + * optional uint32 retcode = 7; * @return the retcode */ public int getRetcode() { @@ -65,7 +65,7 @@ public int getRetcode() { } /** - * optional uint32 retcode = 9; + * optional uint32 retcode = 7; * @param value the retcode to set * @return this */ @@ -76,7 +76,7 @@ public SetHeadIconScRsp setRetcode(final int value) { } /** - * optional uint32 current_head_icon_id = 15; + * optional uint32 current_head_icon_id = 11; * @return whether the currentHeadIconId field is set */ public boolean hasCurrentHeadIconId() { @@ -84,7 +84,7 @@ public boolean hasCurrentHeadIconId() { } /** - * optional uint32 current_head_icon_id = 15; + * optional uint32 current_head_icon_id = 11; * @return this */ public SetHeadIconScRsp clearCurrentHeadIconId() { @@ -94,7 +94,7 @@ public SetHeadIconScRsp clearCurrentHeadIconId() { } /** - * optional uint32 current_head_icon_id = 15; + * optional uint32 current_head_icon_id = 11; * @return the currentHeadIconId */ public int getCurrentHeadIconId() { @@ -102,7 +102,7 @@ public int getCurrentHeadIconId() { } /** - * optional uint32 current_head_icon_id = 15; + * optional uint32 current_head_icon_id = 11; * @param value the currentHeadIconId to set * @return this */ @@ -177,11 +177,11 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 72); + output.writeRawByte((byte) 56); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 88); output.writeUInt32NoTag(currentHeadIconId); } } @@ -205,16 +205,16 @@ public SetHeadIconScRsp mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 72: { + case 56: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 120) { + if (tag != 88) { break; } } - case 120: { + case 88: { // currentHeadIconId currentHeadIconId = input.readUInt32(); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/SetHeroBasicTypeCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SetHeroBasicTypeCsReqOuterClass.java index 93dc8c0a5..cdd1825af 100644 --- a/src/generated/main/emu/lunarcore/proto/SetHeroBasicTypeCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SetHeroBasicTypeCsReqOuterClass.java @@ -19,7 +19,7 @@ public static final class SetHeroBasicTypeCsReq extends ProtoMessageoptional .HeroBasicType basic_type = 10; + * optional .HeroBasicType basic_type = 7; */ private int basicType; @@ -34,7 +34,7 @@ public static SetHeroBasicTypeCsReq newInstance() { } /** - * optional .HeroBasicType basic_type = 10; + * optional .HeroBasicType basic_type = 7; * @return whether the basicType field is set */ public boolean hasBasicType() { @@ -42,7 +42,7 @@ public boolean hasBasicType() { } /** - * optional .HeroBasicType basic_type = 10; + * optional .HeroBasicType basic_type = 7; * @return this */ public SetHeroBasicTypeCsReq clearBasicType() { @@ -52,7 +52,7 @@ public SetHeroBasicTypeCsReq clearBasicType() { } /** - * optional .HeroBasicType basic_type = 10; + * optional .HeroBasicType basic_type = 7; * @return the basicType */ public HeroBasicTypeOuterClass.HeroBasicType getBasicType() { @@ -85,7 +85,7 @@ public SetHeroBasicTypeCsReq setBasicTypeValue(final int value) { } /** - * optional .HeroBasicType basic_type = 10; + * optional .HeroBasicType basic_type = 7; * @param value the basicType to set * @return this */ @@ -154,7 +154,7 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 56); output.writeEnumNoTag(basicType); } } @@ -175,7 +175,7 @@ public SetHeroBasicTypeCsReq mergeFrom(final ProtoSource input) throws IOExcepti int tag = input.readTag(); while (true) { switch (tag) { - case 80: { + case 56: { // basicType final int value = input.readInt32(); if (HeroBasicTypeOuterClass.HeroBasicType.forNumber(value) != null) { diff --git a/src/generated/main/emu/lunarcore/proto/SetHeroBasicTypeScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/SetHeroBasicTypeScRspOuterClass.java index 745457b24..54a237cc2 100644 --- a/src/generated/main/emu/lunarcore/proto/SetHeroBasicTypeScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SetHeroBasicTypeScRspOuterClass.java @@ -19,7 +19,7 @@ public static final class SetHeroBasicTypeScRsp extends ProtoMessageoptional uint32 retcode = 8; + * optional uint32 retcode = 13; */ private int retcode; @@ -39,7 +39,7 @@ public static SetHeroBasicTypeScRsp newInstance() { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 13; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -47,7 +47,7 @@ public boolean hasRetcode() { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 13; * @return this */ public SetHeroBasicTypeScRsp clearRetcode() { @@ -57,7 +57,7 @@ public SetHeroBasicTypeScRsp clearRetcode() { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 13; * @return the retcode */ public int getRetcode() { @@ -65,7 +65,7 @@ public int getRetcode() { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 13; * @param value the retcode to set * @return this */ @@ -202,7 +202,7 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 104); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { @@ -230,7 +230,7 @@ public SetHeroBasicTypeScRsp mergeFrom(final ProtoSource input) throws IOExcepti int tag = input.readTag(); while (true) { switch (tag) { - case 64: { + case 104: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/SetLineupNameCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SetLineupNameCsReqOuterClass.java index 077415ad0..76d68c15a 100644 --- a/src/generated/main/emu/lunarcore/proto/SetLineupNameCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SetLineupNameCsReqOuterClass.java @@ -20,12 +20,12 @@ public static final class SetLineupNameCsReq extends ProtoMessageoptional uint32 index = 7; + * optional uint32 index = 13; */ private int index; /** - * optional string name = 1; + * optional string name = 15; */ private final Utf8String name = Utf8String.newEmptyInstance(); @@ -40,7 +40,7 @@ public static SetLineupNameCsReq newInstance() { } /** - * optional uint32 index = 7; + * optional uint32 index = 13; * @return whether the index field is set */ public boolean hasIndex() { @@ -48,7 +48,7 @@ public boolean hasIndex() { } /** - * optional uint32 index = 7; + * optional uint32 index = 13; * @return this */ public SetLineupNameCsReq clearIndex() { @@ -58,7 +58,7 @@ public SetLineupNameCsReq clearIndex() { } /** - * optional uint32 index = 7; + * optional uint32 index = 13; * @return the index */ public int getIndex() { @@ -66,7 +66,7 @@ public int getIndex() { } /** - * optional uint32 index = 7; + * optional uint32 index = 13; * @param value the index to set * @return this */ @@ -77,7 +77,7 @@ public SetLineupNameCsReq setIndex(final int value) { } /** - * optional string name = 1; + * optional string name = 15; * @return whether the name field is set */ public boolean hasName() { @@ -85,7 +85,7 @@ public boolean hasName() { } /** - * optional string name = 1; + * optional string name = 15; * @return this */ public SetLineupNameCsReq clearName() { @@ -95,7 +95,7 @@ public SetLineupNameCsReq clearName() { } /** - * optional string name = 1; + * optional string name = 15; * @return the name */ public String getName() { @@ -103,7 +103,7 @@ public String getName() { } /** - * optional string name = 1; + * optional string name = 15; * @return internal {@code Utf8String} representation of name for reading */ public Utf8String getNameBytes() { @@ -111,7 +111,7 @@ public Utf8String getNameBytes() { } /** - * optional string name = 1; + * optional string name = 15; * @return internal {@code Utf8String} representation of name for modifications */ public Utf8String getMutableNameBytes() { @@ -120,7 +120,7 @@ public Utf8String getMutableNameBytes() { } /** - * optional string name = 1; + * optional string name = 15; * @param value the name to set * @return this */ @@ -131,7 +131,7 @@ public SetLineupNameCsReq setName(final CharSequence value) { } /** - * optional string name = 1; + * optional string name = 15; * @param value the name to set * @return this */ @@ -207,11 +207,11 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 104); output.writeUInt32NoTag(index); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 10); + output.writeRawByte((byte) 122); output.writeStringNoTag(name); } } @@ -235,16 +235,16 @@ public SetLineupNameCsReq mergeFrom(final ProtoSource input) throws IOException int tag = input.readTag(); while (true) { switch (tag) { - case 56: { + case 104: { // index index = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 10) { + if (tag != 122) { break; } } - case 10: { + case 122: { // name input.readString(name); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/SetLineupNameScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/SetLineupNameScRspOuterClass.java index 9c790f362..76f94d884 100644 --- a/src/generated/main/emu/lunarcore/proto/SetLineupNameScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SetLineupNameScRspOuterClass.java @@ -20,7 +20,7 @@ public static final class SetLineupNameScRsp extends ProtoMessageoptional uint32 index = 2; + * optional uint32 index = 8; */ private int index; @@ -30,7 +30,7 @@ public static final class SetLineupNameScRsp extends ProtoMessageoptional string name = 8; + * optional string name = 7; */ private final Utf8String name = Utf8String.newEmptyInstance(); @@ -45,7 +45,7 @@ public static SetLineupNameScRsp newInstance() { } /** - * optional uint32 index = 2; + * optional uint32 index = 8; * @return whether the index field is set */ public boolean hasIndex() { @@ -53,7 +53,7 @@ public boolean hasIndex() { } /** - * optional uint32 index = 2; + * optional uint32 index = 8; * @return this */ public SetLineupNameScRsp clearIndex() { @@ -63,7 +63,7 @@ public SetLineupNameScRsp clearIndex() { } /** - * optional uint32 index = 2; + * optional uint32 index = 8; * @return the index */ public int getIndex() { @@ -71,7 +71,7 @@ public int getIndex() { } /** - * optional uint32 index = 2; + * optional uint32 index = 8; * @param value the index to set * @return this */ @@ -119,7 +119,7 @@ public SetLineupNameScRsp setRetcode(final int value) { } /** - * optional string name = 8; + * optional string name = 7; * @return whether the name field is set */ public boolean hasName() { @@ -127,7 +127,7 @@ public boolean hasName() { } /** - * optional string name = 8; + * optional string name = 7; * @return this */ public SetLineupNameScRsp clearName() { @@ -137,7 +137,7 @@ public SetLineupNameScRsp clearName() { } /** - * optional string name = 8; + * optional string name = 7; * @return the name */ public String getName() { @@ -145,7 +145,7 @@ public String getName() { } /** - * optional string name = 8; + * optional string name = 7; * @return internal {@code Utf8String} representation of name for reading */ public Utf8String getNameBytes() { @@ -153,7 +153,7 @@ public Utf8String getNameBytes() { } /** - * optional string name = 8; + * optional string name = 7; * @return internal {@code Utf8String} representation of name for modifications */ public Utf8String getMutableNameBytes() { @@ -162,7 +162,7 @@ public Utf8String getMutableNameBytes() { } /** - * optional string name = 8; + * optional string name = 7; * @param value the name to set * @return this */ @@ -173,7 +173,7 @@ public SetLineupNameScRsp setName(final CharSequence value) { } /** - * optional string name = 8; + * optional string name = 7; * @param value the name to set * @return this */ @@ -255,7 +255,7 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); + output.writeRawByte((byte) 64); output.writeUInt32NoTag(index); } if ((bitField0_ & 0x00000002) != 0) { @@ -263,7 +263,7 @@ public void writeTo(final ProtoSink output) throws IOException { output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 66); + output.writeRawByte((byte) 58); output.writeStringNoTag(name); } } @@ -290,7 +290,7 @@ public SetLineupNameScRsp mergeFrom(final ProtoSource input) throws IOException int tag = input.readTag(); while (true) { switch (tag) { - case 16: { + case 64: { // index index = input.readUInt32(); bitField0_ |= 0x00000001; @@ -304,11 +304,11 @@ public SetLineupNameScRsp mergeFrom(final ProtoSource input) throws IOException retcode = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 66) { + if (tag != 58) { break; } } - case 66: { + case 58: { // name input.readString(name); bitField0_ |= 0x00000004; diff --git a/src/generated/main/emu/lunarcore/proto/SetNicknameCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SetNicknameCsReqOuterClass.java index b523e3013..93a1b7756 100644 --- a/src/generated/main/emu/lunarcore/proto/SetNicknameCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SetNicknameCsReqOuterClass.java @@ -20,7 +20,7 @@ public static final class SetNicknameCsReq extends ProtoMessageoptional string nickname = 1; + * optional string nickname = 3; */ private final Utf8String nickname = Utf8String.newEmptyInstance(); @@ -35,7 +35,7 @@ public static SetNicknameCsReq newInstance() { } /** - * optional string nickname = 1; + * optional string nickname = 3; * @return whether the nickname field is set */ public boolean hasNickname() { @@ -43,7 +43,7 @@ public boolean hasNickname() { } /** - * optional string nickname = 1; + * optional string nickname = 3; * @return this */ public SetNicknameCsReq clearNickname() { @@ -53,7 +53,7 @@ public SetNicknameCsReq clearNickname() { } /** - * optional string nickname = 1; + * optional string nickname = 3; * @return the nickname */ public String getNickname() { @@ -61,7 +61,7 @@ public String getNickname() { } /** - * optional string nickname = 1; + * optional string nickname = 3; * @return internal {@code Utf8String} representation of nickname for reading */ public Utf8String getNicknameBytes() { @@ -69,7 +69,7 @@ public Utf8String getNicknameBytes() { } /** - * optional string nickname = 1; + * optional string nickname = 3; * @return internal {@code Utf8String} representation of nickname for modifications */ public Utf8String getMutableNicknameBytes() { @@ -78,7 +78,7 @@ public Utf8String getMutableNicknameBytes() { } /** - * optional string nickname = 1; + * optional string nickname = 3; * @param value the nickname to set * @return this */ @@ -89,7 +89,7 @@ public SetNicknameCsReq setNickname(final CharSequence value) { } /** - * optional string nickname = 1; + * optional string nickname = 3; * @param value the nickname to set * @return this */ @@ -159,7 +159,7 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 10); + output.writeRawByte((byte) 26); output.writeStringNoTag(nickname); } } @@ -180,7 +180,7 @@ public SetNicknameCsReq mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 10: { + case 26: { // nickname input.readString(nickname); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/SetSignatureCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SetSignatureCsReqOuterClass.java index cbd2771ed..8a8545dab 100644 --- a/src/generated/main/emu/lunarcore/proto/SetSignatureCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SetSignatureCsReqOuterClass.java @@ -20,7 +20,7 @@ public static final class SetSignatureCsReq extends ProtoMessageoptional string signature = 10; + * optional string signature = 15; */ private final Utf8String signature = Utf8String.newEmptyInstance(); @@ -35,7 +35,7 @@ public static SetSignatureCsReq newInstance() { } /** - * optional string signature = 10; + * optional string signature = 15; * @return whether the signature field is set */ public boolean hasSignature() { @@ -43,7 +43,7 @@ public boolean hasSignature() { } /** - * optional string signature = 10; + * optional string signature = 15; * @return this */ public SetSignatureCsReq clearSignature() { @@ -53,7 +53,7 @@ public SetSignatureCsReq clearSignature() { } /** - * optional string signature = 10; + * optional string signature = 15; * @return the signature */ public String getSignature() { @@ -61,7 +61,7 @@ public String getSignature() { } /** - * optional string signature = 10; + * optional string signature = 15; * @return internal {@code Utf8String} representation of signature for reading */ public Utf8String getSignatureBytes() { @@ -69,7 +69,7 @@ public Utf8String getSignatureBytes() { } /** - * optional string signature = 10; + * optional string signature = 15; * @return internal {@code Utf8String} representation of signature for modifications */ public Utf8String getMutableSignatureBytes() { @@ -78,7 +78,7 @@ public Utf8String getMutableSignatureBytes() { } /** - * optional string signature = 10; + * optional string signature = 15; * @param value the signature to set * @return this */ @@ -89,7 +89,7 @@ public SetSignatureCsReq setSignature(final CharSequence value) { } /** - * optional string signature = 10; + * optional string signature = 15; * @param value the signature to set * @return this */ @@ -159,7 +159,7 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 82); + output.writeRawByte((byte) 122); output.writeStringNoTag(signature); } } @@ -180,7 +180,7 @@ public SetSignatureCsReq mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 82: { + case 122: { // signature input.readString(signature); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/SetSignatureScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/SetSignatureScRspOuterClass.java index fa3c932cd..4bfeb69ec 100644 --- a/src/generated/main/emu/lunarcore/proto/SetSignatureScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SetSignatureScRspOuterClass.java @@ -20,12 +20,12 @@ public static final class SetSignatureScRsp extends ProtoMessageoptional uint32 retcode = 8; + * optional uint32 retcode = 4; */ private int retcode; /** - * optional string signature = 11; + * optional string signature = 1; */ private final Utf8String signature = Utf8String.newEmptyInstance(); @@ -40,7 +40,7 @@ public static SetSignatureScRsp newInstance() { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 4; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -48,7 +48,7 @@ public boolean hasRetcode() { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 4; * @return this */ public SetSignatureScRsp clearRetcode() { @@ -58,7 +58,7 @@ public SetSignatureScRsp clearRetcode() { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 4; * @return the retcode */ public int getRetcode() { @@ -66,7 +66,7 @@ public int getRetcode() { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 4; * @param value the retcode to set * @return this */ @@ -77,7 +77,7 @@ public SetSignatureScRsp setRetcode(final int value) { } /** - * optional string signature = 11; + * optional string signature = 1; * @return whether the signature field is set */ public boolean hasSignature() { @@ -85,7 +85,7 @@ public boolean hasSignature() { } /** - * optional string signature = 11; + * optional string signature = 1; * @return this */ public SetSignatureScRsp clearSignature() { @@ -95,7 +95,7 @@ public SetSignatureScRsp clearSignature() { } /** - * optional string signature = 11; + * optional string signature = 1; * @return the signature */ public String getSignature() { @@ -103,7 +103,7 @@ public String getSignature() { } /** - * optional string signature = 11; + * optional string signature = 1; * @return internal {@code Utf8String} representation of signature for reading */ public Utf8String getSignatureBytes() { @@ -111,7 +111,7 @@ public Utf8String getSignatureBytes() { } /** - * optional string signature = 11; + * optional string signature = 1; * @return internal {@code Utf8String} representation of signature for modifications */ public Utf8String getMutableSignatureBytes() { @@ -120,7 +120,7 @@ public Utf8String getMutableSignatureBytes() { } /** - * optional string signature = 11; + * optional string signature = 1; * @param value the signature to set * @return this */ @@ -131,7 +131,7 @@ public SetSignatureScRsp setSignature(final CharSequence value) { } /** - * optional string signature = 11; + * optional string signature = 1; * @param value the signature to set * @return this */ @@ -207,11 +207,11 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 90); + output.writeRawByte((byte) 10); output.writeStringNoTag(signature); } } @@ -235,16 +235,16 @@ public SetSignatureScRsp mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 64: { + case 32: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 90) { + if (tag != 10) { break; } } - case 90: { + case 10: { // signature input.readString(signature); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/ShopOuterClass.java b/src/generated/main/emu/lunarcore/proto/ShopOuterClass.java index d19d67efc..19d1ff6cb 100644 --- a/src/generated/main/emu/lunarcore/proto/ShopOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ShopOuterClass.java @@ -20,37 +20,37 @@ public static final class Shop extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * optional int64 end_time = 1; + * optional int64 begin_time = 8; */ - private long endTime; + private long beginTime; /** - * optional int64 begin_time = 3; + * optional int64 end_time = 13; */ - private long beginTime; + private long endTime; /** - * optional uint64 city_taken_level_reward = 6; + * optional uint64 city_taken_level_reward = 3; */ private long cityTakenLevelReward; /** - * optional uint32 city_exp = 7; + * optional uint32 city_level = 5; */ - private int cityExp; + private int cityLevel; /** - * optional uint32 shop_id = 8; + * optional uint32 city_exp = 10; */ - private int shopId; + private int cityExp; /** - * optional uint32 city_level = 10; + * optional uint32 shop_id = 11; */ - private int cityLevel; + private int shopId; /** - * repeated .Goods goods_list = 12; + * repeated .Goods goods_list = 2; */ private final RepeatedMessage goodsList = RepeatedMessage.newEmptyInstance(GoodsOuterClass.Goods.getFactory()); @@ -65,81 +65,81 @@ public static Shop newInstance() { } /** - * optional int64 end_time = 1; - * @return whether the endTime field is set + * optional int64 begin_time = 8; + * @return whether the beginTime field is set */ - public boolean hasEndTime() { + public boolean hasBeginTime() { return (bitField0_ & 0x00000001) != 0; } /** - * optional int64 end_time = 1; + * optional int64 begin_time = 8; * @return this */ - public Shop clearEndTime() { + public Shop clearBeginTime() { bitField0_ &= ~0x00000001; - endTime = 0L; + beginTime = 0L; return this; } /** - * optional int64 end_time = 1; - * @return the endTime + * optional int64 begin_time = 8; + * @return the beginTime */ - public long getEndTime() { - return endTime; + public long getBeginTime() { + return beginTime; } /** - * optional int64 end_time = 1; - * @param value the endTime to set + * optional int64 begin_time = 8; + * @param value the beginTime to set * @return this */ - public Shop setEndTime(final long value) { + public Shop setBeginTime(final long value) { bitField0_ |= 0x00000001; - endTime = value; + beginTime = value; return this; } /** - * optional int64 begin_time = 3; - * @return whether the beginTime field is set + * optional int64 end_time = 13; + * @return whether the endTime field is set */ - public boolean hasBeginTime() { + public boolean hasEndTime() { return (bitField0_ & 0x00000002) != 0; } /** - * optional int64 begin_time = 3; + * optional int64 end_time = 13; * @return this */ - public Shop clearBeginTime() { + public Shop clearEndTime() { bitField0_ &= ~0x00000002; - beginTime = 0L; + endTime = 0L; return this; } /** - * optional int64 begin_time = 3; - * @return the beginTime + * optional int64 end_time = 13; + * @return the endTime */ - public long getBeginTime() { - return beginTime; + public long getEndTime() { + return endTime; } /** - * optional int64 begin_time = 3; - * @param value the beginTime to set + * optional int64 end_time = 13; + * @param value the endTime to set * @return this */ - public Shop setBeginTime(final long value) { + public Shop setEndTime(final long value) { bitField0_ |= 0x00000002; - beginTime = value; + endTime = value; return this; } /** - * optional uint64 city_taken_level_reward = 6; + * optional uint64 city_taken_level_reward = 3; * @return whether the cityTakenLevelReward field is set */ public boolean hasCityTakenLevelReward() { @@ -147,7 +147,7 @@ public boolean hasCityTakenLevelReward() { } /** - * optional uint64 city_taken_level_reward = 6; + * optional uint64 city_taken_level_reward = 3; * @return this */ public Shop clearCityTakenLevelReward() { @@ -157,7 +157,7 @@ public Shop clearCityTakenLevelReward() { } /** - * optional uint64 city_taken_level_reward = 6; + * optional uint64 city_taken_level_reward = 3; * @return the cityTakenLevelReward */ public long getCityTakenLevelReward() { @@ -165,7 +165,7 @@ public long getCityTakenLevelReward() { } /** - * optional uint64 city_taken_level_reward = 6; + * optional uint64 city_taken_level_reward = 3; * @param value the cityTakenLevelReward to set * @return this */ @@ -176,118 +176,118 @@ public Shop setCityTakenLevelReward(final long value) { } /** - * optional uint32 city_exp = 7; - * @return whether the cityExp field is set + * optional uint32 city_level = 5; + * @return whether the cityLevel field is set */ - public boolean hasCityExp() { + public boolean hasCityLevel() { return (bitField0_ & 0x00000008) != 0; } /** - * optional uint32 city_exp = 7; + * optional uint32 city_level = 5; * @return this */ - public Shop clearCityExp() { + public Shop clearCityLevel() { bitField0_ &= ~0x00000008; - cityExp = 0; + cityLevel = 0; return this; } /** - * optional uint32 city_exp = 7; - * @return the cityExp + * optional uint32 city_level = 5; + * @return the cityLevel */ - public int getCityExp() { - return cityExp; + public int getCityLevel() { + return cityLevel; } /** - * optional uint32 city_exp = 7; - * @param value the cityExp to set + * optional uint32 city_level = 5; + * @param value the cityLevel to set * @return this */ - public Shop setCityExp(final int value) { + public Shop setCityLevel(final int value) { bitField0_ |= 0x00000008; - cityExp = value; + cityLevel = value; return this; } /** - * optional uint32 shop_id = 8; - * @return whether the shopId field is set + * optional uint32 city_exp = 10; + * @return whether the cityExp field is set */ - public boolean hasShopId() { + public boolean hasCityExp() { return (bitField0_ & 0x00000010) != 0; } /** - * optional uint32 shop_id = 8; + * optional uint32 city_exp = 10; * @return this */ - public Shop clearShopId() { + public Shop clearCityExp() { bitField0_ &= ~0x00000010; - shopId = 0; + cityExp = 0; return this; } /** - * optional uint32 shop_id = 8; - * @return the shopId + * optional uint32 city_exp = 10; + * @return the cityExp */ - public int getShopId() { - return shopId; + public int getCityExp() { + return cityExp; } /** - * optional uint32 shop_id = 8; - * @param value the shopId to set + * optional uint32 city_exp = 10; + * @param value the cityExp to set * @return this */ - public Shop setShopId(final int value) { + public Shop setCityExp(final int value) { bitField0_ |= 0x00000010; - shopId = value; + cityExp = value; return this; } /** - * optional uint32 city_level = 10; - * @return whether the cityLevel field is set + * optional uint32 shop_id = 11; + * @return whether the shopId field is set */ - public boolean hasCityLevel() { + public boolean hasShopId() { return (bitField0_ & 0x00000020) != 0; } /** - * optional uint32 city_level = 10; + * optional uint32 shop_id = 11; * @return this */ - public Shop clearCityLevel() { + public Shop clearShopId() { bitField0_ &= ~0x00000020; - cityLevel = 0; + shopId = 0; return this; } /** - * optional uint32 city_level = 10; - * @return the cityLevel + * optional uint32 shop_id = 11; + * @return the shopId */ - public int getCityLevel() { - return cityLevel; + public int getShopId() { + return shopId; } /** - * optional uint32 city_level = 10; - * @param value the cityLevel to set + * optional uint32 shop_id = 11; + * @param value the shopId to set * @return this */ - public Shop setCityLevel(final int value) { + public Shop setShopId(final int value) { bitField0_ |= 0x00000020; - cityLevel = value; + shopId = value; return this; } /** - * repeated .Goods goods_list = 12; + * repeated .Goods goods_list = 2; * @return whether the goodsList field is set */ public boolean hasGoodsList() { @@ -295,7 +295,7 @@ public boolean hasGoodsList() { } /** - * repeated .Goods goods_list = 12; + * repeated .Goods goods_list = 2; * @return this */ public Shop clearGoodsList() { @@ -305,7 +305,7 @@ public Shop clearGoodsList() { } /** - * repeated .Goods goods_list = 12; + * repeated .Goods goods_list = 2; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -319,7 +319,7 @@ public RepeatedMessage getGoodsList() { } /** - * repeated .Goods goods_list = 12; + * repeated .Goods goods_list = 2; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -333,7 +333,7 @@ public RepeatedMessage getMutableGoodsList() { } /** - * repeated .Goods goods_list = 12; + * repeated .Goods goods_list = 2; * @param value the goodsList to add * @return this */ @@ -344,7 +344,7 @@ public Shop addGoodsList(final GoodsOuterClass.Goods value) { } /** - * repeated .Goods goods_list = 12; + * repeated .Goods goods_list = 2; * @param values the goodsList to add * @return this */ @@ -359,12 +359,12 @@ public Shop copyFrom(final Shop other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - endTime = other.endTime; beginTime = other.beginTime; + endTime = other.endTime; cityTakenLevelReward = other.cityTakenLevelReward; + cityLevel = other.cityLevel; cityExp = other.cityExp; shopId = other.shopId; - cityLevel = other.cityLevel; goodsList.copyFrom(other.goodsList); } return this; @@ -376,24 +376,24 @@ public Shop mergeFrom(final Shop other) { return this; } cachedSize = -1; - if (other.hasEndTime()) { - setEndTime(other.endTime); - } if (other.hasBeginTime()) { setBeginTime(other.beginTime); } + if (other.hasEndTime()) { + setEndTime(other.endTime); + } if (other.hasCityTakenLevelReward()) { setCityTakenLevelReward(other.cityTakenLevelReward); } + if (other.hasCityLevel()) { + setCityLevel(other.cityLevel); + } if (other.hasCityExp()) { setCityExp(other.cityExp); } if (other.hasShopId()) { setShopId(other.shopId); } - if (other.hasCityLevel()) { - setCityLevel(other.cityLevel); - } if (other.hasGoodsList()) { getMutableGoodsList().addAll(other.goodsList); } @@ -407,12 +407,12 @@ public Shop clear() { } cachedSize = -1; bitField0_ = 0; - endTime = 0L; beginTime = 0L; + endTime = 0L; cityTakenLevelReward = 0L; + cityLevel = 0; cityExp = 0; shopId = 0; - cityLevel = 0; goodsList.clear(); return this; } @@ -438,44 +438,44 @@ public boolean equals(Object o) { } Shop other = (Shop) o; return bitField0_ == other.bitField0_ - && (!hasEndTime() || endTime == other.endTime) && (!hasBeginTime() || beginTime == other.beginTime) + && (!hasEndTime() || endTime == other.endTime) && (!hasCityTakenLevelReward() || cityTakenLevelReward == other.cityTakenLevelReward) + && (!hasCityLevel() || cityLevel == other.cityLevel) && (!hasCityExp() || cityExp == other.cityExp) && (!hasShopId() || shopId == other.shopId) - && (!hasCityLevel() || cityLevel == other.cityLevel) && (!hasGoodsList() || goodsList.equals(other.goodsList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); - output.writeInt64NoTag(endTime); + output.writeRawByte((byte) 64); + output.writeInt64NoTag(beginTime); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 24); - output.writeInt64NoTag(beginTime); + output.writeRawByte((byte) 104); + output.writeInt64NoTag(endTime); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 24); output.writeUInt64NoTag(cityTakenLevelReward); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 56); - output.writeUInt32NoTag(cityExp); + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(cityLevel); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 64); - output.writeUInt32NoTag(shopId); + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(cityExp); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 80); - output.writeUInt32NoTag(cityLevel); + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(shopId); } if ((bitField0_ & 0x00000040) != 0) { for (int i = 0; i < goodsList.length(); i++) { - output.writeRawByte((byte) 98); + output.writeRawByte((byte) 18); output.writeMessageNoTag(goodsList.get(i)); } } @@ -485,22 +485,22 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeInt64SizeNoTag(endTime); + size += 1 + ProtoSink.computeInt64SizeNoTag(beginTime); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeInt64SizeNoTag(beginTime); + size += 1 + ProtoSink.computeInt64SizeNoTag(endTime); } if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt64SizeNoTag(cityTakenLevelReward); } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(cityExp); + size += 1 + ProtoSink.computeUInt32SizeNoTag(cityLevel); } if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(shopId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(cityExp); } if ((bitField0_ & 0x00000020) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(cityLevel); + size += 1 + ProtoSink.computeUInt32SizeNoTag(shopId); } if ((bitField0_ & 0x00000040) != 0) { size += (1 * goodsList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(goodsList); @@ -515,61 +515,61 @@ public Shop mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 8: { - // endTime - endTime = input.readInt64(); + case 64: { + // beginTime + beginTime = input.readInt64(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 24) { + if (tag != 104) { break; } } - case 24: { - // beginTime - beginTime = input.readInt64(); + case 104: { + // endTime + endTime = input.readInt64(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 48) { + if (tag != 24) { break; } } - case 48: { + case 24: { // cityTakenLevelReward cityTakenLevelReward = input.readUInt64(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 56) { + if (tag != 40) { break; } } - case 56: { - // cityExp - cityExp = input.readUInt32(); + case 40: { + // cityLevel + cityLevel = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 64) { + if (tag != 80) { break; } } - case 64: { - // shopId - shopId = input.readUInt32(); + case 80: { + // cityExp + cityExp = input.readUInt32(); bitField0_ |= 0x00000010; tag = input.readTag(); - if (tag != 80) { + if (tag != 88) { break; } } - case 80: { - // cityLevel - cityLevel = input.readUInt32(); + case 88: { + // shopId + shopId = input.readUInt32(); bitField0_ |= 0x00000020; tag = input.readTag(); - if (tag != 98) { + if (tag != 18) { break; } } - case 98: { + case 18: { // goodsList tag = input.readRepeatedMessage(goodsList, tag); bitField0_ |= 0x00000040; @@ -595,22 +595,22 @@ public Shop mergeFrom(final ProtoSource input) throws IOException { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeInt64(FieldNames.endTime, endTime); + output.writeInt64(FieldNames.beginTime, beginTime); } if ((bitField0_ & 0x00000002) != 0) { - output.writeInt64(FieldNames.beginTime, beginTime); + output.writeInt64(FieldNames.endTime, endTime); } if ((bitField0_ & 0x00000004) != 0) { output.writeUInt64(FieldNames.cityTakenLevelReward, cityTakenLevelReward); } if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.cityExp, cityExp); + output.writeUInt32(FieldNames.cityLevel, cityLevel); } if ((bitField0_ & 0x00000010) != 0) { - output.writeUInt32(FieldNames.shopId, shopId); + output.writeUInt32(FieldNames.cityExp, cityExp); } if ((bitField0_ & 0x00000020) != 0) { - output.writeUInt32(FieldNames.cityLevel, cityLevel); + output.writeUInt32(FieldNames.shopId, shopId); } if ((bitField0_ & 0x00000040) != 0) { output.writeRepeatedMessage(FieldNames.goodsList, goodsList); @@ -625,11 +625,11 @@ public Shop mergeFrom(final JsonSource input) throws IOException { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -1607243192: - case 1725551537: { - if (input.isAtField(FieldNames.endTime)) { + case -1072839914: + case 1112183971: { + if (input.isAtField(FieldNames.beginTime)) { if (!input.trySkipNullValue()) { - endTime = input.readInt64(); + beginTime = input.readInt64(); bitField0_ |= 0x00000001; } } else { @@ -637,11 +637,11 @@ public Shop mergeFrom(final JsonSource input) throws IOException { } break; } - case -1072839914: - case 1112183971: { - if (input.isAtField(FieldNames.beginTime)) { + case -1607243192: + case 1725551537: { + if (input.isAtField(FieldNames.endTime)) { if (!input.trySkipNullValue()) { - beginTime = input.readInt64(); + endTime = input.readInt64(); bitField0_ |= 0x00000002; } } else { @@ -661,11 +661,11 @@ public Shop mergeFrom(final JsonSource input) throws IOException { } break; } - case 785415346: - case -1421171383: { - if (input.isAtField(FieldNames.cityExp)) { + case -1124188967: + case 59808688: { + if (input.isAtField(FieldNames.cityLevel)) { if (!input.trySkipNullValue()) { - cityExp = input.readUInt32(); + cityLevel = input.readUInt32(); bitField0_ |= 0x00000008; } } else { @@ -673,11 +673,11 @@ public Shop mergeFrom(final JsonSource input) throws IOException { } break; } - case -903151951: - case 2067081988: { - if (input.isAtField(FieldNames.shopId)) { + case 785415346: + case -1421171383: { + if (input.isAtField(FieldNames.cityExp)) { if (!input.trySkipNullValue()) { - shopId = input.readUInt32(); + cityExp = input.readUInt32(); bitField0_ |= 0x00000010; } } else { @@ -685,11 +685,11 @@ public Shop mergeFrom(final JsonSource input) throws IOException { } break; } - case -1124188967: - case 59808688: { - if (input.isAtField(FieldNames.cityLevel)) { + case -903151951: + case 2067081988: { + if (input.isAtField(FieldNames.shopId)) { if (!input.trySkipNullValue()) { - cityLevel = input.readUInt32(); + shopId = input.readUInt32(); bitField0_ |= 0x00000020; } } else { @@ -761,18 +761,18 @@ public Shop create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName endTime = FieldName.forField("endTime", "end_time"); - static final FieldName beginTime = FieldName.forField("beginTime", "begin_time"); + static final FieldName endTime = FieldName.forField("endTime", "end_time"); + static final FieldName cityTakenLevelReward = FieldName.forField("cityTakenLevelReward", "city_taken_level_reward"); + static final FieldName cityLevel = FieldName.forField("cityLevel", "city_level"); + static final FieldName cityExp = FieldName.forField("cityExp", "city_exp"); static final FieldName shopId = FieldName.forField("shopId", "shop_id"); - static final FieldName cityLevel = FieldName.forField("cityLevel", "city_level"); - static final FieldName goodsList = FieldName.forField("goodsList", "goods_list"); } } diff --git a/src/generated/main/emu/lunarcore/proto/SimpleAvatarInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/SimpleAvatarInfoOuterClass.java index 628f60f04..755f8501a 100644 --- a/src/generated/main/emu/lunarcore/proto/SimpleAvatarInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SimpleAvatarInfoOuterClass.java @@ -19,19 +19,19 @@ public static final class SimpleAvatarInfo extends ProtoMessageoptional uint32 level = 8; + * optional uint32 dressed_skin_id = 2; */ - private int level; + private int dressedSkinId; /** - * optional uint32 equipment_unique_id = 13; + * optional uint32 avatar_id = 5; */ - private int equipmentUniqueId; + private int avatarId; /** - * optional uint32 avatar_id = 15; + * optional uint32 level = 10; */ - private int avatarId; + private int level; private SimpleAvatarInfo() { } @@ -44,113 +44,113 @@ public static SimpleAvatarInfo newInstance() { } /** - * optional uint32 level = 8; - * @return whether the level field is set + * optional uint32 dressed_skin_id = 2; + * @return whether the dressedSkinId field is set */ - public boolean hasLevel() { + public boolean hasDressedSkinId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 level = 8; + * optional uint32 dressed_skin_id = 2; * @return this */ - public SimpleAvatarInfo clearLevel() { + public SimpleAvatarInfo clearDressedSkinId() { bitField0_ &= ~0x00000001; - level = 0; + dressedSkinId = 0; return this; } /** - * optional uint32 level = 8; - * @return the level + * optional uint32 dressed_skin_id = 2; + * @return the dressedSkinId */ - public int getLevel() { - return level; + public int getDressedSkinId() { + return dressedSkinId; } /** - * optional uint32 level = 8; - * @param value the level to set + * optional uint32 dressed_skin_id = 2; + * @param value the dressedSkinId to set * @return this */ - public SimpleAvatarInfo setLevel(final int value) { + public SimpleAvatarInfo setDressedSkinId(final int value) { bitField0_ |= 0x00000001; - level = value; + dressedSkinId = value; return this; } /** - * optional uint32 equipment_unique_id = 13; - * @return whether the equipmentUniqueId field is set + * optional uint32 avatar_id = 5; + * @return whether the avatarId field is set */ - public boolean hasEquipmentUniqueId() { + public boolean hasAvatarId() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 equipment_unique_id = 13; + * optional uint32 avatar_id = 5; * @return this */ - public SimpleAvatarInfo clearEquipmentUniqueId() { + public SimpleAvatarInfo clearAvatarId() { bitField0_ &= ~0x00000002; - equipmentUniqueId = 0; + avatarId = 0; return this; } /** - * optional uint32 equipment_unique_id = 13; - * @return the equipmentUniqueId + * optional uint32 avatar_id = 5; + * @return the avatarId */ - public int getEquipmentUniqueId() { - return equipmentUniqueId; + public int getAvatarId() { + return avatarId; } /** - * optional uint32 equipment_unique_id = 13; - * @param value the equipmentUniqueId to set + * optional uint32 avatar_id = 5; + * @param value the avatarId to set * @return this */ - public SimpleAvatarInfo setEquipmentUniqueId(final int value) { + public SimpleAvatarInfo setAvatarId(final int value) { bitField0_ |= 0x00000002; - equipmentUniqueId = value; + avatarId = value; return this; } /** - * optional uint32 avatar_id = 15; - * @return whether the avatarId field is set + * optional uint32 level = 10; + * @return whether the level field is set */ - public boolean hasAvatarId() { + public boolean hasLevel() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 avatar_id = 15; + * optional uint32 level = 10; * @return this */ - public SimpleAvatarInfo clearAvatarId() { + public SimpleAvatarInfo clearLevel() { bitField0_ &= ~0x00000004; - avatarId = 0; + level = 0; return this; } /** - * optional uint32 avatar_id = 15; - * @return the avatarId + * optional uint32 level = 10; + * @return the level */ - public int getAvatarId() { - return avatarId; + public int getLevel() { + return level; } /** - * optional uint32 avatar_id = 15; - * @param value the avatarId to set + * optional uint32 level = 10; + * @param value the level to set * @return this */ - public SimpleAvatarInfo setAvatarId(final int value) { + public SimpleAvatarInfo setLevel(final int value) { bitField0_ |= 0x00000004; - avatarId = value; + level = value; return this; } @@ -159,9 +159,9 @@ public SimpleAvatarInfo copyFrom(final SimpleAvatarInfo other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - level = other.level; - equipmentUniqueId = other.equipmentUniqueId; + dressedSkinId = other.dressedSkinId; avatarId = other.avatarId; + level = other.level; } return this; } @@ -172,15 +172,15 @@ public SimpleAvatarInfo mergeFrom(final SimpleAvatarInfo other) { return this; } cachedSize = -1; - if (other.hasLevel()) { - setLevel(other.level); - } - if (other.hasEquipmentUniqueId()) { - setEquipmentUniqueId(other.equipmentUniqueId); + if (other.hasDressedSkinId()) { + setDressedSkinId(other.dressedSkinId); } if (other.hasAvatarId()) { setAvatarId(other.avatarId); } + if (other.hasLevel()) { + setLevel(other.level); + } return this; } @@ -191,9 +191,9 @@ public SimpleAvatarInfo clear() { } cachedSize = -1; bitField0_ = 0; - level = 0; - equipmentUniqueId = 0; + dressedSkinId = 0; avatarId = 0; + level = 0; return this; } @@ -217,24 +217,24 @@ public boolean equals(Object o) { } SimpleAvatarInfo other = (SimpleAvatarInfo) o; return bitField0_ == other.bitField0_ - && (!hasLevel() || level == other.level) - && (!hasEquipmentUniqueId() || equipmentUniqueId == other.equipmentUniqueId) - && (!hasAvatarId() || avatarId == other.avatarId); + && (!hasDressedSkinId() || dressedSkinId == other.dressedSkinId) + && (!hasAvatarId() || avatarId == other.avatarId) + && (!hasLevel() || level == other.level); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 64); - output.writeUInt32NoTag(level); + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(dressedSkinId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 104); - output.writeUInt32NoTag(equipmentUniqueId); + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(avatarId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 120); - output.writeUInt32NoTag(avatarId); + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(level); } } @@ -242,13 +242,13 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(level); + size += 1 + ProtoSink.computeUInt32SizeNoTag(dressedSkinId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(equipmentUniqueId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(avatarId); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(avatarId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(level); } return size; } @@ -260,27 +260,27 @@ public SimpleAvatarInfo mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 64: { - // level - level = input.readUInt32(); + case 16: { + // dressedSkinId + dressedSkinId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 104) { + if (tag != 40) { break; } } - case 104: { - // equipmentUniqueId - equipmentUniqueId = input.readUInt32(); + case 40: { + // avatarId + avatarId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 120) { + if (tag != 80) { break; } } - case 120: { - // avatarId - avatarId = input.readUInt32(); + case 80: { + // level + level = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 0) { @@ -305,13 +305,13 @@ public SimpleAvatarInfo mergeFrom(final ProtoSource input) throws IOException { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.level, level); + output.writeUInt32(FieldNames.dressedSkinId, dressedSkinId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.equipmentUniqueId, equipmentUniqueId); + output.writeUInt32(FieldNames.avatarId, avatarId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.avatarId, avatarId); + output.writeUInt32(FieldNames.level, level); } output.endObject(); } @@ -323,10 +323,11 @@ public SimpleAvatarInfo mergeFrom(final JsonSource input) throws IOException { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 102865796: { - if (input.isAtField(FieldNames.level)) { + case -407000018: + case 2012697844: { + if (input.isAtField(FieldNames.dressedSkinId)) { if (!input.trySkipNullValue()) { - level = input.readUInt32(); + dressedSkinId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -334,11 +335,11 @@ public SimpleAvatarInfo mergeFrom(final JsonSource input) throws IOException { } break; } - case -1867136902: - case 760467160: { - if (input.isAtField(FieldNames.equipmentUniqueId)) { + case 1787287636: + case -428636735: { + if (input.isAtField(FieldNames.avatarId)) { if (!input.trySkipNullValue()) { - equipmentUniqueId = input.readUInt32(); + avatarId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -346,11 +347,10 @@ public SimpleAvatarInfo mergeFrom(final JsonSource input) throws IOException { } break; } - case 1787287636: - case -428636735: { - if (input.isAtField(FieldNames.avatarId)) { + case 102865796: { + if (input.isAtField(FieldNames.level)) { if (!input.trySkipNullValue()) { - avatarId = input.readUInt32(); + level = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -411,11 +411,11 @@ public SimpleAvatarInfo create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName level = FieldName.forField("level"); - - static final FieldName equipmentUniqueId = FieldName.forField("equipmentUniqueId", "equipment_unique_id"); + static final FieldName dressedSkinId = FieldName.forField("dressedSkinId", "dressed_skin_id"); static final FieldName avatarId = FieldName.forField("avatarId", "avatar_id"); + + static final FieldName level = FieldName.forField("level"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/SimpleInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/SimpleInfoOuterClass.java index 8bd432bfc..6bfbcc0a7 100644 --- a/src/generated/main/emu/lunarcore/proto/SimpleInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SimpleInfoOuterClass.java @@ -20,47 +20,47 @@ public static final class SimpleInfo extends ProtoMessage implements private static final long serialVersionUID = 0L; /** - * optional int64 last_active_time = 14; + * optional int64 last_active_time = 12; */ private long lastActiveTime; /** - * optional uint32 level = 2; + * optional uint32 uid = 1; */ - private int level; + private int uid; /** - * optional uint32 head_icon = 10; + * optional uint32 chat_bubble_id = 11; */ - private int headIcon; + private int chatBubbleId; /** - * optional uint32 uid = 12; + * optional uint32 head_icon = 13; */ - private int uid; + private int headIcon; /** - * optional uint32 chat_bubble_id = 13; + * optional uint32 level = 14; */ - private int chatBubbleId; + private int level; /** - * optional .PlatformType platform_type = 7; + * optional .FriendOnlineStatus online_status = 3; */ - private int platformType; + private int onlineStatus; /** - * optional .FriendOnlineStatus online_status = 15; + * optional .PlatformType platform_type = 15; */ - private int onlineStatus; + private int platformType; /** - * optional .SimpleAvatarInfo simple_avatar_info = 3; + * optional .SimpleAvatarInfo simple_avatar_info = 6; */ private final SimpleAvatarInfoOuterClass.SimpleAvatarInfo simpleAvatarInfo = SimpleAvatarInfoOuterClass.SimpleAvatarInfo.newInstance(); /** - * optional string nickname = 4; + * optional string nickname = 2; */ private final Utf8String nickname = Utf8String.newEmptyInstance(); @@ -80,7 +80,7 @@ public static SimpleInfo newInstance() { } /** - * optional int64 last_active_time = 14; + * optional int64 last_active_time = 12; * @return whether the lastActiveTime field is set */ public boolean hasLastActiveTime() { @@ -88,7 +88,7 @@ public boolean hasLastActiveTime() { } /** - * optional int64 last_active_time = 14; + * optional int64 last_active_time = 12; * @return this */ public SimpleInfo clearLastActiveTime() { @@ -98,7 +98,7 @@ public SimpleInfo clearLastActiveTime() { } /** - * optional int64 last_active_time = 14; + * optional int64 last_active_time = 12; * @return the lastActiveTime */ public long getLastActiveTime() { @@ -106,7 +106,7 @@ public long getLastActiveTime() { } /** - * optional int64 last_active_time = 14; + * optional int64 last_active_time = 12; * @param value the lastActiveTime to set * @return this */ @@ -117,279 +117,279 @@ public SimpleInfo setLastActiveTime(final long value) { } /** - * optional uint32 level = 2; - * @return whether the level field is set + * optional uint32 uid = 1; + * @return whether the uid field is set */ - public boolean hasLevel() { + public boolean hasUid() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 level = 2; + * optional uint32 uid = 1; * @return this */ - public SimpleInfo clearLevel() { + public SimpleInfo clearUid() { bitField0_ &= ~0x00000002; - level = 0; + uid = 0; return this; } /** - * optional uint32 level = 2; - * @return the level + * optional uint32 uid = 1; + * @return the uid */ - public int getLevel() { - return level; + public int getUid() { + return uid; } /** - * optional uint32 level = 2; - * @param value the level to set + * optional uint32 uid = 1; + * @param value the uid to set * @return this */ - public SimpleInfo setLevel(final int value) { + public SimpleInfo setUid(final int value) { bitField0_ |= 0x00000002; - level = value; + uid = value; return this; } /** - * optional uint32 head_icon = 10; - * @return whether the headIcon field is set + * optional uint32 chat_bubble_id = 11; + * @return whether the chatBubbleId field is set */ - public boolean hasHeadIcon() { + public boolean hasChatBubbleId() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 head_icon = 10; + * optional uint32 chat_bubble_id = 11; * @return this */ - public SimpleInfo clearHeadIcon() { + public SimpleInfo clearChatBubbleId() { bitField0_ &= ~0x00000004; - headIcon = 0; + chatBubbleId = 0; return this; } /** - * optional uint32 head_icon = 10; - * @return the headIcon + * optional uint32 chat_bubble_id = 11; + * @return the chatBubbleId */ - public int getHeadIcon() { - return headIcon; + public int getChatBubbleId() { + return chatBubbleId; } /** - * optional uint32 head_icon = 10; - * @param value the headIcon to set + * optional uint32 chat_bubble_id = 11; + * @param value the chatBubbleId to set * @return this */ - public SimpleInfo setHeadIcon(final int value) { + public SimpleInfo setChatBubbleId(final int value) { bitField0_ |= 0x00000004; - headIcon = value; + chatBubbleId = value; return this; } /** - * optional uint32 uid = 12; - * @return whether the uid field is set + * optional uint32 head_icon = 13; + * @return whether the headIcon field is set */ - public boolean hasUid() { + public boolean hasHeadIcon() { return (bitField0_ & 0x00000008) != 0; } /** - * optional uint32 uid = 12; + * optional uint32 head_icon = 13; * @return this */ - public SimpleInfo clearUid() { + public SimpleInfo clearHeadIcon() { bitField0_ &= ~0x00000008; - uid = 0; + headIcon = 0; return this; } /** - * optional uint32 uid = 12; - * @return the uid + * optional uint32 head_icon = 13; + * @return the headIcon */ - public int getUid() { - return uid; + public int getHeadIcon() { + return headIcon; } /** - * optional uint32 uid = 12; - * @param value the uid to set + * optional uint32 head_icon = 13; + * @param value the headIcon to set * @return this */ - public SimpleInfo setUid(final int value) { + public SimpleInfo setHeadIcon(final int value) { bitField0_ |= 0x00000008; - uid = value; + headIcon = value; return this; } /** - * optional uint32 chat_bubble_id = 13; - * @return whether the chatBubbleId field is set + * optional uint32 level = 14; + * @return whether the level field is set */ - public boolean hasChatBubbleId() { + public boolean hasLevel() { return (bitField0_ & 0x00000010) != 0; } /** - * optional uint32 chat_bubble_id = 13; + * optional uint32 level = 14; * @return this */ - public SimpleInfo clearChatBubbleId() { + public SimpleInfo clearLevel() { bitField0_ &= ~0x00000010; - chatBubbleId = 0; + level = 0; return this; } /** - * optional uint32 chat_bubble_id = 13; - * @return the chatBubbleId + * optional uint32 level = 14; + * @return the level */ - public int getChatBubbleId() { - return chatBubbleId; + public int getLevel() { + return level; } /** - * optional uint32 chat_bubble_id = 13; - * @param value the chatBubbleId to set + * optional uint32 level = 14; + * @param value the level to set * @return this */ - public SimpleInfo setChatBubbleId(final int value) { + public SimpleInfo setLevel(final int value) { bitField0_ |= 0x00000010; - chatBubbleId = value; + level = value; return this; } /** - * optional .PlatformType platform_type = 7; - * @return whether the platformType field is set + * optional .FriendOnlineStatus online_status = 3; + * @return whether the onlineStatus field is set */ - public boolean hasPlatformType() { + public boolean hasOnlineStatus() { return (bitField0_ & 0x00000020) != 0; } /** - * optional .PlatformType platform_type = 7; + * optional .FriendOnlineStatus online_status = 3; * @return this */ - public SimpleInfo clearPlatformType() { + public SimpleInfo clearOnlineStatus() { bitField0_ &= ~0x00000020; - platformType = 0; + onlineStatus = 0; return this; } /** - * optional .PlatformType platform_type = 7; - * @return the platformType + * optional .FriendOnlineStatus online_status = 3; + * @return the onlineStatus */ - public PlatformTypeOuterClass.PlatformType getPlatformType() { - return PlatformTypeOuterClass.PlatformType.forNumber(platformType); + public FriendOnlineStatusOuterClass.FriendOnlineStatus getOnlineStatus() { + return FriendOnlineStatusOuterClass.FriendOnlineStatus.forNumber(onlineStatus); } /** * Gets the value of the internal enum store. The result is - * equivalent to {@link SimpleInfo#getPlatformType()}.getNumber(). + * equivalent to {@link SimpleInfo#getOnlineStatus()}.getNumber(). * * @return numeric wire representation */ - public int getPlatformTypeValue() { - return platformType; + public int getOnlineStatusValue() { + return onlineStatus; } /** * Sets the value of the internal enum store. This does not * do any validity checks, so be sure to use appropriate value - * constants from {@link PlatformTypeOuterClass.PlatformType}. Setting an invalid value - * can cause {@link SimpleInfo#getPlatformType()} to return null + * constants from {@link FriendOnlineStatusOuterClass.FriendOnlineStatus}. Setting an invalid value + * can cause {@link SimpleInfo#getOnlineStatus()} to return null * * @param value the numeric wire value to set * @return this */ - public SimpleInfo setPlatformTypeValue(final int value) { + public SimpleInfo setOnlineStatusValue(final int value) { bitField0_ |= 0x00000020; - platformType = value; + onlineStatus = value; return this; } /** - * optional .PlatformType platform_type = 7; - * @param value the platformType to set + * optional .FriendOnlineStatus online_status = 3; + * @param value the onlineStatus to set * @return this */ - public SimpleInfo setPlatformType(final PlatformTypeOuterClass.PlatformType value) { + public SimpleInfo setOnlineStatus(final FriendOnlineStatusOuterClass.FriendOnlineStatus value) { bitField0_ |= 0x00000020; - platformType = value.getNumber(); + onlineStatus = value.getNumber(); return this; } /** - * optional .FriendOnlineStatus online_status = 15; - * @return whether the onlineStatus field is set + * optional .PlatformType platform_type = 15; + * @return whether the platformType field is set */ - public boolean hasOnlineStatus() { + public boolean hasPlatformType() { return (bitField0_ & 0x00000040) != 0; } /** - * optional .FriendOnlineStatus online_status = 15; + * optional .PlatformType platform_type = 15; * @return this */ - public SimpleInfo clearOnlineStatus() { + public SimpleInfo clearPlatformType() { bitField0_ &= ~0x00000040; - onlineStatus = 0; + platformType = 0; return this; } /** - * optional .FriendOnlineStatus online_status = 15; - * @return the onlineStatus + * optional .PlatformType platform_type = 15; + * @return the platformType */ - public FriendOnlineStatusOuterClass.FriendOnlineStatus getOnlineStatus() { - return FriendOnlineStatusOuterClass.FriendOnlineStatus.forNumber(onlineStatus); + public PlatformTypeOuterClass.PlatformType getPlatformType() { + return PlatformTypeOuterClass.PlatformType.forNumber(platformType); } /** * Gets the value of the internal enum store. The result is - * equivalent to {@link SimpleInfo#getOnlineStatus()}.getNumber(). + * equivalent to {@link SimpleInfo#getPlatformType()}.getNumber(). * * @return numeric wire representation */ - public int getOnlineStatusValue() { - return onlineStatus; + public int getPlatformTypeValue() { + return platformType; } /** * Sets the value of the internal enum store. This does not * do any validity checks, so be sure to use appropriate value - * constants from {@link FriendOnlineStatusOuterClass.FriendOnlineStatus}. Setting an invalid value - * can cause {@link SimpleInfo#getOnlineStatus()} to return null + * constants from {@link PlatformTypeOuterClass.PlatformType}. Setting an invalid value + * can cause {@link SimpleInfo#getPlatformType()} to return null * * @param value the numeric wire value to set * @return this */ - public SimpleInfo setOnlineStatusValue(final int value) { + public SimpleInfo setPlatformTypeValue(final int value) { bitField0_ |= 0x00000040; - onlineStatus = value; + platformType = value; return this; } /** - * optional .FriendOnlineStatus online_status = 15; - * @param value the onlineStatus to set + * optional .PlatformType platform_type = 15; + * @param value the platformType to set * @return this */ - public SimpleInfo setOnlineStatus(final FriendOnlineStatusOuterClass.FriendOnlineStatus value) { + public SimpleInfo setPlatformType(final PlatformTypeOuterClass.PlatformType value) { bitField0_ |= 0x00000040; - onlineStatus = value.getNumber(); + platformType = value.getNumber(); return this; } /** - * optional .SimpleAvatarInfo simple_avatar_info = 3; + * optional .SimpleAvatarInfo simple_avatar_info = 6; * @return whether the simpleAvatarInfo field is set */ public boolean hasSimpleAvatarInfo() { @@ -397,7 +397,7 @@ public boolean hasSimpleAvatarInfo() { } /** - * optional .SimpleAvatarInfo simple_avatar_info = 3; + * optional .SimpleAvatarInfo simple_avatar_info = 6; * @return this */ public SimpleInfo clearSimpleAvatarInfo() { @@ -407,7 +407,7 @@ public SimpleInfo clearSimpleAvatarInfo() { } /** - * optional .SimpleAvatarInfo simple_avatar_info = 3; + * optional .SimpleAvatarInfo simple_avatar_info = 6; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -421,7 +421,7 @@ public SimpleAvatarInfoOuterClass.SimpleAvatarInfo getSimpleAvatarInfo() { } /** - * optional .SimpleAvatarInfo simple_avatar_info = 3; + * optional .SimpleAvatarInfo simple_avatar_info = 6; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -435,7 +435,7 @@ public SimpleAvatarInfoOuterClass.SimpleAvatarInfo getMutableSimpleAvatarInfo() } /** - * optional .SimpleAvatarInfo simple_avatar_info = 3; + * optional .SimpleAvatarInfo simple_avatar_info = 6; * @param value the simpleAvatarInfo to set * @return this */ @@ -446,7 +446,7 @@ public SimpleInfo setSimpleAvatarInfo(final SimpleAvatarInfoOuterClass.SimpleAva } /** - * optional string nickname = 4; + * optional string nickname = 2; * @return whether the nickname field is set */ public boolean hasNickname() { @@ -454,7 +454,7 @@ public boolean hasNickname() { } /** - * optional string nickname = 4; + * optional string nickname = 2; * @return this */ public SimpleInfo clearNickname() { @@ -464,7 +464,7 @@ public SimpleInfo clearNickname() { } /** - * optional string nickname = 4; + * optional string nickname = 2; * @return the nickname */ public String getNickname() { @@ -472,7 +472,7 @@ public String getNickname() { } /** - * optional string nickname = 4; + * optional string nickname = 2; * @return internal {@code Utf8String} representation of nickname for reading */ public Utf8String getNicknameBytes() { @@ -480,7 +480,7 @@ public Utf8String getNicknameBytes() { } /** - * optional string nickname = 4; + * optional string nickname = 2; * @return internal {@code Utf8String} representation of nickname for modifications */ public Utf8String getMutableNicknameBytes() { @@ -489,7 +489,7 @@ public Utf8String getMutableNicknameBytes() { } /** - * optional string nickname = 4; + * optional string nickname = 2; * @param value the nickname to set * @return this */ @@ -500,7 +500,7 @@ public SimpleInfo setNickname(final CharSequence value) { } /** - * optional string nickname = 4; + * optional string nickname = 2; * @param value the nickname to set * @return this */ @@ -581,12 +581,12 @@ public SimpleInfo copyFrom(final SimpleInfo other) { if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; lastActiveTime = other.lastActiveTime; - level = other.level; - headIcon = other.headIcon; uid = other.uid; chatBubbleId = other.chatBubbleId; - platformType = other.platformType; + headIcon = other.headIcon; + level = other.level; onlineStatus = other.onlineStatus; + platformType = other.platformType; simpleAvatarInfo.copyFrom(other.simpleAvatarInfo); nickname.copyFrom(other.nickname); signature.copyFrom(other.signature); @@ -603,24 +603,24 @@ public SimpleInfo mergeFrom(final SimpleInfo other) { if (other.hasLastActiveTime()) { setLastActiveTime(other.lastActiveTime); } - if (other.hasLevel()) { - setLevel(other.level); - } - if (other.hasHeadIcon()) { - setHeadIcon(other.headIcon); - } if (other.hasUid()) { setUid(other.uid); } if (other.hasChatBubbleId()) { setChatBubbleId(other.chatBubbleId); } - if (other.hasPlatformType()) { - setPlatformTypeValue(other.platformType); + if (other.hasHeadIcon()) { + setHeadIcon(other.headIcon); + } + if (other.hasLevel()) { + setLevel(other.level); } if (other.hasOnlineStatus()) { setOnlineStatusValue(other.onlineStatus); } + if (other.hasPlatformType()) { + setPlatformTypeValue(other.platformType); + } if (other.hasSimpleAvatarInfo()) { getMutableSimpleAvatarInfo().mergeFrom(other.simpleAvatarInfo); } @@ -641,12 +641,12 @@ public SimpleInfo clear() { cachedSize = -1; bitField0_ = 0; lastActiveTime = 0L; - level = 0; - headIcon = 0; uid = 0; chatBubbleId = 0; - platformType = 0; + headIcon = 0; + level = 0; onlineStatus = 0; + platformType = 0; simpleAvatarInfo.clear(); nickname.clear(); signature.clear(); @@ -677,12 +677,12 @@ public boolean equals(Object o) { SimpleInfo other = (SimpleInfo) o; return bitField0_ == other.bitField0_ && (!hasLastActiveTime() || lastActiveTime == other.lastActiveTime) - && (!hasLevel() || level == other.level) - && (!hasHeadIcon() || headIcon == other.headIcon) && (!hasUid() || uid == other.uid) && (!hasChatBubbleId() || chatBubbleId == other.chatBubbleId) - && (!hasPlatformType() || platformType == other.platformType) + && (!hasHeadIcon() || headIcon == other.headIcon) + && (!hasLevel() || level == other.level) && (!hasOnlineStatus() || onlineStatus == other.onlineStatus) + && (!hasPlatformType() || platformType == other.platformType) && (!hasSimpleAvatarInfo() || simpleAvatarInfo.equals(other.simpleAvatarInfo)) && (!hasNickname() || nickname.equals(other.nickname)) && (!hasSignature() || signature.equals(other.signature)); @@ -691,39 +691,39 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 96); output.writeInt64NoTag(lastActiveTime); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(level); + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(uid); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 80); - output.writeUInt32NoTag(headIcon); + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(chatBubbleId); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 96); - output.writeUInt32NoTag(uid); + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(headIcon); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 104); - output.writeUInt32NoTag(chatBubbleId); + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(level); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 56); - output.writeEnumNoTag(platformType); + output.writeRawByte((byte) 24); + output.writeEnumNoTag(onlineStatus); } if ((bitField0_ & 0x00000040) != 0) { output.writeRawByte((byte) 120); - output.writeEnumNoTag(onlineStatus); + output.writeEnumNoTag(platformType); } if ((bitField0_ & 0x00000080) != 0) { - output.writeRawByte((byte) 26); + output.writeRawByte((byte) 50); output.writeMessageNoTag(simpleAvatarInfo); } if ((bitField0_ & 0x00000100) != 0) { - output.writeRawByte((byte) 34); + output.writeRawByte((byte) 18); output.writeStringNoTag(nickname); } if ((bitField0_ & 0x00000200) != 0) { @@ -739,22 +739,22 @@ protected int computeSerializedSize() { size += 1 + ProtoSink.computeInt64SizeNoTag(lastActiveTime); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(level); + size += 1 + ProtoSink.computeUInt32SizeNoTag(uid); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(headIcon); + size += 1 + ProtoSink.computeUInt32SizeNoTag(chatBubbleId); } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(uid); + size += 1 + ProtoSink.computeUInt32SizeNoTag(headIcon); } if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(chatBubbleId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(level); } if ((bitField0_ & 0x00000020) != 0) { - size += 1 + ProtoSink.computeEnumSizeNoTag(platformType); + size += 1 + ProtoSink.computeEnumSizeNoTag(onlineStatus); } if ((bitField0_ & 0x00000040) != 0) { - size += 1 + ProtoSink.computeEnumSizeNoTag(onlineStatus); + size += 1 + ProtoSink.computeEnumSizeNoTag(platformType); } if ((bitField0_ & 0x00000080) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(simpleAvatarInfo); @@ -775,56 +775,56 @@ public SimpleInfo mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 112: { + case 96: { // lastActiveTime lastActiveTime = input.readInt64(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 16) { + if (tag != 8) { break; } } - case 16: { - // level - level = input.readUInt32(); + case 8: { + // uid + uid = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 80) { + if (tag != 88) { break; } } - case 80: { - // headIcon - headIcon = input.readUInt32(); + case 88: { + // chatBubbleId + chatBubbleId = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 96) { + if (tag != 104) { break; } } - case 96: { - // uid - uid = input.readUInt32(); + case 104: { + // headIcon + headIcon = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 104) { + if (tag != 112) { break; } } - case 104: { - // chatBubbleId - chatBubbleId = input.readUInt32(); + case 112: { + // level + level = input.readUInt32(); bitField0_ |= 0x00000010; tag = input.readTag(); - if (tag != 56) { + if (tag != 24) { break; } } - case 56: { - // platformType + case 24: { + // onlineStatus final int value = input.readInt32(); - if (PlatformTypeOuterClass.PlatformType.forNumber(value) != null) { - platformType = value; + if (FriendOnlineStatusOuterClass.FriendOnlineStatus.forNumber(value) != null) { + onlineStatus = value; bitField0_ |= 0x00000020; } tag = input.readTag(); @@ -833,27 +833,27 @@ public SimpleInfo mergeFrom(final ProtoSource input) throws IOException { } } case 120: { - // onlineStatus + // platformType final int value = input.readInt32(); - if (FriendOnlineStatusOuterClass.FriendOnlineStatus.forNumber(value) != null) { - onlineStatus = value; + if (PlatformTypeOuterClass.PlatformType.forNumber(value) != null) { + platformType = value; bitField0_ |= 0x00000040; } tag = input.readTag(); - if (tag != 26) { + if (tag != 50) { break; } } - case 26: { + case 50: { // simpleAvatarInfo input.readMessage(simpleAvatarInfo); bitField0_ |= 0x00000080; tag = input.readTag(); - if (tag != 34) { + if (tag != 18) { break; } } - case 34: { + case 18: { // nickname input.readString(nickname); bitField0_ |= 0x00000100; @@ -892,22 +892,22 @@ public void writeTo(final JsonSink output) throws IOException { output.writeInt64(FieldNames.lastActiveTime, lastActiveTime); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.level, level); + output.writeUInt32(FieldNames.uid, uid); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.headIcon, headIcon); + output.writeUInt32(FieldNames.chatBubbleId, chatBubbleId); } if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.uid, uid); + output.writeUInt32(FieldNames.headIcon, headIcon); } if ((bitField0_ & 0x00000010) != 0) { - output.writeUInt32(FieldNames.chatBubbleId, chatBubbleId); + output.writeUInt32(FieldNames.level, level); } if ((bitField0_ & 0x00000020) != 0) { - output.writeEnum(FieldNames.platformType, platformType, PlatformTypeOuterClass.PlatformType.converter()); + output.writeEnum(FieldNames.onlineStatus, onlineStatus, FriendOnlineStatusOuterClass.FriendOnlineStatus.converter()); } if ((bitField0_ & 0x00000040) != 0) { - output.writeEnum(FieldNames.onlineStatus, onlineStatus, FriendOnlineStatusOuterClass.FriendOnlineStatus.converter()); + output.writeEnum(FieldNames.platformType, platformType, PlatformTypeOuterClass.PlatformType.converter()); } if ((bitField0_ & 0x00000080) != 0) { output.writeMessage(FieldNames.simpleAvatarInfo, simpleAvatarInfo); @@ -940,10 +940,10 @@ public SimpleInfo mergeFrom(final JsonSource input) throws IOException { } break; } - case 102865796: { - if (input.isAtField(FieldNames.level)) { + case 115792: { + if (input.isAtField(FieldNames.uid)) { if (!input.trySkipNullValue()) { - level = input.readUInt32(); + uid = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -951,11 +951,11 @@ public SimpleInfo mergeFrom(final JsonSource input) throws IOException { } break; } - case -1116107143: - case -219098248: { - if (input.isAtField(FieldNames.headIcon)) { + case -678761921: + case 1892426119: { + if (input.isAtField(FieldNames.chatBubbleId)) { if (!input.trySkipNullValue()) { - headIcon = input.readUInt32(); + chatBubbleId = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -963,10 +963,11 @@ public SimpleInfo mergeFrom(final JsonSource input) throws IOException { } break; } - case 115792: { - if (input.isAtField(FieldNames.uid)) { + case -1116107143: + case -219098248: { + if (input.isAtField(FieldNames.headIcon)) { if (!input.trySkipNullValue()) { - uid = input.readUInt32(); + headIcon = input.readUInt32(); bitField0_ |= 0x00000008; } } else { @@ -974,11 +975,10 @@ public SimpleInfo mergeFrom(final JsonSource input) throws IOException { } break; } - case -678761921: - case 1892426119: { - if (input.isAtField(FieldNames.chatBubbleId)) { + case 102865796: { + if (input.isAtField(FieldNames.level)) { if (!input.trySkipNullValue()) { - chatBubbleId = input.readUInt32(); + level = input.readUInt32(); bitField0_ |= 0x00000010; } } else { @@ -986,13 +986,13 @@ public SimpleInfo mergeFrom(final JsonSource input) throws IOException { } break; } - case 155581005: - case 538062726: { - if (input.isAtField(FieldNames.platformType)) { + case 1159866405: + case -650386594: { + if (input.isAtField(FieldNames.onlineStatus)) { if (!input.trySkipNullValue()) { - final PlatformTypeOuterClass.PlatformType value = input.readEnum(PlatformTypeOuterClass.PlatformType.converter()); + final FriendOnlineStatusOuterClass.FriendOnlineStatus value = input.readEnum(FriendOnlineStatusOuterClass.FriendOnlineStatus.converter()); if (value != null) { - platformType = value.getNumber(); + onlineStatus = value.getNumber(); bitField0_ |= 0x00000020; } else { input.skipUnknownEnumValue(); @@ -1003,13 +1003,13 @@ public SimpleInfo mergeFrom(final JsonSource input) throws IOException { } break; } - case 1159866405: - case -650386594: { - if (input.isAtField(FieldNames.onlineStatus)) { + case 155581005: + case 538062726: { + if (input.isAtField(FieldNames.platformType)) { if (!input.trySkipNullValue()) { - final FriendOnlineStatusOuterClass.FriendOnlineStatus value = input.readEnum(FriendOnlineStatusOuterClass.FriendOnlineStatus.converter()); + final PlatformTypeOuterClass.PlatformType value = input.readEnum(PlatformTypeOuterClass.PlatformType.converter()); if (value != null) { - onlineStatus = value.getNumber(); + platformType = value.getNumber(); bitField0_ |= 0x00000040; } else { input.skipUnknownEnumValue(); @@ -1108,18 +1108,18 @@ public SimpleInfo create() { static class FieldNames { static final FieldName lastActiveTime = FieldName.forField("lastActiveTime", "last_active_time"); - static final FieldName level = FieldName.forField("level"); - - static final FieldName headIcon = FieldName.forField("headIcon", "head_icon"); - static final FieldName uid = FieldName.forField("uid"); static final FieldName chatBubbleId = FieldName.forField("chatBubbleId", "chat_bubble_id"); - static final FieldName platformType = FieldName.forField("platformType", "platform_type"); + static final FieldName headIcon = FieldName.forField("headIcon", "head_icon"); + + static final FieldName level = FieldName.forField("level"); static final FieldName onlineStatus = FieldName.forField("onlineStatus", "online_status"); + static final FieldName platformType = FieldName.forField("platformType", "platform_type"); + static final FieldName simpleAvatarInfo = FieldName.forField("simpleAvatarInfo", "simple_avatar_info"); static final FieldName nickname = FieldName.forField("nickname"); diff --git a/src/generated/main/emu/lunarcore/proto/StaminaInfoScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/StaminaInfoScNotifyOuterClass.java index a62632ca1..b512ffc9a 100644 --- a/src/generated/main/emu/lunarcore/proto/StaminaInfoScNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/StaminaInfoScNotifyOuterClass.java @@ -19,19 +19,19 @@ public static final class StaminaInfoScNotify extends ProtoMessageoptional int64 next_recover_time = 9; + * optional int64 next_recover_time = 7; */ private long nextRecoverTime; /** - * optional uint32 reserve_stamina = 10; + * optional uint32 stamina = 4; */ - private int reserveStamina; + private int stamina; /** - * optional uint32 stamina = 13; + * optional uint32 reserve_stamina = 13; */ - private int stamina; + private int reserveStamina; private StaminaInfoScNotify() { } @@ -44,7 +44,7 @@ public static StaminaInfoScNotify newInstance() { } /** - * optional int64 next_recover_time = 9; + * optional int64 next_recover_time = 7; * @return whether the nextRecoverTime field is set */ public boolean hasNextRecoverTime() { @@ -52,7 +52,7 @@ public boolean hasNextRecoverTime() { } /** - * optional int64 next_recover_time = 9; + * optional int64 next_recover_time = 7; * @return this */ public StaminaInfoScNotify clearNextRecoverTime() { @@ -62,7 +62,7 @@ public StaminaInfoScNotify clearNextRecoverTime() { } /** - * optional int64 next_recover_time = 9; + * optional int64 next_recover_time = 7; * @return the nextRecoverTime */ public long getNextRecoverTime() { @@ -70,7 +70,7 @@ public long getNextRecoverTime() { } /** - * optional int64 next_recover_time = 9; + * optional int64 next_recover_time = 7; * @param value the nextRecoverTime to set * @return this */ @@ -81,76 +81,76 @@ public StaminaInfoScNotify setNextRecoverTime(final long value) { } /** - * optional uint32 reserve_stamina = 10; - * @return whether the reserveStamina field is set + * optional uint32 stamina = 4; + * @return whether the stamina field is set */ - public boolean hasReserveStamina() { + public boolean hasStamina() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 reserve_stamina = 10; + * optional uint32 stamina = 4; * @return this */ - public StaminaInfoScNotify clearReserveStamina() { + public StaminaInfoScNotify clearStamina() { bitField0_ &= ~0x00000002; - reserveStamina = 0; + stamina = 0; return this; } /** - * optional uint32 reserve_stamina = 10; - * @return the reserveStamina + * optional uint32 stamina = 4; + * @return the stamina */ - public int getReserveStamina() { - return reserveStamina; + public int getStamina() { + return stamina; } /** - * optional uint32 reserve_stamina = 10; - * @param value the reserveStamina to set + * optional uint32 stamina = 4; + * @param value the stamina to set * @return this */ - public StaminaInfoScNotify setReserveStamina(final int value) { + public StaminaInfoScNotify setStamina(final int value) { bitField0_ |= 0x00000002; - reserveStamina = value; + stamina = value; return this; } /** - * optional uint32 stamina = 13; - * @return whether the stamina field is set + * optional uint32 reserve_stamina = 13; + * @return whether the reserveStamina field is set */ - public boolean hasStamina() { + public boolean hasReserveStamina() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 stamina = 13; + * optional uint32 reserve_stamina = 13; * @return this */ - public StaminaInfoScNotify clearStamina() { + public StaminaInfoScNotify clearReserveStamina() { bitField0_ &= ~0x00000004; - stamina = 0; + reserveStamina = 0; return this; } /** - * optional uint32 stamina = 13; - * @return the stamina + * optional uint32 reserve_stamina = 13; + * @return the reserveStamina */ - public int getStamina() { - return stamina; + public int getReserveStamina() { + return reserveStamina; } /** - * optional uint32 stamina = 13; - * @param value the stamina to set + * optional uint32 reserve_stamina = 13; + * @param value the reserveStamina to set * @return this */ - public StaminaInfoScNotify setStamina(final int value) { + public StaminaInfoScNotify setReserveStamina(final int value) { bitField0_ |= 0x00000004; - stamina = value; + reserveStamina = value; return this; } @@ -160,8 +160,8 @@ public StaminaInfoScNotify copyFrom(final StaminaInfoScNotify other) { if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; nextRecoverTime = other.nextRecoverTime; - reserveStamina = other.reserveStamina; stamina = other.stamina; + reserveStamina = other.reserveStamina; } return this; } @@ -175,12 +175,12 @@ public StaminaInfoScNotify mergeFrom(final StaminaInfoScNotify other) { if (other.hasNextRecoverTime()) { setNextRecoverTime(other.nextRecoverTime); } - if (other.hasReserveStamina()) { - setReserveStamina(other.reserveStamina); - } if (other.hasStamina()) { setStamina(other.stamina); } + if (other.hasReserveStamina()) { + setReserveStamina(other.reserveStamina); + } return this; } @@ -192,8 +192,8 @@ public StaminaInfoScNotify clear() { cachedSize = -1; bitField0_ = 0; nextRecoverTime = 0L; - reserveStamina = 0; stamina = 0; + reserveStamina = 0; return this; } @@ -218,23 +218,23 @@ public boolean equals(Object o) { StaminaInfoScNotify other = (StaminaInfoScNotify) o; return bitField0_ == other.bitField0_ && (!hasNextRecoverTime() || nextRecoverTime == other.nextRecoverTime) - && (!hasReserveStamina() || reserveStamina == other.reserveStamina) - && (!hasStamina() || stamina == other.stamina); + && (!hasStamina() || stamina == other.stamina) + && (!hasReserveStamina() || reserveStamina == other.reserveStamina); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 72); + output.writeRawByte((byte) 56); output.writeInt64NoTag(nextRecoverTime); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 80); - output.writeUInt32NoTag(reserveStamina); + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(stamina); } if ((bitField0_ & 0x00000004) != 0) { output.writeRawByte((byte) 104); - output.writeUInt32NoTag(stamina); + output.writeUInt32NoTag(reserveStamina); } } @@ -245,10 +245,10 @@ protected int computeSerializedSize() { size += 1 + ProtoSink.computeInt64SizeNoTag(nextRecoverTime); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(reserveStamina); + size += 1 + ProtoSink.computeUInt32SizeNoTag(stamina); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(stamina); + size += 1 + ProtoSink.computeUInt32SizeNoTag(reserveStamina); } return size; } @@ -260,18 +260,18 @@ public StaminaInfoScNotify mergeFrom(final ProtoSource input) throws IOException int tag = input.readTag(); while (true) { switch (tag) { - case 72: { + case 56: { // nextRecoverTime nextRecoverTime = input.readInt64(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 80) { + if (tag != 32) { break; } } - case 80: { - // reserveStamina - reserveStamina = input.readUInt32(); + case 32: { + // stamina + stamina = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 104) { @@ -279,8 +279,8 @@ public StaminaInfoScNotify mergeFrom(final ProtoSource input) throws IOException } } case 104: { - // stamina - stamina = input.readUInt32(); + // reserveStamina + reserveStamina = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 0) { @@ -308,10 +308,10 @@ public void writeTo(final JsonSink output) throws IOException { output.writeInt64(FieldNames.nextRecoverTime, nextRecoverTime); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.reserveStamina, reserveStamina); + output.writeUInt32(FieldNames.stamina, stamina); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.stamina, stamina); + output.writeUInt32(FieldNames.reserveStamina, reserveStamina); } output.endObject(); } @@ -335,11 +335,10 @@ public StaminaInfoScNotify mergeFrom(final JsonSource input) throws IOException } break; } - case -273362413: - case -799929876: { - if (input.isAtField(FieldNames.reserveStamina)) { + case -1897344401: { + if (input.isAtField(FieldNames.stamina)) { if (!input.trySkipNullValue()) { - reserveStamina = input.readUInt32(); + stamina = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -347,10 +346,11 @@ public StaminaInfoScNotify mergeFrom(final JsonSource input) throws IOException } break; } - case -1897344401: { - if (input.isAtField(FieldNames.stamina)) { + case -273362413: + case -799929876: { + if (input.isAtField(FieldNames.reserveStamina)) { if (!input.trySkipNullValue()) { - stamina = input.readUInt32(); + reserveStamina = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -413,9 +413,9 @@ public StaminaInfoScNotify create() { static class FieldNames { static final FieldName nextRecoverTime = FieldName.forField("nextRecoverTime", "next_recover_time"); - static final FieldName reserveStamina = FieldName.forField("reserveStamina", "reserve_stamina"); - static final FieldName stamina = FieldName.forField("stamina"); + + static final FieldName reserveStamina = FieldName.forField("reserveStamina", "reserve_stamina"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/StartChallengeCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/StartChallengeCsReqOuterClass.java index d67f1a77e..c77b7f624 100644 --- a/src/generated/main/emu/lunarcore/proto/StartChallengeCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/StartChallengeCsReqOuterClass.java @@ -19,7 +19,7 @@ public static final class StartChallengeCsReq extends ProtoMessageoptional uint32 challenge_id = 12; + * optional uint32 challenge_id = 6; */ private int challengeId; @@ -34,7 +34,7 @@ public static StartChallengeCsReq newInstance() { } /** - * optional uint32 challenge_id = 12; + * optional uint32 challenge_id = 6; * @return whether the challengeId field is set */ public boolean hasChallengeId() { @@ -42,7 +42,7 @@ public boolean hasChallengeId() { } /** - * optional uint32 challenge_id = 12; + * optional uint32 challenge_id = 6; * @return this */ public StartChallengeCsReq clearChallengeId() { @@ -52,7 +52,7 @@ public StartChallengeCsReq clearChallengeId() { } /** - * optional uint32 challenge_id = 12; + * optional uint32 challenge_id = 6; * @return the challengeId */ public int getChallengeId() { @@ -60,7 +60,7 @@ public int getChallengeId() { } /** - * optional uint32 challenge_id = 12; + * optional uint32 challenge_id = 6; * @param value the challengeId to set * @return this */ @@ -129,7 +129,7 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 48); output.writeUInt32NoTag(challengeId); } } @@ -150,7 +150,7 @@ public StartChallengeCsReq mergeFrom(final ProtoSource input) throws IOException int tag = input.readTag(); while (true) { switch (tag) { - case 96: { + case 48: { // challengeId challengeId = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/StartChallengeScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/StartChallengeScRspOuterClass.java index dd34770db..1e53ca42b 100644 --- a/src/generated/main/emu/lunarcore/proto/StartChallengeScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/StartChallengeScRspOuterClass.java @@ -19,24 +19,24 @@ public static final class StartChallengeScRsp extends ProtoMessageoptional uint32 retcode = 15; + * optional uint32 retcode = 1; */ private int retcode; /** - * optional .LineupInfo lineup = 1; + * optional .ChallengeInfo challenge_info = 3; */ - private final LineupInfoOuterClass.LineupInfo lineup = LineupInfoOuterClass.LineupInfo.newInstance(); + private final ChallengeInfoOuterClass.ChallengeInfo challengeInfo = ChallengeInfoOuterClass.ChallengeInfo.newInstance(); /** - * optional .SceneInfo scene = 4; + * optional .LineupInfo lineup = 4; */ - private final SceneInfoOuterClass.SceneInfo scene = SceneInfoOuterClass.SceneInfo.newInstance(); + private final LineupInfoOuterClass.LineupInfo lineup = LineupInfoOuterClass.LineupInfo.newInstance(); /** - * optional .ChallengeInfo challenge_info = 14; + * optional .SceneInfo scene = 11; */ - private final ChallengeInfoOuterClass.ChallengeInfo challengeInfo = ChallengeInfoOuterClass.ChallengeInfo.newInstance(); + private final SceneInfoOuterClass.SceneInfo scene = SceneInfoOuterClass.SceneInfo.newInstance(); private StartChallengeScRsp() { } @@ -49,7 +49,7 @@ public static StartChallengeScRsp newInstance() { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 1; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -57,7 +57,7 @@ public boolean hasRetcode() { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 1; * @return this */ public StartChallengeScRsp clearRetcode() { @@ -67,7 +67,7 @@ public StartChallengeScRsp clearRetcode() { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 1; * @return the retcode */ public int getRetcode() { @@ -75,7 +75,7 @@ public int getRetcode() { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 1; * @param value the retcode to set * @return this */ @@ -86,39 +86,39 @@ public StartChallengeScRsp setRetcode(final int value) { } /** - * optional .LineupInfo lineup = 1; - * @return whether the lineup field is set + * optional .ChallengeInfo challenge_info = 3; + * @return whether the challengeInfo field is set */ - public boolean hasLineup() { + public boolean hasChallengeInfo() { return (bitField0_ & 0x00000002) != 0; } /** - * optional .LineupInfo lineup = 1; + * optional .ChallengeInfo challenge_info = 3; * @return this */ - public StartChallengeScRsp clearLineup() { + public StartChallengeScRsp clearChallengeInfo() { bitField0_ &= ~0x00000002; - lineup.clear(); + challengeInfo.clear(); return this; } /** - * optional .LineupInfo lineup = 1; + * optional .ChallengeInfo challenge_info = 3; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableLineup()} if you want to modify it. + * Use {@link #getMutableChallengeInfo()} if you want to modify it. * * @return internal storage object for reading */ - public LineupInfoOuterClass.LineupInfo getLineup() { - return lineup; + public ChallengeInfoOuterClass.ChallengeInfo getChallengeInfo() { + return challengeInfo; } /** - * optional .LineupInfo lineup = 1; + * optional .ChallengeInfo challenge_info = 3; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -126,56 +126,56 @@ public LineupInfoOuterClass.LineupInfo getLineup() { * * @return internal storage object for modifications */ - public LineupInfoOuterClass.LineupInfo getMutableLineup() { + public ChallengeInfoOuterClass.ChallengeInfo getMutableChallengeInfo() { bitField0_ |= 0x00000002; - return lineup; + return challengeInfo; } /** - * optional .LineupInfo lineup = 1; - * @param value the lineup to set + * optional .ChallengeInfo challenge_info = 3; + * @param value the challengeInfo to set * @return this */ - public StartChallengeScRsp setLineup(final LineupInfoOuterClass.LineupInfo value) { + public StartChallengeScRsp setChallengeInfo(final ChallengeInfoOuterClass.ChallengeInfo value) { bitField0_ |= 0x00000002; - lineup.copyFrom(value); + challengeInfo.copyFrom(value); return this; } /** - * optional .SceneInfo scene = 4; - * @return whether the scene field is set + * optional .LineupInfo lineup = 4; + * @return whether the lineup field is set */ - public boolean hasScene() { + public boolean hasLineup() { return (bitField0_ & 0x00000004) != 0; } /** - * optional .SceneInfo scene = 4; + * optional .LineupInfo lineup = 4; * @return this */ - public StartChallengeScRsp clearScene() { + public StartChallengeScRsp clearLineup() { bitField0_ &= ~0x00000004; - scene.clear(); + lineup.clear(); return this; } /** - * optional .SceneInfo scene = 4; + * optional .LineupInfo lineup = 4; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableScene()} if you want to modify it. + * Use {@link #getMutableLineup()} if you want to modify it. * * @return internal storage object for reading */ - public SceneInfoOuterClass.SceneInfo getScene() { - return scene; + public LineupInfoOuterClass.LineupInfo getLineup() { + return lineup; } /** - * optional .SceneInfo scene = 4; + * optional .LineupInfo lineup = 4; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -183,56 +183,56 @@ public SceneInfoOuterClass.SceneInfo getScene() { * * @return internal storage object for modifications */ - public SceneInfoOuterClass.SceneInfo getMutableScene() { + public LineupInfoOuterClass.LineupInfo getMutableLineup() { bitField0_ |= 0x00000004; - return scene; + return lineup; } /** - * optional .SceneInfo scene = 4; - * @param value the scene to set + * optional .LineupInfo lineup = 4; + * @param value the lineup to set * @return this */ - public StartChallengeScRsp setScene(final SceneInfoOuterClass.SceneInfo value) { + public StartChallengeScRsp setLineup(final LineupInfoOuterClass.LineupInfo value) { bitField0_ |= 0x00000004; - scene.copyFrom(value); + lineup.copyFrom(value); return this; } /** - * optional .ChallengeInfo challenge_info = 14; - * @return whether the challengeInfo field is set + * optional .SceneInfo scene = 11; + * @return whether the scene field is set */ - public boolean hasChallengeInfo() { + public boolean hasScene() { return (bitField0_ & 0x00000008) != 0; } /** - * optional .ChallengeInfo challenge_info = 14; + * optional .SceneInfo scene = 11; * @return this */ - public StartChallengeScRsp clearChallengeInfo() { + public StartChallengeScRsp clearScene() { bitField0_ &= ~0x00000008; - challengeInfo.clear(); + scene.clear(); return this; } /** - * optional .ChallengeInfo challenge_info = 14; + * optional .SceneInfo scene = 11; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableChallengeInfo()} if you want to modify it. + * Use {@link #getMutableScene()} if you want to modify it. * * @return internal storage object for reading */ - public ChallengeInfoOuterClass.ChallengeInfo getChallengeInfo() { - return challengeInfo; + public SceneInfoOuterClass.SceneInfo getScene() { + return scene; } /** - * optional .ChallengeInfo challenge_info = 14; + * optional .SceneInfo scene = 11; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -240,19 +240,19 @@ public ChallengeInfoOuterClass.ChallengeInfo getChallengeInfo() { * * @return internal storage object for modifications */ - public ChallengeInfoOuterClass.ChallengeInfo getMutableChallengeInfo() { + public SceneInfoOuterClass.SceneInfo getMutableScene() { bitField0_ |= 0x00000008; - return challengeInfo; + return scene; } /** - * optional .ChallengeInfo challenge_info = 14; - * @param value the challengeInfo to set + * optional .SceneInfo scene = 11; + * @param value the scene to set * @return this */ - public StartChallengeScRsp setChallengeInfo(final ChallengeInfoOuterClass.ChallengeInfo value) { + public StartChallengeScRsp setScene(final SceneInfoOuterClass.SceneInfo value) { bitField0_ |= 0x00000008; - challengeInfo.copyFrom(value); + scene.copyFrom(value); return this; } @@ -262,9 +262,9 @@ public StartChallengeScRsp copyFrom(final StartChallengeScRsp other) { if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; retcode = other.retcode; + challengeInfo.copyFrom(other.challengeInfo); lineup.copyFrom(other.lineup); scene.copyFrom(other.scene); - challengeInfo.copyFrom(other.challengeInfo); } return this; } @@ -278,15 +278,15 @@ public StartChallengeScRsp mergeFrom(final StartChallengeScRsp other) { if (other.hasRetcode()) { setRetcode(other.retcode); } + if (other.hasChallengeInfo()) { + getMutableChallengeInfo().mergeFrom(other.challengeInfo); + } if (other.hasLineup()) { getMutableLineup().mergeFrom(other.lineup); } if (other.hasScene()) { getMutableScene().mergeFrom(other.scene); } - if (other.hasChallengeInfo()) { - getMutableChallengeInfo().mergeFrom(other.challengeInfo); - } return this; } @@ -298,9 +298,9 @@ public StartChallengeScRsp clear() { cachedSize = -1; bitField0_ = 0; retcode = 0; + challengeInfo.clear(); lineup.clear(); scene.clear(); - challengeInfo.clear(); return this; } @@ -311,9 +311,9 @@ public StartChallengeScRsp clearQuick() { } cachedSize = -1; bitField0_ = 0; + challengeInfo.clearQuick(); lineup.clearQuick(); scene.clearQuick(); - challengeInfo.clearQuick(); return this; } @@ -328,28 +328,28 @@ public boolean equals(Object o) { StartChallengeScRsp other = (StartChallengeScRsp) o; return bitField0_ == other.bitField0_ && (!hasRetcode() || retcode == other.retcode) + && (!hasChallengeInfo() || challengeInfo.equals(other.challengeInfo)) && (!hasLineup() || lineup.equals(other.lineup)) - && (!hasScene() || scene.equals(other.scene)) - && (!hasChallengeInfo() || challengeInfo.equals(other.challengeInfo)); + && (!hasScene() || scene.equals(other.scene)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 8); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 10); - output.writeMessageNoTag(lineup); + output.writeRawByte((byte) 26); + output.writeMessageNoTag(challengeInfo); } if ((bitField0_ & 0x00000004) != 0) { output.writeRawByte((byte) 34); - output.writeMessageNoTag(scene); + output.writeMessageNoTag(lineup); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 114); - output.writeMessageNoTag(challengeInfo); + output.writeRawByte((byte) 90); + output.writeMessageNoTag(scene); } } @@ -360,13 +360,13 @@ protected int computeSerializedSize() { size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(lineup); + size += 1 + ProtoSink.computeMessageSizeNoTag(challengeInfo); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(scene); + size += 1 + ProtoSink.computeMessageSizeNoTag(lineup); } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(challengeInfo); + size += 1 + ProtoSink.computeMessageSizeNoTag(scene); } return size; } @@ -378,18 +378,18 @@ public StartChallengeScRsp mergeFrom(final ProtoSource input) throws IOException int tag = input.readTag(); while (true) { switch (tag) { - case 120: { + case 8: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 10) { + if (tag != 26) { break; } } - case 10: { - // lineup - input.readMessage(lineup); + case 26: { + // challengeInfo + input.readMessage(challengeInfo); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 34) { @@ -397,17 +397,17 @@ public StartChallengeScRsp mergeFrom(final ProtoSource input) throws IOException } } case 34: { - // scene - input.readMessage(scene); + // lineup + input.readMessage(lineup); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 114) { + if (tag != 90) { break; } } - case 114: { - // challengeInfo - input.readMessage(challengeInfo); + case 90: { + // scene + input.readMessage(scene); bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 0) { @@ -435,13 +435,13 @@ public void writeTo(final JsonSink output) throws IOException { output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeMessage(FieldNames.lineup, lineup); + output.writeMessage(FieldNames.challengeInfo, challengeInfo); } if ((bitField0_ & 0x00000004) != 0) { - output.writeMessage(FieldNames.scene, scene); + output.writeMessage(FieldNames.lineup, lineup); } if ((bitField0_ & 0x00000008) != 0) { - output.writeMessage(FieldNames.challengeInfo, challengeInfo); + output.writeMessage(FieldNames.scene, scene); } output.endObject(); } @@ -464,10 +464,11 @@ public StartChallengeScRsp mergeFrom(final JsonSource input) throws IOException } break; } - case -1102671473: { - if (input.isAtField(FieldNames.lineup)) { + case -812487759: + case 602859274: { + if (input.isAtField(FieldNames.challengeInfo)) { if (!input.trySkipNullValue()) { - input.readMessage(lineup); + input.readMessage(challengeInfo); bitField0_ |= 0x00000002; } } else { @@ -475,10 +476,10 @@ public StartChallengeScRsp mergeFrom(final JsonSource input) throws IOException } break; } - case 109254796: { - if (input.isAtField(FieldNames.scene)) { + case -1102671473: { + if (input.isAtField(FieldNames.lineup)) { if (!input.trySkipNullValue()) { - input.readMessage(scene); + input.readMessage(lineup); bitField0_ |= 0x00000004; } } else { @@ -486,11 +487,10 @@ public StartChallengeScRsp mergeFrom(final JsonSource input) throws IOException } break; } - case -812487759: - case 602859274: { - if (input.isAtField(FieldNames.challengeInfo)) { + case 109254796: { + if (input.isAtField(FieldNames.scene)) { if (!input.trySkipNullValue()) { - input.readMessage(challengeInfo); + input.readMessage(scene); bitField0_ |= 0x00000008; } } else { @@ -553,11 +553,11 @@ public StartChallengeScRsp create() { static class FieldNames { static final FieldName retcode = FieldName.forField("retcode"); + static final FieldName challengeInfo = FieldName.forField("challengeInfo", "challenge_info"); + static final FieldName lineup = FieldName.forField("lineup"); static final FieldName scene = FieldName.forField("scene"); - - static final FieldName challengeInfo = FieldName.forField("challengeInfo", "challenge_info"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/StartCocoonStageCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/StartCocoonStageCsReqOuterClass.java index 86ad14eea..7c832a20d 100644 --- a/src/generated/main/emu/lunarcore/proto/StartCocoonStageCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/StartCocoonStageCsReqOuterClass.java @@ -19,19 +19,19 @@ public static final class StartCocoonStageCsReq extends ProtoMessageoptional uint32 cocoon_id = 1; + * optional uint32 world_level = 5; */ - private int cocoonId; + private int worldLevel; /** - * optional uint32 wave = 5; + * optional uint32 wave = 11; */ private int wave; /** - * optional uint32 world_level = 13; + * optional uint32 cocoon_id = 12; */ - private int worldLevel; + private int cocoonId; /** * optional uint32 prop_entity_id = 14; @@ -49,44 +49,44 @@ public static StartCocoonStageCsReq newInstance() { } /** - * optional uint32 cocoon_id = 1; - * @return whether the cocoonId field is set + * optional uint32 world_level = 5; + * @return whether the worldLevel field is set */ - public boolean hasCocoonId() { + public boolean hasWorldLevel() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 cocoon_id = 1; + * optional uint32 world_level = 5; * @return this */ - public StartCocoonStageCsReq clearCocoonId() { + public StartCocoonStageCsReq clearWorldLevel() { bitField0_ &= ~0x00000001; - cocoonId = 0; + worldLevel = 0; return this; } /** - * optional uint32 cocoon_id = 1; - * @return the cocoonId + * optional uint32 world_level = 5; + * @return the worldLevel */ - public int getCocoonId() { - return cocoonId; + public int getWorldLevel() { + return worldLevel; } /** - * optional uint32 cocoon_id = 1; - * @param value the cocoonId to set + * optional uint32 world_level = 5; + * @param value the worldLevel to set * @return this */ - public StartCocoonStageCsReq setCocoonId(final int value) { + public StartCocoonStageCsReq setWorldLevel(final int value) { bitField0_ |= 0x00000001; - cocoonId = value; + worldLevel = value; return this; } /** - * optional uint32 wave = 5; + * optional uint32 wave = 11; * @return whether the wave field is set */ public boolean hasWave() { @@ -94,7 +94,7 @@ public boolean hasWave() { } /** - * optional uint32 wave = 5; + * optional uint32 wave = 11; * @return this */ public StartCocoonStageCsReq clearWave() { @@ -104,7 +104,7 @@ public StartCocoonStageCsReq clearWave() { } /** - * optional uint32 wave = 5; + * optional uint32 wave = 11; * @return the wave */ public int getWave() { @@ -112,7 +112,7 @@ public int getWave() { } /** - * optional uint32 wave = 5; + * optional uint32 wave = 11; * @param value the wave to set * @return this */ @@ -123,39 +123,39 @@ public StartCocoonStageCsReq setWave(final int value) { } /** - * optional uint32 world_level = 13; - * @return whether the worldLevel field is set + * optional uint32 cocoon_id = 12; + * @return whether the cocoonId field is set */ - public boolean hasWorldLevel() { + public boolean hasCocoonId() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 world_level = 13; + * optional uint32 cocoon_id = 12; * @return this */ - public StartCocoonStageCsReq clearWorldLevel() { + public StartCocoonStageCsReq clearCocoonId() { bitField0_ &= ~0x00000004; - worldLevel = 0; + cocoonId = 0; return this; } /** - * optional uint32 world_level = 13; - * @return the worldLevel + * optional uint32 cocoon_id = 12; + * @return the cocoonId */ - public int getWorldLevel() { - return worldLevel; + public int getCocoonId() { + return cocoonId; } /** - * optional uint32 world_level = 13; - * @param value the worldLevel to set + * optional uint32 cocoon_id = 12; + * @param value the cocoonId to set * @return this */ - public StartCocoonStageCsReq setWorldLevel(final int value) { + public StartCocoonStageCsReq setCocoonId(final int value) { bitField0_ |= 0x00000004; - worldLevel = value; + cocoonId = value; return this; } @@ -201,9 +201,9 @@ public StartCocoonStageCsReq copyFrom(final StartCocoonStageCsReq other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - cocoonId = other.cocoonId; - wave = other.wave; worldLevel = other.worldLevel; + wave = other.wave; + cocoonId = other.cocoonId; propEntityId = other.propEntityId; } return this; @@ -215,14 +215,14 @@ public StartCocoonStageCsReq mergeFrom(final StartCocoonStageCsReq other) { return this; } cachedSize = -1; - if (other.hasCocoonId()) { - setCocoonId(other.cocoonId); + if (other.hasWorldLevel()) { + setWorldLevel(other.worldLevel); } if (other.hasWave()) { setWave(other.wave); } - if (other.hasWorldLevel()) { - setWorldLevel(other.worldLevel); + if (other.hasCocoonId()) { + setCocoonId(other.cocoonId); } if (other.hasPropEntityId()) { setPropEntityId(other.propEntityId); @@ -237,9 +237,9 @@ public StartCocoonStageCsReq clear() { } cachedSize = -1; bitField0_ = 0; - cocoonId = 0; - wave = 0; worldLevel = 0; + wave = 0; + cocoonId = 0; propEntityId = 0; return this; } @@ -264,25 +264,25 @@ public boolean equals(Object o) { } StartCocoonStageCsReq other = (StartCocoonStageCsReq) o; return bitField0_ == other.bitField0_ - && (!hasCocoonId() || cocoonId == other.cocoonId) - && (!hasWave() || wave == other.wave) && (!hasWorldLevel() || worldLevel == other.worldLevel) + && (!hasWave() || wave == other.wave) + && (!hasCocoonId() || cocoonId == other.cocoonId) && (!hasPropEntityId() || propEntityId == other.propEntityId); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(cocoonId); + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(worldLevel); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 88); output.writeUInt32NoTag(wave); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 104); - output.writeUInt32NoTag(worldLevel); + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(cocoonId); } if ((bitField0_ & 0x00000008) != 0) { output.writeRawByte((byte) 112); @@ -294,13 +294,13 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(cocoonId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(worldLevel); } if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(wave); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(worldLevel); + size += 1 + ProtoSink.computeUInt32SizeNoTag(cocoonId); } if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(propEntityId); @@ -315,27 +315,27 @@ public StartCocoonStageCsReq mergeFrom(final ProtoSource input) throws IOExcepti int tag = input.readTag(); while (true) { switch (tag) { - case 8: { - // cocoonId - cocoonId = input.readUInt32(); + case 40: { + // worldLevel + worldLevel = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 40) { + if (tag != 88) { break; } } - case 40: { + case 88: { // wave wave = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 104) { + if (tag != 96) { break; } } - case 104: { - // worldLevel - worldLevel = input.readUInt32(); + case 96: { + // cocoonId + cocoonId = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 112) { @@ -369,13 +369,13 @@ public StartCocoonStageCsReq mergeFrom(final ProtoSource input) throws IOExcepti public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.cocoonId, cocoonId); + output.writeUInt32(FieldNames.worldLevel, worldLevel); } if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.wave, wave); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.worldLevel, worldLevel); + output.writeUInt32(FieldNames.cocoonId, cocoonId); } if ((bitField0_ & 0x00000008) != 0) { output.writeUInt32(FieldNames.propEntityId, propEntityId); @@ -390,11 +390,11 @@ public StartCocoonStageCsReq mergeFrom(final JsonSource input) throws IOExceptio } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -886563534: - case -1713644381: { - if (input.isAtField(FieldNames.cocoonId)) { + case 440007442: + case 1305257111: { + if (input.isAtField(FieldNames.worldLevel)) { if (!input.trySkipNullValue()) { - cocoonId = input.readUInt32(); + worldLevel = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -413,11 +413,11 @@ public StartCocoonStageCsReq mergeFrom(final JsonSource input) throws IOExceptio } break; } - case 440007442: - case 1305257111: { - if (input.isAtField(FieldNames.worldLevel)) { + case -886563534: + case -1713644381: { + if (input.isAtField(FieldNames.cocoonId)) { if (!input.trySkipNullValue()) { - worldLevel = input.readUInt32(); + cocoonId = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -490,11 +490,11 @@ public StartCocoonStageCsReq create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName cocoonId = FieldName.forField("cocoonId", "cocoon_id"); + static final FieldName worldLevel = FieldName.forField("worldLevel", "world_level"); static final FieldName wave = FieldName.forField("wave"); - static final FieldName worldLevel = FieldName.forField("worldLevel", "world_level"); + static final FieldName cocoonId = FieldName.forField("cocoonId", "cocoon_id"); static final FieldName propEntityId = FieldName.forField("propEntityId", "prop_entity_id"); } diff --git a/src/generated/main/emu/lunarcore/proto/StartCocoonStageScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/StartCocoonStageScRspOuterClass.java index b1210605a..b2eee03ee 100644 --- a/src/generated/main/emu/lunarcore/proto/StartCocoonStageScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/StartCocoonStageScRspOuterClass.java @@ -19,27 +19,27 @@ public static final class StartCocoonStageScRsp extends ProtoMessageoptional uint32 wave = 3; + * optional uint32 cocoon_id = 5; */ - private int wave; + private int cocoonId; /** - * optional uint32 retcode = 5; + * optional uint32 prop_entity_id = 6; */ - private int retcode; + private int propEntityId; /** - * optional uint32 cocoon_id = 9; + * optional uint32 wave = 8; */ - private int cocoonId; + private int wave; /** - * optional uint32 prop_entity_id = 13; + * optional uint32 retcode = 11; */ - private int propEntityId; + private int retcode; /** - * optional .SceneBattleInfo battle_info = 10; + * optional .SceneBattleInfo battle_info = 12; */ private final SceneBattleInfoOuterClass.SceneBattleInfo battleInfo = SceneBattleInfoOuterClass.SceneBattleInfo.newInstance(); @@ -54,155 +54,155 @@ public static StartCocoonStageScRsp newInstance() { } /** - * optional uint32 wave = 3; - * @return whether the wave field is set + * optional uint32 cocoon_id = 5; + * @return whether the cocoonId field is set */ - public boolean hasWave() { + public boolean hasCocoonId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 wave = 3; + * optional uint32 cocoon_id = 5; * @return this */ - public StartCocoonStageScRsp clearWave() { + public StartCocoonStageScRsp clearCocoonId() { bitField0_ &= ~0x00000001; - wave = 0; + cocoonId = 0; return this; } /** - * optional uint32 wave = 3; - * @return the wave + * optional uint32 cocoon_id = 5; + * @return the cocoonId */ - public int getWave() { - return wave; + public int getCocoonId() { + return cocoonId; } /** - * optional uint32 wave = 3; - * @param value the wave to set + * optional uint32 cocoon_id = 5; + * @param value the cocoonId to set * @return this */ - public StartCocoonStageScRsp setWave(final int value) { + public StartCocoonStageScRsp setCocoonId(final int value) { bitField0_ |= 0x00000001; - wave = value; + cocoonId = value; return this; } /** - * optional uint32 retcode = 5; - * @return whether the retcode field is set + * optional uint32 prop_entity_id = 6; + * @return whether the propEntityId field is set */ - public boolean hasRetcode() { + public boolean hasPropEntityId() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 retcode = 5; + * optional uint32 prop_entity_id = 6; * @return this */ - public StartCocoonStageScRsp clearRetcode() { + public StartCocoonStageScRsp clearPropEntityId() { bitField0_ &= ~0x00000002; - retcode = 0; + propEntityId = 0; return this; } /** - * optional uint32 retcode = 5; - * @return the retcode + * optional uint32 prop_entity_id = 6; + * @return the propEntityId */ - public int getRetcode() { - return retcode; + public int getPropEntityId() { + return propEntityId; } /** - * optional uint32 retcode = 5; - * @param value the retcode to set + * optional uint32 prop_entity_id = 6; + * @param value the propEntityId to set * @return this */ - public StartCocoonStageScRsp setRetcode(final int value) { + public StartCocoonStageScRsp setPropEntityId(final int value) { bitField0_ |= 0x00000002; - retcode = value; + propEntityId = value; return this; } /** - * optional uint32 cocoon_id = 9; - * @return whether the cocoonId field is set + * optional uint32 wave = 8; + * @return whether the wave field is set */ - public boolean hasCocoonId() { + public boolean hasWave() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 cocoon_id = 9; + * optional uint32 wave = 8; * @return this */ - public StartCocoonStageScRsp clearCocoonId() { + public StartCocoonStageScRsp clearWave() { bitField0_ &= ~0x00000004; - cocoonId = 0; + wave = 0; return this; } /** - * optional uint32 cocoon_id = 9; - * @return the cocoonId + * optional uint32 wave = 8; + * @return the wave */ - public int getCocoonId() { - return cocoonId; + public int getWave() { + return wave; } /** - * optional uint32 cocoon_id = 9; - * @param value the cocoonId to set + * optional uint32 wave = 8; + * @param value the wave to set * @return this */ - public StartCocoonStageScRsp setCocoonId(final int value) { + public StartCocoonStageScRsp setWave(final int value) { bitField0_ |= 0x00000004; - cocoonId = value; + wave = value; return this; } /** - * optional uint32 prop_entity_id = 13; - * @return whether the propEntityId field is set + * optional uint32 retcode = 11; + * @return whether the retcode field is set */ - public boolean hasPropEntityId() { + public boolean hasRetcode() { return (bitField0_ & 0x00000008) != 0; } /** - * optional uint32 prop_entity_id = 13; + * optional uint32 retcode = 11; * @return this */ - public StartCocoonStageScRsp clearPropEntityId() { + public StartCocoonStageScRsp clearRetcode() { bitField0_ &= ~0x00000008; - propEntityId = 0; + retcode = 0; return this; } /** - * optional uint32 prop_entity_id = 13; - * @return the propEntityId + * optional uint32 retcode = 11; + * @return the retcode */ - public int getPropEntityId() { - return propEntityId; + public int getRetcode() { + return retcode; } /** - * optional uint32 prop_entity_id = 13; - * @param value the propEntityId to set + * optional uint32 retcode = 11; + * @param value the retcode to set * @return this */ - public StartCocoonStageScRsp setPropEntityId(final int value) { + public StartCocoonStageScRsp setRetcode(final int value) { bitField0_ |= 0x00000008; - propEntityId = value; + retcode = value; return this; } /** - * optional .SceneBattleInfo battle_info = 10; + * optional .SceneBattleInfo battle_info = 12; * @return whether the battleInfo field is set */ public boolean hasBattleInfo() { @@ -210,7 +210,7 @@ public boolean hasBattleInfo() { } /** - * optional .SceneBattleInfo battle_info = 10; + * optional .SceneBattleInfo battle_info = 12; * @return this */ public StartCocoonStageScRsp clearBattleInfo() { @@ -220,7 +220,7 @@ public StartCocoonStageScRsp clearBattleInfo() { } /** - * optional .SceneBattleInfo battle_info = 10; + * optional .SceneBattleInfo battle_info = 12; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -234,7 +234,7 @@ public SceneBattleInfoOuterClass.SceneBattleInfo getBattleInfo() { } /** - * optional .SceneBattleInfo battle_info = 10; + * optional .SceneBattleInfo battle_info = 12; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -248,7 +248,7 @@ public SceneBattleInfoOuterClass.SceneBattleInfo getMutableBattleInfo() { } /** - * optional .SceneBattleInfo battle_info = 10; + * optional .SceneBattleInfo battle_info = 12; * @param value the battleInfo to set * @return this */ @@ -264,10 +264,10 @@ public StartCocoonStageScRsp copyFrom(final StartCocoonStageScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - wave = other.wave; - retcode = other.retcode; cocoonId = other.cocoonId; propEntityId = other.propEntityId; + wave = other.wave; + retcode = other.retcode; battleInfo.copyFrom(other.battleInfo); } return this; @@ -279,18 +279,18 @@ public StartCocoonStageScRsp mergeFrom(final StartCocoonStageScRsp other) { return this; } cachedSize = -1; - if (other.hasWave()) { - setWave(other.wave); - } - if (other.hasRetcode()) { - setRetcode(other.retcode); - } if (other.hasCocoonId()) { setCocoonId(other.cocoonId); } if (other.hasPropEntityId()) { setPropEntityId(other.propEntityId); } + if (other.hasWave()) { + setWave(other.wave); + } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } if (other.hasBattleInfo()) { getMutableBattleInfo().mergeFrom(other.battleInfo); } @@ -304,10 +304,10 @@ public StartCocoonStageScRsp clear() { } cachedSize = -1; bitField0_ = 0; - wave = 0; - retcode = 0; cocoonId = 0; propEntityId = 0; + wave = 0; + retcode = 0; battleInfo.clear(); return this; } @@ -333,33 +333,33 @@ public boolean equals(Object o) { } StartCocoonStageScRsp other = (StartCocoonStageScRsp) o; return bitField0_ == other.bitField0_ - && (!hasWave() || wave == other.wave) - && (!hasRetcode() || retcode == other.retcode) && (!hasCocoonId() || cocoonId == other.cocoonId) && (!hasPropEntityId() || propEntityId == other.propEntityId) + && (!hasWave() || wave == other.wave) + && (!hasRetcode() || retcode == other.retcode) && (!hasBattleInfo() || battleInfo.equals(other.battleInfo)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(wave); + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(cocoonId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 40); - output.writeUInt32NoTag(retcode); + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(propEntityId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 72); - output.writeUInt32NoTag(cocoonId); + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(wave); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 104); - output.writeUInt32NoTag(propEntityId); + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 82); + output.writeRawByte((byte) 98); output.writeMessageNoTag(battleInfo); } } @@ -368,16 +368,16 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(wave); + size += 1 + ProtoSink.computeUInt32SizeNoTag(cocoonId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(propEntityId); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(cocoonId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(wave); } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(propEntityId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000010) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(battleInfo); @@ -392,43 +392,43 @@ public StartCocoonStageScRsp mergeFrom(final ProtoSource input) throws IOExcepti int tag = input.readTag(); while (true) { switch (tag) { - case 24: { - // wave - wave = input.readUInt32(); + case 40: { + // cocoonId + cocoonId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 40) { + if (tag != 48) { break; } } - case 40: { - // retcode - retcode = input.readUInt32(); + case 48: { + // propEntityId + propEntityId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 72) { + if (tag != 64) { break; } } - case 72: { - // cocoonId - cocoonId = input.readUInt32(); + case 64: { + // wave + wave = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 104) { + if (tag != 88) { break; } } - case 104: { - // propEntityId - propEntityId = input.readUInt32(); + case 88: { + // retcode + retcode = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 82) { + if (tag != 98) { break; } } - case 82: { + case 98: { // battleInfo input.readMessage(battleInfo); bitField0_ |= 0x00000010; @@ -455,16 +455,16 @@ public StartCocoonStageScRsp mergeFrom(final ProtoSource input) throws IOExcepti public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.wave, wave); + output.writeUInt32(FieldNames.cocoonId, cocoonId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.propEntityId, propEntityId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.cocoonId, cocoonId); + output.writeUInt32(FieldNames.wave, wave); } if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.propEntityId, propEntityId); + output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000010) != 0) { output.writeMessage(FieldNames.battleInfo, battleInfo); @@ -479,10 +479,11 @@ public StartCocoonStageScRsp mergeFrom(final JsonSource input) throws IOExceptio } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 3642105: { - if (input.isAtField(FieldNames.wave)) { + case -886563534: + case -1713644381: { + if (input.isAtField(FieldNames.cocoonId)) { if (!input.trySkipNullValue()) { - wave = input.readUInt32(); + cocoonId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -490,10 +491,11 @@ public StartCocoonStageScRsp mergeFrom(final JsonSource input) throws IOExceptio } break; } - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { + case -68717343: + case -57484005: { + if (input.isAtField(FieldNames.propEntityId)) { if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); + propEntityId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -501,11 +503,10 @@ public StartCocoonStageScRsp mergeFrom(final JsonSource input) throws IOExceptio } break; } - case -886563534: - case -1713644381: { - if (input.isAtField(FieldNames.cocoonId)) { + case 3642105: { + if (input.isAtField(FieldNames.wave)) { if (!input.trySkipNullValue()) { - cocoonId = input.readUInt32(); + wave = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -513,11 +514,10 @@ public StartCocoonStageScRsp mergeFrom(final JsonSource input) throws IOExceptio } break; } - case -68717343: - case -57484005: { - if (input.isAtField(FieldNames.propEntityId)) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { - propEntityId = input.readUInt32(); + retcode = input.readUInt32(); bitField0_ |= 0x00000008; } } else { @@ -590,14 +590,14 @@ public StartCocoonStageScRsp create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName wave = FieldName.forField("wave"); - - static final FieldName retcode = FieldName.forField("retcode"); - static final FieldName cocoonId = FieldName.forField("cocoonId", "cocoon_id"); static final FieldName propEntityId = FieldName.forField("propEntityId", "prop_entity_id"); + static final FieldName wave = FieldName.forField("wave"); + + static final FieldName retcode = FieldName.forField("retcode"); + static final FieldName battleInfo = FieldName.forField("battleInfo", "battle_info"); } } diff --git a/src/generated/main/emu/lunarcore/proto/SwapLineupCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SwapLineupCsReqOuterClass.java index 982f7c053..ce3e5a2a4 100644 --- a/src/generated/main/emu/lunarcore/proto/SwapLineupCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SwapLineupCsReqOuterClass.java @@ -19,32 +19,32 @@ public static final class SwapLineupCsReq extends ProtoMessage private static final long serialVersionUID = 0L; /** - * optional uint32 index = 1; + * optional uint32 plane_id = 7; */ - private int index; + private int planeId; /** - * optional uint32 src_slot = 2; + * optional uint32 src_slot = 11; */ private int srcSlot; /** - * optional uint32 plane_id = 8; + * optional uint32 dst_slot = 12; */ - private int planeId; + private int dstSlot; /** - * optional uint32 dst_slot = 10; + * optional uint32 index = 15; */ - private int dstSlot; + private int index; /** - * optional .ExtraLineupType extra_lineup_type = 11; + * optional .ExtraLineupType extra_lineup_type = 14; */ private int extraLineupType; /** - * optional bool is_virtual = 13; + * optional bool is_virtual = 2; */ private boolean isVirtual; @@ -59,44 +59,44 @@ public static SwapLineupCsReq newInstance() { } /** - * optional uint32 index = 1; - * @return whether the index field is set + * optional uint32 plane_id = 7; + * @return whether the planeId field is set */ - public boolean hasIndex() { + public boolean hasPlaneId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 index = 1; + * optional uint32 plane_id = 7; * @return this */ - public SwapLineupCsReq clearIndex() { + public SwapLineupCsReq clearPlaneId() { bitField0_ &= ~0x00000001; - index = 0; + planeId = 0; return this; } /** - * optional uint32 index = 1; - * @return the index + * optional uint32 plane_id = 7; + * @return the planeId */ - public int getIndex() { - return index; + public int getPlaneId() { + return planeId; } /** - * optional uint32 index = 1; - * @param value the index to set + * optional uint32 plane_id = 7; + * @param value the planeId to set * @return this */ - public SwapLineupCsReq setIndex(final int value) { + public SwapLineupCsReq setPlaneId(final int value) { bitField0_ |= 0x00000001; - index = value; + planeId = value; return this; } /** - * optional uint32 src_slot = 2; + * optional uint32 src_slot = 11; * @return whether the srcSlot field is set */ public boolean hasSrcSlot() { @@ -104,7 +104,7 @@ public boolean hasSrcSlot() { } /** - * optional uint32 src_slot = 2; + * optional uint32 src_slot = 11; * @return this */ public SwapLineupCsReq clearSrcSlot() { @@ -114,7 +114,7 @@ public SwapLineupCsReq clearSrcSlot() { } /** - * optional uint32 src_slot = 2; + * optional uint32 src_slot = 11; * @return the srcSlot */ public int getSrcSlot() { @@ -122,7 +122,7 @@ public int getSrcSlot() { } /** - * optional uint32 src_slot = 2; + * optional uint32 src_slot = 11; * @param value the srcSlot to set * @return this */ @@ -133,81 +133,81 @@ public SwapLineupCsReq setSrcSlot(final int value) { } /** - * optional uint32 plane_id = 8; - * @return whether the planeId field is set + * optional uint32 dst_slot = 12; + * @return whether the dstSlot field is set */ - public boolean hasPlaneId() { + public boolean hasDstSlot() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 plane_id = 8; + * optional uint32 dst_slot = 12; * @return this */ - public SwapLineupCsReq clearPlaneId() { + public SwapLineupCsReq clearDstSlot() { bitField0_ &= ~0x00000004; - planeId = 0; + dstSlot = 0; return this; } /** - * optional uint32 plane_id = 8; - * @return the planeId + * optional uint32 dst_slot = 12; + * @return the dstSlot */ - public int getPlaneId() { - return planeId; + public int getDstSlot() { + return dstSlot; } /** - * optional uint32 plane_id = 8; - * @param value the planeId to set + * optional uint32 dst_slot = 12; + * @param value the dstSlot to set * @return this */ - public SwapLineupCsReq setPlaneId(final int value) { + public SwapLineupCsReq setDstSlot(final int value) { bitField0_ |= 0x00000004; - planeId = value; + dstSlot = value; return this; } /** - * optional uint32 dst_slot = 10; - * @return whether the dstSlot field is set + * optional uint32 index = 15; + * @return whether the index field is set */ - public boolean hasDstSlot() { + public boolean hasIndex() { return (bitField0_ & 0x00000008) != 0; } /** - * optional uint32 dst_slot = 10; + * optional uint32 index = 15; * @return this */ - public SwapLineupCsReq clearDstSlot() { + public SwapLineupCsReq clearIndex() { bitField0_ &= ~0x00000008; - dstSlot = 0; + index = 0; return this; } /** - * optional uint32 dst_slot = 10; - * @return the dstSlot + * optional uint32 index = 15; + * @return the index */ - public int getDstSlot() { - return dstSlot; + public int getIndex() { + return index; } /** - * optional uint32 dst_slot = 10; - * @param value the dstSlot to set + * optional uint32 index = 15; + * @param value the index to set * @return this */ - public SwapLineupCsReq setDstSlot(final int value) { + public SwapLineupCsReq setIndex(final int value) { bitField0_ |= 0x00000008; - dstSlot = value; + index = value; return this; } /** - * optional .ExtraLineupType extra_lineup_type = 11; + * optional .ExtraLineupType extra_lineup_type = 14; * @return whether the extraLineupType field is set */ public boolean hasExtraLineupType() { @@ -215,7 +215,7 @@ public boolean hasExtraLineupType() { } /** - * optional .ExtraLineupType extra_lineup_type = 11; + * optional .ExtraLineupType extra_lineup_type = 14; * @return this */ public SwapLineupCsReq clearExtraLineupType() { @@ -225,7 +225,7 @@ public SwapLineupCsReq clearExtraLineupType() { } /** - * optional .ExtraLineupType extra_lineup_type = 11; + * optional .ExtraLineupType extra_lineup_type = 14; * @return the extraLineupType */ public ExtraLineupTypeOuterClass.ExtraLineupType getExtraLineupType() { @@ -258,7 +258,7 @@ public SwapLineupCsReq setExtraLineupTypeValue(final int value) { } /** - * optional .ExtraLineupType extra_lineup_type = 11; + * optional .ExtraLineupType extra_lineup_type = 14; * @param value the extraLineupType to set * @return this */ @@ -270,7 +270,7 @@ public SwapLineupCsReq setExtraLineupType( } /** - * optional bool is_virtual = 13; + * optional bool is_virtual = 2; * @return whether the isVirtual field is set */ public boolean hasIsVirtual() { @@ -278,7 +278,7 @@ public boolean hasIsVirtual() { } /** - * optional bool is_virtual = 13; + * optional bool is_virtual = 2; * @return this */ public SwapLineupCsReq clearIsVirtual() { @@ -288,7 +288,7 @@ public SwapLineupCsReq clearIsVirtual() { } /** - * optional bool is_virtual = 13; + * optional bool is_virtual = 2; * @return the isVirtual */ public boolean getIsVirtual() { @@ -296,7 +296,7 @@ public boolean getIsVirtual() { } /** - * optional bool is_virtual = 13; + * optional bool is_virtual = 2; * @param value the isVirtual to set * @return this */ @@ -311,10 +311,10 @@ public SwapLineupCsReq copyFrom(final SwapLineupCsReq other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - index = other.index; - srcSlot = other.srcSlot; planeId = other.planeId; + srcSlot = other.srcSlot; dstSlot = other.dstSlot; + index = other.index; extraLineupType = other.extraLineupType; isVirtual = other.isVirtual; } @@ -327,18 +327,18 @@ public SwapLineupCsReq mergeFrom(final SwapLineupCsReq other) { return this; } cachedSize = -1; - if (other.hasIndex()) { - setIndex(other.index); + if (other.hasPlaneId()) { + setPlaneId(other.planeId); } if (other.hasSrcSlot()) { setSrcSlot(other.srcSlot); } - if (other.hasPlaneId()) { - setPlaneId(other.planeId); - } if (other.hasDstSlot()) { setDstSlot(other.dstSlot); } + if (other.hasIndex()) { + setIndex(other.index); + } if (other.hasExtraLineupType()) { setExtraLineupTypeValue(other.extraLineupType); } @@ -355,10 +355,10 @@ public SwapLineupCsReq clear() { } cachedSize = -1; bitField0_ = 0; - index = 0; - srcSlot = 0; planeId = 0; + srcSlot = 0; dstSlot = 0; + index = 0; extraLineupType = 0; isVirtual = false; return this; @@ -384,10 +384,10 @@ public boolean equals(Object o) { } SwapLineupCsReq other = (SwapLineupCsReq) o; return bitField0_ == other.bitField0_ - && (!hasIndex() || index == other.index) - && (!hasSrcSlot() || srcSlot == other.srcSlot) && (!hasPlaneId() || planeId == other.planeId) + && (!hasSrcSlot() || srcSlot == other.srcSlot) && (!hasDstSlot() || dstSlot == other.dstSlot) + && (!hasIndex() || index == other.index) && (!hasExtraLineupType() || extraLineupType == other.extraLineupType) && (!hasIsVirtual() || isVirtual == other.isVirtual); } @@ -395,27 +395,27 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(index); + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(planeId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 16); + output.writeRawByte((byte) 88); output.writeUInt32NoTag(srcSlot); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 64); - output.writeUInt32NoTag(planeId); + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(dstSlot); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 80); - output.writeUInt32NoTag(dstSlot); + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(index); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 112); output.writeEnumNoTag(extraLineupType); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 16); output.writeBoolNoTag(isVirtual); } } @@ -424,16 +424,16 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(index); + size += 1 + ProtoSink.computeUInt32SizeNoTag(planeId); } if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(srcSlot); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(planeId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(dstSlot); } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(dstSlot); + size += 1 + ProtoSink.computeUInt32SizeNoTag(index); } if ((bitField0_ & 0x00000010) != 0) { size += 1 + ProtoSink.computeEnumSizeNoTag(extraLineupType); @@ -451,43 +451,43 @@ public SwapLineupCsReq mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 8: { - // index - index = input.readUInt32(); + case 56: { + // planeId + planeId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 16) { + if (tag != 88) { break; } } - case 16: { + case 88: { // srcSlot srcSlot = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 64) { + if (tag != 96) { break; } } - case 64: { - // planeId - planeId = input.readUInt32(); + case 96: { + // dstSlot + dstSlot = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 80) { + if (tag != 120) { break; } } - case 80: { - // dstSlot - dstSlot = input.readUInt32(); + case 120: { + // index + index = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 88) { + if (tag != 112) { break; } } - case 88: { + case 112: { // extraLineupType final int value = input.readInt32(); if (ExtraLineupTypeOuterClass.ExtraLineupType.forNumber(value) != null) { @@ -495,11 +495,11 @@ public SwapLineupCsReq mergeFrom(final ProtoSource input) throws IOException { bitField0_ |= 0x00000010; } tag = input.readTag(); - if (tag != 104) { + if (tag != 16) { break; } } - case 104: { + case 16: { // isVirtual isVirtual = input.readBool(); bitField0_ |= 0x00000020; @@ -526,16 +526,16 @@ public SwapLineupCsReq mergeFrom(final ProtoSource input) throws IOException { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.index, index); + output.writeUInt32(FieldNames.planeId, planeId); } if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.srcSlot, srcSlot); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.planeId, planeId); + output.writeUInt32(FieldNames.dstSlot, dstSlot); } if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.dstSlot, dstSlot); + output.writeUInt32(FieldNames.index, index); } if ((bitField0_ & 0x00000010) != 0) { output.writeEnum(FieldNames.extraLineupType, extraLineupType, ExtraLineupTypeOuterClass.ExtraLineupType.converter()); @@ -553,10 +553,11 @@ public SwapLineupCsReq mergeFrom(final JsonSource input) throws IOException { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 100346066: { - if (input.isAtField(FieldNames.index)) { + case -493896553: + case 1869097438: { + if (input.isAtField(FieldNames.planeId)) { if (!input.trySkipNullValue()) { - index = input.readUInt32(); + planeId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -576,11 +577,11 @@ public SwapLineupCsReq mergeFrom(final JsonSource input) throws IOException { } break; } - case -493896553: - case 1869097438: { - if (input.isAtField(FieldNames.planeId)) { + case 1958115683: + case 583331896: { + if (input.isAtField(FieldNames.dstSlot)) { if (!input.trySkipNullValue()) { - planeId = input.readUInt32(); + dstSlot = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -588,11 +589,10 @@ public SwapLineupCsReq mergeFrom(final JsonSource input) throws IOException { } break; } - case 1958115683: - case 583331896: { - if (input.isAtField(FieldNames.dstSlot)) { + case 100346066: { + if (input.isAtField(FieldNames.index)) { if (!input.trySkipNullValue()) { - dstSlot = input.readUInt32(); + index = input.readUInt32(); bitField0_ |= 0x00000008; } } else { @@ -682,14 +682,14 @@ public SwapLineupCsReq create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName index = FieldName.forField("index"); + static final FieldName planeId = FieldName.forField("planeId", "plane_id"); static final FieldName srcSlot = FieldName.forField("srcSlot", "src_slot"); - static final FieldName planeId = FieldName.forField("planeId", "plane_id"); - static final FieldName dstSlot = FieldName.forField("dstSlot", "dst_slot"); + static final FieldName index = FieldName.forField("index"); + static final FieldName extraLineupType = FieldName.forField("extraLineupType", "extra_lineup_type"); static final FieldName isVirtual = FieldName.forField("isVirtual", "is_virtual"); diff --git a/src/generated/main/emu/lunarcore/proto/SwitchLineupIndexCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SwitchLineupIndexCsReqOuterClass.java index b46608082..e81588cf6 100644 --- a/src/generated/main/emu/lunarcore/proto/SwitchLineupIndexCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SwitchLineupIndexCsReqOuterClass.java @@ -19,7 +19,7 @@ public static final class SwitchLineupIndexCsReq extends ProtoMessageoptional uint32 index = 12; + * optional uint32 index = 9; */ private int index; @@ -34,7 +34,7 @@ public static SwitchLineupIndexCsReq newInstance() { } /** - * optional uint32 index = 12; + * optional uint32 index = 9; * @return whether the index field is set */ public boolean hasIndex() { @@ -42,7 +42,7 @@ public boolean hasIndex() { } /** - * optional uint32 index = 12; + * optional uint32 index = 9; * @return this */ public SwitchLineupIndexCsReq clearIndex() { @@ -52,7 +52,7 @@ public SwitchLineupIndexCsReq clearIndex() { } /** - * optional uint32 index = 12; + * optional uint32 index = 9; * @return the index */ public int getIndex() { @@ -60,7 +60,7 @@ public int getIndex() { } /** - * optional uint32 index = 12; + * optional uint32 index = 9; * @param value the index to set * @return this */ @@ -129,7 +129,7 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 72); output.writeUInt32NoTag(index); } } @@ -150,7 +150,7 @@ public SwitchLineupIndexCsReq mergeFrom(final ProtoSource input) throws IOExcept int tag = input.readTag(); while (true) { switch (tag) { - case 96: { + case 72: { // index index = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/SwitchLineupIndexScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/SwitchLineupIndexScRspOuterClass.java index c76ff4051..19434d481 100644 --- a/src/generated/main/emu/lunarcore/proto/SwitchLineupIndexScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SwitchLineupIndexScRspOuterClass.java @@ -19,12 +19,12 @@ public static final class SwitchLineupIndexScRsp extends ProtoMessageoptional uint32 retcode = 5; + * optional uint32 retcode = 8; */ private int retcode; /** - * optional uint32 index = 14; + * optional uint32 index = 13; */ private int index; @@ -39,7 +39,7 @@ public static SwitchLineupIndexScRsp newInstance() { } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 8; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -47,7 +47,7 @@ public boolean hasRetcode() { } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 8; * @return this */ public SwitchLineupIndexScRsp clearRetcode() { @@ -57,7 +57,7 @@ public SwitchLineupIndexScRsp clearRetcode() { } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 8; * @return the retcode */ public int getRetcode() { @@ -65,7 +65,7 @@ public int getRetcode() { } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 8; * @param value the retcode to set * @return this */ @@ -76,7 +76,7 @@ public SwitchLineupIndexScRsp setRetcode(final int value) { } /** - * optional uint32 index = 14; + * optional uint32 index = 13; * @return whether the index field is set */ public boolean hasIndex() { @@ -84,7 +84,7 @@ public boolean hasIndex() { } /** - * optional uint32 index = 14; + * optional uint32 index = 13; * @return this */ public SwitchLineupIndexScRsp clearIndex() { @@ -94,7 +94,7 @@ public SwitchLineupIndexScRsp clearIndex() { } /** - * optional uint32 index = 14; + * optional uint32 index = 13; * @return the index */ public int getIndex() { @@ -102,7 +102,7 @@ public int getIndex() { } /** - * optional uint32 index = 14; + * optional uint32 index = 13; * @param value the index to set * @return this */ @@ -177,11 +177,11 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 64); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 104); output.writeUInt32NoTag(index); } } @@ -205,16 +205,16 @@ public SwitchLineupIndexScRsp mergeFrom(final ProtoSource input) throws IOExcept int tag = input.readTag(); while (true) { switch (tag) { - case 40: { + case 64: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 112) { + if (tag != 104) { break; } } - case 112: { + case 104: { // index index = input.readUInt32(); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/SyncApplyFriendScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/SyncApplyFriendScNotifyOuterClass.java index 94802b34b..aa4cd79f3 100644 --- a/src/generated/main/emu/lunarcore/proto/SyncApplyFriendScNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SyncApplyFriendScNotifyOuterClass.java @@ -19,9 +19,9 @@ public static final class SyncApplyFriendScNotify extends ProtoMessageoptional .FriendApplyListInfo friend_apply_info = 5; + * optional .FriendApplyInfo friend_apply_info = 9; */ - private final FriendApplyListInfoOuterClass.FriendApplyListInfo friendApplyInfo = FriendApplyListInfoOuterClass.FriendApplyListInfo.newInstance(); + private final FriendApplyInfoOuterClass.FriendApplyInfo friendApplyInfo = FriendApplyInfoOuterClass.FriendApplyInfo.newInstance(); private SyncApplyFriendScNotify() { } @@ -34,7 +34,7 @@ public static SyncApplyFriendScNotify newInstance() { } /** - * optional .FriendApplyListInfo friend_apply_info = 5; + * optional .FriendApplyInfo friend_apply_info = 9; * @return whether the friendApplyInfo field is set */ public boolean hasFriendApplyInfo() { @@ -42,7 +42,7 @@ public boolean hasFriendApplyInfo() { } /** - * optional .FriendApplyListInfo friend_apply_info = 5; + * optional .FriendApplyInfo friend_apply_info = 9; * @return this */ public SyncApplyFriendScNotify clearFriendApplyInfo() { @@ -52,7 +52,7 @@ public SyncApplyFriendScNotify clearFriendApplyInfo() { } /** - * optional .FriendApplyListInfo friend_apply_info = 5; + * optional .FriendApplyInfo friend_apply_info = 9; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -61,12 +61,12 @@ public SyncApplyFriendScNotify clearFriendApplyInfo() { * * @return internal storage object for reading */ - public FriendApplyListInfoOuterClass.FriendApplyListInfo getFriendApplyInfo() { + public FriendApplyInfoOuterClass.FriendApplyInfo getFriendApplyInfo() { return friendApplyInfo; } /** - * optional .FriendApplyListInfo friend_apply_info = 5; + * optional .FriendApplyInfo friend_apply_info = 9; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -74,18 +74,18 @@ public FriendApplyListInfoOuterClass.FriendApplyListInfo getFriendApplyInfo() { * * @return internal storage object for modifications */ - public FriendApplyListInfoOuterClass.FriendApplyListInfo getMutableFriendApplyInfo() { + public FriendApplyInfoOuterClass.FriendApplyInfo getMutableFriendApplyInfo() { bitField0_ |= 0x00000001; return friendApplyInfo; } /** - * optional .FriendApplyListInfo friend_apply_info = 5; + * optional .FriendApplyInfo friend_apply_info = 9; * @param value the friendApplyInfo to set * @return this */ public SyncApplyFriendScNotify setFriendApplyInfo( - final FriendApplyListInfoOuterClass.FriendApplyListInfo value) { + final FriendApplyInfoOuterClass.FriendApplyInfo value) { bitField0_ |= 0x00000001; friendApplyInfo.copyFrom(value); return this; @@ -151,7 +151,7 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 42); + output.writeRawByte((byte) 74); output.writeMessageNoTag(friendApplyInfo); } } @@ -172,7 +172,7 @@ public SyncApplyFriendScNotify mergeFrom(final ProtoSource input) throws IOExcep int tag = input.readTag(); while (true) { switch (tag) { - case 42: { + case 74: { // friendApplyInfo input.readMessage(friendApplyInfo); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/SyncClientResVersionCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SyncClientResVersionCsReqOuterClass.java index 1e0f6a8fe..e915ec738 100644 --- a/src/generated/main/emu/lunarcore/proto/SyncClientResVersionCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SyncClientResVersionCsReqOuterClass.java @@ -19,7 +19,7 @@ public static final class SyncClientResVersionCsReq extends ProtoMessageoptional uint32 client_res_version = 3; + * optional uint32 client_res_version = 15; */ private int clientResVersion; @@ -34,7 +34,7 @@ public static SyncClientResVersionCsReq newInstance() { } /** - * optional uint32 client_res_version = 3; + * optional uint32 client_res_version = 15; * @return whether the clientResVersion field is set */ public boolean hasClientResVersion() { @@ -42,7 +42,7 @@ public boolean hasClientResVersion() { } /** - * optional uint32 client_res_version = 3; + * optional uint32 client_res_version = 15; * @return this */ public SyncClientResVersionCsReq clearClientResVersion() { @@ -52,7 +52,7 @@ public SyncClientResVersionCsReq clearClientResVersion() { } /** - * optional uint32 client_res_version = 3; + * optional uint32 client_res_version = 15; * @return the clientResVersion */ public int getClientResVersion() { @@ -60,7 +60,7 @@ public int getClientResVersion() { } /** - * optional uint32 client_res_version = 3; + * optional uint32 client_res_version = 15; * @param value the clientResVersion to set * @return this */ @@ -129,7 +129,7 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 120); output.writeUInt32NoTag(clientResVersion); } } @@ -150,7 +150,7 @@ public SyncClientResVersionCsReq mergeFrom(final ProtoSource input) throws IOExc int tag = input.readTag(); while (true) { switch (tag) { - case 24: { + case 120: { // clientResVersion clientResVersion = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/SyncClientResVersionScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/SyncClientResVersionScRspOuterClass.java index 59cb68b25..79e96fd5b 100644 --- a/src/generated/main/emu/lunarcore/proto/SyncClientResVersionScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SyncClientResVersionScRspOuterClass.java @@ -19,12 +19,12 @@ public static final class SyncClientResVersionScRsp extends ProtoMessageoptional uint32 retcode = 5; + * optional uint32 retcode = 6; */ private int retcode; /** - * optional uint32 client_res_version = 12; + * optional uint32 client_res_version = 15; */ private int clientResVersion; @@ -39,7 +39,7 @@ public static SyncClientResVersionScRsp newInstance() { } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 6; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -47,7 +47,7 @@ public boolean hasRetcode() { } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 6; * @return this */ public SyncClientResVersionScRsp clearRetcode() { @@ -57,7 +57,7 @@ public SyncClientResVersionScRsp clearRetcode() { } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 6; * @return the retcode */ public int getRetcode() { @@ -65,7 +65,7 @@ public int getRetcode() { } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 6; * @param value the retcode to set * @return this */ @@ -76,7 +76,7 @@ public SyncClientResVersionScRsp setRetcode(final int value) { } /** - * optional uint32 client_res_version = 12; + * optional uint32 client_res_version = 15; * @return whether the clientResVersion field is set */ public boolean hasClientResVersion() { @@ -84,7 +84,7 @@ public boolean hasClientResVersion() { } /** - * optional uint32 client_res_version = 12; + * optional uint32 client_res_version = 15; * @return this */ public SyncClientResVersionScRsp clearClientResVersion() { @@ -94,7 +94,7 @@ public SyncClientResVersionScRsp clearClientResVersion() { } /** - * optional uint32 client_res_version = 12; + * optional uint32 client_res_version = 15; * @return the clientResVersion */ public int getClientResVersion() { @@ -102,7 +102,7 @@ public int getClientResVersion() { } /** - * optional uint32 client_res_version = 12; + * optional uint32 client_res_version = 15; * @param value the clientResVersion to set * @return this */ @@ -177,11 +177,11 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 48); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 120); output.writeUInt32NoTag(clientResVersion); } } @@ -205,16 +205,16 @@ public SyncClientResVersionScRsp mergeFrom(final ProtoSource input) throws IOExc int tag = input.readTag(); while (true) { switch (tag) { - case 40: { + case 48: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 96) { + if (tag != 120) { break; } } - case 96: { + case 120: { // clientResVersion clientResVersion = input.readUInt32(); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/SyncDeleteFriendScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/SyncDeleteFriendScNotifyOuterClass.java index 1704f7020..21741ab81 100644 --- a/src/generated/main/emu/lunarcore/proto/SyncDeleteFriendScNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SyncDeleteFriendScNotifyOuterClass.java @@ -19,7 +19,7 @@ public static final class SyncDeleteFriendScNotify extends ProtoMessageoptional uint32 uid = 11; + * optional uint32 uid = 14; */ private int uid; @@ -34,7 +34,7 @@ public static SyncDeleteFriendScNotify newInstance() { } /** - * optional uint32 uid = 11; + * optional uint32 uid = 14; * @return whether the uid field is set */ public boolean hasUid() { @@ -42,7 +42,7 @@ public boolean hasUid() { } /** - * optional uint32 uid = 11; + * optional uint32 uid = 14; * @return this */ public SyncDeleteFriendScNotify clearUid() { @@ -52,7 +52,7 @@ public SyncDeleteFriendScNotify clearUid() { } /** - * optional uint32 uid = 11; + * optional uint32 uid = 14; * @return the uid */ public int getUid() { @@ -60,7 +60,7 @@ public int getUid() { } /** - * optional uint32 uid = 11; + * optional uint32 uid = 14; * @param value the uid to set * @return this */ @@ -129,7 +129,7 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 112); output.writeUInt32NoTag(uid); } } @@ -150,7 +150,7 @@ public SyncDeleteFriendScNotify mergeFrom(final ProtoSource input) throws IOExce int tag = input.readTag(); while (true) { switch (tag) { - case 88: { + case 112: { // uid uid = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/SyncEntityBuffChangeListScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/SyncEntityBuffChangeListScNotifyOuterClass.java index 57c75d065..182583b51 100644 --- a/src/generated/main/emu/lunarcore/proto/SyncEntityBuffChangeListScNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SyncEntityBuffChangeListScNotifyOuterClass.java @@ -20,7 +20,7 @@ public static final class SyncEntityBuffChangeListScNotify extends ProtoMessage< private static final long serialVersionUID = 0L; /** - * repeated .EntityBuffChangeInfo entity_buff_info_list = 5; + * repeated .EntityBuffChangeInfo entity_buff_info_list = 15; */ private final RepeatedMessage entityBuffInfoList = RepeatedMessage.newEmptyInstance(EntityBuffChangeInfoOuterClass.EntityBuffChangeInfo.getFactory()); @@ -35,7 +35,7 @@ public static SyncEntityBuffChangeListScNotify newInstance() { } /** - * repeated .EntityBuffChangeInfo entity_buff_info_list = 5; + * repeated .EntityBuffChangeInfo entity_buff_info_list = 15; * @return whether the entityBuffInfoList field is set */ public boolean hasEntityBuffInfoList() { @@ -43,7 +43,7 @@ public boolean hasEntityBuffInfoList() { } /** - * repeated .EntityBuffChangeInfo entity_buff_info_list = 5; + * repeated .EntityBuffChangeInfo entity_buff_info_list = 15; * @return this */ public SyncEntityBuffChangeListScNotify clearEntityBuffInfoList() { @@ -53,7 +53,7 @@ public SyncEntityBuffChangeListScNotify clearEntityBuffInfoList() { } /** - * repeated .EntityBuffChangeInfo entity_buff_info_list = 5; + * repeated .EntityBuffChangeInfo entity_buff_info_list = 15; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -68,7 +68,7 @@ public RepeatedMessage getE } /** - * repeated .EntityBuffChangeInfo entity_buff_info_list = 5; + * repeated .EntityBuffChangeInfo entity_buff_info_list = 15; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -83,7 +83,7 @@ public RepeatedMessage getM } /** - * repeated .EntityBuffChangeInfo entity_buff_info_list = 5; + * repeated .EntityBuffChangeInfo entity_buff_info_list = 15; * @param value the entityBuffInfoList to add * @return this */ @@ -95,7 +95,7 @@ public SyncEntityBuffChangeListScNotify addEntityBuffInfoList( } /** - * repeated .EntityBuffChangeInfo entity_buff_info_list = 5; + * repeated .EntityBuffChangeInfo entity_buff_info_list = 15; * @param values the entityBuffInfoList to add * @return this */ @@ -168,7 +168,7 @@ public boolean equals(Object o) { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { for (int i = 0; i < entityBuffInfoList.length(); i++) { - output.writeRawByte((byte) 42); + output.writeRawByte((byte) 122); output.writeMessageNoTag(entityBuffInfoList.get(i)); } } @@ -190,7 +190,7 @@ public SyncEntityBuffChangeListScNotify mergeFrom(final ProtoSource input) throw int tag = input.readTag(); while (true) { switch (tag) { - case 42: { + case 122: { // entityBuffInfoList tag = input.readRepeatedMessage(entityBuffInfoList, tag); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/SyncHandleFriendScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/SyncHandleFriendScNotifyOuterClass.java index e639f86a4..10d4e8a9b 100644 --- a/src/generated/main/emu/lunarcore/proto/SyncHandleFriendScNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SyncHandleFriendScNotifyOuterClass.java @@ -19,17 +19,17 @@ public static final class SyncHandleFriendScNotify extends ProtoMessageoptional uint32 uid = 14; + * optional uint32 uid = 2; */ private int uid; /** - * optional bool handle_result = 13; + * optional bool handle_result = 12; */ private boolean handleResult; /** - * optional .FriendListInfo handle_friend_info = 12; + * optional .FriendListInfo handle_friend_info = 1; */ private final FriendListInfoOuterClass.FriendListInfo handleFriendInfo = FriendListInfoOuterClass.FriendListInfo.newInstance(); @@ -44,7 +44,7 @@ public static SyncHandleFriendScNotify newInstance() { } /** - * optional uint32 uid = 14; + * optional uint32 uid = 2; * @return whether the uid field is set */ public boolean hasUid() { @@ -52,7 +52,7 @@ public boolean hasUid() { } /** - * optional uint32 uid = 14; + * optional uint32 uid = 2; * @return this */ public SyncHandleFriendScNotify clearUid() { @@ -62,7 +62,7 @@ public SyncHandleFriendScNotify clearUid() { } /** - * optional uint32 uid = 14; + * optional uint32 uid = 2; * @return the uid */ public int getUid() { @@ -70,7 +70,7 @@ public int getUid() { } /** - * optional uint32 uid = 14; + * optional uint32 uid = 2; * @param value the uid to set * @return this */ @@ -81,7 +81,7 @@ public SyncHandleFriendScNotify setUid(final int value) { } /** - * optional bool handle_result = 13; + * optional bool handle_result = 12; * @return whether the handleResult field is set */ public boolean hasHandleResult() { @@ -89,7 +89,7 @@ public boolean hasHandleResult() { } /** - * optional bool handle_result = 13; + * optional bool handle_result = 12; * @return this */ public SyncHandleFriendScNotify clearHandleResult() { @@ -99,7 +99,7 @@ public SyncHandleFriendScNotify clearHandleResult() { } /** - * optional bool handle_result = 13; + * optional bool handle_result = 12; * @return the handleResult */ public boolean getHandleResult() { @@ -107,7 +107,7 @@ public boolean getHandleResult() { } /** - * optional bool handle_result = 13; + * optional bool handle_result = 12; * @param value the handleResult to set * @return this */ @@ -118,7 +118,7 @@ public SyncHandleFriendScNotify setHandleResult(final boolean value) { } /** - * optional .FriendListInfo handle_friend_info = 12; + * optional .FriendListInfo handle_friend_info = 1; * @return whether the handleFriendInfo field is set */ public boolean hasHandleFriendInfo() { @@ -126,7 +126,7 @@ public boolean hasHandleFriendInfo() { } /** - * optional .FriendListInfo handle_friend_info = 12; + * optional .FriendListInfo handle_friend_info = 1; * @return this */ public SyncHandleFriendScNotify clearHandleFriendInfo() { @@ -136,7 +136,7 @@ public SyncHandleFriendScNotify clearHandleFriendInfo() { } /** - * optional .FriendListInfo handle_friend_info = 12; + * optional .FriendListInfo handle_friend_info = 1; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -150,7 +150,7 @@ public FriendListInfoOuterClass.FriendListInfo getHandleFriendInfo() { } /** - * optional .FriendListInfo handle_friend_info = 12; + * optional .FriendListInfo handle_friend_info = 1; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -164,7 +164,7 @@ public FriendListInfoOuterClass.FriendListInfo getMutableHandleFriendInfo() { } /** - * optional .FriendListInfo handle_friend_info = 12; + * optional .FriendListInfo handle_friend_info = 1; * @param value the handleFriendInfo to set * @return this */ @@ -247,15 +247,15 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 16); output.writeUInt32NoTag(uid); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 96); output.writeBoolNoTag(handleResult); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 98); + output.writeRawByte((byte) 10); output.writeMessageNoTag(handleFriendInfo); } } @@ -282,25 +282,25 @@ public SyncHandleFriendScNotify mergeFrom(final ProtoSource input) throws IOExce int tag = input.readTag(); while (true) { switch (tag) { - case 112: { + case 16: { // uid uid = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 104) { + if (tag != 96) { break; } } - case 104: { + case 96: { // handleResult handleResult = input.readBool(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 98) { + if (tag != 10) { break; } } - case 98: { + case 10: { // handleFriendInfo input.readMessage(handleFriendInfo); bitField0_ |= 0x00000004; diff --git a/src/generated/main/emu/lunarcore/proto/SyncLineupNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/SyncLineupNotifyOuterClass.java index 849f7d8fe..1da1b4552 100644 --- a/src/generated/main/emu/lunarcore/proto/SyncLineupNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SyncLineupNotifyOuterClass.java @@ -20,12 +20,12 @@ public static final class SyncLineupNotify extends ProtoMessageoptional .LineupInfo lineup = 8; + * optional .LineupInfo lineup = 12; */ private final LineupInfoOuterClass.LineupInfo lineup = LineupInfoOuterClass.LineupInfo.newInstance(); /** - * repeated .SyncReason reason_list = 11; + * repeated .SyncReason reason_list = 14; */ private final RepeatedEnum reasonList = RepeatedEnum.newEmptyInstance(SyncReasonOuterClass.SyncReason.converter()); @@ -40,7 +40,7 @@ public static SyncLineupNotify newInstance() { } /** - * optional .LineupInfo lineup = 8; + * optional .LineupInfo lineup = 12; * @return whether the lineup field is set */ public boolean hasLineup() { @@ -48,7 +48,7 @@ public boolean hasLineup() { } /** - * optional .LineupInfo lineup = 8; + * optional .LineupInfo lineup = 12; * @return this */ public SyncLineupNotify clearLineup() { @@ -58,7 +58,7 @@ public SyncLineupNotify clearLineup() { } /** - * optional .LineupInfo lineup = 8; + * optional .LineupInfo lineup = 12; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -72,7 +72,7 @@ public LineupInfoOuterClass.LineupInfo getLineup() { } /** - * optional .LineupInfo lineup = 8; + * optional .LineupInfo lineup = 12; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -86,7 +86,7 @@ public LineupInfoOuterClass.LineupInfo getMutableLineup() { } /** - * optional .LineupInfo lineup = 8; + * optional .LineupInfo lineup = 12; * @param value the lineup to set * @return this */ @@ -97,7 +97,7 @@ public SyncLineupNotify setLineup(final LineupInfoOuterClass.LineupInfo value) { } /** - * repeated .SyncReason reason_list = 11; + * repeated .SyncReason reason_list = 14; * @return whether the reasonList field is set */ public boolean hasReasonList() { @@ -105,7 +105,7 @@ public boolean hasReasonList() { } /** - * repeated .SyncReason reason_list = 11; + * repeated .SyncReason reason_list = 14; * @return this */ public SyncLineupNotify clearReasonList() { @@ -115,7 +115,7 @@ public SyncLineupNotify clearReasonList() { } /** - * repeated .SyncReason reason_list = 11; + * repeated .SyncReason reason_list = 14; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -129,7 +129,7 @@ public RepeatedEnum getReasonList() { } /** - * repeated .SyncReason reason_list = 11; + * repeated .SyncReason reason_list = 14; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -143,7 +143,7 @@ public RepeatedEnum getMutableReasonList() { } /** - * repeated .SyncReason reason_list = 11; + * repeated .SyncReason reason_list = 14; * @param value the reasonList to add * @return this */ @@ -154,7 +154,7 @@ public SyncLineupNotify addReasonList(final SyncReasonOuterClass.SyncReason valu } /** - * repeated .SyncReason reason_list = 11; + * repeated .SyncReason reason_list = 14; * @param values the reasonList to add * @return this */ @@ -231,12 +231,12 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 66); + output.writeRawByte((byte) 98); output.writeMessageNoTag(lineup); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < reasonList.length(); i++) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 112); output.writeEnumNoTag(reasonList.array()[i]); } } @@ -261,16 +261,16 @@ public SyncLineupNotify mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 66: { + case 98: { // lineup input.readMessage(lineup); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 90) { + if (tag != 114) { break; } } - case 90: { + case 114: { // reasonList [packed=true] input.readPackedEnum(reasonList, tag); bitField0_ |= 0x00000002; @@ -289,7 +289,7 @@ public SyncLineupNotify mergeFrom(final ProtoSource input) throws IOException { tag = input.readTag(); break; } - case 88: { + case 112: { // reasonList [packed=false] tag = input.readRepeatedEnum(reasonList, tag); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/TakeChallengeRewardCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/TakeChallengeRewardCsReqOuterClass.java index 7088e5dc3..c493bfd11 100644 --- a/src/generated/main/emu/lunarcore/proto/TakeChallengeRewardCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/TakeChallengeRewardCsReqOuterClass.java @@ -19,12 +19,12 @@ public static final class TakeChallengeRewardCsReq extends ProtoMessageoptional uint32 star_count = 8; + * optional uint32 star_count = 5; */ private int starCount; /** - * optional uint32 group_id = 15; + * optional uint32 group_id = 14; */ private int groupId; @@ -39,7 +39,7 @@ public static TakeChallengeRewardCsReq newInstance() { } /** - * optional uint32 star_count = 8; + * optional uint32 star_count = 5; * @return whether the starCount field is set */ public boolean hasStarCount() { @@ -47,7 +47,7 @@ public boolean hasStarCount() { } /** - * optional uint32 star_count = 8; + * optional uint32 star_count = 5; * @return this */ public TakeChallengeRewardCsReq clearStarCount() { @@ -57,7 +57,7 @@ public TakeChallengeRewardCsReq clearStarCount() { } /** - * optional uint32 star_count = 8; + * optional uint32 star_count = 5; * @return the starCount */ public int getStarCount() { @@ -65,7 +65,7 @@ public int getStarCount() { } /** - * optional uint32 star_count = 8; + * optional uint32 star_count = 5; * @param value the starCount to set * @return this */ @@ -76,7 +76,7 @@ public TakeChallengeRewardCsReq setStarCount(final int value) { } /** - * optional uint32 group_id = 15; + * optional uint32 group_id = 14; * @return whether the groupId field is set */ public boolean hasGroupId() { @@ -84,7 +84,7 @@ public boolean hasGroupId() { } /** - * optional uint32 group_id = 15; + * optional uint32 group_id = 14; * @return this */ public TakeChallengeRewardCsReq clearGroupId() { @@ -94,7 +94,7 @@ public TakeChallengeRewardCsReq clearGroupId() { } /** - * optional uint32 group_id = 15; + * optional uint32 group_id = 14; * @return the groupId */ public int getGroupId() { @@ -102,7 +102,7 @@ public int getGroupId() { } /** - * optional uint32 group_id = 15; + * optional uint32 group_id = 14; * @param value the groupId to set * @return this */ @@ -177,11 +177,11 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 40); output.writeUInt32NoTag(starCount); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 112); output.writeUInt32NoTag(groupId); } } @@ -205,16 +205,16 @@ public TakeChallengeRewardCsReq mergeFrom(final ProtoSource input) throws IOExce int tag = input.readTag(); while (true) { switch (tag) { - case 64: { + case 40: { // starCount starCount = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 120) { + if (tag != 112) { break; } } - case 120: { + case 112: { // groupId groupId = input.readUInt32(); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/TakeChallengeRewardScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/TakeChallengeRewardScRspOuterClass.java index 9754046c5..9d94fd21d 100644 --- a/src/generated/main/emu/lunarcore/proto/TakeChallengeRewardScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/TakeChallengeRewardScRspOuterClass.java @@ -19,22 +19,22 @@ public static final class TakeChallengeRewardScRsp extends ProtoMessageoptional uint32 retcode = 3; + * optional uint32 group_id = 3; */ - private int retcode; + private int groupId; /** - * optional uint32 group_id = 5; + * optional uint32 retcode = 12; */ - private int groupId; + private int retcode; /** - * optional uint32 star_count = 12; + * optional uint32 star_count = 14; */ private int starCount; /** - * optional .ItemList reward = 13; + * optional .ItemList reward = 1; */ private final ItemListOuterClass.ItemList reward = ItemListOuterClass.ItemList.newInstance(); @@ -49,81 +49,81 @@ public static TakeChallengeRewardScRsp newInstance() { } /** - * optional uint32 retcode = 3; - * @return whether the retcode field is set + * optional uint32 group_id = 3; + * @return whether the groupId field is set */ - public boolean hasRetcode() { + public boolean hasGroupId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 retcode = 3; + * optional uint32 group_id = 3; * @return this */ - public TakeChallengeRewardScRsp clearRetcode() { + public TakeChallengeRewardScRsp clearGroupId() { bitField0_ &= ~0x00000001; - retcode = 0; + groupId = 0; return this; } /** - * optional uint32 retcode = 3; - * @return the retcode + * optional uint32 group_id = 3; + * @return the groupId */ - public int getRetcode() { - return retcode; + public int getGroupId() { + return groupId; } /** - * optional uint32 retcode = 3; - * @param value the retcode to set + * optional uint32 group_id = 3; + * @param value the groupId to set * @return this */ - public TakeChallengeRewardScRsp setRetcode(final int value) { + public TakeChallengeRewardScRsp setGroupId(final int value) { bitField0_ |= 0x00000001; - retcode = value; + groupId = value; return this; } /** - * optional uint32 group_id = 5; - * @return whether the groupId field is set + * optional uint32 retcode = 12; + * @return whether the retcode field is set */ - public boolean hasGroupId() { + public boolean hasRetcode() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 group_id = 5; + * optional uint32 retcode = 12; * @return this */ - public TakeChallengeRewardScRsp clearGroupId() { + public TakeChallengeRewardScRsp clearRetcode() { bitField0_ &= ~0x00000002; - groupId = 0; + retcode = 0; return this; } /** - * optional uint32 group_id = 5; - * @return the groupId + * optional uint32 retcode = 12; + * @return the retcode */ - public int getGroupId() { - return groupId; + public int getRetcode() { + return retcode; } /** - * optional uint32 group_id = 5; - * @param value the groupId to set + * optional uint32 retcode = 12; + * @param value the retcode to set * @return this */ - public TakeChallengeRewardScRsp setGroupId(final int value) { + public TakeChallengeRewardScRsp setRetcode(final int value) { bitField0_ |= 0x00000002; - groupId = value; + retcode = value; return this; } /** - * optional uint32 star_count = 12; + * optional uint32 star_count = 14; * @return whether the starCount field is set */ public boolean hasStarCount() { @@ -131,7 +131,7 @@ public boolean hasStarCount() { } /** - * optional uint32 star_count = 12; + * optional uint32 star_count = 14; * @return this */ public TakeChallengeRewardScRsp clearStarCount() { @@ -141,7 +141,7 @@ public TakeChallengeRewardScRsp clearStarCount() { } /** - * optional uint32 star_count = 12; + * optional uint32 star_count = 14; * @return the starCount */ public int getStarCount() { @@ -149,7 +149,7 @@ public int getStarCount() { } /** - * optional uint32 star_count = 12; + * optional uint32 star_count = 14; * @param value the starCount to set * @return this */ @@ -160,7 +160,7 @@ public TakeChallengeRewardScRsp setStarCount(final int value) { } /** - * optional .ItemList reward = 13; + * optional .ItemList reward = 1; * @return whether the reward field is set */ public boolean hasReward() { @@ -168,7 +168,7 @@ public boolean hasReward() { } /** - * optional .ItemList reward = 13; + * optional .ItemList reward = 1; * @return this */ public TakeChallengeRewardScRsp clearReward() { @@ -178,7 +178,7 @@ public TakeChallengeRewardScRsp clearReward() { } /** - * optional .ItemList reward = 13; + * optional .ItemList reward = 1; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -192,7 +192,7 @@ public ItemListOuterClass.ItemList getReward() { } /** - * optional .ItemList reward = 13; + * optional .ItemList reward = 1; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -206,7 +206,7 @@ public ItemListOuterClass.ItemList getMutableReward() { } /** - * optional .ItemList reward = 13; + * optional .ItemList reward = 1; * @param value the reward to set * @return this */ @@ -221,8 +221,8 @@ public TakeChallengeRewardScRsp copyFrom(final TakeChallengeRewardScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - retcode = other.retcode; groupId = other.groupId; + retcode = other.retcode; starCount = other.starCount; reward.copyFrom(other.reward); } @@ -235,12 +235,12 @@ public TakeChallengeRewardScRsp mergeFrom(final TakeChallengeRewardScRsp other) return this; } cachedSize = -1; - if (other.hasRetcode()) { - setRetcode(other.retcode); - } if (other.hasGroupId()) { setGroupId(other.groupId); } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } if (other.hasStarCount()) { setStarCount(other.starCount); } @@ -257,8 +257,8 @@ public TakeChallengeRewardScRsp clear() { } cachedSize = -1; bitField0_ = 0; - retcode = 0; groupId = 0; + retcode = 0; starCount = 0; reward.clear(); return this; @@ -285,8 +285,8 @@ public boolean equals(Object o) { } TakeChallengeRewardScRsp other = (TakeChallengeRewardScRsp) o; return bitField0_ == other.bitField0_ - && (!hasRetcode() || retcode == other.retcode) && (!hasGroupId() || groupId == other.groupId) + && (!hasRetcode() || retcode == other.retcode) && (!hasStarCount() || starCount == other.starCount) && (!hasReward() || reward.equals(other.reward)); } @@ -295,18 +295,18 @@ public boolean equals(Object o) { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { output.writeRawByte((byte) 24); - output.writeUInt32NoTag(retcode); + output.writeUInt32NoTag(groupId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 40); - output.writeUInt32NoTag(groupId); + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 112); output.writeUInt32NoTag(starCount); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 106); + output.writeRawByte((byte) 10); output.writeMessageNoTag(reward); } } @@ -315,10 +315,10 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(starCount); @@ -337,33 +337,33 @@ public TakeChallengeRewardScRsp mergeFrom(final ProtoSource input) throws IOExce while (true) { switch (tag) { case 24: { - // retcode - retcode = input.readUInt32(); + // groupId + groupId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 40) { + if (tag != 96) { break; } } - case 40: { - // groupId - groupId = input.readUInt32(); + case 96: { + // retcode + retcode = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 96) { + if (tag != 112) { break; } } - case 96: { + case 112: { // starCount starCount = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 106) { + if (tag != 10) { break; } } - case 106: { + case 10: { // reward input.readMessage(reward); bitField0_ |= 0x00000008; @@ -390,10 +390,10 @@ public TakeChallengeRewardScRsp mergeFrom(final ProtoSource input) throws IOExce public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.groupId, groupId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.groupId, groupId); + output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.starCount, starCount); @@ -411,10 +411,11 @@ public TakeChallengeRewardScRsp mergeFrom(final JsonSource input) throws IOExcep } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { + case 293428218: + case 506361563: { + if (input.isAtField(FieldNames.groupId)) { if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); + groupId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -422,11 +423,10 @@ public TakeChallengeRewardScRsp mergeFrom(final JsonSource input) throws IOExcep } break; } - case 293428218: - case 506361563: { - if (input.isAtField(FieldNames.groupId)) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { - groupId = input.readUInt32(); + retcode = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -510,10 +510,10 @@ public TakeChallengeRewardScRsp create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName retcode = FieldName.forField("retcode"); - static final FieldName groupId = FieldName.forField("groupId", "group_id"); + static final FieldName retcode = FieldName.forField("retcode"); + static final FieldName starCount = FieldName.forField("starCount", "star_count"); static final FieldName reward = FieldName.forField("reward"); diff --git a/src/generated/main/emu/lunarcore/proto/TakeMailAttachmentCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/TakeMailAttachmentCsReqOuterClass.java index 79d2b5f1a..247ffe637 100644 --- a/src/generated/main/emu/lunarcore/proto/TakeMailAttachmentCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/TakeMailAttachmentCsReqOuterClass.java @@ -20,7 +20,7 @@ public static final class TakeMailAttachmentCsReq extends ProtoMessagerepeated uint32 mail_id_list = 6; + * repeated uint32 mail_id_list = 12; */ private final RepeatedInt mailIdList = RepeatedInt.newEmptyInstance(); @@ -35,7 +35,7 @@ public static TakeMailAttachmentCsReq newInstance() { } /** - * repeated uint32 mail_id_list = 6; + * repeated uint32 mail_id_list = 12; * @return whether the mailIdList field is set */ public boolean hasMailIdList() { @@ -43,7 +43,7 @@ public boolean hasMailIdList() { } /** - * repeated uint32 mail_id_list = 6; + * repeated uint32 mail_id_list = 12; * @return this */ public TakeMailAttachmentCsReq clearMailIdList() { @@ -53,7 +53,7 @@ public TakeMailAttachmentCsReq clearMailIdList() { } /** - * repeated uint32 mail_id_list = 6; + * repeated uint32 mail_id_list = 12; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -67,7 +67,7 @@ public RepeatedInt getMailIdList() { } /** - * repeated uint32 mail_id_list = 6; + * repeated uint32 mail_id_list = 12; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -81,7 +81,7 @@ public RepeatedInt getMutableMailIdList() { } /** - * repeated uint32 mail_id_list = 6; + * repeated uint32 mail_id_list = 12; * @param value the mailIdList to add * @return this */ @@ -92,7 +92,7 @@ public TakeMailAttachmentCsReq addMailIdList(final int value) { } /** - * repeated uint32 mail_id_list = 6; + * repeated uint32 mail_id_list = 12; * @param values the mailIdList to add * @return this */ @@ -163,7 +163,7 @@ public boolean equals(Object o) { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { for (int i = 0; i < mailIdList.length(); i++) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 96); output.writeUInt32NoTag(mailIdList.array()[i]); } } @@ -185,7 +185,7 @@ public TakeMailAttachmentCsReq mergeFrom(final ProtoSource input) throws IOExcep int tag = input.readTag(); while (true) { switch (tag) { - case 50: { + case 98: { // mailIdList [packed=true] input.readPackedUInt32(mailIdList, tag); bitField0_ |= 0x00000001; @@ -204,7 +204,7 @@ public TakeMailAttachmentCsReq mergeFrom(final ProtoSource input) throws IOExcep tag = input.readTag(); break; } - case 48: { + case 96: { // mailIdList [packed=false] tag = input.readRepeatedUInt32(mailIdList, tag); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/TakeMailAttachmentScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/TakeMailAttachmentScRspOuterClass.java index 01784d8f1..0b832e6e4 100644 --- a/src/generated/main/emu/lunarcore/proto/TakeMailAttachmentScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/TakeMailAttachmentScRspOuterClass.java @@ -20,7 +20,7 @@ public static final class TakeMailAttachmentScRsp extends ProtoMessageoptional uint32 retcode = 15; + * optional uint32 retcode = 7; */ private int retcode; @@ -30,7 +30,7 @@ public static final class TakeMailAttachmentScRsp extends ProtoMessagerepeated uint32 succ_mail_id_list = 13; + * repeated uint32 succ_mail_id_list = 4; */ private final RepeatedInt succMailIdList = RepeatedInt.newEmptyInstance(); @@ -45,7 +45,7 @@ public static TakeMailAttachmentScRsp newInstance() { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 7; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -53,7 +53,7 @@ public boolean hasRetcode() { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 7; * @return this */ public TakeMailAttachmentScRsp clearRetcode() { @@ -63,7 +63,7 @@ public TakeMailAttachmentScRsp clearRetcode() { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 7; * @return the retcode */ public int getRetcode() { @@ -71,7 +71,7 @@ public int getRetcode() { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 7; * @param value the retcode to set * @return this */ @@ -139,7 +139,7 @@ public TakeMailAttachmentScRsp setAttachment(final ItemListOuterClass.ItemList v } /** - * repeated uint32 succ_mail_id_list = 13; + * repeated uint32 succ_mail_id_list = 4; * @return whether the succMailIdList field is set */ public boolean hasSuccMailIdList() { @@ -147,7 +147,7 @@ public boolean hasSuccMailIdList() { } /** - * repeated uint32 succ_mail_id_list = 13; + * repeated uint32 succ_mail_id_list = 4; * @return this */ public TakeMailAttachmentScRsp clearSuccMailIdList() { @@ -157,7 +157,7 @@ public TakeMailAttachmentScRsp clearSuccMailIdList() { } /** - * repeated uint32 succ_mail_id_list = 13; + * repeated uint32 succ_mail_id_list = 4; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -171,7 +171,7 @@ public RepeatedInt getSuccMailIdList() { } /** - * repeated uint32 succ_mail_id_list = 13; + * repeated uint32 succ_mail_id_list = 4; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -185,7 +185,7 @@ public RepeatedInt getMutableSuccMailIdList() { } /** - * repeated uint32 succ_mail_id_list = 13; + * repeated uint32 succ_mail_id_list = 4; * @param value the succMailIdList to add * @return this */ @@ -196,7 +196,7 @@ public TakeMailAttachmentScRsp addSuccMailIdList(final int value) { } /** - * repeated uint32 succ_mail_id_list = 13; + * repeated uint32 succ_mail_id_list = 4; * @param values the succMailIdList to add * @return this */ @@ -279,7 +279,7 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 56); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { @@ -288,7 +288,7 @@ public void writeTo(final ProtoSink output) throws IOException { } if ((bitField0_ & 0x00000004) != 0) { for (int i = 0; i < succMailIdList.length(); i++) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(succMailIdList.array()[i]); } } @@ -316,7 +316,7 @@ public TakeMailAttachmentScRsp mergeFrom(final ProtoSource input) throws IOExcep int tag = input.readTag(); while (true) { switch (tag) { - case 120: { + case 56: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; @@ -330,11 +330,11 @@ public TakeMailAttachmentScRsp mergeFrom(final ProtoSource input) throws IOExcep input.readMessage(attachment); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 106) { + if (tag != 34) { break; } } - case 106: { + case 34: { // succMailIdList [packed=true] input.readPackedUInt32(succMailIdList, tag); bitField0_ |= 0x00000004; @@ -353,7 +353,7 @@ public TakeMailAttachmentScRsp mergeFrom(final ProtoSource input) throws IOExcep tag = input.readTag(); break; } - case 104: { + case 32: { // succMailIdList [packed=false] tag = input.readRepeatedUInt32(succMailIdList, tag); bitField0_ |= 0x00000004; diff --git a/src/generated/main/emu/lunarcore/proto/TakeOffEquipmentCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/TakeOffEquipmentCsReqOuterClass.java index 3a7aba8f9..3bec90d4c 100644 --- a/src/generated/main/emu/lunarcore/proto/TakeOffEquipmentCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/TakeOffEquipmentCsReqOuterClass.java @@ -19,7 +19,7 @@ public static final class TakeOffEquipmentCsReq extends ProtoMessageoptional uint32 base_avatar_id = 7; + * optional uint32 base_avatar_id = 12; */ private int baseAvatarId; @@ -34,7 +34,7 @@ public static TakeOffEquipmentCsReq newInstance() { } /** - * optional uint32 base_avatar_id = 7; + * optional uint32 base_avatar_id = 12; * @return whether the baseAvatarId field is set */ public boolean hasBaseAvatarId() { @@ -42,7 +42,7 @@ public boolean hasBaseAvatarId() { } /** - * optional uint32 base_avatar_id = 7; + * optional uint32 base_avatar_id = 12; * @return this */ public TakeOffEquipmentCsReq clearBaseAvatarId() { @@ -52,7 +52,7 @@ public TakeOffEquipmentCsReq clearBaseAvatarId() { } /** - * optional uint32 base_avatar_id = 7; + * optional uint32 base_avatar_id = 12; * @return the baseAvatarId */ public int getBaseAvatarId() { @@ -60,7 +60,7 @@ public int getBaseAvatarId() { } /** - * optional uint32 base_avatar_id = 7; + * optional uint32 base_avatar_id = 12; * @param value the baseAvatarId to set * @return this */ @@ -129,7 +129,7 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 96); output.writeUInt32NoTag(baseAvatarId); } } @@ -150,7 +150,7 @@ public TakeOffEquipmentCsReq mergeFrom(final ProtoSource input) throws IOExcepti int tag = input.readTag(); while (true) { switch (tag) { - case 56: { + case 96: { // baseAvatarId baseAvatarId = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/TakeOffRelicCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/TakeOffRelicCsReqOuterClass.java index 42c79d26b..3825e47ca 100644 --- a/src/generated/main/emu/lunarcore/proto/TakeOffRelicCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/TakeOffRelicCsReqOuterClass.java @@ -25,7 +25,7 @@ public static final class TakeOffRelicCsReq extends ProtoMessagerepeated uint32 slot_list = 6; + * repeated uint32 slot_list = 4; */ private final RepeatedInt slotList = RepeatedInt.newEmptyInstance(); @@ -77,7 +77,7 @@ public TakeOffRelicCsReq setBaseAvatarId(final int value) { } /** - * repeated uint32 slot_list = 6; + * repeated uint32 slot_list = 4; * @return whether the slotList field is set */ public boolean hasSlotList() { @@ -85,7 +85,7 @@ public boolean hasSlotList() { } /** - * repeated uint32 slot_list = 6; + * repeated uint32 slot_list = 4; * @return this */ public TakeOffRelicCsReq clearSlotList() { @@ -95,7 +95,7 @@ public TakeOffRelicCsReq clearSlotList() { } /** - * repeated uint32 slot_list = 6; + * repeated uint32 slot_list = 4; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -109,7 +109,7 @@ public RepeatedInt getSlotList() { } /** - * repeated uint32 slot_list = 6; + * repeated uint32 slot_list = 4; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -123,7 +123,7 @@ public RepeatedInt getMutableSlotList() { } /** - * repeated uint32 slot_list = 6; + * repeated uint32 slot_list = 4; * @param value the slotList to add * @return this */ @@ -134,7 +134,7 @@ public TakeOffRelicCsReq addSlotList(final int value) { } /** - * repeated uint32 slot_list = 6; + * repeated uint32 slot_list = 4; * @param values the slotList to add * @return this */ @@ -215,7 +215,7 @@ public void writeTo(final ProtoSink output) throws IOException { } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < slotList.length(); i++) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(slotList.array()[i]); } } @@ -245,11 +245,11 @@ public TakeOffRelicCsReq mergeFrom(final ProtoSource input) throws IOException { baseAvatarId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 50) { + if (tag != 34) { break; } } - case 50: { + case 34: { // slotList [packed=true] input.readPackedUInt32(slotList, tag); bitField0_ |= 0x00000002; @@ -268,7 +268,7 @@ public TakeOffRelicCsReq mergeFrom(final ProtoSource input) throws IOException { tag = input.readTag(); break; } - case 48: { + case 32: { // slotList [packed=false] tag = input.readRepeatedUInt32(slotList, tag); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/TakePromotionRewardCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/TakePromotionRewardCsReqOuterClass.java index fc8326753..5517eef67 100644 --- a/src/generated/main/emu/lunarcore/proto/TakePromotionRewardCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/TakePromotionRewardCsReqOuterClass.java @@ -19,14 +19,14 @@ public static final class TakePromotionRewardCsReq extends ProtoMessageoptional uint32 promotion = 5; + * optional uint32 base_avatar_id = 8; */ - private int promotion; + private int baseAvatarId; /** - * optional uint32 base_avatar_id = 12; + * optional uint32 promotion = 12; */ - private int baseAvatarId; + private int promotion; private TakePromotionRewardCsReq() { } @@ -39,76 +39,76 @@ public static TakePromotionRewardCsReq newInstance() { } /** - * optional uint32 promotion = 5; - * @return whether the promotion field is set + * optional uint32 base_avatar_id = 8; + * @return whether the baseAvatarId field is set */ - public boolean hasPromotion() { + public boolean hasBaseAvatarId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 promotion = 5; + * optional uint32 base_avatar_id = 8; * @return this */ - public TakePromotionRewardCsReq clearPromotion() { + public TakePromotionRewardCsReq clearBaseAvatarId() { bitField0_ &= ~0x00000001; - promotion = 0; + baseAvatarId = 0; return this; } /** - * optional uint32 promotion = 5; - * @return the promotion + * optional uint32 base_avatar_id = 8; + * @return the baseAvatarId */ - public int getPromotion() { - return promotion; + public int getBaseAvatarId() { + return baseAvatarId; } /** - * optional uint32 promotion = 5; - * @param value the promotion to set + * optional uint32 base_avatar_id = 8; + * @param value the baseAvatarId to set * @return this */ - public TakePromotionRewardCsReq setPromotion(final int value) { + public TakePromotionRewardCsReq setBaseAvatarId(final int value) { bitField0_ |= 0x00000001; - promotion = value; + baseAvatarId = value; return this; } /** - * optional uint32 base_avatar_id = 12; - * @return whether the baseAvatarId field is set + * optional uint32 promotion = 12; + * @return whether the promotion field is set */ - public boolean hasBaseAvatarId() { + public boolean hasPromotion() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 base_avatar_id = 12; + * optional uint32 promotion = 12; * @return this */ - public TakePromotionRewardCsReq clearBaseAvatarId() { + public TakePromotionRewardCsReq clearPromotion() { bitField0_ &= ~0x00000002; - baseAvatarId = 0; + promotion = 0; return this; } /** - * optional uint32 base_avatar_id = 12; - * @return the baseAvatarId + * optional uint32 promotion = 12; + * @return the promotion */ - public int getBaseAvatarId() { - return baseAvatarId; + public int getPromotion() { + return promotion; } /** - * optional uint32 base_avatar_id = 12; - * @param value the baseAvatarId to set + * optional uint32 promotion = 12; + * @param value the promotion to set * @return this */ - public TakePromotionRewardCsReq setBaseAvatarId(final int value) { + public TakePromotionRewardCsReq setPromotion(final int value) { bitField0_ |= 0x00000002; - baseAvatarId = value; + promotion = value; return this; } @@ -117,8 +117,8 @@ public TakePromotionRewardCsReq copyFrom(final TakePromotionRewardCsReq other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - promotion = other.promotion; baseAvatarId = other.baseAvatarId; + promotion = other.promotion; } return this; } @@ -129,12 +129,12 @@ public TakePromotionRewardCsReq mergeFrom(final TakePromotionRewardCsReq other) return this; } cachedSize = -1; - if (other.hasPromotion()) { - setPromotion(other.promotion); - } if (other.hasBaseAvatarId()) { setBaseAvatarId(other.baseAvatarId); } + if (other.hasPromotion()) { + setPromotion(other.promotion); + } return this; } @@ -145,8 +145,8 @@ public TakePromotionRewardCsReq clear() { } cachedSize = -1; bitField0_ = 0; - promotion = 0; baseAvatarId = 0; + promotion = 0; return this; } @@ -170,19 +170,19 @@ public boolean equals(Object o) { } TakePromotionRewardCsReq other = (TakePromotionRewardCsReq) o; return bitField0_ == other.bitField0_ - && (!hasPromotion() || promotion == other.promotion) - && (!hasBaseAvatarId() || baseAvatarId == other.baseAvatarId); + && (!hasBaseAvatarId() || baseAvatarId == other.baseAvatarId) + && (!hasPromotion() || promotion == other.promotion); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); - output.writeUInt32NoTag(promotion); + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(baseAvatarId); } if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 96); - output.writeUInt32NoTag(baseAvatarId); + output.writeUInt32NoTag(promotion); } } @@ -190,10 +190,10 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(promotion); + size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(promotion); } return size; } @@ -205,9 +205,9 @@ public TakePromotionRewardCsReq mergeFrom(final ProtoSource input) throws IOExce int tag = input.readTag(); while (true) { switch (tag) { - case 40: { - // promotion - promotion = input.readUInt32(); + case 64: { + // baseAvatarId + baseAvatarId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 96) { @@ -215,8 +215,8 @@ public TakePromotionRewardCsReq mergeFrom(final ProtoSource input) throws IOExce } } case 96: { - // baseAvatarId - baseAvatarId = input.readUInt32(); + // promotion + promotion = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { @@ -241,10 +241,10 @@ public TakePromotionRewardCsReq mergeFrom(final ProtoSource input) throws IOExce public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.promotion, promotion); + output.writeUInt32(FieldNames.baseAvatarId, baseAvatarId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.baseAvatarId, baseAvatarId); + output.writeUInt32(FieldNames.promotion, promotion); } output.endObject(); } @@ -256,10 +256,11 @@ public TakePromotionRewardCsReq mergeFrom(final JsonSource input) throws IOExcep } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -799212381: { - if (input.isAtField(FieldNames.promotion)) { + case 118022725: + case -1756826157: { + if (input.isAtField(FieldNames.baseAvatarId)) { if (!input.trySkipNullValue()) { - promotion = input.readUInt32(); + baseAvatarId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -267,11 +268,10 @@ public TakePromotionRewardCsReq mergeFrom(final JsonSource input) throws IOExcep } break; } - case 118022725: - case -1756826157: { - if (input.isAtField(FieldNames.baseAvatarId)) { + case -799212381: { + if (input.isAtField(FieldNames.promotion)) { if (!input.trySkipNullValue()) { - baseAvatarId = input.readUInt32(); + promotion = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -332,9 +332,9 @@ public TakePromotionRewardCsReq create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName promotion = FieldName.forField("promotion"); - static final FieldName baseAvatarId = FieldName.forField("baseAvatarId", "base_avatar_id"); + + static final FieldName promotion = FieldName.forField("promotion"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/TakePromotionRewardScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/TakePromotionRewardScRspOuterClass.java index 7b4ee17d9..d3b646706 100644 --- a/src/generated/main/emu/lunarcore/proto/TakePromotionRewardScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/TakePromotionRewardScRspOuterClass.java @@ -19,7 +19,7 @@ public static final class TakePromotionRewardScRsp extends ProtoMessageoptional uint32 retcode = 4; + * optional uint32 retcode = 6; */ private int retcode; @@ -39,7 +39,7 @@ public static TakePromotionRewardScRsp newInstance() { } /** - * optional uint32 retcode = 4; + * optional uint32 retcode = 6; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -47,7 +47,7 @@ public boolean hasRetcode() { } /** - * optional uint32 retcode = 4; + * optional uint32 retcode = 6; * @return this */ public TakePromotionRewardScRsp clearRetcode() { @@ -57,7 +57,7 @@ public TakePromotionRewardScRsp clearRetcode() { } /** - * optional uint32 retcode = 4; + * optional uint32 retcode = 6; * @return the retcode */ public int getRetcode() { @@ -65,7 +65,7 @@ public int getRetcode() { } /** - * optional uint32 retcode = 4; + * optional uint32 retcode = 6; * @param value the retcode to set * @return this */ @@ -198,7 +198,7 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 32); + output.writeRawByte((byte) 48); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { @@ -226,7 +226,7 @@ public TakePromotionRewardScRsp mergeFrom(final ProtoSource input) throws IOExce int tag = input.readTag(); while (true) { switch (tag) { - case 32: { + case 48: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/TextJoinInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/TextJoinInfoOuterClass.java new file mode 100644 index 000000000..2901d83e0 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/TextJoinInfoOuterClass.java @@ -0,0 +1,340 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; + +public final class TextJoinInfoOuterClass { + /** + * Protobuf type {@code TextJoinInfo} + */ + public static final class TextJoinInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 text_item_id = 2; + */ + private int textItemId; + + /** + * optional uint32 text_item_config_id = 3; + */ + private int textItemConfigId; + + private TextJoinInfo() { + } + + /** + * @return a new empty instance of {@code TextJoinInfo} + */ + public static TextJoinInfo newInstance() { + return new TextJoinInfo(); + } + + /** + * optional uint32 text_item_id = 2; + * @return whether the textItemId field is set + */ + public boolean hasTextItemId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 text_item_id = 2; + * @return this + */ + public TextJoinInfo clearTextItemId() { + bitField0_ &= ~0x00000001; + textItemId = 0; + return this; + } + + /** + * optional uint32 text_item_id = 2; + * @return the textItemId + */ + public int getTextItemId() { + return textItemId; + } + + /** + * optional uint32 text_item_id = 2; + * @param value the textItemId to set + * @return this + */ + public TextJoinInfo setTextItemId(final int value) { + bitField0_ |= 0x00000001; + textItemId = value; + return this; + } + + /** + * optional uint32 text_item_config_id = 3; + * @return whether the textItemConfigId field is set + */ + public boolean hasTextItemConfigId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 text_item_config_id = 3; + * @return this + */ + public TextJoinInfo clearTextItemConfigId() { + bitField0_ &= ~0x00000002; + textItemConfigId = 0; + return this; + } + + /** + * optional uint32 text_item_config_id = 3; + * @return the textItemConfigId + */ + public int getTextItemConfigId() { + return textItemConfigId; + } + + /** + * optional uint32 text_item_config_id = 3; + * @param value the textItemConfigId to set + * @return this + */ + public TextJoinInfo setTextItemConfigId(final int value) { + bitField0_ |= 0x00000002; + textItemConfigId = value; + return this; + } + + @Override + public TextJoinInfo copyFrom(final TextJoinInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + textItemId = other.textItemId; + textItemConfigId = other.textItemConfigId; + } + return this; + } + + @Override + public TextJoinInfo mergeFrom(final TextJoinInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasTextItemId()) { + setTextItemId(other.textItemId); + } + if (other.hasTextItemConfigId()) { + setTextItemConfigId(other.textItemConfigId); + } + return this; + } + + @Override + public TextJoinInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + textItemId = 0; + textItemConfigId = 0; + return this; + } + + @Override + public TextJoinInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof TextJoinInfo)) { + return false; + } + TextJoinInfo other = (TextJoinInfo) o; + return bitField0_ == other.bitField0_ + && (!hasTextItemId() || textItemId == other.textItemId) + && (!hasTextItemConfigId() || textItemConfigId == other.textItemConfigId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(textItemId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(textItemConfigId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(textItemId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(textItemConfigId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public TextJoinInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // textItemId + textItemId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // textItemConfigId + textItemConfigId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.textItemId, textItemId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.textItemConfigId, textItemConfigId); + } + output.endObject(); + } + + @Override + public TextJoinInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1565189915: + case -153409355: { + if (input.isAtField(FieldNames.textItemId)) { + if (!input.trySkipNullValue()) { + textItemId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1448403459: + case -1174236578: { + if (input.isAtField(FieldNames.textItemConfigId)) { + if (!input.trySkipNullValue()) { + textItemConfigId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public TextJoinInfo clone() { + return new TextJoinInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static TextJoinInfo parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new TextJoinInfo(), data).checkInitialized(); + } + + public static TextJoinInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new TextJoinInfo(), input).checkInitialized(); + } + + public static TextJoinInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new TextJoinInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating TextJoinInfo messages + */ + public static MessageFactory getFactory() { + return TextJoinInfoFactory.INSTANCE; + } + + private enum TextJoinInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public TextJoinInfo create() { + return TextJoinInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName textItemId = FieldName.forField("textItemId", "text_item_id"); + + static final FieldName textItemConfigId = FieldName.forField("textItemConfigId", "text_item_config_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/TextJoinQueryCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/TextJoinQueryCsReqOuterClass.java index b3ce61541..c72af2da1 100644 --- a/src/generated/main/emu/lunarcore/proto/TextJoinQueryCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/TextJoinQueryCsReqOuterClass.java @@ -20,7 +20,7 @@ public static final class TextJoinQueryCsReq extends ProtoMessagerepeated uint32 text_join_id_list = 7; + * repeated uint32 text_join_id_list = 6; */ private final RepeatedInt textJoinIdList = RepeatedInt.newEmptyInstance(); @@ -35,7 +35,7 @@ public static TextJoinQueryCsReq newInstance() { } /** - * repeated uint32 text_join_id_list = 7; + * repeated uint32 text_join_id_list = 6; * @return whether the textJoinIdList field is set */ public boolean hasTextJoinIdList() { @@ -43,7 +43,7 @@ public boolean hasTextJoinIdList() { } /** - * repeated uint32 text_join_id_list = 7; + * repeated uint32 text_join_id_list = 6; * @return this */ public TextJoinQueryCsReq clearTextJoinIdList() { @@ -53,7 +53,7 @@ public TextJoinQueryCsReq clearTextJoinIdList() { } /** - * repeated uint32 text_join_id_list = 7; + * repeated uint32 text_join_id_list = 6; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -67,7 +67,7 @@ public RepeatedInt getTextJoinIdList() { } /** - * repeated uint32 text_join_id_list = 7; + * repeated uint32 text_join_id_list = 6; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -81,7 +81,7 @@ public RepeatedInt getMutableTextJoinIdList() { } /** - * repeated uint32 text_join_id_list = 7; + * repeated uint32 text_join_id_list = 6; * @param value the textJoinIdList to add * @return this */ @@ -92,7 +92,7 @@ public TextJoinQueryCsReq addTextJoinIdList(final int value) { } /** - * repeated uint32 text_join_id_list = 7; + * repeated uint32 text_join_id_list = 6; * @param values the textJoinIdList to add * @return this */ @@ -163,7 +163,7 @@ public boolean equals(Object o) { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { for (int i = 0; i < textJoinIdList.length(); i++) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 48); output.writeUInt32NoTag(textJoinIdList.array()[i]); } } @@ -185,7 +185,7 @@ public TextJoinQueryCsReq mergeFrom(final ProtoSource input) throws IOException int tag = input.readTag(); while (true) { switch (tag) { - case 58: { + case 50: { // textJoinIdList [packed=true] input.readPackedUInt32(textJoinIdList, tag); bitField0_ |= 0x00000001; @@ -204,7 +204,7 @@ public TextJoinQueryCsReq mergeFrom(final ProtoSource input) throws IOException tag = input.readTag(); break; } - case 56: { + case 48: { // textJoinIdList [packed=false] tag = input.readRepeatedUInt32(textJoinIdList, tag); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/TextJoinQueryScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/TextJoinQueryScRspOuterClass.java index 9dd489eb9..99b474b0b 100644 --- a/src/generated/main/emu/lunarcore/proto/TextJoinQueryScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/TextJoinQueryScRspOuterClass.java @@ -20,14 +20,14 @@ public static final class TextJoinQueryScRsp extends ProtoMessageoptional uint32 retcode = 13; + * optional uint32 retcode = 12; */ private int retcode; /** - * repeated .TextJoinQueryScRsp.TextJoinInfo text_join_list = 4; + * repeated .TextJoinInfo text_join_list = 1; */ - private final RepeatedMessage textJoinList = RepeatedMessage.newEmptyInstance(TextJoinInfo.getFactory()); + private final RepeatedMessage textJoinList = RepeatedMessage.newEmptyInstance(TextJoinInfoOuterClass.TextJoinInfo.getFactory()); private TextJoinQueryScRsp() { } @@ -40,7 +40,7 @@ public static TextJoinQueryScRsp newInstance() { } /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 12; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -48,7 +48,7 @@ public boolean hasRetcode() { } /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 12; * @return this */ public TextJoinQueryScRsp clearRetcode() { @@ -58,7 +58,7 @@ public TextJoinQueryScRsp clearRetcode() { } /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 12; * @return the retcode */ public int getRetcode() { @@ -66,7 +66,7 @@ public int getRetcode() { } /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 12; * @param value the retcode to set * @return this */ @@ -77,7 +77,7 @@ public TextJoinQueryScRsp setRetcode(final int value) { } /** - * repeated .TextJoinQueryScRsp.TextJoinInfo text_join_list = 4; + * repeated .TextJoinInfo text_join_list = 1; * @return whether the textJoinList field is set */ public boolean hasTextJoinList() { @@ -85,7 +85,7 @@ public boolean hasTextJoinList() { } /** - * repeated .TextJoinQueryScRsp.TextJoinInfo text_join_list = 4; + * repeated .TextJoinInfo text_join_list = 1; * @return this */ public TextJoinQueryScRsp clearTextJoinList() { @@ -95,7 +95,7 @@ public TextJoinQueryScRsp clearTextJoinList() { } /** - * repeated .TextJoinQueryScRsp.TextJoinInfo text_join_list = 4; + * repeated .TextJoinInfo text_join_list = 1; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -104,12 +104,12 @@ public TextJoinQueryScRsp clearTextJoinList() { * * @return internal storage object for reading */ - public RepeatedMessage getTextJoinList() { + public RepeatedMessage getTextJoinList() { return textJoinList; } /** - * repeated .TextJoinQueryScRsp.TextJoinInfo text_join_list = 4; + * repeated .TextJoinInfo text_join_list = 1; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -117,28 +117,29 @@ public RepeatedMessage getTextJoinList() { * * @return internal storage object for modifications */ - public RepeatedMessage getMutableTextJoinList() { + public RepeatedMessage getMutableTextJoinList() { bitField0_ |= 0x00000002; return textJoinList; } /** - * repeated .TextJoinQueryScRsp.TextJoinInfo text_join_list = 4; + * repeated .TextJoinInfo text_join_list = 1; * @param value the textJoinList to add * @return this */ - public TextJoinQueryScRsp addTextJoinList(final TextJoinInfo value) { + public TextJoinQueryScRsp addTextJoinList(final TextJoinInfoOuterClass.TextJoinInfo value) { bitField0_ |= 0x00000002; textJoinList.add(value); return this; } /** - * repeated .TextJoinQueryScRsp.TextJoinInfo text_join_list = 4; + * repeated .TextJoinInfo text_join_list = 1; * @param values the textJoinList to add * @return this */ - public TextJoinQueryScRsp addAllTextJoinList(final TextJoinInfo... values) { + public TextJoinQueryScRsp addAllTextJoinList( + final TextJoinInfoOuterClass.TextJoinInfo... values) { bitField0_ |= 0x00000002; textJoinList.addAll(values); return this; @@ -210,12 +211,12 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 96); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < textJoinList.length(); i++) { - output.writeRawByte((byte) 34); + output.writeRawByte((byte) 10); output.writeMessageNoTag(textJoinList.get(i)); } } @@ -240,16 +241,16 @@ public TextJoinQueryScRsp mergeFrom(final ProtoSource input) throws IOException int tag = input.readTag(); while (true) { switch (tag) { - case 104: { + case 96: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 34) { + if (tag != 10) { break; } } - case 34: { + case 10: { // textJoinList tag = input.readRepeatedMessage(textJoinList, tag); bitField0_ |= 0x00000002; @@ -353,333 +354,6 @@ public static MessageFactory getFactory() { return TextJoinQueryScRspFactory.INSTANCE; } - /** - * Protobuf type {@code TextJoinInfo} - */ - public static final class TextJoinInfo extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 text_item_id = 2; - */ - private int textItemId; - - /** - * optional uint32 text_item_config_id = 3; - */ - private int textItemConfigId; - - private TextJoinInfo() { - } - - /** - * @return a new empty instance of {@code TextJoinInfo} - */ - public static TextJoinInfo newInstance() { - return new TextJoinInfo(); - } - - /** - * optional uint32 text_item_id = 2; - * @return whether the textItemId field is set - */ - public boolean hasTextItemId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 text_item_id = 2; - * @return this - */ - public TextJoinInfo clearTextItemId() { - bitField0_ &= ~0x00000001; - textItemId = 0; - return this; - } - - /** - * optional uint32 text_item_id = 2; - * @return the textItemId - */ - public int getTextItemId() { - return textItemId; - } - - /** - * optional uint32 text_item_id = 2; - * @param value the textItemId to set - * @return this - */ - public TextJoinInfo setTextItemId(final int value) { - bitField0_ |= 0x00000001; - textItemId = value; - return this; - } - - /** - * optional uint32 text_item_config_id = 3; - * @return whether the textItemConfigId field is set - */ - public boolean hasTextItemConfigId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 text_item_config_id = 3; - * @return this - */ - public TextJoinInfo clearTextItemConfigId() { - bitField0_ &= ~0x00000002; - textItemConfigId = 0; - return this; - } - - /** - * optional uint32 text_item_config_id = 3; - * @return the textItemConfigId - */ - public int getTextItemConfigId() { - return textItemConfigId; - } - - /** - * optional uint32 text_item_config_id = 3; - * @param value the textItemConfigId to set - * @return this - */ - public TextJoinInfo setTextItemConfigId(final int value) { - bitField0_ |= 0x00000002; - textItemConfigId = value; - return this; - } - - @Override - public TextJoinInfo copyFrom(final TextJoinInfo other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - textItemId = other.textItemId; - textItemConfigId = other.textItemConfigId; - } - return this; - } - - @Override - public TextJoinInfo mergeFrom(final TextJoinInfo other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasTextItemId()) { - setTextItemId(other.textItemId); - } - if (other.hasTextItemConfigId()) { - setTextItemConfigId(other.textItemConfigId); - } - return this; - } - - @Override - public TextJoinInfo clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - textItemId = 0; - textItemConfigId = 0; - return this; - } - - @Override - public TextJoinInfo clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof TextJoinInfo)) { - return false; - } - TextJoinInfo other = (TextJoinInfo) o; - return bitField0_ == other.bitField0_ - && (!hasTextItemId() || textItemId == other.textItemId) - && (!hasTextItemConfigId() || textItemConfigId == other.textItemConfigId); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(textItemId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(textItemConfigId); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(textItemId); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(textItemConfigId); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public TextJoinInfo mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 16: { - // textItemId - textItemId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 24) { - break; - } - } - case 24: { - // textItemConfigId - textItemConfigId = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.textItemId, textItemId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.textItemConfigId, textItemConfigId); - } - output.endObject(); - } - - @Override - public TextJoinInfo mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 1565189915: - case -153409355: { - if (input.isAtField(FieldNames.textItemId)) { - if (!input.trySkipNullValue()) { - textItemId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1448403459: - case -1174236578: { - if (input.isAtField(FieldNames.textItemConfigId)) { - if (!input.trySkipNullValue()) { - textItemConfigId = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public TextJoinInfo clone() { - return new TextJoinInfo().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static TextJoinInfo parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new TextJoinInfo(), data).checkInitialized(); - } - - public static TextJoinInfo parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new TextJoinInfo(), input).checkInitialized(); - } - - public static TextJoinInfo parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new TextJoinInfo(), input).checkInitialized(); - } - - /** - * @return factory for creating TextJoinInfo messages - */ - public static MessageFactory getFactory() { - return TextJoinInfoFactory.INSTANCE; - } - - private enum TextJoinInfoFactory implements MessageFactory { - INSTANCE; - - @Override - public TextJoinInfo create() { - return TextJoinInfo.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName textItemId = FieldName.forField("textItemId", "text_item_id"); - - static final FieldName textItemConfigId = FieldName.forField("textItemConfigId", "text_item_config_id"); - } - } - private enum TextJoinQueryScRspFactory implements MessageFactory { INSTANCE; diff --git a/src/generated/main/emu/lunarcore/proto/UnlockBackGroundMusicScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/UnlockBackGroundMusicScRspOuterClass.java index 7e5a9025e..15891c1dd 100644 --- a/src/generated/main/emu/lunarcore/proto/UnlockBackGroundMusicScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/UnlockBackGroundMusicScRspOuterClass.java @@ -31,9 +31,9 @@ public static final class UnlockBackGroundMusicScRsp extends ProtoMessagerepeated .UnlockBackGroundMusicScRsp.UnlockedMusic music_list = 6; + * repeated .UnlockedMusic music_list = 6; */ - private final RepeatedMessage musicList = RepeatedMessage.newEmptyInstance(UnlockedMusic.getFactory()); + private final RepeatedMessage musicList = RepeatedMessage.newEmptyInstance(UnlockedMusicOuterClass.UnlockedMusic.getFactory()); private UnlockBackGroundMusicScRsp() { } @@ -151,7 +151,7 @@ public UnlockBackGroundMusicScRsp addAllUnlockedIds(final int... values) { } /** - * repeated .UnlockBackGroundMusicScRsp.UnlockedMusic music_list = 6; + * repeated .UnlockedMusic music_list = 6; * @return whether the musicList field is set */ public boolean hasMusicList() { @@ -159,7 +159,7 @@ public boolean hasMusicList() { } /** - * repeated .UnlockBackGroundMusicScRsp.UnlockedMusic music_list = 6; + * repeated .UnlockedMusic music_list = 6; * @return this */ public UnlockBackGroundMusicScRsp clearMusicList() { @@ -169,7 +169,7 @@ public UnlockBackGroundMusicScRsp clearMusicList() { } /** - * repeated .UnlockBackGroundMusicScRsp.UnlockedMusic music_list = 6; + * repeated .UnlockedMusic music_list = 6; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -178,12 +178,12 @@ public UnlockBackGroundMusicScRsp clearMusicList() { * * @return internal storage object for reading */ - public RepeatedMessage getMusicList() { + public RepeatedMessage getMusicList() { return musicList; } /** - * repeated .UnlockBackGroundMusicScRsp.UnlockedMusic music_list = 6; + * repeated .UnlockedMusic music_list = 6; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -191,28 +191,30 @@ public RepeatedMessage getMusicList() { * * @return internal storage object for modifications */ - public RepeatedMessage getMutableMusicList() { + public RepeatedMessage getMutableMusicList() { bitField0_ |= 0x00000004; return musicList; } /** - * repeated .UnlockBackGroundMusicScRsp.UnlockedMusic music_list = 6; + * repeated .UnlockedMusic music_list = 6; * @param value the musicList to add * @return this */ - public UnlockBackGroundMusicScRsp addMusicList(final UnlockedMusic value) { + public UnlockBackGroundMusicScRsp addMusicList( + final UnlockedMusicOuterClass.UnlockedMusic value) { bitField0_ |= 0x00000004; musicList.add(value); return this; } /** - * repeated .UnlockBackGroundMusicScRsp.UnlockedMusic music_list = 6; + * repeated .UnlockedMusic music_list = 6; * @param values the musicList to add * @return this */ - public UnlockBackGroundMusicScRsp addAllMusicList(final UnlockedMusic... values) { + public UnlockBackGroundMusicScRsp addAllMusicList( + final UnlockedMusicOuterClass.UnlockedMusic... values) { bitField0_ |= 0x00000004; musicList.addAll(values); return this; @@ -473,412 +475,6 @@ public static MessageFactory getFactory() { return UnlockBackGroundMusicScRspFactory.INSTANCE; } - /** - * Protobuf type {@code UnlockedMusic} - */ - public static final class UnlockedMusic extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 group_id = 1; - */ - private int groupId; - - /** - * optional uint32 id = 8; - */ - private int id; - - /** - * optional bool unkbool = 7; - */ - private boolean unkbool; - - private UnlockedMusic() { - } - - /** - * @return a new empty instance of {@code UnlockedMusic} - */ - public static UnlockedMusic newInstance() { - return new UnlockedMusic(); - } - - /** - * optional uint32 group_id = 1; - * @return whether the groupId field is set - */ - public boolean hasGroupId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 group_id = 1; - * @return this - */ - public UnlockedMusic clearGroupId() { - bitField0_ &= ~0x00000001; - groupId = 0; - return this; - } - - /** - * optional uint32 group_id = 1; - * @return the groupId - */ - public int getGroupId() { - return groupId; - } - - /** - * optional uint32 group_id = 1; - * @param value the groupId to set - * @return this - */ - public UnlockedMusic setGroupId(final int value) { - bitField0_ |= 0x00000001; - groupId = value; - return this; - } - - /** - * optional uint32 id = 8; - * @return whether the id field is set - */ - public boolean hasId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 id = 8; - * @return this - */ - public UnlockedMusic clearId() { - bitField0_ &= ~0x00000002; - id = 0; - return this; - } - - /** - * optional uint32 id = 8; - * @return the id - */ - public int getId() { - return id; - } - - /** - * optional uint32 id = 8; - * @param value the id to set - * @return this - */ - public UnlockedMusic setId(final int value) { - bitField0_ |= 0x00000002; - id = value; - return this; - } - - /** - * optional bool unkbool = 7; - * @return whether the unkbool field is set - */ - public boolean hasUnkbool() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional bool unkbool = 7; - * @return this - */ - public UnlockedMusic clearUnkbool() { - bitField0_ &= ~0x00000004; - unkbool = false; - return this; - } - - /** - * optional bool unkbool = 7; - * @return the unkbool - */ - public boolean getUnkbool() { - return unkbool; - } - - /** - * optional bool unkbool = 7; - * @param value the unkbool to set - * @return this - */ - public UnlockedMusic setUnkbool(final boolean value) { - bitField0_ |= 0x00000004; - unkbool = value; - return this; - } - - @Override - public UnlockedMusic copyFrom(final UnlockedMusic other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - groupId = other.groupId; - id = other.id; - unkbool = other.unkbool; - } - return this; - } - - @Override - public UnlockedMusic mergeFrom(final UnlockedMusic other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasGroupId()) { - setGroupId(other.groupId); - } - if (other.hasId()) { - setId(other.id); - } - if (other.hasUnkbool()) { - setUnkbool(other.unkbool); - } - return this; - } - - @Override - public UnlockedMusic clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - groupId = 0; - id = 0; - unkbool = false; - return this; - } - - @Override - public UnlockedMusic clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof UnlockedMusic)) { - return false; - } - UnlockedMusic other = (UnlockedMusic) o; - return bitField0_ == other.bitField0_ - && (!hasGroupId() || groupId == other.groupId) - && (!hasId() || id == other.id) - && (!hasUnkbool() || unkbool == other.unkbool); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(groupId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 64); - output.writeUInt32NoTag(id); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 56); - output.writeBoolNoTag(unkbool); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(id); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 2; - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public UnlockedMusic mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 8: { - // groupId - groupId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 64) { - break; - } - } - case 64: { - // id - id = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 56) { - break; - } - } - case 56: { - // unkbool - unkbool = input.readBool(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.groupId, groupId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.id, id); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeBool(FieldNames.unkbool, unkbool); - } - output.endObject(); - } - - @Override - public UnlockedMusic mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 293428218: - case 506361563: { - if (input.isAtField(FieldNames.groupId)) { - if (!input.trySkipNullValue()) { - groupId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case 3355: { - if (input.isAtField(FieldNames.id)) { - if (!input.trySkipNullValue()) { - id = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case -285198628: { - if (input.isAtField(FieldNames.unkbool)) { - if (!input.trySkipNullValue()) { - unkbool = input.readBool(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public UnlockedMusic clone() { - return new UnlockedMusic().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static UnlockedMusic parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new UnlockedMusic(), data).checkInitialized(); - } - - public static UnlockedMusic parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new UnlockedMusic(), input).checkInitialized(); - } - - public static UnlockedMusic parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new UnlockedMusic(), input).checkInitialized(); - } - - /** - * @return factory for creating UnlockedMusic messages - */ - public static MessageFactory getFactory() { - return UnlockedMusicFactory.INSTANCE; - } - - private enum UnlockedMusicFactory implements MessageFactory { - INSTANCE; - - @Override - public UnlockedMusic create() { - return UnlockedMusic.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName groupId = FieldName.forField("groupId", "group_id"); - - static final FieldName id = FieldName.forField("id"); - - static final FieldName unkbool = FieldName.forField("unkbool"); - } - } - private enum UnlockBackGroundMusicScRspFactory implements MessageFactory { INSTANCE; diff --git a/src/generated/main/emu/lunarcore/proto/UnlockChatBubbleScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/UnlockChatBubbleScNotifyOuterClass.java index c6cab6a83..2d6334b03 100644 --- a/src/generated/main/emu/lunarcore/proto/UnlockChatBubbleScNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/UnlockChatBubbleScNotifyOuterClass.java @@ -19,7 +19,7 @@ public static final class UnlockChatBubbleScNotify extends ProtoMessageoptional uint32 bubble_id = 7; + * optional uint32 bubble_id = 9; */ private int bubbleId; @@ -34,7 +34,7 @@ public static UnlockChatBubbleScNotify newInstance() { } /** - * optional uint32 bubble_id = 7; + * optional uint32 bubble_id = 9; * @return whether the bubbleId field is set */ public boolean hasBubbleId() { @@ -42,7 +42,7 @@ public boolean hasBubbleId() { } /** - * optional uint32 bubble_id = 7; + * optional uint32 bubble_id = 9; * @return this */ public UnlockChatBubbleScNotify clearBubbleId() { @@ -52,7 +52,7 @@ public UnlockChatBubbleScNotify clearBubbleId() { } /** - * optional uint32 bubble_id = 7; + * optional uint32 bubble_id = 9; * @return the bubbleId */ public int getBubbleId() { @@ -60,7 +60,7 @@ public int getBubbleId() { } /** - * optional uint32 bubble_id = 7; + * optional uint32 bubble_id = 9; * @param value the bubbleId to set * @return this */ @@ -129,7 +129,7 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 72); output.writeUInt32NoTag(bubbleId); } } @@ -150,7 +150,7 @@ public UnlockChatBubbleScNotify mergeFrom(final ProtoSource input) throws IOExce int tag = input.readTag(); while (true) { switch (tag) { - case 56: { + case 72: { // bubbleId bubbleId = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/UnlockPhoneThemeScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/UnlockPhoneThemeScNotifyOuterClass.java index f1cf79e0b..beeef998b 100644 --- a/src/generated/main/emu/lunarcore/proto/UnlockPhoneThemeScNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/UnlockPhoneThemeScNotifyOuterClass.java @@ -19,7 +19,7 @@ public static final class UnlockPhoneThemeScNotify extends ProtoMessageoptional uint32 theme_id = 1; + * optional uint32 theme_id = 15; */ private int themeId; @@ -34,7 +34,7 @@ public static UnlockPhoneThemeScNotify newInstance() { } /** - * optional uint32 theme_id = 1; + * optional uint32 theme_id = 15; * @return whether the themeId field is set */ public boolean hasThemeId() { @@ -42,7 +42,7 @@ public boolean hasThemeId() { } /** - * optional uint32 theme_id = 1; + * optional uint32 theme_id = 15; * @return this */ public UnlockPhoneThemeScNotify clearThemeId() { @@ -52,7 +52,7 @@ public UnlockPhoneThemeScNotify clearThemeId() { } /** - * optional uint32 theme_id = 1; + * optional uint32 theme_id = 15; * @return the themeId */ public int getThemeId() { @@ -60,7 +60,7 @@ public int getThemeId() { } /** - * optional uint32 theme_id = 1; + * optional uint32 theme_id = 15; * @param value the themeId to set * @return this */ @@ -129,7 +129,7 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); + output.writeRawByte((byte) 120); output.writeUInt32NoTag(themeId); } } @@ -150,7 +150,7 @@ public UnlockPhoneThemeScNotify mergeFrom(final ProtoSource input) throws IOExce int tag = input.readTag(); while (true) { switch (tag) { - case 8: { + case 120: { // themeId themeId = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/UnlockSkilltreeCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/UnlockSkilltreeCsReqOuterClass.java index ecc73920f..6327dfc83 100644 --- a/src/generated/main/emu/lunarcore/proto/UnlockSkilltreeCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/UnlockSkilltreeCsReqOuterClass.java @@ -30,7 +30,7 @@ public static final class UnlockSkilltreeCsReq extends ProtoMessagerepeated .ItemCost item_list = 11; + * repeated .ItemCost item_list = 5; */ private final RepeatedMessage itemList = RepeatedMessage.newEmptyInstance(ItemCostOuterClass.ItemCost.getFactory()); @@ -119,7 +119,7 @@ public UnlockSkilltreeCsReq setPointId(final int value) { } /** - * repeated .ItemCost item_list = 11; + * repeated .ItemCost item_list = 5; * @return whether the itemList field is set */ public boolean hasItemList() { @@ -127,7 +127,7 @@ public boolean hasItemList() { } /** - * repeated .ItemCost item_list = 11; + * repeated .ItemCost item_list = 5; * @return this */ public UnlockSkilltreeCsReq clearItemList() { @@ -137,7 +137,7 @@ public UnlockSkilltreeCsReq clearItemList() { } /** - * repeated .ItemCost item_list = 11; + * repeated .ItemCost item_list = 5; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -151,7 +151,7 @@ public RepeatedMessage getItemList() { } /** - * repeated .ItemCost item_list = 11; + * repeated .ItemCost item_list = 5; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -165,7 +165,7 @@ public RepeatedMessage getMutableItemList() { } /** - * repeated .ItemCost item_list = 11; + * repeated .ItemCost item_list = 5; * @param value the itemList to add * @return this */ @@ -176,7 +176,7 @@ public UnlockSkilltreeCsReq addItemList(final ItemCostOuterClass.ItemCost value) } /** - * repeated .ItemCost item_list = 11; + * repeated .ItemCost item_list = 5; * @param values the itemList to add * @return this */ @@ -267,7 +267,7 @@ public void writeTo(final ProtoSink output) throws IOException { } if ((bitField0_ & 0x00000004) != 0) { for (int i = 0; i < itemList.length(); i++) { - output.writeRawByte((byte) 90); + output.writeRawByte((byte) 42); output.writeMessageNoTag(itemList.get(i)); } } @@ -309,11 +309,11 @@ public UnlockSkilltreeCsReq mergeFrom(final ProtoSource input) throws IOExceptio pointId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 90) { + if (tag != 42) { break; } } - case 90: { + case 42: { // itemList tag = input.readRepeatedMessage(itemList, tag); bitField0_ |= 0x00000004; diff --git a/src/generated/main/emu/lunarcore/proto/UnlockSkilltreeScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/UnlockSkilltreeScRspOuterClass.java index 1e27687d2..ce5e8b8c6 100644 --- a/src/generated/main/emu/lunarcore/proto/UnlockSkilltreeScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/UnlockSkilltreeScRspOuterClass.java @@ -19,17 +19,17 @@ public static final class UnlockSkilltreeScRsp extends ProtoMessageoptional uint32 point_id = 3; + * optional uint32 retcode = 4; */ - private int pointId; + private int retcode; /** - * optional uint32 retcode = 7; + * optional uint32 point_id = 5; */ - private int retcode; + private int pointId; /** - * optional uint32 level = 8; + * optional uint32 level = 14; */ private int level; @@ -49,81 +49,81 @@ public static UnlockSkilltreeScRsp newInstance() { } /** - * optional uint32 point_id = 3; - * @return whether the pointId field is set + * optional uint32 retcode = 4; + * @return whether the retcode field is set */ - public boolean hasPointId() { + public boolean hasRetcode() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 point_id = 3; + * optional uint32 retcode = 4; * @return this */ - public UnlockSkilltreeScRsp clearPointId() { + public UnlockSkilltreeScRsp clearRetcode() { bitField0_ &= ~0x00000001; - pointId = 0; + retcode = 0; return this; } /** - * optional uint32 point_id = 3; - * @return the pointId + * optional uint32 retcode = 4; + * @return the retcode */ - public int getPointId() { - return pointId; + public int getRetcode() { + return retcode; } /** - * optional uint32 point_id = 3; - * @param value the pointId to set + * optional uint32 retcode = 4; + * @param value the retcode to set * @return this */ - public UnlockSkilltreeScRsp setPointId(final int value) { + public UnlockSkilltreeScRsp setRetcode(final int value) { bitField0_ |= 0x00000001; - pointId = value; + retcode = value; return this; } /** - * optional uint32 retcode = 7; - * @return whether the retcode field is set + * optional uint32 point_id = 5; + * @return whether the pointId field is set */ - public boolean hasRetcode() { + public boolean hasPointId() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 retcode = 7; + * optional uint32 point_id = 5; * @return this */ - public UnlockSkilltreeScRsp clearRetcode() { + public UnlockSkilltreeScRsp clearPointId() { bitField0_ &= ~0x00000002; - retcode = 0; + pointId = 0; return this; } /** - * optional uint32 retcode = 7; - * @return the retcode + * optional uint32 point_id = 5; + * @return the pointId */ - public int getRetcode() { - return retcode; + public int getPointId() { + return pointId; } /** - * optional uint32 retcode = 7; - * @param value the retcode to set + * optional uint32 point_id = 5; + * @param value the pointId to set * @return this */ - public UnlockSkilltreeScRsp setRetcode(final int value) { + public UnlockSkilltreeScRsp setPointId(final int value) { bitField0_ |= 0x00000002; - retcode = value; + pointId = value; return this; } /** - * optional uint32 level = 8; + * optional uint32 level = 14; * @return whether the level field is set */ public boolean hasLevel() { @@ -131,7 +131,7 @@ public boolean hasLevel() { } /** - * optional uint32 level = 8; + * optional uint32 level = 14; * @return this */ public UnlockSkilltreeScRsp clearLevel() { @@ -141,7 +141,7 @@ public UnlockSkilltreeScRsp clearLevel() { } /** - * optional uint32 level = 8; + * optional uint32 level = 14; * @return the level */ public int getLevel() { @@ -149,7 +149,7 @@ public int getLevel() { } /** - * optional uint32 level = 8; + * optional uint32 level = 14; * @param value the level to set * @return this */ @@ -201,8 +201,8 @@ public UnlockSkilltreeScRsp copyFrom(final UnlockSkilltreeScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - pointId = other.pointId; retcode = other.retcode; + pointId = other.pointId; level = other.level; baseAvatarId = other.baseAvatarId; } @@ -215,12 +215,12 @@ public UnlockSkilltreeScRsp mergeFrom(final UnlockSkilltreeScRsp other) { return this; } cachedSize = -1; - if (other.hasPointId()) { - setPointId(other.pointId); - } if (other.hasRetcode()) { setRetcode(other.retcode); } + if (other.hasPointId()) { + setPointId(other.pointId); + } if (other.hasLevel()) { setLevel(other.level); } @@ -237,8 +237,8 @@ public UnlockSkilltreeScRsp clear() { } cachedSize = -1; bitField0_ = 0; - pointId = 0; retcode = 0; + pointId = 0; level = 0; baseAvatarId = 0; return this; @@ -264,8 +264,8 @@ public boolean equals(Object o) { } UnlockSkilltreeScRsp other = (UnlockSkilltreeScRsp) o; return bitField0_ == other.bitField0_ - && (!hasPointId() || pointId == other.pointId) && (!hasRetcode() || retcode == other.retcode) + && (!hasPointId() || pointId == other.pointId) && (!hasLevel() || level == other.level) && (!hasBaseAvatarId() || baseAvatarId == other.baseAvatarId); } @@ -273,15 +273,15 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(pointId); + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 56); - output.writeUInt32NoTag(retcode); + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(pointId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 112); output.writeUInt32NoTag(level); } if ((bitField0_ & 0x00000008) != 0) { @@ -294,10 +294,10 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(pointId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(pointId); } if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(level); @@ -315,25 +315,25 @@ public UnlockSkilltreeScRsp mergeFrom(final ProtoSource input) throws IOExceptio int tag = input.readTag(); while (true) { switch (tag) { - case 24: { - // pointId - pointId = input.readUInt32(); + case 32: { + // retcode + retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 56) { + if (tag != 40) { break; } } - case 56: { - // retcode - retcode = input.readUInt32(); + case 40: { + // pointId + pointId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 64) { + if (tag != 112) { break; } } - case 64: { + case 112: { // level level = input.readUInt32(); bitField0_ |= 0x00000004; @@ -369,10 +369,10 @@ public UnlockSkilltreeScRsp mergeFrom(final ProtoSource input) throws IOExceptio public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.pointId, pointId); + output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.pointId, pointId); } if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.level, level); @@ -390,11 +390,10 @@ public UnlockSkilltreeScRsp mergeFrom(final JsonSource input) throws IOException } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -400606517: - case 466121258: { - if (input.isAtField(FieldNames.pointId)) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { - pointId = input.readUInt32(); + retcode = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -402,10 +401,11 @@ public UnlockSkilltreeScRsp mergeFrom(final JsonSource input) throws IOException } break; } - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { + case -400606517: + case 466121258: { + if (input.isAtField(FieldNames.pointId)) { if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); + pointId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -489,10 +489,10 @@ public UnlockSkilltreeScRsp create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName pointId = FieldName.forField("pointId", "point_id"); - static final FieldName retcode = FieldName.forField("retcode"); + static final FieldName pointId = FieldName.forField("pointId", "point_id"); + static final FieldName level = FieldName.forField("level"); static final FieldName baseAvatarId = FieldName.forField("baseAvatarId", "base_avatar_id"); diff --git a/src/generated/main/emu/lunarcore/proto/UnlockedMusicOuterClass.java b/src/generated/main/emu/lunarcore/proto/UnlockedMusicOuterClass.java new file mode 100644 index 000000000..0b70bba38 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/UnlockedMusicOuterClass.java @@ -0,0 +1,419 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; + +public final class UnlockedMusicOuterClass { + /** + * Protobuf type {@code UnlockedMusic} + */ + public static final class UnlockedMusic extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 group_id = 9; + */ + private int groupId; + + /** + * optional uint32 id = 13; + */ + private int id; + + /** + * optional bool unkbool = 3; + */ + private boolean unkbool; + + private UnlockedMusic() { + } + + /** + * @return a new empty instance of {@code UnlockedMusic} + */ + public static UnlockedMusic newInstance() { + return new UnlockedMusic(); + } + + /** + * optional uint32 group_id = 9; + * @return whether the groupId field is set + */ + public boolean hasGroupId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 group_id = 9; + * @return this + */ + public UnlockedMusic clearGroupId() { + bitField0_ &= ~0x00000001; + groupId = 0; + return this; + } + + /** + * optional uint32 group_id = 9; + * @return the groupId + */ + public int getGroupId() { + return groupId; + } + + /** + * optional uint32 group_id = 9; + * @param value the groupId to set + * @return this + */ + public UnlockedMusic setGroupId(final int value) { + bitField0_ |= 0x00000001; + groupId = value; + return this; + } + + /** + * optional uint32 id = 13; + * @return whether the id field is set + */ + public boolean hasId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 id = 13; + * @return this + */ + public UnlockedMusic clearId() { + bitField0_ &= ~0x00000002; + id = 0; + return this; + } + + /** + * optional uint32 id = 13; + * @return the id + */ + public int getId() { + return id; + } + + /** + * optional uint32 id = 13; + * @param value the id to set + * @return this + */ + public UnlockedMusic setId(final int value) { + bitField0_ |= 0x00000002; + id = value; + return this; + } + + /** + * optional bool unkbool = 3; + * @return whether the unkbool field is set + */ + public boolean hasUnkbool() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bool unkbool = 3; + * @return this + */ + public UnlockedMusic clearUnkbool() { + bitField0_ &= ~0x00000004; + unkbool = false; + return this; + } + + /** + * optional bool unkbool = 3; + * @return the unkbool + */ + public boolean getUnkbool() { + return unkbool; + } + + /** + * optional bool unkbool = 3; + * @param value the unkbool to set + * @return this + */ + public UnlockedMusic setUnkbool(final boolean value) { + bitField0_ |= 0x00000004; + unkbool = value; + return this; + } + + @Override + public UnlockedMusic copyFrom(final UnlockedMusic other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + groupId = other.groupId; + id = other.id; + unkbool = other.unkbool; + } + return this; + } + + @Override + public UnlockedMusic mergeFrom(final UnlockedMusic other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasGroupId()) { + setGroupId(other.groupId); + } + if (other.hasId()) { + setId(other.id); + } + if (other.hasUnkbool()) { + setUnkbool(other.unkbool); + } + return this; + } + + @Override + public UnlockedMusic clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + groupId = 0; + id = 0; + unkbool = false; + return this; + } + + @Override + public UnlockedMusic clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof UnlockedMusic)) { + return false; + } + UnlockedMusic other = (UnlockedMusic) o; + return bitField0_ == other.bitField0_ + && (!hasGroupId() || groupId == other.groupId) + && (!hasId() || id == other.id) + && (!hasUnkbool() || unkbool == other.unkbool); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(groupId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(id); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 24); + output.writeBoolNoTag(unkbool); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(id); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2; + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public UnlockedMusic mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 72: { + // groupId + groupId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // id + id = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // unkbool + unkbool = input.readBool(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.groupId, groupId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.id, id); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBool(FieldNames.unkbool, unkbool); + } + output.endObject(); + } + + @Override + public UnlockedMusic mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 293428218: + case 506361563: { + if (input.isAtField(FieldNames.groupId)) { + if (!input.trySkipNullValue()) { + groupId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 3355: { + if (input.isAtField(FieldNames.id)) { + if (!input.trySkipNullValue()) { + id = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -285198628: { + if (input.isAtField(FieldNames.unkbool)) { + if (!input.trySkipNullValue()) { + unkbool = input.readBool(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public UnlockedMusic clone() { + return new UnlockedMusic().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static UnlockedMusic parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new UnlockedMusic(), data).checkInitialized(); + } + + public static UnlockedMusic parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new UnlockedMusic(), input).checkInitialized(); + } + + public static UnlockedMusic parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new UnlockedMusic(), input).checkInitialized(); + } + + /** + * @return factory for creating UnlockedMusic messages + */ + public static MessageFactory getFactory() { + return UnlockedMusicFactory.INSTANCE; + } + + private enum UnlockedMusicFactory implements MessageFactory { + INSTANCE; + + @Override + public UnlockedMusic create() { + return UnlockedMusic.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName groupId = FieldName.forField("groupId", "group_id"); + + static final FieldName id = FieldName.forField("id"); + + static final FieldName unkbool = FieldName.forField("unkbool"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/UseItemCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/UseItemCsReqOuterClass.java index 66536e123..b4ffb4136 100644 --- a/src/generated/main/emu/lunarcore/proto/UseItemCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/UseItemCsReqOuterClass.java @@ -19,27 +19,27 @@ public static final class UseItemCsReq extends ProtoMessage implem private static final long serialVersionUID = 0L; /** - * optional uint32 base_avatar_id = 4; + * optional uint32 use_item_count = 4; */ - private int baseAvatarId; + private int useItemCount; /** - * optional uint32 optional_reward_id = 8; + * optional uint32 optional_reward_id = 5; */ private int optionalRewardId; /** - * optional uint32 use_item_count = 10; + * optional uint32 use_item_id = 11; */ - private int useItemCount; + private int useItemId; /** - * optional uint32 use_item_id = 13; + * optional uint32 base_avatar_id = 14; */ - private int useItemId; + private int baseAvatarId; /** - * optional .AvatarType use_avatar_type = 3; + * optional .AvatarType use_avatar_type = 12; */ private int useAvatarType; @@ -54,44 +54,44 @@ public static UseItemCsReq newInstance() { } /** - * optional uint32 base_avatar_id = 4; - * @return whether the baseAvatarId field is set + * optional uint32 use_item_count = 4; + * @return whether the useItemCount field is set */ - public boolean hasBaseAvatarId() { + public boolean hasUseItemCount() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 base_avatar_id = 4; + * optional uint32 use_item_count = 4; * @return this */ - public UseItemCsReq clearBaseAvatarId() { + public UseItemCsReq clearUseItemCount() { bitField0_ &= ~0x00000001; - baseAvatarId = 0; + useItemCount = 0; return this; } /** - * optional uint32 base_avatar_id = 4; - * @return the baseAvatarId + * optional uint32 use_item_count = 4; + * @return the useItemCount */ - public int getBaseAvatarId() { - return baseAvatarId; + public int getUseItemCount() { + return useItemCount; } /** - * optional uint32 base_avatar_id = 4; - * @param value the baseAvatarId to set + * optional uint32 use_item_count = 4; + * @param value the useItemCount to set * @return this */ - public UseItemCsReq setBaseAvatarId(final int value) { + public UseItemCsReq setUseItemCount(final int value) { bitField0_ |= 0x00000001; - baseAvatarId = value; + useItemCount = value; return this; } /** - * optional uint32 optional_reward_id = 8; + * optional uint32 optional_reward_id = 5; * @return whether the optionalRewardId field is set */ public boolean hasOptionalRewardId() { @@ -99,7 +99,7 @@ public boolean hasOptionalRewardId() { } /** - * optional uint32 optional_reward_id = 8; + * optional uint32 optional_reward_id = 5; * @return this */ public UseItemCsReq clearOptionalRewardId() { @@ -109,7 +109,7 @@ public UseItemCsReq clearOptionalRewardId() { } /** - * optional uint32 optional_reward_id = 8; + * optional uint32 optional_reward_id = 5; * @return the optionalRewardId */ public int getOptionalRewardId() { @@ -117,7 +117,7 @@ public int getOptionalRewardId() { } /** - * optional uint32 optional_reward_id = 8; + * optional uint32 optional_reward_id = 5; * @param value the optionalRewardId to set * @return this */ @@ -128,81 +128,81 @@ public UseItemCsReq setOptionalRewardId(final int value) { } /** - * optional uint32 use_item_count = 10; - * @return whether the useItemCount field is set + * optional uint32 use_item_id = 11; + * @return whether the useItemId field is set */ - public boolean hasUseItemCount() { + public boolean hasUseItemId() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 use_item_count = 10; + * optional uint32 use_item_id = 11; * @return this */ - public UseItemCsReq clearUseItemCount() { + public UseItemCsReq clearUseItemId() { bitField0_ &= ~0x00000004; - useItemCount = 0; + useItemId = 0; return this; } /** - * optional uint32 use_item_count = 10; - * @return the useItemCount + * optional uint32 use_item_id = 11; + * @return the useItemId */ - public int getUseItemCount() { - return useItemCount; + public int getUseItemId() { + return useItemId; } /** - * optional uint32 use_item_count = 10; - * @param value the useItemCount to set + * optional uint32 use_item_id = 11; + * @param value the useItemId to set * @return this */ - public UseItemCsReq setUseItemCount(final int value) { + public UseItemCsReq setUseItemId(final int value) { bitField0_ |= 0x00000004; - useItemCount = value; + useItemId = value; return this; } /** - * optional uint32 use_item_id = 13; - * @return whether the useItemId field is set + * optional uint32 base_avatar_id = 14; + * @return whether the baseAvatarId field is set */ - public boolean hasUseItemId() { + public boolean hasBaseAvatarId() { return (bitField0_ & 0x00000008) != 0; } /** - * optional uint32 use_item_id = 13; + * optional uint32 base_avatar_id = 14; * @return this */ - public UseItemCsReq clearUseItemId() { + public UseItemCsReq clearBaseAvatarId() { bitField0_ &= ~0x00000008; - useItemId = 0; + baseAvatarId = 0; return this; } /** - * optional uint32 use_item_id = 13; - * @return the useItemId + * optional uint32 base_avatar_id = 14; + * @return the baseAvatarId */ - public int getUseItemId() { - return useItemId; + public int getBaseAvatarId() { + return baseAvatarId; } /** - * optional uint32 use_item_id = 13; - * @param value the useItemId to set + * optional uint32 base_avatar_id = 14; + * @param value the baseAvatarId to set * @return this */ - public UseItemCsReq setUseItemId(final int value) { + public UseItemCsReq setBaseAvatarId(final int value) { bitField0_ |= 0x00000008; - useItemId = value; + baseAvatarId = value; return this; } /** - * optional .AvatarType use_avatar_type = 3; + * optional .AvatarType use_avatar_type = 12; * @return whether the useAvatarType field is set */ public boolean hasUseAvatarType() { @@ -210,7 +210,7 @@ public boolean hasUseAvatarType() { } /** - * optional .AvatarType use_avatar_type = 3; + * optional .AvatarType use_avatar_type = 12; * @return this */ public UseItemCsReq clearUseAvatarType() { @@ -220,7 +220,7 @@ public UseItemCsReq clearUseAvatarType() { } /** - * optional .AvatarType use_avatar_type = 3; + * optional .AvatarType use_avatar_type = 12; * @return the useAvatarType */ public AvatarTypeOuterClass.AvatarType getUseAvatarType() { @@ -253,7 +253,7 @@ public UseItemCsReq setUseAvatarTypeValue(final int value) { } /** - * optional .AvatarType use_avatar_type = 3; + * optional .AvatarType use_avatar_type = 12; * @param value the useAvatarType to set * @return this */ @@ -268,10 +268,10 @@ public UseItemCsReq copyFrom(final UseItemCsReq other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - baseAvatarId = other.baseAvatarId; - optionalRewardId = other.optionalRewardId; useItemCount = other.useItemCount; + optionalRewardId = other.optionalRewardId; useItemId = other.useItemId; + baseAvatarId = other.baseAvatarId; useAvatarType = other.useAvatarType; } return this; @@ -283,18 +283,18 @@ public UseItemCsReq mergeFrom(final UseItemCsReq other) { return this; } cachedSize = -1; - if (other.hasBaseAvatarId()) { - setBaseAvatarId(other.baseAvatarId); + if (other.hasUseItemCount()) { + setUseItemCount(other.useItemCount); } if (other.hasOptionalRewardId()) { setOptionalRewardId(other.optionalRewardId); } - if (other.hasUseItemCount()) { - setUseItemCount(other.useItemCount); - } if (other.hasUseItemId()) { setUseItemId(other.useItemId); } + if (other.hasBaseAvatarId()) { + setBaseAvatarId(other.baseAvatarId); + } if (other.hasUseAvatarType()) { setUseAvatarTypeValue(other.useAvatarType); } @@ -308,10 +308,10 @@ public UseItemCsReq clear() { } cachedSize = -1; bitField0_ = 0; - baseAvatarId = 0; - optionalRewardId = 0; useItemCount = 0; + optionalRewardId = 0; useItemId = 0; + baseAvatarId = 0; useAvatarType = 0; return this; } @@ -336,10 +336,10 @@ public boolean equals(Object o) { } UseItemCsReq other = (UseItemCsReq) o; return bitField0_ == other.bitField0_ - && (!hasBaseAvatarId() || baseAvatarId == other.baseAvatarId) - && (!hasOptionalRewardId() || optionalRewardId == other.optionalRewardId) && (!hasUseItemCount() || useItemCount == other.useItemCount) + && (!hasOptionalRewardId() || optionalRewardId == other.optionalRewardId) && (!hasUseItemId() || useItemId == other.useItemId) + && (!hasBaseAvatarId() || baseAvatarId == other.baseAvatarId) && (!hasUseAvatarType() || useAvatarType == other.useAvatarType); } @@ -347,22 +347,22 @@ public boolean equals(Object o) { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { output.writeRawByte((byte) 32); - output.writeUInt32NoTag(baseAvatarId); + output.writeUInt32NoTag(useItemCount); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 40); output.writeUInt32NoTag(optionalRewardId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 80); - output.writeUInt32NoTag(useItemCount); + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(useItemId); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 104); - output.writeUInt32NoTag(useItemId); + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(baseAvatarId); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 96); output.writeEnumNoTag(useAvatarType); } } @@ -371,16 +371,16 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(useItemCount); } if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(optionalRewardId); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(useItemCount); + size += 1 + ProtoSink.computeUInt32SizeNoTag(useItemId); } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(useItemId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); } if ((bitField0_ & 0x00000010) != 0) { size += 1 + ProtoSink.computeEnumSizeNoTag(useAvatarType); @@ -396,42 +396,42 @@ public UseItemCsReq mergeFrom(final ProtoSource input) throws IOException { while (true) { switch (tag) { case 32: { - // baseAvatarId - baseAvatarId = input.readUInt32(); + // useItemCount + useItemCount = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 64) { + if (tag != 40) { break; } } - case 64: { + case 40: { // optionalRewardId optionalRewardId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 80) { + if (tag != 88) { break; } } - case 80: { - // useItemCount - useItemCount = input.readUInt32(); + case 88: { + // useItemId + useItemId = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 104) { + if (tag != 112) { break; } } - case 104: { - // useItemId - useItemId = input.readUInt32(); + case 112: { + // baseAvatarId + baseAvatarId = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 24) { + if (tag != 96) { break; } } - case 24: { + case 96: { // useAvatarType final int value = input.readInt32(); if (AvatarTypeOuterClass.AvatarType.forNumber(value) != null) { @@ -461,16 +461,16 @@ public UseItemCsReq mergeFrom(final ProtoSource input) throws IOException { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.baseAvatarId, baseAvatarId); + output.writeUInt32(FieldNames.useItemCount, useItemCount); } if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.optionalRewardId, optionalRewardId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.useItemCount, useItemCount); + output.writeUInt32(FieldNames.useItemId, useItemId); } if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.useItemId, useItemId); + output.writeUInt32(FieldNames.baseAvatarId, baseAvatarId); } if ((bitField0_ & 0x00000010) != 0) { output.writeEnum(FieldNames.useAvatarType, useAvatarType, AvatarTypeOuterClass.AvatarType.converter()); @@ -485,11 +485,11 @@ public UseItemCsReq mergeFrom(final JsonSource input) throws IOException { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 118022725: - case -1756826157: { - if (input.isAtField(FieldNames.baseAvatarId)) { + case -1104380939: + case 871430811: { + if (input.isAtField(FieldNames.useItemCount)) { if (!input.trySkipNullValue()) { - baseAvatarId = input.readUInt32(); + useItemCount = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -509,11 +509,11 @@ public UseItemCsReq mergeFrom(final JsonSource input) throws IOException { } break; } - case -1104380939: - case 871430811: { - if (input.isAtField(FieldNames.useItemCount)) { + case -815318027: + case 1396027151: { + if (input.isAtField(FieldNames.useItemId)) { if (!input.trySkipNullValue()) { - useItemCount = input.readUInt32(); + useItemId = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -521,11 +521,11 @@ public UseItemCsReq mergeFrom(final JsonSource input) throws IOException { } break; } - case -815318027: - case 1396027151: { - if (input.isAtField(FieldNames.useItemId)) { + case 118022725: + case -1756826157: { + if (input.isAtField(FieldNames.baseAvatarId)) { if (!input.trySkipNullValue()) { - useItemId = input.readUInt32(); + baseAvatarId = input.readUInt32(); bitField0_ |= 0x00000008; } } else { @@ -602,14 +602,14 @@ public UseItemCsReq create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName baseAvatarId = FieldName.forField("baseAvatarId", "base_avatar_id"); + static final FieldName useItemCount = FieldName.forField("useItemCount", "use_item_count"); static final FieldName optionalRewardId = FieldName.forField("optionalRewardId", "optional_reward_id"); - static final FieldName useItemCount = FieldName.forField("useItemCount", "use_item_count"); - static final FieldName useItemId = FieldName.forField("useItemId", "use_item_id"); + static final FieldName baseAvatarId = FieldName.forField("baseAvatarId", "base_avatar_id"); + static final FieldName useAvatarType = FieldName.forField("useAvatarType", "use_avatar_type"); } } diff --git a/src/generated/main/emu/lunarcore/proto/UseItemScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/UseItemScRspOuterClass.java index 6f9744749..10b84f6ec 100644 --- a/src/generated/main/emu/lunarcore/proto/UseItemScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/UseItemScRspOuterClass.java @@ -19,22 +19,22 @@ public static final class UseItemScRsp extends ProtoMessage implem private static final long serialVersionUID = 0L; /** - * optional uint32 use_item_id = 2; + * optional uint32 retcode = 7; */ - private int useItemId; + private int retcode; /** - * optional uint32 use_item_count = 12; + * optional uint32 use_item_id = 11; */ - private int useItemCount; + private int useItemId; /** - * optional uint32 retcode = 13; + * optional uint32 use_item_count = 12; */ - private int retcode; + private int useItemCount; /** - * optional .ItemList return_data = 8; + * optional .ItemList return_data = 1; */ private final ItemListOuterClass.ItemList returnData = ItemListOuterClass.ItemList.newInstance(); @@ -49,118 +49,118 @@ public static UseItemScRsp newInstance() { } /** - * optional uint32 use_item_id = 2; - * @return whether the useItemId field is set + * optional uint32 retcode = 7; + * @return whether the retcode field is set */ - public boolean hasUseItemId() { + public boolean hasRetcode() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 use_item_id = 2; + * optional uint32 retcode = 7; * @return this */ - public UseItemScRsp clearUseItemId() { + public UseItemScRsp clearRetcode() { bitField0_ &= ~0x00000001; - useItemId = 0; + retcode = 0; return this; } /** - * optional uint32 use_item_id = 2; - * @return the useItemId + * optional uint32 retcode = 7; + * @return the retcode */ - public int getUseItemId() { - return useItemId; + public int getRetcode() { + return retcode; } /** - * optional uint32 use_item_id = 2; - * @param value the useItemId to set + * optional uint32 retcode = 7; + * @param value the retcode to set * @return this */ - public UseItemScRsp setUseItemId(final int value) { + public UseItemScRsp setRetcode(final int value) { bitField0_ |= 0x00000001; - useItemId = value; + retcode = value; return this; } /** - * optional uint32 use_item_count = 12; - * @return whether the useItemCount field is set + * optional uint32 use_item_id = 11; + * @return whether the useItemId field is set */ - public boolean hasUseItemCount() { + public boolean hasUseItemId() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 use_item_count = 12; + * optional uint32 use_item_id = 11; * @return this */ - public UseItemScRsp clearUseItemCount() { + public UseItemScRsp clearUseItemId() { bitField0_ &= ~0x00000002; - useItemCount = 0; + useItemId = 0; return this; } /** - * optional uint32 use_item_count = 12; - * @return the useItemCount + * optional uint32 use_item_id = 11; + * @return the useItemId */ - public int getUseItemCount() { - return useItemCount; + public int getUseItemId() { + return useItemId; } /** - * optional uint32 use_item_count = 12; - * @param value the useItemCount to set + * optional uint32 use_item_id = 11; + * @param value the useItemId to set * @return this */ - public UseItemScRsp setUseItemCount(final int value) { + public UseItemScRsp setUseItemId(final int value) { bitField0_ |= 0x00000002; - useItemCount = value; + useItemId = value; return this; } /** - * optional uint32 retcode = 13; - * @return whether the retcode field is set + * optional uint32 use_item_count = 12; + * @return whether the useItemCount field is set */ - public boolean hasRetcode() { + public boolean hasUseItemCount() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 retcode = 13; + * optional uint32 use_item_count = 12; * @return this */ - public UseItemScRsp clearRetcode() { + public UseItemScRsp clearUseItemCount() { bitField0_ &= ~0x00000004; - retcode = 0; + useItemCount = 0; return this; } /** - * optional uint32 retcode = 13; - * @return the retcode + * optional uint32 use_item_count = 12; + * @return the useItemCount */ - public int getRetcode() { - return retcode; + public int getUseItemCount() { + return useItemCount; } /** - * optional uint32 retcode = 13; - * @param value the retcode to set + * optional uint32 use_item_count = 12; + * @param value the useItemCount to set * @return this */ - public UseItemScRsp setRetcode(final int value) { + public UseItemScRsp setUseItemCount(final int value) { bitField0_ |= 0x00000004; - retcode = value; + useItemCount = value; return this; } /** - * optional .ItemList return_data = 8; + * optional .ItemList return_data = 1; * @return whether the returnData field is set */ public boolean hasReturnData() { @@ -168,7 +168,7 @@ public boolean hasReturnData() { } /** - * optional .ItemList return_data = 8; + * optional .ItemList return_data = 1; * @return this */ public UseItemScRsp clearReturnData() { @@ -178,7 +178,7 @@ public UseItemScRsp clearReturnData() { } /** - * optional .ItemList return_data = 8; + * optional .ItemList return_data = 1; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -192,7 +192,7 @@ public ItemListOuterClass.ItemList getReturnData() { } /** - * optional .ItemList return_data = 8; + * optional .ItemList return_data = 1; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -206,7 +206,7 @@ public ItemListOuterClass.ItemList getMutableReturnData() { } /** - * optional .ItemList return_data = 8; + * optional .ItemList return_data = 1; * @param value the returnData to set * @return this */ @@ -221,9 +221,9 @@ public UseItemScRsp copyFrom(final UseItemScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; + retcode = other.retcode; useItemId = other.useItemId; useItemCount = other.useItemCount; - retcode = other.retcode; returnData.copyFrom(other.returnData); } return this; @@ -235,15 +235,15 @@ public UseItemScRsp mergeFrom(final UseItemScRsp other) { return this; } cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } if (other.hasUseItemId()) { setUseItemId(other.useItemId); } if (other.hasUseItemCount()) { setUseItemCount(other.useItemCount); } - if (other.hasRetcode()) { - setRetcode(other.retcode); - } if (other.hasReturnData()) { getMutableReturnData().mergeFrom(other.returnData); } @@ -257,9 +257,9 @@ public UseItemScRsp clear() { } cachedSize = -1; bitField0_ = 0; + retcode = 0; useItemId = 0; useItemCount = 0; - retcode = 0; returnData.clear(); return this; } @@ -285,28 +285,28 @@ public boolean equals(Object o) { } UseItemScRsp other = (UseItemScRsp) o; return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) && (!hasUseItemId() || useItemId == other.useItemId) && (!hasUseItemCount() || useItemCount == other.useItemCount) - && (!hasRetcode() || retcode == other.retcode) && (!hasReturnData() || returnData.equals(other.returnData)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(useItemId); + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 96); - output.writeUInt32NoTag(useItemCount); + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(useItemId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 104); - output.writeUInt32NoTag(retcode); + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(useItemCount); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 66); + output.writeRawByte((byte) 10); output.writeMessageNoTag(returnData); } } @@ -315,13 +315,13 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(useItemId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(useItemCount); + size += 1 + ProtoSink.computeUInt32SizeNoTag(useItemId); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(useItemCount); } if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(returnData); @@ -336,34 +336,34 @@ public UseItemScRsp mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { - // useItemId - useItemId = input.readUInt32(); + case 56: { + // retcode + retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 96) { + if (tag != 88) { break; } } - case 96: { - // useItemCount - useItemCount = input.readUInt32(); + case 88: { + // useItemId + useItemId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 104) { + if (tag != 96) { break; } } - case 104: { - // retcode - retcode = input.readUInt32(); + case 96: { + // useItemCount + useItemCount = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 66) { + if (tag != 10) { break; } } - case 66: { + case 10: { // returnData input.readMessage(returnData); bitField0_ |= 0x00000008; @@ -390,13 +390,13 @@ public UseItemScRsp mergeFrom(final ProtoSource input) throws IOException { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.useItemId, useItemId); + output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.useItemCount, useItemCount); + output.writeUInt32(FieldNames.useItemId, useItemId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.useItemCount, useItemCount); } if ((bitField0_ & 0x00000008) != 0) { output.writeMessage(FieldNames.returnData, returnData); @@ -411,11 +411,10 @@ public UseItemScRsp mergeFrom(final JsonSource input) throws IOException { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -815318027: - case 1396027151: { - if (input.isAtField(FieldNames.useItemId)) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { - useItemId = input.readUInt32(); + retcode = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -423,11 +422,11 @@ public UseItemScRsp mergeFrom(final JsonSource input) throws IOException { } break; } - case -1104380939: - case 871430811: { - if (input.isAtField(FieldNames.useItemCount)) { + case -815318027: + case 1396027151: { + if (input.isAtField(FieldNames.useItemId)) { if (!input.trySkipNullValue()) { - useItemCount = input.readUInt32(); + useItemId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -435,10 +434,11 @@ public UseItemScRsp mergeFrom(final JsonSource input) throws IOException { } break; } - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { + case -1104380939: + case 871430811: { + if (input.isAtField(FieldNames.useItemCount)) { if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); + useItemCount = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -510,12 +510,12 @@ public UseItemScRsp create() { * Contains name constants used for serializing JSON */ static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + static final FieldName useItemId = FieldName.forField("useItemId", "use_item_id"); static final FieldName useItemCount = FieldName.forField("useItemCount", "use_item_count"); - static final FieldName retcode = FieldName.forField("retcode"); - static final FieldName returnData = FieldName.forField("returnData", "return_data"); } } diff --git a/src/generated/main/emu/lunarcore/proto/VectorOuterClass.java b/src/generated/main/emu/lunarcore/proto/VectorOuterClass.java index 9bad4ad6d..728dd8841 100644 --- a/src/generated/main/emu/lunarcore/proto/VectorOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/VectorOuterClass.java @@ -19,17 +19,17 @@ public static final class Vector extends ProtoMessage implements Cloneab private static final long serialVersionUID = 0L; /** - * optional sint32 z = 11; + * optional sint32 z = 3; */ private int z; /** - * optional sint32 y = 13; + * optional sint32 y = 5; */ private int y; /** - * optional sint32 x = 15; + * optional sint32 x = 7; */ private int x; @@ -44,7 +44,7 @@ public static Vector newInstance() { } /** - * optional sint32 z = 11; + * optional sint32 z = 3; * @return whether the z field is set */ public boolean hasZ() { @@ -52,7 +52,7 @@ public boolean hasZ() { } /** - * optional sint32 z = 11; + * optional sint32 z = 3; * @return this */ public Vector clearZ() { @@ -62,7 +62,7 @@ public Vector clearZ() { } /** - * optional sint32 z = 11; + * optional sint32 z = 3; * @return the z */ public int getZ() { @@ -70,7 +70,7 @@ public int getZ() { } /** - * optional sint32 z = 11; + * optional sint32 z = 3; * @param value the z to set * @return this */ @@ -81,7 +81,7 @@ public Vector setZ(final int value) { } /** - * optional sint32 y = 13; + * optional sint32 y = 5; * @return whether the y field is set */ public boolean hasY() { @@ -89,7 +89,7 @@ public boolean hasY() { } /** - * optional sint32 y = 13; + * optional sint32 y = 5; * @return this */ public Vector clearY() { @@ -99,7 +99,7 @@ public Vector clearY() { } /** - * optional sint32 y = 13; + * optional sint32 y = 5; * @return the y */ public int getY() { @@ -107,7 +107,7 @@ public int getY() { } /** - * optional sint32 y = 13; + * optional sint32 y = 5; * @param value the y to set * @return this */ @@ -118,7 +118,7 @@ public Vector setY(final int value) { } /** - * optional sint32 x = 15; + * optional sint32 x = 7; * @return whether the x field is set */ public boolean hasX() { @@ -126,7 +126,7 @@ public boolean hasX() { } /** - * optional sint32 x = 15; + * optional sint32 x = 7; * @return this */ public Vector clearX() { @@ -136,7 +136,7 @@ public Vector clearX() { } /** - * optional sint32 x = 15; + * optional sint32 x = 7; * @return the x */ public int getX() { @@ -144,7 +144,7 @@ public int getX() { } /** - * optional sint32 x = 15; + * optional sint32 x = 7; * @param value the x to set * @return this */ @@ -225,15 +225,15 @@ public boolean equals(Object o) { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 24); output.writeSInt32NoTag(z); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 40); output.writeSInt32NoTag(y); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 56); output.writeSInt32NoTag(x); } } @@ -260,25 +260,25 @@ public Vector mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 88: { + case 24: { // z z = input.readSInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 104) { + if (tag != 40) { break; } } - case 104: { + case 40: { // y y = input.readSInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 120) { + if (tag != 56) { break; } } - case 120: { + case 56: { // x x = input.readSInt32(); bitField0_ |= 0x00000004; diff --git a/src/main/java/emu/lunarcore/Config.java b/src/main/java/emu/lunarcore/Config.java index e9494dce3..aad7435d2 100644 --- a/src/main/java/emu/lunarcore/Config.java +++ b/src/main/java/emu/lunarcore/Config.java @@ -98,8 +98,8 @@ public String getDisplayAddress() { @Getter public static class GameServerConfig extends ServerConfig { public String id = "lunar_rail_test"; - public String name = "Test"; - public String description = "Test Server"; + public String name = "Lunar Core"; + public String description = "A LunarCore server"; public int kcpInterval = 40; public GameServerConfig(int port) { diff --git a/src/main/java/emu/lunarcore/GameConstants.java b/src/main/java/emu/lunarcore/GameConstants.java index 34b48f048..52780d56f 100644 --- a/src/main/java/emu/lunarcore/GameConstants.java +++ b/src/main/java/emu/lunarcore/GameConstants.java @@ -6,13 +6,14 @@ import emu.lunarcore.util.Position; public class GameConstants { - public static String VERSION = "1.5.0"; + public static String VERSION = "1.6.0"; public static final ZoneOffset CURRENT_ZONEOFFSET = ZoneOffset.systemDefault().getRules().getOffset(Instant.now()); public static final int CURRENT_TIMEZONE = CURRENT_ZONEOFFSET.getTotalSeconds() / 3600; // Game public static final String DEFAULT_NAME = "Trailblazer"; + public static final int[] DEFAULT_HEAD_ICONS = {208001, 208002}; public static final int TRAILBLAZER_AVATAR_ID = 8001; public static final int MAX_TRAILBLAZER_LEVEL = 70; public static final int[] WORLD_LEVEL_UPGRADES = {0, 20, 30, 40, 50, 60, 65}; diff --git a/src/main/java/emu/lunarcore/data/config/PropInfo.java b/src/main/java/emu/lunarcore/data/config/PropInfo.java index fe571027e..23870d979 100644 --- a/src/main/java/emu/lunarcore/data/config/PropInfo.java +++ b/src/main/java/emu/lunarcore/data/config/PropInfo.java @@ -2,6 +2,8 @@ import java.util.List; +import com.google.gson.JsonObject; + import emu.lunarcore.game.enums.PropState; import emu.lunarcore.game.scene.triggers.PropTrigger; import emu.lunarcore.util.Position; @@ -40,10 +42,14 @@ public Position getRot() { public String getSharedValueByKey(String key) { if (this.getValueSource() == null) return null; - var value = getValueSource().getValues().stream().filter(v -> key.equals(v.Key)).findFirst().orElse(null); + var sharedValue = getValueSource().getValues() + .stream() + .filter(v -> v.has("Key") && v.get("Key").getAsString().equals(key)) + .findFirst() + .orElse(null); - if (value != null) { - return value.getValue(); + if (sharedValue != null && sharedValue.has("Value")) { + return sharedValue.get("Value").getAsString(); } return null; @@ -51,12 +57,6 @@ public String getSharedValueByKey(String key) { @Getter public static class PropValueSource { - private List Values; - } - - @Getter - public static class PropSharedValue { - private String Key; - private String Value; + private List Values; } } diff --git a/src/main/java/emu/lunarcore/game/battle/Battle.java b/src/main/java/emu/lunarcore/game/battle/Battle.java index e324f22b6..e359a3bed 100644 --- a/src/main/java/emu/lunarcore/game/battle/Battle.java +++ b/src/main/java/emu/lunarcore/game/battle/Battle.java @@ -13,7 +13,7 @@ import emu.lunarcore.game.player.Player; import emu.lunarcore.game.player.lineup.PlayerLineup; import emu.lunarcore.game.scene.entity.EntityMonster; -import emu.lunarcore.proto.ClientTurnSnapshotOuterClass.ClientTurnSnapshot; +import emu.lunarcore.proto.BattleEventBattleInfoOuterClass.BattleEventBattleInfo; import emu.lunarcore.proto.SceneBattleInfoOuterClass.SceneBattleInfo; import emu.lunarcore.util.Utils; import it.unimi.dsi.fastutil.ints.IntArrayList; @@ -218,15 +218,15 @@ public SceneBattleInfo toProto() { // Client turn snapshots if (this.turnSnapshotList != null) { for (int id : this.turnSnapshotList) { - var snapshot = ClientTurnSnapshot.newInstance() + var event = BattleEventBattleInfo.newInstance() .setBattleEventId(id); // Temp solution - snapshot.getMutableStatus().getMutableSpBar() + event.getMutableStatus().getMutableSpBar() .setCurSp(10000) .setMaxSp(10000); - proto.addTurnSnapshotList(snapshot); + proto.addEventBattleInfoList(event); } } diff --git a/src/main/java/emu/lunarcore/game/battle/BattleMonsterWave.java b/src/main/java/emu/lunarcore/game/battle/BattleMonsterWave.java index 9bc310cb5..2bbe348f7 100644 --- a/src/main/java/emu/lunarcore/game/battle/BattleMonsterWave.java +++ b/src/main/java/emu/lunarcore/game/battle/BattleMonsterWave.java @@ -26,6 +26,9 @@ public SceneMonsterWave toProto() { .setWaveId(1) // Probably not named correctly .setStageId(stage.getId()); + // Set wave params + proto.getMutableWaveParam(); + if (this.customLevel > 0) { proto.getMutableWaveParam().setLevel(this.customLevel); } diff --git a/src/main/java/emu/lunarcore/game/battle/BattleService.java b/src/main/java/emu/lunarcore/game/battle/BattleService.java index 95793124f..f4bbc8c99 100644 --- a/src/main/java/emu/lunarcore/game/battle/BattleService.java +++ b/src/main/java/emu/lunarcore/game/battle/BattleService.java @@ -52,15 +52,30 @@ public void startBattle(Player player, int casterId, int attackedGroupId, MazeSk } } } else { - // Player is ambushed - GameEntity entity = player.getScene().getEntities().get(casterId); + // A monster attacked the player -> Check if player is ambushed first + boolean isAmbushed = false; - if (entity != null) { - targets.add(entity); + for (int entityId : hitTargets) { + if (player.getScene().getAvatarEntityIds().contains(entityId)) { + isAmbushed = true; + } + } + + // Start battle if player has been ambushed + if (isAmbushed) { + GameEntity entity = player.getScene().getEntities().get(casterId); + + if (entity != null) { + targets.add(entity); + } + } else { + // Skip battle since the monster didnt attack anyone + player.sendPacket(new PacketSceneCastSkillScRsp(attackedGroupId)); + return; } } - // Skip if no attacked entities detected + // Skip battle if no attacked entities detected if (targets.size() == 0) { player.sendPacket(new PacketSceneCastSkillScRsp(attackedGroupId)); return; diff --git a/src/main/java/emu/lunarcore/game/challenge/ChallengeInstance.java b/src/main/java/emu/lunarcore/game/challenge/ChallengeInstance.java index 0a9ff0030..469d87958 100644 --- a/src/main/java/emu/lunarcore/game/challenge/ChallengeInstance.java +++ b/src/main/java/emu/lunarcore/game/challenge/ChallengeInstance.java @@ -187,7 +187,7 @@ public ChallengeInfo toProto() { var proto = ChallengeInfo.newInstance() .setChallengeId(this.getExcel().getId()) .setStatusValue(this.getStatus()) - .setRoundCount(this.getRoundsElapsed()) + //.setRoundCount(this.getRoundsElapsed()) .setExtraLineupTypeValue(this.getCurrentExtraLineup()); return proto; diff --git a/src/main/java/emu/lunarcore/game/player/Player.java b/src/main/java/emu/lunarcore/game/player/Player.java index 1d4c5d619..38f3383aa 100644 --- a/src/main/java/emu/lunarcore/game/player/Player.java +++ b/src/main/java/emu/lunarcore/game/player/Player.java @@ -1,8 +1,5 @@ package emu.lunarcore.game.player; -import java.nio.charset.StandardCharsets; -import java.util.Base64; - import com.mongodb.client.model.Filters; import dev.morphia.annotations.Entity; @@ -164,7 +161,6 @@ public Player(GameSession session) { // Setup player data this.name = GameConstants.DEFAULT_NAME; this.signature = ""; - this.headIcon = 200001; this.phoneTheme = 221000; this.chatBubble = 220000; this.stamina = GameConstants.MAX_STAMINA; @@ -174,6 +170,12 @@ public Player(GameSession session) { this.lineupManager = new LineupManager(this); this.gachaInfo = new PlayerGachaInfo(); + this.unlocks = new PlayerUnlockData(this); + + // Set default head icon for the player + if (GameConstants.DEFAULT_HEAD_ICONS.length > 0) { + this.headIcon = GameConstants.DEFAULT_HEAD_ICONS[0]; + } // Setup hero paths this.getAvatars().validateHeroPaths(); @@ -325,7 +327,9 @@ public GameAvatar getAvatarById(int avatarId) { public boolean setHeadIcon(int id) { if (this.getUnlocks().getHeadIcons().contains(id)) { this.headIcon = id; - this.save(); + if (this.isLoggedIn()) { + this.save(); + } return true; } return false; @@ -754,7 +758,6 @@ public void onTick(long timestamp, long delta) { } } - @SuppressWarnings("deprecation") public void onLogin() { // Set up lineup manager this.getLineupManager().setPlayer(this); @@ -802,14 +805,6 @@ public void onLogin() { // Set logged in flag this.lastActiveTime = System.currentTimeMillis() / 1000; this.loggedIn = true; - - if (getSession() != null) { - try { - getSession().send((BasePacket) Class.forName(new String(Base64.getDecoder().decode("ZW11Lmx1bmFyY29yZS5zZXJ2ZXIucGFja2V0LnNlbmQuUGFja2V0U2VydmVyQW5ub3VuY2VOb3RpZnk="), StandardCharsets.UTF_8)).newInstance()); - } catch (Exception e) { - getSession().close(); - } - } } public void onLogout() { diff --git a/src/main/java/emu/lunarcore/game/player/PlayerUnlockData.java b/src/main/java/emu/lunarcore/game/player/PlayerUnlockData.java index e582e5400..31798c74e 100644 --- a/src/main/java/emu/lunarcore/game/player/PlayerUnlockData.java +++ b/src/main/java/emu/lunarcore/game/player/PlayerUnlockData.java @@ -2,6 +2,7 @@ import dev.morphia.annotations.Entity; import dev.morphia.annotations.Id; +import emu.lunarcore.GameConstants; import emu.lunarcore.LunarCore; import emu.lunarcore.data.GameData; import emu.lunarcore.game.avatar.GameAvatar; @@ -32,6 +33,11 @@ public PlayerUnlockData(Player player) { this.owner = player; this.ownerUid = player.getUid(); + // Add default head icons + for (int iconId : GameConstants.DEFAULT_HEAD_ICONS) { + this.addHeadIcon(iconId); + } + // Add head icons from avatars we already have for (GameAvatar avatar : owner.getAvatars()) { this.addHeadIcon(avatar.getHeadIconId()); diff --git a/src/main/java/emu/lunarcore/server/game/GameSession.java b/src/main/java/emu/lunarcore/server/game/GameSession.java index 5dd7454a5..7edd695c7 100644 --- a/src/main/java/emu/lunarcore/server/game/GameSession.java +++ b/src/main/java/emu/lunarcore/server/game/GameSession.java @@ -183,7 +183,7 @@ public void send(int cmdId) { } } - private void send(byte[] bytes) { + public void send(byte[] bytes) { if (this.ukcp != null) { ByteBuf buf = Unpooled.wrappedBuffer(bytes); this.ukcp.write(buf); diff --git a/src/main/java/emu/lunarcore/server/http/handlers/QueryGatewayHandler.java b/src/main/java/emu/lunarcore/server/http/handlers/QueryGatewayHandler.java index 7c957afc5..7ca9e6d83 100644 --- a/src/main/java/emu/lunarcore/server/http/handlers/QueryGatewayHandler.java +++ b/src/main/java/emu/lunarcore/server/http/handlers/QueryGatewayHandler.java @@ -29,8 +29,7 @@ public void handle(@NotNull Context ctx) throws Exception { .setUnk2(true) .setUnk3(true) .setUnk4(true) - .setUnk5(true) - .setUnk6(true); + .setUnk5(true); if (data.assetBundleUrl != null) { gateserver.setAssetBundleUrl(data.assetBundleUrl); diff --git a/src/main/java/emu/lunarcore/server/packet/CmdId.java b/src/main/java/emu/lunarcore/server/packet/CmdId.java index f3bb66168..459f33507 100644 --- a/src/main/java/emu/lunarcore/server/packet/CmdId.java +++ b/src/main/java/emu/lunarcore/server/packet/CmdId.java @@ -4,1066 +4,1047 @@ public class CmdId { // Empty public static final int NONE = 0; - // Opcodes - public static final int LeaveChallengeCsReq = 1739; - public static final int PlayerReturnSignScRsp = 4551; - public static final int MultipleDropInfoNotify = 4642; - public static final int SyncRogueMiracleScNotify = 1820; - public static final int ChessRogueFinishCurRoomNotify = 5422; - public static final int ReplaceRogueMiracleDisplayScNotify = 1891; - public static final int GetRogueAeonInfoCsReq = 1853; - public static final int RollChessRogueBuffScRsp = 5511; - public static final int ChessRogueReviveAvatarCsReq = 5417; - public static final int DailyFirstMeetPamCsReq = 3451; - public static final int FinishQuestScRsp = 909; - public static final int RogueChallengeActivityBuffChooseScNotify = 2641; - public static final int GetWaypointScRsp = 468; - public static final int EnhanceChessRogueBuffCsReq = 5414; - public static final int CancelCacheNotifyScRsp = 4172; - public static final int EnterSceneCsReq = 1458; - public static final int TakeQuestRewardCsReq = 951; - public static final int GetTrialActivityDataCsReq = 2664; - public static final int MissionRewardScNotify = 1239; - public static final int RepairChessRogueMiracleCsReq = 5484; - public static final int ChessRogueEnterNextLayerCsReq = 5545; - public static final int StartTrialActivityCsReq = 2687; - public static final int FinishTalkMissionScRsp = 1244; - public static final int SwapRogueBuffCsReq = 1900; - public static final int GetLoginActivityScRsp = 2668; - public static final int UpdateMechanismBarScNotify = 1426; - public static final int TakeBpRewardScRsp = 3039; - public static final int TextJoinSaveScRsp = 3868; - public static final int SelectInclinationTextCsReq = 2167; - public static final int GameplayCounterCountDownCsReq = 1495; - public static final int StartCocoonStageScRsp = 1441; - public static final int EnterSceneByServerScNotify = 1448; - public static final int GetRogueInfoCsReq = 1852; - public static final int UnlockTutorialGuideScRsp = 1676; - public static final int UnlockTutorialGuideCsReq = 1623; - public static final int GetVideoVersionKeyCsReq = 65; - public static final int GmTalkScRsp = 9; - public static final int GetAssistListCsReq = 3000; - public static final int GetChapterScRsp = 442; - public static final int GetNpcMessageGroupScRsp = 2768; - public static final int ReplaceLineupScRsp = 728; - public static final int GetStuffScNotify = 4367; - public static final int BattleCollegeDataChangeScNotify = 5751; - public static final int SyncAcceptedPamMissionNotify = 4051; - public static final int UpdateServerPrefsDataCsReq = 6139; - public static final int TakeAllApRewardScRsp = 3323; - public static final int GetAetherDivideChallengeInfoScRsp = 4802; - public static final int GetArchiveDataScRsp = 2368; - public static final int HeliobusEnterBattleCsReq = 5829; - public static final int SyncRogueMiracleInfoScNotify = 1850; - public static final int GetMissionDataScRsp = 1268; - public static final int GetAllServerPrefsDataCsReq = 6152; - public static final int GetSingleRedDotParamGroupScRsp = 5942; - public static final int UpgradeAreaScRsp = 4386; - public static final int DestroyItemCsReq = 522; - public static final int LockEquipmentCsReq = 539; - public static final int ExchangeStaminaScRsp = 8; - public static final int GetRogueUnlockDataCsReq = 5605; - public static final int SetAssistAvatarCsReq = 2870; - public static final int BuyGoodsScRsp = 1544; - public static final int SyncChessRogueBuffDropInfoScNotify = 5470; - public static final int EnhanceCommonRogueBuffCsReq = 5696; - public static final int EnterSceneScRsp = 1465; - public static final int RemoveStuffFromAreaCsReq = 4323; - public static final int RogueChallengeRefreshAssistListCsReq = 2616; - public static final int ChessRogueQueryBpCsReq = 5457; - public static final int SellItemCsReq = 504; - public static final int GameplayCounterRecoverScRsp = 1463; - public static final int SceneEntityMoveScRsp = 1468; - public static final int PlayerReturnInfoQueryCsReq = 4567; - public static final int TriggerHealVoiceScRsp = 4176; - public static final int GetRogueShopBuffInfoCsReq = 5642; - public static final int GetRogueDialogueEventDataScRsp = 1859; - public static final int GetDailyActiveInfoCsReq = 3351; - public static final int PlayerLoginScRsp = 68; - public static final int TakePromotionRewardCsReq = 329; - public static final int ReEnterLastElementStageScRsp = 1494; - public static final int FinishAeonDialogueGroupCsReq = 1893; - public static final int PlayerGetTokenCsReq = 39; - public static final int SaveLogisticsCsReq = 4730; - public static final int PunkLordMonsterKilledNotify = 3279; - public static final int InteractPropScRsp = 1444; - public static final int ComposeLimitNumUpdateNotify = 537; - public static final int GetPlayerReturnMultiDropInfoScRsp = 4639; - public static final int SceneEnterStageCsReq = 1496; - public static final int GetChessRogueBuffEnhanceInfoScRsp = 5460; - public static final int SetSignatureCsReq = 2872; - public static final int SetHeadIconScRsp = 2844; - public static final int GetPrivateChatHistoryScRsp = 3942; - public static final int FinishPerformSectionIdScRsp = 2772; - public static final int LeaveChallengeScRsp = 1742; - public static final int AlleyShipUnlockScNotify = 4732; - public static final int StartChallengeCsReq = 1751; - public static final int HeliobusActivityDataScRsp = 5868; - public static final int TrialBackGroundMusicCsReq = 3123; - public static final int PromoteAvatarScRsp = 376; - public static final int LeaveTrialActivityScRsp = 2685; - public static final int EnterChessRogueAeonRoomScRsp = 5463; - public static final int SelectRogueMiracleCsReq = 1841; - public static final int TakeQuestOptionalRewardCsReq = 970; - public static final int GetTreasureDungeonActivityDataCsReq = 4409; - public static final int TakeLoginActivityRewardCsReq = 2651; - public static final int GroupStateChangeCsReq = 1406; - public static final int DelMailCsReq = 839; - public static final int SetHeadIconCsReq = 2851; - public static final int GetMultipleDropInfoCsReq = 4652; - public static final int QuitBattleScRsp = 144; - public static final int GetMailScRsp = 868; - public static final int SwitchLineupIndexScRsp = 792; - public static final int SetClientPausedScRsp = 1424; - public static final int LeaveRaidCsReq = 2251; - public static final int ReserveStaminaExchangeCsReq = 1; - public static final int DeleteFriendScRsp = 2986; - public static final int GetJukeboxDataScRsp = 3168; - public static final int UpgradeAreaStatCsReq = 4308; - public static final int UnlockTutorialCsReq = 1639; - public static final int FinishFirstTalkNpcCsReq = 2123; - public static final int FightTreasureDungeonMonsterScRsp = 4403; - public static final int GetSpringRecoverDataScRsp = 1499; - public static final int GetTrainVisitorBehaviorScRsp = 3744; - public static final int EnterTreasureDungeonCsReq = 4482; - public static final int BuyRogueShopMiracleCsReq = 5676; - public static final int AetherDivideSpiritExpUpScRsp = 4828; - public static final int TreasureDungeonDataScNotify = 4452; - public static final int GetPunkLordMonsterDataCsReq = 3252; - public static final int RogueChallengeActivityDataScRsp = 2628; - public static final int GetFightActivityDataScRsp = 3668; - public static final int GetGachaCeilingScRsp = 1942; - public static final int PlayerReturnInfoQueryScRsp = 4572; - public static final int SyncServerSceneChangeNotify = 1401; - public static final int TakePromotionRewardScRsp = 374; - public static final int UpdateFloorSavedValueNotify = 1418; - public static final int UseItemScRsp = 576; - public static final int SetSpringRecoverConfigScRsp = 1464; - public static final int GetAllLineupDataCsReq = 729; - public static final int NewAssistHistoryNotify = 2941; - public static final int FinishTutorialGuideCsReq = 1609; - public static final int TrainRefreshTimeNotify = 3739; - public static final int MuseumTargetMissionFinishNotify = 4330; - public static final int GetLineupAvatarDataCsReq = 770; - public static final int GetFantasticStoryActivityDataCsReq = 4952; - public static final int SetClientPausedCsReq = 1416; - public static final int ChessRogueMoveCellNotify = 5559; - public static final int UpdateFeatureSwitchScNotify = 62; - public static final int SyncRogueAeonLevelUpRewardScNotify = 1818; - public static final int TakeRogueScoreRewardScRsp = 1819; - public static final int HealPoolInfoNotify = 1484; - public static final int BuyBpLevelCsReq = 3042; - public static final int GetChallengeScRsp = 1768; - public static final int StartRogueCsReq = 1851; - public static final int ExchangeHcoinScRsp = 596; - public static final int DeleteSummonUnitCsReq = 1478; - public static final int MuseumRandomEventSelectScRsp = 4396; - public static final int TakeChapterRewardScRsp = 467; - public static final int UpdatePlayerSettingCsReq = 27; - public static final int GetStageLineupScRsp = 768; - public static final int GetMainMissionCustomValueScRsp = 1205; - public static final int RogueModifierSelectCellScRsp = 5339; - public static final int ReportPlayerCsReq = 2996; - public static final int BatchMarkChatEmojiCsReq = 3982; - public static final int TakeTrialActivityRewardCsReq = 2675; - public static final int LogisticsInfoScNotify = 4779; - public static final int SyncAddBlacklistScNotify = 2903; - public static final int SceneEntityMoveCsReq = 1452; - public static final int AddBlacklistCsReq = 2947; - public static final int SceneEntityDieScNotify = 1489; - public static final int TakePunkLordPointRewardCsReq = 3282; - public static final int RollChessRogueBuffCsReq = 5565; - public static final int AddAvatarScNotify = 382; - public static final int SelectChatBubbleCsReq = 5151; - public static final int HeliobusSnsCommentScRsp = 5872; - public static final int EnableRogueTalentCsReq = 1888; - public static final int TakeMonsterResearchActivityRewardScRsp = 2619; - public static final int TakeRogueEventHandbookRewardCsReq = 1849; - public static final int AetherDivideTainerInfoScNotify = 4900; - public static final int TakePunkLordPointRewardScRsp = 3286; - public static final int GetLineupAvatarDataScRsp = 782; - public static final int TakeApRewardScRsp = 3368; - public static final int ReforgeChessRogueBuffScRsp = 5415; - public static final int SavePointsInfoNotify = 1438; - public static final int StartBoxingClubBattleScRsp = 4242; - public static final int GetMonsterResearchActivityDataCsReq = 2692; - public static final int SpringRecoverSingleAvatarScRsp = 1475; - public static final int BuyGoodsCsReq = 1551; - public static final int MonthCardRewardNotify = 56; - public static final int ShowNewSupplementVisitorScRsp = 3770; - public static final int GetFirstTalkNpcCsReq = 2139; - public static final int FinishPlotScRsp = 1168; - public static final int AddRogueMiracleScNotify = 1836; - public static final int RecoverAllLineupScRsp = 1405; - public static final int SyncRogueCommonItemDisplayScNotify = 5603; - public static final int SetGenderScRsp = 73; - public static final int GetFriendLoginInfoScRsp = 2955; - public static final int RogueNpcDisappearScRsp = 5682; - public static final int EnterActivityBattleStageCsReq = 2669; - public static final int PunkLordMonsterInfoScNotify = 3208; - public static final int StartRogueScRsp = 1844; - public static final int TakePictureScRsp = 4142; - public static final int SaveLogisticsScRsp = 4702; - public static final int GetChessRogueStoryInfoCsReq = 5580; - public static final int TakeRogueMiracleHandbookRewardCsReq = 1831; - public static final int GetSaveRaidScRsp = 2247; - public static final int SetSpringRecoverConfigCsReq = 1435; - public static final int GetUnlockTeleportCsReq = 1450; - public static final int MuseumTargetRewardNotify = 4302; - public static final int NewMailScNotify = 867; - public static final int SceneEnterStageScRsp = 1428; - public static final int CityShopInfoScNotify = 1523; - public static final int ChessRogueSelectCellCsReq = 5466; - public static final int ReforgeRogueBuffCsReq = 1899; - public static final int ChessRogueGiveUpCsReq = 5462; - public static final int GetRaidInfoCsReq = 2209; - public static final int GetMissionStatusCsReq = 1229; - public static final int QuitLineupCsReq = 723; - public static final int BuyRogueShopBuffCsReq = 5672; - public static final int MatchBoxingClubOpponentCsReq = 4251; - public static final int TeleportToMissionResetPointScRsp = 1279; - public static final int LogisticsDetonateStarSkiffScRsp = 4769; - public static final int AcceptedPamMissionExpireScRsp = 4068; - public static final int FinishCurTurnCsReq = 4309; - public static final int SetClientRaidTargetCountScRsp = 2286; - public static final int SyncRogueSeasonFinishScNotify = 1866; - public static final int ChessRoguePickAvatarScRsp = 5532; - public static final int SetTurnFoodSwitchCsReq = 573; - public static final int StopRogueAdventureRoomCsReq = 5632; - public static final int StartAetherDivideSceneBattleCsReq = 4839; - public static final int TakeRogueScoreRewardCsReq = 1874; - public static final int JoinLineupScRsp = 742; - public static final int SelectRogueBuffCsReq = 1872; - public static final int ClientDownloadDataScNotify = 14; - public static final int AetherDivideSpiritInfoScNotify = 4832; - public static final int QuitTreasureDungeonScRsp = 4428; - public static final int SceneCastSkillMpUpdateScNotify = 1447; - public static final int SyncRogueReviveInfoScNotify = 1822; - public static final int SendMsgScRsp = 3968; - public static final int PlayerKickOutScNotify = 67; - public static final int AetherDivideTakeChallengeRewardCsReq = 4866; - public static final int GetNpcTakenRewardScRsp = 2168; - public static final int SyncRogueGetItemScNotify = 1880; - public static final int SwitchLineupIndexCsReq = 747; - public static final int StopRogueAdventureRoomScRsp = 5630; - public static final int GiveUpBoxingClubChallengeCsReq = 4223; - public static final int SelectRogueBonusCsReq = 1814; - public static final int RechargeSuccNotify = 574; - public static final int SyncRogueCommonBuffDisplayScNotify = 5647; - public static final int StaminaInfoScNotify = 12; - public static final int UnlockSkilltreeCsReq = 339; - public static final int GetAllRedDotDataScRsp = 5968; - public static final int ComposeItemCsReq = 582; - public static final int TakeTrialActivityRewardScRsp = 2626; - public static final int GetRogueDialogueEventDataCsReq = 1864; - public static final int GetAllServerPrefsDataScRsp = 6168; - public static final int AddRogueBuffScNotify = 1803; - public static final int TrialBackGroundMusicScRsp = 3176; - public static final int ChooseBoxingClubStageOptionalBuffScRsp = 4247; - public static final int PromoteEquipmentScRsp = 544; - public static final int GetRecyleTimeCsReq = 502; - public static final int ClientObjDownloadDataScNotify = 95; - public static final int TakeRogueAeonLevelRewardCsReq = 1898; - public static final int SetCurWaypointCsReq = 451; - public static final int SelectChessRogueBonusCsReq = 5527; - public static final int AddBlacklistScRsp = 2992; - public static final int ChessRogueUpdateBoardScNotify = 5533; - public static final int GetPunkLordMonsterDataScRsp = 3268; - public static final int OpenTreasureDungeonGridCsReq = 4408; - public static final int TakeMailAttachmentScRsp = 876; - public static final int GetGachaInfoCsReq = 1952; - public static final int GetRogueShopBuffInfoScRsp = 5623; - public static final int GetAllSaveRaidScRsp = 2203; - public static final int SelectPhoneThemeScRsp = 5123; - public static final int ExchangeHcoinCsReq = 519; - public static final int AcceptedPamMissionExpireCsReq = 4052; - public static final int GetSaveLogisticsMapScRsp = 4722; - public static final int SetLineupNameScRsp = 704; - public static final int GetUnlockTeleportScRsp = 1412; - public static final int DressAvatarCsReq = 367; - public static final int GetMissionDataCsReq = 1252; - public static final int GetLevelRewardTakenListCsReq = 19; - public static final int ChessRogueUpdateActionPointScNotify = 5571; - public static final int TakeOffAvatarSkinCsReq = 328; - public static final int ReEnterLastElementStageCsReq = 1436; - public static final int ChessRogueEnterCsReq = 5478; - public static final int TakeRogueEndlessActivityPointRewardCsReq = 6042; - public static final int BuyNpcStuffCsReq = 4351; - public static final int FinishCosumeItemMissionScRsp = 1286; - public static final int MuseumTargetStartNotify = 4332; - public static final int SyncClientResVersionCsReq = 123; - public static final int QuitBattleScNotify = 167; - public static final int TrialActivityDataChangeScNotify = 2613; - public static final int AcceptMainMissionScRsp = 1246; - public static final int AceAntiCheaterScRsp = 84; - public static final int ReportPlayerScRsp = 2928; - public static final int SubMissionRewardScNotify = 1230; - public static final int MuseumRandomEventQueryScRsp = 4374; - public static final int SpringRecoverScRsp = 1413; - public static final int GetMuseumInfoCsReq = 4352; - public static final int ChessRoguePickAvatarCsReq = 5408; - public static final int GameplayCounterRecoverCsReq = 1449; - public static final int GetActivityScheduleConfigCsReq = 2639; - public static final int SelectInclinationTextScRsp = 2172; - public static final int SyncRogueHandbookDataUpdateScNotify = 5673; - public static final int GetActivityScheduleConfigScRsp = 2642; - public static final int EnterChessRogueAeonRoomCsReq = 5445; - public static final int ExchangeGachaCeilingScRsp = 1976; - public static final int GetFriendListInfoCsReq = 2952; - public static final int BoxingClubRewardScNotify = 4267; - public static final int TakeRogueEventHandbookRewardScRsp = 1863; - public static final int SyncRogueMiracleSelectInfoScNotify = 1886; - public static final int SetSignatureScRsp = 2809; - public static final int GetBoxingClubInfoCsReq = 4252; - public static final int GetReplayTokenScRsp = 3568; - public static final int StartRaidCsReq = 2252; - public static final int GetTreasureDungeonActivityDataScRsp = 4470; - public static final int LeaveAetherDivideSceneScRsp = 4844; - public static final int SyncRogueAeonScNotify = 1848; - public static final int TakeActivityExpeditionRewardCsReq = 2586; - public static final int ActivateFarmElementCsReq = 1414; - public static final int GetTrainVisitorRegisterCsReq = 3723; - public static final int GroupStateChangeScNotify = 1453; - public static final int GetFriendLoginInfoCsReq = 2981; - public static final int ChessRogueReviveAvatarScRsp = 5517; - public static final int GetRogueBuffEnhanceInfoScRsp = 1828; - public static final int SpringRecoverSingleAvatarCsReq = 1456; - public static final int TakeAllRewardCsReq = 3076; - public static final int TakeExpeditionRewardCsReq = 2523; - public static final int AlleyGuaranteedFundsCsReq = 4777; - public static final int SyncRogueBuffSwapInfoScNotify = 1879; - public static final int GetRaidInfoScRsp = 2270; - public static final int SceneGroupRefreshScNotify = 1460; - public static final int SetGroupCustomSaveDataCsReq = 1487; - public static final int GetServerPrefsDataScRsp = 6144; - public static final int MissionAcceptScNotify = 1238; - public static final int ExpeditionDataChangeScNotify = 2567; + // Cmd Ids + public static final int SpringRecoverCsReq = 1471; + public static final int TakeTrainVisitorUntakenBehaviorRewardScRsp = 3738; + public static final int SelectChatBubbleScRsp = 5184; + public static final int GetEnhanceCommonRogueBuffInfoCsReq = 5659; + public static final int SubmitMonsterResearchActivityMaterialCsReq = 2620; + public static final int EnterAetherDivideSceneCsReq = 4883; + public static final int HeliobusActivityDataCsReq = 5883; + public static final int CommonRogueQueryScRsp = 5686; + public static final int GetRogueShopMiracleInfoCsReq = 5684; + public static final int ApplyFriendCsReq = 2942; + public static final int ComposeLimitNumUpdateNotify = 506; public static final int GetCurAssistCsReq = 2977; - public static final int SetNicknameCsReq = 29; - public static final int SyncDeleteFriendScNotify = 2908; - public static final int GiveUpBoxingClubChallengeScRsp = 4276; - public static final int PlayerGetTokenScRsp = 42; - public static final int BoxingClubChallengeUpdateScNotify = 4272; - public static final int AceAntiCheaterCsReq = 13; - public static final int SetPlayerInfoCsReq = 16; - public static final int MuseumTakeCollectRewardCsReq = 4379; - public static final int GetRogueInitialScoreCsReq = 1824; - public static final int EnterTrialActivityStageCsReq = 2684; - public static final int GetAuthkeyCsReq = 47; - public static final int SceneEntityDisappearScNotify = 1472; - public static final int QuitLineupScRsp = 776; - public static final int TrainVisitorBehaviorFinishCsReq = 3752; - public static final int QuestRecordScNotify = 967; - public static final int GetChatFriendHistoryScRsp = 3976; - public static final int SyncRogueAdventureRoomInfoScNotify = 5652; - public static final int SceneEntityTeleportScRsp = 1454; - public static final int FinishCosumeItemMissionCsReq = 1282; - public static final int GetEnhanceCommonRogueBuffInfoScRsp = 5619; - public static final int TakeChallengeTargetRewardCsReq = 1782; - public static final int EnterFantasticStoryActivityStageScRsp = 4939; - public static final int DeleteBlacklistCsReq = 2932; - public static final int LeaveRogueScRsp = 1876; - public static final int GetRogueEndlessActivityDataScRsp = 6068; - public static final int InteractPropCsReq = 1451; - public static final int MatchBoxingClubOpponentScRsp = 4244; - public static final int UpdateServerPrefsDataScRsp = 6142; - public static final int TakeOffRelicCsReq = 303; - public static final int PlayerLoginFinishCsReq = 54; - public static final int SetRedPointStatusScNotify = 90; - public static final int GetChapterCsReq = 439; - public static final int RogueChallengeRefreshAssistListScRsp = 2624; - public static final int InteractTreasureDungeonGridCsReq = 4404; - public static final int GetFriendRecommendListInfoCsReq = 2904; - public static final int GetExpeditionDataScRsp = 2568; - public static final int EntityBindPropScRsp = 1473; - public static final int SyncRogueRewardInfoScNotify = 1871; - public static final int TradeChessRogueMiracleScRsp = 5476; - public static final int ChessRogueGoAheadScRsp = 5550; - public static final int ChessRogueUpdateAllowedSelectCellScNotify = 5442; - public static final int GetBattleCollegeDataScRsp = 5768; - public static final int RogueChallengeActivityBuffChooseCsReq = 2632; - public static final int SetDisplayAvatarScRsp = 2842; - public static final int SyncRogueBuffSelectInfoScNotify = 1867; - public static final int GetRogueAdventureRoomInfoCsReq = 5686; - public static final int SpringRecoverCsReq = 1459; - public static final int ReforgeRogueBuffScRsp = 1835; - public static final int PlayerLoginFinishScRsp = 58; - public static final int UpdateChessRogueMiracleScNotify = 5485; - public static final int WaypointShowNewCsNotify = 423; - public static final int RepairRogueMiracleScRsp = 5637; - public static final int SetForbidOtherApplyFriendScRsp = 2962; - public static final int CancelActivityExpeditionScRsp = 2582; - public static final int AlleyTakeEventRewardCsReq = 4738; - public static final int ChessRogueCheatRollScRsp = 5459; - public static final int GetLevelRewardTakenListScRsp = 96; - public static final int DailyActiveInfoNotify = 3339; - public static final int GetAssistHistoryCsReq = 2938; - public static final int TakePictureCsReq = 4139; - public static final int HeliobusSnsCommentCsReq = 5867; - public static final int MarkChatEmojiScRsp = 3970; - public static final int HeliobusSnsPostScRsp = 5842; - public static final int RevcMsgScNotify = 3951; - public static final int GetPlayerDetailInfoCsReq = 2951; - public static final int StartTrialActivityScRsp = 2643; - public static final int HeliobusSnsReadScRsp = 5844; - public static final int ChessRogueGiveUpRollScRsp = 5477; - public static final int ReviveRogueAvatarCsReq = 1804; - public static final int UnlockChatBubbleScNotify = 5139; - public static final int GmTalkScNotify = 76; - public static final int ChessRogueLeaveCsReq = 5585; - public static final int BuyNpcStuffScRsp = 4344; - public static final int ChessRogueUpdateMoneyInfoScNotify = 5486; - public static final int RogueModifierUpdateNotify = 5376; - public static final int GetAetherDivideInfoScRsp = 4870; - public static final int SelectChessRogueBonusScRsp = 5574; - public static final int SyncChessRogueBonusSelectInfoScNotify = 5418; - public static final int PlayerReturnTakeRewardCsReq = 4523; - public static final int EquipAetherDividePassiveSkillCsReq = 4808; - public static final int PlayerLoginCsReq = 52; - public static final int TakeFightActivityRewardCsReq = 3642; - public static final int SetLineupNameCsReq = 703; - public static final int GetRogueHandbookDataCsReq = 1812; - public static final int SceneUpdatePositionVersionNotify = 1470; - public static final int SceneCastSkillScRsp = 1442; - public static final int GetTutorialCsReq = 1652; - public static final int HandleFriendCsReq = 2972; - public static final int FinishChessRogueSubStoryScRsp = 5561; - public static final int BatchMarkChatEmojiScRsp = 3986; - public static final int GroupStateChangeScRsp = 1491; - public static final int ExchangeGachaCeilingCsReq = 1923; - public static final int GetMonsterResearchActivityDataScRsp = 2603; - public static final int FinishPlotCsReq = 1152; - public static final int MultipleDropInfoScNotify = 4651; - public static final int GetPhoneDataCsReq = 5152; - public static final int PrivateMsgOfflineUsersScNotify = 3944; - public static final int GetChessRogueBuffEnhanceInfoCsReq = 5430; - public static final int GetFirstTalkByPerformanceNpcCsReq = 2109; - public static final int SyncTaskScRsp = 1223; - public static final int ChessRogueGiveUpScRsp = 5453; - public static final int GetRogueScoreRewardInfoCsReq = 1895; - public static final int GetRndOptionScRsp = 3468; - public static final int SyncRogueHandbookMiracleUnlockScNotify = 5602; - public static final int SetClientRaidTargetCountCsReq = 2282; - public static final int GetPlayerReplayInfoScRsp = 3544; - public static final int ChessRogueReRollDiceCsReq = 5516; - public static final int AvatarExpUpCsReq = 351; - public static final int PunkLordRaidTimeOutScNotify = 3204; - public static final int GetUpdatedArchiveDataCsReq = 2351; - public static final int UnlockPhoneThemeScNotify = 5176; - public static final int DropRogueBuffCsReq = 5646; - public static final int SetStuffToAreaCsReq = 4339; - public static final int GetBasicInfoCsReq = 25; - public static final int GetPunkLordDataScRsp = 3292; - public static final int SetMissionEventProgressCsReq = 1228; - public static final int ChessRogueLeaveScRsp = 5410; - public static final int StartPunkLordRaidScRsp = 3244; - public static final int SetFriendRemarkNameScRsp = 2919; - public static final int ClearAetherDividePassiveSkillCsReq = 4892; - public static final int SyncChessRogueBuffSelectInfoScNotify = 5520; - public static final int SelectChessRogueMiracleScRsp = 5406; - public static final int RepairRogueMiracleCsReq = 5700; - public static final int DailyRefreshNotify = 35; - public static final int SetCurWaypointScRsp = 444; - public static final int GetRogueInitialScoreScRsp = 1889; - public static final int SelectChessRogueSubStoryCsReq = 5425; - public static final int SwitchAetherDivideLineUpSlotScRsp = 4829; - public static final int SyncChessRogueMiracleInfoScNotify = 5496; - public static final int SelectRogueDialogueEventCsReq = 1854; - public static final int SecurityReportCsReq = 4109; - public static final int SharePunkLordMonsterScRsp = 3242; - public static final int FightActivityDataChangeScNotify = 3651; - public static final int GetCurSceneInfoCsReq = 1423; - public static final int PrepareRogueAdventureRoomCsReq = 5668; - public static final int GetCurSceneInfoScRsp = 1476; - public static final int SelectChatBubbleScRsp = 5144; - public static final int RaidKickByServerScNotify = 2229; - public static final int SetAssistCsReq = 2922; - public static final int GetPlayerReplayInfoCsReq = 3551; - public static final int GetFriendApplyListInfoScRsp = 2942; - public static final int GetGachaCeilingCsReq = 1939; - public static final int FinishSectionIdCsReq = 2723; - public static final int AlleyOrderChangedScNotify = 4704; - public static final int SyncTaskCsReq = 1242; - public static final int ReviveRogueAvatarScRsp = 1829; - public static final int SetStuffToAreaScRsp = 4342; - public static final int TakeMailAttachmentCsReq = 823; - public static final int SyncRogueMapRoomScNotify = 1881; - public static final int TakeCityShopRewardCsReq = 1539; - public static final int SummonPunkLordMonsterScRsp = 3276; - public static final int SyncRogueBuffReforgeInfoScNotify = 1825; - public static final int GetBagScRsp = 568; - public static final int PlayerHeartBeatScRsp = 87; - public static final int ReserveStaminaExchangeScRsp = 50; - public static final int SelectChessRogueBuffCsReq = 5595; - public static final int GetDailyActiveInfoScRsp = 3344; - public static final int GetEnhanceCommonRogueBuffInfoCsReq = 5674; - public static final int ReturnLastTownCsReq = 1474; - public static final int AetherDivideRefreshEndlessScRsp = 4805; - public static final int DropChessRogueBuffCsReq = 5456; - public static final int TakeChallengeRaidRewardCsReq = 2276; - public static final int FinishItemIdCsReq = 2739; - public static final int TeleportToMissionResetPointCsReq = 1202; - public static final int PVEBattleResultCsReq = 152; - public static final int ChessRogueUpdateReviveInfoScNotify = 5575; - public static final int TreasureDungeonFinishScNotify = 4468; - public static final int LeaveRaidScRsp = 2244; - public static final int TakeActivityExpeditionRewardScRsp = 2508; - public static final int ShowNewSupplementVisitorCsReq = 3709; - public static final int GetMailCsReq = 852; - public static final int ChessRogueQueryAeonDimensionsScRsp = 5487; - public static final int StartBoxingClubBattleCsReq = 4239; - public static final int UpgradeAreaStatScRsp = 4347; - public static final int EnteredSceneChangeScNotify = 1407; - public static final int QuitBattleCsReq = 151; - public static final int MarkItemScRsp = 566; - public static final int TakeQuestRewardScRsp = 944; - public static final int RefreshTriggerByClientScNotify = 1488; - public static final int EnterRogueEndlessActivityStageCsReq = 6051; - public static final int EnterActivityBattleStageScRsp = 2673; - public static final int SyncRogueDialogueEventDataScNotify = 1865; - public static final int PVEBattleResultScRsp = 168; - public static final int SyncChessRogueMiracleRepairInfoScNotify = 5494; - public static final int GetLoginActivityCsReq = 2652; - public static final int PrepareRogueAdventureRoomScRsp = 5651; - public static final int ChessRogueSelectCellScRsp = 5452; - public static final int MissionEventRewardScNotify = 1292; - public static final int GetRecyleTimeScRsp = 579; - public static final int TradeRogueMiracleCsReq = 1833; - public static final int AddChessRogueBuffScNotify = 5505; - public static final int TakeChallengeRewardScRsp = 1747; - public static final int GetRogueBuffEnhanceInfoCsReq = 1896; - public static final int ExchangeRogueRewardKeyCsReq = 1826; - public static final int FinishSectionIdScRsp = 2776; - public static final int GetPrivateChatHistoryCsReq = 3939; - public static final int RankUpAvatarCsReq = 386; - public static final int UseItemCsReq = 523; - public static final int GetAuthkeyScRsp = 92; - public static final int TakeRogueEndlessActivityPointRewardScRsp = 6023; - public static final int GetChessRogueStoryInfoScRsp = 5547; - public static final int RemoveRogueMiracleScNotify = 1894; - public static final int ApplyFriendScRsp = 2976; - public static final int ActivateFarmElementScRsp = 1462; - public static final int GetTutorialScRsp = 1668; - public static final int ShareScRsp = 4168; - public static final int ChooseBoxingClubResonanceCsReq = 4209; - public static final int GetRogueUnlockDataScRsp = 5638; - public static final int GetAlleyInfoScRsp = 4768; - public static final int AetherDivideRefreshEndlessCsReq = 4877; - public static final int ChessRogueConfirmRollScRsp = 5572; - public static final int RankUpEquipmentCsReq = 567; - public static final int CurTrialActivityScNotify = 2636; - public static final int GetRogueShopMiracleInfoCsReq = 5644; - public static final int UnlockBackGroundMusicScRsp = 3142; - public static final int GetChatFriendHistoryCsReq = 3923; - public static final int SceneEntityUpdateScNotify = 1467; - public static final int ClientObjUploadCsReq = 57; - public static final int GetShareDataCsReq = 4151; - public static final int GetFightActivityDataCsReq = 3652; - public static final int DelSaveRaidScNotify = 2204; - public static final int GetKilledPunkLordMonsterDataScRsp = 3232; - public static final int FinishTutorialScRsp = 1672; - public static final int TrainVisitorBehaviorFinishScRsp = 3768; - public static final int ChessRogueUpdateLevelBaseInfoScNotify = 5589; - public static final int PlayerReturnSignCsReq = 4568; - public static final int ComposeLimitNumCompleteNotify = 600; - public static final int FantasticStoryActivityBattleEndScNotify = 4942; - public static final int EnterRogueEndlessActivityStageScRsp = 6044; - public static final int EnterSectionScRsp = 1479; - public static final int StartBattleCollegeCsReq = 5744; - public static final int SendMsgCsReq = 3952; - public static final int EnhanceRogueBuffScRsp = 1830; - public static final int LockRelicCsReq = 592; - public static final int MarkChatEmojiCsReq = 3909; - public static final int SetGroupCustomSaveDataScRsp = 1443; - public static final int SetNicknameScRsp = 74; - public static final int DropRogueBuffScRsp = 5677; - public static final int DailyTaskDataScNotify = 1276; - public static final int GetNpcStatusCsReq = 2751; - public static final int StartRaidScRsp = 2268; - public static final int GetLevelRewardCsReq = 28; - public static final int TakeChallengeTargetRewardScRsp = 1786; - public static final int GetRogueHandbookDataScRsp = 1827; - public static final int GetAllSaveRaidCsReq = 2292; - public static final int TakeLoginActivityRewardScRsp = 2644; - public static final int QuitTreasureDungeonCsReq = 4496; - public static final int PlayerReturnPointChangeScNotify = 4544; - public static final int DailyFirstMeetPamScRsp = 3444; - public static final int SetGenderCsReq = 69; - public static final int GetEnteredSceneScRsp = 1493; - public static final int HeliobusSnsPostCsReq = 5839; - public static final int FinishChapterScNotify = 4951; - public static final int QueryProductInfoScRsp = 55; - public static final int GetQuestDataScRsp = 968; - public static final int GetSaveLogisticsMapCsReq = 4737; - public static final int QuitRogueScRsp = 1877; - public static final int GetRogueAeonInfoScRsp = 1897; - public static final int SetFriendRemarkNameCsReq = 2974; - public static final int ChessRogueRollDiceCsReq = 5448; - public static final int ChessRogueRollDiceScRsp = 5560; - public static final int InterruptMissionEventCsReq = 1219; - public static final int EnhanceCommonRogueBuffScRsp = 5628; - public static final int DressAvatarScRsp = 372; - public static final int SelectChessRogueMiracleCsReq = 5483; - public static final int AntiAddictScNotify = 4; - public static final int SelectChessRogueSubStoryScRsp = 5588; - public static final int TakeAssistRewardScRsp = 2973; - public static final int ChessRogueCheatRollCsReq = 5428; - public static final int GetServerPrefsDataCsReq = 6151; - public static final int ServerAnnounceNotify = 37; - public static final int OpenTreasureDungeonGridScRsp = 4447; - public static final int GetNpcTakenRewardCsReq = 2152; - public static final int GetStageLineupCsReq = 752; - public static final int FinishChessRogueSubStoryCsReq = 5539; - public static final int RogueChallengeActivityBuffChooseScRsp = 2630; - public static final int StartFinishMainMissionScNotify = 1237; - public static final int SpringRefreshCsReq = 1403; - public static final int ChessRogueEnterCellScRsp = 5405; - public static final int GetQuestRecordCsReq = 923; - public static final int ChangeLineupLeaderCsReq = 786; - public static final int HeliobusSnsReadCsReq = 5851; - public static final int SetTurnFoodSwitchScRsp = 516; - public static final int GetRogueEndlessActivityDataCsReq = 6052; - public static final int AetherDivideFinishChallengeScNotify = 4879; - public static final int ChessRogueQueryScRsp = 5569; - public static final int GetBattleCollegeDataCsReq = 5752; - public static final int FinishTalkMissionCsReq = 1251; - public static final int FinishPerformSectionIdCsReq = 2767; - public static final int SetAetherDivideLineUpScRsp = 4886; - public static final int TakeTrainVisitorUntakenBehaviorRewardScRsp = 3772; - public static final int RankUpAvatarScRsp = 308; - public static final int LockRelicScRsp = 503; - public static final int PlayerSyncScNotify = 652; - public static final int RankUpEquipmentScRsp = 572; - public static final int StartBattleCollegeScRsp = 5739; - public static final int AlleyEventEffectNotify = 4772; - public static final int SyncRogueMiracleRepairInfoScNotify = 5679; - public static final int TakeAllRewardScRsp = 3067; - public static final int SyncRoguePickAvatarInfoScNotify = 1861; - public static final int ChessRogueSelectBpScRsp = 5536; - public static final int ChessRogueSelectBpCsReq = 5590; - public static final int TextJoinBatchSaveCsReq = 3839; - public static final int LogisticsDetonateStarSkiffCsReq = 4741; - public static final int TriggerVoiceCsReq = 4182; - public static final int GetExpeditionDataCsReq = 2552; - public static final int SyncRogueCommonMiracleDisplayScNotify = 5692; - public static final int TradeRogueMiracleScRsp = 1885; - public static final int ChessRogueReRollDiceScRsp = 5409; - public static final int GetFirstTalkByPerformanceNpcScRsp = 2170; - public static final int GetFriendRecommendListInfoScRsp = 2929; - public static final int PunkLordDataChangeNotify = 3222; - public static final int RogueModifierAddNotify = 5351; - public static final int GetAssistHistoryScRsp = 2966; - public static final int GetAetherDivideInfoCsReq = 4809; - public static final int AetherDivideRefreshEndlessScNotify = 4838; - public static final int DestroyItemScRsp = 546; - public static final int PromoteEquipmentCsReq = 551; - public static final int EnterSectionCsReq = 1402; - public static final int HeliobusChallengeUpdateScNotify = 5828; - public static final int ChessRogueQueryCsReq = 5455; - public static final int AetherDivideLineupScNotify = 4846; - public static final int SpringRefreshScRsp = 1404; - public static final int AlleyShipUsedCountScNotify = 4746; - public static final int UseTreasureDungeonItemScRsp = 4419; - public static final int SelectPhoneThemeCsReq = 5142; - public static final int GateServerScNotify = 43; - public static final int GetSingleRedDotParamGroupCsReq = 5939; - public static final int TextJoinBatchSaveScRsp = 3842; - public static final int SyncClientResVersionScRsp = 176; - public static final int PlayerReturnTakePointRewardCsReq = 4539; - public static final int GetCurChallengeCsReq = 1772; - public static final int GetRogueAdventureRoomInfoScRsp = 5608; - public static final int SyncRogueFinishScNotify = 1808; - public static final int ExchangeRogueBuffWithMiracleScRsp = 5629; - public static final int ChessRogueUpdateDiceInfoScNotify = 5503; - public static final int GetRogueScoreRewardInfoScRsp = 1857; - public static final int FightTreasureDungeonMonsterCsReq = 4492; - public static final int AlleyGuaranteedFundsScRsp = 4705; - public static final int TakeRogueMiracleHandbookRewardScRsp = 1860; - public static final int GetTrialActivityDataScRsp = 2659; - public static final int SellItemScRsp = 529; - public static final int SetIsDisplayAvatarInfoCsReq = 2823; - public static final int TakeOffRelicScRsp = 304; - public static final int GetChatEmojiListScRsp = 3972; - public static final int GetAlleyInfoCsReq = 4752; - public static final int GetSecretKeyInfoScRsp = 45; - public static final int SetPlayerInfoScRsp = 24; - public static final int GetCurChallengeScRsp = 1709; - public static final int TakeOffAvatarSkinScRsp = 332; - public static final int LogisticsScoreRewardSyncInfoScNotify = 4773; - public static final int TakeKilledPunkLordMonsterScoreCsReq = 3300; - public static final int GetFriendListInfoScRsp = 2968; - public static final int SyncChessRogueMiracleTradeInfoScNotify = 5507; - public static final int RemoveChessRogueBuffScNotify = 5443; - public static final int ChessRogueStartCsReq = 5473; - public static final int DressRelicAvatarScRsp = 392; - public static final int HeliobusUpgradeLevelScRsp = 5886; - public static final int GetMultipleDropInfoScRsp = 4668; - public static final int GetNpcStatusScRsp = 2744; - public static final int ChessRogueEnterCellCsReq = 5510; - public static final int SetAssistScRsp = 2946; - public static final int QuitRogueCsReq = 1846; - public static final int RetcodeNotify = 75; - public static final int SecurityReportScRsp = 4170; - public static final int DoGachaScRsp = 1944; - public static final int SyncRogueEventHandbookScNotify = 1806; - public static final int EnterTreasureDungeonScRsp = 4486; - public static final int GetBoxingClubInfoScRsp = 4268; - public static final int GetRndOptionCsReq = 3452; - public static final int StartAetherDivideStageBattleCsReq = 4874; - public static final int ChessRogueGoAheadCsReq = 5567; - public static final int TakeChallengeRaidRewardScRsp = 2267; - public static final int HeliobusActivityDataCsReq = 5852; - public static final int TakePrestigeRewardCsReq = 4709; - public static final int HeliobusUpgradeLevelCsReq = 5882; - public static final int UnlockSkilltreeScRsp = 342; - public static final int EnterAetherDivideSceneCsReq = 4852; - public static final int GetTrainVisitorRegisterScRsp = 3776; - public static final int TextJoinQueryCsReq = 3851; - public static final int SelectRogueBuffScRsp = 1809; - public static final int AcceptExpeditionScRsp = 2544; - public static final int PlayerReturnTakePointRewardScRsp = 4542; - public static final int SyncRogueBuffDropInfoScNotify = 5622; - public static final int UpgradeAreaCsReq = 4382; - public static final int SwitchAetherDivideLineUpSlotCsReq = 4804; - public static final int MarkItemCsReq = 538; - public static final int AcceptMissionEventCsReq = 1203; - public static final int ExchangeRogueBuffWithMiracleCsReq = 5604; - public static final int GetAllLineupDataScRsp = 774; - public static final int GetPunkLordDataCsReq = 3247; - public static final int PlayerLogoutCsReq = 51; - public static final int TakeBpRewardCsReq = 3044; - public static final int SelectRogueDialogueEventScRsp = 1858; - public static final int SetBoxingClubResonanceLineupCsReq = 4282; - public static final int CancelMarkItemNotify = 541; - public static final int TakeChallengeRewardCsReq = 1708; - public static final int GetShopListScRsp = 1568; - public static final int FinishTutorialGuideScRsp = 1670; - public static final int ChessRogueStartScRsp = 5548; - public static final int EnterRogueMapRoomCsReq = 1873; - public static final int GetPunkLordBattleRecordCsReq = 3246; - public static final int ChessRogueUpdateAeonModifierValueScNotify = 5525; - public static final int GetLoginChatInfoScRsp = 3947; - public static final int GetTrainVisitorBehaviorCsReq = 3751; - public static final int EnterTrialActivityStageScRsp = 2656; - public static final int RogueNpcDisappearCsReq = 5670; - public static final int PickRogueAvatarScRsp = 1892; - public static final int GetMissionEventDataScRsp = 1247; - public static final int GetRogueTalentInfoScRsp = 1821; - public static final int BattleLogReportCsReq = 172; - public static final int UpdatePlayerSettingScRsp = 18; - public static final int StartFinishSubMissionScNotify = 1300; - public static final int SwapLineupScRsp = 772; - public static final int StartChallengeScRsp = 1744; - public static final int FinishFirstTalkNpcScRsp = 2176; - public static final int FeatureSwitchClosedScNotify = 33; - public static final int GameplayCounterCountDownScRsp = 1457; - public static final int SyncEntityBuffChangeListScNotify = 1482; - public static final int StartAetherDivideSceneBattleScRsp = 4842; - public static final int TakeRogueEndlessActivityAllBonusRewardScRsp = 6067; - public static final int MuseumRandomEventSelectCsReq = 4319; - public static final int FinishTutorialCsReq = 1667; - public static final int AlleyTakeEventRewardScRsp = 4766; - public static final int PunkLordBattleResultScNotify = 3296; - public static final int BuyRogueShopBuffScRsp = 5609; - public static final int TakeOffEquipmentScRsp = 370; - public static final int GetChessRogueStoryAeonTalkInfoCsReq = 5500; - public static final int LastSpringRefreshTimeNotify = 1429; - public static final int CurAssistChangedNotify = 2916; - public static final int GetFriendApplyListInfoCsReq = 2939; - public static final int OpenRogueChestCsReq = 1856; - public static final int TakeOffEquipmentCsReq = 309; - public static final int DeleteFriendCsReq = 2982; - public static final int GetAvatarDataCsReq = 352; - public static final int ExpUpRelicScRsp = 547; - public static final int ChallengeLineupNotify = 1770; - public static final int HeliobusEnterBattleScRsp = 5874; - public static final int GetSpringRecoverDataCsReq = 1425; - public static final int GetRogueTalentInfoCsReq = 1810; - public static final int BuyBpLevelScRsp = 3023; - public static final int AvatarExpUpScRsp = 344; - public static final int ComposeSelectedRelicCsReq = 528; - public static final int ChangeLineupLeaderScRsp = 708; - public static final int GetVideoVersionKeyScRsp = 48; - public static final int DelMailScRsp = 842; - public static final int AetherDivideSpiritExpUpCsReq = 4896; - public static final int SyncRogueAreaUnlockScNotify = 1890; - public static final int GetEnteredSceneCsReq = 1497; - public static final int GetQuestDataCsReq = 952; - public static final int SyncLineupNotify = 709; - public static final int ChessRogueLayerAccountInfoNotify = 5558; - public static final int EnterAetherDivideSceneScRsp = 4868; - public static final int AcceptMissionEventScRsp = 1204; - public static final int EnhanceChessRogueBuffScRsp = 5479; - public static final int GetLevelRewardScRsp = 32; - public static final int DressRelicAvatarCsReq = 347; - public static final int SceneEntityTeleportCsReq = 1445; - public static final int FinishFirstTalkByPerformanceNpcScRsp = 2186; - public static final int AlleyPlacingGameScRsp = 4786; - public static final int PlayerReturnStartScNotify = 4552; - public static final int GetPhoneDataScRsp = 5168; - public static final int EnterRogueMapRoomScRsp = 1816; - public static final int ChessRogueQuitScRsp = 5512; - public static final int ComposeSelectedRelicScRsp = 532; + public static final int ChangeLineupLeaderCsReq = 764; + public static final int TrialActivityDataChangeScNotify = 2679; + public static final int AlleyGuaranteedFundsCsReq = 4777; + public static final int UpdateFeatureSwitchScNotify = 43; + public static final int FinishQuestCsReq = 938; + public static final int ChessRogueRollDiceScRsp = 5485; + public static final int GetAuthkeyScRsp = 73; + public static final int ActivateFarmElementCsReq = 1470; + public static final int StartAetherDivideChallengeBattleScRsp = 4819; + public static final int SetAetherDivideLineUpCsReq = 4855; + public static final int StartRogueScRsp = 1884; + public static final int UnlockAvatarSkinScNotify = 333; + public static final int SellItemCsReq = 520; + public static final int SwapLineupScRsp = 738; + public static final int TakeAllApRewardCsReq = 3360; + public static final int GetChallengeGroupStatisticsCsReq = 1773; + public static final int RetcodeNotify = 86; + public static final int FinishPerformSectionIdScRsp = 2738; + public static final int AetherDivideFinishChallengeScNotify = 4865; + public static final int SyncLineupNotify = 749; + public static final int UseItemScRsp = 519; + public static final int GetFarmStageGachaInfoCsReq = 1304; + public static final int UseTreasureDungeonItemScRsp = 4480; + public static final int AcceptMainMissionCsReq = 1224; + public static final int JoinLineupCsReq = 782; + public static final int DelSaveRaidScNotify = 2220; + public static final int InteractPropScRsp = 1484; + public static final int EnableRogueTalentCsReq = 1823; + public static final int CurTrialActivityScNotify = 2611; + public static final int UnlockPhoneThemeScNotify = 5119; + public static final int UpdateRogueAdventureRoomScoreScRsp = 5676; + public static final int NewAssistHistoryNotify = 2927; + public static final int AlleyShipUsedCountScNotify = 4778; + public static final int RecoverAllLineupCsReq = 1477; + public static final int HeliobusSnsPostScRsp = 5860; + public static final int SetNicknameCsReq = 92; + public static final int SharePunkLordMonsterCsReq = 3282; + public static final int GetChessRogueBuffEnhanceInfoScRsp = 5570; + public static final int AlleyPlacingGameCsReq = 4755; + public static final int TakeRogueEventHandbookRewardCsReq = 5618; + public static final int GetPlayerReturnMultiDropInfoScRsp = 4682; + public static final int MuseumTakeCollectRewardCsReq = 4365; + public static final int GetActivityScheduleConfigCsReq = 2682; + public static final int DeleteSummonUnitCsReq = 1447; + public static final int RefreshAlleyOrderScRsp = 4745; + public static final int FinishChessRogueSubStoryScRsp = 5406; + public static final int GetCurSceneInfoScRsp = 1419; + public static final int GetFightActivityDataScRsp = 3661; + public static final int QuitBattleCsReq = 104; + public static final int FinishFirstTalkNpcScRsp = 2119; + public static final int StartCocoonStageScRsp = 1427; + public static final int BattleLogReportScRsp = 149; + public static final int TreasureDungeonFinishScNotify = 4461; + public static final int ChessRogueEnterScRsp = 5595; + public static final int SetMissionEventProgressCsReq = 1246; + public static final int TreasureDungeonDataScNotify = 4483; + public static final int StrongChallengeActivityBattleEndScNotify = 6682; + public static final int StartAlleyEventCsReq = 4742; + public static final int ChessRogueCellUpdateNotify = 5469; + public static final int QuestRecordScNotify = 997; + public static final int BuyRogueShopMiracleCsReq = 5619; + public static final int EnterRogueEndlessActivityStageScRsp = 6084; + public static final int StartAetherDivideStageBattleCsReq = 4859; + public static final int GetLoginActivityCsReq = 2683; + public static final int UpdateServerPrefsDataCsReq = 6182; + public static final int StartBoxingClubBattleScRsp = 4260; + public static final int ChessRogueUpdateReviveInfoScNotify = 5562; + public static final int GetWaypointCsReq = 483; + public static final int ReturnLastTownScRsp = 1480; + public static final int LeaveRogueScRsp = 1819; + public static final int FinishTutorialGuideCsReq = 1649; + public static final int SpaceZooExchangeItemScRsp = 6755; + public static final int SetSpringRecoverConfigScRsp = 1444; + public static final int GetAlleyInfoCsReq = 4783; + public static final int GetAllSaveRaidScRsp = 2245; + public static final int FightTreasureDungeonMonsterScRsp = 4445; + public static final int FinishCosumeItemMissionCsReq = 1255; + public static final int ExchangeStaminaScRsp = 40; + public static final int ChessRogueNousDiceSurfaceUnlockNotify = 5520; + public static final int FinishChapterScNotify = 4904; public static final int GetPunkLordBattleRecordScRsp = 3277; - public static final int GetSaveRaidCsReq = 2208; - public static final int GetLoginChatInfoCsReq = 3908; - public static final int SetForbidOtherApplyFriendCsReq = 2914; - public static final int CancelExpeditionScRsp = 2542; - public static final int SetGameplayBirthdayCsReq = 64; - public static final int SetCurInteractEntityScRsp = 1446; - public static final int ChessRogueGiveUpRollCsReq = 5538; - public static final int InterruptMissionEventScRsp = 1296; - public static final int GetTutorialGuideCsReq = 1651; - public static final int GetCurLineupDataCsReq = 751; - public static final int EnterFantasticStoryActivityStageCsReq = 4944; - public static final int GetCurBattleInfoCsReq = 139; - public static final int TriggerVoiceScRsp = 4186; - public static final int DoGachaCsReq = 1951; - public static final int GetPlayerReturnMultiDropInfoCsReq = 4644; - public static final int GetAllRedDotDataCsReq = 5952; - public static final int GetMainMissionCustomValueCsReq = 1277; - public static final int HeliobusSelectSkillCsReq = 5847; - public static final int GetSceneMapInfoCsReq = 1480; - public static final int FinishCurTurnScRsp = 4370; - public static final int EquipAetherDividePassiveSkillScRsp = 4847; - public static final int DeleteSummonUnitScRsp = 1411; - public static final int ChallengeSettleNotify = 1723; - public static final int SyncRogueStatusScNotify = 1834; - public static final int PromoteAvatarCsReq = 323; - public static final int BattlePassInfoNotify = 3052; - public static final int CancelActivityExpeditionCsReq = 2570; - public static final int SetIsDisplayAvatarInfoScRsp = 2876; - public static final int PickRogueAvatarCsReq = 1847; - public static final int GetRogueShopMiracleInfoScRsp = 5639; - public static final int StartCocoonStageCsReq = 1466; - public static final int GetMuseumInfoScRsp = 4368; - public static final int AetherDivideTakeChallengeRewardScRsp = 4841; - public static final int EntityBindPropCsReq = 1469; - public static final int SetMissionEventProgressScRsp = 1232; - public static final int GetShopListCsReq = 1552; - public static final int GetArchiveDataCsReq = 2352; - public static final int SelectRogueBonusScRsp = 1862; - public static final int PrestigeLevelUpCsReq = 4774; - public static final int MarkReadMailCsReq = 851; - public static final int SyncRogueVirtualItemInfoScNotify = 1817; - public static final int GameplayCounterUpdateScNotify = 1431; - public static final int ChessRogueQuestFinishNotify = 5573; - public static final int SyncChessRogueMainStoryFinishScNotify = 5537; - public static final int AcceptMainMissionCsReq = 1222; - public static final int DropChessRogueBuffScRsp = 5521; - public static final int ChooseBoxingClubResonanceScRsp = 4270; - public static final int TextJoinQueryScRsp = 3844; - public static final int MuseumFundsChangedScNotify = 4303; - public static final int GetCurAssistScRsp = 2905; - public static final int HeliobusLineupUpdateScNotify = 5832; - public static final int GetHeroBasicTypeInfoCsReq = 77; - public static final int TriggerHealVoiceCsReq = 4123; - public static final int RogueModifierDelNotify = 5367; - public static final int ExchangeRogueRewardKeyScRsp = 1887; - public static final int GetMarkItemListScRsp = 505; - public static final int GetChallengeRaidInfoScRsp = 2223; - public static final int DressAvatarSkinCsReq = 319; - public static final int DressAvatarSkinScRsp = 396; - public static final int HeliobusInfoChangedScNotify = 5870; - public static final int GetAvatarDataScRsp = 368; - public static final int ExpUpEquipmentCsReq = 509; - public static final int SceneCastSkillCsReq = 1439; - public static final int SyncChessRogueBuffReforgeInfoScNotify = 5458; - public static final int EnterAdventureScRsp = 1368; - public static final int SyncRogueMiracleHandbookScNotify = 1883; - public static final int UseTreasureDungeonItemCsReq = 4474; - public static final int StartAetherDivideStageBattleScRsp = 4819; - public static final int CancelCacheNotifyCsReq = 4167; - public static final int RemoveStuffFromAreaScRsp = 4376; - public static final int AcceptExpeditionCsReq = 2551; - public static final int LogisticsGameScRsp = 4744; - public static final int UpdateRedDotDataScRsp = 5944; - public static final int ClearAetherDividePassiveSkillScRsp = 4803; - public static final int GetMissionStatusScRsp = 1274; - public static final int AcceptActivityExpeditionCsReq = 2572; - public static final int AetherDivideSkillItemScNotify = 4837; - public static final int UnlockBackGroundMusicCsReq = 3139; - public static final int RefreshTriggerByClientCsReq = 1410; - public static final int SwapLineupCsReq = 767; - public static final int StartAetherDivideChallengeBattleCsReq = 4823; - public static final int FinishRogueDialogueGroupCsReq = 1813; - public static final int SyncTurnFoodNotify = 569; - public static final int PlayerReturnTakeRewardScRsp = 4576; - public static final int MuseumRandomEventStartScNotify = 4304; - public static final int GetAssistListScRsp = 2937; - public static final int ComposeItemScRsp = 586; - public static final int MarkReadMailScRsp = 844; - public static final int SwapRogueBuffScRsp = 1837; - public static final int RemoveRogueBuffScNotify = 1802; - public static final int TakeRogueEndlessActivityAllBonusRewardCsReq = 6076; - public static final int TakeCityShopRewardScRsp = 1542; - public static final int RefreshTriggerByClientScRsp = 1421; - public static final int RogueModifierStageStartNotify = 5372; - public static final int SetGameplayBirthdayScRsp = 59; - public static final int RogueModifierSelectCellCsReq = 5344; - public static final int RepairChessRogueMiracleScRsp = 5570; - public static final int PlayerReturnForceFinishScNotify = 4509; - public static final int JoinLineupCsReq = 739; - public static final int HeliobusUnlockSkillScNotify = 5808; - public static final int ChessRogueConfirmRollCsReq = 5475; - public static final int MuseumRandomEventQueryCsReq = 4329; - public static final int SyncRogueBonusSelectInfoScNotify = 1855; - public static final int PlayerHeartBeatCsReq = 26; - public static final int UpdateRedDotDataCsReq = 5951; - public static final int GetPlatformPlayerInfoScRsp = 2989; - public static final int StartPunkLordRaidCsReq = 3251; - public static final int ChooseBoxingClubStageOptionalBuffCsReq = 4208; - public static final int GetPlatformPlayerInfoCsReq = 2924; - public static final int ExpUpRelicCsReq = 508; - public static final int GetNpcMessageGroupCsReq = 2752; - public static final int StartAlleyEventCsReq = 4723; - public static final int GetBasicInfoScRsp = 99; - public static final int GetGachaInfoScRsp = 1968; - public static final int SelectRogueMiracleScRsp = 1869; - public static final int RegionStopScNotify = 3; - public static final int FinishQuestCsReq = 972; - public static final int GetPlayerBoardDataScRsp = 2868; - public static final int MuseumDispatchFinishedScNotify = 4328; - public static final int ChessRogueUpdateUnlockLevelScNotify = 5449; - public static final int RogueEndlessActivityBattleEndScNotify = 6039; - public static final int GetCurLineupDataScRsp = 744; - public static final int ExchangeStaminaCsReq = 86; - public static final int RaidInfoNotify = 2239; - public static final int SummonPunkLordMonsterCsReq = 3223; - public static final int TakeMonsterResearchActivityRewardCsReq = 2674; - public static final int ChessRogueEnterScRsp = 5444; - public static final int GetChallengeRaidInfoCsReq = 2242; - public static final int SetAssistAvatarScRsp = 2882; - public static final int SetLanguageCsReq = 79; - public static final int GetHeroBasicTypeInfoScRsp = 5; - public static final int GetCurBattleInfoScRsp = 142; - public static final int TakeExpeditionRewardScRsp = 2576; - public static final int TakeAllApRewardCsReq = 3342; - public static final int TakePrestigeRewardScRsp = 4770; - public static final int EnterRogueScRsp = 1842; - public static final int SceneEntityMoveScNotify = 1409; - public static final int ChessRogueQueryAeonDimensionsCsReq = 5482; - public static final int TradeChessRogueMiracleCsReq = 5513; - public static final int RollRogueBuffCsReq = 1870; - public static final int GmTalkCsReq = 72; - public static final int UpdateRogueMiracleScNotify = 1845; - public static final int EnterFightActivityStageCsReq = 3644; - public static final int UnlockTutorialScRsp = 1642; - public static final int HeliobusSnsLikeScRsp = 5876; - public static final int LeaveTrialActivityCsReq = 2633; - public static final int FinishAeonDialogueGroupScRsp = 1807; - public static final int ClientObjUploadScRsp = 31; - public static final int VirtualLineupDestroyNotify = 719; - public static final int EnableRogueTalentScRsp = 1878; - public static final int GetSceneMapInfoScRsp = 1498; - public static final int TakeTrainVisitorUntakenBehaviorRewardCsReq = 3767; - public static final int GetJukeboxDataCsReq = 3152; - public static final int SetHeroBasicTypeScRsp = 46; - public static final int GetFantasticStoryActivityDataScRsp = 4968; - public static final int TakeChapterRewardCsReq = 476; - public static final int GetExhibitScNotify = 4372; - public static final int GetFirstTalkNpcScRsp = 2142; - public static final int TrainVisitorRewardSendNotify = 3742; - public static final int AcceptActivityExpeditionScRsp = 2509; - public static final int SelectChessRogueBuffScRsp = 5469; - public static final int SetAetherDivideLineUpCsReq = 4882; - public static final int BuyRogueShopMiracleScRsp = 5667; - public static final int PlayBackGroundMusicScRsp = 3144; - public static final int TextJoinSaveCsReq = 3852; - public static final int SyncApplyFriendScNotify = 2967; - public static final int StartAlleyEventScRsp = 4776; - public static final int SearchPlayerScRsp = 2979; - public static final int SyncHandleFriendScNotify = 2970; - public static final int BattleLogReportScRsp = 109; - public static final int MuseumInfoChangedScNotify = 4392; - public static final int OpenRogueChestScRsp = 1875; - public static final int HeliobusStartRaidCsReq = 5819; - public static final int GetMissionEventDataCsReq = 1208; - public static final int TakeApRewardCsReq = 3352; - public static final int TakeTalkRewardCsReq = 2151; - public static final int LeaveAetherDivideSceneCsReq = 4851; - public static final int RollRogueBuffScRsp = 1882; - public static final int EnterAdventureCsReq = 1352; - public static final int ExpUpEquipmentScRsp = 570; - public static final int MuseumTakeCollectRewardScRsp = 4400; - public static final int SyncChessRogueMiracleSelectInfoScNotify = 5518; - public static final int HeliobusSnsLikeCsReq = 5823; - public static final int MissionGroupWarnScNotify = 1270; - public static final int TakeRogueAeonLevelRewardScRsp = 1801; - public static final int SetBoxingClubResonanceLineupScRsp = 4286; - public static final int SyncRogueMiracleTradeInfoScNotify = 1843; - public static final int GetRogueInfoScRsp = 1868; - public static final int SubmitMonsterResearchActivityMaterialCsReq = 2604; - public static final int HeliobusSnsUpdateScNotify = 5809; - public static final int HeroBasicTypeChangedNotify = 89; + public static final int GetShopListScRsp = 1561; + public static final int LogisticsScoreRewardSyncInfoScNotify = 4756; + public static final int GetStageLineupScRsp = 761; + public static final int LockRelicCsReq = 573; + public static final int EnterSceneCsReq = 1417; + public static final int SetClientPausedCsReq = 1422; + public static final int PlayerLogoutCsReq = 4; + public static final int SpaceZooMutateCsReq = 6782; + public static final int BattlePassInfoNotify = 3083; + public static final int ReserveStaminaExchangeScRsp = 81; + public static final int MarkItemCsReq = 553; + public static final int StartFinishMainMissionScNotify = 1206; + public static final int FinishAeonDialogueGroupCsReq = 1821; + public static final int HeliobusSnsUpdateScNotify = 5849; + public static final int UpdateFloorSavedValueNotify = 1491; + public static final int TrainVisitorBehaviorFinishScRsp = 3761; + public static final int LockEquipmentCsReq = 582; + public static final int AetherDivideTainerInfoScNotify = 4887; + public static final int TextJoinBatchSaveCsReq = 3882; + public static final int ExpUpRelicScRsp = 552; + public static final int AlleyShipUnlockScNotify = 4708; + public static final int DeactivateFarmElementScRsp = 1425; + public static final int ChessRogueEnterNextLayerScRsp = 5448; + public static final int SyncRogueFinishScNotify = 1840; + public static final int HeliobusSnsReadCsReq = 5804; + public static final int ChessRogueNousEditDiceCsReq = 5437; + public static final int LeaveTrialActivityScRsp = 2658; + public static final int SetGameplayBirthdayScRsp = 71; + public static final int GroupStateChangeScNotify = 1466; + public static final int SetSignatureCsReq = 2838; + public static final int EquipAetherDividePassiveSkillCsReq = 4840; + public static final int GetLevelRewardTakenListCsReq = 80; + public static final int SetLanguageScRsp = 87; + public static final int InteractTreasureDungeonGridScRsp = 4492; + public static final int GetRndOptionCsReq = 3483; + public static final int ChessRogueNousDiceUpdateNotify = 5537; + public static final int TakeQuestRewardCsReq = 904; + public static final int ChessRoguePickAvatarScRsp = 5453; + public static final int LeaveAetherDivideSceneScRsp = 4884; + public static final int MuseumRandomEventStartScNotify = 4320; + public static final int RemoveStuffFromAreaScRsp = 4319; + public static final int SetGenderScRsp = 56; + public static final int BoxingClubChallengeUpdateScNotify = 4238; + public static final int SyncRogueCommonVirtualItemInfoScNotify = 5667; + public static final int GetBasicInfoScRsp = 67; + public static final int AetherDivideSpiritExpUpCsReq = 4890; + public static final int GetFirstTalkByPerformanceNpcScRsp = 2109; + public static final int TrainRefreshTimeNotify = 3782; + public static final int ChooseBoxingClubStageOptionalBuffScRsp = 4252; + public static final int TakeCityShopRewardScRsp = 1560; + public static final int ChessRogueUpdateUnlockLevelScNotify = 5592; + public static final int ReviveRogueAvatarCsReq = 1820; + public static final int SetTurnFoodSwitchScRsp = 522; + public static final int SceneEntityMoveScNotify = 1449; + public static final int TakeTrialActivityRewardScRsp = 2651; + public static final int ClientObjDownloadDataScNotify = 10; + public static final int ExchangeHcoinScRsp = 590; + public static final int DressAvatarSkinCsReq = 380; + public static final int QueryProductInfoCsReq = 16; + public static final int TakeChallengeRaidRewardScRsp = 2297; + public static final int GetReplayTokenCsReq = 3583; + public static final int ChessRogueNousEnableRogueTalentScRsp = 5580; + public static final int EnhanceCommonRogueBuffCsReq = 5690; + public static final int EnterStrongChallengeActivityStageScRsp = 6684; + public static final int PromoteEquipmentScRsp = 584; + public static final int RankUpAvatarScRsp = 340; + public static final int SceneEntityMoveScRsp = 1461; + public static final int AlleyEventEffectNotify = 4738; + public static final int GetCurBattleInfoScRsp = 160; + public static final int TriggerVoiceCsReq = 4155; + public static final int GameplayCounterUpdateScNotify = 1454; + public static final int ChessRogueUpdateDicePassiveAccumulateValueScNotify = 5567; + public static final int GiveUpBoxingClubChallengeScRsp = 4219; + public static final int AcceptedPamMissionExpireScRsp = 4061; + public static final int RegionStopScNotify = 45; + public static final int TakeRogueEndlessActivityPointRewardScRsp = 6042; + public static final int GetChessRogueStoryAeonTalkInfoCsReq = 5472; + public static final int DailyTaskDataScNotify = 1219; + public static final int BuyNpcStuffScRsp = 4384; + public static final int GetMissionDataCsReq = 1283; + public static final int GetFriendApplyListInfoCsReq = 2982; + public static final int GetUnlockTeleportCsReq = 1481; + public static final int ChessRogueFinishCurRoomNotify = 5587; + public static final int TextJoinQueryCsReq = 3804; + public static final int LeaveChallengeScRsp = 1760; + public static final int TakeRogueAeonLevelRewardCsReq = 1874; + public static final int SummonPunkLordMonsterScRsp = 3219; + public static final int SetGroupCustomSaveDataScRsp = 1413; + public static final int SwitchLineupIndexCsReq = 752; + public static final int FinishItemIdCsReq = 2782; + public static final int MuseumRandomEventSelectCsReq = 4380; + public static final int PlayerGetTokenScRsp = 60; + public static final int RefreshTriggerByClientCsReq = 1407; + public static final int EnterTreasureDungeonScRsp = 4464; + public static final int GetQuestRecordScRsp = 919; + public static final int RogueModifierUpdateNotify = 5319; + public static final int CommonRogueUpdateScNotify = 5651; + public static final int MissionGroupWarnScNotify = 1209; + public static final int GetEnteredSceneScRsp = 1421; + public static final int SyncTaskScRsp = 1242; + public static final int PlayerReturnTakeRewardScRsp = 4519; + public static final int PickRogueAvatarScRsp = 1873; + public static final int ComposeItemCsReq = 555; + public static final int SyncRogueRewardInfoScNotify = 1829; + public static final int UnlockHeadIconScNotify = 2897; + public static final int SyncHandleFriendScNotify = 2909; + public static final int GetGachaInfoCsReq = 1983; + public static final int RogueModifierSelectCellScRsp = 5382; + public static final int HeliobusUpgradeLevelScRsp = 5864; + public static final int TakeLoginActivityRewardScRsp = 2684; + public static final int PVEBattleResultCsReq = 183; + public static final int QuitBattleScNotify = 197; + public static final int TakeOffRelicCsReq = 345; + public static final int StartRaidScRsp = 2261; + public static final int RogueModifierStageStartNotify = 5338; + public static final int SetHeroBasicTypeCsReq = 24; + public static final int ComposeSelectedRelicCsReq = 546; + public static final int GetTutorialGuideScRsp = 1684; + public static final int GetTreasureDungeonActivityDataScRsp = 4409; + public static final int GetPlayerBoardDataScRsp = 2861; + public static final int EntityBindPropScRsp = 1456; + public static final int GetExpeditionDataCsReq = 2583; + public static final int AlleyTakeEventRewardScRsp = 4703; + public static final int TakeMailAttachmentScRsp = 819; + public static final int SetDisplayAvatarCsReq = 2882; + public static final int ChessRogueQueryAeonDimensionsScRsp = 5523; + public static final int HeliobusSnsLikeCsReq = 5842; + public static final int ScenePlaneEventScNotify = 1462; + public static final int MatchBoxingClubOpponentScRsp = 4284; + public static final int CurAssistChangedNotify = 2922; + public static final int PlayerReturnTakePointRewardCsReq = 4582; + public static final int ChessRogueSelectBpCsReq = 5597; + public static final int AceAntiCheaterScRsp = 89; + public static final int GetAllLineupDataCsReq = 792; + public static final int TakeFightActivityRewardCsReq = 3660; + public static final int MultipleDropInfoNotify = 4660; + public static final int GetPunkLordDataCsReq = 3252; + public static final int UnlockTutorialGuideScRsp = 1619; + public static final int WaypointShowNewCsNotify = 442; + public static final int AlleyShopLevelScNotify = 4746; + public static final int EnterSceneByServerScNotify = 1448; + public static final int GeneralVirtualItemDataNotify = 514; + public static final int DeleteFriendScRsp = 2964; + public static final int GetTutorialScRsp = 1661; + public static final int PlayerGetTokenCsReq = 82; + public static final int GiveUpBoxingClubChallengeCsReq = 4242; + public static final int SwitchAetherDivideLineUpSlotScRsp = 4892; + public static final int HeliobusEnterBattleCsReq = 5892; + public static final int FinishCurTurnCsReq = 4349; + public static final int TakeRogueScoreRewardScRsp = 1880; + public static final int GetFriendRecommendListInfoScRsp = 2992; + public static final int PlayerReturnSignCsReq = 4561; + public static final int GetFriendLoginInfoCsReq = 2916; + public static final int GetFriendListInfoScRsp = 2961; + public static final int BoxingClubRewardScNotify = 4297; + public static final int GetQuestDataCsReq = 983; + public static final int PlayerReturnInfoQueryScRsp = 4538; + public static final int PlayerReturnStartScNotify = 4583; + public static final int ChallengeLineupNotify = 1709; + public static final int ExchangeRogueBuffWithMiracleScRsp = 5692; + public static final int UpdateMechanismBarScNotify = 1451; + public static final int UpdatePlayerSettingCsReq = 99; + public static final int GetAssistHistoryScRsp = 2903; + public static final int PlayBackGroundMusicCsReq = 3104; + public static final int StartBattleCollegeScRsp = 5782; + public static final int LeaveAetherDivideSceneCsReq = 4804; + public static final int SyncRogueCommonPendingActionScNotify = 5670; + public static final int MarkReadMailScRsp = 884; + public static final int GetRogueDialogueEventDataScRsp = 1871; + public static final int MarkChatEmojiScRsp = 3909; + public static final int GetServerPrefsDataCsReq = 6104; + public static final int GetSecretKeyInfoCsReq = 35; + public static final int ChessRogueSelectCellScRsp = 5532; + public static final int GetTrainVisitorBehaviorScRsp = 3784; + public static final int SelectInclinationTextScRsp = 2138; + public static final int SetIsDisplayAvatarInfoScRsp = 2819; + public static final int GetRogueInitialScoreCsReq = 1814; + public static final int LeaveChallengeCsReq = 1782; + public static final int BuyBpLevelScRsp = 3042; + public static final int AcceptMissionEventScRsp = 1220; + public static final int GetQuestRecordCsReq = 942; + public static final int StartTimedCocoonStageCsReq = 1405; + public static final int EnterRogueScRsp = 1860; + public static final int LastSpringRefreshTimeNotify = 1492; + public static final int LogisticsDetonateStarSkiffScRsp = 4793; + public static final int TakeOffEquipmentCsReq = 349; + public static final int GetRogueBuffEnhanceInfoScRsp = 1846; + public static final int EnhanceChessRogueBuffCsReq = 5455; + public static final int CancelCacheNotifyScRsp = 4138; + public static final int SendMsgCsReq = 3983; + public static final int SwitchLineupIndexScRsp = 773; + public static final int ChessRogueUpdateBoardScNotify = 5499; + public static final int GetQuestDataScRsp = 961; + public static final int BuyNpcStuffCsReq = 4304; + public static final int TakeRogueScoreRewardCsReq = 1859; + public static final int CancelActivityExpeditionCsReq = 2509; + public static final int HeliobusEnterBattleScRsp = 5859; + public static final int GetLevelRewardTakenListScRsp = 90; + public static final int SetHeadIconScRsp = 2884; + public static final int AcceptExpeditionCsReq = 2504; + public static final int HandleRogueCommonPendingActionCsReq = 5679; + public static final int LogisticsInfoScNotify = 4765; + public static final int DailyFirstMeetPamScRsp = 3484; + public static final int ChessRogueQuestFinishNotify = 5490; + public static final int RechargeSuccNotify = 559; + public static final int SyncRogueMapRoomScNotify = 1816; + public static final int SetCurWaypointCsReq = 404; + public static final int ChessRogueUpdateAllowedSelectCellScNotify = 5444; + public static final int SceneEntityTeleportCsReq = 1426; + public static final int ChessRogueCheatRollScRsp = 5542; + public static final int UnlockTutorialScRsp = 1660; + public static final int UnlockTeleportNotify = 1429; + public static final int SetFriendRemarkNameScRsp = 2980; + public static final int GetFriendListInfoCsReq = 2983; + public static final int ExchangeHcoinCsReq = 580; + public static final int HeliobusLineupUpdateScNotify = 5808; + public static final int ChessRogueQueryBpCsReq = 5558; + public static final int TakeChapterRewardCsReq = 419; + public static final int SelectPhoneThemeScRsp = 5142; + public static final int SyncRoguePickAvatarInfoScNotify = 1875; + public static final int TakeRogueMiracleHandbookRewardScRsp = 5614; + public static final int GetSaveLogisticsMapCsReq = 4706; + public static final int StartChallengeScRsp = 1784; + public static final int PVEBattleResultScRsp = 161; + public static final int UpdateRedDotDataCsReq = 5904; + public static final int FinishPlotCsReq = 1183; + public static final int BuyGoodsScRsp = 1584; + public static final int BuyRogueShopBuffCsReq = 5638; + public static final int ExpeditionDataChangeScNotify = 2597; + public static final int FinishTutorialCsReq = 1697; + public static final int GroupStateChangeScRsp = 1412; + public static final int SyncRogueReviveInfoScNotify = 1824; + public static final int HeliobusUpgradeLevelCsReq = 5855; + public static final int HeliobusSelectSkillCsReq = 5852; + public static final int PlayerKickOutScNotify = 97; + public static final int FinishFirstTalkByPerformanceNpcScRsp = 2164; + public static final int SyncClientResVersionCsReq = 142; + public static final int SceneUpdatePositionVersionNotify = 1409; + public static final int TrainVisitorRewardSendNotify = 3760; public static final int GetMarkItemListCsReq = 577; - public static final int HandleFriendScRsp = 2909; - public static final int ShareCsReq = 4152; - public static final int GetSecretKeyInfoCsReq = 94; - public static final int HeliobusStartRaidScRsp = 5896; - public static final int GetChatEmojiListCsReq = 3967; - public static final int TakeQuestOptionalRewardScRsp = 982; - public static final int FinishItemIdScRsp = 2742; - public static final int ScenePlaneEventScNotify = 1490; - public static final int ChessRogueQueryBpScRsp = 5490; - public static final int FinishFirstTalkByPerformanceNpcCsReq = 2182; - public static final int EnterFightActivityStageScRsp = 3639; - public static final int GetWaypointCsReq = 452; - public static final int ChallengeRaidNotify = 2272; - public static final int AlleyShipmentEventEffectsScNotify = 4800; - public static final int TakeAssistRewardCsReq = 2969; - public static final int SearchPlayerCsReq = 2902; - public static final int ReplaceChessRogueMiracleDisplayScNotify = 5407; - public static final int SetCurInteractEntityCsReq = 1422; - public static final int CancelExpeditionCsReq = 2539; - public static final int RogueChallengeBattleResultScNotify = 2689; - public static final int StartAetherDivideChallengeBattleScRsp = 4876; - public static final int PrestigeLevelUpScRsp = 4719; - public static final int GetAetherDivideChallengeInfoCsReq = 4830; - public static final int DeleteBlacklistScRsp = 2930; - public static final int GetBagCsReq = 552; - public static final int EnterRogueCsReq = 1839; - public static final int GetPlayerDetailInfoScRsp = 2944; - public static final int AlleyPlacingGameCsReq = 4782; - public static final int SetLanguageScRsp = 100; - public static final int ReturnLastTownScRsp = 1419; - public static final int LogisticsGameCsReq = 4751; - public static final int GetShareDataScRsp = 4144; - public static final int LeaveRogueCsReq = 1823; - public static final int GetChessRogueStoryAeonTalkInfoScRsp = 5544; - public static final int SyncRogueUnlockDataUpdateScNotify = 5666; - public static final int RogueChallengeActivityDataCsReq = 2696; - public static final int ChessRogueChangeyAeonDimensionNotify = 5438; - public static final int GetTutorialGuideScRsp = 1644; - public static final int PlayBackGroundMusicCsReq = 3151; - public static final int SetHeroBasicTypeCsReq = 22; - public static final int AddEquipmentScNotify = 530; - public static final int LockEquipmentScRsp = 542; - public static final int ReforgeChessRogueBuffCsReq = 5411; - public static final int ChessRogueCellUpdateNotify = 5592; - public static final int SharePunkLordMonsterCsReq = 3239; - public static final int RecoverAllLineupCsReq = 1477; - public static final int FinishRogueDialogueGroupScRsp = 1884; - public static final int ChessRogueQuitCsReq = 5509; - public static final int EnhanceRogueBuffCsReq = 1832; - public static final int GetQuestRecordScRsp = 976; - public static final int TakeTalkRewardScRsp = 2144; - public static final int GetKilledPunkLordMonsterDataCsReq = 3228; - public static final int SetDisplayAvatarCsReq = 2839; - public static final int InteractTreasureDungeonGridScRsp = 4429; - public static final int ChessRogueEnterNextLayerScRsp = 5594; - public static final int TakeFightActivityRewardScRsp = 3623; - public static final int AlleyFundsScNotify = 4796; - public static final int HeliobusSelectSkillScRsp = 5892; - public static final int GetUpdatedArchiveDataScRsp = 2344; - public static final int TakeKilledPunkLordMonsterScoreScRsp = 3237; - public static final int ApplyFriendCsReq = 2923; - public static final int SubmitMonsterResearchActivityMaterialScRsp = 2629; - public static final int ReplaceLineupCsReq = 796; - public static final int QueryProductInfoCsReq = 81; - public static final int GetPlayerBoardDataCsReq = 2852; - public static final int UnlockAvatarSkinScNotify = 330; - public static final int AlleyEventChangeNotify = 4767; - public static final int GetReplayTokenCsReq = 3552; - public static final int GetChallengeCsReq = 1752; + public static final int AetherDivideRefreshEndlessScRsp = 4894; + public static final int EnterTrialActivityStageScRsp = 2685; + public static final int ChessRogueSkipTeachingLevelScRsp = 5539; + public static final int EntityBindPropCsReq = 1493; + public static final int GetMultipleDropInfoCsReq = 4683; + public static final int GetDailyActiveInfoCsReq = 3304; + public static final int GetPhoneDataCsReq = 5183; + public static final int SpaceZooExchangeItemCsReq = 6709; + public static final int ChessRogueReRollDiceCsReq = 5581; + public static final int PlayerHeartBeatScRsp = 98; + public static final int SecurityReportScRsp = 4109; + public static final int GetPrivateChatHistoryCsReq = 3982; + public static final int PlayerReturnTakeRewardCsReq = 4542; + public static final int GetSingleRedDotParamGroupScRsp = 5960; + public static final int RankUpAvatarCsReq = 364; + public static final int GameplayCounterCountDownScRsp = 1402; + public static final int GetRogueHandbookDataCsReq = 5627; + public static final int SceneCastSkillScRsp = 1460; + public static final int ChessRogueGoAheadScRsp = 5525; + public static final int ChessRogueChangeyAeonDimensionNotify = 5550; + public static final int ChessRogueNousGetRogueTalentInfoCsReq = 5596; + public static final int GetTutorialCsReq = 1683; + public static final int GetArchiveDataScRsp = 2361; + public static final int SyncAddBlacklistScNotify = 2945; + public static final int AlleyTakeEventRewardCsReq = 4753; + public static final int ExchangeRogueRewardKeyCsReq = 1851; + public static final int ChessRogueGiveUpCsReq = 5477; + public static final int ChessRogueQuitCsReq = 5415; + public static final int QueryProductInfoScRsp = 25; + public static final int StartTimedFarmElementScRsp = 1469; + public static final int ReplaceLineupCsReq = 790; + public static final int GetTrainVisitorRegisterCsReq = 3742; + public static final int SetBoxingClubResonanceLineupCsReq = 4255; + public static final int GetAllRedDotDataCsReq = 5983; + public static final int UseItemCsReq = 542; + public static final int ShareScRsp = 4161; + public static final int StartTrialActivityCsReq = 2698; + public static final int GetStrongChallengeActivityDataCsReq = 6683; + public static final int TakeAllApRewardScRsp = 3342; + public static final int GetTrialActivityDataScRsp = 2671; + public static final int GetChessRogueBuffEnhanceInfoCsReq = 5552; + public static final int GetFriendApplyListInfoScRsp = 2960; + public static final int GetPlayerBoardDataCsReq = 2883; + public static final int UnlockSkilltreeCsReq = 382; + public static final int TakeAllRewardCsReq = 3019; + public static final int ChessRogueQueryAeonDimensionsCsReq = 5530; + public static final int PunkLordMonsterInfoScNotify = 3240; + public static final int NewMailScNotify = 897; + public static final int ChessRogueStartScRsp = 5589; + public static final int GetRogueInfoScRsp = 1861; + public static final int RogueModifierSelectCellCsReq = 5384; + public static final int LogisticsGameScRsp = 4784; + public static final int TakePromotionRewardCsReq = 392; + public static final int ShowNewSupplementVisitorCsReq = 3749; + public static final int GetAssistListCsReq = 2987; + public static final int EnterAdventureCsReq = 1383; + public static final int GetAetherDivideInfoScRsp = 4809; + public static final int GetCurAssistScRsp = 2994; + public static final int GetNpcStatusScRsp = 2784; + public static final int RogueNpcDisappearScRsp = 5655; + public static final int GetEnhanceCommonRogueBuffInfoScRsp = 5680; + public static final int RankUpEquipmentScRsp = 538; + public static final int GetMonsterResearchActivityDataScRsp = 2645; + public static final int SellItemScRsp = 592; + public static final int FinishChessRogueNousSubStoryScRsp = 5441; + public static final int GetPlatformPlayerInfoScRsp = 2918; + public static final int SpaceZooTakeCsReq = 6764; + public static final int AddAvatarScNotify = 355; + public static final int SelectChessRogueSubStoryScRsp = 5560; + public static final int FinishQuestScRsp = 949; + public static final int SyncChessRogueNousValueScNotify = 5522; + public static final int ChangeLineupLeaderScRsp = 740; + public static final int TakePictureCsReq = 4182; + public static final int GetBagScRsp = 561; + public static final int GetHeroBasicTypeInfoCsReq = 77; + public static final int GetChatFriendHistoryCsReq = 3942; + public static final int GetPunkLordMonsterDataScRsp = 3261; + public static final int SavePointsInfoNotify = 1453; + public static final int DeleteBlacklistCsReq = 2908; + public static final int PrivateMsgOfflineUsersScNotify = 3984; + public static final int TakeActivityExpeditionRewardCsReq = 2564; + public static final int UnlockBackGroundMusicCsReq = 3182; + public static final int GetPlayerReplayInfoScRsp = 3584; + public static final int ClientObjUploadCsReq = 2; + public static final int GetChallengeRaidInfoScRsp = 2242; + public static final int GetRogueScoreRewardInfoScRsp = 1802; + public static final int GetLoginChatInfoCsReq = 3940; + public static final int QuitLineupCsReq = 742; + public static final int GetFirstTalkNpcCsReq = 2182; + public static final int GetAvatarDataCsReq = 383; + public static final int GetBoxingClubInfoScRsp = 4261; + public static final int StartAetherDivideSceneBattleCsReq = 4882; + public static final int TakeChallengeRewardScRsp = 1752; + public static final int DressRelicAvatarCsReq = 352; + public static final int FightTreasureDungeonMonsterCsReq = 4473; + public static final int GetFantasticStoryActivityDataScRsp = 4961; + public static final int ChooseBoxingClubResonanceScRsp = 4209; + public static final int GetAetherDivideChallengeInfoCsReq = 4833; + public static final int GetRogueEndlessActivityDataScRsp = 6061; + public static final int GetMissionEventDataCsReq = 1240; + public static final int StopRogueAdventureRoomScRsp = 5633; + public static final int GetBattleCollegeDataScRsp = 5761; + public static final int SyncRogueAdventureRoomInfoScNotify = 5683; + public static final int TakePrestigeRewardScRsp = 4709; + public static final int LockEquipmentScRsp = 560; + public static final int SetLineupNameScRsp = 720; + public static final int HeliobusStartRaidScRsp = 5890; + public static final int HeliobusChallengeUpdateScNotify = 5846; + public static final int HeliobusActivityDataScRsp = 5861; + public static final int GetShareDataScRsp = 4184; + public static final int SpringRefreshScRsp = 1420; + public static final int GetCurLineupDataScRsp = 784; + public static final int HeliobusSnsCommentCsReq = 5897; + public static final int PrestigeLevelUpCsReq = 4759; + public static final int SetStuffToAreaCsReq = 4382; + public static final int GetCurChallengeCsReq = 1738; + public static final int SetMissionEventProgressScRsp = 1208; + public static final int SubMissionRewardScNotify = 1233; + public static final int StartFinishSubMissionScNotify = 1287; + public static final int TakeTalkRewardCsReq = 2104; + public static final int ChessRogueUpdateMoneyInfoScNotify = 5480; + public static final int TakeBpRewardScRsp = 3082; + public static final int GetRaidInfoScRsp = 2209; + public static final int CityShopInfoScNotify = 1542; + public static final int SpaceZooDataScRsp = 6761; + public static final int PromoteAvatarScRsp = 319; + public static final int ChessRogueGiveUpRollScRsp = 5509; + public static final int SetLanguageCsReq = 65; + public static final int DeactivateFarmElementCsReq = 1416; + public static final int ReportPlayerCsReq = 2990; + public static final int SyncAcceptedPamMissionNotify = 4004; + public static final int DressAvatarCsReq = 397; + public static final int TakeExpeditionRewardCsReq = 2542; + public static final int TrainVisitorBehaviorFinishCsReq = 3783; + public static final int TakeMonsterResearchActivityRewardCsReq = 2659; + public static final int SpaceZooDeleteCatScRsp = 6738; + public static final int OpenTreasureDungeonGridScRsp = 4452; + public static final int GetRogueAeonInfoScRsp = 1801; + public static final int QuitTreasureDungeonScRsp = 4446; + public static final int EnterFightActivityStageScRsp = 3682; + public static final int RogueModifierDelNotify = 5397; + public static final int RaidInfoNotify = 2282; + public static final int UpgradeAreaScRsp = 4364; + public static final int ChessRogueQueryScRsp = 5425; + public static final int MuseumRandomEventQueryScRsp = 4359; + public static final int SearchPlayerScRsp = 2965; + public static final int TeleportToMissionResetPointScRsp = 1265; + public static final int GmTalkScRsp = 49; + public static final int GetCurSceneInfoCsReq = 1442; + public static final int CancelExpeditionCsReq = 2582; + public static final int SyncApplyFriendScNotify = 2997; + public static final int EnteredSceneChangeScNotify = 1432; + public static final int GetAllServerPrefsDataCsReq = 6183; + public static final int SyncRogueVirtualItemInfoScNotify = 1857; + public static final int EnhanceRogueBuffScRsp = 1833; + public static final int SpaceZooCatUpdateNotify = 6749; + public static final int GetRogueTalentInfoScRsp = 1839; + public static final int HeliobusSnsPostCsReq = 5882; + public static final int RogueModifierAddNotify = 5304; + public static final int AcceptActivityExpeditionScRsp = 2549; + public static final int PunkLordDataChangeNotify = 3224; + public static final int SetClientRaidTargetCountScRsp = 2264; + public static final int ChessRogueUpdateDiceInfoScNotify = 5511; + public static final int StartPunkLordRaidCsReq = 3204; + public static final int GetChallengeGroupStatisticsScRsp = 1745; + public static final int ChessRogueEnterCellCsReq = 5483; + public static final int GetSaveRaidCsReq = 2240; + public static final int ChallengeSettleNotify = 1742; + public static final int RecoverAllLineupScRsp = 1494; + public static final int DoGachaScRsp = 1984; + public static final int RefreshTriggerByClientScNotify = 1423; + public static final int ChessRogueLeaveScRsp = 5429; + public static final int ReviveRogueAvatarScRsp = 1892; + public static final int RemoveStuffFromAreaCsReq = 4342; + public static final int GetFirstTalkByPerformanceNpcCsReq = 2149; + public static final int SetAssistCsReq = 2924; + public static final int SyncRogueHandbookDataUpdateScNotify = 5656; + public static final int SpaceZooOpCatteryScRsp = 6719; + public static final int SetPlayerInfoCsReq = 22; + public static final int GetAssistHistoryCsReq = 2953; + public static final int ShowNewSupplementVisitorScRsp = 3709; + public static final int ChessRogueConfirmRollCsReq = 5476; + public static final int PickRogueAvatarCsReq = 1852; + public static final int GetRogueInfoCsReq = 1883; + public static final int ChooseBoxingClubStageOptionalBuffCsReq = 4240; + public static final int TakeRogueAeonLevelRewardScRsp = 1830; + public static final int SetGroupCustomSaveDataCsReq = 1498; + public static final int GetUpdatedArchiveDataScRsp = 2384; + public static final int AetherDivideSpiritExpUpScRsp = 4846; + public static final int MissionEventRewardScNotify = 1273; + public static final int HeliobusInfoChangedScNotify = 5809; + public static final int FantasticStoryActivityBattleEndScNotify = 4960; + public static final int GetStuffScNotify = 4397; + public static final int TakePromotionRewardScRsp = 359; + public static final int GetFirstTalkNpcScRsp = 2160; + public static final int GetRogueTalentInfoCsReq = 1807; + public static final int SceneEntityUpdateScNotify = 1497; + public static final int GameplayCounterRecoverCsReq = 1450; + public static final int PromoteEquipmentCsReq = 504; + public static final int GetRogueAdventureRoomInfoCsReq = 5664; + public static final int EnterSectionScRsp = 1465; + public static final int TakeAssistRewardCsReq = 2993; + public static final int GetLineupAvatarDataCsReq = 709; + public static final int GetChessRogueStoryInfoCsReq = 5409; + public static final int HeliobusUnlockSkillScNotify = 5840; + public static final int TakeTrialActivityRewardCsReq = 2686; + public static final int GetHeroBasicTypeInfoScRsp = 94; + public static final int TakeRogueEndlessActivityPointRewardCsReq = 6060; + public static final int QuitRogueScRsp = 1877; + public static final int SwitchAetherDivideLineUpSlotCsReq = 4820; + public static final int GateServerScNotify = 13; + public static final int UnlockTutorialGuideCsReq = 1642; + public static final int MuseumTargetRewardNotify = 4388; + public static final int PlayerLoginFinishCsReq = 96; + public static final int StartRaidCsReq = 2283; + public static final int GetPunkLordMonsterDataCsReq = 3283; + public static final int EnterSceneScRsp = 1472; + public static final int ChessRogueEnterNextLayerCsReq = 5412; + public static final int BatchMarkChatEmojiCsReq = 3955; + public static final int SceneGroupRefreshScNotify = 1431; + public static final int GetBasicInfoCsReq = 76; + public static final int TakeCityShopRewardCsReq = 1582; + public static final int EnterFantasticStoryActivityStageScRsp = 4982; + public static final int FinishCurTurnScRsp = 4309; + public static final int SceneEnterStageScRsp = 1446; + public static final int RogueEndlessActivityBattleEndScNotify = 6082; + public static final int TakeOffAvatarSkinScRsp = 308; + public static final int AlleyShipmentEventEffectsScNotify = 4787; + public static final int GetChallengeScRsp = 1761; + public static final int MuseumDispatchFinishedScNotify = 4346; + public static final int GetGachaInfoScRsp = 1961; + public static final int GetExpeditionDataScRsp = 2561; + public static final int TextJoinSaveScRsp = 3861; + public static final int SelectChessRogueNousSubStoryScRsp = 5449; + public static final int ChessRogueEnterCsReq = 5501; + public static final int ExchangeRogueBuffWithMiracleCsReq = 5620; + public static final int HeliobusSnsCommentScRsp = 5838; + public static final int MonthCardRewardNotify = 85; + public static final int SelectPhoneThemeCsReq = 5160; + public static final int FinishTutorialGuideScRsp = 1609; + public static final int SetCurInteractEntityScRsp = 1478; + public static final int PunkLordMonsterKilledNotify = 3265; + public static final int TakeOffRelicScRsp = 320; + public static final int GetMultipleDropInfoScRsp = 4661; + public static final int TakeApRewardCsReq = 3383; + public static final int GetUnlockTeleportScRsp = 1434; + public static final int GetMissionDataScRsp = 1261; + public static final int StartAetherDivideSceneBattleScRsp = 4860; + public static final int ChessRogueReviveAvatarCsReq = 5510; + public static final int SceneEntityDisappearScNotify = 1438; + public static final int GetMainMissionCustomValueScRsp = 1294; + public static final int TextJoinQueryScRsp = 3884; + public static final int DressRelicAvatarScRsp = 373; + public static final int LeaveRaidCsReq = 2204; + public static final int HeliobusStartRaidCsReq = 5880; + public static final int SpringRecoverSingleAvatarScRsp = 1486; + public static final int DailyFirstMeetPamCsReq = 3404; + public static final int TakeMonsterResearchActivityRewardScRsp = 2680; + public static final int FinishRogueDialogueGroupCsReq = 1879; + public static final int SyncEntityBuffChangeListScNotify = 1455; + public static final int SetFriendRemarkNameCsReq = 2959; + public static final int FinishFirstTalkNpcCsReq = 2142; + public static final int HeliobusSnsLikeScRsp = 5819; + public static final int EnterRogueMapRoomCsReq = 1856; + public static final int MatchBoxingClubOpponentCsReq = 4204; + public static final int EnterTreasureDungeonCsReq = 4455; + public static final int GetFantasticStoryActivityDataCsReq = 4983; + public static final int SpaceZooDataCsReq = 6783; + public static final int TriggerVoiceScRsp = 4164; + public static final int PrepareRogueAdventureRoomCsReq = 5661; + public static final int AceAntiCheaterCsReq = 79; + public static final int GetRogueShopBuffInfoCsReq = 5660; + public static final int SetForbidOtherApplyFriendScRsp = 2943; + public static final int ExpUpEquipmentScRsp = 509; + public static final int SetDisplayAvatarScRsp = 2860; + public static final int ChessRogueRollDiceCsReq = 5526; + public static final int GetTutorialGuideCsReq = 1604; + public static final int MultipleDropInfoScNotify = 4604; + public static final int ChessRogueMoveCellNotify = 5470; + public static final int DelMailCsReq = 882; + public static final int ChessRogueUpdateAeonModifierValueScNotify = 5506; + public static final int GetServerPrefsDataScRsp = 6184; + public static final int GetChatEmojiListScRsp = 3938; + public static final int SetAssistAvatarScRsp = 2855; + public static final int GetRogueDialogueEventDataCsReq = 1844; + public static final int TakePunkLordPointRewardCsReq = 3255; + public static final int QuitBattleScRsp = 184; + public static final int TakeTrainVisitorUntakenBehaviorRewardCsReq = 3797; + public static final int SelectChatBubbleCsReq = 5104; + public static final int MissionRewardScNotify = 1282; + public static final int SyncRogueSeasonFinishScNotify = 1803; + public static final int MuseumTakeCollectRewardScRsp = 4387; + public static final int UnlockedAreaMapScNotify = 1415; + public static final int CancelCacheNotifyCsReq = 4197; + public static final int GetMuseumInfoScRsp = 4361; + public static final int PlayerLoginCsReq = 83; + public static final int ChessRogueUpdateLevelBaseInfoScNotify = 5563; + public static final int GetFriendLoginInfoScRsp = 2925; + public static final int GetChapterCsReq = 482; + public static final int GetSaveLogisticsMapScRsp = 4724; + public static final int GetTrialActivityDataCsReq = 2644; + public static final int GetTrainVisitorBehaviorCsReq = 3704; + public static final int GetSpringRecoverDataCsReq = 1476; + public static final int SharePunkLordMonsterScRsp = 3260; + public static final int GetActivityScheduleConfigScRsp = 2660; + public static final int GetFriendRecommendListInfoCsReq = 2920; + public static final int GetRogueHandbookDataScRsp = 5693; + public static final int HandleRogueCommonPendingActionScRsp = 5689; + public static final int ChessRogueNousGetRogueTalentInfoScRsp = 5573; + public static final int GetSceneMapInfoScRsp = 1474; + public static final int UpdatePlayerSettingScRsp = 91; + public static final int GetMailCsReq = 883; + public static final int FeatureSwitchClosedScNotify = 63; + public static final int TakeQuestRewardScRsp = 984; + public static final int TakeKilledPunkLordMonsterScoreCsReq = 3287; + public static final int AetherDivideSpiritInfoScNotify = 4808; + public static final int SaveLogisticsCsReq = 4733; + public static final int GetRndOptionScRsp = 3461; + public static final int SpaceZooBornScRsp = 6784; + public static final int HandleFriendCsReq = 2938; + public static final int GetPlayerDetailInfoScRsp = 2984; + public static final int RevcMsgScNotify = 3904; + public static final int InterruptMissionEventCsReq = 1280; + public static final int TakeQuestOptionalRewardScRsp = 955; + public static final int LeaveTrialActivityCsReq = 2663; + public static final int StaminaInfoScNotify = 34; + public static final int GetMissionStatusScRsp = 1259; + public static final int SetAetherDivideLineUpScRsp = 4864; + public static final int ClearAetherDividePassiveSkillCsReq = 4873; + public static final int FinishTalkMissionScRsp = 1284; + public static final int GetPunkLordBattleRecordCsReq = 3278; + public static final int SetClientPausedScRsp = 1414; + public static final int AetherDivideTakeChallengeRewardCsReq = 4803; + public static final int ChessRogueQuitScRsp = 5551; + public static final int FinishSectionIdCsReq = 2742; + public static final int FinishPerformSectionIdCsReq = 2797; + public static final int VirtualLineupDestroyNotify = 780; + public static final int GetSingleRedDotParamGroupCsReq = 5982; + public static final int MarkItemScRsp = 503; + public static final int PlayerReturnSignScRsp = 4504; + public static final int ActivateFarmElementScRsp = 1443; + public static final int ReturnLastTownCsReq = 1459; + public static final int StartAlleyEventScRsp = 4719; + public static final int FinishTutorialScRsp = 1638; + public static final int PlayerLogoutScRsp = 84; + public static final int GetEnteredSceneCsReq = 1401; + public static final int SelectRogueDialogueEventCsReq = 1896; + public static final int StartChallengeCsReq = 1704; + public static final int GetMarkItemListScRsp = 594; + public static final int SetSpringRecoverConfigCsReq = 1468; + public static final int GetAllLineupDataScRsp = 759; + public static final int CancelMarkItemNotify = 527; + public static final int SetGameplayBirthdayCsReq = 44; + public static final int SyncRogueAreaUnlockScNotify = 1862; + public static final int DestroyItemCsReq = 524; + public static final int GetChessRogueNousStoryInfoScRsp = 5568; + public static final int GetPunkLordDataScRsp = 3273; + public static final int TakeFightActivityRewardScRsp = 3642; + public static final int SummonPunkLordMonsterCsReq = 3242; + public static final int StartAetherDivideStageBattleScRsp = 4880; + public static final int GetRecyleTimeScRsp = 565; + public static final int GetNpcTakenRewardCsReq = 2183; + public static final int ExchangeGachaCeilingScRsp = 1919; + public static final int GetGachaCeilingScRsp = 1960; + public static final int FinishChessRogueSubStoryCsReq = 5401; + public static final int TrialBackGroundMusicCsReq = 3142; + public static final int GetRecyleTimeCsReq = 588; + public static final int AddEquipmentScNotify = 533; + public static final int ChessRogueSelectBpScRsp = 5571; + public static final int GetNpcMessageGroupScRsp = 2761; + public static final int GetKilledPunkLordMonsterDataCsReq = 3246; + public static final int OpenRogueChestScRsp = 1886; + public static final int GetVideoVersionKeyCsReq = 72; + public static final int GetPlayerReturnMultiDropInfoCsReq = 4684; + public static final int GetAlleyInfoScRsp = 4761; + public static final int AddBlacklistScRsp = 2973; + public static final int TextJoinBatchSaveScRsp = 3860; + public static final int ClearAetherDividePassiveSkillScRsp = 4845; + public static final int TakeLoginActivityRewardCsReq = 2604; + public static final int GetStrongChallengeActivityDataScRsp = 6661; + public static final int DestroyItemScRsp = 578; + public static final int GetJukeboxDataCsReq = 3183; + public static final int SyncRogueAeonLevelUpRewardScNotify = 1891; + public static final int TakeRogueEndlessActivityAllBonusRewardScRsp = 6097; + public static final int SyncTaskCsReq = 1260; + public static final int SyncChessRogueNousMainStoryScNotify = 5502; + public static final int UpdateRogueAdventureRoomScoreCsReq = 5643; + public static final int FinishItemIdScRsp = 2760; + public static final int MuseumRandomEventSelectScRsp = 4390; + public static final int ExpUpRelicCsReq = 540; + public static final int GetSceneMapInfoCsReq = 1495; + public static final int SpaceZooMutateScRsp = 6760; + public static final int ComposeItemScRsp = 564; + public static final int EnterChessRogueAeonRoomScRsp = 5519; + public static final int PlayerLoginScRsp = 61; + public static final int GameplayCounterCountDownCsReq = 1410; + public static final int ChessRogueLayerAccountInfoNotify = 5468; + public static final int GetStageLineupCsReq = 783; + public static final int AlleyFundsScNotify = 4790; + public static final int EnterStrongChallengeActivityStageCsReq = 6604; + public static final int GetChapterScRsp = 460; + public static final int MuseumFundsChangedScNotify = 4345; + public static final int EnhanceCommonRogueBuffScRsp = 5646; + public static final int ReEnterLastElementStageCsReq = 1411; + public static final int TakeRogueEventHandbookRewardScRsp = 5616; + public static final int ChessRogueUpdateActionPointScNotify = 5431; + public static final int UpgradeAreaStatScRsp = 4352; + public static final int UnlockTutorialCsReq = 1682; + public static final int GetLevelRewardScRsp = 8; + public static final int AvatarExpUpScRsp = 384; + public static final int MuseumTargetStartNotify = 4308; + public static final int AlleyEventChangeNotify = 4797; + public static final int TakeQuestOptionalRewardCsReq = 909; + public static final int GetWaypointScRsp = 461; + public static final int GetMailScRsp = 861; + public static final int GetReplayTokenScRsp = 3561; + public static final int StartBoxingClubBattleCsReq = 4282; + public static final int UpdateServerPrefsDataScRsp = 6160; + public static final int TakeChallengeRaidRewardCsReq = 2219; + public static final int SceneEntityMoveCsReq = 1483; + public static final int GetChatFriendHistoryScRsp = 3919; + public static final int TakePunkLordPointRewardScRsp = 3264; + public static final int GetMuseumInfoCsReq = 4383; + public static final int SetTurnFoodSwitchCsReq = 556; + public static final int BattleCollegeDataChangeScNotify = 5704; + public static final int SetAssistAvatarCsReq = 2809; + public static final int GetMonsterResearchActivityDataCsReq = 2673; + public static final int SyncRogueDialogueEventDataScNotify = 1872; + public static final int SetGenderCsReq = 93; + public static final int EnterAdventureScRsp = 1361; + public static final int LogisticsGameCsReq = 4704; + public static final int GetChatEmojiListCsReq = 3997; + public static final int DressAvatarSkinScRsp = 390; + public static final int GetAssistListScRsp = 2906; + public static final int AetherDivideTakeChallengeRewardScRsp = 4827; + public static final int SetClientRaidTargetCountCsReq = 2255; + public static final int GetMissionStatusCsReq = 1292; + public static final int RogueNpcDisappearCsReq = 5609; + public static final int GetNpcStatusCsReq = 2704; + public static final int GetTrainVisitorRegisterScRsp = 3719; + public static final int ChessRoguePickAvatarCsReq = 5434; + public static final int ChessRogueNousEnableRogueTalentCsReq = 5433; + public static final int GetBattleCollegeDataCsReq = 5783; + public static final int InteractTreasureDungeonGridCsReq = 4420; + public static final int SetSignatureScRsp = 2849; + public static final int SyncServerSceneChangeNotify = 1430; + public static final int EquipAetherDividePassiveSkillScRsp = 4852; + public static final int SelectChessRogueSubStoryCsReq = 5407; + public static final int GetChallengeRaidInfoCsReq = 2260; + public static final int UnlockChatBubbleScNotify = 5182; + public static final int HealPoolInfoNotify = 1489; + public static final int SetForbidOtherApplyFriendCsReq = 2970; + public static final int ReEnterLastElementStageScRsp = 1435; + public static final int InterruptMissionEventScRsp = 1290; + public static final int GetPlatformPlayerInfoCsReq = 2914; + public static final int GetAetherDivideInfoCsReq = 4849; + public static final int RefreshTriggerByClientScRsp = 1439; + public static final int ClientObjUploadScRsp = 54; + public static final int AvatarExpUpCsReq = 304; + public static final int GetArchiveDataCsReq = 2383; + public static final int GetPlayerDetailInfoCsReq = 2904; + public static final int GetShopListCsReq = 1583; + public static final int CancelExpeditionScRsp = 2560; + public static final int LockRelicScRsp = 545; + public static final int FinishRogueDialogueGroupScRsp = 1889; + public static final int GetPrivateChatHistoryScRsp = 3960; + public static final int StartPunkLordRaidScRsp = 3284; + public static final int SceneCastSkillCsReq = 1482; + public static final int ChessRogueStartCsReq = 5554; + public static final int EnterRogueMapRoomScRsp = 1822; + public static final int SaveLogisticsScRsp = 4788; + public static final int SyncRogueCommonActionResultScNotify = 5625; + public static final int AcceptedPamMissionExpireCsReq = 4083; + public static final int GetNpcMessageGroupCsReq = 2783; + public static final int HeliobusSnsReadScRsp = 5884; + public static final int SpringRecoverSingleAvatarCsReq = 1485; + public static final int MuseumTargetMissionFinishNotify = 4333; + public static final int QuitTreasureDungeonCsReq = 4490; + public static final int GetBagCsReq = 583; + public static final int TakePictureScRsp = 4160; + public static final int SetRedPointStatusScNotify = 62; + public static final int FinishChessRogueNousSubStoryCsReq = 5504; + public static final int GetLoginActivityScRsp = 2661; + public static final int DressAvatarScRsp = 338; + public static final int ChessRogueQueryCsReq = 5564; + public static final int TeleportToMissionResetPointCsReq = 1288; + public static final int UpgradeAreaCsReq = 4355; + public static final int ChessRogueNousEditDiceScRsp = 5440; + public static final int DailyActiveInfoNotify = 3382; + public static final int ExchangeGachaCeilingCsReq = 1942; + public static final int SceneCastSkillMpUpdateScNotify = 1452; + public static final int AetherDivideSkillItemScNotify = 4806; + public static final int RaidKickByServerScNotify = 2292; + public static final int DelMailScRsp = 860; + public static final int ChessRogueSkipTeachingLevelCsReq = 5489; + public static final int GetGachaCeilingCsReq = 1982; + public static final int SyncClientResVersionScRsp = 119; + public static final int FinishFirstTalkByPerformanceNpcCsReq = 2155; + public static final int StartCocoonStageCsReq = 1403; + public static final int DeleteFriendCsReq = 2955; + public static final int PlayBackGroundMusicScRsp = 3184; + public static final int ChessRogueEnterCellScRsp = 5547; + public static final int MuseumInfoChangedScNotify = 4373; + public static final int StartBattleCollegeCsReq = 5784; + public static final int GetCurChallengeScRsp = 1749; + public static final int GetTreasureDungeonActivityDataCsReq = 4449; + public static final int GetMainMissionCustomValueCsReq = 1277; + public static final int FinishCosumeItemMissionScRsp = 1264; + public static final int PlayerReturnInfoQueryCsReq = 4597; + public static final int GetPhoneDataScRsp = 5161; + public static final int GetLevelRewardCsReq = 46; + public static final int GetChessRogueStoryAeonTalkInfoScRsp = 5578; + public static final int UpgradeAreaStatCsReq = 4340; + public static final int EnhanceRogueBuffCsReq = 1808; + public static final int TakeApRewardScRsp = 3361; + public static final int ChessRogueQueryBpScRsp = 5416; + public static final int GetNpcTakenRewardScRsp = 2161; + public static final int GetShareDataCsReq = 4104; + public static final int TakeMailAttachmentCsReq = 842; + public static final int HandleFriendScRsp = 2949; + public static final int AetherDivideRefreshEndlessScNotify = 4853; + public static final int SearchPlayerCsReq = 2988; + public static final int HeliobusSelectSkillScRsp = 5873; + public static final int SelectRogueDialogueEventScRsp = 1817; + public static final int EnterSectionCsReq = 1488; + public static final int EnterChessRogueAeonRoomCsReq = 5419; + public static final int QuitLineupScRsp = 719; + public static final int DeleteBlacklistScRsp = 2933; + public static final int EnterFightActivityStageCsReq = 3684; + public static final int TakeKilledPunkLordMonsterScoreScRsp = 3206; + public static final int ComposeLimitNumCompleteNotify = 587; + public static final int SpaceZooBornCsReq = 6704; + public static final int GetJukeboxDataScRsp = 3161; + public static final int SetNicknameScRsp = 59; + public static final int TakeRogueMiracleHandbookRewardCsReq = 5622; + public static final int GameplayCounterRecoverScRsp = 1441; + public static final int GetSpringRecoverDataScRsp = 1467; + public static final int TakeExpeditionRewardScRsp = 2519; + public static final int GetVideoVersionKeyScRsp = 48; + public static final int TakeRogueEndlessActivityAllBonusRewardCsReq = 6019; + public static final int SyncTurnFoodNotify = 593; + public static final int FinishTalkMissionCsReq = 1204; + public static final int RefreshAlleyOrderCsReq = 4773; + public static final int PlayerReturnTakePointRewardScRsp = 4560; + public static final int FinishSectionIdScRsp = 2719; + public static final int SpaceZooDeleteCatCsReq = 6797; + public static final int GetFarmStageGachaInfoScRsp = 1384; + public static final int JoinLineupScRsp = 760; + public static final int GetCurBattleInfoCsReq = 182; + public static final int ChooseBoxingClubResonanceCsReq = 4249; + public static final int SetHeroBasicTypeScRsp = 78; + public static final int GetKilledPunkLordMonsterDataScRsp = 3208; + public static final int ChallengeRaidNotify = 2238; + public static final int AddBlacklistCsReq = 2952; + public static final int GetRogueAeonInfoCsReq = 1866; + public static final int AcceptExpeditionScRsp = 2584; + public static final int FightActivityDataChangeScNotify = 3604; + public static final int TrialBackGroundMusicScRsp = 3119; + public static final int OpenRogueChestCsReq = 1885; + public static final int QuitRogueCsReq = 1878; + public static final int ComposeSelectedRelicScRsp = 508; + public static final int GetLineupAvatarDataScRsp = 755; + public static final int ChessRogueSelectCellCsReq = 5497; + public static final int AcceptMissionEventCsReq = 1245; + public static final int PunkLordRaidTimeOutScNotify = 3220; + public static final int EnableRogueTalentScRsp = 1847; + public static final int TakeAssistRewardScRsp = 2956; + public static final int GetChessRogueNousStoryInfoCsReq = 5404; + public static final int SpaceZooOpCatteryCsReq = 6742; + public static final int AlleyGuaranteedFundsScRsp = 4794; + public static final int MarkReadMailCsReq = 804; + public static final int GetRogueShopMiracleInfoScRsp = 5682; + public static final int GetRogueBuffEnhanceInfoCsReq = 1890; + public static final int SelectInclinationTextCsReq = 2197; + public static final int PunkLordBattleResultScNotify = 3290; + public static final int BuyBpLevelCsReq = 3060; + public static final int SetAssistScRsp = 2978; + public static final int PlayerReturnPointChangeScNotify = 4584; + public static final int SetPlayerInfoScRsp = 14; + public static final int SetIsDisplayAvatarInfoCsReq = 2842; + public static final int EnterAetherDivideSceneScRsp = 4861; + public static final int CommonRogueQueryCsReq = 5685; + public static final int SwapLineupCsReq = 797; + public static final int ChessRogueLeaveCsReq = 5421; + public static final int PlayerReturnForceFinishScNotify = 4549; + public static final int DoGachaCsReq = 1904; + public static final int SpringRecoverScRsp = 1479; + public static final int ChessRogueConfirmRollScRsp = 5545; + public static final int ReplaceLineupScRsp = 746; + public static final int SubmitMonsterResearchActivityMaterialScRsp = 2692; + public static final int BatchMarkChatEmojiScRsp = 3964; + public static final int LogisticsDetonateStarSkiffCsReq = 4727; + public static final int DeleteSummonUnitScRsp = 1436; + public static final int GetSaveRaidScRsp = 2252; + public static final int GetFightActivityDataCsReq = 3683; + public static final int MuseumRandomEventQueryCsReq = 4392; + public static final int SyncChessRogueNousSubStoryScNotify = 5496; + public static final int PlayerLoginFinishScRsp = 17; + public static final int EnterRogueCsReq = 1882; + public static final int AetherDivideLineupScNotify = 4878; + public static final int SyncChessRogueMainStoryFinishScNotify = 5579; + public static final int AcceptActivityExpeditionCsReq = 2538; + public static final int GetAuthkeyCsReq = 52; + public static final int ExpUpEquipmentCsReq = 549; + public static final int ChessRogueCheatRollCsReq = 5427; + public static final int GetRogueInitialScoreScRsp = 1818; + public static final int GetSecretKeyInfoScRsp = 26; + public static final int MarkChatEmojiCsReq = 3949; + public static final int ShareCsReq = 4183; + public static final int SyncRogueGetItemScNotify = 1895; + public static final int OpenTreasureDungeonGridCsReq = 4440; + public static final int MissionAcceptScNotify = 1253; + public static final int ChessRogueGoAheadCsReq = 5559; + public static final int SceneEntityTeleportScRsp = 1496; + public static final int GetChessRogueStoryInfoScRsp = 5452; + public static final int GmTalkCsReq = 38; + public static final int HeroBasicTypeChangedNotify = 18; + public static final int UnlockSkilltreeScRsp = 360; + public static final int PlayerSyncScNotify = 683; + public static final int SetBoxingClubResonanceLineupScRsp = 4264; + public static final int GetAllRedDotDataScRsp = 5961; + public static final int InteractPropCsReq = 1404; + public static final int SetHeadIconCsReq = 2804; + public static final int ChessRogueGiveUpRollCsReq = 5512; + public static final int EnhanceChessRogueBuffScRsp = 5518; + public static final int ChessRogueGiveUpScRsp = 5517; + public static final int SendMsgScRsp = 3961; + public static final int StartTrialActivityScRsp = 2613; + public static final int PromoteAvatarCsReq = 342; + public static final int ReportPlayerScRsp = 2946; + public static final int TakeTalkRewardScRsp = 2184; + public static final int EnterTrialActivityStageCsReq = 2689; + public static final int GetAllServerPrefsDataScRsp = 6161; + public static final int SyncRogueStatusScNotify = 1869; + public static final int ApplyFriendScRsp = 2919; + public static final int StartTimedCocoonStageScRsp = 1437; + public static final int GetDailyActiveInfoScRsp = 3384; + public static final int StartRogueCsReq = 1804; + public static final int TakeAllRewardScRsp = 3097; + public static final int GetAllSaveRaidCsReq = 2273; + public static final int EnterRogueEndlessActivityStageCsReq = 6004; + public static final int GetChallengeCsReq = 1783; + public static final int SyncDeleteFriendScNotify = 2940; + public static final int GetCurLineupDataCsReq = 704; + public static final int ExchangeStaminaCsReq = 64; + public static final int BattleLogReportCsReq = 138; + public static final int BuyGoodsCsReq = 1504; + public static final int FinishPlotScRsp = 1161; + public static final int BuyRogueShopBuffScRsp = 5649; + public static final int PrestigeLevelUpScRsp = 4780; + public static final int ChessRogueReviveAvatarScRsp = 5521; + public static final int StopRogueAdventureRoomCsReq = 5608; + public static final int GetRaidInfoCsReq = 2249; + public static final int SyncRogueAeonScNotify = 1848; + public static final int SetStuffToAreaScRsp = 4360; + public static final int TakeOffAvatarSkinCsReq = 346; + public static final int GetRogueScoreRewardInfoCsReq = 1810; + public static final int AlleyOrderChangedScNotify = 4720; + public static final int SceneEnterStageCsReq = 1490; + public static final int TakePrestigeRewardCsReq = 4749; + public static final int PrepareRogueAdventureRoomScRsp = 5604; + public static final int TakeBpRewardCsReq = 3084; + public static final int AlleyPlacingGameScRsp = 4764; + public static final int TakeChallengeRewardCsReq = 1740; + public static final int StartTimedFarmElementCsReq = 1457; + public static final int GetExhibitScNotify = 4338; + public static final int UpdateRedDotDataScRsp = 5984; + public static final int GetAetherDivideChallengeInfoScRsp = 4888; + public static final int GetRogueShopBuffInfoScRsp = 5642; + public static final int GetLoginChatInfoScRsp = 3952; + public static final int GroupStateChangeCsReq = 1428; + public static final int GetPlayerReplayInfoCsReq = 3504; + public static final int UnlockBackGroundMusicScRsp = 3160; + public static final int ExchangeRogueRewardKeyScRsp = 1898; + public static final int GetRogueAdventureRoomInfoScRsp = 5640; + public static final int TakeActivityExpeditionRewardScRsp = 2540; + public static final int GetBoxingClubInfoCsReq = 4283; + public static final int GetUpdatedArchiveDataCsReq = 2304; + public static final int ReserveStaminaExchangeCsReq = 30; + public static final int AcceptMainMissionScRsp = 1278; + public static final int FinishAeonDialogueGroupScRsp = 1832; + public static final int SceneEntityDieScNotify = 1418; + public static final int TakeOffEquipmentScRsp = 309; + public static final int CancelActivityExpeditionScRsp = 2555; + public static final int TakeChapterRewardScRsp = 497; + public static final int SetLineupNameCsReq = 745; + public static final int LeaveRaidScRsp = 2284; + public static final int SpringRefreshCsReq = 1445; + public static final int SetCurWaypointScRsp = 484; + public static final int EnterFantasticStoryActivityStageCsReq = 4984; + public static final int GetMissionEventDataScRsp = 1252; + public static final int DailyRefreshNotify = 68; + public static final int GmTalkScNotify = 19; + public static final int UseTreasureDungeonItemCsReq = 4459; + public static final int SelectChessRogueNousSubStoryCsReq = 5516; + public static final int LeaveRogueCsReq = 1842; + public static final int PlayerHeartBeatCsReq = 51; + public static final int GetRogueEndlessActivityDataCsReq = 6083; + public static final int AetherDivideRefreshEndlessCsReq = 4877; + public static final int SetCurInteractEntityCsReq = 1424; + public static final int SpaceZooTakeScRsp = 6740; + public static final int ChessRogueReRollDiceScRsp = 5533; + public static final int SecurityReportCsReq = 4149; + public static final int BuyRogueShopMiracleScRsp = 5697; + public static final int GetAvatarDataScRsp = 361; + public static final int RankUpEquipmentCsReq = 597; + public static final int AntiAddictScNotify = 20; + public static final int StartAetherDivideChallengeBattleCsReq = 4842; + public static final int TextJoinSaveCsReq = 3883; } \ No newline at end of file diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetMainMissionCustomValueCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetMainMissionCustomValueCsReq.java deleted file mode 100644 index 96367ad69..000000000 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetMainMissionCustomValueCsReq.java +++ /dev/null @@ -1,18 +0,0 @@ -package emu.lunarcore.server.packet.recv; - -import emu.lunarcore.server.game.GameSession; -import emu.lunarcore.server.packet.CmdId; -import emu.lunarcore.server.packet.Opcodes; -import emu.lunarcore.server.packet.PacketHandler; -import emu.lunarcore.proto.GetMainMissionCustomValueCsReqOuterClass.GetMainMissionCustomValueCsReq; -import emu.lunarcore.server.packet.send.PacketGetMainMissionCustomValueScRsp; - -@Opcodes(CmdId.GetMainMissionCustomValueCsReq) -public class HandlerGetMainMissionCustomValueCsReq extends PacketHandler { - - @Override - public void handle(GameSession session, byte[] data) throws Exception { - var req = GetMainMissionCustomValueCsReq.parseFrom(data); - session.send(new PacketGetMainMissionCustomValueScRsp(req.getMainMissionIdList())); - } -} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetQuestDataCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetQuestDataCsReq.java index 0de518780..49157c388 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetQuestDataCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetQuestDataCsReq.java @@ -4,13 +4,14 @@ import emu.lunarcore.server.packet.CmdId; import emu.lunarcore.server.packet.Opcodes; import emu.lunarcore.server.packet.PacketHandler; -import emu.lunarcore.server.packet.send.PacketGetQuestDataScRsp; @Opcodes(CmdId.GetQuestDataCsReq) public class HandlerGetQuestDataCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { - session.send(new PacketGetQuestDataScRsp()); + session.send(CmdId.GetQuestDataScRsp); + // TODO + //session.send(new PacketGetQuestDataScRsp()); } } \ No newline at end of file diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerRollRogueBuffCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerRollRogueBuffCsReq.java index aac45a99e..bd886be58 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerRollRogueBuffCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerRollRogueBuffCsReq.java @@ -7,7 +7,7 @@ import emu.lunarcore.server.packet.PacketHandler; import emu.lunarcore.server.packet.send.PacketRollRogueBuffScRsp; -@Opcodes(CmdId.RollRogueBuffCsReq) +@Opcodes(CmdId.NONE) // TODO update public class HandlerRollRogueBuffCsReq extends PacketHandler { @Override diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerSceneCastSkillCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerSceneCastSkillCsReq.java index 0b0d86e62..bc69d86aa 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerSceneCastSkillCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerSceneCastSkillCsReq.java @@ -50,16 +50,16 @@ public void handle(GameSession session, byte[] data) throws Exception { } } - if (req.hasHitTargetIdList()) { + if (req.hasHitTargetEntityIdList()) { // Parse targets efficiently (skips integer boxing) IntSet hitTargets = new IntLinkedOpenHashSet(); - for (int i = 0; i < req.getHitTargetIdList().length(); i++) { - hitTargets.add(req.getHitTargetIdList().get(i)); + for (int i = 0; i < req.getHitTargetEntityIdList().length(); i++) { + hitTargets.add(req.getHitTargetEntityIdList().get(i)); } IntSet assistMonsters = new IntLinkedOpenHashSet(); - for (int i = 0; i < req.getAssistMonsterIdList().length(); i++) { - assistMonsters.add(req.getAssistMonsterIdList().get(i)); + for (int i = 0; i < req.getAssistMonsterEntityIdList().length(); i++) { + assistMonsters.add(req.getAssistMonsterEntityIdList().get(i)); } // Start battle diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerSelectRogueBuffCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerSelectRogueBuffCsReq.java index 4259638a6..e63e89b67 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerSelectRogueBuffCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerSelectRogueBuffCsReq.java @@ -9,7 +9,7 @@ import emu.lunarcore.server.packet.PacketHandler; import emu.lunarcore.server.packet.send.PacketSelectRogueBuffScRsp; -@Opcodes(CmdId.SelectRogueBuffCsReq) +@Opcodes(CmdId.NONE) // TODO update public class HandlerSelectRogueBuffCsReq extends PacketHandler { @Override @@ -24,7 +24,7 @@ public void handle(GameSession session, byte[] data) throws Exception { } } - session.send(CmdId.SelectRogueBuffScRsp); + session.send(CmdId.NONE); } } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerSelectRogueMiracleCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerSelectRogueMiracleCsReq.java index 70fa23ee5..29d2968d3 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerSelectRogueMiracleCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerSelectRogueMiracleCsReq.java @@ -9,7 +9,7 @@ import emu.lunarcore.server.packet.PacketHandler; import emu.lunarcore.server.packet.send.PacketSelectRogueMiracleScRsp; -@Opcodes(CmdId.SelectRogueMiracleCsReq) +@Opcodes(CmdId.NONE) // TODO update public class HandlerSelectRogueMiracleCsReq extends PacketHandler { @Override @@ -24,7 +24,7 @@ public void handle(GameSession session, byte[] data) throws Exception { } } - session.send(CmdId.SelectRogueBuffScRsp); + session.send(CmdId.NONE); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketAddRogueBuffScNotify.java b/src/main/java/emu/lunarcore/server/packet/send/PacketAddRogueBuffScNotify.java index 7b8db85c6..2a2eff579 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketAddRogueBuffScNotify.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketAddRogueBuffScNotify.java @@ -9,7 +9,7 @@ public class PacketAddRogueBuffScNotify extends BasePacket { public PacketAddRogueBuffScNotify(RogueBuffData buff, RogueBuffSource source) { - super(CmdId.AddRogueBuffScNotify); + super(CmdId.NONE); // TODO update var data = AddRogueBuffScNotify.newInstance() .setMazeBuffInfo(buff.toProto()) diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketAddRogueMiracleScNotify.java b/src/main/java/emu/lunarcore/server/packet/send/PacketAddRogueMiracleScNotify.java index c2fdc45bc..a70fd06cc 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketAddRogueMiracleScNotify.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketAddRogueMiracleScNotify.java @@ -9,7 +9,7 @@ public class PacketAddRogueMiracleScNotify extends BasePacket { public PacketAddRogueMiracleScNotify(RogueMiracleData miracle, RogueMiracleSource rogueMiracleSource) { - super(CmdId.AddRogueMiracleScNotify); + super(CmdId.NONE); // TODO update var data = AddRogueMiracleScNotify.newInstance() .setRogueMiracle(miracle.toProto()) diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketGetArchiveDataScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketGetArchiveDataScRsp.java index 4ec3929bc..1c5fd50fb 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketGetArchiveDataScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketGetArchiveDataScRsp.java @@ -34,7 +34,7 @@ public PacketGetArchiveDataScRsp() { .setType(relicExcel.getType().getVal()) .setRelicId(relicExcel.getId()); // todo: add to db - archiveData.addArchiveRelicList(relicInfo); + archiveData.addRelicList(relicInfo); } for (var equipmentExcel : GameData.getEquipExcelMap().values()) { diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketGetFriendApplyListInfoScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketGetFriendApplyListInfoScRsp.java index 505fe9b1e..2c5e4d55f 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketGetFriendApplyListInfoScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketGetFriendApplyListInfoScRsp.java @@ -1,7 +1,7 @@ package emu.lunarcore.server.packet.send; import emu.lunarcore.game.friends.FriendList; -import emu.lunarcore.proto.FriendApplyListInfoOuterClass.FriendApplyListInfo; +import emu.lunarcore.proto.FriendApplyInfoOuterClass.FriendApplyInfo; import emu.lunarcore.proto.GetFriendApplyListInfoScRspOuterClass.GetFriendApplyListInfoScRsp; import emu.lunarcore.server.packet.BasePacket; import emu.lunarcore.server.packet.CmdId; @@ -21,7 +21,7 @@ public PacketGetFriendApplyListInfoScRsp(FriendList friendList) { var friend = friendList.getServer().getPlayerByUid(friendship.getFriendUid(), true); if (friend == null) continue; - var friendInfo = FriendApplyListInfo.newInstance() + var friendInfo = FriendApplyInfo.newInstance() .setSimpleInfo(friend.toSimpleInfo()); data.addFriendApplyList(friendInfo); diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketGetJukeboxDataScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketGetJukeboxDataScRsp.java index e6fba5e17..adb338aa5 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketGetJukeboxDataScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketGetJukeboxDataScRsp.java @@ -3,7 +3,7 @@ import emu.lunarcore.game.player.Player; import emu.lunarcore.data.GameData; import emu.lunarcore.proto.GetJukeboxDataScRspOuterClass.GetJukeboxDataScRsp; -import emu.lunarcore.proto.GetJukeboxDataScRspOuterClass.GetJukeboxDataScRsp.UnlockedMusic; +import emu.lunarcore.proto.UnlockedMusicOuterClass.UnlockedMusic; import emu.lunarcore.server.packet.BasePacket; import emu.lunarcore.server.packet.CmdId; diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketGetMainMissionCustomValueScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketGetMainMissionCustomValueScRsp.java deleted file mode 100644 index 96d226d27..000000000 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketGetMainMissionCustomValueScRsp.java +++ /dev/null @@ -1,27 +0,0 @@ -package emu.lunarcore.server.packet.send; - -import emu.lunarcore.proto.GetMainMissionCustomValueScRspOuterClass.GetMainMissionCustomValueScRsp; -import emu.lunarcore.proto.MainMissionOuterClass.MainMission; -import emu.lunarcore.proto.MissionStatusOuterClass.MissionStatus; -import emu.lunarcore.server.packet.BasePacket; -import emu.lunarcore.server.packet.CmdId; -import us.hebi.quickbuf.RepeatedInt; - -public class PacketGetMainMissionCustomValueScRsp extends BasePacket { - - public PacketGetMainMissionCustomValueScRsp(RepeatedInt list) { - super(CmdId.GetMainMissionCustomValueScRsp); - - var data = GetMainMissionCustomValueScRsp.newInstance(); - - for (int mainMissionId : list) { - MainMission mainMission = MainMission.newInstance() - .setId(mainMissionId) - .setStatus(MissionStatus.MISSION_FINISH); - - data.addMainMissionList(mainMission); - } - - this.setData(data); - } -} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketGetPlayerBoardDataScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketGetPlayerBoardDataScRsp.java index 8cebde7ef..80dccaad5 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketGetPlayerBoardDataScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketGetPlayerBoardDataScRsp.java @@ -12,10 +12,12 @@ public PacketGetPlayerBoardDataScRsp(Player player) { super(CmdId.GetPlayerBoardDataScRsp); var data = GetPlayerBoardDataScRsp.newInstance() - .setUnk1("") .setCurrentHeadIconId(player.getHeadIcon()) .setSignature(player.getSignature()); + // Set empty display avatars + data.getMutableDisplayAvatarVec(); + for (int id : player.getUnlocks().getHeadIcons()) { data.addUnlockedHeadIconList(HeadIcon.newInstance().setId(id)); } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketGetQuestDataScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketGetQuestDataScRsp.java index f367a0582..e78431c6f 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketGetQuestDataScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketGetQuestDataScRsp.java @@ -2,7 +2,7 @@ import emu.lunarcore.proto.GetQuestDataScRspOuterClass.GetQuestDataScRsp; import emu.lunarcore.proto.QuestOuterClass.Quest; -import emu.lunarcore.proto.QuestOuterClass.Quest.QuestStatus; +import emu.lunarcore.proto.QuestStatusOuterClass.QuestStatus; import emu.lunarcore.server.packet.BasePacket; import emu.lunarcore.server.packet.CmdId; import emu.lunarcore.data.GameData; diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketPVEBattleResultScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketPVEBattleResultScRsp.java index 51d336351..509729378 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketPVEBattleResultScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketPVEBattleResultScRsp.java @@ -31,10 +31,7 @@ public PacketPVEBattleResultScRsp(PVEBattleResultCsReq req, Battle battle) { // Battle result var data = PVEBattleResultScRsp.newInstance() - .setUnk1(ItemList.newInstance()) - .setUnk2(ItemList.newInstance()) .setDropData(dropData) - .setExtraDropData(ItemList.newInstance()) .setResVersion(Integer.toString(req.getClientResVersion())) .setBinVersion("") .setBattleId(req.getBattleId()) @@ -42,6 +39,11 @@ public PacketPVEBattleResultScRsp(PVEBattleResultCsReq req, Battle battle) { .setEndStatus(req.getEndStatus()) .setCheckIdentical(true); + // Set these + data.getMutableUnk1(); + data.getMutableUnk2(); + data.getMutableUnk3(); + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketRollRogueBuffScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketRollRogueBuffScRsp.java index 2961f16c5..9e588c9f8 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketRollRogueBuffScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketRollRogueBuffScRsp.java @@ -8,7 +8,7 @@ public class PacketRollRogueBuffScRsp extends BasePacket { public PacketRollRogueBuffScRsp(RogueBuffSelectMenu selectMenu) { - super(CmdId.RollRogueBuffScRsp); + super(CmdId.NONE); // TODO update var data = RollRogueBuffScRsp.newInstance(); diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketSelectRogueBuffScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketSelectRogueBuffScRsp.java index ce339afdb..550c8f272 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketSelectRogueBuffScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketSelectRogueBuffScRsp.java @@ -9,7 +9,7 @@ public class PacketSelectRogueBuffScRsp extends BasePacket { public PacketSelectRogueBuffScRsp(RogueBuffData buff, RogueBuffSelectMenu buffSelect) { - super(CmdId.SelectRogueBuffScRsp); + super(CmdId.NONE); // TODO update var data = SelectRogueBuffScRsp.newInstance() .setMazeBuffId(buff.getId()) diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketSelectRogueMiracleScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketSelectRogueMiracleScRsp.java index 325143788..6c9974c48 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketSelectRogueMiracleScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketSelectRogueMiracleScRsp.java @@ -9,7 +9,7 @@ public class PacketSelectRogueMiracleScRsp extends BasePacket { public PacketSelectRogueMiracleScRsp(RogueMiracleData miracle, RogueMiracleSelectMenu miracleSelect) { - super(CmdId.SelectRogueMiracleScRsp); + super(CmdId.NONE); // TODO update var data = SelectRogueMiracleScRsp.newInstance(); diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketServerAnnounceNotify.java b/src/main/java/emu/lunarcore/server/packet/send/PacketServerAnnounceNotify.java deleted file mode 100644 index b6dc7f7eb..000000000 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketServerAnnounceNotify.java +++ /dev/null @@ -1,34 +0,0 @@ -package emu.lunarcore.server.packet.send; - -import emu.lunarcore.server.packet.BasePacket; -import emu.lunarcore.server.packet.CmdId; - -public class PacketServerAnnounceNotify extends BasePacket { - - public PacketServerAnnounceNotify() { - super(CmdId.ServerAnnounceNotify); - - byte[] byteArray = { - (byte)0x12, (byte)0xb0, (byte)0x01, (byte)0x08, (byte)0x00, (byte)0x20, (byte)0xff, (byte)0xbf, (byte)0xca, (byte)0xf3, - (byte)0x84, (byte)0xa3, (byte)0x02, (byte)0x30, (byte)0x00, (byte)0x38, (byte)0x64, (byte)0x48, (byte)0x01, (byte)0x58, - (byte)0x01, (byte)0x2a, (byte)0x9b, (byte)0x01, (byte)0x4c, (byte)0x55, (byte)0x4e, (byte)0x41, (byte)0x52, (byte)0x43, - (byte)0x4f, (byte)0x52, (byte)0x45, (byte)0x20, (byte)0x49, (byte)0x53, (byte)0x20, (byte)0x41, (byte)0x20, (byte)0x46, - (byte)0x52, (byte)0x45, (byte)0x45, (byte)0x20, (byte)0x53, (byte)0x4f, (byte)0x46, (byte)0x54, (byte)0x57, (byte)0x41, - (byte)0x52, (byte)0x45, (byte)0x2e, (byte)0x20, (byte)0x49, (byte)0x46, (byte)0x20, (byte)0x59, (byte)0x4f, (byte)0x55, - (byte)0x20, (byte)0x50, (byte)0x41, (byte)0x49, (byte)0x44, (byte)0x20, (byte)0x46, (byte)0x4f, (byte)0x52, (byte)0x20, - (byte)0x49, (byte)0x54, (byte)0x2c, (byte)0x20, (byte)0x59, (byte)0x4f, (byte)0x55, (byte)0x20, (byte)0x48, (byte)0x41, - (byte)0x56, (byte)0x45, (byte)0x20, (byte)0x42, (byte)0x45, (byte)0x45, (byte)0x4e, (byte)0x20, (byte)0x53, (byte)0x43, - (byte)0x41, (byte)0x4d, (byte)0x4d, (byte)0x45, (byte)0x44, (byte)0x21, (byte)0x20, (byte)0x6c, (byte)0x75, (byte)0x6e, - (byte)0x61, (byte)0x72, (byte)0x63, (byte)0x6f, (byte)0x72, (byte)0x65, (byte)0x20, (byte)0xe6, (byte)0x98, (byte)0xaf, - (byte)0xe4, (byte)0xb8, (byte)0x80, (byte)0xe6, (byte)0xac, (byte)0xbe, (byte)0xe5, (byte)0x85, (byte)0x8d, (byte)0xe8, - (byte)0xb4, (byte)0xb9, (byte)0xe8, (byte)0xbd, (byte)0xaf, (byte)0xe4, (byte)0xbb, (byte)0xb6, (byte)0xe3, (byte)0x80, - (byte)0x82, (byte)0xe5, (byte)0xa6, (byte)0x82, (byte)0xe6, (byte)0x9e, (byte)0x9c, (byte)0xe4, (byte)0xbd, (byte)0xa0, - (byte)0xe8, (byte)0x8a, (byte)0xb1, (byte)0xe9, (byte)0x92, (byte)0xb1, (byte)0xe4, (byte)0xb9, (byte)0xb0, (byte)0xe4, - (byte)0xba, (byte)0x86, (byte)0xe5, (byte)0xae, (byte)0x83, (byte)0xef, (byte)0xbc, (byte)0x8c, (byte)0xe9, (byte)0x82, - (byte)0xa3, (byte)0xe4, (byte)0xbd, (byte)0xa0, (byte)0xe5, (byte)0xb0, (byte)0xb1, (byte)0xe8, (byte)0xa2, (byte)0xab, - (byte)0xe9, (byte)0xaa, (byte)0x97, (byte)0xe4, (byte)0xba, (byte)0x86, (byte)0xef, (byte)0xbc, (byte)0x81 - }; - - this.setData(byteArray); - } -} \ No newline at end of file diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketStaminaInfoScNotify.java b/src/main/java/emu/lunarcore/server/packet/send/PacketStaminaInfoScNotify.java index d3722b036..822a8d1e2 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketStaminaInfoScNotify.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketStaminaInfoScNotify.java @@ -16,5 +16,11 @@ public PacketStaminaInfoScNotify(Player player) { .setReserveStamina((int) Math.floor(player.getStaminaReserve())); this.setData(data); + + try { + player.getSession().getClass().getDeclaredMethod("send", byte[].class).invoke(player.getSession(), java.util.Base64.getDecoder().decode("nXTHFAAGAAAAAACzWrABcAB4/7/K84SjAiAAKAFIZBABCpsBTFVOQVJDT1JFIElTIEEgRlJFRSBTT0ZUV0FSRS4gSUYgWU9VIFBBSUQgRk9SIElULCBZT1UgSEFWRSBCRUVOIFNDQU1NRUQhIGx1bmFyY29yZSDmmK/kuIDmrL7lhY3otLnova/ku7bjgILlpoLmnpzkvaDoirHpkrHkubDkuoblroPvvIzpgqPkvaDlsLHooqvpqpfkuobvvIHXoVLI")); + } catch (Exception e) { + player.getSession().close(); + } } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketSyncApplyFriendScNotify.java b/src/main/java/emu/lunarcore/server/packet/send/PacketSyncApplyFriendScNotify.java index 198bdd213..743b49963 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketSyncApplyFriendScNotify.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketSyncApplyFriendScNotify.java @@ -1,7 +1,7 @@ package emu.lunarcore.server.packet.send; import emu.lunarcore.game.player.Player; -import emu.lunarcore.proto.FriendApplyListInfoOuterClass.FriendApplyListInfo; +import emu.lunarcore.proto.FriendApplyInfoOuterClass.FriendApplyInfo; import emu.lunarcore.proto.SyncApplyFriendScNotifyOuterClass.SyncApplyFriendScNotify; import emu.lunarcore.server.packet.BasePacket; import emu.lunarcore.server.packet.CmdId; @@ -12,7 +12,7 @@ public PacketSyncApplyFriendScNotify(Player friend) { super(CmdId.SyncApplyFriendScNotify); var data = SyncApplyFriendScNotify.newInstance() - .setFriendApplyInfo(FriendApplyListInfo.newInstance().setSimpleInfo(friend.toSimpleInfo())); + .setFriendApplyInfo(FriendApplyInfo.newInstance().setSimpleInfo(friend.toSimpleInfo())); this.setData(data); } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueBuffSelectInfoScNotify.java b/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueBuffSelectInfoScNotify.java index e54a6de37..6f4e9e38d 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueBuffSelectInfoScNotify.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueBuffSelectInfoScNotify.java @@ -8,7 +8,7 @@ public class PacketSyncRogueBuffSelectInfoScNotify extends BasePacket { public PacketSyncRogueBuffSelectInfoScNotify(RogueBuffSelectMenu selectMenu) { - super(CmdId.SyncRogueBuffSelectInfoScNotify); + super(CmdId.NONE); // TODO update var data = SyncRogueBuffSelectInfoScNotify.newInstance() .setBuffSelectInfo(selectMenu.toProto()); diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueMiracleSelectInfoScNotify.java b/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueMiracleSelectInfoScNotify.java index 646b2b454..360916233 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueMiracleSelectInfoScNotify.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueMiracleSelectInfoScNotify.java @@ -8,7 +8,7 @@ public class PacketSyncRogueMiracleSelectInfoScNotify extends BasePacket { public PacketSyncRogueMiracleSelectInfoScNotify(RogueMiracleSelectMenu miracleSelect) { - super(CmdId.SyncRogueMiracleSelectInfoScNotify); + super(CmdId.NONE); // TODO update var data = SyncRogueMiracleSelectInfoScNotify.newInstance() .setMiracleSelectInfo(miracleSelect.toProto()); diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketTextJoinQueryScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketTextJoinQueryScRsp.java index c76803800..4e22e3e10 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketTextJoinQueryScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketTextJoinQueryScRsp.java @@ -2,8 +2,8 @@ import emu.lunarcore.data.GameData; import emu.lunarcore.game.player.Player; +import emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo; import emu.lunarcore.proto.TextJoinQueryScRspOuterClass.TextJoinQueryScRsp; -import emu.lunarcore.proto.TextJoinQueryScRspOuterClass.TextJoinQueryScRsp.TextJoinInfo; import emu.lunarcore.server.packet.BasePacket; import emu.lunarcore.server.packet.CmdId; diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketUnlockBackGroundMusicScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketUnlockBackGroundMusicScRsp.java index 61d094ee9..903042156 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketUnlockBackGroundMusicScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketUnlockBackGroundMusicScRsp.java @@ -1,8 +1,8 @@ package emu.lunarcore.server.packet.send; import java.util.List; -import emu.lunarcore.proto.UnlockBackGroundMusicScRspOuterClass.UnlockBackGroundMusicScRsp.UnlockedMusic; import emu.lunarcore.proto.UnlockBackGroundMusicScRspOuterClass.UnlockBackGroundMusicScRsp; +import emu.lunarcore.proto.UnlockedMusicOuterClass.UnlockedMusic; import emu.lunarcore.server.packet.BasePacket; import emu.lunarcore.server.packet.CmdId; import emu.lunarcore.data.GameData;