From 70a420a6b19124b2832dc0420f323b09b116d371 Mon Sep 17 00:00:00 2001 From: Melledy <121644117+Melledy@users.noreply.github.com> Date: Mon, 5 Feb 2024 18:14:43 -0800 Subject: [PATCH] Update to support game version `2.0.0` --- .../proto/AKKLFHFHPFNOuterClass.java | 418 ---- .../ActivateFarmElementCsReqOuterClass.java | 166 +- .../ActivateFarmElementScRspOuterClass.java | 190 +- .../proto/ActivityScheduleInfoOuterClass.java | 286 +-- .../proto/ApplyFriendCsReqOuterClass.java | 30 +- .../proto/ArchiveDataOuterClass.java | 358 ++- ...s.java => AssistSimpleInfoOuterClass.java} | 246 +- .../proto/AvatarExpUpCsReqOuterClass.java | 32 +- .../proto/AvatarExpUpScRspOuterClass.java | 34 +- .../emu/lunarcore/proto/AvatarOuterClass.java | 698 +++--- .../lunarcore/proto/AvatarSyncOuterClass.java | 18 +- .../proto/BELMNIPGEDNOuterClass.java | 498 ---- .../proto/BattleAvatarOuterClass.java | 24 - .../BattleEventBattleInfoOuterClass.java | 119 +- .../proto/BattleMechanismBarOuterClass.java | 339 --- .../proto/BattleRelicOuterClass.java | 255 +- .../proto/BoardDataSyncOuterClass.java | 20 +- .../lunarcore/proto/BuffInfoOuterClass.java | 396 +-- .../proto/BuyGoodsCsReqOuterClass.java | 146 +- .../proto/BuyGoodsScRspOuterClass.java | 248 +- .../proto/ChallengeInfoOuterClass.java | 452 ++-- .../ChallengeLineupNotifyOuterClass.java | 14 +- .../lunarcore/proto/ChallengeOuterClass.java | 441 ++-- .../proto/ChallengeRewardOuterClass.java | 30 +- .../ChallengeSettleNotifyOuterClass.java | 412 ++-- .../ChallengeStoryBuffInfoOuterClass.java | 20 +- .../proto/ChallengeStoryInfoOuterClass.java | 16 +- .../ChangeLineupLeaderCsReqOuterClass.java | 14 +- .../ChangeLineupLeaderScRspOuterClass.java | 162 +- .../proto/ChargerInfoOuterClass.java | 340 +++ .../emu/lunarcore/proto/ChatOuterClass.java | 84 +- .../ChessRogueNousQueryInfoOuterClass.java | 518 +--- .../proto/ChessRoguePhaseOuterClass.java | 130 - .../proto/ChessRogueQueryInfoOuterClass.java | 686 ------ .../proto/ChessRogueQueryOuterClass.java | 970 -------- .../proto/ChessRogueQueryScRspOuterClass.java | 597 ----- .../lunarcore/proto/ClientMailOuterClass.java | 354 +-- .../proto/CommonRogueQueryOuterClass.java | 383 --- .../CommonRogueQueryScRspOuterClass.java | 362 --- .../proto/ComposeItemCsReqOuterClass.java | 190 +- .../proto/ComposeItemScRspOuterClass.java | 206 +- .../ComposeSelectedRelicCsReqOuterClass.java | 262 +- .../ComposeSelectedRelicScRspOuterClass.java | 190 +- .../DailyActiveInfoNotifyOuterClass.java | 56 +- .../proto/DailyActivityInfoOuterClass.java | 86 +- .../DeactivateFarmElementCsReqOuterClass.java | 260 ++ .../DeactivateFarmElementScRspOuterClass.java | 340 +++ .../proto/DelMailCsReqOuterClass.java | 20 +- .../proto/DelMailScRspOuterClass.java | 36 +- .../proto/DeleteFriendCsReqOuterClass.java | 14 +- ...java => DeployRotaterCsReqOuterClass.java} | 152 +- .../proto/DeployRotaterScRspOuterClass.java | 789 ++++++ .../proto/DisplayAvatarOuterClass.java | 164 +- .../proto/DisplayAvatarVecOuterClass.java | 34 +- .../proto/DoGachaCsReqOuterClass.java | 244 +- .../DoGachaInRollShopCsReqOuterClass.java | 340 +++ .../DoGachaInRollShopScRspOuterClass.java | 601 +++++ .../proto/DoGachaScRspOuterClass.java | 272 +-- .../proto/DressAvatarCsReqOuterClass.java | 166 +- .../DressRelicAvatarCsReqOuterClass.java | 34 +- ...nterMapRotationRegionCsReqOuterClass.java} | 152 +- ...EnterMapRotationRegionScRspOuterClass.java | 442 ++++ .../EnterSceneByServerScNotifyOuterClass.java | 50 +- .../proto/EnterSceneCsReqOuterClass.java | 160 +- .../proto/EnteredSceneInfoOuterClass.java | 166 +- .../proto/EntityBuffChangeInfoOuterClass.java | 192 +- .../proto/EntityBuffInfoOuterClass.java | 34 +- .../proto/EntityMotionOuterClass.java | 174 +- .../lunarcore/proto/EquipRelicOuterClass.java | 30 +- .../lunarcore/proto/EquipmentOuterClass.java | 704 +++--- .../ExchangeGachaCeilingCsReqOuterClass.java | 30 +- .../ExchangeGachaCeilingScRspOuterClass.java | 390 +-- .../proto/ExchangeHcoinCsReqOuterClass.java | 14 +- .../proto/ExchangeHcoinScRspOuterClass.java | 162 +- .../proto/ExpUpEquipmentCsReqOuterClass.java | 32 +- .../proto/ExpUpEquipmentScRspOuterClass.java | 34 +- .../proto/ExpUpRelicCsReqOuterClass.java | 32 +- .../proto/ExpUpRelicScRspOuterClass.java | 34 +- .../proto/FriendApplyInfoOuterClass.java | 16 +- .../proto/FriendListInfoOuterClass.java | 16 +- .../proto/FriendRecommendInfoOuterClass.java | 16 +- .../proto/GachaCeilingAvatarOuterClass.java | 16 +- .../proto/GachaCeilingOuterClass.java | 30 +- .../lunarcore/proto/GachaInfoOuterClass.java | 592 ++--- .../lunarcore/proto/GachaItemOuterClass.java | 254 +- .../lunarcore/proto/GateserverOuterClass.java | 1066 ++++---- ...ActivityScheduleConfigScRspOuterClass.java | 34 +- .../GetAllLineupDataScRspOuterClass.java | 190 +- .../proto/GetArchiveDataScRspOuterClass.java | 18 +- .../proto/GetAvatarDataCsReqOuterClass.java | 14 +- .../proto/GetAvatarDataScRspOuterClass.java | 50 +- .../proto/GetBagScRspOuterClass.java | 430 ++-- .../proto/GetBasicInfoScRspOuterClass.java | 540 ++-- .../proto/GetChallengeScRspOuterClass.java | 262 +- .../proto/GetCurChallengeScRspOuterClass.java | 32 +- .../GetCurLineupDataScRspOuterClass.java | 32 +- .../proto/GetCurSceneInfoScRspOuterClass.java | 32 +- .../GetDailyActiveInfoScRspOuterClass.java | 30 +- .../proto/GetEnteredSceneScRspOuterClass.java | 34 +- ...stTalkByPerformanceNpcCsReqOuterClass.java | 20 +- ...stTalkByPerformanceNpcScRspOuterClass.java | 34 +- ...GetFriendApplyListInfoScRspOuterClass.java | 34 +- .../GetFriendListInfoScRspOuterClass.java | 165 +- .../GetFriendLoginInfoScRspOuterClass.java | 127 +- ...riendRecommendListInfoScRspOuterClass.java | 34 +- .../proto/GetGachaCeilingCsReqOuterClass.java | 14 +- .../proto/GetGachaCeilingScRspOuterClass.java | 158 +- .../proto/GetGachaInfoScRspOuterClass.java | 34 +- .../GetHeroBasicTypeInfoScRspOuterClass.java | 250 +- .../proto/GetJukeboxDataScRspOuterClass.java | 190 +- .../proto/GetMailScRspOuterClass.java | 306 +-- .../GetMissionStatusCsReqOuterClass.java | 42 +- .../GetMissionStatusScRspOuterClass.java | 340 +-- .../GetNpcTakenRewardCsReqOuterClass.java | 14 +- .../GetNpcTakenRewardScRspOuterClass.java | 164 +- .../proto/GetPhoneDataScRspOuterClass.java | 538 ++-- .../GetPlayerBoardDataScRspOuterClass.java | 100 +- .../GetPlayerDetailInfoCsReqOuterClass.java | 14 +- .../GetPlayerDetailInfoScRspOuterClass.java | 32 +- .../GetPrivateChatHistoryCsReqOuterClass.java | 166 +- .../GetPrivateChatHistoryScRspOuterClass.java | 224 +- .../proto/GetQuestDataScRspOuterClass.java | 50 +- .../proto/GetRollShopInfoCsReqOuterClass.java | 260 ++ .../proto/GetRollShopInfoScRspOuterClass.java | 541 ++++ .../proto/GetSceneMapInfoCsReqOuterClass.java | 36 +- .../proto/GetSceneMapInfoScRspOuterClass.java | 766 +++--- .../proto/GetShopListCsReqOuterClass.java | 14 +- .../proto/GetShopListScRspOuterClass.java | 190 +- .../GetUnlockTeleportCsReqOuterClass.java | 20 +- .../GetUnlockTeleportScRspOuterClass.java | 36 +- .../emu/lunarcore/proto/GoodsOuterClass.java | 480 ++-- .../GroupStateChangeCsReqOuterClass.java | 16 +- .../GroupStateChangeScNotifyOuterClass.java | 16 +- .../GroupStateChangeScRspOuterClass.java | 14 +- .../proto/GroupStateInfoOuterClass.java | 176 +- .../proto/HandleFriendCsReqOuterClass.java | 30 +- .../proto/HandleFriendScRspOuterClass.java | 204 +- .../lunarcore/proto/HeadIconOuterClass.java | 14 +- .../proto/HeroBasicTypeInfoOuterClass.java | 50 +- ...va => InteractChargerCsReqOuterClass.java} | 144 +- .../proto/InteractChargerScRspOuterClass.java | 810 ++++++ .../proto/InteractPropCsReqOuterClass.java | 160 +- .../proto/InteractPropScRspOuterClass.java | 170 +- .../proto/ItemCostListOuterClass.java | 18 +- .../lunarcore/proto/ItemCostOuterClass.java | 510 +--- .../lunarcore/proto/ItemListOuterClass.java | 18 +- .../emu/lunarcore/proto/ItemOuterClass.java | 536 ++-- .../proto/JHAHJFNNGHIOuterClass.java | 600 ----- .../proto/JoinLineupCsReqOuterClass.java | 494 ++-- .../proto/KDHBAHABJMPOuterClass.java | 598 ----- .../proto/LineupAvatarOuterClass.java | 296 +-- .../lunarcore/proto/LineupInfoOuterClass.java | 380 +-- .../proto/LineupSlotDataOuterClass.java | 30 +- .../proto/LockEquipmentCsReqOuterClass.java | 30 +- .../proto/LockEquipmentScRspOuterClass.java | 158 +- .../proto/LockRelicCsReqOuterClass.java | 30 +- .../proto/LockRelicScRspOuterClass.java | 164 +- .../proto/MECNPEEJJDEOuterClass.java | 10 +- .../proto/MEMPJPLINCNOuterClass.java | 480 ---- .../proto/MarkReadMailCsReqOuterClass.java | 14 +- .../proto/MarkReadMailScRspOuterClass.java | 14 +- .../lunarcore/proto/MaterialOuterClass.java | 162 +- .../proto/MazeMapDataOuterClass.java | 906 +++---- .../lunarcore/proto/MazePropOuterClass.java | 202 +- .../lunarcore/proto/MissionOuterClass.java | 46 +- .../proto/MonsterArchiveOuterClass.java | 30 +- .../lunarcore/proto/MotionInfoOuterClass.java | 18 +- .../proto/NewMailScNotifyOuterClass.java | 20 +- .../proto/NpcExtraInfoOuterClass.java | 16 +- .../proto/NpcTalkInfoOuterClass.java | 14 +- .../proto/OONJMMOMFHLOuterClass.java | 292 --- .../proto/PVEBattleResultCsReqOuterClass.java | 262 +- .../proto/PVEBattleResultScRspOuterClass.java | 932 +++---- .../lunarcore/proto/PileItemOuterClass.java | 30 +- .../PlayBackGroundMusicCsReqOuterClass.java | 14 +- .../PlayBackGroundMusicScRspOuterClass.java | 46 +- .../proto/PlayerGetTokenCsReqOuterClass.java | 58 +- .../proto/PlayerGetTokenScRspOuterClass.java | 226 +- .../proto/PlayerHeartbeatCsReqOuterClass.java | 14 +- .../proto/PlayerHeartbeatScRspOuterClass.java | 66 +- .../proto/PlayerLoginScRspOuterClass.java | 250 +- .../proto/PlayerSyncScNotifyOuterClass.java | 634 ++--- .../proto/PromoteAvatarCsReqOuterClass.java | 34 +- .../PromoteEquipmentCsReqOuterClass.java | 32 +- .../proto/PropExtraInfoOuterClass.java | 156 +- .../emu/lunarcore/proto/QuestOuterClass.java | 273 ++- .../proto/QuitLineupCsReqOuterClass.java | 220 +- .../proto/RankUpAvatarCsReqOuterClass.java | 30 +- .../proto/RankUpEquipmentCsReqOuterClass.java | 32 +- ...eEnterLastElementStageCsReqOuterClass.java | 14 +- ...eEnterLastElementStageScRspOuterClass.java | 186 +- ...RefreshTriggerByClientCsReqOuterClass.java | 58 +- ...reshTriggerByClientScNotifyOuterClass.java | 58 +- ...RefreshTriggerByClientScRspOuterClass.java | 210 +- .../proto/RelicArchiveOuterClass.java | 16 +- .../emu/lunarcore/proto/RelicOuterClass.java | 644 ++--- .../lunarcore/proto/RelicParamOuterClass.java | 30 +- .../proto/ReplaceLineupCsReqOuterClass.java | 318 +-- ...ReserveStaminaExchangeCsReqOuterClass.java | 14 +- ...ReserveStaminaExchangeScRspOuterClass.java | 30 +- .../proto/RevcMsgScNotifyOuterClass.java | 186 +- .../proto/RogueAeonInfoOuterClass.java | 121 +- .../lunarcore/proto/RogueAeonOuterClass.java | 191 +- .../RogueCommonPendingActionOuterClass.java | 81 +- .../proto/RogueDialogueEventOuterClass.java | 61 +- .../proto/RogueRoomInfoOuterClass.java | 494 ---- .../proto/RogueUpdateOuterClass.java | 421 ---- .../proto/RotateMapCsReqOuterClass.java | 1395 +++++++++++ .../proto/RotateMapScRspOuterClass.java | 441 ++++ .../proto/RotaterDataOuterClass.java | 420 ++++ .../proto/SceneActorInfoOuterClass.java | 308 +-- .../proto/SceneBattleInfoOuterClass.java | 1187 ++++----- .../proto/SceneCastSkillCsReqOuterClass.java | 356 +-- ...neCastSkillMpUpdateScNotifyOuterClass.java | 30 +- .../proto/SceneCastSkillScRspOuterClass.java | 48 +- .../proto/SceneEntityGroupInfoOuterClass.java | 50 +- .../proto/SceneEntityInfoOuterClass.java | 900 +++---- .../proto/SceneEntityMoveCsReqOuterClass.java | 34 +- .../SceneEntityMoveScNotifyOuterClass.java | 192 +- .../SceneEntityRefreshInfoOuterClass.java | 14 +- .../SceneEntityTeleportCsReqOuterClass.java | 363 +++ .../SceneEntityTeleportScRspOuterClass.java | 443 ++++ .../SceneGroupRefreshInfoOuterClass.java | 190 +- .../SceneGroupRefreshScNotifyOuterClass.java | 18 +- .../proto/SceneGroupStateOuterClass.java | 188 +- .../lunarcore/proto/SceneInfoOuterClass.java | 754 +++--- .../proto/SceneMonsterOuterClass.java | 160 +- .../proto/SceneMonsterWaveOuterClass.java | 238 +- .../SceneMonsterWaveParamOuterClass.java | 252 +- .../proto/SceneNpcInfoOuterClass.java | 32 +- .../proto/SceneNpcMonsterInfoOuterClass.java | 218 +- .../ScenePlaneEventScNotifyOuterClass.java | 16 +- .../proto/ScenePropInfoOuterClass.java | 246 +- .../proto/SceneSummonUnitInfoOuterClass.java | 228 +- .../proto/SearchPlayerCsReqOuterClass.java | 20 +- .../proto/SearchPlayerScRspOuterClass.java | 34 +- .../SelectChatBubbleCsReqOuterClass.java | 14 +- .../SelectChatBubbleScRspOuterClass.java | 164 +- .../SelectPhoneThemeCsReqOuterClass.java | 14 +- .../SelectPhoneThemeScRspOuterClass.java | 30 +- .../proto/SellItemCsReqOuterClass.java | 16 +- .../proto/SellItemScRspOuterClass.java | 32 +- .../proto/SendMsgCsReqOuterClass.java | 262 +- .../proto/SetClientPausedCsReqOuterClass.java | 14 +- .../proto/SetClientPausedScRspOuterClass.java | 30 +- .../proto/SetFriendMarkCsReqOuterClass.java | 340 +++ .../proto/SetFriendMarkScRspOuterClass.java | 420 ++++ .../SetGameplayBirthdayScRspOuterClass.java | 162 +- .../proto/SetHeadIconCsReqOuterClass.java | 14 +- .../proto/SetHeadIconScRspOuterClass.java | 30 +- .../SetHeroBasicTypeCsReqOuterClass.java | 14 +- .../SetHeroBasicTypeScRspOuterClass.java | 30 +- .../proto/SetLineupNameCsReqOuterClass.java | 36 +- .../proto/SetLineupNameScRspOuterClass.java | 52 +- .../proto/SetNicknameCsReqOuterClass.java | 20 +- .../proto/SetSignatureCsReqOuterClass.java | 20 +- .../proto/SetSignatureScRspOuterClass.java | 36 +- .../emu/lunarcore/proto/ShopOuterClass.java | 310 +-- .../lunarcore/proto/SimpleInfoOuterClass.java | 566 +++-- .../proto/StaminaInfoScNotifyOuterClass.java | 46 +- .../proto/StartChallengeCsReqOuterClass.java | 32 +- .../proto/StartChallengeScRspOuterClass.java | 68 +- ...StartChallengeStoryBuffInfoOuterClass.java | 30 +- .../StartChallengeStoryInfoOuterClass.java | 16 +- .../StartCocoonStageCsReqOuterClass.java | 364 +-- .../StartCocoonStageScRspOuterClass.java | 206 +- .../proto/SwapLineupCsReqOuterClass.java | 300 +-- .../SwitchLineupIndexCsReqOuterClass.java | 14 +- .../SwitchLineupIndexScRspOuterClass.java | 30 +- .../SyncApplyFriendScNotifyOuterClass.java | 16 +- .../SyncClientResVersionScRspOuterClass.java | 164 +- .../SyncDeleteFriendScNotifyOuterClass.java | 14 +- ...ntityBuffChangeListScNotifyOuterClass.java | 18 +- .../SyncHandleFriendScNotifyOuterClass.java | 48 +- .../proto/SyncLineupNotifyOuterClass.java | 38 +- ...eCommonActionResultScNotifyOuterClass.java | 71 +- ...CommonPendingActionScNotifyOuterClass.java | 81 +- .../TakeChallengeRewardCsReqOuterClass.java | 166 +- .../TakeChallengeRewardScRspOuterClass.java | 286 +-- .../TakeMailAttachmentScRspOuterClass.java | 54 +- .../TakeOffEquipmentCsReqOuterClass.java | 14 +- .../proto/TakeOffRelicCsReqOuterClass.java | 36 +- .../TakePromotionRewardCsReqOuterClass.java | 30 +- .../TakePromotionRewardScRspOuterClass.java | 32 +- .../proto/TextJoinQueryCsReqOuterClass.java | 20 +- .../proto/TextJoinQueryScRspOuterClass.java | 34 +- .../UnlockBackGroundMusicCsReqOuterClass.java | 20 +- .../UnlockBackGroundMusicScRspOuterClass.java | 42 +- .../UnlockPhoneThemeScNotifyOuterClass.java | 14 +- .../proto/UnlockSkilltreeCsReqOuterClass.java | 50 +- .../proto/UnlockSkilltreeScRspOuterClass.java | 252 +- .../proto/UnlockedMusicOuterClass.java | 208 +- .../proto/UpdateEnergyScNotifyOuterClass.java | 607 +++++ .../proto/UseItemCsReqOuterClass.java | 390 +-- .../proto/UseItemScRspOuterClass.java | 190 +- .../emu/lunarcore/proto/VectorOuterClass.java | 186 +- src/main/java/emu/lunarcore/Config.java | 2 - .../java/emu/lunarcore/GameConstants.java | 4 +- .../java/emu/lunarcore/data/GameDepot.java | 3 +- .../emu/lunarcore/data/ResourceLoader.java | 5 +- .../emu/lunarcore/data/config/FloorInfo.java | 2 + .../emu/lunarcore/data/config/PropInfo.java | 1 + .../data/config/SkillAbilityInfo.java | 2 +- .../ActivityScheduleData.java} | 6 +- .../data/excel/RogueBuffGroupExcel.java | 4 +- .../emu/lunarcore/game/player/Player.java | 21 +- .../game/rogue/RogueBuffSelectMenu.java | 2 +- .../lunarcore/game/rogue/RogueInstance.java | 6 +- .../lunarcore/game/rogue/RogueManager.java | 2 +- .../emu/lunarcore/server/packet/CmdId.java | 2168 +++++++++-------- .../send/PacketGetArchiveDataScRsp.java | 4 + .../send/PacketGetFriendListInfoScRsp.java | 4 +- .../PacketGetRogueBuffEnhanceInfoScRsp.java | 2 +- .../PacketSelectRogueDialogueEventScRsp.java | 2 +- .../send/PacketStaminaInfoScNotify.java | 2 +- ...etSyncRogueCommonActionResultScNotify.java | 4 +- ...tSyncRogueCommonPendingActionScNotify.java | 6 +- ...ketSyncRogueDialogueEventDataScNotify.java | 2 +- 318 files changed, 29693 insertions(+), 29372 deletions(-) delete mode 100644 src/generated/main/emu/lunarcore/proto/AKKLFHFHPFNOuterClass.java rename src/generated/main/emu/lunarcore/proto/{SimpleAvatarInfoOuterClass.java => AssistSimpleInfoOuterClass.java} (61%) delete mode 100644 src/generated/main/emu/lunarcore/proto/BELMNIPGEDNOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/BattleMechanismBarOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/ChargerInfoOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/ChessRoguePhaseOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/ChessRogueQueryInfoOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/ChessRogueQueryOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/ChessRogueQueryScRspOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/CommonRogueQueryOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/CommonRogueQueryScRspOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/DeactivateFarmElementCsReqOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/DeactivateFarmElementScRspOuterClass.java rename src/generated/main/emu/lunarcore/proto/{OFHBFINPHAGOuterClass.java => DeployRotaterCsReqOuterClass.java} (50%) create mode 100644 src/generated/main/emu/lunarcore/proto/DeployRotaterScRspOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/DoGachaInRollShopCsReqOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/DoGachaInRollShopScRspOuterClass.java rename src/generated/main/emu/lunarcore/proto/{RogueQueryOuterClass.java => EnterMapRotationRegionCsReqOuterClass.java} (51%) create mode 100644 src/generated/main/emu/lunarcore/proto/EnterMapRotationRegionScRspOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/GetRollShopInfoCsReqOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/GetRollShopInfoScRspOuterClass.java rename src/generated/main/emu/lunarcore/proto/{CommonRogueUpdateScNotifyOuterClass.java => InteractChargerCsReqOuterClass.java} (50%) create mode 100644 src/generated/main/emu/lunarcore/proto/InteractChargerScRspOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/JHAHJFNNGHIOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/KDHBAHABJMPOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/MEMPJPLINCNOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/OONJMMOMFHLOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueRoomInfoOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueUpdateOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/RotateMapCsReqOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/RotateMapScRspOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/RotaterDataOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/SceneEntityTeleportCsReqOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/SceneEntityTeleportScRspOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/SetFriendMarkCsReqOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/SetFriendMarkScRspOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/UpdateEnergyScNotifyOuterClass.java rename src/main/java/emu/lunarcore/data/{excel/ActivitySchedulingExcel.java => custom/ActivityScheduleData.java} (59%) diff --git a/src/generated/main/emu/lunarcore/proto/AKKLFHFHPFNOuterClass.java b/src/generated/main/emu/lunarcore/proto/AKKLFHFHPFNOuterClass.java deleted file mode 100644 index 0351757..0000000 --- a/src/generated/main/emu/lunarcore/proto/AKKLFHFHPFNOuterClass.java +++ /dev/null @@ -1,418 +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 AKKLFHFHPFNOuterClass { - /** - * Protobuf type {@code AKKLFHFHPFN} - */ - public static final class AKKLFHFHPFN extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 JPEBPGIEGPO = 7; - */ - private int jPEBPGIEGPO; - - /** - * optional uint32 OFBCBEIEAEC = 10; - */ - private int oFBCBEIEAEC; - - /** - * optional bool CGAFFPHCNEA = 12; - */ - private boolean cGAFFPHCNEA; - - private AKKLFHFHPFN() { - } - - /** - * @return a new empty instance of {@code AKKLFHFHPFN} - */ - public static AKKLFHFHPFN newInstance() { - return new AKKLFHFHPFN(); - } - - /** - * optional uint32 JPEBPGIEGPO = 7; - * @return whether the jPEBPGIEGPO field is set - */ - public boolean hasJPEBPGIEGPO() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 JPEBPGIEGPO = 7; - * @return this - */ - public AKKLFHFHPFN clearJPEBPGIEGPO() { - bitField0_ &= ~0x00000001; - jPEBPGIEGPO = 0; - return this; - } - - /** - * optional uint32 JPEBPGIEGPO = 7; - * @return the jPEBPGIEGPO - */ - public int getJPEBPGIEGPO() { - return jPEBPGIEGPO; - } - - /** - * optional uint32 JPEBPGIEGPO = 7; - * @param value the jPEBPGIEGPO to set - * @return this - */ - public AKKLFHFHPFN setJPEBPGIEGPO(final int value) { - bitField0_ |= 0x00000001; - jPEBPGIEGPO = value; - return this; - } - - /** - * optional uint32 OFBCBEIEAEC = 10; - * @return whether the oFBCBEIEAEC field is set - */ - public boolean hasOFBCBEIEAEC() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 OFBCBEIEAEC = 10; - * @return this - */ - public AKKLFHFHPFN clearOFBCBEIEAEC() { - bitField0_ &= ~0x00000002; - oFBCBEIEAEC = 0; - return this; - } - - /** - * optional uint32 OFBCBEIEAEC = 10; - * @return the oFBCBEIEAEC - */ - public int getOFBCBEIEAEC() { - return oFBCBEIEAEC; - } - - /** - * optional uint32 OFBCBEIEAEC = 10; - * @param value the oFBCBEIEAEC to set - * @return this - */ - public AKKLFHFHPFN setOFBCBEIEAEC(final int value) { - bitField0_ |= 0x00000002; - oFBCBEIEAEC = value; - return this; - } - - /** - * optional bool CGAFFPHCNEA = 12; - * @return whether the cGAFFPHCNEA field is set - */ - public boolean hasCGAFFPHCNEA() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional bool CGAFFPHCNEA = 12; - * @return this - */ - public AKKLFHFHPFN clearCGAFFPHCNEA() { - bitField0_ &= ~0x00000004; - cGAFFPHCNEA = false; - return this; - } - - /** - * optional bool CGAFFPHCNEA = 12; - * @return the cGAFFPHCNEA - */ - public boolean getCGAFFPHCNEA() { - return cGAFFPHCNEA; - } - - /** - * optional bool CGAFFPHCNEA = 12; - * @param value the cGAFFPHCNEA to set - * @return this - */ - public AKKLFHFHPFN setCGAFFPHCNEA(final boolean value) { - bitField0_ |= 0x00000004; - cGAFFPHCNEA = value; - return this; - } - - @Override - public AKKLFHFHPFN copyFrom(final AKKLFHFHPFN other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - jPEBPGIEGPO = other.jPEBPGIEGPO; - oFBCBEIEAEC = other.oFBCBEIEAEC; - cGAFFPHCNEA = other.cGAFFPHCNEA; - } - return this; - } - - @Override - public AKKLFHFHPFN mergeFrom(final AKKLFHFHPFN other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasJPEBPGIEGPO()) { - setJPEBPGIEGPO(other.jPEBPGIEGPO); - } - if (other.hasOFBCBEIEAEC()) { - setOFBCBEIEAEC(other.oFBCBEIEAEC); - } - if (other.hasCGAFFPHCNEA()) { - setCGAFFPHCNEA(other.cGAFFPHCNEA); - } - return this; - } - - @Override - public AKKLFHFHPFN clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - jPEBPGIEGPO = 0; - oFBCBEIEAEC = 0; - cGAFFPHCNEA = false; - return this; - } - - @Override - public AKKLFHFHPFN 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 AKKLFHFHPFN)) { - return false; - } - AKKLFHFHPFN other = (AKKLFHFHPFN) o; - return bitField0_ == other.bitField0_ - && (!hasJPEBPGIEGPO() || jPEBPGIEGPO == other.jPEBPGIEGPO) - && (!hasOFBCBEIEAEC() || oFBCBEIEAEC == other.oFBCBEIEAEC) - && (!hasCGAFFPHCNEA() || cGAFFPHCNEA == other.cGAFFPHCNEA); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 56); - output.writeUInt32NoTag(jPEBPGIEGPO); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 80); - output.writeUInt32NoTag(oFBCBEIEAEC); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 96); - output.writeBoolNoTag(cGAFFPHCNEA); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(jPEBPGIEGPO); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(oFBCBEIEAEC); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 2; - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public AKKLFHFHPFN mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 56: { - // jPEBPGIEGPO - jPEBPGIEGPO = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 80) { - break; - } - } - case 80: { - // oFBCBEIEAEC - oFBCBEIEAEC = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 96) { - break; - } - } - case 96: { - // cGAFFPHCNEA - cGAFFPHCNEA = 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.jPEBPGIEGPO, jPEBPGIEGPO); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.oFBCBEIEAEC, oFBCBEIEAEC); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeBool(FieldNames.cGAFFPHCNEA, cGAFFPHCNEA); - } - output.endObject(); - } - - @Override - public AKKLFHFHPFN mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 617496720: { - if (input.isAtField(FieldNames.jPEBPGIEGPO)) { - if (!input.trySkipNullValue()) { - jPEBPGIEGPO = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1165634632: { - if (input.isAtField(FieldNames.oFBCBEIEAEC)) { - if (!input.trySkipNullValue()) { - oFBCBEIEAEC = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case -927350692: { - if (input.isAtField(FieldNames.cGAFFPHCNEA)) { - if (!input.trySkipNullValue()) { - cGAFFPHCNEA = input.readBool(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public AKKLFHFHPFN clone() { - return new AKKLFHFHPFN().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static AKKLFHFHPFN parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new AKKLFHFHPFN(), data).checkInitialized(); - } - - public static AKKLFHFHPFN parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new AKKLFHFHPFN(), input).checkInitialized(); - } - - public static AKKLFHFHPFN parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new AKKLFHFHPFN(), input).checkInitialized(); - } - - /** - * @return factory for creating AKKLFHFHPFN messages - */ - public static MessageFactory getFactory() { - return AKKLFHFHPFNFactory.INSTANCE; - } - - private enum AKKLFHFHPFNFactory implements MessageFactory { - INSTANCE; - - @Override - public AKKLFHFHPFN create() { - return AKKLFHFHPFN.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName jPEBPGIEGPO = FieldName.forField("JPEBPGIEGPO"); - - static final FieldName oFBCBEIEAEC = FieldName.forField("OFBCBEIEAEC"); - - static final FieldName cGAFFPHCNEA = FieldName.forField("CGAFFPHCNEA"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/ActivateFarmElementCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/ActivateFarmElementCsReqOuterClass.java index 9a445fd..6cdb15f 100644 --- a/src/generated/main/emu/lunarcore/proto/ActivateFarmElementCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ActivateFarmElementCsReqOuterClass.java @@ -19,15 +19,15 @@ public final class ActivateFarmElementCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 world_level = 4; - */ - private int worldLevel; - - /** - * optional uint32 entity_id = 6; + * optional uint32 entity_id = 3; */ private int entityId; + /** + * optional uint32 world_level = 5; + */ + private int worldLevel; + private ActivateFarmElementCsReq() { } @@ -39,62 +39,25 @@ public final class ActivateFarmElementCsReqOuterClass { } /** - * optional uint32 world_level = 4; - * @return whether the worldLevel field is set + * optional uint32 entity_id = 3; + * @return whether the entityId field is set */ - public boolean hasWorldLevel() { + public boolean hasEntityId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 world_level = 4; - * @return this - */ - public ActivateFarmElementCsReq clearWorldLevel() { - bitField0_ &= ~0x00000001; - worldLevel = 0; - return this; - } - - /** - * optional uint32 world_level = 4; - * @return the worldLevel - */ - public int getWorldLevel() { - return worldLevel; - } - - /** - * optional uint32 world_level = 4; - * @param value the worldLevel to set - * @return this - */ - public ActivateFarmElementCsReq setWorldLevel(final int value) { - bitField0_ |= 0x00000001; - worldLevel = value; - return this; - } - - /** - * optional uint32 entity_id = 6; - * @return whether the entityId field is set - */ - public boolean hasEntityId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 entity_id = 6; + * optional uint32 entity_id = 3; * @return this */ public ActivateFarmElementCsReq clearEntityId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; entityId = 0; return this; } /** - * optional uint32 entity_id = 6; + * optional uint32 entity_id = 3; * @return the entityId */ public int getEntityId() { @@ -102,23 +65,60 @@ public final class ActivateFarmElementCsReqOuterClass { } /** - * optional uint32 entity_id = 6; + * optional uint32 entity_id = 3; * @param value the entityId to set * @return this */ public ActivateFarmElementCsReq setEntityId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; entityId = value; return this; } + /** + * optional uint32 world_level = 5; + * @return whether the worldLevel field is set + */ + public boolean hasWorldLevel() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 world_level = 5; + * @return this + */ + public ActivateFarmElementCsReq clearWorldLevel() { + bitField0_ &= ~0x00000002; + worldLevel = 0; + return this; + } + + /** + * optional uint32 world_level = 5; + * @return the worldLevel + */ + public int getWorldLevel() { + return worldLevel; + } + + /** + * optional uint32 world_level = 5; + * @param value the worldLevel to set + * @return this + */ + public ActivateFarmElementCsReq setWorldLevel(final int value) { + bitField0_ |= 0x00000002; + worldLevel = value; + return this; + } + @Override public ActivateFarmElementCsReq copyFrom(final ActivateFarmElementCsReq other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - worldLevel = other.worldLevel; entityId = other.entityId; + worldLevel = other.worldLevel; } return this; } @@ -129,12 +129,12 @@ public final class ActivateFarmElementCsReqOuterClass { return this; } cachedSize = -1; - if (other.hasWorldLevel()) { - setWorldLevel(other.worldLevel); - } if (other.hasEntityId()) { setEntityId(other.entityId); } + if (other.hasWorldLevel()) { + setWorldLevel(other.worldLevel); + } return this; } @@ -145,8 +145,8 @@ public final class ActivateFarmElementCsReqOuterClass { } cachedSize = -1; bitField0_ = 0; - worldLevel = 0; entityId = 0; + worldLevel = 0; return this; } @@ -170,19 +170,19 @@ public final class ActivateFarmElementCsReqOuterClass { } ActivateFarmElementCsReq other = (ActivateFarmElementCsReq) o; return bitField0_ == other.bitField0_ - && (!hasWorldLevel() || worldLevel == other.worldLevel) - && (!hasEntityId() || entityId == other.entityId); + && (!hasEntityId() || entityId == other.entityId) + && (!hasWorldLevel() || worldLevel == other.worldLevel); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 32); - output.writeUInt32NoTag(worldLevel); + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(entityId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 48); - output.writeUInt32NoTag(entityId); + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(worldLevel); } } @@ -190,10 +190,10 @@ public final class ActivateFarmElementCsReqOuterClass { 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); } return size; } @@ -205,18 +205,18 @@ public final class ActivateFarmElementCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 32: { - // worldLevel - worldLevel = input.readUInt32(); + case 24: { + // entityId + entityId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 48) { + if (tag != 40) { break; } } - case 48: { - // entityId - entityId = input.readUInt32(); + case 40: { + // worldLevel + worldLevel = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { @@ -241,10 +241,10 @@ public final class ActivateFarmElementCsReqOuterClass { 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); } output.endObject(); } @@ -256,11 +256,11 @@ public final class ActivateFarmElementCsReqOuterClass { } 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 { @@ -268,11 +268,11 @@ public final class ActivateFarmElementCsReqOuterClass { } 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 { @@ -333,9 +333,9 @@ public final class ActivateFarmElementCsReqOuterClass { * 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"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/ActivateFarmElementScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/ActivateFarmElementScRspOuterClass.java index 859febd..08308d9 100644 --- a/src/generated/main/emu/lunarcore/proto/ActivateFarmElementScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ActivateFarmElementScRspOuterClass.java @@ -19,17 +19,17 @@ public final class ActivateFarmElementScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 entity_id = 6; - */ - private int entityId; - - /** - * optional uint32 world_level = 13; + * optional uint32 world_level = 1; */ private int worldLevel; /** - * optional uint32 retcode = 15; + * optional uint32 entity_id = 4; + */ + private int entityId; + + /** + * optional uint32 retcode = 5; */ private int retcode; @@ -44,62 +44,25 @@ public final class ActivateFarmElementScRspOuterClass { } /** - * optional uint32 entity_id = 6; - * @return whether the entityId field is set + * optional uint32 world_level = 1; + * @return whether the worldLevel field is set */ - public boolean hasEntityId() { + public boolean hasWorldLevel() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 entity_id = 6; - * @return this - */ - public ActivateFarmElementScRsp clearEntityId() { - bitField0_ &= ~0x00000001; - entityId = 0; - return this; - } - - /** - * optional uint32 entity_id = 6; - * @return the entityId - */ - public int getEntityId() { - return entityId; - } - - /** - * optional uint32 entity_id = 6; - * @param value the entityId to set - * @return this - */ - public ActivateFarmElementScRsp setEntityId(final int value) { - bitField0_ |= 0x00000001; - entityId = value; - return this; - } - - /** - * optional uint32 world_level = 13; - * @return whether the worldLevel field is set - */ - public boolean hasWorldLevel() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 world_level = 13; + * optional uint32 world_level = 1; * @return this */ public ActivateFarmElementScRsp clearWorldLevel() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; worldLevel = 0; return this; } /** - * optional uint32 world_level = 13; + * optional uint32 world_level = 1; * @return the worldLevel */ public int getWorldLevel() { @@ -107,18 +70,55 @@ public final class ActivateFarmElementScRspOuterClass { } /** - * optional uint32 world_level = 13; + * optional uint32 world_level = 1; * @param value the worldLevel to set * @return this */ public ActivateFarmElementScRsp setWorldLevel(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; worldLevel = value; return this; } /** - * optional uint32 retcode = 15; + * optional uint32 entity_id = 4; + * @return whether the entityId field is set + */ + public boolean hasEntityId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 entity_id = 4; + * @return this + */ + public ActivateFarmElementScRsp clearEntityId() { + bitField0_ &= ~0x00000002; + entityId = 0; + return this; + } + + /** + * optional uint32 entity_id = 4; + * @return the entityId + */ + public int getEntityId() { + return entityId; + } + + /** + * optional uint32 entity_id = 4; + * @param value the entityId to set + * @return this + */ + public ActivateFarmElementScRsp setEntityId(final int value) { + bitField0_ |= 0x00000002; + entityId = value; + return this; + } + + /** + * optional uint32 retcode = 5; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -126,7 +126,7 @@ public final class ActivateFarmElementScRspOuterClass { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 5; * @return this */ public ActivateFarmElementScRsp clearRetcode() { @@ -136,7 +136,7 @@ public final class ActivateFarmElementScRspOuterClass { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 5; * @return the retcode */ public int getRetcode() { @@ -144,7 +144,7 @@ public final class ActivateFarmElementScRspOuterClass { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 5; * @param value the retcode to set * @return this */ @@ -159,8 +159,8 @@ public final class ActivateFarmElementScRspOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - entityId = other.entityId; worldLevel = other.worldLevel; + entityId = other.entityId; retcode = other.retcode; } return this; @@ -172,12 +172,12 @@ public final class ActivateFarmElementScRspOuterClass { return this; } cachedSize = -1; - if (other.hasEntityId()) { - setEntityId(other.entityId); - } if (other.hasWorldLevel()) { setWorldLevel(other.worldLevel); } + if (other.hasEntityId()) { + setEntityId(other.entityId); + } if (other.hasRetcode()) { setRetcode(other.retcode); } @@ -191,8 +191,8 @@ public final class ActivateFarmElementScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - entityId = 0; worldLevel = 0; + entityId = 0; retcode = 0; return this; } @@ -217,23 +217,23 @@ public final class ActivateFarmElementScRspOuterClass { } ActivateFarmElementScRsp other = (ActivateFarmElementScRsp) o; return bitField0_ == other.bitField0_ - && (!hasEntityId() || entityId == other.entityId) && (!hasWorldLevel() || worldLevel == other.worldLevel) + && (!hasEntityId() || entityId == other.entityId) && (!hasRetcode() || retcode == other.retcode); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 48); - output.writeUInt32NoTag(entityId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 8); output.writeUInt32NoTag(worldLevel); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(entityId); + } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 40); output.writeUInt32NoTag(retcode); } } @@ -242,10 +242,10 @@ public final class ActivateFarmElementScRspOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(entityId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(worldLevel); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(worldLevel); + size += 1 + ProtoSink.computeUInt32SizeNoTag(entityId); } if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); @@ -260,25 +260,25 @@ public final class ActivateFarmElementScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 48: { - // entityId - entityId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 104) { - break; - } - } - case 104: { + case 8: { // worldLevel worldLevel = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 120) { + if (tag != 32) { break; } } - case 120: { + case 32: { + // entityId + entityId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000004; @@ -305,10 +305,10 @@ public final class ActivateFarmElementScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.entityId, entityId); + output.writeUInt32(FieldNames.worldLevel, worldLevel); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.worldLevel, worldLevel); + output.writeUInt32(FieldNames.entityId, entityId); } if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.retcode, retcode); @@ -323,11 +323,11 @@ public final class ActivateFarmElementScRspOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - 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_ |= 0x00000001; } } else { @@ -335,11 +335,11 @@ public final class ActivateFarmElementScRspOuterClass { } break; } - 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_ |= 0x00000002; } } else { @@ -411,10 +411,10 @@ public final class ActivateFarmElementScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName entityId = FieldName.forField("entityId", "entity_id"); - static final FieldName worldLevel = FieldName.forField("worldLevel", "world_level"); + static final FieldName entityId = FieldName.forField("entityId", "entity_id"); + static final FieldName retcode = FieldName.forField("retcode"); } } diff --git a/src/generated/main/emu/lunarcore/proto/ActivityScheduleInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/ActivityScheduleInfoOuterClass.java index 66cd6ec..430827a 100644 --- a/src/generated/main/emu/lunarcore/proto/ActivityScheduleInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ActivityScheduleInfoOuterClass.java @@ -19,25 +19,25 @@ public final class ActivityScheduleInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional int64 end_time = 3; - */ - private long endTime; - - /** - * optional int64 begin_time = 8; + * optional int64 begin_time = 6; */ private long beginTime; /** - * optional uint32 activity_id = 1; + * optional int64 end_time = 7; */ - private int activityId; + private long endTime; /** * optional uint32 module_id = 5; */ private int moduleId; + /** + * optional uint32 activity_id = 12; + */ + private int activityId; + private ActivityScheduleInfo() { } @@ -49,62 +49,25 @@ public final class ActivityScheduleInfoOuterClass { } /** - * optional int64 end_time = 3; - * @return whether the endTime field is set + * optional int64 begin_time = 6; + * @return whether the beginTime field is set */ - public boolean hasEndTime() { + public boolean hasBeginTime() { return (bitField0_ & 0x00000001) != 0; } /** - * optional int64 end_time = 3; - * @return this - */ - public ActivityScheduleInfo clearEndTime() { - bitField0_ &= ~0x00000001; - endTime = 0L; - return this; - } - - /** - * optional int64 end_time = 3; - * @return the endTime - */ - public long getEndTime() { - return endTime; - } - - /** - * optional int64 end_time = 3; - * @param value the endTime to set - * @return this - */ - public ActivityScheduleInfo setEndTime(final long value) { - bitField0_ |= 0x00000001; - endTime = value; - return this; - } - - /** - * optional int64 begin_time = 8; - * @return whether the beginTime field is set - */ - public boolean hasBeginTime() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional int64 begin_time = 8; + * optional int64 begin_time = 6; * @return this */ public ActivityScheduleInfo clearBeginTime() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; beginTime = 0L; return this; } /** - * optional int64 begin_time = 8; + * optional int64 begin_time = 6; * @return the beginTime */ public long getBeginTime() { @@ -112,50 +75,50 @@ public final class ActivityScheduleInfoOuterClass { } /** - * optional int64 begin_time = 8; + * optional int64 begin_time = 6; * @param value the beginTime to set * @return this */ public ActivityScheduleInfo setBeginTime(final long value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; beginTime = value; return this; } /** - * optional uint32 activity_id = 1; - * @return whether the activityId field is set + * optional int64 end_time = 7; + * @return whether the endTime field is set */ - public boolean hasActivityId() { - return (bitField0_ & 0x00000004) != 0; + public boolean hasEndTime() { + return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 activity_id = 1; + * optional int64 end_time = 7; * @return this */ - public ActivityScheduleInfo clearActivityId() { - bitField0_ &= ~0x00000004; - activityId = 0; + public ActivityScheduleInfo clearEndTime() { + bitField0_ &= ~0x00000002; + endTime = 0L; return this; } /** - * optional uint32 activity_id = 1; - * @return the activityId + * optional int64 end_time = 7; + * @return the endTime */ - public int getActivityId() { - return activityId; + public long getEndTime() { + return endTime; } /** - * optional uint32 activity_id = 1; - * @param value the activityId to set + * optional int64 end_time = 7; + * @param value the endTime to set * @return this */ - public ActivityScheduleInfo setActivityId(final int value) { - bitField0_ |= 0x00000004; - activityId = value; + public ActivityScheduleInfo setEndTime(final long value) { + bitField0_ |= 0x00000002; + endTime = value; return this; } @@ -164,7 +127,7 @@ public final class ActivityScheduleInfoOuterClass { * @return whether the moduleId field is set */ public boolean hasModuleId() { - return (bitField0_ & 0x00000008) != 0; + return (bitField0_ & 0x00000004) != 0; } /** @@ -172,7 +135,7 @@ public final class ActivityScheduleInfoOuterClass { * @return this */ public ActivityScheduleInfo clearModuleId() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000004; moduleId = 0; return this; } @@ -191,20 +154,57 @@ public final class ActivityScheduleInfoOuterClass { * @return this */ public ActivityScheduleInfo setModuleId(final int value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; moduleId = value; return this; } + /** + * optional uint32 activity_id = 12; + * @return whether the activityId field is set + */ + public boolean hasActivityId() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 activity_id = 12; + * @return this + */ + public ActivityScheduleInfo clearActivityId() { + bitField0_ &= ~0x00000008; + activityId = 0; + return this; + } + + /** + * optional uint32 activity_id = 12; + * @return the activityId + */ + public int getActivityId() { + return activityId; + } + + /** + * optional uint32 activity_id = 12; + * @param value the activityId to set + * @return this + */ + public ActivityScheduleInfo setActivityId(final int value) { + bitField0_ |= 0x00000008; + activityId = value; + return this; + } + @Override public ActivityScheduleInfo copyFrom(final ActivityScheduleInfo other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - endTime = other.endTime; beginTime = other.beginTime; - activityId = other.activityId; + endTime = other.endTime; moduleId = other.moduleId; + activityId = other.activityId; } return this; } @@ -215,18 +215,18 @@ public final class ActivityScheduleInfoOuterClass { return this; } cachedSize = -1; - if (other.hasEndTime()) { - setEndTime(other.endTime); - } if (other.hasBeginTime()) { setBeginTime(other.beginTime); } - if (other.hasActivityId()) { - setActivityId(other.activityId); + if (other.hasEndTime()) { + setEndTime(other.endTime); } if (other.hasModuleId()) { setModuleId(other.moduleId); } + if (other.hasActivityId()) { + setActivityId(other.activityId); + } return this; } @@ -237,10 +237,10 @@ public final class ActivityScheduleInfoOuterClass { } cachedSize = -1; bitField0_ = 0; - endTime = 0L; beginTime = 0L; - activityId = 0; + endTime = 0L; moduleId = 0; + activityId = 0; return this; } @@ -264,46 +264,46 @@ public final class ActivityScheduleInfoOuterClass { } ActivityScheduleInfo other = (ActivityScheduleInfo) o; return bitField0_ == other.bitField0_ - && (!hasEndTime() || endTime == other.endTime) && (!hasBeginTime() || beginTime == other.beginTime) - && (!hasActivityId() || activityId == other.activityId) - && (!hasModuleId() || moduleId == other.moduleId); + && (!hasEndTime() || endTime == other.endTime) + && (!hasModuleId() || moduleId == other.moduleId) + && (!hasActivityId() || activityId == other.activityId); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); - output.writeInt64NoTag(endTime); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 48); output.writeInt64NoTag(beginTime); } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(activityId); + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 56); + output.writeInt64NoTag(endTime); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000004) != 0) { output.writeRawByte((byte) 40); output.writeUInt32NoTag(moduleId); } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(activityId); + } } @Override protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeInt64SizeNoTag(endTime); - } - if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeInt64SizeNoTag(beginTime); } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeInt64SizeNoTag(endTime); + } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(activityId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(moduleId); } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(moduleId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(activityId); } return size; } @@ -315,28 +315,19 @@ public final class ActivityScheduleInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 24: { - // endTime - endTime = input.readInt64(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 64) { - break; - } - } - case 64: { + case 48: { // beginTime beginTime = input.readInt64(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 8) { + if (tag != 56) { break; } } - case 8: { - // activityId - activityId = input.readUInt32(); - bitField0_ |= 0x00000004; + case 56: { + // endTime + endTime = input.readInt64(); + bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 40) { break; @@ -345,6 +336,15 @@ public final class ActivityScheduleInfoOuterClass { case 40: { // moduleId moduleId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 96) { + break; + } + } + case 96: { + // activityId + activityId = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 0) { @@ -369,16 +369,16 @@ public final class ActivityScheduleInfoOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeInt64(FieldNames.endTime, endTime); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeInt64(FieldNames.beginTime, beginTime); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeInt64(FieldNames.endTime, endTime); + } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.activityId, activityId); + output.writeUInt32(FieldNames.moduleId, moduleId); } if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.moduleId, moduleId); + output.writeUInt32(FieldNames.activityId, activityId); } output.endObject(); } @@ -390,11 +390,11 @@ public final class ActivityScheduleInfoOuterClass { } 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 { @@ -402,11 +402,11 @@ public final class ActivityScheduleInfoOuterClass { } 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 { @@ -414,23 +414,23 @@ public final class ActivityScheduleInfoOuterClass { } break; } - case 2048619658: - case -917278645: { - if (input.isAtField(FieldNames.activityId)) { - if (!input.trySkipNullValue()) { - activityId = input.readUInt32(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } case -604257113: case -1552079922: { if (input.isAtField(FieldNames.moduleId)) { if (!input.trySkipNullValue()) { moduleId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2048619658: + case -917278645: { + if (input.isAtField(FieldNames.activityId)) { + if (!input.trySkipNullValue()) { + activityId = input.readUInt32(); bitField0_ |= 0x00000008; } } else { @@ -491,13 +491,13 @@ public final class ActivityScheduleInfoOuterClass { * 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 activityId = FieldName.forField("activityId", "activity_id"); + static final FieldName endTime = FieldName.forField("endTime", "end_time"); static final FieldName moduleId = FieldName.forField("moduleId", "module_id"); + + static final FieldName activityId = FieldName.forField("activityId", "activity_id"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/ApplyFriendCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/ApplyFriendCsReqOuterClass.java index 5379d6c..40def87 100644 --- a/src/generated/main/emu/lunarcore/proto/ApplyFriendCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ApplyFriendCsReqOuterClass.java @@ -19,12 +19,12 @@ public final class ApplyFriendCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 uid = 11; + * optional uint32 uid = 5; */ private int uid; /** - * optional .FriendApplySource source = 12; + * optional .FriendApplySource source = 14; */ private int source; @@ -39,7 +39,7 @@ public final class ApplyFriendCsReqOuterClass { } /** - * optional uint32 uid = 11; + * optional uint32 uid = 5; * @return whether the uid field is set */ public boolean hasUid() { @@ -47,7 +47,7 @@ public final class ApplyFriendCsReqOuterClass { } /** - * optional uint32 uid = 11; + * optional uint32 uid = 5; * @return this */ public ApplyFriendCsReq clearUid() { @@ -57,7 +57,7 @@ public final class ApplyFriendCsReqOuterClass { } /** - * optional uint32 uid = 11; + * optional uint32 uid = 5; * @return the uid */ public int getUid() { @@ -65,7 +65,7 @@ public final class ApplyFriendCsReqOuterClass { } /** - * optional uint32 uid = 11; + * optional uint32 uid = 5; * @param value the uid to set * @return this */ @@ -76,7 +76,7 @@ public final class ApplyFriendCsReqOuterClass { } /** - * optional .FriendApplySource source = 12; + * optional .FriendApplySource source = 14; * @return whether the source field is set */ public boolean hasSource() { @@ -84,7 +84,7 @@ public final class ApplyFriendCsReqOuterClass { } /** - * optional .FriendApplySource source = 12; + * optional .FriendApplySource source = 14; * @return this */ public ApplyFriendCsReq clearSource() { @@ -94,7 +94,7 @@ public final class ApplyFriendCsReqOuterClass { } /** - * optional .FriendApplySource source = 12; + * optional .FriendApplySource source = 14; * @return the source */ public FriendApplySourceOuterClass.FriendApplySource getSource() { @@ -127,7 +127,7 @@ public final class ApplyFriendCsReqOuterClass { } /** - * optional .FriendApplySource source = 12; + * optional .FriendApplySource source = 14; * @param value the source to set * @return this */ @@ -202,11 +202,11 @@ public final class ApplyFriendCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 40); output.writeUInt32NoTag(uid); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 112); output.writeEnumNoTag(source); } } @@ -230,16 +230,16 @@ public final class ApplyFriendCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 88: { + case 40: { // uid uid = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 96) { + if (tag != 112) { break; } } - case 96: { + case 112: { // 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 049a1c0..123f0f1 100644 --- a/src/generated/main/emu/lunarcore/proto/ArchiveDataOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ArchiveDataOuterClass.java @@ -21,17 +21,22 @@ public final class ArchiveDataOuterClass { private static final long serialVersionUID = 0L; /** - * repeated uint32 archive_avatar_id_list = 7; + * repeated uint32 OJJBNFPBCKK = 4; */ - private final RepeatedInt archiveAvatarIdList = RepeatedInt.newEmptyInstance(); + private final RepeatedInt oJJBNFPBCKK = RepeatedInt.newEmptyInstance(); /** - * repeated uint32 archive_equipment_id_list = 10; + * repeated uint32 CMDMBOMOGIB = 7; */ - private final RepeatedInt archiveEquipmentIdList = RepeatedInt.newEmptyInstance(); + private final RepeatedInt cMDMBOMOGIB = RepeatedInt.newEmptyInstance(); /** - * repeated .RelicArchive relic_list = 3; + * repeated uint32 ALFCBHACGFO = 11; + */ + private final RepeatedInt aLFCBHACGFO = RepeatedInt.newEmptyInstance(); + + /** + * repeated .RelicArchive relic_list = 1; */ private final RepeatedMessage relicList = RepeatedMessage.newEmptyInstance(RelicArchiveOuterClass.RelicArchive.getFactory()); @@ -51,39 +56,39 @@ public final class ArchiveDataOuterClass { } /** - * repeated uint32 archive_avatar_id_list = 7; - * @return whether the archiveAvatarIdList field is set + * repeated uint32 OJJBNFPBCKK = 4; + * @return whether the oJJBNFPBCKK field is set */ - public boolean hasArchiveAvatarIdList() { + public boolean hasOJJBNFPBCKK() { return (bitField0_ & 0x00000001) != 0; } /** - * repeated uint32 archive_avatar_id_list = 7; + * repeated uint32 OJJBNFPBCKK = 4; * @return this */ - public ArchiveData clearArchiveAvatarIdList() { + public ArchiveData clearOJJBNFPBCKK() { bitField0_ &= ~0x00000001; - archiveAvatarIdList.clear(); + oJJBNFPBCKK.clear(); return this; } /** - * repeated uint32 archive_avatar_id_list = 7; + * repeated uint32 OJJBNFPBCKK = 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 #getMutableArchiveAvatarIdList()} if you want to modify it. + * Use {@link #getMutableOJJBNFPBCKK()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedInt getArchiveAvatarIdList() { - return archiveAvatarIdList; + public RepeatedInt getOJJBNFPBCKK() { + return oJJBNFPBCKK; } /** - * repeated uint32 archive_avatar_id_list = 7; + * repeated uint32 OJJBNFPBCKK = 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 @@ -91,67 +96,67 @@ public final class ArchiveDataOuterClass { * * @return internal storage object for modifications */ - public RepeatedInt getMutableArchiveAvatarIdList() { + public RepeatedInt getMutableOJJBNFPBCKK() { bitField0_ |= 0x00000001; - return archiveAvatarIdList; + return oJJBNFPBCKK; } /** - * repeated uint32 archive_avatar_id_list = 7; - * @param value the archiveAvatarIdList to add + * repeated uint32 OJJBNFPBCKK = 4; + * @param value the oJJBNFPBCKK to add * @return this */ - public ArchiveData addArchiveAvatarIdList(final int value) { + public ArchiveData addOJJBNFPBCKK(final int value) { bitField0_ |= 0x00000001; - archiveAvatarIdList.add(value); + oJJBNFPBCKK.add(value); return this; } /** - * repeated uint32 archive_avatar_id_list = 7; - * @param values the archiveAvatarIdList to add + * repeated uint32 OJJBNFPBCKK = 4; + * @param values the oJJBNFPBCKK to add * @return this */ - public ArchiveData addAllArchiveAvatarIdList(final int... values) { + public ArchiveData addAllOJJBNFPBCKK(final int... values) { bitField0_ |= 0x00000001; - archiveAvatarIdList.addAll(values); + oJJBNFPBCKK.addAll(values); return this; } /** - * repeated uint32 archive_equipment_id_list = 10; - * @return whether the archiveEquipmentIdList field is set + * repeated uint32 CMDMBOMOGIB = 7; + * @return whether the cMDMBOMOGIB field is set */ - public boolean hasArchiveEquipmentIdList() { + public boolean hasCMDMBOMOGIB() { return (bitField0_ & 0x00000002) != 0; } /** - * repeated uint32 archive_equipment_id_list = 10; + * repeated uint32 CMDMBOMOGIB = 7; * @return this */ - public ArchiveData clearArchiveEquipmentIdList() { + public ArchiveData clearCMDMBOMOGIB() { bitField0_ &= ~0x00000002; - archiveEquipmentIdList.clear(); + cMDMBOMOGIB.clear(); return this; } /** - * repeated uint32 archive_equipment_id_list = 10; + * repeated uint32 CMDMBOMOGIB = 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 #getMutableCMDMBOMOGIB()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedInt getArchiveEquipmentIdList() { - return archiveEquipmentIdList; + public RepeatedInt getCMDMBOMOGIB() { + return cMDMBOMOGIB; } /** - * repeated uint32 archive_equipment_id_list = 10; + * repeated uint32 CMDMBOMOGIB = 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 @@ -159,53 +164,121 @@ public final class ArchiveDataOuterClass { * * @return internal storage object for modifications */ - public RepeatedInt getMutableArchiveEquipmentIdList() { + public RepeatedInt getMutableCMDMBOMOGIB() { bitField0_ |= 0x00000002; - return archiveEquipmentIdList; + return cMDMBOMOGIB; } /** - * repeated uint32 archive_equipment_id_list = 10; - * @param value the archiveEquipmentIdList to add + * repeated uint32 CMDMBOMOGIB = 7; + * @param value the cMDMBOMOGIB to add * @return this */ - public ArchiveData addArchiveEquipmentIdList(final int value) { + public ArchiveData addCMDMBOMOGIB(final int value) { bitField0_ |= 0x00000002; - archiveEquipmentIdList.add(value); + cMDMBOMOGIB.add(value); return this; } /** - * repeated uint32 archive_equipment_id_list = 10; - * @param values the archiveEquipmentIdList to add + * repeated uint32 CMDMBOMOGIB = 7; + * @param values the cMDMBOMOGIB to add * @return this */ - public ArchiveData addAllArchiveEquipmentIdList(final int... values) { + public ArchiveData addAllCMDMBOMOGIB(final int... values) { bitField0_ |= 0x00000002; - archiveEquipmentIdList.addAll(values); + cMDMBOMOGIB.addAll(values); return this; } /** - * repeated .RelicArchive relic_list = 3; - * @return whether the relicList field is set + * repeated uint32 ALFCBHACGFO = 11; + * @return whether the aLFCBHACGFO field is set */ - public boolean hasRelicList() { + public boolean hasALFCBHACGFO() { return (bitField0_ & 0x00000004) != 0; } /** - * repeated .RelicArchive relic_list = 3; + * repeated uint32 ALFCBHACGFO = 11; + * @return this + */ + public ArchiveData clearALFCBHACGFO() { + bitField0_ &= ~0x00000004; + aLFCBHACGFO.clear(); + return this; + } + + /** + * repeated uint32 ALFCBHACGFO = 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 #getMutableALFCBHACGFO()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getALFCBHACGFO() { + return aLFCBHACGFO; + } + + /** + * repeated uint32 ALFCBHACGFO = 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 + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedInt getMutableALFCBHACGFO() { + bitField0_ |= 0x00000004; + return aLFCBHACGFO; + } + + /** + * repeated uint32 ALFCBHACGFO = 11; + * @param value the aLFCBHACGFO to add + * @return this + */ + public ArchiveData addALFCBHACGFO(final int value) { + bitField0_ |= 0x00000004; + aLFCBHACGFO.add(value); + return this; + } + + /** + * repeated uint32 ALFCBHACGFO = 11; + * @param values the aLFCBHACGFO to add + * @return this + */ + public ArchiveData addAllALFCBHACGFO(final int... values) { + bitField0_ |= 0x00000004; + aLFCBHACGFO.addAll(values); + return this; + } + + /** + * repeated .RelicArchive relic_list = 1; + * @return whether the relicList field is set + */ + public boolean hasRelicList() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated .RelicArchive relic_list = 1; * @return this */ public ArchiveData clearRelicList() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000008; relicList.clear(); return this; } /** - * repeated .RelicArchive relic_list = 3; + * repeated .RelicArchive relic_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. @@ -219,7 +292,7 @@ public final class ArchiveDataOuterClass { } /** - * repeated .RelicArchive relic_list = 3; + * repeated .RelicArchive relic_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 @@ -228,28 +301,28 @@ public final class ArchiveDataOuterClass { * @return internal storage object for modifications */ public RepeatedMessage getMutableRelicList() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; return relicList; } /** - * repeated .RelicArchive relic_list = 3; + * repeated .RelicArchive relic_list = 1; * @param value the relicList to add * @return this */ public ArchiveData addRelicList(final RelicArchiveOuterClass.RelicArchive value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; relicList.add(value); return this; } /** - * repeated .RelicArchive relic_list = 3; + * repeated .RelicArchive relic_list = 1; * @param values the relicList to add * @return this */ public ArchiveData addAllRelicList(final RelicArchiveOuterClass.RelicArchive... values) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; relicList.addAll(values); return this; } @@ -259,7 +332,7 @@ public final class ArchiveDataOuterClass { * @return whether the archiveMonsterIdList field is set */ public boolean hasArchiveMonsterIdList() { - return (bitField0_ & 0x00000008) != 0; + return (bitField0_ & 0x00000010) != 0; } /** @@ -267,7 +340,7 @@ public final class ArchiveDataOuterClass { * @return this */ public ArchiveData clearArchiveMonsterIdList() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000010; archiveMonsterIdList.clear(); return this; } @@ -297,7 +370,7 @@ public final class ArchiveDataOuterClass { */ public RepeatedMessage getMutableArchiveMonsterIdList( ) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; return archiveMonsterIdList; } @@ -308,7 +381,7 @@ public final class ArchiveDataOuterClass { */ public ArchiveData addArchiveMonsterIdList( final MonsterArchiveOuterClass.MonsterArchive value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; archiveMonsterIdList.add(value); return this; } @@ -320,7 +393,7 @@ public final class ArchiveDataOuterClass { */ public ArchiveData addAllArchiveMonsterIdList( final MonsterArchiveOuterClass.MonsterArchive... values) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; archiveMonsterIdList.addAll(values); return this; } @@ -330,8 +403,9 @@ public final class ArchiveDataOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - archiveAvatarIdList.copyFrom(other.archiveAvatarIdList); - archiveEquipmentIdList.copyFrom(other.archiveEquipmentIdList); + oJJBNFPBCKK.copyFrom(other.oJJBNFPBCKK); + cMDMBOMOGIB.copyFrom(other.cMDMBOMOGIB); + aLFCBHACGFO.copyFrom(other.aLFCBHACGFO); relicList.copyFrom(other.relicList); archiveMonsterIdList.copyFrom(other.archiveMonsterIdList); } @@ -344,11 +418,14 @@ public final class ArchiveDataOuterClass { return this; } cachedSize = -1; - if (other.hasArchiveAvatarIdList()) { - getMutableArchiveAvatarIdList().addAll(other.archiveAvatarIdList); + if (other.hasOJJBNFPBCKK()) { + getMutableOJJBNFPBCKK().addAll(other.oJJBNFPBCKK); } - if (other.hasArchiveEquipmentIdList()) { - getMutableArchiveEquipmentIdList().addAll(other.archiveEquipmentIdList); + if (other.hasCMDMBOMOGIB()) { + getMutableCMDMBOMOGIB().addAll(other.cMDMBOMOGIB); + } + if (other.hasALFCBHACGFO()) { + getMutableALFCBHACGFO().addAll(other.aLFCBHACGFO); } if (other.hasRelicList()) { getMutableRelicList().addAll(other.relicList); @@ -366,8 +443,9 @@ public final class ArchiveDataOuterClass { } cachedSize = -1; bitField0_ = 0; - archiveAvatarIdList.clear(); - archiveEquipmentIdList.clear(); + oJJBNFPBCKK.clear(); + cMDMBOMOGIB.clear(); + aLFCBHACGFO.clear(); relicList.clear(); archiveMonsterIdList.clear(); return this; @@ -380,8 +458,9 @@ public final class ArchiveDataOuterClass { } cachedSize = -1; bitField0_ = 0; - archiveAvatarIdList.clear(); - archiveEquipmentIdList.clear(); + oJJBNFPBCKK.clear(); + cMDMBOMOGIB.clear(); + aLFCBHACGFO.clear(); relicList.clearQuick(); archiveMonsterIdList.clearQuick(); return this; @@ -397,8 +476,9 @@ public final class ArchiveDataOuterClass { } ArchiveData other = (ArchiveData) o; return bitField0_ == other.bitField0_ - && (!hasArchiveAvatarIdList() || archiveAvatarIdList.equals(other.archiveAvatarIdList)) - && (!hasArchiveEquipmentIdList() || archiveEquipmentIdList.equals(other.archiveEquipmentIdList)) + && (!hasOJJBNFPBCKK() || oJJBNFPBCKK.equals(other.oJJBNFPBCKK)) + && (!hasCMDMBOMOGIB() || cMDMBOMOGIB.equals(other.cMDMBOMOGIB)) + && (!hasALFCBHACGFO() || aLFCBHACGFO.equals(other.aLFCBHACGFO)) && (!hasRelicList() || relicList.equals(other.relicList)) && (!hasArchiveMonsterIdList() || archiveMonsterIdList.equals(other.archiveMonsterIdList)); } @@ -406,24 +486,30 @@ public final class ArchiveDataOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - for (int i = 0; i < archiveAvatarIdList.length(); i++) { - output.writeRawByte((byte) 56); - output.writeUInt32NoTag(archiveAvatarIdList.array()[i]); + for (int i = 0; i < oJJBNFPBCKK.length(); i++) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(oJJBNFPBCKK.array()[i]); } } if ((bitField0_ & 0x00000002) != 0) { - for (int i = 0; i < archiveEquipmentIdList.length(); i++) { - output.writeRawByte((byte) 80); - output.writeUInt32NoTag(archiveEquipmentIdList.array()[i]); + for (int i = 0; i < cMDMBOMOGIB.length(); i++) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(cMDMBOMOGIB.array()[i]); } } if ((bitField0_ & 0x00000004) != 0) { - for (int i = 0; i < relicList.length(); i++) { - output.writeRawByte((byte) 26); - output.writeMessageNoTag(relicList.get(i)); + for (int i = 0; i < aLFCBHACGFO.length(); i++) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(aLFCBHACGFO.array()[i]); } } if ((bitField0_ & 0x00000008) != 0) { + for (int i = 0; i < relicList.length(); i++) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(relicList.get(i)); + } + } + if ((bitField0_ & 0x00000010) != 0) { for (int i = 0; i < archiveMonsterIdList.length(); i++) { output.writeRawByte((byte) 114); output.writeMessageNoTag(archiveMonsterIdList.get(i)); @@ -435,15 +521,18 @@ public final class ArchiveDataOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += (1 * archiveAvatarIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(archiveAvatarIdList); + size += (1 * oJJBNFPBCKK.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(oJJBNFPBCKK); } if ((bitField0_ & 0x00000002) != 0) { - size += (1 * archiveEquipmentIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(archiveEquipmentIdList); + size += (1 * cMDMBOMOGIB.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(cMDMBOMOGIB); } if ((bitField0_ & 0x00000004) != 0) { - size += (1 * relicList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(relicList); + size += (1 * aLFCBHACGFO.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(aLFCBHACGFO); } if ((bitField0_ & 0x00000008) != 0) { + size += (1 * relicList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(relicList); + } + if ((bitField0_ & 0x00000010) != 0) { size += (1 * archiveMonsterIdList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(archiveMonsterIdList); } return size; @@ -456,28 +545,37 @@ public final class ArchiveDataOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 58: { - // archiveAvatarIdList [packed=true] - input.readPackedUInt32(archiveAvatarIdList, tag); + case 34: { + // oJJBNFPBCKK [packed=true] + input.readPackedUInt32(oJJBNFPBCKK, tag); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 82) { + if (tag != 58) { break; } } - case 82: { - // archiveEquipmentIdList [packed=true] - input.readPackedUInt32(archiveEquipmentIdList, tag); + case 58: { + // cMDMBOMOGIB [packed=true] + input.readPackedUInt32(cMDMBOMOGIB, tag); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 26) { + if (tag != 90) { break; } } - case 26: { + case 90: { + // aLFCBHACGFO [packed=true] + input.readPackedUInt32(aLFCBHACGFO, tag); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { // relicList tag = input.readRepeatedMessage(relicList, tag); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; if (tag != 114) { break; } @@ -485,7 +583,7 @@ public final class ArchiveDataOuterClass { case 114: { // archiveMonsterIdList tag = input.readRepeatedMessage(archiveMonsterIdList, tag); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; if (tag != 0) { break; } @@ -500,18 +598,24 @@ public final class ArchiveDataOuterClass { tag = input.readTag(); break; } - case 56: { - // archiveAvatarIdList [packed=false] - tag = input.readRepeatedUInt32(archiveAvatarIdList, tag); + case 32: { + // oJJBNFPBCKK [packed=false] + tag = input.readRepeatedUInt32(oJJBNFPBCKK, tag); bitField0_ |= 0x00000001; break; } - case 80: { - // archiveEquipmentIdList [packed=false] - tag = input.readRepeatedUInt32(archiveEquipmentIdList, tag); + case 56: { + // cMDMBOMOGIB [packed=false] + tag = input.readRepeatedUInt32(cMDMBOMOGIB, tag); bitField0_ |= 0x00000002; break; } + case 88: { + // aLFCBHACGFO [packed=false] + tag = input.readRepeatedUInt32(aLFCBHACGFO, tag); + bitField0_ |= 0x00000004; + break; + } } } } @@ -520,15 +624,18 @@ public final class ArchiveDataOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeRepeatedUInt32(FieldNames.archiveAvatarIdList, archiveAvatarIdList); + output.writeRepeatedUInt32(FieldNames.oJJBNFPBCKK, oJJBNFPBCKK); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRepeatedUInt32(FieldNames.archiveEquipmentIdList, archiveEquipmentIdList); + output.writeRepeatedUInt32(FieldNames.cMDMBOMOGIB, cMDMBOMOGIB); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRepeatedMessage(FieldNames.relicList, relicList); + output.writeRepeatedUInt32(FieldNames.aLFCBHACGFO, aLFCBHACGFO); } if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedMessage(FieldNames.relicList, relicList); + } + if ((bitField0_ & 0x00000010) != 0) { output.writeRepeatedMessage(FieldNames.archiveMonsterIdList, archiveMonsterIdList); } output.endObject(); @@ -541,11 +648,10 @@ public final class ArchiveDataOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 500094196: - case 1198392697: { - if (input.isAtField(FieldNames.archiveAvatarIdList)) { + case -842847418: { + if (input.isAtField(FieldNames.oJJBNFPBCKK)) { if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(archiveAvatarIdList); + input.readRepeatedUInt32(oJJBNFPBCKK); bitField0_ |= 0x00000001; } } else { @@ -553,11 +659,10 @@ public final class ArchiveDataOuterClass { } break; } - case 1521227365: - case 967463252: { - if (input.isAtField(FieldNames.archiveEquipmentIdList)) { + case 1097201854: { + if (input.isAtField(FieldNames.cMDMBOMOGIB)) { if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(archiveEquipmentIdList); + input.readRepeatedUInt32(cMDMBOMOGIB); bitField0_ |= 0x00000002; } } else { @@ -565,12 +670,23 @@ public final class ArchiveDataOuterClass { } break; } + case 812631104: { + if (input.isAtField(FieldNames.aLFCBHACGFO)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(aLFCBHACGFO); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } case 204814001: case 2071893482: { if (input.isAtField(FieldNames.relicList)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(relicList); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; } } else { input.skipUnknownField(); @@ -582,7 +698,7 @@ public final class ArchiveDataOuterClass { if (input.isAtField(FieldNames.archiveMonsterIdList)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(archiveMonsterIdList); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; } } else { input.skipUnknownField(); @@ -641,9 +757,11 @@ public final class ArchiveDataOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName archiveAvatarIdList = FieldName.forField("archiveAvatarIdList", "archive_avatar_id_list"); + static final FieldName oJJBNFPBCKK = FieldName.forField("OJJBNFPBCKK"); - static final FieldName archiveEquipmentIdList = FieldName.forField("archiveEquipmentIdList", "archive_equipment_id_list"); + static final FieldName cMDMBOMOGIB = FieldName.forField("CMDMBOMOGIB"); + + static final FieldName aLFCBHACGFO = FieldName.forField("ALFCBHACGFO"); static final FieldName relicList = FieldName.forField("relicList", "relic_list"); diff --git a/src/generated/main/emu/lunarcore/proto/SimpleAvatarInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/AssistSimpleInfoOuterClass.java similarity index 61% rename from src/generated/main/emu/lunarcore/proto/SimpleAvatarInfoOuterClass.java rename to src/generated/main/emu/lunarcore/proto/AssistSimpleInfoOuterClass.java index 755f850..bad243d 100644 --- a/src/generated/main/emu/lunarcore/proto/SimpleAvatarInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/AssistSimpleInfoOuterClass.java @@ -11,77 +11,82 @@ import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; -public final class SimpleAvatarInfoOuterClass { +public final class AssistSimpleInfoOuterClass { /** - * Protobuf type {@code SimpleAvatarInfo} + * Protobuf type {@code AssistSimpleInfo} */ - public static final class SimpleAvatarInfo extends ProtoMessage implements Cloneable { + public static final class AssistSimpleInfo extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * optional uint32 dressed_skin_id = 2; + * optional uint32 pos = 4; */ - private int dressedSkinId; + private int pos; /** - * optional uint32 avatar_id = 5; + * optional uint32 avatar_id = 7; */ private int avatarId; /** - * optional uint32 level = 10; + * optional uint32 level = 8; */ private int level; - private SimpleAvatarInfo() { + /** + * optional uint32 dressed_skin_id = 11; + */ + private int dressedSkinId; + + private AssistSimpleInfo() { } /** - * @return a new empty instance of {@code SimpleAvatarInfo} + * @return a new empty instance of {@code AssistSimpleInfo} */ - public static SimpleAvatarInfo newInstance() { - return new SimpleAvatarInfo(); + public static AssistSimpleInfo newInstance() { + return new AssistSimpleInfo(); } /** - * optional uint32 dressed_skin_id = 2; - * @return whether the dressedSkinId field is set + * optional uint32 pos = 4; + * @return whether the pos field is set */ - public boolean hasDressedSkinId() { + public boolean hasPos() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 dressed_skin_id = 2; + * optional uint32 pos = 4; * @return this */ - public SimpleAvatarInfo clearDressedSkinId() { + public AssistSimpleInfo clearPos() { bitField0_ &= ~0x00000001; - dressedSkinId = 0; + pos = 0; return this; } /** - * optional uint32 dressed_skin_id = 2; - * @return the dressedSkinId + * optional uint32 pos = 4; + * @return the pos */ - public int getDressedSkinId() { - return dressedSkinId; + public int getPos() { + return pos; } /** - * optional uint32 dressed_skin_id = 2; - * @param value the dressedSkinId to set + * optional uint32 pos = 4; + * @param value the pos to set * @return this */ - public SimpleAvatarInfo setDressedSkinId(final int value) { + public AssistSimpleInfo setPos(final int value) { bitField0_ |= 0x00000001; - dressedSkinId = value; + pos = value; return this; } /** - * optional uint32 avatar_id = 5; + * optional uint32 avatar_id = 7; * @return whether the avatarId field is set */ public boolean hasAvatarId() { @@ -89,17 +94,17 @@ public final class SimpleAvatarInfoOuterClass { } /** - * optional uint32 avatar_id = 5; + * optional uint32 avatar_id = 7; * @return this */ - public SimpleAvatarInfo clearAvatarId() { + public AssistSimpleInfo clearAvatarId() { bitField0_ &= ~0x00000002; avatarId = 0; return this; } /** - * optional uint32 avatar_id = 5; + * optional uint32 avatar_id = 7; * @return the avatarId */ public int getAvatarId() { @@ -107,18 +112,18 @@ public final class SimpleAvatarInfoOuterClass { } /** - * optional uint32 avatar_id = 5; + * optional uint32 avatar_id = 7; * @param value the avatarId to set * @return this */ - public SimpleAvatarInfo setAvatarId(final int value) { + public AssistSimpleInfo setAvatarId(final int value) { bitField0_ |= 0x00000002; avatarId = value; return this; } /** - * optional uint32 level = 10; + * optional uint32 level = 8; * @return whether the level field is set */ public boolean hasLevel() { @@ -126,17 +131,17 @@ public final class SimpleAvatarInfoOuterClass { } /** - * optional uint32 level = 10; + * optional uint32 level = 8; * @return this */ - public SimpleAvatarInfo clearLevel() { + public AssistSimpleInfo clearLevel() { bitField0_ &= ~0x00000004; level = 0; return this; } /** - * optional uint32 level = 10; + * optional uint32 level = 8; * @return the level */ public int getLevel() { @@ -144,36 +149,74 @@ public final class SimpleAvatarInfoOuterClass { } /** - * optional uint32 level = 10; + * optional uint32 level = 8; * @param value the level to set * @return this */ - public SimpleAvatarInfo setLevel(final int value) { + public AssistSimpleInfo setLevel(final int value) { bitField0_ |= 0x00000004; level = value; return this; } + /** + * optional uint32 dressed_skin_id = 11; + * @return whether the dressedSkinId field is set + */ + public boolean hasDressedSkinId() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 dressed_skin_id = 11; + * @return this + */ + public AssistSimpleInfo clearDressedSkinId() { + bitField0_ &= ~0x00000008; + dressedSkinId = 0; + return this; + } + + /** + * optional uint32 dressed_skin_id = 11; + * @return the dressedSkinId + */ + public int getDressedSkinId() { + return dressedSkinId; + } + + /** + * optional uint32 dressed_skin_id = 11; + * @param value the dressedSkinId to set + * @return this + */ + public AssistSimpleInfo setDressedSkinId(final int value) { + bitField0_ |= 0x00000008; + dressedSkinId = value; + return this; + } + @Override - public SimpleAvatarInfo copyFrom(final SimpleAvatarInfo other) { + public AssistSimpleInfo copyFrom(final AssistSimpleInfo other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - dressedSkinId = other.dressedSkinId; + pos = other.pos; avatarId = other.avatarId; level = other.level; + dressedSkinId = other.dressedSkinId; } return this; } @Override - public SimpleAvatarInfo mergeFrom(final SimpleAvatarInfo other) { + public AssistSimpleInfo mergeFrom(final AssistSimpleInfo other) { if (other.isEmpty()) { return this; } cachedSize = -1; - if (other.hasDressedSkinId()) { - setDressedSkinId(other.dressedSkinId); + if (other.hasPos()) { + setPos(other.pos); } if (other.hasAvatarId()) { setAvatarId(other.avatarId); @@ -181,24 +224,28 @@ public final class SimpleAvatarInfoOuterClass { if (other.hasLevel()) { setLevel(other.level); } + if (other.hasDressedSkinId()) { + setDressedSkinId(other.dressedSkinId); + } return this; } @Override - public SimpleAvatarInfo clear() { + public AssistSimpleInfo clear() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - dressedSkinId = 0; + pos = 0; avatarId = 0; level = 0; + dressedSkinId = 0; return this; } @Override - public SimpleAvatarInfo clearQuick() { + public AssistSimpleInfo clearQuick() { if (isEmpty()) { return this; } @@ -212,37 +259,42 @@ public final class SimpleAvatarInfoOuterClass { if (o == this) { return true; } - if (!(o instanceof SimpleAvatarInfo)) { + if (!(o instanceof AssistSimpleInfo)) { return false; } - SimpleAvatarInfo other = (SimpleAvatarInfo) o; + AssistSimpleInfo other = (AssistSimpleInfo) o; return bitField0_ == other.bitField0_ - && (!hasDressedSkinId() || dressedSkinId == other.dressedSkinId) + && (!hasPos() || pos == other.pos) && (!hasAvatarId() || avatarId == other.avatarId) - && (!hasLevel() || level == other.level); + && (!hasLevel() || level == other.level) + && (!hasDressedSkinId() || dressedSkinId == other.dressedSkinId); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(dressedSkinId); + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(pos); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 56); output.writeUInt32NoTag(avatarId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 64); output.writeUInt32NoTag(level); } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(dressedSkinId); + } } @Override protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(dressedSkinId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(pos); } if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(avatarId); @@ -250,39 +302,51 @@ public final class SimpleAvatarInfoOuterClass { if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(level); } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(dressedSkinId); + } return size; } @Override @SuppressWarnings("fallthrough") - public SimpleAvatarInfo mergeFrom(final ProtoSource input) throws IOException { + public AssistSimpleInfo mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { switch (tag) { - case 16: { - // dressedSkinId - dressedSkinId = input.readUInt32(); + case 32: { + // pos + pos = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 40) { + if (tag != 56) { break; } } - case 40: { + case 56: { // avatarId avatarId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 80) { + if (tag != 64) { break; } } - case 80: { + case 64: { // level level = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { + // dressedSkinId + dressedSkinId = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); if (tag != 0) { break; } @@ -305,7 +369,7 @@ public final class SimpleAvatarInfoOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.dressedSkinId, dressedSkinId); + output.writeUInt32(FieldNames.pos, pos); } if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.avatarId, avatarId); @@ -313,21 +377,23 @@ public final class SimpleAvatarInfoOuterClass { if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.level, level); } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.dressedSkinId, dressedSkinId); + } output.endObject(); } @Override - public SimpleAvatarInfo mergeFrom(final JsonSource input) throws IOException { + public AssistSimpleInfo mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -407000018: - case 2012697844: { - if (input.isAtField(FieldNames.dressedSkinId)) { + case 111188: { + if (input.isAtField(FieldNames.pos)) { if (!input.trySkipNullValue()) { - dressedSkinId = input.readUInt32(); + pos = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -358,6 +424,18 @@ public final class SimpleAvatarInfoOuterClass { } break; } + case -407000018: + case 2012697844: { + if (input.isAtField(FieldNames.dressedSkinId)) { + if (!input.trySkipNullValue()) { + dressedSkinId = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } default: { input.skipUnknownField(); break; @@ -369,8 +447,8 @@ public final class SimpleAvatarInfoOuterClass { } @Override - public SimpleAvatarInfo clone() { - return new SimpleAvatarInfo().copyFrom(this); + public AssistSimpleInfo clone() { + return new AssistSimpleInfo().copyFrom(this); } @Override @@ -378,32 +456,32 @@ public final class SimpleAvatarInfoOuterClass { return ((bitField0_) == 0); } - public static SimpleAvatarInfo parseFrom(final byte[] data) throws + public static AssistSimpleInfo parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new SimpleAvatarInfo(), data).checkInitialized(); + return ProtoMessage.mergeFrom(new AssistSimpleInfo(), data).checkInitialized(); } - public static SimpleAvatarInfo parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new SimpleAvatarInfo(), input).checkInitialized(); + public static AssistSimpleInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new AssistSimpleInfo(), input).checkInitialized(); } - public static SimpleAvatarInfo parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new SimpleAvatarInfo(), input).checkInitialized(); + public static AssistSimpleInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new AssistSimpleInfo(), input).checkInitialized(); } /** - * @return factory for creating SimpleAvatarInfo messages + * @return factory for creating AssistSimpleInfo messages */ - public static MessageFactory getFactory() { - return SimpleAvatarInfoFactory.INSTANCE; + public static MessageFactory getFactory() { + return AssistSimpleInfoFactory.INSTANCE; } - private enum SimpleAvatarInfoFactory implements MessageFactory { + private enum AssistSimpleInfoFactory implements MessageFactory { INSTANCE; @Override - public SimpleAvatarInfo create() { - return SimpleAvatarInfo.newInstance(); + public AssistSimpleInfo create() { + return AssistSimpleInfo.newInstance(); } } @@ -411,11 +489,13 @@ public final class SimpleAvatarInfoOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName dressedSkinId = FieldName.forField("dressedSkinId", "dressed_skin_id"); + static final FieldName pos = FieldName.forField("pos"); static final FieldName avatarId = FieldName.forField("avatarId", "avatar_id"); static final FieldName level = FieldName.forField("level"); + + static final FieldName dressedSkinId = FieldName.forField("dressedSkinId", "dressed_skin_id"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/AvatarExpUpCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/AvatarExpUpCsReqOuterClass.java index 0ae25b9..1a05f7e 100644 --- a/src/generated/main/emu/lunarcore/proto/AvatarExpUpCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/AvatarExpUpCsReqOuterClass.java @@ -19,12 +19,12 @@ public final class AvatarExpUpCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 base_avatar_id = 8; + * optional uint32 base_avatar_id = 9; */ private int baseAvatarId; /** - * optional .ItemCostList item_cost_list = 7; + * optional .ItemCostList item_cost_list = 3; */ private final ItemCostListOuterClass.ItemCostList itemCostList = ItemCostListOuterClass.ItemCostList.newInstance(); @@ -39,7 +39,7 @@ public final class AvatarExpUpCsReqOuterClass { } /** - * optional uint32 base_avatar_id = 8; + * optional uint32 base_avatar_id = 9; * @return whether the baseAvatarId field is set */ public boolean hasBaseAvatarId() { @@ -47,7 +47,7 @@ public final class AvatarExpUpCsReqOuterClass { } /** - * optional uint32 base_avatar_id = 8; + * optional uint32 base_avatar_id = 9; * @return this */ public AvatarExpUpCsReq clearBaseAvatarId() { @@ -57,7 +57,7 @@ public final class AvatarExpUpCsReqOuterClass { } /** - * optional uint32 base_avatar_id = 8; + * optional uint32 base_avatar_id = 9; * @return the baseAvatarId */ public int getBaseAvatarId() { @@ -65,7 +65,7 @@ public final class AvatarExpUpCsReqOuterClass { } /** - * optional uint32 base_avatar_id = 8; + * optional uint32 base_avatar_id = 9; * @param value the baseAvatarId to set * @return this */ @@ -76,7 +76,7 @@ public final class AvatarExpUpCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 7; + * optional .ItemCostList item_cost_list = 3; * @return whether the itemCostList field is set */ public boolean hasItemCostList() { @@ -84,7 +84,7 @@ public final class AvatarExpUpCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 7; + * optional .ItemCostList item_cost_list = 3; * @return this */ public AvatarExpUpCsReq clearItemCostList() { @@ -94,7 +94,7 @@ public final class AvatarExpUpCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 7; + * 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 final class AvatarExpUpCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 7; + * 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 final class AvatarExpUpCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 7; + * optional .ItemCostList item_cost_list = 3; * @param value the itemCostList to set * @return this */ @@ -198,11 +198,11 @@ public final class AvatarExpUpCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 72); output.writeUInt32NoTag(baseAvatarId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 58); + output.writeRawByte((byte) 26); output.writeMessageNoTag(itemCostList); } } @@ -226,16 +226,16 @@ public final class AvatarExpUpCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 64: { + case 72: { // baseAvatarId baseAvatarId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 58) { + if (tag != 26) { break; } } - case 58: { + case 26: { // 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 a1ce567..962282d 100644 --- a/src/generated/main/emu/lunarcore/proto/AvatarExpUpScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/AvatarExpUpScRspOuterClass.java @@ -20,12 +20,12 @@ public final class AvatarExpUpScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 13; */ private int retcode; /** - * repeated .PileItem return_item_list = 4; + * repeated .PileItem return_item_list = 10; */ private final RepeatedMessage returnItemList = RepeatedMessage.newEmptyInstance(PileItemOuterClass.PileItem.getFactory()); @@ -40,7 +40,7 @@ public final class AvatarExpUpScRspOuterClass { } /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 13; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -48,7 +48,7 @@ public final class AvatarExpUpScRspOuterClass { } /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 13; * @return this */ public AvatarExpUpScRsp clearRetcode() { @@ -58,7 +58,7 @@ public final class AvatarExpUpScRspOuterClass { } /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 13; * @return the retcode */ public int getRetcode() { @@ -66,7 +66,7 @@ public final class AvatarExpUpScRspOuterClass { } /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 13; * @param value the retcode to set * @return this */ @@ -77,7 +77,7 @@ public final class AvatarExpUpScRspOuterClass { } /** - * repeated .PileItem return_item_list = 4; + * repeated .PileItem return_item_list = 10; * @return whether the returnItemList field is set */ public boolean hasReturnItemList() { @@ -85,7 +85,7 @@ public final class AvatarExpUpScRspOuterClass { } /** - * repeated .PileItem return_item_list = 4; + * repeated .PileItem return_item_list = 10; * @return this */ public AvatarExpUpScRsp clearReturnItemList() { @@ -95,7 +95,7 @@ public final class AvatarExpUpScRspOuterClass { } /** - * repeated .PileItem return_item_list = 4; + * repeated .PileItem return_item_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. @@ -109,7 +109,7 @@ public final class AvatarExpUpScRspOuterClass { } /** - * repeated .PileItem return_item_list = 4; + * repeated .PileItem return_item_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 @@ -123,7 +123,7 @@ public final class AvatarExpUpScRspOuterClass { } /** - * repeated .PileItem return_item_list = 4; + * repeated .PileItem return_item_list = 10; * @param value the returnItemList to add * @return this */ @@ -134,7 +134,7 @@ public final class AvatarExpUpScRspOuterClass { } /** - * repeated .PileItem return_item_list = 4; + * repeated .PileItem return_item_list = 10; * @param values the returnItemList to add * @return this */ @@ -210,12 +210,12 @@ public final class AvatarExpUpScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 104); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < returnItemList.length(); i++) { - output.writeRawByte((byte) 34); + output.writeRawByte((byte) 82); output.writeMessageNoTag(returnItemList.get(i)); } } @@ -240,16 +240,16 @@ public final class AvatarExpUpScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 96: { + case 104: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 34) { + if (tag != 82) { break; } } - case 34: { + case 82: { // 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 e1ab2dd..2bbac38 100644 --- a/src/generated/main/emu/lunarcore/proto/AvatarOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/AvatarOuterClass.java @@ -21,60 +21,60 @@ public final class AvatarOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint64 first_met_timestamp = 15; + * optional uint64 first_met_timestamp = 6; */ private long firstMetTimestamp; /** - * optional uint32 dressed_skin_id = 1; - */ - private int dressedSkinId; - - /** - * optional uint32 promotion = 3; + * optional uint32 promotion = 1; */ private int promotion; + /** + * optional uint32 exp = 2; + */ + private int exp; + /** * optional uint32 base_avatar_id = 5; */ private int baseAvatarId; /** - * optional uint32 rank = 7; - */ - private int rank; - - /** - * optional uint32 level = 9; + * optional uint32 level = 7; */ private int level; /** - * optional uint32 exp = 11; + * optional uint32 dressed_skin_id = 8; */ - private int exp; + private int dressedSkinId; /** - * optional uint32 equipment_unique_id = 12; + * optional uint32 rank = 12; + */ + private int rank; + + /** + * optional uint32 equipment_unique_id = 15; */ private int equipmentUniqueId; /** - * repeated uint32 taken_rewards = 13; + * repeated uint32 taken_rewards = 10; */ private final RepeatedInt takenRewards = RepeatedInt.newEmptyInstance(); /** - * repeated .AvatarSkillTree skilltree_list = 4; - */ - private final RepeatedMessage skilltreeList = RepeatedMessage.newEmptyInstance(AvatarSkillTreeOuterClass.AvatarSkillTree.getFactory()); - - /** - * repeated .EquipRelic equip_relic_list = 8; + * repeated .EquipRelic equip_relic_list = 9; */ private final RepeatedMessage equipRelicList = RepeatedMessage.newEmptyInstance(EquipRelicOuterClass.EquipRelic.getFactory()); + /** + * repeated .AvatarSkillTree skilltree_list = 11; + */ + private final RepeatedMessage skilltreeList = RepeatedMessage.newEmptyInstance(AvatarSkillTreeOuterClass.AvatarSkillTree.getFactory()); + private Avatar() { } @@ -86,7 +86,7 @@ public final class AvatarOuterClass { } /** - * optional uint64 first_met_timestamp = 15; + * optional uint64 first_met_timestamp = 6; * @return whether the firstMetTimestamp field is set */ public boolean hasFirstMetTimestamp() { @@ -94,7 +94,7 @@ public final class AvatarOuterClass { } /** - * optional uint64 first_met_timestamp = 15; + * optional uint64 first_met_timestamp = 6; * @return this */ public Avatar clearFirstMetTimestamp() { @@ -104,7 +104,7 @@ public final class AvatarOuterClass { } /** - * optional uint64 first_met_timestamp = 15; + * optional uint64 first_met_timestamp = 6; * @return the firstMetTimestamp */ public long getFirstMetTimestamp() { @@ -112,7 +112,7 @@ public final class AvatarOuterClass { } /** - * optional uint64 first_met_timestamp = 15; + * optional uint64 first_met_timestamp = 6; * @param value the firstMetTimestamp to set * @return this */ @@ -123,62 +123,25 @@ public final class AvatarOuterClass { } /** - * optional uint32 dressed_skin_id = 1; - * @return whether the dressedSkinId field is set + * optional uint32 promotion = 1; + * @return whether the promotion field is set */ - public boolean hasDressedSkinId() { + public boolean hasPromotion() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 dressed_skin_id = 1; - * @return this - */ - public Avatar clearDressedSkinId() { - bitField0_ &= ~0x00000002; - dressedSkinId = 0; - return this; - } - - /** - * optional uint32 dressed_skin_id = 1; - * @return the dressedSkinId - */ - public int getDressedSkinId() { - return dressedSkinId; - } - - /** - * optional uint32 dressed_skin_id = 1; - * @param value the dressedSkinId to set - * @return this - */ - public Avatar setDressedSkinId(final int value) { - bitField0_ |= 0x00000002; - dressedSkinId = value; - return this; - } - - /** - * optional uint32 promotion = 3; - * @return whether the promotion field is set - */ - public boolean hasPromotion() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 promotion = 3; + * optional uint32 promotion = 1; * @return this */ public Avatar clearPromotion() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; promotion = 0; return this; } /** - * optional uint32 promotion = 3; + * optional uint32 promotion = 1; * @return the promotion */ public int getPromotion() { @@ -186,16 +149,53 @@ public final class AvatarOuterClass { } /** - * optional uint32 promotion = 3; + * optional uint32 promotion = 1; * @param value the promotion to set * @return this */ public Avatar setPromotion(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; promotion = value; return this; } + /** + * optional uint32 exp = 2; + * @return whether the exp field is set + */ + public boolean hasExp() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 exp = 2; + * @return this + */ + public Avatar clearExp() { + bitField0_ &= ~0x00000004; + exp = 0; + return this; + } + + /** + * optional uint32 exp = 2; + * @return the exp + */ + public int getExp() { + return exp; + } + + /** + * optional uint32 exp = 2; + * @param value the exp to set + * @return this + */ + public Avatar setExp(final int value) { + bitField0_ |= 0x00000004; + exp = value; + return this; + } + /** * optional uint32 base_avatar_id = 5; * @return whether the baseAvatarId field is set @@ -234,62 +234,25 @@ public final class AvatarOuterClass { } /** - * optional uint32 rank = 7; - * @return whether the rank field is set + * optional uint32 level = 7; + * @return whether the level field is set */ - public boolean hasRank() { + public boolean hasLevel() { return (bitField0_ & 0x00000010) != 0; } /** - * optional uint32 rank = 7; - * @return this - */ - public Avatar clearRank() { - bitField0_ &= ~0x00000010; - rank = 0; - return this; - } - - /** - * optional uint32 rank = 7; - * @return the rank - */ - public int getRank() { - return rank; - } - - /** - * optional uint32 rank = 7; - * @param value the rank to set - * @return this - */ - public Avatar setRank(final int value) { - bitField0_ |= 0x00000010; - rank = value; - return this; - } - - /** - * optional uint32 level = 9; - * @return whether the level field is set - */ - public boolean hasLevel() { - return (bitField0_ & 0x00000020) != 0; - } - - /** - * optional uint32 level = 9; + * optional uint32 level = 7; * @return this */ public Avatar clearLevel() { - bitField0_ &= ~0x00000020; + bitField0_ &= ~0x00000010; level = 0; return this; } /** - * optional uint32 level = 9; + * optional uint32 level = 7; * @return the level */ public int getLevel() { @@ -297,55 +260,92 @@ public final class AvatarOuterClass { } /** - * optional uint32 level = 9; + * optional uint32 level = 7; * @param value the level to set * @return this */ public Avatar setLevel(final int value) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; level = value; return this; } /** - * optional uint32 exp = 11; - * @return whether the exp field is set + * optional uint32 dressed_skin_id = 8; + * @return whether the dressedSkinId field is set */ - public boolean hasExp() { + public boolean hasDressedSkinId() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional uint32 dressed_skin_id = 8; + * @return this + */ + public Avatar clearDressedSkinId() { + bitField0_ &= ~0x00000020; + dressedSkinId = 0; + return this; + } + + /** + * optional uint32 dressed_skin_id = 8; + * @return the dressedSkinId + */ + public int getDressedSkinId() { + return dressedSkinId; + } + + /** + * optional uint32 dressed_skin_id = 8; + * @param value the dressedSkinId to set + * @return this + */ + public Avatar setDressedSkinId(final int value) { + bitField0_ |= 0x00000020; + dressedSkinId = value; + return this; + } + + /** + * optional uint32 rank = 12; + * @return whether the rank field is set + */ + public boolean hasRank() { return (bitField0_ & 0x00000040) != 0; } /** - * optional uint32 exp = 11; + * optional uint32 rank = 12; * @return this */ - public Avatar clearExp() { + public Avatar clearRank() { bitField0_ &= ~0x00000040; - exp = 0; + rank = 0; return this; } /** - * optional uint32 exp = 11; - * @return the exp + * optional uint32 rank = 12; + * @return the rank */ - public int getExp() { - return exp; + public int getRank() { + return rank; } /** - * optional uint32 exp = 11; - * @param value the exp to set + * optional uint32 rank = 12; + * @param value the rank to set * @return this */ - public Avatar setExp(final int value) { + public Avatar setRank(final int value) { bitField0_ |= 0x00000040; - exp = value; + rank = value; return this; } /** - * optional uint32 equipment_unique_id = 12; + * optional uint32 equipment_unique_id = 15; * @return whether the equipmentUniqueId field is set */ public boolean hasEquipmentUniqueId() { @@ -353,7 +353,7 @@ public final class AvatarOuterClass { } /** - * optional uint32 equipment_unique_id = 12; + * optional uint32 equipment_unique_id = 15; * @return this */ public Avatar clearEquipmentUniqueId() { @@ -363,7 +363,7 @@ public final class AvatarOuterClass { } /** - * optional uint32 equipment_unique_id = 12; + * optional uint32 equipment_unique_id = 15; * @return the equipmentUniqueId */ public int getEquipmentUniqueId() { @@ -371,7 +371,7 @@ public final class AvatarOuterClass { } /** - * optional uint32 equipment_unique_id = 12; + * optional uint32 equipment_unique_id = 15; * @param value the equipmentUniqueId to set * @return this */ @@ -382,7 +382,7 @@ public final class AvatarOuterClass { } /** - * repeated uint32 taken_rewards = 13; + * repeated uint32 taken_rewards = 10; * @return whether the takenRewards field is set */ public boolean hasTakenRewards() { @@ -390,7 +390,7 @@ public final class AvatarOuterClass { } /** - * repeated uint32 taken_rewards = 13; + * repeated uint32 taken_rewards = 10; * @return this */ public Avatar clearTakenRewards() { @@ -400,7 +400,7 @@ public final class AvatarOuterClass { } /** - * repeated uint32 taken_rewards = 13; + * repeated uint32 taken_rewards = 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. @@ -414,7 +414,7 @@ public final class AvatarOuterClass { } /** - * repeated uint32 taken_rewards = 13; + * repeated uint32 taken_rewards = 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 @@ -428,7 +428,7 @@ public final class AvatarOuterClass { } /** - * repeated uint32 taken_rewards = 13; + * repeated uint32 taken_rewards = 10; * @param value the takenRewards to add * @return this */ @@ -439,7 +439,7 @@ public final class AvatarOuterClass { } /** - * repeated uint32 taken_rewards = 13; + * repeated uint32 taken_rewards = 10; * @param values the takenRewards to add * @return this */ @@ -450,93 +450,25 @@ public final class AvatarOuterClass { } /** - * repeated .AvatarSkillTree skilltree_list = 4; - * @return whether the skilltreeList field is set + * repeated .EquipRelic equip_relic_list = 9; + * @return whether the equipRelicList field is set */ - public boolean hasSkilltreeList() { + public boolean hasEquipRelicList() { return (bitField0_ & 0x00000200) != 0; } /** - * repeated .AvatarSkillTree skilltree_list = 4; - * @return this - */ - public Avatar clearSkilltreeList() { - bitField0_ &= ~0x00000200; - skilltreeList.clear(); - return this; - } - - /** - * 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 #getMutableSkilltreeList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getSkilltreeList() { - return skilltreeList; - } - - /** - * 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 - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableSkilltreeList() { - bitField0_ |= 0x00000200; - return skilltreeList; - } - - /** - * repeated .AvatarSkillTree skilltree_list = 4; - * @param value the skilltreeList to add - * @return this - */ - public Avatar addSkilltreeList(final AvatarSkillTreeOuterClass.AvatarSkillTree value) { - bitField0_ |= 0x00000200; - skilltreeList.add(value); - return this; - } - - /** - * repeated .AvatarSkillTree skilltree_list = 4; - * @param values the skilltreeList to add - * @return this - */ - public Avatar addAllSkilltreeList(final AvatarSkillTreeOuterClass.AvatarSkillTree... values) { - bitField0_ |= 0x00000200; - skilltreeList.addAll(values); - return this; - } - - /** - * repeated .EquipRelic equip_relic_list = 8; - * @return whether the equipRelicList field is set - */ - public boolean hasEquipRelicList() { - return (bitField0_ & 0x00000400) != 0; - } - - /** - * repeated .EquipRelic equip_relic_list = 8; + * repeated .EquipRelic equip_relic_list = 9; * @return this */ public Avatar clearEquipRelicList() { - bitField0_ &= ~0x00000400; + bitField0_ &= ~0x00000200; equipRelicList.clear(); return this; } /** - * repeated .EquipRelic equip_relic_list = 8; + * repeated .EquipRelic equip_relic_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. @@ -550,7 +482,7 @@ public final class AvatarOuterClass { } /** - * repeated .EquipRelic equip_relic_list = 8; + * repeated .EquipRelic equip_relic_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 @@ -559,48 +491,116 @@ public final class AvatarOuterClass { * @return internal storage object for modifications */ public RepeatedMessage getMutableEquipRelicList() { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000200; return equipRelicList; } /** - * repeated .EquipRelic equip_relic_list = 8; + * repeated .EquipRelic equip_relic_list = 9; * @param value the equipRelicList to add * @return this */ public Avatar addEquipRelicList(final EquipRelicOuterClass.EquipRelic value) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000200; equipRelicList.add(value); return this; } /** - * repeated .EquipRelic equip_relic_list = 8; + * repeated .EquipRelic equip_relic_list = 9; * @param values the equipRelicList to add * @return this */ public Avatar addAllEquipRelicList(final EquipRelicOuterClass.EquipRelic... values) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000200; equipRelicList.addAll(values); return this; } + /** + * repeated .AvatarSkillTree skilltree_list = 11; + * @return whether the skilltreeList field is set + */ + public boolean hasSkilltreeList() { + return (bitField0_ & 0x00000400) != 0; + } + + /** + * repeated .AvatarSkillTree skilltree_list = 11; + * @return this + */ + public Avatar clearSkilltreeList() { + bitField0_ &= ~0x00000400; + skilltreeList.clear(); + return this; + } + + /** + * repeated .AvatarSkillTree skilltree_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 #getMutableSkilltreeList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getSkilltreeList() { + return skilltreeList; + } + + /** + * repeated .AvatarSkillTree skilltree_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 + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableSkilltreeList() { + bitField0_ |= 0x00000400; + return skilltreeList; + } + + /** + * repeated .AvatarSkillTree skilltree_list = 11; + * @param value the skilltreeList to add + * @return this + */ + public Avatar addSkilltreeList(final AvatarSkillTreeOuterClass.AvatarSkillTree value) { + bitField0_ |= 0x00000400; + skilltreeList.add(value); + return this; + } + + /** + * repeated .AvatarSkillTree skilltree_list = 11; + * @param values the skilltreeList to add + * @return this + */ + public Avatar addAllSkilltreeList(final AvatarSkillTreeOuterClass.AvatarSkillTree... values) { + bitField0_ |= 0x00000400; + skilltreeList.addAll(values); + return this; + } + @Override public Avatar copyFrom(final Avatar other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; firstMetTimestamp = other.firstMetTimestamp; - dressedSkinId = other.dressedSkinId; promotion = other.promotion; - baseAvatarId = other.baseAvatarId; - rank = other.rank; - level = other.level; exp = other.exp; + baseAvatarId = other.baseAvatarId; + level = other.level; + dressedSkinId = other.dressedSkinId; + rank = other.rank; equipmentUniqueId = other.equipmentUniqueId; takenRewards.copyFrom(other.takenRewards); - skilltreeList.copyFrom(other.skilltreeList); equipRelicList.copyFrom(other.equipRelicList); + skilltreeList.copyFrom(other.skilltreeList); } return this; } @@ -614,23 +614,23 @@ public final class AvatarOuterClass { if (other.hasFirstMetTimestamp()) { setFirstMetTimestamp(other.firstMetTimestamp); } - if (other.hasDressedSkinId()) { - setDressedSkinId(other.dressedSkinId); - } if (other.hasPromotion()) { setPromotion(other.promotion); } + if (other.hasExp()) { + setExp(other.exp); + } if (other.hasBaseAvatarId()) { setBaseAvatarId(other.baseAvatarId); } - if (other.hasRank()) { - setRank(other.rank); - } if (other.hasLevel()) { setLevel(other.level); } - if (other.hasExp()) { - setExp(other.exp); + if (other.hasDressedSkinId()) { + setDressedSkinId(other.dressedSkinId); + } + if (other.hasRank()) { + setRank(other.rank); } if (other.hasEquipmentUniqueId()) { setEquipmentUniqueId(other.equipmentUniqueId); @@ -638,12 +638,12 @@ public final class AvatarOuterClass { if (other.hasTakenRewards()) { getMutableTakenRewards().addAll(other.takenRewards); } - if (other.hasSkilltreeList()) { - getMutableSkilltreeList().addAll(other.skilltreeList); - } if (other.hasEquipRelicList()) { getMutableEquipRelicList().addAll(other.equipRelicList); } + if (other.hasSkilltreeList()) { + getMutableSkilltreeList().addAll(other.skilltreeList); + } return this; } @@ -655,16 +655,16 @@ public final class AvatarOuterClass { cachedSize = -1; bitField0_ = 0; firstMetTimestamp = 0L; - dressedSkinId = 0; promotion = 0; - baseAvatarId = 0; - rank = 0; - level = 0; exp = 0; + baseAvatarId = 0; + level = 0; + dressedSkinId = 0; + rank = 0; equipmentUniqueId = 0; takenRewards.clear(); - skilltreeList.clear(); equipRelicList.clear(); + skilltreeList.clear(); return this; } @@ -676,8 +676,8 @@ public final class AvatarOuterClass { cachedSize = -1; bitField0_ = 0; takenRewards.clear(); - skilltreeList.clearQuick(); equipRelicList.clearQuick(); + skilltreeList.clearQuick(); return this; } @@ -692,31 +692,31 @@ public final class AvatarOuterClass { Avatar other = (Avatar) o; return bitField0_ == other.bitField0_ && (!hasFirstMetTimestamp() || firstMetTimestamp == other.firstMetTimestamp) - && (!hasDressedSkinId() || dressedSkinId == other.dressedSkinId) && (!hasPromotion() || promotion == other.promotion) - && (!hasBaseAvatarId() || baseAvatarId == other.baseAvatarId) - && (!hasRank() || rank == other.rank) - && (!hasLevel() || level == other.level) && (!hasExp() || exp == other.exp) + && (!hasBaseAvatarId() || baseAvatarId == other.baseAvatarId) + && (!hasLevel() || level == other.level) + && (!hasDressedSkinId() || dressedSkinId == other.dressedSkinId) + && (!hasRank() || rank == other.rank) && (!hasEquipmentUniqueId() || equipmentUniqueId == other.equipmentUniqueId) && (!hasTakenRewards() || takenRewards.equals(other.takenRewards)) - && (!hasSkilltreeList() || skilltreeList.equals(other.skilltreeList)) - && (!hasEquipRelicList() || equipRelicList.equals(other.equipRelicList)); + && (!hasEquipRelicList() || equipRelicList.equals(other.equipRelicList)) + && (!hasSkilltreeList() || skilltreeList.equals(other.skilltreeList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 48); output.writeUInt64NoTag(firstMetTimestamp); } if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 8); - output.writeUInt32NoTag(dressedSkinId); + output.writeUInt32NoTag(promotion); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(promotion); + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(exp); } if ((bitField0_ & 0x00000008) != 0) { output.writeRawByte((byte) 40); @@ -724,36 +724,36 @@ public final class AvatarOuterClass { } if ((bitField0_ & 0x00000010) != 0) { output.writeRawByte((byte) 56); - output.writeUInt32NoTag(rank); - } - if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 72); output.writeUInt32NoTag(level); } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(dressedSkinId); + } if ((bitField0_ & 0x00000040) != 0) { - output.writeRawByte((byte) 88); - output.writeUInt32NoTag(exp); + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(rank); } if ((bitField0_ & 0x00000080) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 120); output.writeUInt32NoTag(equipmentUniqueId); } if ((bitField0_ & 0x00000100) != 0) { for (int i = 0; i < takenRewards.length(); i++) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 80); output.writeUInt32NoTag(takenRewards.array()[i]); } } if ((bitField0_ & 0x00000200) != 0) { - for (int i = 0; i < skilltreeList.length(); i++) { - output.writeRawByte((byte) 34); - output.writeMessageNoTag(skilltreeList.get(i)); + for (int i = 0; i < equipRelicList.length(); i++) { + output.writeRawByte((byte) 74); + output.writeMessageNoTag(equipRelicList.get(i)); } } if ((bitField0_ & 0x00000400) != 0) { - for (int i = 0; i < equipRelicList.length(); i++) { - output.writeRawByte((byte) 66); - output.writeMessageNoTag(equipRelicList.get(i)); + for (int i = 0; i < skilltreeList.length(); i++) { + output.writeRawByte((byte) 90); + output.writeMessageNoTag(skilltreeList.get(i)); } } } @@ -765,22 +765,22 @@ public final class AvatarOuterClass { size += 1 + ProtoSink.computeUInt64SizeNoTag(firstMetTimestamp); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(dressedSkinId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(promotion); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(promotion); + size += 1 + ProtoSink.computeUInt32SizeNoTag(exp); } if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); } if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(rank); - } - if ((bitField0_ & 0x00000020) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(level); } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(dressedSkinId); + } if ((bitField0_ & 0x00000040) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(exp); + size += 1 + ProtoSink.computeUInt32SizeNoTag(rank); } if ((bitField0_ & 0x00000080) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(equipmentUniqueId); @@ -789,10 +789,10 @@ public final class AvatarOuterClass { size += (1 * takenRewards.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(takenRewards); } if ((bitField0_ & 0x00000200) != 0) { - size += (1 * skilltreeList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(skilltreeList); + size += (1 * equipRelicList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(equipRelicList); } if ((bitField0_ & 0x00000400) != 0) { - size += (1 * equipRelicList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(equipRelicList); + size += (1 * skilltreeList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(skilltreeList); } return size; } @@ -804,7 +804,7 @@ public final class AvatarOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 120: { + case 48: { // firstMetTimestamp firstMetTimestamp = input.readUInt64(); bitField0_ |= 0x00000001; @@ -814,17 +814,17 @@ public final class AvatarOuterClass { } } case 8: { - // dressedSkinId - dressedSkinId = input.readUInt32(); + // promotion + promotion = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 24) { + if (tag != 16) { break; } } - case 24: { - // promotion - promotion = input.readUInt32(); + case 16: { + // exp + exp = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 40) { @@ -841,61 +841,61 @@ public final class AvatarOuterClass { } } case 56: { - // rank - rank = input.readUInt32(); - bitField0_ |= 0x00000010; - tag = input.readTag(); - if (tag != 72) { - break; - } - } - case 72: { // level level = input.readUInt32(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; tag = input.readTag(); - if (tag != 88) { + if (tag != 64) { break; } } - case 88: { - // exp - exp = input.readUInt32(); - bitField0_ |= 0x00000040; + case 64: { + // dressedSkinId + dressedSkinId = input.readUInt32(); + bitField0_ |= 0x00000020; tag = input.readTag(); if (tag != 96) { break; } } case 96: { + // rank + rank = input.readUInt32(); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { // equipmentUniqueId equipmentUniqueId = input.readUInt32(); bitField0_ |= 0x00000080; tag = input.readTag(); - if (tag != 106) { + if (tag != 82) { break; } } - case 106: { + case 82: { // takenRewards [packed=true] input.readPackedUInt32(takenRewards, tag); bitField0_ |= 0x00000100; tag = input.readTag(); - if (tag != 34) { + if (tag != 74) { break; } } - case 34: { - // skilltreeList - tag = input.readRepeatedMessage(skilltreeList, tag); - bitField0_ |= 0x00000200; - if (tag != 66) { - break; - } - } - case 66: { + case 74: { // equipRelicList tag = input.readRepeatedMessage(equipRelicList, tag); + bitField0_ |= 0x00000200; + if (tag != 90) { + break; + } + } + case 90: { + // skilltreeList + tag = input.readRepeatedMessage(skilltreeList, tag); bitField0_ |= 0x00000400; if (tag != 0) { break; @@ -911,7 +911,7 @@ public final class AvatarOuterClass { tag = input.readTag(); break; } - case 104: { + case 80: { // takenRewards [packed=false] tag = input.readRepeatedUInt32(takenRewards, tag); bitField0_ |= 0x00000100; @@ -928,22 +928,22 @@ public final class AvatarOuterClass { output.writeUInt64(FieldNames.firstMetTimestamp, firstMetTimestamp); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.dressedSkinId, dressedSkinId); + output.writeUInt32(FieldNames.promotion, promotion); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.promotion, promotion); + output.writeUInt32(FieldNames.exp, exp); } if ((bitField0_ & 0x00000008) != 0) { output.writeUInt32(FieldNames.baseAvatarId, baseAvatarId); } if ((bitField0_ & 0x00000010) != 0) { - output.writeUInt32(FieldNames.rank, rank); - } - if ((bitField0_ & 0x00000020) != 0) { output.writeUInt32(FieldNames.level, level); } + if ((bitField0_ & 0x00000020) != 0) { + output.writeUInt32(FieldNames.dressedSkinId, dressedSkinId); + } if ((bitField0_ & 0x00000040) != 0) { - output.writeUInt32(FieldNames.exp, exp); + output.writeUInt32(FieldNames.rank, rank); } if ((bitField0_ & 0x00000080) != 0) { output.writeUInt32(FieldNames.equipmentUniqueId, equipmentUniqueId); @@ -952,10 +952,10 @@ public final class AvatarOuterClass { output.writeRepeatedUInt32(FieldNames.takenRewards, takenRewards); } if ((bitField0_ & 0x00000200) != 0) { - output.writeRepeatedMessage(FieldNames.skilltreeList, skilltreeList); + output.writeRepeatedMessage(FieldNames.equipRelicList, equipRelicList); } if ((bitField0_ & 0x00000400) != 0) { - output.writeRepeatedMessage(FieldNames.equipRelicList, equipRelicList); + output.writeRepeatedMessage(FieldNames.skilltreeList, skilltreeList); } output.endObject(); } @@ -979,11 +979,10 @@ public final class AvatarOuterClass { } break; } - case -407000018: - case 2012697844: { - if (input.isAtField(FieldNames.dressedSkinId)) { + case -799212381: { + if (input.isAtField(FieldNames.promotion)) { if (!input.trySkipNullValue()) { - dressedSkinId = input.readUInt32(); + promotion = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -991,10 +990,10 @@ public final class AvatarOuterClass { } break; } - case -799212381: { - if (input.isAtField(FieldNames.promotion)) { + case 100893: { + if (input.isAtField(FieldNames.exp)) { if (!input.trySkipNullValue()) { - promotion = input.readUInt32(); + exp = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -1014,10 +1013,10 @@ public final class AvatarOuterClass { } break; } - case 3492908: { - if (input.isAtField(FieldNames.rank)) { + case 102865796: { + if (input.isAtField(FieldNames.level)) { if (!input.trySkipNullValue()) { - rank = input.readUInt32(); + level = input.readUInt32(); bitField0_ |= 0x00000010; } } else { @@ -1025,10 +1024,11 @@ public final class AvatarOuterClass { } break; } - 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_ |= 0x00000020; } } else { @@ -1036,10 +1036,10 @@ public final class AvatarOuterClass { } break; } - case 100893: { - if (input.isAtField(FieldNames.exp)) { + case 3492908: { + if (input.isAtField(FieldNames.rank)) { if (!input.trySkipNullValue()) { - exp = input.readUInt32(); + rank = input.readUInt32(); bitField0_ |= 0x00000040; } } else { @@ -1071,11 +1071,11 @@ public final class AvatarOuterClass { } break; } - case 1549763245: - case 815647086: { - if (input.isAtField(FieldNames.skilltreeList)) { + case 1578968161: + case -795441831: { + if (input.isAtField(FieldNames.equipRelicList)) { if (!input.trySkipNullValue()) { - input.readRepeatedMessage(skilltreeList); + input.readRepeatedMessage(equipRelicList); bitField0_ |= 0x00000200; } } else { @@ -1083,11 +1083,11 @@ public final class AvatarOuterClass { } break; } - case 1578968161: - case -795441831: { - if (input.isAtField(FieldNames.equipRelicList)) { + case 1549763245: + case 815647086: { + if (input.isAtField(FieldNames.skilltreeList)) { if (!input.trySkipNullValue()) { - input.readRepeatedMessage(equipRelicList); + input.readRepeatedMessage(skilltreeList); bitField0_ |= 0x00000400; } } else { @@ -1149,25 +1149,25 @@ public final class AvatarOuterClass { static class FieldNames { static final FieldName firstMetTimestamp = FieldName.forField("firstMetTimestamp", "first_met_timestamp"); - static final FieldName dressedSkinId = FieldName.forField("dressedSkinId", "dressed_skin_id"); - static final FieldName promotion = FieldName.forField("promotion"); + static final FieldName exp = FieldName.forField("exp"); + 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 dressedSkinId = FieldName.forField("dressedSkinId", "dressed_skin_id"); + + static final FieldName rank = FieldName.forField("rank"); static final FieldName equipmentUniqueId = FieldName.forField("equipmentUniqueId", "equipment_unique_id"); 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"); + + static final FieldName skilltreeList = FieldName.forField("skilltreeList", "skilltree_list"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/AvatarSyncOuterClass.java b/src/generated/main/emu/lunarcore/proto/AvatarSyncOuterClass.java index 138cc27..b1c06de 100644 --- a/src/generated/main/emu/lunarcore/proto/AvatarSyncOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/AvatarSyncOuterClass.java @@ -20,7 +20,7 @@ public final class AvatarSyncOuterClass { private static final long serialVersionUID = 0L; /** - * repeated .Avatar avatar_list = 1; + * repeated .Avatar avatar_list = 9; */ private final RepeatedMessage avatarList = RepeatedMessage.newEmptyInstance(AvatarOuterClass.Avatar.getFactory()); @@ -35,7 +35,7 @@ public final class AvatarSyncOuterClass { } /** - * repeated .Avatar avatar_list = 1; + * repeated .Avatar avatar_list = 9; * @return whether the avatarList field is set */ public boolean hasAvatarList() { @@ -43,7 +43,7 @@ public final class AvatarSyncOuterClass { } /** - * repeated .Avatar avatar_list = 1; + * repeated .Avatar avatar_list = 9; * @return this */ public AvatarSync clearAvatarList() { @@ -53,7 +53,7 @@ public final class AvatarSyncOuterClass { } /** - * repeated .Avatar avatar_list = 1; + * repeated .Avatar avatar_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 final class AvatarSyncOuterClass { } /** - * repeated .Avatar avatar_list = 1; + * repeated .Avatar avatar_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 final class AvatarSyncOuterClass { } /** - * repeated .Avatar avatar_list = 1; + * repeated .Avatar avatar_list = 9; * @param value the avatarList to add * @return this */ @@ -92,7 +92,7 @@ public final class AvatarSyncOuterClass { } /** - * repeated .Avatar avatar_list = 1; + * repeated .Avatar avatar_list = 9; * @param values the avatarList to add * @return this */ @@ -163,7 +163,7 @@ public final class AvatarSyncOuterClass { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { for (int i = 0; i < avatarList.length(); i++) { - output.writeRawByte((byte) 10); + output.writeRawByte((byte) 74); output.writeMessageNoTag(avatarList.get(i)); } } @@ -185,7 +185,7 @@ public final class AvatarSyncOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 10: { + case 74: { // avatarList tag = input.readRepeatedMessage(avatarList, tag); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/BELMNIPGEDNOuterClass.java b/src/generated/main/emu/lunarcore/proto/BELMNIPGEDNOuterClass.java deleted file mode 100644 index a658514..0000000 --- a/src/generated/main/emu/lunarcore/proto/BELMNIPGEDNOuterClass.java +++ /dev/null @@ -1,498 +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 BELMNIPGEDNOuterClass { - /** - * Protobuf type {@code BELMNIPGEDN} - */ - public static final class BELMNIPGEDN extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 MFOPPKIBGNJ = 8; - */ - private int mFOPPKIBGNJ; - - /** - * optional uint32 DDOPHIJMILL = 9; - */ - private int dDOPHIJMILL; - - /** - * optional uint32 ACJKANLIGBM = 10; - */ - private int aCJKANLIGBM; - - /** - * optional uint32 INGFJNPHCDL = 15; - */ - private int iNGFJNPHCDL; - - private BELMNIPGEDN() { - } - - /** - * @return a new empty instance of {@code BELMNIPGEDN} - */ - public static BELMNIPGEDN newInstance() { - return new BELMNIPGEDN(); - } - - /** - * optional uint32 MFOPPKIBGNJ = 8; - * @return whether the mFOPPKIBGNJ field is set - */ - public boolean hasMFOPPKIBGNJ() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 MFOPPKIBGNJ = 8; - * @return this - */ - public BELMNIPGEDN clearMFOPPKIBGNJ() { - bitField0_ &= ~0x00000001; - mFOPPKIBGNJ = 0; - return this; - } - - /** - * optional uint32 MFOPPKIBGNJ = 8; - * @return the mFOPPKIBGNJ - */ - public int getMFOPPKIBGNJ() { - return mFOPPKIBGNJ; - } - - /** - * optional uint32 MFOPPKIBGNJ = 8; - * @param value the mFOPPKIBGNJ to set - * @return this - */ - public BELMNIPGEDN setMFOPPKIBGNJ(final int value) { - bitField0_ |= 0x00000001; - mFOPPKIBGNJ = value; - return this; - } - - /** - * optional uint32 DDOPHIJMILL = 9; - * @return whether the dDOPHIJMILL field is set - */ - public boolean hasDDOPHIJMILL() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 DDOPHIJMILL = 9; - * @return this - */ - public BELMNIPGEDN clearDDOPHIJMILL() { - bitField0_ &= ~0x00000002; - dDOPHIJMILL = 0; - return this; - } - - /** - * optional uint32 DDOPHIJMILL = 9; - * @return the dDOPHIJMILL - */ - public int getDDOPHIJMILL() { - return dDOPHIJMILL; - } - - /** - * optional uint32 DDOPHIJMILL = 9; - * @param value the dDOPHIJMILL to set - * @return this - */ - public BELMNIPGEDN setDDOPHIJMILL(final int value) { - bitField0_ |= 0x00000002; - dDOPHIJMILL = value; - return this; - } - - /** - * optional uint32 ACJKANLIGBM = 10; - * @return whether the aCJKANLIGBM field is set - */ - public boolean hasACJKANLIGBM() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 ACJKANLIGBM = 10; - * @return this - */ - public BELMNIPGEDN clearACJKANLIGBM() { - bitField0_ &= ~0x00000004; - aCJKANLIGBM = 0; - return this; - } - - /** - * optional uint32 ACJKANLIGBM = 10; - * @return the aCJKANLIGBM - */ - public int getACJKANLIGBM() { - return aCJKANLIGBM; - } - - /** - * optional uint32 ACJKANLIGBM = 10; - * @param value the aCJKANLIGBM to set - * @return this - */ - public BELMNIPGEDN setACJKANLIGBM(final int value) { - bitField0_ |= 0x00000004; - aCJKANLIGBM = value; - return this; - } - - /** - * optional uint32 INGFJNPHCDL = 15; - * @return whether the iNGFJNPHCDL field is set - */ - public boolean hasINGFJNPHCDL() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional uint32 INGFJNPHCDL = 15; - * @return this - */ - public BELMNIPGEDN clearINGFJNPHCDL() { - bitField0_ &= ~0x00000008; - iNGFJNPHCDL = 0; - return this; - } - - /** - * optional uint32 INGFJNPHCDL = 15; - * @return the iNGFJNPHCDL - */ - public int getINGFJNPHCDL() { - return iNGFJNPHCDL; - } - - /** - * optional uint32 INGFJNPHCDL = 15; - * @param value the iNGFJNPHCDL to set - * @return this - */ - public BELMNIPGEDN setINGFJNPHCDL(final int value) { - bitField0_ |= 0x00000008; - iNGFJNPHCDL = value; - return this; - } - - @Override - public BELMNIPGEDN copyFrom(final BELMNIPGEDN other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - mFOPPKIBGNJ = other.mFOPPKIBGNJ; - dDOPHIJMILL = other.dDOPHIJMILL; - aCJKANLIGBM = other.aCJKANLIGBM; - iNGFJNPHCDL = other.iNGFJNPHCDL; - } - return this; - } - - @Override - public BELMNIPGEDN mergeFrom(final BELMNIPGEDN other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasMFOPPKIBGNJ()) { - setMFOPPKIBGNJ(other.mFOPPKIBGNJ); - } - if (other.hasDDOPHIJMILL()) { - setDDOPHIJMILL(other.dDOPHIJMILL); - } - if (other.hasACJKANLIGBM()) { - setACJKANLIGBM(other.aCJKANLIGBM); - } - if (other.hasINGFJNPHCDL()) { - setINGFJNPHCDL(other.iNGFJNPHCDL); - } - return this; - } - - @Override - public BELMNIPGEDN clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - mFOPPKIBGNJ = 0; - dDOPHIJMILL = 0; - aCJKANLIGBM = 0; - iNGFJNPHCDL = 0; - return this; - } - - @Override - public BELMNIPGEDN 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 BELMNIPGEDN)) { - return false; - } - BELMNIPGEDN other = (BELMNIPGEDN) o; - return bitField0_ == other.bitField0_ - && (!hasMFOPPKIBGNJ() || mFOPPKIBGNJ == other.mFOPPKIBGNJ) - && (!hasDDOPHIJMILL() || dDOPHIJMILL == other.dDOPHIJMILL) - && (!hasACJKANLIGBM() || aCJKANLIGBM == other.aCJKANLIGBM) - && (!hasINGFJNPHCDL() || iNGFJNPHCDL == other.iNGFJNPHCDL); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 64); - output.writeUInt32NoTag(mFOPPKIBGNJ); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 72); - output.writeUInt32NoTag(dDOPHIJMILL); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 80); - output.writeUInt32NoTag(aCJKANLIGBM); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 120); - output.writeUInt32NoTag(iNGFJNPHCDL); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(mFOPPKIBGNJ); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(dDOPHIJMILL); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(aCJKANLIGBM); - } - if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(iNGFJNPHCDL); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public BELMNIPGEDN mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 64: { - // mFOPPKIBGNJ - mFOPPKIBGNJ = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 72) { - break; - } - } - case 72: { - // dDOPHIJMILL - dDOPHIJMILL = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 80) { - break; - } - } - case 80: { - // aCJKANLIGBM - aCJKANLIGBM = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 120) { - break; - } - } - case 120: { - // iNGFJNPHCDL - iNGFJNPHCDL = input.readUInt32(); - bitField0_ |= 0x00000008; - 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.mFOPPKIBGNJ, mFOPPKIBGNJ); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.dDOPHIJMILL, dDOPHIJMILL); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.aCJKANLIGBM, aCJKANLIGBM); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.iNGFJNPHCDL, iNGFJNPHCDL); - } - output.endObject(); - } - - @Override - public BELMNIPGEDN mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -663962379: { - if (input.isAtField(FieldNames.mFOPPKIBGNJ)) { - if (!input.trySkipNullValue()) { - mFOPPKIBGNJ = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case 155657604: { - if (input.isAtField(FieldNames.dDOPHIJMILL)) { - if (!input.trySkipNullValue()) { - dDOPHIJMILL = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1408539: { - if (input.isAtField(FieldNames.aCJKANLIGBM)) { - if (!input.trySkipNullValue()) { - aCJKANLIGBM = input.readUInt32(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1045739275: { - if (input.isAtField(FieldNames.iNGFJNPHCDL)) { - if (!input.trySkipNullValue()) { - iNGFJNPHCDL = input.readUInt32(); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public BELMNIPGEDN clone() { - return new BELMNIPGEDN().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static BELMNIPGEDN parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new BELMNIPGEDN(), data).checkInitialized(); - } - - public static BELMNIPGEDN parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new BELMNIPGEDN(), input).checkInitialized(); - } - - public static BELMNIPGEDN parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new BELMNIPGEDN(), input).checkInitialized(); - } - - /** - * @return factory for creating BELMNIPGEDN messages - */ - public static MessageFactory getFactory() { - return BELMNIPGEDNFactory.INSTANCE; - } - - private enum BELMNIPGEDNFactory implements MessageFactory { - INSTANCE; - - @Override - public BELMNIPGEDN create() { - return BELMNIPGEDN.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName mFOPPKIBGNJ = FieldName.forField("MFOPPKIBGNJ"); - - static final FieldName dDOPHIJMILL = FieldName.forField("DDOPHIJMILL"); - - static final FieldName aCJKANLIGBM = FieldName.forField("ACJKANLIGBM"); - - static final FieldName iNGFJNPHCDL = FieldName.forField("INGFJNPHCDL"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/BattleAvatarOuterClass.java b/src/generated/main/emu/lunarcore/proto/BattleAvatarOuterClass.java index 6afc064..fc6c0e5 100644 --- a/src/generated/main/emu/lunarcore/proto/BattleAvatarOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/BattleAvatarOuterClass.java @@ -65,10 +65,6 @@ public final class BattleAvatarOuterClass { private int avatarType; /** - *
-     * DGPADLEIDFM BLGGGJFHGCP = 15;
-     * 
- * * optional .SpBarInfo sp_bar = 16; */ private final SpBarInfoOuterClass.SpBarInfo spBar = SpBarInfoOuterClass.SpBarInfo.newInstance(); @@ -457,10 +453,6 @@ public final class BattleAvatarOuterClass { } /** - *
-     * DGPADLEIDFM BLGGGJFHGCP = 15;
-     * 
- * * optional .SpBarInfo sp_bar = 16; * @return whether the spBar field is set */ @@ -469,10 +461,6 @@ public final class BattleAvatarOuterClass { } /** - *
-     * DGPADLEIDFM BLGGGJFHGCP = 15;
-     * 
- * * optional .SpBarInfo sp_bar = 16; * @return this */ @@ -483,10 +471,6 @@ public final class BattleAvatarOuterClass { } /** - *
-     * DGPADLEIDFM BLGGGJFHGCP = 15;
-     * 
- * * optional .SpBarInfo sp_bar = 16; * * This method returns the internal storage object without modifying any has state. @@ -501,10 +485,6 @@ public final class BattleAvatarOuterClass { } /** - *
-     * DGPADLEIDFM BLGGGJFHGCP = 15;
-     * 
- * * optional .SpBarInfo sp_bar = 16; * * This method returns the internal storage object and sets the corresponding @@ -519,10 +499,6 @@ public final class BattleAvatarOuterClass { } /** - *
-     * DGPADLEIDFM BLGGGJFHGCP = 15;
-     * 
- * * optional .SpBarInfo sp_bar = 16; * @param value the spBar to set * @return this diff --git a/src/generated/main/emu/lunarcore/proto/BattleEventBattleInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/BattleEventBattleInfoOuterClass.java index 864afb7..3688ee7 100644 --- a/src/generated/main/emu/lunarcore/proto/BattleEventBattleInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/BattleEventBattleInfoOuterClass.java @@ -10,7 +10,6 @@ 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 BattleEventBattleInfoOuterClass { /** @@ -29,11 +28,6 @@ public final class BattleEventBattleInfoOuterClass { */ private final BattleEventInitedDataOuterClass.BattleEventInitedData status = BattleEventInitedDataOuterClass.BattleEventInitedData.newInstance(); - /** - * repeated .BattleSkillInfo skill_list = 3; - */ - private final RepeatedMessage skillList = RepeatedMessage.newEmptyInstance(BattleSkillInfoOuterClass.BattleSkillInfo.getFactory()); - private BattleEventBattleInfo() { } @@ -139,76 +133,6 @@ public final class BattleEventBattleInfoOuterClass { return this; } - /** - * repeated .BattleSkillInfo skill_list = 3; - * @return whether the skillList field is set - */ - public boolean hasSkillList() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * repeated .BattleSkillInfo skill_list = 3; - * @return this - */ - public BattleEventBattleInfo clearSkillList() { - bitField0_ &= ~0x00000004; - skillList.clear(); - return this; - } - - /** - * repeated .BattleSkillInfo skill_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 #getMutableSkillList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getSkillList() { - return skillList; - } - - /** - * repeated .BattleSkillInfo skill_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 - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableSkillList() { - bitField0_ |= 0x00000004; - return skillList; - } - - /** - * repeated .BattleSkillInfo skill_list = 3; - * @param value the skillList to add - * @return this - */ - public BattleEventBattleInfo addSkillList( - final BattleSkillInfoOuterClass.BattleSkillInfo value) { - bitField0_ |= 0x00000004; - skillList.add(value); - return this; - } - - /** - * repeated .BattleSkillInfo skill_list = 3; - * @param values the skillList to add - * @return this - */ - public BattleEventBattleInfo addAllSkillList( - final BattleSkillInfoOuterClass.BattleSkillInfo... values) { - bitField0_ |= 0x00000004; - skillList.addAll(values); - return this; - } - @Override public BattleEventBattleInfo copyFrom(final BattleEventBattleInfo other) { cachedSize = other.cachedSize; @@ -216,7 +140,6 @@ public final class BattleEventBattleInfoOuterClass { bitField0_ = other.bitField0_; battleEventId = other.battleEventId; status.copyFrom(other.status); - skillList.copyFrom(other.skillList); } return this; } @@ -233,9 +156,6 @@ public final class BattleEventBattleInfoOuterClass { if (other.hasStatus()) { getMutableStatus().mergeFrom(other.status); } - if (other.hasSkillList()) { - getMutableSkillList().addAll(other.skillList); - } return this; } @@ -248,7 +168,6 @@ public final class BattleEventBattleInfoOuterClass { bitField0_ = 0; battleEventId = 0; status.clear(); - skillList.clear(); return this; } @@ -260,7 +179,6 @@ public final class BattleEventBattleInfoOuterClass { cachedSize = -1; bitField0_ = 0; status.clearQuick(); - skillList.clearQuick(); return this; } @@ -275,8 +193,7 @@ public final class BattleEventBattleInfoOuterClass { BattleEventBattleInfo other = (BattleEventBattleInfo) o; return bitField0_ == other.bitField0_ && (!hasBattleEventId() || battleEventId == other.battleEventId) - && (!hasStatus() || status.equals(other.status)) - && (!hasSkillList() || skillList.equals(other.skillList)); + && (!hasStatus() || status.equals(other.status)); } @Override @@ -289,12 +206,6 @@ public final class BattleEventBattleInfoOuterClass { output.writeRawByte((byte) 18); output.writeMessageNoTag(status); } - if ((bitField0_ & 0x00000004) != 0) { - for (int i = 0; i < skillList.length(); i++) { - output.writeRawByte((byte) 26); - output.writeMessageNoTag(skillList.get(i)); - } - } } @Override @@ -306,9 +217,6 @@ public final class BattleEventBattleInfoOuterClass { if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(status); } - if ((bitField0_ & 0x00000004) != 0) { - size += (1 * skillList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(skillList); - } return size; } @@ -333,14 +241,6 @@ public final class BattleEventBattleInfoOuterClass { input.readMessage(status); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 26) { - break; - } - } - case 26: { - // skillList - tag = input.readRepeatedMessage(skillList, tag); - bitField0_ |= 0x00000004; if (tag != 0) { break; } @@ -368,9 +268,6 @@ public final class BattleEventBattleInfoOuterClass { if ((bitField0_ & 0x00000002) != 0) { output.writeMessage(FieldNames.status, status); } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRepeatedMessage(FieldNames.skillList, skillList); - } output.endObject(); } @@ -404,18 +301,6 @@ public final class BattleEventBattleInfoOuterClass { } break; } - case 1990942351: - case 1607297484: { - if (input.isAtField(FieldNames.skillList)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(skillList); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } default: { input.skipUnknownField(); break; @@ -472,8 +357,6 @@ public final class BattleEventBattleInfoOuterClass { static final FieldName battleEventId = FieldName.forField("battleEventId", "battle_event_id"); static final FieldName status = FieldName.forField("status"); - - static final FieldName skillList = FieldName.forField("skillList", "skill_list"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/BattleMechanismBarOuterClass.java b/src/generated/main/emu/lunarcore/proto/BattleMechanismBarOuterClass.java deleted file mode 100644 index 82c94ed..0000000 --- a/src/generated/main/emu/lunarcore/proto/BattleMechanismBarOuterClass.java +++ /dev/null @@ -1,339 +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 BattleMechanismBarOuterClass { - /** - * Protobuf type {@code BattleMechanismBar} - */ - public static final class BattleMechanismBar extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 OMMELBCMNNM = 1; - */ - private int oMMELBCMNNM; - - /** - * optional uint32 AMMAAKPAKAA = 2; - */ - private int aMMAAKPAKAA; - - private BattleMechanismBar() { - } - - /** - * @return a new empty instance of {@code BattleMechanismBar} - */ - public static BattleMechanismBar newInstance() { - return new BattleMechanismBar(); - } - - /** - * optional uint32 OMMELBCMNNM = 1; - * @return whether the oMMELBCMNNM field is set - */ - public boolean hasOMMELBCMNNM() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 OMMELBCMNNM = 1; - * @return this - */ - public BattleMechanismBar clearOMMELBCMNNM() { - bitField0_ &= ~0x00000001; - oMMELBCMNNM = 0; - return this; - } - - /** - * optional uint32 OMMELBCMNNM = 1; - * @return the oMMELBCMNNM - */ - public int getOMMELBCMNNM() { - return oMMELBCMNNM; - } - - /** - * optional uint32 OMMELBCMNNM = 1; - * @param value the oMMELBCMNNM to set - * @return this - */ - public BattleMechanismBar setOMMELBCMNNM(final int value) { - bitField0_ |= 0x00000001; - oMMELBCMNNM = value; - return this; - } - - /** - * optional uint32 AMMAAKPAKAA = 2; - * @return whether the aMMAAKPAKAA field is set - */ - public boolean hasAMMAAKPAKAA() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 AMMAAKPAKAA = 2; - * @return this - */ - public BattleMechanismBar clearAMMAAKPAKAA() { - bitField0_ &= ~0x00000002; - aMMAAKPAKAA = 0; - return this; - } - - /** - * optional uint32 AMMAAKPAKAA = 2; - * @return the aMMAAKPAKAA - */ - public int getAMMAAKPAKAA() { - return aMMAAKPAKAA; - } - - /** - * optional uint32 AMMAAKPAKAA = 2; - * @param value the aMMAAKPAKAA to set - * @return this - */ - public BattleMechanismBar setAMMAAKPAKAA(final int value) { - bitField0_ |= 0x00000002; - aMMAAKPAKAA = value; - return this; - } - - @Override - public BattleMechanismBar copyFrom(final BattleMechanismBar other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - oMMELBCMNNM = other.oMMELBCMNNM; - aMMAAKPAKAA = other.aMMAAKPAKAA; - } - return this; - } - - @Override - public BattleMechanismBar mergeFrom(final BattleMechanismBar other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasOMMELBCMNNM()) { - setOMMELBCMNNM(other.oMMELBCMNNM); - } - if (other.hasAMMAAKPAKAA()) { - setAMMAAKPAKAA(other.aMMAAKPAKAA); - } - return this; - } - - @Override - public BattleMechanismBar clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - oMMELBCMNNM = 0; - aMMAAKPAKAA = 0; - return this; - } - - @Override - public BattleMechanismBar 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 BattleMechanismBar)) { - return false; - } - BattleMechanismBar other = (BattleMechanismBar) o; - return bitField0_ == other.bitField0_ - && (!hasOMMELBCMNNM() || oMMELBCMNNM == other.oMMELBCMNNM) - && (!hasAMMAAKPAKAA() || aMMAAKPAKAA == other.aMMAAKPAKAA); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(oMMELBCMNNM); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(aMMAAKPAKAA); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(oMMELBCMNNM); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(aMMAAKPAKAA); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public BattleMechanismBar mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 8: { - // oMMELBCMNNM - oMMELBCMNNM = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 16) { - break; - } - } - case 16: { - // aMMAAKPAKAA - aMMAAKPAKAA = 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.oMMELBCMNNM, oMMELBCMNNM); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.aMMAAKPAKAA, aMMAAKPAKAA); - } - output.endObject(); - } - - @Override - public BattleMechanismBar mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 767455607: { - if (input.isAtField(FieldNames.oMMELBCMNNM)) { - if (!input.trySkipNullValue()) { - oMMELBCMNNM = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case 870365552: { - if (input.isAtField(FieldNames.aMMAAKPAKAA)) { - if (!input.trySkipNullValue()) { - aMMAAKPAKAA = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public BattleMechanismBar clone() { - return new BattleMechanismBar().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static BattleMechanismBar parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new BattleMechanismBar(), data).checkInitialized(); - } - - public static BattleMechanismBar parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new BattleMechanismBar(), input).checkInitialized(); - } - - public static BattleMechanismBar parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new BattleMechanismBar(), input).checkInitialized(); - } - - /** - * @return factory for creating BattleMechanismBar messages - */ - public static MessageFactory getFactory() { - return BattleMechanismBarFactory.INSTANCE; - } - - private enum BattleMechanismBarFactory implements MessageFactory { - INSTANCE; - - @Override - public BattleMechanismBar create() { - return BattleMechanismBar.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName oMMELBCMNNM = FieldName.forField("OMMELBCMNNM"); - - static final FieldName aMMAAKPAKAA = FieldName.forField("AMMAAKPAKAA"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/BattleRelicOuterClass.java b/src/generated/main/emu/lunarcore/proto/BattleRelicOuterClass.java index 63937ed..2269655 100644 --- a/src/generated/main/emu/lunarcore/proto/BattleRelicOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/BattleRelicOuterClass.java @@ -39,21 +39,6 @@ public final class BattleRelicOuterClass { */ private int uniqueId; - /** - * optional uint32 relic_id = 6; - */ - private int relicId; - - /** - * optional uint32 slot = 7; - */ - private int slot; - - /** - * optional uint32 DCKIHBLMEGF = 8; - */ - private int dCKIHBLMEGF; - /** * repeated .RelicAffix sub_affix_list = 4; */ @@ -217,123 +202,12 @@ public final class BattleRelicOuterClass { return this; } - /** - * optional uint32 relic_id = 6; - * @return whether the relicId field is set - */ - public boolean hasRelicId() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - * optional uint32 relic_id = 6; - * @return this - */ - public BattleRelic clearRelicId() { - bitField0_ &= ~0x00000010; - relicId = 0; - return this; - } - - /** - * optional uint32 relic_id = 6; - * @return the relicId - */ - public int getRelicId() { - return relicId; - } - - /** - * optional uint32 relic_id = 6; - * @param value the relicId to set - * @return this - */ - public BattleRelic setRelicId(final int value) { - bitField0_ |= 0x00000010; - relicId = value; - return this; - } - - /** - * optional uint32 slot = 7; - * @return whether the slot field is set - */ - public boolean hasSlot() { - return (bitField0_ & 0x00000020) != 0; - } - - /** - * optional uint32 slot = 7; - * @return this - */ - public BattleRelic clearSlot() { - bitField0_ &= ~0x00000020; - slot = 0; - return this; - } - - /** - * optional uint32 slot = 7; - * @return the slot - */ - public int getSlot() { - return slot; - } - - /** - * optional uint32 slot = 7; - * @param value the slot to set - * @return this - */ - public BattleRelic setSlot(final int value) { - bitField0_ |= 0x00000020; - slot = value; - return this; - } - - /** - * optional uint32 DCKIHBLMEGF = 8; - * @return whether the dCKIHBLMEGF field is set - */ - public boolean hasDCKIHBLMEGF() { - return (bitField0_ & 0x00000040) != 0; - } - - /** - * optional uint32 DCKIHBLMEGF = 8; - * @return this - */ - public BattleRelic clearDCKIHBLMEGF() { - bitField0_ &= ~0x00000040; - dCKIHBLMEGF = 0; - return this; - } - - /** - * optional uint32 DCKIHBLMEGF = 8; - * @return the dCKIHBLMEGF - */ - public int getDCKIHBLMEGF() { - return dCKIHBLMEGF; - } - - /** - * optional uint32 DCKIHBLMEGF = 8; - * @param value the dCKIHBLMEGF to set - * @return this - */ - public BattleRelic setDCKIHBLMEGF(final int value) { - bitField0_ |= 0x00000040; - dCKIHBLMEGF = value; - return this; - } - /** * repeated .RelicAffix sub_affix_list = 4; * @return whether the subAffixList field is set */ public boolean hasSubAffixList() { - return (bitField0_ & 0x00000080) != 0; + return (bitField0_ & 0x00000010) != 0; } /** @@ -341,7 +215,7 @@ public final class BattleRelicOuterClass { * @return this */ public BattleRelic clearSubAffixList() { - bitField0_ &= ~0x00000080; + bitField0_ &= ~0x00000010; subAffixList.clear(); return this; } @@ -370,7 +244,7 @@ public final class BattleRelicOuterClass { * @return internal storage object for modifications */ public RepeatedMessage getMutableSubAffixList() { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000010; return subAffixList; } @@ -380,7 +254,7 @@ public final class BattleRelicOuterClass { * @return this */ public BattleRelic addSubAffixList(final RelicAffixOuterClass.RelicAffix value) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000010; subAffixList.add(value); return this; } @@ -391,7 +265,7 @@ public final class BattleRelicOuterClass { * @return this */ public BattleRelic addAllSubAffixList(final RelicAffixOuterClass.RelicAffix... values) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000010; subAffixList.addAll(values); return this; } @@ -405,9 +279,6 @@ public final class BattleRelicOuterClass { level = other.level; mainAffixId = other.mainAffixId; uniqueId = other.uniqueId; - relicId = other.relicId; - slot = other.slot; - dCKIHBLMEGF = other.dCKIHBLMEGF; subAffixList.copyFrom(other.subAffixList); } return this; @@ -431,15 +302,6 @@ public final class BattleRelicOuterClass { if (other.hasUniqueId()) { setUniqueId(other.uniqueId); } - if (other.hasRelicId()) { - setRelicId(other.relicId); - } - if (other.hasSlot()) { - setSlot(other.slot); - } - if (other.hasDCKIHBLMEGF()) { - setDCKIHBLMEGF(other.dCKIHBLMEGF); - } if (other.hasSubAffixList()) { getMutableSubAffixList().addAll(other.subAffixList); } @@ -457,9 +319,6 @@ public final class BattleRelicOuterClass { level = 0; mainAffixId = 0; uniqueId = 0; - relicId = 0; - slot = 0; - dCKIHBLMEGF = 0; subAffixList.clear(); return this; } @@ -489,9 +348,6 @@ public final class BattleRelicOuterClass { && (!hasLevel() || level == other.level) && (!hasMainAffixId() || mainAffixId == other.mainAffixId) && (!hasUniqueId() || uniqueId == other.uniqueId) - && (!hasRelicId() || relicId == other.relicId) - && (!hasSlot() || slot == other.slot) - && (!hasDCKIHBLMEGF() || dCKIHBLMEGF == other.dCKIHBLMEGF) && (!hasSubAffixList() || subAffixList.equals(other.subAffixList)); } @@ -514,18 +370,6 @@ public final class BattleRelicOuterClass { output.writeUInt32NoTag(uniqueId); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 48); - output.writeUInt32NoTag(relicId); - } - if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 56); - output.writeUInt32NoTag(slot); - } - if ((bitField0_ & 0x00000040) != 0) { - output.writeRawByte((byte) 64); - output.writeUInt32NoTag(dCKIHBLMEGF); - } - if ((bitField0_ & 0x00000080) != 0) { for (int i = 0; i < subAffixList.length(); i++) { output.writeRawByte((byte) 34); output.writeMessageNoTag(subAffixList.get(i)); @@ -549,15 +393,6 @@ public final class BattleRelicOuterClass { size += 1 + ProtoSink.computeUInt32SizeNoTag(uniqueId); } if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(relicId); - } - if ((bitField0_ & 0x00000020) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(slot); - } - if ((bitField0_ & 0x00000040) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(dCKIHBLMEGF); - } - if ((bitField0_ & 0x00000080) != 0) { size += (1 * subAffixList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(subAffixList); } return size; @@ -602,33 +437,6 @@ public final class BattleRelicOuterClass { uniqueId = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 48) { - break; - } - } - case 48: { - // relicId - relicId = input.readUInt32(); - bitField0_ |= 0x00000010; - tag = input.readTag(); - if (tag != 56) { - break; - } - } - case 56: { - // slot - slot = input.readUInt32(); - bitField0_ |= 0x00000020; - tag = input.readTag(); - if (tag != 64) { - break; - } - } - case 64: { - // dCKIHBLMEGF - dCKIHBLMEGF = input.readUInt32(); - bitField0_ |= 0x00000040; - tag = input.readTag(); if (tag != 34) { break; } @@ -636,7 +444,7 @@ public final class BattleRelicOuterClass { case 34: { // subAffixList tag = input.readRepeatedMessage(subAffixList, tag); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000010; if (tag != 0) { break; } @@ -671,15 +479,6 @@ public final class BattleRelicOuterClass { output.writeUInt32(FieldNames.uniqueId, uniqueId); } if ((bitField0_ & 0x00000010) != 0) { - output.writeUInt32(FieldNames.relicId, relicId); - } - if ((bitField0_ & 0x00000020) != 0) { - output.writeUInt32(FieldNames.slot, slot); - } - if ((bitField0_ & 0x00000040) != 0) { - output.writeUInt32(FieldNames.dCKIHBLMEGF, dCKIHBLMEGF); - } - if ((bitField0_ & 0x00000080) != 0) { output.writeRepeatedMessage(FieldNames.subAffixList, subAffixList); } output.endObject(); @@ -738,46 +537,12 @@ public final class BattleRelicOuterClass { } break; } - case 1090714606: - case -547564185: { - if (input.isAtField(FieldNames.relicId)) { - if (!input.trySkipNullValue()) { - relicId = input.readUInt32(); - bitField0_ |= 0x00000010; - } - } else { - input.skipUnknownField(); - } - break; - } - case 3533310: { - if (input.isAtField(FieldNames.slot)) { - if (!input.trySkipNullValue()) { - slot = input.readUInt32(); - bitField0_ |= 0x00000020; - } - } else { - input.skipUnknownField(); - } - break; - } - case -521277108: { - if (input.isAtField(FieldNames.dCKIHBLMEGF)) { - if (!input.trySkipNullValue()) { - dCKIHBLMEGF = input.readUInt32(); - bitField0_ |= 0x00000040; - } - } else { - input.skipUnknownField(); - } - break; - } case -600836050: case 919890188: { if (input.isAtField(FieldNames.subAffixList)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(subAffixList); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000010; } } else { input.skipUnknownField(); @@ -844,12 +609,6 @@ public final class BattleRelicOuterClass { static final FieldName uniqueId = FieldName.forField("uniqueId", "unique_id"); - static final FieldName relicId = FieldName.forField("relicId", "relic_id"); - - static final FieldName slot = FieldName.forField("slot"); - - static final FieldName dCKIHBLMEGF = FieldName.forField("DCKIHBLMEGF"); - static final FieldName subAffixList = FieldName.forField("subAffixList", "sub_affix_list"); } } diff --git a/src/generated/main/emu/lunarcore/proto/BoardDataSyncOuterClass.java b/src/generated/main/emu/lunarcore/proto/BoardDataSyncOuterClass.java index e6459cb..f7602b3 100644 --- a/src/generated/main/emu/lunarcore/proto/BoardDataSyncOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/BoardDataSyncOuterClass.java @@ -26,7 +26,7 @@ public final class BoardDataSyncOuterClass { private final Utf8String signature = Utf8String.newEmptyInstance(); /** - * repeated .HeadIcon unlocked_head_icon_list = 9; + * repeated .HeadIcon unlocked_head_icon_list = 5; */ private final RepeatedMessage unlockedHeadIconList = RepeatedMessage.newEmptyInstance(HeadIconOuterClass.HeadIcon.getFactory()); @@ -106,7 +106,7 @@ public final class BoardDataSyncOuterClass { } /** - * repeated .HeadIcon unlocked_head_icon_list = 9; + * repeated .HeadIcon unlocked_head_icon_list = 5; * @return whether the unlockedHeadIconList field is set */ public boolean hasUnlockedHeadIconList() { @@ -114,7 +114,7 @@ public final class BoardDataSyncOuterClass { } /** - * repeated .HeadIcon unlocked_head_icon_list = 9; + * repeated .HeadIcon unlocked_head_icon_list = 5; * @return this */ public BoardDataSync clearUnlockedHeadIconList() { @@ -124,7 +124,7 @@ public final class BoardDataSyncOuterClass { } /** - * repeated .HeadIcon unlocked_head_icon_list = 9; + * repeated .HeadIcon unlocked_head_icon_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. @@ -138,7 +138,7 @@ public final class BoardDataSyncOuterClass { } /** - * repeated .HeadIcon unlocked_head_icon_list = 9; + * repeated .HeadIcon unlocked_head_icon_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 @@ -152,7 +152,7 @@ public final class BoardDataSyncOuterClass { } /** - * repeated .HeadIcon unlocked_head_icon_list = 9; + * repeated .HeadIcon unlocked_head_icon_list = 5; * @param value the unlockedHeadIconList to add * @return this */ @@ -163,7 +163,7 @@ public final class BoardDataSyncOuterClass { } /** - * repeated .HeadIcon unlocked_head_icon_list = 9; + * repeated .HeadIcon unlocked_head_icon_list = 5; * @param values the unlockedHeadIconList to add * @return this */ @@ -245,7 +245,7 @@ public final class BoardDataSyncOuterClass { } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < unlockedHeadIconList.length(); i++) { - output.writeRawByte((byte) 74); + output.writeRawByte((byte) 42); output.writeMessageNoTag(unlockedHeadIconList.get(i)); } } @@ -275,11 +275,11 @@ public final class BoardDataSyncOuterClass { input.readString(signature); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 74) { + if (tag != 42) { break; } } - case 74: { + case 42: { // 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 bdc8fbb..b5f50d2 100644 --- a/src/generated/main/emu/lunarcore/proto/BuffInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/BuffInfoOuterClass.java @@ -22,37 +22,37 @@ public final class BuffInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint64 add_time_ms = 13; + * optional uint64 add_time_ms = 10; */ private long addTimeMs; /** - * optional float life_time = 12; + * optional float life_time = 11; */ private float lifeTime; /** - * optional uint32 base_avatar_id = 1; - */ - private int baseAvatarId; - - /** - * optional uint32 level = 6; + * optional uint32 level = 2; */ private int level; /** - * optional uint32 count = 7; + * optional uint32 base_avatar_id = 3; */ - private int count; + private int baseAvatarId; /** - * optional uint32 buff_id = 15; + * optional uint32 buff_id = 5; */ private int buffId; /** - * repeated .BuffInfo.DynamicValuesEntry dynamic_values = 10; + * optional uint32 count = 14; + */ + private int count; + + /** + * repeated .BuffInfo.DynamicValuesEntry dynamic_values = 4; */ private final RepeatedMessage dynamicValues = RepeatedMessage.newEmptyInstance(DynamicValuesEntry.getFactory()); @@ -67,7 +67,7 @@ public final class BuffInfoOuterClass { } /** - * optional uint64 add_time_ms = 13; + * optional uint64 add_time_ms = 10; * @return whether the addTimeMs field is set */ public boolean hasAddTimeMs() { @@ -75,7 +75,7 @@ public final class BuffInfoOuterClass { } /** - * optional uint64 add_time_ms = 13; + * optional uint64 add_time_ms = 10; * @return this */ public BuffInfo clearAddTimeMs() { @@ -85,7 +85,7 @@ public final class BuffInfoOuterClass { } /** - * optional uint64 add_time_ms = 13; + * optional uint64 add_time_ms = 10; * @return the addTimeMs */ public long getAddTimeMs() { @@ -93,7 +93,7 @@ public final class BuffInfoOuterClass { } /** - * optional uint64 add_time_ms = 13; + * optional uint64 add_time_ms = 10; * @param value the addTimeMs to set * @return this */ @@ -104,7 +104,7 @@ public final class BuffInfoOuterClass { } /** - * optional float life_time = 12; + * optional float life_time = 11; * @return whether the lifeTime field is set */ public boolean hasLifeTime() { @@ -112,7 +112,7 @@ public final class BuffInfoOuterClass { } /** - * optional float life_time = 12; + * optional float life_time = 11; * @return this */ public BuffInfo clearLifeTime() { @@ -122,7 +122,7 @@ public final class BuffInfoOuterClass { } /** - * optional float life_time = 12; + * optional float life_time = 11; * @return the lifeTime */ public float getLifeTime() { @@ -130,7 +130,7 @@ public final class BuffInfoOuterClass { } /** - * optional float life_time = 12; + * optional float life_time = 11; * @param value the lifeTime to set * @return this */ @@ -141,62 +141,25 @@ public final class BuffInfoOuterClass { } /** - * optional uint32 base_avatar_id = 1; - * @return whether the baseAvatarId field is set + * optional uint32 level = 2; + * @return whether the level field is set */ - public boolean hasBaseAvatarId() { + public boolean hasLevel() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 base_avatar_id = 1; - * @return this - */ - public BuffInfo clearBaseAvatarId() { - bitField0_ &= ~0x00000004; - baseAvatarId = 0; - return this; - } - - /** - * optional uint32 base_avatar_id = 1; - * @return the baseAvatarId - */ - public int getBaseAvatarId() { - return baseAvatarId; - } - - /** - * optional uint32 base_avatar_id = 1; - * @param value the baseAvatarId to set - * @return this - */ - public BuffInfo setBaseAvatarId(final int value) { - bitField0_ |= 0x00000004; - baseAvatarId = value; - return this; - } - - /** - * optional uint32 level = 6; - * @return whether the level field is set - */ - public boolean hasLevel() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional uint32 level = 6; + * optional uint32 level = 2; * @return this */ public BuffInfo clearLevel() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000004; level = 0; return this; } /** - * optional uint32 level = 6; + * optional uint32 level = 2; * @return the level */ public int getLevel() { @@ -204,73 +167,73 @@ public final class BuffInfoOuterClass { } /** - * optional uint32 level = 6; + * optional uint32 level = 2; * @param value the level to set * @return this */ public BuffInfo setLevel(final int value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; level = value; return this; } /** - * optional uint32 count = 7; - * @return whether the count field is set + * optional uint32 base_avatar_id = 3; + * @return whether the baseAvatarId field is set */ - public boolean hasCount() { + public boolean hasBaseAvatarId() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 base_avatar_id = 3; + * @return this + */ + public BuffInfo clearBaseAvatarId() { + bitField0_ &= ~0x00000008; + baseAvatarId = 0; + return this; + } + + /** + * optional uint32 base_avatar_id = 3; + * @return the baseAvatarId + */ + public int getBaseAvatarId() { + return baseAvatarId; + } + + /** + * optional uint32 base_avatar_id = 3; + * @param value the baseAvatarId to set + * @return this + */ + public BuffInfo setBaseAvatarId(final int value) { + bitField0_ |= 0x00000008; + baseAvatarId = value; + return this; + } + + /** + * optional uint32 buff_id = 5; + * @return whether the buffId field is set + */ + public boolean hasBuffId() { return (bitField0_ & 0x00000010) != 0; } /** - * optional uint32 count = 7; - * @return this - */ - public BuffInfo clearCount() { - bitField0_ &= ~0x00000010; - count = 0; - return this; - } - - /** - * optional uint32 count = 7; - * @return the count - */ - public int getCount() { - return count; - } - - /** - * optional uint32 count = 7; - * @param value the count to set - * @return this - */ - public BuffInfo setCount(final int value) { - bitField0_ |= 0x00000010; - count = value; - return this; - } - - /** - * optional uint32 buff_id = 15; - * @return whether the buffId field is set - */ - public boolean hasBuffId() { - return (bitField0_ & 0x00000020) != 0; - } - - /** - * optional uint32 buff_id = 15; + * optional uint32 buff_id = 5; * @return this */ public BuffInfo clearBuffId() { - bitField0_ &= ~0x00000020; + bitField0_ &= ~0x00000010; buffId = 0; return this; } /** - * optional uint32 buff_id = 15; + * optional uint32 buff_id = 5; * @return the buffId */ public int getBuffId() { @@ -278,18 +241,55 @@ public final class BuffInfoOuterClass { } /** - * optional uint32 buff_id = 15; + * optional uint32 buff_id = 5; * @param value the buffId to set * @return this */ public BuffInfo setBuffId(final int value) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; buffId = value; return this; } /** - * repeated .BuffInfo.DynamicValuesEntry dynamic_values = 10; + * optional uint32 count = 14; + * @return whether the count field is set + */ + public boolean hasCount() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional uint32 count = 14; + * @return this + */ + public BuffInfo clearCount() { + bitField0_ &= ~0x00000020; + count = 0; + return this; + } + + /** + * optional uint32 count = 14; + * @return the count + */ + public int getCount() { + return count; + } + + /** + * optional uint32 count = 14; + * @param value the count to set + * @return this + */ + public BuffInfo setCount(final int value) { + bitField0_ |= 0x00000020; + count = value; + return this; + } + + /** + * repeated .BuffInfo.DynamicValuesEntry dynamic_values = 4; * @return whether the dynamicValues field is set */ public boolean hasDynamicValues() { @@ -297,7 +297,7 @@ public final class BuffInfoOuterClass { } /** - * repeated .BuffInfo.DynamicValuesEntry dynamic_values = 10; + * repeated .BuffInfo.DynamicValuesEntry dynamic_values = 4; * @return this */ public BuffInfo clearDynamicValues() { @@ -307,7 +307,7 @@ public final class BuffInfoOuterClass { } /** - * repeated .BuffInfo.DynamicValuesEntry dynamic_values = 10; + * repeated .BuffInfo.DynamicValuesEntry dynamic_values = 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. @@ -321,7 +321,7 @@ public final class BuffInfoOuterClass { } /** - * repeated .BuffInfo.DynamicValuesEntry dynamic_values = 10; + * repeated .BuffInfo.DynamicValuesEntry dynamic_values = 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 @@ -335,7 +335,7 @@ public final class BuffInfoOuterClass { } /** - * repeated .BuffInfo.DynamicValuesEntry dynamic_values = 10; + * repeated .BuffInfo.DynamicValuesEntry dynamic_values = 4; * @param value the dynamicValues to add * @return this */ @@ -346,7 +346,7 @@ public final class BuffInfoOuterClass { } /** - * repeated .BuffInfo.DynamicValuesEntry dynamic_values = 10; + * repeated .BuffInfo.DynamicValuesEntry dynamic_values = 4; * @param values the dynamicValues to add * @return this */ @@ -363,10 +363,10 @@ public final class BuffInfoOuterClass { bitField0_ = other.bitField0_; addTimeMs = other.addTimeMs; lifeTime = other.lifeTime; - baseAvatarId = other.baseAvatarId; level = other.level; - count = other.count; + baseAvatarId = other.baseAvatarId; buffId = other.buffId; + count = other.count; dynamicValues.copyFrom(other.dynamicValues); } return this; @@ -384,18 +384,18 @@ public final class BuffInfoOuterClass { if (other.hasLifeTime()) { setLifeTime(other.lifeTime); } - if (other.hasBaseAvatarId()) { - setBaseAvatarId(other.baseAvatarId); - } if (other.hasLevel()) { setLevel(other.level); } - if (other.hasCount()) { - setCount(other.count); + if (other.hasBaseAvatarId()) { + setBaseAvatarId(other.baseAvatarId); } if (other.hasBuffId()) { setBuffId(other.buffId); } + if (other.hasCount()) { + setCount(other.count); + } if (other.hasDynamicValues()) { getMutableDynamicValues().addAll(other.dynamicValues); } @@ -411,10 +411,10 @@ public final class BuffInfoOuterClass { bitField0_ = 0; addTimeMs = 0L; lifeTime = 0F; - baseAvatarId = 0; level = 0; - count = 0; + baseAvatarId = 0; buffId = 0; + count = 0; dynamicValues.clear(); return this; } @@ -442,42 +442,42 @@ public final class BuffInfoOuterClass { return bitField0_ == other.bitField0_ && (!hasAddTimeMs() || addTimeMs == other.addTimeMs) && (!hasLifeTime() || ProtoUtil.isEqual(lifeTime, other.lifeTime)) - && (!hasBaseAvatarId() || baseAvatarId == other.baseAvatarId) && (!hasLevel() || level == other.level) - && (!hasCount() || count == other.count) + && (!hasBaseAvatarId() || baseAvatarId == other.baseAvatarId) && (!hasBuffId() || buffId == other.buffId) + && (!hasCount() || count == other.count) && (!hasDynamicValues() || dynamicValues.equals(other.dynamicValues)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 80); output.writeUInt64NoTag(addTimeMs); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 101); + output.writeRawByte((byte) 93); output.writeFloatNoTag(lifeTime); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(baseAvatarId); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 16); output.writeUInt32NoTag(level); } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(baseAvatarId); + } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 56); - output.writeUInt32NoTag(count); + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(buffId); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 120); - output.writeUInt32NoTag(buffId); + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(count); } if ((bitField0_ & 0x00000040) != 0) { for (int i = 0; i < dynamicValues.length(); i++) { - output.writeRawByte((byte) 82); + output.writeRawByte((byte) 34); output.writeMessageNoTag(dynamicValues.get(i)); } } @@ -493,16 +493,16 @@ public final class BuffInfoOuterClass { size += 5; } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); - } - if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(level); } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); + } if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(count); + size += 1 + ProtoSink.computeUInt32SizeNoTag(buffId); } if ((bitField0_ & 0x00000020) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(buffId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(count); } if ((bitField0_ & 0x00000040) != 0) { size += (1 * dynamicValues.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(dynamicValues); @@ -517,61 +517,61 @@ public final class BuffInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 104: { + case 80: { // addTimeMs addTimeMs = input.readUInt64(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 101) { + if (tag != 93) { break; } } - case 101: { + case 93: { // lifeTime lifeTime = input.readFloat(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 8) { + if (tag != 16) { break; } } - case 8: { - // baseAvatarId - baseAvatarId = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 48) { - break; - } - } - case 48: { + case 16: { // level level = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // baseAvatarId + baseAvatarId = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 56) { + if (tag != 40) { break; } } - case 56: { - // count - count = input.readUInt32(); - bitField0_ |= 0x00000010; - tag = input.readTag(); - if (tag != 120) { - break; - } - } - case 120: { + case 40: { // buffId buffId = input.readUInt32(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; tag = input.readTag(); - if (tag != 82) { + if (tag != 112) { break; } } - case 82: { + case 112: { + // count + count = input.readUInt32(); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { // dynamicValues tag = input.readRepeatedMessage(dynamicValues, tag); bitField0_ |= 0x00000040; @@ -603,16 +603,16 @@ public final class BuffInfoOuterClass { output.writeFloat(FieldNames.lifeTime, lifeTime); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.baseAvatarId, baseAvatarId); - } - if ((bitField0_ & 0x00000008) != 0) { output.writeUInt32(FieldNames.level, level); } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.baseAvatarId, baseAvatarId); + } if ((bitField0_ & 0x00000010) != 0) { - output.writeUInt32(FieldNames.count, count); + output.writeUInt32(FieldNames.buffId, buffId); } if ((bitField0_ & 0x00000020) != 0) { - output.writeUInt32(FieldNames.buffId, buffId); + output.writeUInt32(FieldNames.count, count); } if ((bitField0_ & 0x00000040) != 0) { output.writeRepeatedMessage(FieldNames.dynamicValues, dynamicValues); @@ -651,11 +651,10 @@ public final class BuffInfoOuterClass { } break; } - case 118022725: - case -1756826157: { - if (input.isAtField(FieldNames.baseAvatarId)) { + case 102865796: { + if (input.isAtField(FieldNames.level)) { if (!input.trySkipNullValue()) { - baseAvatarId = input.readUInt32(); + level = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -663,10 +662,11 @@ public final class BuffInfoOuterClass { } break; } - case 102865796: { - if (input.isAtField(FieldNames.level)) { + case 118022725: + case -1756826157: { + if (input.isAtField(FieldNames.baseAvatarId)) { if (!input.trySkipNullValue()) { - level = input.readUInt32(); + baseAvatarId = input.readUInt32(); bitField0_ |= 0x00000008; } } else { @@ -674,22 +674,22 @@ public final class BuffInfoOuterClass { } break; } - case 94851343: { - if (input.isAtField(FieldNames.count)) { - if (!input.trySkipNullValue()) { - count = input.readUInt32(); - bitField0_ |= 0x00000010; - } - } else { - input.skipUnknownField(); - } - break; - } case -1378119474: case 227990663: { if (input.isAtField(FieldNames.buffId)) { if (!input.trySkipNullValue()) { buffId = input.readUInt32(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case 94851343: { + if (input.isAtField(FieldNames.count)) { + if (!input.trySkipNullValue()) { + count = input.readUInt32(); bitField0_ |= 0x00000020; } } else { @@ -1119,14 +1119,14 @@ public final class BuffInfoOuterClass { static final FieldName lifeTime = FieldName.forField("lifeTime", "life_time"); - 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 baseAvatarId = FieldName.forField("baseAvatarId", "base_avatar_id"); static final FieldName buffId = FieldName.forField("buffId", "buff_id"); + static final FieldName count = FieldName.forField("count"); + 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 10c0261..151b266 100644 --- a/src/generated/main/emu/lunarcore/proto/BuyGoodsCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/BuyGoodsCsReqOuterClass.java @@ -19,9 +19,9 @@ public final class BuyGoodsCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 item_id = 5; + * optional uint32 shop_id = 5; */ - private int itemId; + private int shopId; /** * optional uint32 goods_id = 7; @@ -29,14 +29,14 @@ public final class BuyGoodsCsReqOuterClass { private int goodsId; /** - * optional uint32 goods_num = 9; + * optional uint32 goods_num = 10; */ private int goodsNum; /** - * optional uint32 shop_id = 12; + * optional uint32 item_id = 15; */ - private int shopId; + private int itemId; private BuyGoodsCsReq() { } @@ -49,39 +49,39 @@ public final class BuyGoodsCsReqOuterClass { } /** - * optional uint32 item_id = 5; - * @return whether the itemId field is set + * optional uint32 shop_id = 5; + * @return whether the shopId field is set */ - public boolean hasItemId() { + public boolean hasShopId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 item_id = 5; + * optional uint32 shop_id = 5; * @return this */ - public BuyGoodsCsReq clearItemId() { + public BuyGoodsCsReq clearShopId() { bitField0_ &= ~0x00000001; - itemId = 0; + shopId = 0; return this; } /** - * optional uint32 item_id = 5; - * @return the itemId + * optional uint32 shop_id = 5; + * @return the shopId */ - public int getItemId() { - return itemId; + public int getShopId() { + return shopId; } /** - * optional uint32 item_id = 5; - * @param value the itemId to set + * optional uint32 shop_id = 5; + * @param value the shopId to set * @return this */ - public BuyGoodsCsReq setItemId(final int value) { + public BuyGoodsCsReq setShopId(final int value) { bitField0_ |= 0x00000001; - itemId = value; + shopId = value; return this; } @@ -123,7 +123,7 @@ public final class BuyGoodsCsReqOuterClass { } /** - * optional uint32 goods_num = 9; + * optional uint32 goods_num = 10; * @return whether the goodsNum field is set */ public boolean hasGoodsNum() { @@ -131,7 +131,7 @@ public final class BuyGoodsCsReqOuterClass { } /** - * optional uint32 goods_num = 9; + * optional uint32 goods_num = 10; * @return this */ public BuyGoodsCsReq clearGoodsNum() { @@ -141,7 +141,7 @@ public final class BuyGoodsCsReqOuterClass { } /** - * optional uint32 goods_num = 9; + * optional uint32 goods_num = 10; * @return the goodsNum */ public int getGoodsNum() { @@ -149,7 +149,7 @@ public final class BuyGoodsCsReqOuterClass { } /** - * optional uint32 goods_num = 9; + * optional uint32 goods_num = 10; * @param value the goodsNum to set * @return this */ @@ -160,39 +160,39 @@ public final class BuyGoodsCsReqOuterClass { } /** - * optional uint32 shop_id = 12; - * @return whether the shopId field is set + * optional uint32 item_id = 15; + * @return whether the itemId field is set */ - public boolean hasShopId() { + public boolean hasItemId() { return (bitField0_ & 0x00000008) != 0; } /** - * optional uint32 shop_id = 12; + * optional uint32 item_id = 15; * @return this */ - public BuyGoodsCsReq clearShopId() { + public BuyGoodsCsReq clearItemId() { bitField0_ &= ~0x00000008; - shopId = 0; + itemId = 0; return this; } /** - * optional uint32 shop_id = 12; - * @return the shopId + * optional uint32 item_id = 15; + * @return the itemId */ - public int getShopId() { - return shopId; + public int getItemId() { + return itemId; } /** - * optional uint32 shop_id = 12; - * @param value the shopId to set + * optional uint32 item_id = 15; + * @param value the itemId to set * @return this */ - public BuyGoodsCsReq setShopId(final int value) { + public BuyGoodsCsReq setItemId(final int value) { bitField0_ |= 0x00000008; - shopId = value; + itemId = value; return this; } @@ -201,10 +201,10 @@ public final class BuyGoodsCsReqOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - itemId = other.itemId; + shopId = other.shopId; goodsId = other.goodsId; goodsNum = other.goodsNum; - shopId = other.shopId; + itemId = other.itemId; } return this; } @@ -215,8 +215,8 @@ public final class BuyGoodsCsReqOuterClass { return this; } cachedSize = -1; - if (other.hasItemId()) { - setItemId(other.itemId); + if (other.hasShopId()) { + setShopId(other.shopId); } if (other.hasGoodsId()) { setGoodsId(other.goodsId); @@ -224,8 +224,8 @@ public final class BuyGoodsCsReqOuterClass { if (other.hasGoodsNum()) { setGoodsNum(other.goodsNum); } - if (other.hasShopId()) { - setShopId(other.shopId); + if (other.hasItemId()) { + setItemId(other.itemId); } return this; } @@ -237,10 +237,10 @@ public final class BuyGoodsCsReqOuterClass { } cachedSize = -1; bitField0_ = 0; - itemId = 0; + shopId = 0; goodsId = 0; goodsNum = 0; - shopId = 0; + itemId = 0; return this; } @@ -264,29 +264,29 @@ public final class BuyGoodsCsReqOuterClass { } BuyGoodsCsReq other = (BuyGoodsCsReq) o; return bitField0_ == other.bitField0_ - && (!hasItemId() || itemId == other.itemId) + && (!hasShopId() || shopId == other.shopId) && (!hasGoodsId() || goodsId == other.goodsId) && (!hasGoodsNum() || goodsNum == other.goodsNum) - && (!hasShopId() || shopId == other.shopId); + && (!hasItemId() || itemId == other.itemId); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { output.writeRawByte((byte) 40); - output.writeUInt32NoTag(itemId); + output.writeUInt32NoTag(shopId); } if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 56); output.writeUInt32NoTag(goodsId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 72); + output.writeRawByte((byte) 80); output.writeUInt32NoTag(goodsNum); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 96); - output.writeUInt32NoTag(shopId); + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(itemId); } } @@ -294,7 +294,7 @@ public final class BuyGoodsCsReqOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(itemId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(shopId); } if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(goodsId); @@ -303,7 +303,7 @@ public final class BuyGoodsCsReqOuterClass { size += 1 + ProtoSink.computeUInt32SizeNoTag(goodsNum); } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(shopId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(itemId); } return size; } @@ -316,8 +316,8 @@ public final class BuyGoodsCsReqOuterClass { while (true) { switch (tag) { case 40: { - // itemId - itemId = input.readUInt32(); + // shopId + shopId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 56) { @@ -329,22 +329,22 @@ public final class BuyGoodsCsReqOuterClass { goodsId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 72) { + if (tag != 80) { break; } } - case 72: { + case 80: { // goodsNum goodsNum = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 96) { + if (tag != 120) { break; } } - case 96: { - // shopId - shopId = input.readUInt32(); + case 120: { + // itemId + itemId = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 0) { @@ -369,7 +369,7 @@ public final class BuyGoodsCsReqOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.itemId, itemId); + output.writeUInt32(FieldNames.shopId, shopId); } if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.goodsId, goodsId); @@ -378,7 +378,7 @@ public final class BuyGoodsCsReqOuterClass { output.writeUInt32(FieldNames.goodsNum, goodsNum); } if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.shopId, shopId); + output.writeUInt32(FieldNames.itemId, itemId); } output.endObject(); } @@ -390,11 +390,11 @@ public final class BuyGoodsCsReqOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -1178662002: - case 2116204999: { - if (input.isAtField(FieldNames.itemId)) { + case -903151951: + case 2067081988: { + if (input.isAtField(FieldNames.shopId)) { if (!input.trySkipNullValue()) { - itemId = input.readUInt32(); + shopId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -426,11 +426,11 @@ public final class BuyGoodsCsReqOuterClass { } break; } - case -903151951: - case 2067081988: { - if (input.isAtField(FieldNames.shopId)) { + case -1178662002: + case 2116204999: { + if (input.isAtField(FieldNames.itemId)) { if (!input.trySkipNullValue()) { - shopId = input.readUInt32(); + itemId = input.readUInt32(); bitField0_ |= 0x00000008; } } else { @@ -490,13 +490,13 @@ public final class BuyGoodsCsReqOuterClass { * Contains name constants used for serializing JSON */ 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 shopId = FieldName.forField("shopId", "shop_id"); + static final FieldName itemId = FieldName.forField("itemId", "item_id"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/BuyGoodsScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/BuyGoodsScRspOuterClass.java index 72773dc..d7dea53 100644 --- a/src/generated/main/emu/lunarcore/proto/BuyGoodsScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/BuyGoodsScRspOuterClass.java @@ -19,27 +19,27 @@ public final class BuyGoodsScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 goods_id = 1; - */ - private int goodsId; - - /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 3; */ private int retcode; /** - * optional uint32 goods_buy_times = 10; + * optional uint32 goods_buy_times = 8; */ private int goodsBuyTimes; /** - * optional uint32 shop_id = 14; + * optional uint32 goods_id = 14; + */ + private int goodsId; + + /** + * optional uint32 shop_id = 15; */ private int shopId; /** - * optional .ItemList return_item_list = 9; + * optional .ItemList return_item_list = 4; */ private final ItemListOuterClass.ItemList returnItemList = ItemListOuterClass.ItemList.newInstance(); @@ -54,62 +54,25 @@ public final class BuyGoodsScRspOuterClass { } /** - * optional uint32 goods_id = 1; - * @return whether the goodsId field is set + * optional uint32 retcode = 3; + * @return whether the retcode field is set */ - public boolean hasGoodsId() { + public boolean hasRetcode() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 goods_id = 1; - * @return this - */ - public BuyGoodsScRsp clearGoodsId() { - bitField0_ &= ~0x00000001; - goodsId = 0; - return this; - } - - /** - * optional uint32 goods_id = 1; - * @return the goodsId - */ - public int getGoodsId() { - return goodsId; - } - - /** - * optional uint32 goods_id = 1; - * @param value the goodsId to set - * @return this - */ - public BuyGoodsScRsp setGoodsId(final int value) { - bitField0_ |= 0x00000001; - goodsId = value; - return this; - } - - /** - * optional uint32 retcode = 5; - * @return whether the retcode field is set - */ - public boolean hasRetcode() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 3; * @return this */ public BuyGoodsScRsp clearRetcode() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; retcode = 0; return this; } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 3; * @return the retcode */ public int getRetcode() { @@ -117,36 +80,36 @@ public final class BuyGoodsScRspOuterClass { } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 3; * @param value the retcode to set * @return this */ public BuyGoodsScRsp setRetcode(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; retcode = value; return this; } /** - * optional uint32 goods_buy_times = 10; + * optional uint32 goods_buy_times = 8; * @return whether the goodsBuyTimes field is set */ public boolean hasGoodsBuyTimes() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 goods_buy_times = 10; + * optional uint32 goods_buy_times = 8; * @return this */ public BuyGoodsScRsp clearGoodsBuyTimes() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; goodsBuyTimes = 0; return this; } /** - * optional uint32 goods_buy_times = 10; + * optional uint32 goods_buy_times = 8; * @return the goodsBuyTimes */ public int getGoodsBuyTimes() { @@ -154,18 +117,55 @@ public final class BuyGoodsScRspOuterClass { } /** - * optional uint32 goods_buy_times = 10; + * optional uint32 goods_buy_times = 8; * @param value the goodsBuyTimes to set * @return this */ public BuyGoodsScRsp setGoodsBuyTimes(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; goodsBuyTimes = value; return this; } /** - * optional uint32 shop_id = 14; + * optional uint32 goods_id = 14; + * @return whether the goodsId field is set + */ + public boolean hasGoodsId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 goods_id = 14; + * @return this + */ + public BuyGoodsScRsp clearGoodsId() { + bitField0_ &= ~0x00000004; + goodsId = 0; + return this; + } + + /** + * optional uint32 goods_id = 14; + * @return the goodsId + */ + public int getGoodsId() { + return goodsId; + } + + /** + * optional uint32 goods_id = 14; + * @param value the goodsId to set + * @return this + */ + public BuyGoodsScRsp setGoodsId(final int value) { + bitField0_ |= 0x00000004; + goodsId = value; + return this; + } + + /** + * optional uint32 shop_id = 15; * @return whether the shopId field is set */ public boolean hasShopId() { @@ -173,7 +173,7 @@ public final class BuyGoodsScRspOuterClass { } /** - * optional uint32 shop_id = 14; + * optional uint32 shop_id = 15; * @return this */ public BuyGoodsScRsp clearShopId() { @@ -183,7 +183,7 @@ public final class BuyGoodsScRspOuterClass { } /** - * optional uint32 shop_id = 14; + * optional uint32 shop_id = 15; * @return the shopId */ public int getShopId() { @@ -191,7 +191,7 @@ public final class BuyGoodsScRspOuterClass { } /** - * optional uint32 shop_id = 14; + * optional uint32 shop_id = 15; * @param value the shopId to set * @return this */ @@ -202,7 +202,7 @@ public final class BuyGoodsScRspOuterClass { } /** - * optional .ItemList return_item_list = 9; + * optional .ItemList return_item_list = 4; * @return whether the returnItemList field is set */ public boolean hasReturnItemList() { @@ -210,7 +210,7 @@ public final class BuyGoodsScRspOuterClass { } /** - * optional .ItemList return_item_list = 9; + * optional .ItemList return_item_list = 4; * @return this */ public BuyGoodsScRsp clearReturnItemList() { @@ -220,7 +220,7 @@ public final class BuyGoodsScRspOuterClass { } /** - * optional .ItemList return_item_list = 9; + * optional .ItemList 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. @@ -234,7 +234,7 @@ public final class BuyGoodsScRspOuterClass { } /** - * optional .ItemList return_item_list = 9; + * optional .ItemList 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 @@ -248,7 +248,7 @@ public final class BuyGoodsScRspOuterClass { } /** - * optional .ItemList return_item_list = 9; + * optional .ItemList return_item_list = 4; * @param value the returnItemList to set * @return this */ @@ -263,9 +263,9 @@ public final class BuyGoodsScRspOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - goodsId = other.goodsId; retcode = other.retcode; goodsBuyTimes = other.goodsBuyTimes; + goodsId = other.goodsId; shopId = other.shopId; returnItemList.copyFrom(other.returnItemList); } @@ -278,15 +278,15 @@ public final class BuyGoodsScRspOuterClass { return this; } cachedSize = -1; - if (other.hasGoodsId()) { - setGoodsId(other.goodsId); - } if (other.hasRetcode()) { setRetcode(other.retcode); } if (other.hasGoodsBuyTimes()) { setGoodsBuyTimes(other.goodsBuyTimes); } + if (other.hasGoodsId()) { + setGoodsId(other.goodsId); + } if (other.hasShopId()) { setShopId(other.shopId); } @@ -303,9 +303,9 @@ public final class BuyGoodsScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - goodsId = 0; retcode = 0; goodsBuyTimes = 0; + goodsId = 0; shopId = 0; returnItemList.clear(); return this; @@ -332,9 +332,9 @@ public final class BuyGoodsScRspOuterClass { } BuyGoodsScRsp other = (BuyGoodsScRsp) o; return bitField0_ == other.bitField0_ - && (!hasGoodsId() || goodsId == other.goodsId) && (!hasRetcode() || retcode == other.retcode) && (!hasGoodsBuyTimes() || goodsBuyTimes == other.goodsBuyTimes) + && (!hasGoodsId() || goodsId == other.goodsId) && (!hasShopId() || shopId == other.shopId) && (!hasReturnItemList() || returnItemList.equals(other.returnItemList)); } @@ -342,23 +342,23 @@ public final class BuyGoodsScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(goodsId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 24); output.writeUInt32NoTag(retcode); } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 80); + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 64); output.writeUInt32NoTag(goodsBuyTimes); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000004) != 0) { output.writeRawByte((byte) 112); + output.writeUInt32NoTag(goodsId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 120); output.writeUInt32NoTag(shopId); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 74); + output.writeRawByte((byte) 34); output.writeMessageNoTag(returnItemList); } } @@ -367,14 +367,14 @@ public final class BuyGoodsScRspOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(goodsId); - } - if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(goodsBuyTimes); } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(goodsId); + } if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(shopId); } @@ -391,43 +391,43 @@ public final class BuyGoodsScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 8: { - // goodsId - goodsId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 40) { - break; - } - } - case 40: { + case 24: { // retcode retcode = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 80) { + if (tag != 64) { break; } } - case 80: { + case 64: { // goodsBuyTimes goodsBuyTimes = input.readUInt32(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 112) { break; } } case 112: { + // goodsId + goodsId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { // shopId shopId = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 74) { + if (tag != 34) { break; } } - case 74: { + case 34: { // returnItemList input.readMessage(returnItemList); bitField0_ |= 0x00000010; @@ -454,14 +454,14 @@ public final class BuyGoodsScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.goodsId, goodsId); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.retcode, retcode); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.goodsBuyTimes, goodsBuyTimes); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.goodsId, goodsId); + } if ((bitField0_ & 0x00000008) != 0) { output.writeUInt32(FieldNames.shopId, shopId); } @@ -478,23 +478,11 @@ public final class BuyGoodsScRspOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 207037201: - case 2123207332: { - if (input.isAtField(FieldNames.goodsId)) { - if (!input.trySkipNullValue()) { - goodsId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } case 1097936398: { if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { retcode = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } else { input.skipUnknownField(); @@ -506,6 +494,18 @@ public final class BuyGoodsScRspOuterClass { if (input.isAtField(FieldNames.goodsBuyTimes)) { if (!input.trySkipNullValue()) { goodsBuyTimes = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 207037201: + case 2123207332: { + if (input.isAtField(FieldNames.goodsId)) { + if (!input.trySkipNullValue()) { + goodsId = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -589,12 +589,12 @@ public final class BuyGoodsScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName goodsId = FieldName.forField("goodsId", "goods_id"); - static final FieldName retcode = FieldName.forField("retcode"); static final FieldName goodsBuyTimes = FieldName.forField("goodsBuyTimes", "goods_buy_times"); + static final FieldName goodsId = FieldName.forField("goodsId", "goods_id"); + static final FieldName shopId = FieldName.forField("shopId", "shop_id"); static final FieldName returnItemList = FieldName.forField("returnItemList", "return_item_list"); diff --git a/src/generated/main/emu/lunarcore/proto/ChallengeInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChallengeInfoOuterClass.java index 6c79e65..0455a6b 100644 --- a/src/generated/main/emu/lunarcore/proto/ChallengeInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ChallengeInfoOuterClass.java @@ -19,37 +19,37 @@ public final class ChallengeInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 challenge_id = 1; - */ - private int challengeId; - - /** - * optional uint32 round_count = 2; - */ - private int roundCount; - - /** - * optional uint32 score = 8; - */ - private int score; - - /** - * optional uint32 score_two = 10; + * optional uint32 score_two = 2; */ private int scoreTwo; /** - * optional .ChallengeStatus status = 6; + * optional uint32 round_count = 5; */ - private int status; + private int roundCount; /** - * optional .ExtraLineupType extra_lineup_type = 15; + * optional uint32 score = 9; + */ + private int score; + + /** + * optional uint32 challenge_id = 14; + */ + private int challengeId; + + /** + * optional .ExtraLineupType extra_lineup_type = 4; */ private int extraLineupType; /** - * optional .ChallengeStoryInfo story_info = 13; + * optional .ChallengeStatus status = 10; + */ + private int status; + + /** + * optional .ChallengeStoryInfo story_info = 6; */ private final ChallengeStoryInfoOuterClass.ChallengeStoryInfo storyInfo = ChallengeStoryInfoOuterClass.ChallengeStoryInfo.newInstance(); @@ -64,44 +64,44 @@ public final class ChallengeInfoOuterClass { } /** - * optional uint32 challenge_id = 1; - * @return whether the challengeId field is set + * optional uint32 score_two = 2; + * @return whether the scoreTwo field is set */ - public boolean hasChallengeId() { + public boolean hasScoreTwo() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 challenge_id = 1; + * optional uint32 score_two = 2; * @return this */ - public ChallengeInfo clearChallengeId() { + public ChallengeInfo clearScoreTwo() { bitField0_ &= ~0x00000001; - challengeId = 0; + scoreTwo = 0; return this; } /** - * optional uint32 challenge_id = 1; - * @return the challengeId + * optional uint32 score_two = 2; + * @return the scoreTwo */ - public int getChallengeId() { - return challengeId; + public int getScoreTwo() { + return scoreTwo; } /** - * optional uint32 challenge_id = 1; - * @param value the challengeId to set + * optional uint32 score_two = 2; + * @param value the scoreTwo to set * @return this */ - public ChallengeInfo setChallengeId(final int value) { + public ChallengeInfo setScoreTwo(final int value) { bitField0_ |= 0x00000001; - challengeId = value; + scoreTwo = value; return this; } /** - * optional uint32 round_count = 2; + * optional uint32 round_count = 5; * @return whether the roundCount field is set */ public boolean hasRoundCount() { @@ -109,7 +109,7 @@ public final class ChallengeInfoOuterClass { } /** - * optional uint32 round_count = 2; + * optional uint32 round_count = 5; * @return this */ public ChallengeInfo clearRoundCount() { @@ -119,7 +119,7 @@ public final class ChallengeInfoOuterClass { } /** - * optional uint32 round_count = 2; + * optional uint32 round_count = 5; * @return the roundCount */ public int getRoundCount() { @@ -127,7 +127,7 @@ public final class ChallengeInfoOuterClass { } /** - * optional uint32 round_count = 2; + * optional uint32 round_count = 5; * @param value the roundCount to set * @return this */ @@ -138,7 +138,7 @@ public final class ChallengeInfoOuterClass { } /** - * optional uint32 score = 8; + * optional uint32 score = 9; * @return whether the score field is set */ public boolean hasScore() { @@ -146,7 +146,7 @@ public final class ChallengeInfoOuterClass { } /** - * optional uint32 score = 8; + * optional uint32 score = 9; * @return this */ public ChallengeInfo clearScore() { @@ -156,7 +156,7 @@ public final class ChallengeInfoOuterClass { } /** - * optional uint32 score = 8; + * optional uint32 score = 9; * @return the score */ public int getScore() { @@ -164,7 +164,7 @@ public final class ChallengeInfoOuterClass { } /** - * optional uint32 score = 8; + * optional uint32 score = 9; * @param value the score to set * @return this */ @@ -175,124 +175,62 @@ public final class ChallengeInfoOuterClass { } /** - * optional uint32 score_two = 10; - * @return whether the scoreTwo field is set + * optional uint32 challenge_id = 14; + * @return whether the challengeId field is set */ - public boolean hasScoreTwo() { + public boolean hasChallengeId() { return (bitField0_ & 0x00000008) != 0; } /** - * optional uint32 score_two = 10; + * optional uint32 challenge_id = 14; * @return this */ - public ChallengeInfo clearScoreTwo() { + public ChallengeInfo clearChallengeId() { bitField0_ &= ~0x00000008; - scoreTwo = 0; + challengeId = 0; return this; } /** - * optional uint32 score_two = 10; - * @return the scoreTwo + * optional uint32 challenge_id = 14; + * @return the challengeId */ - public int getScoreTwo() { - return scoreTwo; + public int getChallengeId() { + return challengeId; } /** - * optional uint32 score_two = 10; - * @param value the scoreTwo to set + * optional uint32 challenge_id = 14; + * @param value the challengeId to set * @return this */ - public ChallengeInfo setScoreTwo(final int value) { + public ChallengeInfo setChallengeId(final int value) { bitField0_ |= 0x00000008; - scoreTwo = value; + challengeId = value; return this; } /** - * optional .ChallengeStatus status = 6; - * @return whether the status field is set + * optional .ExtraLineupType extra_lineup_type = 4; + * @return whether the extraLineupType field is set */ - public boolean hasStatus() { + public boolean hasExtraLineupType() { return (bitField0_ & 0x00000010) != 0; } /** - * optional .ChallengeStatus status = 6; - * @return this - */ - public ChallengeInfo clearStatus() { - bitField0_ &= ~0x00000010; - status = 0; - return this; - } - - /** - * optional .ChallengeStatus status = 6; - * @return the status - */ - public ChallengeStatusOuterClass.ChallengeStatus getStatus() { - return ChallengeStatusOuterClass.ChallengeStatus.forNumber(status); - } - - /** - * Gets the value of the internal enum store. The result is - * equivalent to {@link ChallengeInfo#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 ChallengeStatusOuterClass.ChallengeStatus}. Setting an invalid value - * can cause {@link ChallengeInfo#getStatus()} to return null - * - * @param value the numeric wire value to set - * @return this - */ - public ChallengeInfo setStatusValue(final int value) { - bitField0_ |= 0x00000010; - status = value; - return this; - } - - /** - * optional .ChallengeStatus status = 6; - * @param value the status to set - * @return this - */ - public ChallengeInfo setStatus(final ChallengeStatusOuterClass.ChallengeStatus value) { - bitField0_ |= 0x00000010; - status = value.getNumber(); - return this; - } - - /** - * optional .ExtraLineupType extra_lineup_type = 15; - * @return whether the extraLineupType field is set - */ - public boolean hasExtraLineupType() { - return (bitField0_ & 0x00000020) != 0; - } - - /** - * optional .ExtraLineupType extra_lineup_type = 15; + * optional .ExtraLineupType extra_lineup_type = 4; * @return this */ public ChallengeInfo clearExtraLineupType() { - bitField0_ &= ~0x00000020; + bitField0_ &= ~0x00000010; extraLineupType = 0; return this; } /** - * optional .ExtraLineupType extra_lineup_type = 15; + * optional .ExtraLineupType extra_lineup_type = 4; * @return the extraLineupType */ public ExtraLineupTypeOuterClass.ExtraLineupType getExtraLineupType() { @@ -319,24 +257,86 @@ public final class ChallengeInfoOuterClass { * @return this */ public ChallengeInfo setExtraLineupTypeValue(final int value) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; extraLineupType = value; return this; } /** - * optional .ExtraLineupType extra_lineup_type = 15; + * optional .ExtraLineupType extra_lineup_type = 4; * @param value the extraLineupType to set * @return this */ public ChallengeInfo setExtraLineupType(final ExtraLineupTypeOuterClass.ExtraLineupType value) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; extraLineupType = value.getNumber(); return this; } /** - * optional .ChallengeStoryInfo story_info = 13; + * optional .ChallengeStatus status = 10; + * @return whether the status field is set + */ + public boolean hasStatus() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional .ChallengeStatus status = 10; + * @return this + */ + public ChallengeInfo clearStatus() { + bitField0_ &= ~0x00000020; + status = 0; + return this; + } + + /** + * optional .ChallengeStatus status = 10; + * @return the status + */ + public ChallengeStatusOuterClass.ChallengeStatus getStatus() { + return ChallengeStatusOuterClass.ChallengeStatus.forNumber(status); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link ChallengeInfo#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 ChallengeStatusOuterClass.ChallengeStatus}. Setting an invalid value + * can cause {@link ChallengeInfo#getStatus()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public ChallengeInfo setStatusValue(final int value) { + bitField0_ |= 0x00000020; + status = value; + return this; + } + + /** + * optional .ChallengeStatus status = 10; + * @param value the status to set + * @return this + */ + public ChallengeInfo setStatus(final ChallengeStatusOuterClass.ChallengeStatus value) { + bitField0_ |= 0x00000020; + status = value.getNumber(); + return this; + } + + /** + * optional .ChallengeStoryInfo story_info = 6; * @return whether the storyInfo field is set */ public boolean hasStoryInfo() { @@ -344,7 +344,7 @@ public final class ChallengeInfoOuterClass { } /** - * optional .ChallengeStoryInfo story_info = 13; + * optional .ChallengeStoryInfo story_info = 6; * @return this */ public ChallengeInfo clearStoryInfo() { @@ -354,7 +354,7 @@ public final class ChallengeInfoOuterClass { } /** - * optional .ChallengeStoryInfo story_info = 13; + * optional .ChallengeStoryInfo story_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. @@ -368,7 +368,7 @@ public final class ChallengeInfoOuterClass { } /** - * optional .ChallengeStoryInfo story_info = 13; + * optional .ChallengeStoryInfo story_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 @@ -382,7 +382,7 @@ public final class ChallengeInfoOuterClass { } /** - * optional .ChallengeStoryInfo story_info = 13; + * optional .ChallengeStoryInfo story_info = 6; * @param value the storyInfo to set * @return this */ @@ -397,12 +397,12 @@ public final class ChallengeInfoOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - challengeId = other.challengeId; + scoreTwo = other.scoreTwo; roundCount = other.roundCount; score = other.score; - scoreTwo = other.scoreTwo; - status = other.status; + challengeId = other.challengeId; extraLineupType = other.extraLineupType; + status = other.status; storyInfo.copyFrom(other.storyInfo); } return this; @@ -414,8 +414,8 @@ public final class ChallengeInfoOuterClass { return this; } cachedSize = -1; - if (other.hasChallengeId()) { - setChallengeId(other.challengeId); + if (other.hasScoreTwo()) { + setScoreTwo(other.scoreTwo); } if (other.hasRoundCount()) { setRoundCount(other.roundCount); @@ -423,15 +423,15 @@ public final class ChallengeInfoOuterClass { if (other.hasScore()) { setScore(other.score); } - if (other.hasScoreTwo()) { - setScoreTwo(other.scoreTwo); - } - if (other.hasStatus()) { - setStatusValue(other.status); + if (other.hasChallengeId()) { + setChallengeId(other.challengeId); } if (other.hasExtraLineupType()) { setExtraLineupTypeValue(other.extraLineupType); } + if (other.hasStatus()) { + setStatusValue(other.status); + } if (other.hasStoryInfo()) { getMutableStoryInfo().mergeFrom(other.storyInfo); } @@ -445,12 +445,12 @@ public final class ChallengeInfoOuterClass { } cachedSize = -1; bitField0_ = 0; - challengeId = 0; + scoreTwo = 0; roundCount = 0; score = 0; - scoreTwo = 0; - status = 0; + challengeId = 0; extraLineupType = 0; + status = 0; storyInfo.clear(); return this; } @@ -476,43 +476,43 @@ public final class ChallengeInfoOuterClass { } ChallengeInfo other = (ChallengeInfo) o; return bitField0_ == other.bitField0_ - && (!hasChallengeId() || challengeId == other.challengeId) + && (!hasScoreTwo() || scoreTwo == other.scoreTwo) && (!hasRoundCount() || roundCount == other.roundCount) && (!hasScore() || score == other.score) - && (!hasScoreTwo() || scoreTwo == other.scoreTwo) - && (!hasStatus() || status == other.status) + && (!hasChallengeId() || challengeId == other.challengeId) && (!hasExtraLineupType() || extraLineupType == other.extraLineupType) + && (!hasStatus() || status == other.status) && (!hasStoryInfo() || storyInfo.equals(other.storyInfo)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(challengeId); + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(scoreTwo); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 16); + output.writeRawByte((byte) 40); output.writeUInt32NoTag(roundCount); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 72); output.writeUInt32NoTag(score); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 80); - output.writeUInt32NoTag(scoreTwo); + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(challengeId); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 48); - output.writeEnumNoTag(status); - } - if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 32); output.writeEnumNoTag(extraLineupType); } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 80); + output.writeEnumNoTag(status); + } if ((bitField0_ & 0x00000040) != 0) { - output.writeRawByte((byte) 106); + output.writeRawByte((byte) 50); output.writeMessageNoTag(storyInfo); } } @@ -521,7 +521,7 @@ public final class ChallengeInfoOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(challengeId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(scoreTwo); } if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(roundCount); @@ -530,13 +530,13 @@ public final class ChallengeInfoOuterClass { size += 1 + ProtoSink.computeUInt32SizeNoTag(score); } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(scoreTwo); + size += 1 + ProtoSink.computeUInt32SizeNoTag(challengeId); } if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeEnumSizeNoTag(status); + size += 1 + ProtoSink.computeEnumSizeNoTag(extraLineupType); } if ((bitField0_ & 0x00000020) != 0) { - size += 1 + ProtoSink.computeEnumSizeNoTag(extraLineupType); + size += 1 + ProtoSink.computeEnumSizeNoTag(status); } if ((bitField0_ & 0x00000040) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(storyInfo); @@ -551,67 +551,67 @@ public final class ChallengeInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 8: { - // challengeId - challengeId = input.readUInt32(); + case 16: { + // scoreTwo + scoreTwo = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 16) { + if (tag != 40) { break; } } - case 16: { + case 40: { // roundCount roundCount = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 64) { + if (tag != 72) { break; } } - case 64: { + case 72: { // score score = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // challengeId + challengeId = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // extraLineupType + final int value = input.readInt32(); + if (ExtraLineupTypeOuterClass.ExtraLineupType.forNumber(value) != null) { + extraLineupType = value; + bitField0_ |= 0x00000010; + } + tag = input.readTag(); if (tag != 80) { break; } } case 80: { - // scoreTwo - scoreTwo = input.readUInt32(); - bitField0_ |= 0x00000008; - tag = input.readTag(); - if (tag != 48) { - break; - } - } - case 48: { // status final int value = input.readInt32(); if (ChallengeStatusOuterClass.ChallengeStatus.forNumber(value) != null) { status = value; - bitField0_ |= 0x00000010; - } - tag = input.readTag(); - if (tag != 120) { - break; - } - } - case 120: { - // extraLineupType - final int value = input.readInt32(); - if (ExtraLineupTypeOuterClass.ExtraLineupType.forNumber(value) != null) { - extraLineupType = value; bitField0_ |= 0x00000020; } tag = input.readTag(); - if (tag != 106) { + if (tag != 50) { break; } } - case 106: { + case 50: { // storyInfo input.readMessage(storyInfo); bitField0_ |= 0x00000040; @@ -638,7 +638,7 @@ public final class ChallengeInfoOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.challengeId, challengeId); + output.writeUInt32(FieldNames.scoreTwo, scoreTwo); } if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.roundCount, roundCount); @@ -647,13 +647,13 @@ public final class ChallengeInfoOuterClass { output.writeUInt32(FieldNames.score, score); } if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.scoreTwo, scoreTwo); + output.writeUInt32(FieldNames.challengeId, challengeId); } if ((bitField0_ & 0x00000010) != 0) { - output.writeEnum(FieldNames.status, status, ChallengeStatusOuterClass.ChallengeStatus.converter()); + output.writeEnum(FieldNames.extraLineupType, extraLineupType, ExtraLineupTypeOuterClass.ExtraLineupType.converter()); } if ((bitField0_ & 0x00000020) != 0) { - output.writeEnum(FieldNames.extraLineupType, extraLineupType, ExtraLineupTypeOuterClass.ExtraLineupType.converter()); + output.writeEnum(FieldNames.status, status, ChallengeStatusOuterClass.ChallengeStatus.converter()); } if ((bitField0_ & 0x00000040) != 0) { output.writeMessage(FieldNames.storyInfo, storyInfo); @@ -668,11 +668,11 @@ public final class ChallengeInfoOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -689112866: - case 112359031: { - if (input.isAtField(FieldNames.challengeId)) { + case -485512614: + case 2129303327: { + if (input.isAtField(FieldNames.scoreTwo)) { if (!input.trySkipNullValue()) { - challengeId = input.readUInt32(); + scoreTwo = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -703,11 +703,11 @@ public final class ChallengeInfoOuterClass { } break; } - case -485512614: - case 2129303327: { - if (input.isAtField(FieldNames.scoreTwo)) { + case -689112866: + case 112359031: { + if (input.isAtField(FieldNames.challengeId)) { if (!input.trySkipNullValue()) { - scoreTwo = input.readUInt32(); + challengeId = input.readUInt32(); bitField0_ |= 0x00000008; } } else { @@ -715,22 +715,6 @@ public final class ChallengeInfoOuterClass { } 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_ |= 0x00000010; - } else { - input.skipUnknownEnumValue(); - } - } - } else { - input.skipUnknownField(); - } - break; - } case -468135527: case -1144475077: { if (input.isAtField(FieldNames.extraLineupType)) { @@ -738,6 +722,22 @@ public final class ChallengeInfoOuterClass { final ExtraLineupTypeOuterClass.ExtraLineupType value = input.readEnum(ExtraLineupTypeOuterClass.ExtraLineupType.converter()); if (value != null) { extraLineupType = value.getNumber(); + bitField0_ |= 0x00000010; + } else { + input.skipUnknownEnumValue(); + } + } + } 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_ |= 0x00000020; } else { input.skipUnknownEnumValue(); @@ -812,18 +812,18 @@ public final class ChallengeInfoOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName challengeId = FieldName.forField("challengeId", "challenge_id"); + static final FieldName scoreTwo = FieldName.forField("scoreTwo", "score_two"); static final FieldName roundCount = FieldName.forField("roundCount", "round_count"); static final FieldName score = FieldName.forField("score"); - static final FieldName scoreTwo = FieldName.forField("scoreTwo", "score_two"); - - static final FieldName status = FieldName.forField("status"); + static final FieldName challengeId = FieldName.forField("challengeId", "challenge_id"); static final FieldName extraLineupType = FieldName.forField("extraLineupType", "extra_lineup_type"); + static final FieldName status = FieldName.forField("status"); + static final FieldName storyInfo = FieldName.forField("storyInfo", "story_info"); } } diff --git a/src/generated/main/emu/lunarcore/proto/ChallengeLineupNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChallengeLineupNotifyOuterClass.java index c9abd4f..0cb0802 100644 --- a/src/generated/main/emu/lunarcore/proto/ChallengeLineupNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ChallengeLineupNotifyOuterClass.java @@ -19,7 +19,7 @@ public final class ChallengeLineupNotifyOuterClass { private static final long serialVersionUID = 0L; /** - * optional .ExtraLineupType extra_lineup_type = 13; + * optional .ExtraLineupType extra_lineup_type = 14; */ private int extraLineupType; @@ -34,7 +34,7 @@ public final class ChallengeLineupNotifyOuterClass { } /** - * optional .ExtraLineupType extra_lineup_type = 13; + * optional .ExtraLineupType extra_lineup_type = 14; * @return whether the extraLineupType field is set */ public boolean hasExtraLineupType() { @@ -42,7 +42,7 @@ public final class ChallengeLineupNotifyOuterClass { } /** - * optional .ExtraLineupType extra_lineup_type = 13; + * optional .ExtraLineupType extra_lineup_type = 14; * @return this */ public ChallengeLineupNotify clearExtraLineupType() { @@ -52,7 +52,7 @@ public final class ChallengeLineupNotifyOuterClass { } /** - * optional .ExtraLineupType extra_lineup_type = 13; + * optional .ExtraLineupType extra_lineup_type = 14; * @return the extraLineupType */ public ExtraLineupTypeOuterClass.ExtraLineupType getExtraLineupType() { @@ -85,7 +85,7 @@ public final class ChallengeLineupNotifyOuterClass { } /** - * optional .ExtraLineupType extra_lineup_type = 13; + * optional .ExtraLineupType extra_lineup_type = 14; * @param value the extraLineupType to set * @return this */ @@ -155,7 +155,7 @@ public final class ChallengeLineupNotifyOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 112); output.writeEnumNoTag(extraLineupType); } } @@ -176,7 +176,7 @@ public final class ChallengeLineupNotifyOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 104: { + case 112: { // 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 9d14434..d572f5d 100644 --- a/src/generated/main/emu/lunarcore/proto/ChallengeOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ChallengeOuterClass.java @@ -19,29 +19,24 @@ public final class ChallengeOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 score_two = 5; + * optional uint32 score = 2; */ - private int scoreTwo; + private int score; /** - * optional uint32 stars = 10; - */ - private int stars; - - /** - * optional uint32 challenge_id = 13; + * optional uint32 challenge_id = 8; */ private int challengeId; /** - * optional uint32 taken_reward = 14; + * optional uint32 taken_reward = 10; */ private int takenReward; /** - * optional uint32 score = 15; + * optional uint32 stars = 11; */ - private int score; + private int stars; private Challenge() { } @@ -54,173 +49,25 @@ public final class ChallengeOuterClass { } /** - * optional uint32 score_two = 5; - * @return whether the scoreTwo field is set + * optional uint32 score = 2; + * @return whether the score field is set */ - public boolean hasScoreTwo() { + public boolean hasScore() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 score_two = 5; - * @return this - */ - public Challenge clearScoreTwo() { - bitField0_ &= ~0x00000001; - scoreTwo = 0; - return this; - } - - /** - * optional uint32 score_two = 5; - * @return the scoreTwo - */ - public int getScoreTwo() { - return scoreTwo; - } - - /** - * optional uint32 score_two = 5; - * @param value the scoreTwo to set - * @return this - */ - public Challenge setScoreTwo(final int value) { - bitField0_ |= 0x00000001; - scoreTwo = value; - return this; - } - - /** - * optional uint32 stars = 10; - * @return whether the stars field is set - */ - public boolean hasStars() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 stars = 10; - * @return this - */ - public Challenge clearStars() { - bitField0_ &= ~0x00000002; - stars = 0; - return this; - } - - /** - * optional uint32 stars = 10; - * @return the stars - */ - public int getStars() { - return stars; - } - - /** - * optional uint32 stars = 10; - * @param value the stars to set - * @return this - */ - public Challenge setStars(final int value) { - bitField0_ |= 0x00000002; - stars = value; - return this; - } - - /** - * optional uint32 challenge_id = 13; - * @return whether the challengeId field is set - */ - public boolean hasChallengeId() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 challenge_id = 13; - * @return this - */ - public Challenge clearChallengeId() { - bitField0_ &= ~0x00000004; - challengeId = 0; - return this; - } - - /** - * optional uint32 challenge_id = 13; - * @return the challengeId - */ - public int getChallengeId() { - return challengeId; - } - - /** - * optional uint32 challenge_id = 13; - * @param value the challengeId to set - * @return this - */ - public Challenge setChallengeId(final int value) { - bitField0_ |= 0x00000004; - challengeId = value; - return this; - } - - /** - * optional uint32 taken_reward = 14; - * @return whether the takenReward field is set - */ - public boolean hasTakenReward() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional uint32 taken_reward = 14; - * @return this - */ - public Challenge clearTakenReward() { - bitField0_ &= ~0x00000008; - takenReward = 0; - return this; - } - - /** - * optional uint32 taken_reward = 14; - * @return the takenReward - */ - public int getTakenReward() { - return takenReward; - } - - /** - * optional uint32 taken_reward = 14; - * @param value the takenReward to set - * @return this - */ - public Challenge setTakenReward(final int value) { - bitField0_ |= 0x00000008; - takenReward = value; - return this; - } - - /** - * optional uint32 score = 15; - * @return whether the score field is set - */ - public boolean hasScore() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - * optional uint32 score = 15; + * optional uint32 score = 2; * @return this */ public Challenge clearScore() { - bitField0_ &= ~0x00000010; + bitField0_ &= ~0x00000001; score = 0; return this; } /** - * optional uint32 score = 15; + * optional uint32 score = 2; * @return the score */ public int getScore() { @@ -228,26 +75,136 @@ public final class ChallengeOuterClass { } /** - * optional uint32 score = 15; + * optional uint32 score = 2; * @param value the score to set * @return this */ public Challenge setScore(final int value) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000001; score = value; return this; } + /** + * optional uint32 challenge_id = 8; + * @return whether the challengeId field is set + */ + public boolean hasChallengeId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 challenge_id = 8; + * @return this + */ + public Challenge clearChallengeId() { + bitField0_ &= ~0x00000002; + challengeId = 0; + return this; + } + + /** + * optional uint32 challenge_id = 8; + * @return the challengeId + */ + public int getChallengeId() { + return challengeId; + } + + /** + * optional uint32 challenge_id = 8; + * @param value the challengeId to set + * @return this + */ + public Challenge setChallengeId(final int value) { + bitField0_ |= 0x00000002; + challengeId = value; + return this; + } + + /** + * optional uint32 taken_reward = 10; + * @return whether the takenReward field is set + */ + public boolean hasTakenReward() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 taken_reward = 10; + * @return this + */ + public Challenge clearTakenReward() { + bitField0_ &= ~0x00000004; + takenReward = 0; + return this; + } + + /** + * optional uint32 taken_reward = 10; + * @return the takenReward + */ + public int getTakenReward() { + return takenReward; + } + + /** + * optional uint32 taken_reward = 10; + * @param value the takenReward to set + * @return this + */ + public Challenge setTakenReward(final int value) { + bitField0_ |= 0x00000004; + takenReward = value; + return this; + } + + /** + * optional uint32 stars = 11; + * @return whether the stars field is set + */ + public boolean hasStars() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 stars = 11; + * @return this + */ + public Challenge clearStars() { + bitField0_ &= ~0x00000008; + stars = 0; + return this; + } + + /** + * optional uint32 stars = 11; + * @return the stars + */ + public int getStars() { + return stars; + } + + /** + * optional uint32 stars = 11; + * @param value the stars to set + * @return this + */ + public Challenge setStars(final int value) { + bitField0_ |= 0x00000008; + stars = value; + return this; + } + @Override public Challenge copyFrom(final Challenge other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - scoreTwo = other.scoreTwo; - stars = other.stars; + score = other.score; challengeId = other.challengeId; takenReward = other.takenReward; - score = other.score; + stars = other.stars; } return this; } @@ -258,11 +215,8 @@ public final class ChallengeOuterClass { return this; } cachedSize = -1; - if (other.hasScoreTwo()) { - setScoreTwo(other.scoreTwo); - } - if (other.hasStars()) { - setStars(other.stars); + if (other.hasScore()) { + setScore(other.score); } if (other.hasChallengeId()) { setChallengeId(other.challengeId); @@ -270,8 +224,8 @@ public final class ChallengeOuterClass { if (other.hasTakenReward()) { setTakenReward(other.takenReward); } - if (other.hasScore()) { - setScore(other.score); + if (other.hasStars()) { + setStars(other.stars); } return this; } @@ -283,11 +237,10 @@ public final class ChallengeOuterClass { } cachedSize = -1; bitField0_ = 0; - scoreTwo = 0; - stars = 0; + score = 0; challengeId = 0; takenReward = 0; - score = 0; + stars = 0; return this; } @@ -311,34 +264,29 @@ public final class ChallengeOuterClass { } Challenge other = (Challenge) o; return bitField0_ == other.bitField0_ - && (!hasScoreTwo() || scoreTwo == other.scoreTwo) - && (!hasStars() || stars == other.stars) + && (!hasScore() || score == other.score) && (!hasChallengeId() || challengeId == other.challengeId) && (!hasTakenReward() || takenReward == other.takenReward) - && (!hasScore() || score == other.score); + && (!hasStars() || stars == other.stars); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); - output.writeUInt32NoTag(scoreTwo); + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(score); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 80); - output.writeUInt32NoTag(stars); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 64); output.writeUInt32NoTag(challengeId); } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 112); + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 80); output.writeUInt32NoTag(takenReward); } - if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 120); - output.writeUInt32NoTag(score); + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(stars); } } @@ -346,19 +294,16 @@ public final class ChallengeOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(scoreTwo); + size += 1 + ProtoSink.computeUInt32SizeNoTag(score); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(stars); - } - if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(challengeId); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(takenReward); } - if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(score); + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(stars); } return size; } @@ -370,46 +315,37 @@ public final class ChallengeOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 40: { - // scoreTwo - scoreTwo = input.readUInt32(); + case 16: { + // score + score = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); + if (tag != 64) { + break; + } + } + case 64: { + // challengeId + challengeId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); if (tag != 80) { break; } } case 80: { - // stars - stars = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 104) { - break; - } - } - case 104: { - // challengeId - challengeId = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 112) { - break; - } - } - case 112: { // takenReward takenReward = input.readUInt32(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 120) { + if (tag != 88) { break; } } - case 120: { - // score - score = input.readUInt32(); - bitField0_ |= 0x00000010; + case 88: { + // stars + stars = input.readUInt32(); + bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 0) { break; @@ -433,19 +369,16 @@ public final class ChallengeOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.scoreTwo, scoreTwo); + output.writeUInt32(FieldNames.score, score); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.stars, stars); - } - if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.challengeId, challengeId); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.takenReward, takenReward); } - if ((bitField0_ & 0x00000010) != 0) { - output.writeUInt32(FieldNames.score, score); + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.stars, stars); } output.endObject(); } @@ -457,11 +390,10 @@ public final class ChallengeOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -485512614: - case 2129303327: { - if (input.isAtField(FieldNames.scoreTwo)) { + case 109264530: { + if (input.isAtField(FieldNames.score)) { if (!input.trySkipNullValue()) { - scoreTwo = input.readUInt32(); + score = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -469,23 +401,12 @@ public final class ChallengeOuterClass { } break; } - case 109757537: { - if (input.isAtField(FieldNames.stars)) { - if (!input.trySkipNullValue()) { - stars = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } case -689112866: case 112359031: { if (input.isAtField(FieldNames.challengeId)) { if (!input.trySkipNullValue()) { challengeId = input.readUInt32(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; } } else { input.skipUnknownField(); @@ -497,18 +418,18 @@ public final class ChallengeOuterClass { if (input.isAtField(FieldNames.takenReward)) { if (!input.trySkipNullValue()) { takenReward = input.readUInt32(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; } } else { input.skipUnknownField(); } break; } - case 109264530: { - if (input.isAtField(FieldNames.score)) { + case 109757537: { + if (input.isAtField(FieldNames.stars)) { if (!input.trySkipNullValue()) { - score = input.readUInt32(); - bitField0_ |= 0x00000010; + stars = input.readUInt32(); + bitField0_ |= 0x00000008; } } else { input.skipUnknownField(); @@ -567,15 +488,13 @@ public final class ChallengeOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName scoreTwo = FieldName.forField("scoreTwo", "score_two"); - - static final FieldName stars = FieldName.forField("stars"); + static final FieldName score = FieldName.forField("score"); static final FieldName challengeId = FieldName.forField("challengeId", "challenge_id"); static final FieldName takenReward = FieldName.forField("takenReward", "taken_reward"); - static final FieldName score = FieldName.forField("score"); + static final FieldName stars = FieldName.forField("stars"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/ChallengeRewardOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChallengeRewardOuterClass.java index 8c96470..c30a3ff 100644 --- a/src/generated/main/emu/lunarcore/proto/ChallengeRewardOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ChallengeRewardOuterClass.java @@ -19,12 +19,12 @@ public final class ChallengeRewardOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint64 taken_challenge_reward = 10; + * optional uint64 taken_challenge_reward = 3; */ private long takenChallengeReward; /** - * optional uint32 group_id = 15; + * optional uint32 group_id = 14; */ private int groupId; @@ -39,7 +39,7 @@ public final class ChallengeRewardOuterClass { } /** - * optional uint64 taken_challenge_reward = 10; + * optional uint64 taken_challenge_reward = 3; * @return whether the takenChallengeReward field is set */ public boolean hasTakenChallengeReward() { @@ -47,7 +47,7 @@ public final class ChallengeRewardOuterClass { } /** - * optional uint64 taken_challenge_reward = 10; + * optional uint64 taken_challenge_reward = 3; * @return this */ public ChallengeReward clearTakenChallengeReward() { @@ -57,7 +57,7 @@ public final class ChallengeRewardOuterClass { } /** - * optional uint64 taken_challenge_reward = 10; + * optional uint64 taken_challenge_reward = 3; * @return the takenChallengeReward */ public long getTakenChallengeReward() { @@ -65,7 +65,7 @@ public final class ChallengeRewardOuterClass { } /** - * optional uint64 taken_challenge_reward = 10; + * optional uint64 taken_challenge_reward = 3; * @param value the takenChallengeReward to set * @return this */ @@ -76,7 +76,7 @@ public final class ChallengeRewardOuterClass { } /** - * 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 final class ChallengeRewardOuterClass { } /** - * optional uint32 group_id = 15; + * optional uint32 group_id = 14; * @return this */ public ChallengeReward clearGroupId() { @@ -94,7 +94,7 @@ public final class ChallengeRewardOuterClass { } /** - * optional uint32 group_id = 15; + * optional uint32 group_id = 14; * @return the groupId */ public int getGroupId() { @@ -102,7 +102,7 @@ public final class ChallengeRewardOuterClass { } /** - * optional uint32 group_id = 15; + * optional uint32 group_id = 14; * @param value the groupId to set * @return this */ @@ -177,11 +177,11 @@ public final class ChallengeRewardOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 24); output.writeUInt64NoTag(takenChallengeReward); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 112); output.writeUInt32NoTag(groupId); } } @@ -205,16 +205,16 @@ public final class ChallengeRewardOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 80: { + case 24: { // takenChallengeReward takenChallengeReward = input.readUInt64(); 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/ChallengeSettleNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChallengeSettleNotifyOuterClass.java index 406bea2..532c9a3 100644 --- a/src/generated/main/emu/lunarcore/proto/ChallengeSettleNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ChallengeSettleNotifyOuterClass.java @@ -19,32 +19,32 @@ public final class ChallengeSettleNotifyOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 score_two = 6; - */ - private int scoreTwo; - - /** - * optional uint32 challenge_id = 9; - */ - private int challengeId; - - /** - * optional uint32 challenge_score = 11; + * optional uint32 challenge_score = 9; */ private int challengeScore; /** - * optional uint32 stars = 15; + * optional uint32 score_two = 10; + */ + private int scoreTwo; + + /** + * optional uint32 stars = 13; */ private int stars; /** - * optional bool is_win = 13; + * optional uint32 challenge_id = 14; + */ + private int challengeId; + + /** + * optional bool is_win = 15; */ private boolean isWin; /** - * optional .ItemList reward = 8; + * optional .ItemList reward = 12; */ private final ItemListOuterClass.ItemList reward = ItemListOuterClass.ItemList.newInstance(); @@ -59,99 +59,25 @@ public final class ChallengeSettleNotifyOuterClass { } /** - * optional uint32 score_two = 6; - * @return whether the scoreTwo field is set + * optional uint32 challenge_score = 9; + * @return whether the challengeScore field is set */ - public boolean hasScoreTwo() { + public boolean hasChallengeScore() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 score_two = 6; - * @return this - */ - public ChallengeSettleNotify clearScoreTwo() { - bitField0_ &= ~0x00000001; - scoreTwo = 0; - return this; - } - - /** - * optional uint32 score_two = 6; - * @return the scoreTwo - */ - public int getScoreTwo() { - return scoreTwo; - } - - /** - * optional uint32 score_two = 6; - * @param value the scoreTwo to set - * @return this - */ - public ChallengeSettleNotify setScoreTwo(final int value) { - bitField0_ |= 0x00000001; - scoreTwo = value; - return this; - } - - /** - * optional uint32 challenge_id = 9; - * @return whether the challengeId field is set - */ - public boolean hasChallengeId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 challenge_id = 9; - * @return this - */ - public ChallengeSettleNotify clearChallengeId() { - bitField0_ &= ~0x00000002; - challengeId = 0; - return this; - } - - /** - * optional uint32 challenge_id = 9; - * @return the challengeId - */ - public int getChallengeId() { - return challengeId; - } - - /** - * optional uint32 challenge_id = 9; - * @param value the challengeId to set - * @return this - */ - public ChallengeSettleNotify setChallengeId(final int value) { - bitField0_ |= 0x00000002; - challengeId = value; - return this; - } - - /** - * optional uint32 challenge_score = 11; - * @return whether the challengeScore field is set - */ - public boolean hasChallengeScore() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 challenge_score = 11; + * optional uint32 challenge_score = 9; * @return this */ public ChallengeSettleNotify clearChallengeScore() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000001; challengeScore = 0; return this; } /** - * optional uint32 challenge_score = 11; + * optional uint32 challenge_score = 9; * @return the challengeScore */ public int getChallengeScore() { @@ -159,36 +85,73 @@ public final class ChallengeSettleNotifyOuterClass { } /** - * optional uint32 challenge_score = 11; + * optional uint32 challenge_score = 9; * @param value the challengeScore to set * @return this */ public ChallengeSettleNotify setChallengeScore(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; challengeScore = value; return this; } /** - * optional uint32 stars = 15; - * @return whether the stars field is set + * optional uint32 score_two = 10; + * @return whether the scoreTwo field is set */ - public boolean hasStars() { - return (bitField0_ & 0x00000008) != 0; + public boolean hasScoreTwo() { + return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 stars = 15; + * optional uint32 score_two = 10; + * @return this + */ + public ChallengeSettleNotify clearScoreTwo() { + bitField0_ &= ~0x00000002; + scoreTwo = 0; + return this; + } + + /** + * optional uint32 score_two = 10; + * @return the scoreTwo + */ + public int getScoreTwo() { + return scoreTwo; + } + + /** + * optional uint32 score_two = 10; + * @param value the scoreTwo to set + * @return this + */ + public ChallengeSettleNotify setScoreTwo(final int value) { + bitField0_ |= 0x00000002; + scoreTwo = value; + return this; + } + + /** + * optional uint32 stars = 13; + * @return whether the stars field is set + */ + public boolean hasStars() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 stars = 13; * @return this */ public ChallengeSettleNotify clearStars() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000004; stars = 0; return this; } /** - * optional uint32 stars = 15; + * optional uint32 stars = 13; * @return the stars */ public int getStars() { @@ -196,18 +159,55 @@ public final class ChallengeSettleNotifyOuterClass { } /** - * optional uint32 stars = 15; + * optional uint32 stars = 13; * @param value the stars to set * @return this */ public ChallengeSettleNotify setStars(final int value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; stars = value; return this; } /** - * optional bool is_win = 13; + * optional uint32 challenge_id = 14; + * @return whether the challengeId field is set + */ + public boolean hasChallengeId() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 challenge_id = 14; + * @return this + */ + public ChallengeSettleNotify clearChallengeId() { + bitField0_ &= ~0x00000008; + challengeId = 0; + return this; + } + + /** + * optional uint32 challenge_id = 14; + * @return the challengeId + */ + public int getChallengeId() { + return challengeId; + } + + /** + * optional uint32 challenge_id = 14; + * @param value the challengeId to set + * @return this + */ + public ChallengeSettleNotify setChallengeId(final int value) { + bitField0_ |= 0x00000008; + challengeId = value; + return this; + } + + /** + * optional bool is_win = 15; * @return whether the isWin field is set */ public boolean hasIsWin() { @@ -215,7 +215,7 @@ public final class ChallengeSettleNotifyOuterClass { } /** - * optional bool is_win = 13; + * optional bool is_win = 15; * @return this */ public ChallengeSettleNotify clearIsWin() { @@ -225,7 +225,7 @@ public final class ChallengeSettleNotifyOuterClass { } /** - * optional bool is_win = 13; + * optional bool is_win = 15; * @return the isWin */ public boolean getIsWin() { @@ -233,7 +233,7 @@ public final class ChallengeSettleNotifyOuterClass { } /** - * optional bool is_win = 13; + * optional bool is_win = 15; * @param value the isWin to set * @return this */ @@ -244,7 +244,7 @@ public final class ChallengeSettleNotifyOuterClass { } /** - * optional .ItemList reward = 8; + * optional .ItemList reward = 12; * @return whether the reward field is set */ public boolean hasReward() { @@ -252,7 +252,7 @@ public final class ChallengeSettleNotifyOuterClass { } /** - * optional .ItemList reward = 8; + * optional .ItemList reward = 12; * @return this */ public ChallengeSettleNotify clearReward() { @@ -262,7 +262,7 @@ public final class ChallengeSettleNotifyOuterClass { } /** - * optional .ItemList reward = 8; + * optional .ItemList reward = 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. @@ -276,7 +276,7 @@ public final class ChallengeSettleNotifyOuterClass { } /** - * optional .ItemList reward = 8; + * optional .ItemList reward = 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 @@ -290,7 +290,7 @@ public final class ChallengeSettleNotifyOuterClass { } /** - * optional .ItemList reward = 8; + * optional .ItemList reward = 12; * @param value the reward to set * @return this */ @@ -305,10 +305,10 @@ public final class ChallengeSettleNotifyOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - scoreTwo = other.scoreTwo; - challengeId = other.challengeId; challengeScore = other.challengeScore; + scoreTwo = other.scoreTwo; stars = other.stars; + challengeId = other.challengeId; isWin = other.isWin; reward.copyFrom(other.reward); } @@ -321,18 +321,18 @@ public final class ChallengeSettleNotifyOuterClass { return this; } cachedSize = -1; - if (other.hasScoreTwo()) { - setScoreTwo(other.scoreTwo); - } - if (other.hasChallengeId()) { - setChallengeId(other.challengeId); - } if (other.hasChallengeScore()) { setChallengeScore(other.challengeScore); } + if (other.hasScoreTwo()) { + setScoreTwo(other.scoreTwo); + } if (other.hasStars()) { setStars(other.stars); } + if (other.hasChallengeId()) { + setChallengeId(other.challengeId); + } if (other.hasIsWin()) { setIsWin(other.isWin); } @@ -349,10 +349,10 @@ public final class ChallengeSettleNotifyOuterClass { } cachedSize = -1; bitField0_ = 0; - scoreTwo = 0; - challengeId = 0; challengeScore = 0; + scoreTwo = 0; stars = 0; + challengeId = 0; isWin = false; reward.clear(); return this; @@ -379,10 +379,10 @@ public final class ChallengeSettleNotifyOuterClass { } ChallengeSettleNotify other = (ChallengeSettleNotify) o; return bitField0_ == other.bitField0_ - && (!hasScoreTwo() || scoreTwo == other.scoreTwo) - && (!hasChallengeId() || challengeId == other.challengeId) && (!hasChallengeScore() || challengeScore == other.challengeScore) + && (!hasScoreTwo() || scoreTwo == other.scoreTwo) && (!hasStars() || stars == other.stars) + && (!hasChallengeId() || challengeId == other.challengeId) && (!hasIsWin() || isWin == other.isWin) && (!hasReward() || reward.equals(other.reward)); } @@ -390,27 +390,27 @@ public final class ChallengeSettleNotifyOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 48); - output.writeUInt32NoTag(scoreTwo); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 72); - output.writeUInt32NoTag(challengeId); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 88); output.writeUInt32NoTag(challengeScore); } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 120); + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(scoreTwo); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 104); output.writeUInt32NoTag(stars); } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(challengeId); + } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 120); output.writeBoolNoTag(isWin); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 66); + output.writeRawByte((byte) 98); output.writeMessageNoTag(reward); } } @@ -419,17 +419,17 @@ public final class ChallengeSettleNotifyOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(scoreTwo); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(challengeId); - } - if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(challengeScore); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(scoreTwo); + } + if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(stars); } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(challengeId); + } if ((bitField0_ & 0x00000010) != 0) { size += 2; } @@ -446,52 +446,52 @@ public final class ChallengeSettleNotifyOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 48: { - // scoreTwo - scoreTwo = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 72) { - break; - } - } case 72: { - // challengeId - challengeId = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 88) { - break; - } - } - case 88: { // challengeScore challengeScore = input.readUInt32(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 120) { + if (tag != 80) { break; } } - case 120: { - // stars - stars = input.readUInt32(); - bitField0_ |= 0x00000008; + case 80: { + // scoreTwo + scoreTwo = input.readUInt32(); + bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 104) { break; } } case 104: { + // stars + stars = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // challengeId + challengeId = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { // isWin isWin = input.readBool(); bitField0_ |= 0x00000010; tag = input.readTag(); - if (tag != 66) { + if (tag != 98) { break; } } - case 66: { + case 98: { // reward input.readMessage(reward); bitField0_ |= 0x00000020; @@ -518,17 +518,17 @@ public final class ChallengeSettleNotifyOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.scoreTwo, scoreTwo); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.challengeId, challengeId); - } - if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.challengeScore, challengeScore); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.scoreTwo, scoreTwo); + } + if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.stars, stars); } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.challengeId, challengeId); + } if ((bitField0_ & 0x00000010) != 0) { output.writeBool(FieldNames.isWin, isWin); } @@ -545,12 +545,35 @@ public final class ChallengeSettleNotifyOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { + case 591599599: + case 1517684662: { + if (input.isAtField(FieldNames.challengeScore)) { + if (!input.trySkipNullValue()) { + challengeScore = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } case -485512614: case 2129303327: { if (input.isAtField(FieldNames.scoreTwo)) { if (!input.trySkipNullValue()) { scoreTwo = input.readUInt32(); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 109757537: { + if (input.isAtField(FieldNames.stars)) { + if (!input.trySkipNullValue()) { + stars = input.readUInt32(); + bitField0_ |= 0x00000004; } } else { input.skipUnknownField(); @@ -562,29 +585,6 @@ public final class ChallengeSettleNotifyOuterClass { if (input.isAtField(FieldNames.challengeId)) { if (!input.trySkipNullValue()) { challengeId = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case 591599599: - case 1517684662: { - if (input.isAtField(FieldNames.challengeScore)) { - if (!input.trySkipNullValue()) { - challengeScore = input.readUInt32(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case 109757537: { - if (input.isAtField(FieldNames.stars)) { - if (!input.trySkipNullValue()) { - stars = input.readUInt32(); bitField0_ |= 0x00000008; } } else { @@ -668,14 +668,14 @@ public final class ChallengeSettleNotifyOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName scoreTwo = FieldName.forField("scoreTwo", "score_two"); - - static final FieldName challengeId = FieldName.forField("challengeId", "challenge_id"); - static final FieldName challengeScore = FieldName.forField("challengeScore", "challenge_score"); + static final FieldName scoreTwo = FieldName.forField("scoreTwo", "score_two"); + static final FieldName stars = FieldName.forField("stars"); + static final FieldName challengeId = FieldName.forField("challengeId", "challenge_id"); + static final FieldName isWin = FieldName.forField("isWin", "is_win"); static final FieldName reward = FieldName.forField("reward"); diff --git a/src/generated/main/emu/lunarcore/proto/ChallengeStoryBuffInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChallengeStoryBuffInfoOuterClass.java index f4524fb..da5dbed 100644 --- a/src/generated/main/emu/lunarcore/proto/ChallengeStoryBuffInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ChallengeStoryBuffInfoOuterClass.java @@ -20,7 +20,7 @@ public final class ChallengeStoryBuffInfoOuterClass { private static final long serialVersionUID = 0L; /** - * repeated uint32 buff_list = 5; + * repeated uint32 buff_list = 2; */ private final RepeatedInt buffList = RepeatedInt.newEmptyInstance(); @@ -35,7 +35,7 @@ public final class ChallengeStoryBuffInfoOuterClass { } /** - * repeated uint32 buff_list = 5; + * repeated uint32 buff_list = 2; * @return whether the buffList field is set */ public boolean hasBuffList() { @@ -43,7 +43,7 @@ public final class ChallengeStoryBuffInfoOuterClass { } /** - * repeated uint32 buff_list = 5; + * repeated uint32 buff_list = 2; * @return this */ public ChallengeStoryBuffInfo clearBuffList() { @@ -53,7 +53,7 @@ public final class ChallengeStoryBuffInfoOuterClass { } /** - * repeated uint32 buff_list = 5; + * repeated uint32 buff_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 final class ChallengeStoryBuffInfoOuterClass { } /** - * repeated uint32 buff_list = 5; + * repeated uint32 buff_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 final class ChallengeStoryBuffInfoOuterClass { } /** - * repeated uint32 buff_list = 5; + * repeated uint32 buff_list = 2; * @param value the buffList to add * @return this */ @@ -92,7 +92,7 @@ public final class ChallengeStoryBuffInfoOuterClass { } /** - * repeated uint32 buff_list = 5; + * repeated uint32 buff_list = 2; * @param values the buffList to add * @return this */ @@ -163,7 +163,7 @@ public final class ChallengeStoryBuffInfoOuterClass { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { for (int i = 0; i < buffList.length(); i++) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 16); output.writeUInt32NoTag(buffList.array()[i]); } } @@ -185,7 +185,7 @@ public final class ChallengeStoryBuffInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 42: { + case 18: { // buffList [packed=true] input.readPackedUInt32(buffList, tag); bitField0_ |= 0x00000001; @@ -204,7 +204,7 @@ public final class ChallengeStoryBuffInfoOuterClass { tag = input.readTag(); break; } - case 40: { + case 16: { // buffList [packed=false] tag = input.readRepeatedUInt32(buffList, tag); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/ChallengeStoryInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChallengeStoryInfoOuterClass.java index e4b8075..da8a4f3 100644 --- a/src/generated/main/emu/lunarcore/proto/ChallengeStoryInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ChallengeStoryInfoOuterClass.java @@ -19,7 +19,7 @@ public final class ChallengeStoryInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional .ChallengeStoryBuffInfo cur_story_buffs = 6; + * optional .ChallengeStoryBuffInfo cur_story_buffs = 1; */ private final ChallengeStoryBuffInfoOuterClass.ChallengeStoryBuffInfo curStoryBuffs = ChallengeStoryBuffInfoOuterClass.ChallengeStoryBuffInfo.newInstance(); @@ -34,7 +34,7 @@ public final class ChallengeStoryInfoOuterClass { } /** - * optional .ChallengeStoryBuffInfo cur_story_buffs = 6; + * optional .ChallengeStoryBuffInfo cur_story_buffs = 1; * @return whether the curStoryBuffs field is set */ public boolean hasCurStoryBuffs() { @@ -42,7 +42,7 @@ public final class ChallengeStoryInfoOuterClass { } /** - * optional .ChallengeStoryBuffInfo cur_story_buffs = 6; + * optional .ChallengeStoryBuffInfo cur_story_buffs = 1; * @return this */ public ChallengeStoryInfo clearCurStoryBuffs() { @@ -52,7 +52,7 @@ public final class ChallengeStoryInfoOuterClass { } /** - * optional .ChallengeStoryBuffInfo cur_story_buffs = 6; + * optional .ChallengeStoryBuffInfo cur_story_buffs = 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 final class ChallengeStoryInfoOuterClass { } /** - * optional .ChallengeStoryBuffInfo cur_story_buffs = 6; + * optional .ChallengeStoryBuffInfo cur_story_buffs = 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 final class ChallengeStoryInfoOuterClass { } /** - * optional .ChallengeStoryBuffInfo cur_story_buffs = 6; + * optional .ChallengeStoryBuffInfo cur_story_buffs = 1; * @param value the curStoryBuffs to set * @return this */ @@ -151,7 +151,7 @@ public final class ChallengeStoryInfoOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 50); + output.writeRawByte((byte) 10); output.writeMessageNoTag(curStoryBuffs); } } @@ -172,7 +172,7 @@ public final class ChallengeStoryInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 50: { + case 10: { // curStoryBuffs input.readMessage(curStoryBuffs); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/ChangeLineupLeaderCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChangeLineupLeaderCsReqOuterClass.java index 2946155..723b166 100644 --- a/src/generated/main/emu/lunarcore/proto/ChangeLineupLeaderCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ChangeLineupLeaderCsReqOuterClass.java @@ -19,7 +19,7 @@ public final class ChangeLineupLeaderCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 slot = 10; + * optional uint32 slot = 9; */ private int slot; @@ -34,7 +34,7 @@ public final class ChangeLineupLeaderCsReqOuterClass { } /** - * optional uint32 slot = 10; + * optional uint32 slot = 9; * @return whether the slot field is set */ public boolean hasSlot() { @@ -42,7 +42,7 @@ public final class ChangeLineupLeaderCsReqOuterClass { } /** - * optional uint32 slot = 10; + * optional uint32 slot = 9; * @return this */ public ChangeLineupLeaderCsReq clearSlot() { @@ -52,7 +52,7 @@ public final class ChangeLineupLeaderCsReqOuterClass { } /** - * optional uint32 slot = 10; + * optional uint32 slot = 9; * @return the slot */ public int getSlot() { @@ -60,7 +60,7 @@ public final class ChangeLineupLeaderCsReqOuterClass { } /** - * optional uint32 slot = 10; + * optional uint32 slot = 9; * @param value the slot to set * @return this */ @@ -129,7 +129,7 @@ public final class ChangeLineupLeaderCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 72); output.writeUInt32NoTag(slot); } } @@ -150,7 +150,7 @@ public final class ChangeLineupLeaderCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 80: { + case 72: { // 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 89a8ceb..a98652b 100644 --- a/src/generated/main/emu/lunarcore/proto/ChangeLineupLeaderScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ChangeLineupLeaderScRspOuterClass.java @@ -19,15 +19,15 @@ public final class ChangeLineupLeaderScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 slot = 1; - */ - private int slot; - - /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 8; */ private int retcode; + /** + * optional uint32 slot = 10; + */ + private int slot; + private ChangeLineupLeaderScRsp() { } @@ -39,62 +39,25 @@ public final class ChangeLineupLeaderScRspOuterClass { } /** - * optional uint32 slot = 1; - * @return whether the slot field is set + * optional uint32 retcode = 8; + * @return whether the retcode field is set */ - public boolean hasSlot() { + public boolean hasRetcode() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 slot = 1; - * @return this - */ - public ChangeLineupLeaderScRsp clearSlot() { - bitField0_ &= ~0x00000001; - slot = 0; - return this; - } - - /** - * optional uint32 slot = 1; - * @return the slot - */ - public int getSlot() { - return slot; - } - - /** - * optional uint32 slot = 1; - * @param value the slot to set - * @return this - */ - public ChangeLineupLeaderScRsp setSlot(final int value) { - bitField0_ |= 0x00000001; - slot = value; - return this; - } - - /** - * optional uint32 retcode = 15; - * @return whether the retcode field is set - */ - public boolean hasRetcode() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 8; * @return this */ public ChangeLineupLeaderScRsp clearRetcode() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; retcode = 0; return this; } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 8; * @return the retcode */ public int getRetcode() { @@ -102,23 +65,60 @@ public final class ChangeLineupLeaderScRspOuterClass { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 8; * @param value the retcode to set * @return this */ public ChangeLineupLeaderScRsp setRetcode(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; retcode = value; return this; } + /** + * optional uint32 slot = 10; + * @return whether the slot field is set + */ + public boolean hasSlot() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 slot = 10; + * @return this + */ + public ChangeLineupLeaderScRsp clearSlot() { + bitField0_ &= ~0x00000002; + slot = 0; + return this; + } + + /** + * optional uint32 slot = 10; + * @return the slot + */ + public int getSlot() { + return slot; + } + + /** + * optional uint32 slot = 10; + * @param value the slot to set + * @return this + */ + public ChangeLineupLeaderScRsp setSlot(final int value) { + bitField0_ |= 0x00000002; + slot = value; + return this; + } + @Override public ChangeLineupLeaderScRsp copyFrom(final ChangeLineupLeaderScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - slot = other.slot; retcode = other.retcode; + slot = other.slot; } return this; } @@ -129,12 +129,12 @@ public final class ChangeLineupLeaderScRspOuterClass { return this; } cachedSize = -1; - if (other.hasSlot()) { - setSlot(other.slot); - } if (other.hasRetcode()) { setRetcode(other.retcode); } + if (other.hasSlot()) { + setSlot(other.slot); + } return this; } @@ -145,8 +145,8 @@ public final class ChangeLineupLeaderScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - slot = 0; retcode = 0; + slot = 0; return this; } @@ -170,19 +170,19 @@ public final class ChangeLineupLeaderScRspOuterClass { } ChangeLineupLeaderScRsp other = (ChangeLineupLeaderScRsp) o; return bitField0_ == other.bitField0_ - && (!hasSlot() || slot == other.slot) - && (!hasRetcode() || retcode == other.retcode); + && (!hasRetcode() || retcode == other.retcode) + && (!hasSlot() || slot == other.slot); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(slot); + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 120); - output.writeUInt32NoTag(retcode); + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(slot); } } @@ -190,10 +190,10 @@ public final class ChangeLineupLeaderScRspOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(slot); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(slot); } return size; } @@ -205,18 +205,18 @@ public final class ChangeLineupLeaderScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 8: { - // slot - slot = input.readUInt32(); + case 64: { + // retcode + retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 120) { + if (tag != 80) { break; } } - case 120: { - // retcode - retcode = input.readUInt32(); + case 80: { + // slot + slot = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { @@ -241,10 +241,10 @@ public final class ChangeLineupLeaderScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.slot, slot); + output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.slot, slot); } output.endObject(); } @@ -256,10 +256,10 @@ public final class ChangeLineupLeaderScRspOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 3533310: { - if (input.isAtField(FieldNames.slot)) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { - slot = input.readUInt32(); + retcode = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -267,10 +267,10 @@ public final class ChangeLineupLeaderScRspOuterClass { } break; } - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { + case 3533310: { + if (input.isAtField(FieldNames.slot)) { if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); + slot = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -331,9 +331,9 @@ public final class ChangeLineupLeaderScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName slot = FieldName.forField("slot"); - static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName slot = FieldName.forField("slot"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/ChargerInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChargerInfoOuterClass.java new file mode 100644 index 0000000..0cbe79b --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChargerInfoOuterClass.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 ChargerInfoOuterClass { + /** + * Protobuf type {@code ChargerInfo} + */ + public static final class ChargerInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 unk_int = 1; + */ + private int unkInt; + + /** + * optional uint32 group_id = 14; + */ + private int groupId; + + private ChargerInfo() { + } + + /** + * @return a new empty instance of {@code ChargerInfo} + */ + public static ChargerInfo newInstance() { + return new ChargerInfo(); + } + + /** + * optional uint32 unk_int = 1; + * @return whether the unkInt field is set + */ + public boolean hasUnkInt() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 unk_int = 1; + * @return this + */ + public ChargerInfo clearUnkInt() { + bitField0_ &= ~0x00000001; + unkInt = 0; + return this; + } + + /** + * optional uint32 unk_int = 1; + * @return the unkInt + */ + public int getUnkInt() { + return unkInt; + } + + /** + * optional uint32 unk_int = 1; + * @param value the unkInt to set + * @return this + */ + public ChargerInfo setUnkInt(final int value) { + bitField0_ |= 0x00000001; + unkInt = value; + return this; + } + + /** + * optional uint32 group_id = 14; + * @return whether the groupId field is set + */ + public boolean hasGroupId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 group_id = 14; + * @return this + */ + public ChargerInfo clearGroupId() { + bitField0_ &= ~0x00000002; + groupId = 0; + return this; + } + + /** + * optional uint32 group_id = 14; + * @return the groupId + */ + public int getGroupId() { + return groupId; + } + + /** + * optional uint32 group_id = 14; + * @param value the groupId to set + * @return this + */ + public ChargerInfo setGroupId(final int value) { + bitField0_ |= 0x00000002; + groupId = value; + return this; + } + + @Override + public ChargerInfo copyFrom(final ChargerInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + unkInt = other.unkInt; + groupId = other.groupId; + } + return this; + } + + @Override + public ChargerInfo mergeFrom(final ChargerInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasUnkInt()) { + setUnkInt(other.unkInt); + } + if (other.hasGroupId()) { + setGroupId(other.groupId); + } + return this; + } + + @Override + public ChargerInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + unkInt = 0; + groupId = 0; + return this; + } + + @Override + public ChargerInfo 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 ChargerInfo)) { + return false; + } + ChargerInfo other = (ChargerInfo) o; + return bitField0_ == other.bitField0_ + && (!hasUnkInt() || unkInt == other.unkInt) + && (!hasGroupId() || groupId == other.groupId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(unkInt); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(groupId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(unkInt); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChargerInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // unkInt + unkInt = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // groupId + groupId = 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.unkInt, unkInt); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.groupId, groupId); + } + output.endObject(); + } + + @Override + public ChargerInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -840508003: + case -285293790: { + if (input.isAtField(FieldNames.unkInt)) { + if (!input.trySkipNullValue()) { + unkInt = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 293428218: + case 506361563: { + if (input.isAtField(FieldNames.groupId)) { + if (!input.trySkipNullValue()) { + groupId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChargerInfo clone() { + return new ChargerInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChargerInfo parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChargerInfo(), data).checkInitialized(); + } + + public static ChargerInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChargerInfo(), input).checkInitialized(); + } + + public static ChargerInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChargerInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating ChargerInfo messages + */ + public static MessageFactory getFactory() { + return ChargerInfoFactory.INSTANCE; + } + + private enum ChargerInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public ChargerInfo create() { + return ChargerInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName unkInt = FieldName.forField("unkInt", "unk_int"); + + static final FieldName groupId = FieldName.forField("groupId", "group_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChatOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChatOuterClass.java index 7249216..031d496 100644 --- a/src/generated/main/emu/lunarcore/proto/ChatOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ChatOuterClass.java @@ -20,27 +20,27 @@ public final class ChatOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint64 sent_time = 13; + * optional uint64 sent_time = 9; */ private long sentTime; /** - * optional uint32 sender_uid = 1; + * optional uint32 sender_uid = 4; */ private int senderUid; /** - * optional uint32 emote = 11; + * optional uint32 emote = 6; */ private int emote; /** - * optional .MsgType msg_type = 8; + * optional .MsgType msg_type = 2; */ private int msgType; /** - * optional string text = 2; + * optional string text = 5; */ private final Utf8String text = Utf8String.newEmptyInstance(); @@ -55,7 +55,7 @@ public final class ChatOuterClass { } /** - * optional uint64 sent_time = 13; + * optional uint64 sent_time = 9; * @return whether the sentTime field is set */ public boolean hasSentTime() { @@ -63,7 +63,7 @@ public final class ChatOuterClass { } /** - * optional uint64 sent_time = 13; + * optional uint64 sent_time = 9; * @return this */ public Chat clearSentTime() { @@ -73,7 +73,7 @@ public final class ChatOuterClass { } /** - * optional uint64 sent_time = 13; + * optional uint64 sent_time = 9; * @return the sentTime */ public long getSentTime() { @@ -81,7 +81,7 @@ public final class ChatOuterClass { } /** - * optional uint64 sent_time = 13; + * optional uint64 sent_time = 9; * @param value the sentTime to set * @return this */ @@ -92,7 +92,7 @@ public final class ChatOuterClass { } /** - * optional uint32 sender_uid = 1; + * optional uint32 sender_uid = 4; * @return whether the senderUid field is set */ public boolean hasSenderUid() { @@ -100,7 +100,7 @@ public final class ChatOuterClass { } /** - * optional uint32 sender_uid = 1; + * optional uint32 sender_uid = 4; * @return this */ public Chat clearSenderUid() { @@ -110,7 +110,7 @@ public final class ChatOuterClass { } /** - * optional uint32 sender_uid = 1; + * optional uint32 sender_uid = 4; * @return the senderUid */ public int getSenderUid() { @@ -118,7 +118,7 @@ public final class ChatOuterClass { } /** - * optional uint32 sender_uid = 1; + * optional uint32 sender_uid = 4; * @param value the senderUid to set * @return this */ @@ -129,7 +129,7 @@ public final class ChatOuterClass { } /** - * optional uint32 emote = 11; + * optional uint32 emote = 6; * @return whether the emote field is set */ public boolean hasEmote() { @@ -137,7 +137,7 @@ public final class ChatOuterClass { } /** - * optional uint32 emote = 11; + * optional uint32 emote = 6; * @return this */ public Chat clearEmote() { @@ -147,7 +147,7 @@ public final class ChatOuterClass { } /** - * optional uint32 emote = 11; + * optional uint32 emote = 6; * @return the emote */ public int getEmote() { @@ -155,7 +155,7 @@ public final class ChatOuterClass { } /** - * optional uint32 emote = 11; + * optional uint32 emote = 6; * @param value the emote to set * @return this */ @@ -166,7 +166,7 @@ public final class ChatOuterClass { } /** - * optional .MsgType msg_type = 8; + * optional .MsgType msg_type = 2; * @return whether the msgType field is set */ public boolean hasMsgType() { @@ -174,7 +174,7 @@ public final class ChatOuterClass { } /** - * optional .MsgType msg_type = 8; + * optional .MsgType msg_type = 2; * @return this */ public Chat clearMsgType() { @@ -184,7 +184,7 @@ public final class ChatOuterClass { } /** - * optional .MsgType msg_type = 8; + * optional .MsgType msg_type = 2; * @return the msgType */ public MsgTypeOuterClass.MsgType getMsgType() { @@ -217,7 +217,7 @@ public final class ChatOuterClass { } /** - * optional .MsgType msg_type = 8; + * optional .MsgType msg_type = 2; * @param value the msgType to set * @return this */ @@ -228,7 +228,7 @@ public final class ChatOuterClass { } /** - * optional string text = 2; + * optional string text = 5; * @return whether the text field is set */ public boolean hasText() { @@ -236,7 +236,7 @@ public final class ChatOuterClass { } /** - * optional string text = 2; + * optional string text = 5; * @return this */ public Chat clearText() { @@ -246,7 +246,7 @@ public final class ChatOuterClass { } /** - * optional string text = 2; + * optional string text = 5; * @return the text */ public String getText() { @@ -254,7 +254,7 @@ public final class ChatOuterClass { } /** - * optional string text = 2; + * optional string text = 5; * @return internal {@code Utf8String} representation of text for reading */ public Utf8String getTextBytes() { @@ -262,7 +262,7 @@ public final class ChatOuterClass { } /** - * optional string text = 2; + * optional string text = 5; * @return internal {@code Utf8String} representation of text for modifications */ public Utf8String getMutableTextBytes() { @@ -271,7 +271,7 @@ public final class ChatOuterClass { } /** - * optional string text = 2; + * optional string text = 5; * @param value the text to set * @return this */ @@ -282,7 +282,7 @@ public final class ChatOuterClass { } /** - * optional string text = 2; + * optional string text = 5; * @param value the text to set * @return this */ @@ -376,23 +376,23 @@ public final class ChatOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 72); output.writeUInt64NoTag(sentTime); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 8); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(senderUid); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 48); output.writeUInt32NoTag(emote); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 16); output.writeEnumNoTag(msgType); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 18); + output.writeRawByte((byte) 42); output.writeStringNoTag(text); } } @@ -425,34 +425,34 @@ public final class ChatOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 104: { + case 72: { // sentTime sentTime = input.readUInt64(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 8) { + if (tag != 32) { break; } } - case 8: { + case 32: { // senderUid senderUid = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 88) { + if (tag != 48) { break; } } - case 88: { + case 48: { // emote emote = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 64) { + if (tag != 16) { break; } } - case 64: { + case 16: { // msgType final int value = input.readInt32(); if (MsgTypeOuterClass.MsgType.forNumber(value) != null) { @@ -460,11 +460,11 @@ public final class ChatOuterClass { bitField0_ |= 0x00000008; } tag = input.readTag(); - if (tag != 18) { + if (tag != 42) { break; } } - case 18: { + case 42: { // text input.readString(text); bitField0_ |= 0x00000010; diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueNousQueryInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueNousQueryInfoOuterClass.java index 35de81f..e119c8e 100644 --- a/src/generated/main/emu/lunarcore/proto/ChessRogueNousQueryInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueNousQueryInfoOuterClass.java @@ -2,7 +2,6 @@ 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; @@ -10,354 +9,45 @@ 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 ChessRogueNousQueryInfoOuterClass { /** + *
+   * MAKPHMAOCHI talent_info = 1;
+   * OFHBFINPHAG JNAGMIALOII = 6;
+   * CLIDPGPDFGK IKGPADCBBPN = 4;
+   * ChessRogueQuery query_info = 13;
+   * repeated uint32 PHJAFGJHOCO = 7;
+   * repeated uint32 CMNHLKGFKOP = 8;
+   * 
+ * * Protobuf type {@code ChessRogueNousQueryInfo} */ public static final class ChessRogueNousQueryInfo extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; - /** - *
-     * MAKPHMAOCHI talent_info = 1;
-     * 
- * - * optional .OFHBFINPHAG JNAGMIALOII = 6; - */ - private final OFHBFINPHAGOuterClass.OFHBFINPHAG jNAGMIALOII = OFHBFINPHAGOuterClass.OFHBFINPHAG.newInstance(); - - /** - *
-     * CLIDPGPDFGK IKGPADCBBPN = 4;
-     * 
- * - * optional .ChessRogueQuery query_info = 13; - */ - private final ChessRogueQueryOuterClass.ChessRogueQuery queryInfo = ChessRogueQueryOuterClass.ChessRogueQuery.newInstance(); - - /** - * repeated uint32 PHJAFGJHOCO = 7; - */ - private final RepeatedInt pHJAFGJHOCO = RepeatedInt.newEmptyInstance(); - - /** - * repeated uint32 CMNHLKGFKOP = 8; - */ - private final RepeatedInt cMNHLKGFKOP = RepeatedInt.newEmptyInstance(); - private ChessRogueNousQueryInfo() { } /** + *
+     * MAKPHMAOCHI talent_info = 1;
+     * OFHBFINPHAG JNAGMIALOII = 6;
+     * CLIDPGPDFGK IKGPADCBBPN = 4;
+     * ChessRogueQuery query_info = 13;
+     * repeated uint32 PHJAFGJHOCO = 7;
+     * repeated uint32 CMNHLKGFKOP = 8;
+     * 
+ * * @return a new empty instance of {@code ChessRogueNousQueryInfo} */ public static ChessRogueNousQueryInfo newInstance() { return new ChessRogueNousQueryInfo(); } - /** - *
-     * MAKPHMAOCHI talent_info = 1;
-     * 
- * - * optional .OFHBFINPHAG JNAGMIALOII = 6; - * @return whether the jNAGMIALOII field is set - */ - public boolean hasJNAGMIALOII() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - *
-     * MAKPHMAOCHI talent_info = 1;
-     * 
- * - * optional .OFHBFINPHAG JNAGMIALOII = 6; - * @return this - */ - public ChessRogueNousQueryInfo clearJNAGMIALOII() { - bitField0_ &= ~0x00000001; - jNAGMIALOII.clear(); - return this; - } - - /** - *
-     * MAKPHMAOCHI talent_info = 1;
-     * 
- * - * optional .OFHBFINPHAG JNAGMIALOII = 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 #getMutableJNAGMIALOII()} if you want to modify it. - * - * @return internal storage object for reading - */ - public OFHBFINPHAGOuterClass.OFHBFINPHAG getJNAGMIALOII() { - return jNAGMIALOII; - } - - /** - *
-     * MAKPHMAOCHI talent_info = 1;
-     * 
- * - * optional .OFHBFINPHAG JNAGMIALOII = 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 - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public OFHBFINPHAGOuterClass.OFHBFINPHAG getMutableJNAGMIALOII() { - bitField0_ |= 0x00000001; - return jNAGMIALOII; - } - - /** - *
-     * MAKPHMAOCHI talent_info = 1;
-     * 
- * - * optional .OFHBFINPHAG JNAGMIALOII = 6; - * @param value the jNAGMIALOII to set - * @return this - */ - public ChessRogueNousQueryInfo setJNAGMIALOII(final OFHBFINPHAGOuterClass.OFHBFINPHAG value) { - bitField0_ |= 0x00000001; - jNAGMIALOII.copyFrom(value); - return this; - } - - /** - *
-     * CLIDPGPDFGK IKGPADCBBPN = 4;
-     * 
- * - * optional .ChessRogueQuery query_info = 13; - * @return whether the queryInfo field is set - */ - public boolean hasQueryInfo() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - *
-     * CLIDPGPDFGK IKGPADCBBPN = 4;
-     * 
- * - * optional .ChessRogueQuery query_info = 13; - * @return this - */ - public ChessRogueNousQueryInfo clearQueryInfo() { - bitField0_ &= ~0x00000002; - queryInfo.clear(); - return this; - } - - /** - *
-     * CLIDPGPDFGK IKGPADCBBPN = 4;
-     * 
- * - * optional .ChessRogueQuery query_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. - * - * Use {@link #getMutableQueryInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public ChessRogueQueryOuterClass.ChessRogueQuery getQueryInfo() { - return queryInfo; - } - - /** - *
-     * CLIDPGPDFGK IKGPADCBBPN = 4;
-     * 
- * - * optional .ChessRogueQuery query_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 - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public ChessRogueQueryOuterClass.ChessRogueQuery getMutableQueryInfo() { - bitField0_ |= 0x00000002; - return queryInfo; - } - - /** - *
-     * CLIDPGPDFGK IKGPADCBBPN = 4;
-     * 
- * - * optional .ChessRogueQuery query_info = 13; - * @param value the queryInfo to set - * @return this - */ - public ChessRogueNousQueryInfo setQueryInfo( - final ChessRogueQueryOuterClass.ChessRogueQuery value) { - bitField0_ |= 0x00000002; - queryInfo.copyFrom(value); - return this; - } - - /** - * repeated uint32 PHJAFGJHOCO = 7; - * @return whether the pHJAFGJHOCO field is set - */ - public boolean hasPHJAFGJHOCO() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * repeated uint32 PHJAFGJHOCO = 7; - * @return this - */ - public ChessRogueNousQueryInfo clearPHJAFGJHOCO() { - bitField0_ &= ~0x00000004; - pHJAFGJHOCO.clear(); - return this; - } - - /** - * repeated uint32 PHJAFGJHOCO = 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 #getMutablePHJAFGJHOCO()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedInt getPHJAFGJHOCO() { - return pHJAFGJHOCO; - } - - /** - * repeated uint32 PHJAFGJHOCO = 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 - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedInt getMutablePHJAFGJHOCO() { - bitField0_ |= 0x00000004; - return pHJAFGJHOCO; - } - - /** - * repeated uint32 PHJAFGJHOCO = 7; - * @param value the pHJAFGJHOCO to add - * @return this - */ - public ChessRogueNousQueryInfo addPHJAFGJHOCO(final int value) { - bitField0_ |= 0x00000004; - pHJAFGJHOCO.add(value); - return this; - } - - /** - * repeated uint32 PHJAFGJHOCO = 7; - * @param values the pHJAFGJHOCO to add - * @return this - */ - public ChessRogueNousQueryInfo addAllPHJAFGJHOCO(final int... values) { - bitField0_ |= 0x00000004; - pHJAFGJHOCO.addAll(values); - return this; - } - - /** - * repeated uint32 CMNHLKGFKOP = 8; - * @return whether the cMNHLKGFKOP field is set - */ - public boolean hasCMNHLKGFKOP() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * repeated uint32 CMNHLKGFKOP = 8; - * @return this - */ - public ChessRogueNousQueryInfo clearCMNHLKGFKOP() { - bitField0_ &= ~0x00000008; - cMNHLKGFKOP.clear(); - return this; - } - - /** - * repeated uint32 CMNHLKGFKOP = 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 #getMutableCMNHLKGFKOP()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedInt getCMNHLKGFKOP() { - return cMNHLKGFKOP; - } - - /** - * repeated uint32 CMNHLKGFKOP = 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 - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedInt getMutableCMNHLKGFKOP() { - bitField0_ |= 0x00000008; - return cMNHLKGFKOP; - } - - /** - * repeated uint32 CMNHLKGFKOP = 8; - * @param value the cMNHLKGFKOP to add - * @return this - */ - public ChessRogueNousQueryInfo addCMNHLKGFKOP(final int value) { - bitField0_ |= 0x00000008; - cMNHLKGFKOP.add(value); - return this; - } - - /** - * repeated uint32 CMNHLKGFKOP = 8; - * @param values the cMNHLKGFKOP to add - * @return this - */ - public ChessRogueNousQueryInfo addAllCMNHLKGFKOP(final int... values) { - bitField0_ |= 0x00000008; - cMNHLKGFKOP.addAll(values); - return this; - } - @Override public ChessRogueNousQueryInfo copyFrom(final ChessRogueNousQueryInfo other) { cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - jNAGMIALOII.copyFrom(other.jNAGMIALOII); - queryInfo.copyFrom(other.queryInfo); - pHJAFGJHOCO.copyFrom(other.pHJAFGJHOCO); - cMNHLKGFKOP.copyFrom(other.cMNHLKGFKOP); - } return this; } @@ -367,18 +57,6 @@ public final class ChessRogueNousQueryInfoOuterClass { return this; } cachedSize = -1; - if (other.hasJNAGMIALOII()) { - getMutableJNAGMIALOII().mergeFrom(other.jNAGMIALOII); - } - if (other.hasQueryInfo()) { - getMutableQueryInfo().mergeFrom(other.queryInfo); - } - if (other.hasPHJAFGJHOCO()) { - getMutablePHJAFGJHOCO().addAll(other.pHJAFGJHOCO); - } - if (other.hasCMNHLKGFKOP()) { - getMutableCMNHLKGFKOP().addAll(other.cMNHLKGFKOP); - } return this; } @@ -388,11 +66,6 @@ public final class ChessRogueNousQueryInfoOuterClass { return this; } cachedSize = -1; - bitField0_ = 0; - jNAGMIALOII.clear(); - queryInfo.clear(); - pHJAFGJHOCO.clear(); - cMNHLKGFKOP.clear(); return this; } @@ -402,11 +75,6 @@ public final class ChessRogueNousQueryInfoOuterClass { return this; } cachedSize = -1; - bitField0_ = 0; - jNAGMIALOII.clearQuick(); - queryInfo.clearQuick(); - pHJAFGJHOCO.clear(); - cMNHLKGFKOP.clear(); return this; } @@ -419,52 +87,16 @@ public final class ChessRogueNousQueryInfoOuterClass { return false; } ChessRogueNousQueryInfo other = (ChessRogueNousQueryInfo) o; - return bitField0_ == other.bitField0_ - && (!hasJNAGMIALOII() || jNAGMIALOII.equals(other.jNAGMIALOII)) - && (!hasQueryInfo() || queryInfo.equals(other.queryInfo)) - && (!hasPHJAFGJHOCO() || pHJAFGJHOCO.equals(other.pHJAFGJHOCO)) - && (!hasCMNHLKGFKOP() || cMNHLKGFKOP.equals(other.cMNHLKGFKOP)); + return true; } @Override public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 50); - output.writeMessageNoTag(jNAGMIALOII); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 106); - output.writeMessageNoTag(queryInfo); - } - if ((bitField0_ & 0x00000004) != 0) { - for (int i = 0; i < pHJAFGJHOCO.length(); i++) { - output.writeRawByte((byte) 56); - output.writeUInt32NoTag(pHJAFGJHOCO.array()[i]); - } - } - if ((bitField0_ & 0x00000008) != 0) { - for (int i = 0; i < cMNHLKGFKOP.length(); i++) { - output.writeRawByte((byte) 64); - output.writeUInt32NoTag(cMNHLKGFKOP.array()[i]); - } - } } @Override protected int computeSerializedSize() { int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(jNAGMIALOII); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(queryInfo); - } - if ((bitField0_ & 0x00000004) != 0) { - size += (1 * pHJAFGJHOCO.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(pHJAFGJHOCO); - } - if ((bitField0_ & 0x00000008) != 0) { - size += (1 * cMNHLKGFKOP.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(cMNHLKGFKOP); - } return size; } @@ -475,42 +107,6 @@ public final class ChessRogueNousQueryInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 50: { - // jNAGMIALOII - input.readMessage(jNAGMIALOII); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 106) { - break; - } - } - case 106: { - // queryInfo - input.readMessage(queryInfo); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 58) { - break; - } - } - case 58: { - // pHJAFGJHOCO [packed=true] - input.readPackedUInt32(pHJAFGJHOCO, tag); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 66) { - break; - } - } - case 66: { - // cMNHLKGFKOP [packed=true] - input.readPackedUInt32(cMNHLKGFKOP, tag); - bitField0_ |= 0x00000008; - tag = input.readTag(); - if (tag != 0) { - break; - } - } case 0: { return this; } @@ -521,18 +117,6 @@ public final class ChessRogueNousQueryInfoOuterClass { tag = input.readTag(); break; } - case 56: { - // pHJAFGJHOCO [packed=false] - tag = input.readRepeatedUInt32(pHJAFGJHOCO, tag); - bitField0_ |= 0x00000004; - break; - } - case 64: { - // cMNHLKGFKOP [packed=false] - tag = input.readRepeatedUInt32(cMNHLKGFKOP, tag); - bitField0_ |= 0x00000008; - break; - } } } } @@ -540,18 +124,6 @@ public final class ChessRogueNousQueryInfoOuterClass { @Override public void writeTo(final JsonSink output) throws IOException { output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeMessage(FieldNames.jNAGMIALOII, jNAGMIALOII); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeMessage(FieldNames.queryInfo, queryInfo); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRepeatedUInt32(FieldNames.pHJAFGJHOCO, pHJAFGJHOCO); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRepeatedUInt32(FieldNames.cMNHLKGFKOP, cMNHLKGFKOP); - } output.endObject(); } @@ -562,51 +134,6 @@ public final class ChessRogueNousQueryInfoOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1457066462: { - if (input.isAtField(FieldNames.jNAGMIALOII)) { - if (!input.trySkipNullValue()) { - input.readMessage(jNAGMIALOII); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1807200874: - case -168476219: { - if (input.isAtField(FieldNames.queryInfo)) { - if (!input.trySkipNullValue()) { - input.readMessage(queryInfo); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1818568397: { - if (input.isAtField(FieldNames.pHJAFGJHOCO)) { - if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(pHJAFGJHOCO); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case 243189738: { - if (input.isAtField(FieldNames.cMNHLKGFKOP)) { - if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(cMNHLKGFKOP); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } default: { input.skipUnknownField(); break; @@ -660,13 +187,6 @@ public final class ChessRogueNousQueryInfoOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName jNAGMIALOII = FieldName.forField("JNAGMIALOII"); - - static final FieldName queryInfo = FieldName.forField("queryInfo", "query_info"); - - static final FieldName pHJAFGJHOCO = FieldName.forField("PHJAFGJHOCO"); - - static final FieldName cMNHLKGFKOP = FieldName.forField("CMNHLKGFKOP"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/ChessRoguePhaseOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRoguePhaseOuterClass.java deleted file mode 100644 index d49a3e5..0000000 --- a/src/generated/main/emu/lunarcore/proto/ChessRoguePhaseOuterClass.java +++ /dev/null @@ -1,130 +0,0 @@ -// 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 ChessRoguePhaseOuterClass { - /** - * Protobuf enum {@code ChessRoguePhase} - */ - public enum ChessRoguePhase implements ProtoEnum { - /** - * NONE = 0; - */ - NONE("NONE", 0), - - /** - * PHASE_ONE = 1; - */ - PHASE_ONE("PHASE_ONE", 1), - - /** - * PHASE_TWO = 2; - */ - PHASE_TWO("PHASE_TWO", 2); - - /** - * NONE = 0; - */ - public static final int NONE_VALUE = 0; - - /** - * PHASE_ONE = 1; - */ - public static final int PHASE_ONE_VALUE = 1; - - /** - * PHASE_TWO = 2; - */ - public static final int PHASE_TWO_VALUE = 2; - - private final String name; - - private final int number; - - private ChessRoguePhase(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 ChessRoguePhaseConverter.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 ChessRoguePhase forNumber(int value) { - return ChessRoguePhaseConverter.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 ChessRoguePhase forNumberOr(int number, ChessRoguePhase other) { - ChessRoguePhase value = forNumber(number); - return value == null ? other : value; - } - - enum ChessRoguePhaseConverter implements ProtoEnum.EnumConverter { - INSTANCE; - - private static final ChessRoguePhase[] lookup = new ChessRoguePhase[3]; - - static { - lookup[0] = NONE; - lookup[1] = PHASE_ONE; - lookup[2] = PHASE_TWO; - } - - @Override - public final ChessRoguePhase forNumber(final int value) { - if (value >= 0 && value < lookup.length) { - return lookup[value]; - } - return null; - } - - @Override - public final ChessRoguePhase forName(final CharSequence value) { - if (value.length() == 4) { - if (ProtoUtil.isEqual("NONE", value)) { - return NONE; - } - } - if (value.length() == 9) { - if (ProtoUtil.isEqual("PHASE_ONE", value)) { - return PHASE_ONE; - } - if (ProtoUtil.isEqual("PHASE_TWO", value)) { - return PHASE_TWO; - } - } - return null; - } - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueQueryInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueQueryInfoOuterClass.java deleted file mode 100644 index 544f715..0000000 --- a/src/generated/main/emu/lunarcore/proto/ChessRogueQueryInfoOuterClass.java +++ /dev/null @@ -1,686 +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 ChessRogueQueryInfoOuterClass { - /** - * Protobuf type {@code ChessRogueQueryInfo} - */ - public static final class ChessRogueQueryInfo extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional .OFHBFINPHAG JNAGMIALOII = 3; - */ - private final OFHBFINPHAGOuterClass.OFHBFINPHAG jNAGMIALOII = OFHBFINPHAGOuterClass.OFHBFINPHAG.newInstance(); - - /** - * optional .ChessRogueQuery query_info = 14; - */ - private final ChessRogueQueryOuterClass.ChessRogueQuery queryInfo = ChessRogueQueryOuterClass.ChessRogueQuery.newInstance(); - - /** - *
-     * MAKPHMAOCHI talent_info = 11;
-     * 
- * - * repeated uint32 CMNHLKGFKOP = 4; - */ - private final RepeatedInt cMNHLKGFKOP = RepeatedInt.newEmptyInstance(); - - /** - *
-     * CGAPFPHEJIA EEFGNNFCDNJ = 6;
-     * CLIDPGPDFGK IKGPADCBBPN = 9;
-     * 
- * - * repeated uint32 PHJAFGJHOCO = 8; - */ - private final RepeatedInt pHJAFGJHOCO = RepeatedInt.newEmptyInstance(); - - private ChessRogueQueryInfo() { - } - - /** - * @return a new empty instance of {@code ChessRogueQueryInfo} - */ - public static ChessRogueQueryInfo newInstance() { - return new ChessRogueQueryInfo(); - } - - /** - * optional .OFHBFINPHAG JNAGMIALOII = 3; - * @return whether the jNAGMIALOII field is set - */ - public boolean hasJNAGMIALOII() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional .OFHBFINPHAG JNAGMIALOII = 3; - * @return this - */ - public ChessRogueQueryInfo clearJNAGMIALOII() { - bitField0_ &= ~0x00000001; - jNAGMIALOII.clear(); - return this; - } - - /** - * optional .OFHBFINPHAG JNAGMIALOII = 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 #getMutableJNAGMIALOII()} if you want to modify it. - * - * @return internal storage object for reading - */ - public OFHBFINPHAGOuterClass.OFHBFINPHAG getJNAGMIALOII() { - return jNAGMIALOII; - } - - /** - * optional .OFHBFINPHAG JNAGMIALOII = 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 - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public OFHBFINPHAGOuterClass.OFHBFINPHAG getMutableJNAGMIALOII() { - bitField0_ |= 0x00000001; - return jNAGMIALOII; - } - - /** - * optional .OFHBFINPHAG JNAGMIALOII = 3; - * @param value the jNAGMIALOII to set - * @return this - */ - public ChessRogueQueryInfo setJNAGMIALOII(final OFHBFINPHAGOuterClass.OFHBFINPHAG value) { - bitField0_ |= 0x00000001; - jNAGMIALOII.copyFrom(value); - return this; - } - - /** - * optional .ChessRogueQuery query_info = 14; - * @return whether the queryInfo field is set - */ - public boolean hasQueryInfo() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional .ChessRogueQuery query_info = 14; - * @return this - */ - public ChessRogueQueryInfo clearQueryInfo() { - bitField0_ &= ~0x00000002; - queryInfo.clear(); - return this; - } - - /** - * optional .ChessRogueQuery query_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. - * - * Use {@link #getMutableQueryInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public ChessRogueQueryOuterClass.ChessRogueQuery getQueryInfo() { - return queryInfo; - } - - /** - * optional .ChessRogueQuery query_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 - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public ChessRogueQueryOuterClass.ChessRogueQuery getMutableQueryInfo() { - bitField0_ |= 0x00000002; - return queryInfo; - } - - /** - * optional .ChessRogueQuery query_info = 14; - * @param value the queryInfo to set - * @return this - */ - public ChessRogueQueryInfo setQueryInfo(final ChessRogueQueryOuterClass.ChessRogueQuery value) { - bitField0_ |= 0x00000002; - queryInfo.copyFrom(value); - return this; - } - - /** - *
-     * MAKPHMAOCHI talent_info = 11;
-     * 
- * - * repeated uint32 CMNHLKGFKOP = 4; - * @return whether the cMNHLKGFKOP field is set - */ - public boolean hasCMNHLKGFKOP() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - *
-     * MAKPHMAOCHI talent_info = 11;
-     * 
- * - * repeated uint32 CMNHLKGFKOP = 4; - * @return this - */ - public ChessRogueQueryInfo clearCMNHLKGFKOP() { - bitField0_ &= ~0x00000004; - cMNHLKGFKOP.clear(); - return this; - } - - /** - *
-     * MAKPHMAOCHI talent_info = 11;
-     * 
- * - * repeated uint32 CMNHLKGFKOP = 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 #getMutableCMNHLKGFKOP()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedInt getCMNHLKGFKOP() { - return cMNHLKGFKOP; - } - - /** - *
-     * MAKPHMAOCHI talent_info = 11;
-     * 
- * - * repeated uint32 CMNHLKGFKOP = 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 RepeatedInt getMutableCMNHLKGFKOP() { - bitField0_ |= 0x00000004; - return cMNHLKGFKOP; - } - - /** - *
-     * MAKPHMAOCHI talent_info = 11;
-     * 
- * - * repeated uint32 CMNHLKGFKOP = 4; - * @param value the cMNHLKGFKOP to add - * @return this - */ - public ChessRogueQueryInfo addCMNHLKGFKOP(final int value) { - bitField0_ |= 0x00000004; - cMNHLKGFKOP.add(value); - return this; - } - - /** - *
-     * MAKPHMAOCHI talent_info = 11;
-     * 
- * - * repeated uint32 CMNHLKGFKOP = 4; - * @param values the cMNHLKGFKOP to add - * @return this - */ - public ChessRogueQueryInfo addAllCMNHLKGFKOP(final int... values) { - bitField0_ |= 0x00000004; - cMNHLKGFKOP.addAll(values); - return this; - } - - /** - *
-     * CGAPFPHEJIA EEFGNNFCDNJ = 6;
-     * CLIDPGPDFGK IKGPADCBBPN = 9;
-     * 
- * - * repeated uint32 PHJAFGJHOCO = 8; - * @return whether the pHJAFGJHOCO field is set - */ - public boolean hasPHJAFGJHOCO() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - *
-     * CGAPFPHEJIA EEFGNNFCDNJ = 6;
-     * CLIDPGPDFGK IKGPADCBBPN = 9;
-     * 
- * - * repeated uint32 PHJAFGJHOCO = 8; - * @return this - */ - public ChessRogueQueryInfo clearPHJAFGJHOCO() { - bitField0_ &= ~0x00000008; - pHJAFGJHOCO.clear(); - return this; - } - - /** - *
-     * CGAPFPHEJIA EEFGNNFCDNJ = 6;
-     * CLIDPGPDFGK IKGPADCBBPN = 9;
-     * 
- * - * repeated uint32 PHJAFGJHOCO = 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 #getMutablePHJAFGJHOCO()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedInt getPHJAFGJHOCO() { - return pHJAFGJHOCO; - } - - /** - *
-     * CGAPFPHEJIA EEFGNNFCDNJ = 6;
-     * CLIDPGPDFGK IKGPADCBBPN = 9;
-     * 
- * - * repeated uint32 PHJAFGJHOCO = 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 - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedInt getMutablePHJAFGJHOCO() { - bitField0_ |= 0x00000008; - return pHJAFGJHOCO; - } - - /** - *
-     * CGAPFPHEJIA EEFGNNFCDNJ = 6;
-     * CLIDPGPDFGK IKGPADCBBPN = 9;
-     * 
- * - * repeated uint32 PHJAFGJHOCO = 8; - * @param value the pHJAFGJHOCO to add - * @return this - */ - public ChessRogueQueryInfo addPHJAFGJHOCO(final int value) { - bitField0_ |= 0x00000008; - pHJAFGJHOCO.add(value); - return this; - } - - /** - *
-     * CGAPFPHEJIA EEFGNNFCDNJ = 6;
-     * CLIDPGPDFGK IKGPADCBBPN = 9;
-     * 
- * - * repeated uint32 PHJAFGJHOCO = 8; - * @param values the pHJAFGJHOCO to add - * @return this - */ - public ChessRogueQueryInfo addAllPHJAFGJHOCO(final int... values) { - bitField0_ |= 0x00000008; - pHJAFGJHOCO.addAll(values); - return this; - } - - @Override - public ChessRogueQueryInfo copyFrom(final ChessRogueQueryInfo other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - jNAGMIALOII.copyFrom(other.jNAGMIALOII); - queryInfo.copyFrom(other.queryInfo); - cMNHLKGFKOP.copyFrom(other.cMNHLKGFKOP); - pHJAFGJHOCO.copyFrom(other.pHJAFGJHOCO); - } - return this; - } - - @Override - public ChessRogueQueryInfo mergeFrom(final ChessRogueQueryInfo other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasJNAGMIALOII()) { - getMutableJNAGMIALOII().mergeFrom(other.jNAGMIALOII); - } - if (other.hasQueryInfo()) { - getMutableQueryInfo().mergeFrom(other.queryInfo); - } - if (other.hasCMNHLKGFKOP()) { - getMutableCMNHLKGFKOP().addAll(other.cMNHLKGFKOP); - } - if (other.hasPHJAFGJHOCO()) { - getMutablePHJAFGJHOCO().addAll(other.pHJAFGJHOCO); - } - return this; - } - - @Override - public ChessRogueQueryInfo clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - jNAGMIALOII.clear(); - queryInfo.clear(); - cMNHLKGFKOP.clear(); - pHJAFGJHOCO.clear(); - return this; - } - - @Override - public ChessRogueQueryInfo clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - jNAGMIALOII.clearQuick(); - queryInfo.clearQuick(); - cMNHLKGFKOP.clear(); - pHJAFGJHOCO.clear(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof ChessRogueQueryInfo)) { - return false; - } - ChessRogueQueryInfo other = (ChessRogueQueryInfo) o; - return bitField0_ == other.bitField0_ - && (!hasJNAGMIALOII() || jNAGMIALOII.equals(other.jNAGMIALOII)) - && (!hasQueryInfo() || queryInfo.equals(other.queryInfo)) - && (!hasCMNHLKGFKOP() || cMNHLKGFKOP.equals(other.cMNHLKGFKOP)) - && (!hasPHJAFGJHOCO() || pHJAFGJHOCO.equals(other.pHJAFGJHOCO)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 26); - output.writeMessageNoTag(jNAGMIALOII); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 114); - output.writeMessageNoTag(queryInfo); - } - if ((bitField0_ & 0x00000004) != 0) { - for (int i = 0; i < cMNHLKGFKOP.length(); i++) { - output.writeRawByte((byte) 32); - output.writeUInt32NoTag(cMNHLKGFKOP.array()[i]); - } - } - if ((bitField0_ & 0x00000008) != 0) { - for (int i = 0; i < pHJAFGJHOCO.length(); i++) { - output.writeRawByte((byte) 64); - output.writeUInt32NoTag(pHJAFGJHOCO.array()[i]); - } - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(jNAGMIALOII); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(queryInfo); - } - if ((bitField0_ & 0x00000004) != 0) { - size += (1 * cMNHLKGFKOP.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(cMNHLKGFKOP); - } - if ((bitField0_ & 0x00000008) != 0) { - size += (1 * pHJAFGJHOCO.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(pHJAFGJHOCO); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public ChessRogueQueryInfo mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 26: { - // jNAGMIALOII - input.readMessage(jNAGMIALOII); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 114) { - break; - } - } - case 114: { - // queryInfo - input.readMessage(queryInfo); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 34) { - break; - } - } - case 34: { - // cMNHLKGFKOP [packed=true] - input.readPackedUInt32(cMNHLKGFKOP, tag); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 66) { - break; - } - } - case 66: { - // pHJAFGJHOCO [packed=true] - input.readPackedUInt32(pHJAFGJHOCO, tag); - bitField0_ |= 0x00000008; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - case 32: { - // cMNHLKGFKOP [packed=false] - tag = input.readRepeatedUInt32(cMNHLKGFKOP, tag); - bitField0_ |= 0x00000004; - break; - } - case 64: { - // pHJAFGJHOCO [packed=false] - tag = input.readRepeatedUInt32(pHJAFGJHOCO, tag); - bitField0_ |= 0x00000008; - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeMessage(FieldNames.jNAGMIALOII, jNAGMIALOII); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeMessage(FieldNames.queryInfo, queryInfo); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRepeatedUInt32(FieldNames.cMNHLKGFKOP, cMNHLKGFKOP); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRepeatedUInt32(FieldNames.pHJAFGJHOCO, pHJAFGJHOCO); - } - output.endObject(); - } - - @Override - public ChessRogueQueryInfo mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 1457066462: { - if (input.isAtField(FieldNames.jNAGMIALOII)) { - if (!input.trySkipNullValue()) { - input.readMessage(jNAGMIALOII); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1807200874: - case -168476219: { - if (input.isAtField(FieldNames.queryInfo)) { - if (!input.trySkipNullValue()) { - input.readMessage(queryInfo); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case 243189738: { - if (input.isAtField(FieldNames.cMNHLKGFKOP)) { - if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(cMNHLKGFKOP); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1818568397: { - if (input.isAtField(FieldNames.pHJAFGJHOCO)) { - if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(pHJAFGJHOCO); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public ChessRogueQueryInfo clone() { - return new ChessRogueQueryInfo().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static ChessRogueQueryInfo parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new ChessRogueQueryInfo(), data).checkInitialized(); - } - - public static ChessRogueQueryInfo parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueQueryInfo(), input).checkInitialized(); - } - - public static ChessRogueQueryInfo parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueQueryInfo(), input).checkInitialized(); - } - - /** - * @return factory for creating ChessRogueQueryInfo messages - */ - public static MessageFactory getFactory() { - return ChessRogueQueryInfoFactory.INSTANCE; - } - - private enum ChessRogueQueryInfoFactory implements MessageFactory { - INSTANCE; - - @Override - public ChessRogueQueryInfo create() { - return ChessRogueQueryInfo.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName jNAGMIALOII = FieldName.forField("JNAGMIALOII"); - - static final FieldName queryInfo = FieldName.forField("queryInfo", "query_info"); - - static final FieldName cMNHLKGFKOP = FieldName.forField("CMNHLKGFKOP"); - - static final FieldName pHJAFGJHOCO = FieldName.forField("PHJAFGJHOCO"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueQueryOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueQueryOuterClass.java deleted file mode 100644 index 725284c..0000000 --- a/src/generated/main/emu/lunarcore/proto/ChessRogueQueryOuterClass.java +++ /dev/null @@ -1,970 +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; -import us.hebi.quickbuf.RepeatedMessage; - -public final class ChessRogueQueryOuterClass { - /** - * Protobuf type {@code ChessRogueQuery} - */ - public static final class ChessRogueQuery extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional .ChessRoguePhase phase = 10; - */ - private int phase; - - /** - * repeated uint32 main_story_id = 8; - */ - private final RepeatedInt mainStoryId = RepeatedInt.newEmptyInstance(); - - /** - * repeated .ChessRogueQuery.EKLAFMBHNIPEntry EKLAFMBHNIP = 6; - */ - private final RepeatedMessage eKLAFMBHNIP = RepeatedMessage.newEmptyInstance(EKLAFMBHNIPEntry.getFactory()); - - /** - * repeated .ChessRogueNousDiceInfo dice_info = 12; - */ - private final RepeatedMessage diceInfo = RepeatedMessage.newEmptyInstance(ChessRogueNousDiceInfoOuterClass.ChessRogueNousDiceInfo.getFactory()); - - private ChessRogueQuery() { - } - - /** - * @return a new empty instance of {@code ChessRogueQuery} - */ - public static ChessRogueQuery newInstance() { - return new ChessRogueQuery(); - } - - /** - * optional .ChessRoguePhase phase = 10; - * @return whether the phase field is set - */ - public boolean hasPhase() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional .ChessRoguePhase phase = 10; - * @return this - */ - public ChessRogueQuery clearPhase() { - bitField0_ &= ~0x00000001; - phase = 0; - return this; - } - - /** - * optional .ChessRoguePhase phase = 10; - * @return the phase - */ - public ChessRoguePhaseOuterClass.ChessRoguePhase getPhase() { - return ChessRoguePhaseOuterClass.ChessRoguePhase.forNumber(phase); - } - - /** - * Gets the value of the internal enum store. The result is - * equivalent to {@link ChessRogueQuery#getPhase()}.getNumber(). - * - * @return numeric wire representation - */ - public int getPhaseValue() { - return phase; - } - - /** - * 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 ChessRoguePhaseOuterClass.ChessRoguePhase}. Setting an invalid value - * can cause {@link ChessRogueQuery#getPhase()} to return null - * - * @param value the numeric wire value to set - * @return this - */ - public ChessRogueQuery setPhaseValue(final int value) { - bitField0_ |= 0x00000001; - phase = value; - return this; - } - - /** - * optional .ChessRoguePhase phase = 10; - * @param value the phase to set - * @return this - */ - public ChessRogueQuery setPhase(final ChessRoguePhaseOuterClass.ChessRoguePhase value) { - bitField0_ |= 0x00000001; - phase = value.getNumber(); - return this; - } - - /** - * repeated uint32 main_story_id = 8; - * @return whether the mainStoryId field is set - */ - public boolean hasMainStoryId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * repeated uint32 main_story_id = 8; - * @return this - */ - public ChessRogueQuery clearMainStoryId() { - bitField0_ &= ~0x00000002; - mainStoryId.clear(); - return this; - } - - /** - * repeated uint32 main_story_id = 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 #getMutableMainStoryId()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedInt getMainStoryId() { - return mainStoryId; - } - - /** - * repeated uint32 main_story_id = 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 - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedInt getMutableMainStoryId() { - bitField0_ |= 0x00000002; - return mainStoryId; - } - - /** - * repeated uint32 main_story_id = 8; - * @param value the mainStoryId to add - * @return this - */ - public ChessRogueQuery addMainStoryId(final int value) { - bitField0_ |= 0x00000002; - mainStoryId.add(value); - return this; - } - - /** - * repeated uint32 main_story_id = 8; - * @param values the mainStoryId to add - * @return this - */ - public ChessRogueQuery addAllMainStoryId(final int... values) { - bitField0_ |= 0x00000002; - mainStoryId.addAll(values); - return this; - } - - /** - * repeated .ChessRogueQuery.EKLAFMBHNIPEntry EKLAFMBHNIP = 6; - * @return whether the eKLAFMBHNIP field is set - */ - public boolean hasEKLAFMBHNIP() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * repeated .ChessRogueQuery.EKLAFMBHNIPEntry EKLAFMBHNIP = 6; - * @return this - */ - public ChessRogueQuery clearEKLAFMBHNIP() { - bitField0_ &= ~0x00000004; - eKLAFMBHNIP.clear(); - return this; - } - - /** - * repeated .ChessRogueQuery.EKLAFMBHNIPEntry EKLAFMBHNIP = 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 #getMutableEKLAFMBHNIP()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getEKLAFMBHNIP() { - return eKLAFMBHNIP; - } - - /** - * repeated .ChessRogueQuery.EKLAFMBHNIPEntry EKLAFMBHNIP = 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 - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableEKLAFMBHNIP() { - bitField0_ |= 0x00000004; - return eKLAFMBHNIP; - } - - /** - * repeated .ChessRogueQuery.EKLAFMBHNIPEntry EKLAFMBHNIP = 6; - * @param value the eKLAFMBHNIP to add - * @return this - */ - public ChessRogueQuery addEKLAFMBHNIP(final EKLAFMBHNIPEntry value) { - bitField0_ |= 0x00000004; - eKLAFMBHNIP.add(value); - return this; - } - - /** - * repeated .ChessRogueQuery.EKLAFMBHNIPEntry EKLAFMBHNIP = 6; - * @param values the eKLAFMBHNIP to add - * @return this - */ - public ChessRogueQuery addAllEKLAFMBHNIP(final EKLAFMBHNIPEntry... values) { - bitField0_ |= 0x00000004; - eKLAFMBHNIP.addAll(values); - return this; - } - - /** - * repeated .ChessRogueNousDiceInfo dice_info = 12; - * @return whether the diceInfo field is set - */ - public boolean hasDiceInfo() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * repeated .ChessRogueNousDiceInfo dice_info = 12; - * @return this - */ - public ChessRogueQuery clearDiceInfo() { - bitField0_ &= ~0x00000008; - diceInfo.clear(); - return this; - } - - /** - * repeated .ChessRogueNousDiceInfo dice_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. - * - * Use {@link #getMutableDiceInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getDiceInfo() { - return diceInfo; - } - - /** - * repeated .ChessRogueNousDiceInfo dice_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 - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableDiceInfo( - ) { - bitField0_ |= 0x00000008; - return diceInfo; - } - - /** - * repeated .ChessRogueNousDiceInfo dice_info = 12; - * @param value the diceInfo to add - * @return this - */ - public ChessRogueQuery addDiceInfo( - final ChessRogueNousDiceInfoOuterClass.ChessRogueNousDiceInfo value) { - bitField0_ |= 0x00000008; - diceInfo.add(value); - return this; - } - - /** - * repeated .ChessRogueNousDiceInfo dice_info = 12; - * @param values the diceInfo to add - * @return this - */ - public ChessRogueQuery addAllDiceInfo( - final ChessRogueNousDiceInfoOuterClass.ChessRogueNousDiceInfo... values) { - bitField0_ |= 0x00000008; - diceInfo.addAll(values); - return this; - } - - @Override - public ChessRogueQuery copyFrom(final ChessRogueQuery other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - phase = other.phase; - mainStoryId.copyFrom(other.mainStoryId); - eKLAFMBHNIP.copyFrom(other.eKLAFMBHNIP); - diceInfo.copyFrom(other.diceInfo); - } - return this; - } - - @Override - public ChessRogueQuery mergeFrom(final ChessRogueQuery other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasPhase()) { - setPhaseValue(other.phase); - } - if (other.hasMainStoryId()) { - getMutableMainStoryId().addAll(other.mainStoryId); - } - if (other.hasEKLAFMBHNIP()) { - getMutableEKLAFMBHNIP().addAll(other.eKLAFMBHNIP); - } - if (other.hasDiceInfo()) { - getMutableDiceInfo().addAll(other.diceInfo); - } - return this; - } - - @Override - public ChessRogueQuery clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - phase = 0; - mainStoryId.clear(); - eKLAFMBHNIP.clear(); - diceInfo.clear(); - return this; - } - - @Override - public ChessRogueQuery clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - mainStoryId.clear(); - eKLAFMBHNIP.clearQuick(); - diceInfo.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof ChessRogueQuery)) { - return false; - } - ChessRogueQuery other = (ChessRogueQuery) o; - return bitField0_ == other.bitField0_ - && (!hasPhase() || phase == other.phase) - && (!hasMainStoryId() || mainStoryId.equals(other.mainStoryId)) - && (!hasEKLAFMBHNIP() || eKLAFMBHNIP.equals(other.eKLAFMBHNIP)) - && (!hasDiceInfo() || diceInfo.equals(other.diceInfo)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 80); - output.writeEnumNoTag(phase); - } - if ((bitField0_ & 0x00000002) != 0) { - for (int i = 0; i < mainStoryId.length(); i++) { - output.writeRawByte((byte) 64); - output.writeUInt32NoTag(mainStoryId.array()[i]); - } - } - if ((bitField0_ & 0x00000004) != 0) { - for (int i = 0; i < eKLAFMBHNIP.length(); i++) { - output.writeRawByte((byte) 50); - output.writeMessageNoTag(eKLAFMBHNIP.get(i)); - } - } - if ((bitField0_ & 0x00000008) != 0) { - for (int i = 0; i < diceInfo.length(); i++) { - output.writeRawByte((byte) 98); - output.writeMessageNoTag(diceInfo.get(i)); - } - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeEnumSizeNoTag(phase); - } - if ((bitField0_ & 0x00000002) != 0) { - size += (1 * mainStoryId.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(mainStoryId); - } - if ((bitField0_ & 0x00000004) != 0) { - size += (1 * eKLAFMBHNIP.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(eKLAFMBHNIP); - } - if ((bitField0_ & 0x00000008) != 0) { - size += (1 * diceInfo.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(diceInfo); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public ChessRogueQuery mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 80: { - // phase - final int value = input.readInt32(); - if (ChessRoguePhaseOuterClass.ChessRoguePhase.forNumber(value) != null) { - phase = value; - bitField0_ |= 0x00000001; - } - tag = input.readTag(); - if (tag != 66) { - break; - } - } - case 66: { - // mainStoryId [packed=true] - input.readPackedUInt32(mainStoryId, tag); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 50) { - break; - } - } - case 50: { - // eKLAFMBHNIP - tag = input.readRepeatedMessage(eKLAFMBHNIP, tag); - bitField0_ |= 0x00000004; - if (tag != 98) { - break; - } - } - case 98: { - // diceInfo - tag = input.readRepeatedMessage(diceInfo, tag); - bitField0_ |= 0x00000008; - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - case 64: { - // mainStoryId [packed=false] - tag = input.readRepeatedUInt32(mainStoryId, tag); - bitField0_ |= 0x00000002; - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeEnum(FieldNames.phase, phase, ChessRoguePhaseOuterClass.ChessRoguePhase.converter()); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRepeatedUInt32(FieldNames.mainStoryId, mainStoryId); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRepeatedMessage(FieldNames.eKLAFMBHNIP, eKLAFMBHNIP); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRepeatedMessage(FieldNames.diceInfo, diceInfo); - } - output.endObject(); - } - - @Override - public ChessRogueQuery mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 106629499: { - if (input.isAtField(FieldNames.phase)) { - if (!input.trySkipNullValue()) { - final ChessRoguePhaseOuterClass.ChessRoguePhase value = input.readEnum(ChessRoguePhaseOuterClass.ChessRoguePhase.converter()); - if (value != null) { - phase = value.getNumber(); - bitField0_ |= 0x00000001; - } else { - input.skipUnknownEnumValue(); - } - } - } else { - input.skipUnknownField(); - } - break; - } - case 1525676279: - case -314743701: { - if (input.isAtField(FieldNames.mainStoryId)) { - if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(mainStoryId); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case 365100685: { - if (input.isAtField(FieldNames.eKLAFMBHNIP)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(eKLAFMBHNIP); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case -184174347: - case -1394261434: { - if (input.isAtField(FieldNames.diceInfo)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(diceInfo); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public ChessRogueQuery clone() { - return new ChessRogueQuery().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static ChessRogueQuery parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new ChessRogueQuery(), data).checkInitialized(); - } - - public static ChessRogueQuery parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueQuery(), input).checkInitialized(); - } - - public static ChessRogueQuery parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueQuery(), input).checkInitialized(); - } - - /** - * @return factory for creating ChessRogueQuery messages - */ - public static MessageFactory getFactory() { - return ChessRogueQueryFactory.INSTANCE; - } - - /** - * Protobuf type {@code EKLAFMBHNIPEntry} - */ - public static final class EKLAFMBHNIPEntry extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 key = 1; - */ - private int key; - - /** - * optional bool value = 2; - */ - private boolean value_; - - private EKLAFMBHNIPEntry() { - } - - /** - * @return a new empty instance of {@code EKLAFMBHNIPEntry} - */ - public static EKLAFMBHNIPEntry newInstance() { - return new EKLAFMBHNIPEntry(); - } - - /** - * optional uint32 key = 1; - * @return whether the key field is set - */ - public boolean hasKey() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 key = 1; - * @return this - */ - public EKLAFMBHNIPEntry clearKey() { - bitField0_ &= ~0x00000001; - key = 0; - return this; - } - - /** - * optional uint32 key = 1; - * @return the key - */ - public int getKey() { - return key; - } - - /** - * optional uint32 key = 1; - * @param value the key to set - * @return this - */ - public EKLAFMBHNIPEntry setKey(final int value) { - bitField0_ |= 0x00000001; - key = value; - return this; - } - - /** - * optional bool value = 2; - * @return whether the value_ field is set - */ - public boolean hasValue() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional bool value = 2; - * @return this - */ - public EKLAFMBHNIPEntry clearValue() { - bitField0_ &= ~0x00000002; - value_ = false; - return this; - } - - /** - * optional bool value = 2; - * @return the value_ - */ - public boolean getValue() { - return value_; - } - - /** - * optional bool value = 2; - * @param value the value_ to set - * @return this - */ - public EKLAFMBHNIPEntry setValue(final boolean value) { - bitField0_ |= 0x00000002; - value_ = value; - return this; - } - - @Override - public EKLAFMBHNIPEntry copyFrom(final EKLAFMBHNIPEntry other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - key = other.key; - value_ = other.value_; - } - return this; - } - - @Override - public EKLAFMBHNIPEntry mergeFrom(final EKLAFMBHNIPEntry other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasKey()) { - setKey(other.key); - } - if (other.hasValue()) { - setValue(other.value_); - } - return this; - } - - @Override - public EKLAFMBHNIPEntry clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - key = 0; - value_ = false; - return this; - } - - @Override - public EKLAFMBHNIPEntry 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 EKLAFMBHNIPEntry)) { - return false; - } - EKLAFMBHNIPEntry other = (EKLAFMBHNIPEntry) o; - return bitField0_ == other.bitField0_ - && (!hasKey() || key == other.key) - && (!hasValue() || value_ == other.value_); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(key); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 16); - output.writeBoolNoTag(value_); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(key); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 2; - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public EKLAFMBHNIPEntry mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 8: { - // key - key = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 16) { - break; - } - } - case 16: { - // value_ - value_ = input.readBool(); - 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.key, key); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeBool(FieldNames.value_, value_); - } - output.endObject(); - } - - @Override - public EKLAFMBHNIPEntry mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 106079: { - if (input.isAtField(FieldNames.key)) { - if (!input.trySkipNullValue()) { - key = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case 111972721: { - if (input.isAtField(FieldNames.value_)) { - if (!input.trySkipNullValue()) { - value_ = input.readBool(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public EKLAFMBHNIPEntry clone() { - return new EKLAFMBHNIPEntry().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static EKLAFMBHNIPEntry parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new EKLAFMBHNIPEntry(), data).checkInitialized(); - } - - public static EKLAFMBHNIPEntry parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new EKLAFMBHNIPEntry(), input).checkInitialized(); - } - - public static EKLAFMBHNIPEntry parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new EKLAFMBHNIPEntry(), input).checkInitialized(); - } - - /** - * @return factory for creating EKLAFMBHNIPEntry messages - */ - public static MessageFactory getFactory() { - return EKLAFMBHNIPEntryFactory.INSTANCE; - } - - private enum EKLAFMBHNIPEntryFactory implements MessageFactory { - INSTANCE; - - @Override - public EKLAFMBHNIPEntry create() { - return EKLAFMBHNIPEntry.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName key = FieldName.forField("key"); - - static final FieldName value_ = FieldName.forField("value"); - } - } - - private enum ChessRogueQueryFactory implements MessageFactory { - INSTANCE; - - @Override - public ChessRogueQuery create() { - return ChessRogueQuery.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName phase = FieldName.forField("phase"); - - static final FieldName mainStoryId = FieldName.forField("mainStoryId", "main_story_id"); - - static final FieldName eKLAFMBHNIP = FieldName.forField("EKLAFMBHNIP"); - - static final FieldName diceInfo = FieldName.forField("diceInfo", "dice_info"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueQueryScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueQueryScRspOuterClass.java deleted file mode 100644 index b0ae37a..0000000 --- a/src/generated/main/emu/lunarcore/proto/ChessRogueQueryScRspOuterClass.java +++ /dev/null @@ -1,597 +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 ChessRogueQueryScRspOuterClass { - /** - * Protobuf type {@code ChessRogueQueryScRsp} - */ - public static final class ChessRogueQueryScRsp extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 retcode = 3; - */ - private int retcode; - - /** - *
-     * HLODEEONDBF OBGFEMEOJCE = 15;
-     * HFKELKECMJE MKCLHOMEICF = 4;
-     * 
- * - * optional .ChessRogueQueryInfo NOGDNLNLMJH = 9; - */ - private final ChessRogueQueryInfoOuterClass.ChessRogueQueryInfo nOGDNLNLMJH = ChessRogueQueryInfoOuterClass.ChessRogueQueryInfo.newInstance(); - - /** - * optional .ChessRogueNousQueryInfo rogue_nous = 10; - */ - private final ChessRogueNousQueryInfoOuterClass.ChessRogueNousQueryInfo rogueNous = ChessRogueNousQueryInfoOuterClass.ChessRogueNousQueryInfo.newInstance(); - - /** - * optional .ChessRogueCurrentInfo current_info = 12; - */ - private final ChessRogueCurrentInfoOuterClass.ChessRogueCurrentInfo currentInfo = ChessRogueCurrentInfoOuterClass.ChessRogueCurrentInfo.newInstance(); - - private ChessRogueQueryScRsp() { - } - - /** - * @return a new empty instance of {@code ChessRogueQueryScRsp} - */ - public static ChessRogueQueryScRsp newInstance() { - return new ChessRogueQueryScRsp(); - } - - /** - * optional uint32 retcode = 3; - * @return whether the retcode field is set - */ - public boolean hasRetcode() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 retcode = 3; - * @return this - */ - public ChessRogueQueryScRsp clearRetcode() { - bitField0_ &= ~0x00000001; - retcode = 0; - return this; - } - - /** - * optional uint32 retcode = 3; - * @return the retcode - */ - public int getRetcode() { - return retcode; - } - - /** - * optional uint32 retcode = 3; - * @param value the retcode to set - * @return this - */ - public ChessRogueQueryScRsp setRetcode(final int value) { - bitField0_ |= 0x00000001; - retcode = value; - return this; - } - - /** - *
-     * HLODEEONDBF OBGFEMEOJCE = 15;
-     * HFKELKECMJE MKCLHOMEICF = 4;
-     * 
- * - * optional .ChessRogueQueryInfo NOGDNLNLMJH = 9; - * @return whether the nOGDNLNLMJH field is set - */ - public boolean hasNOGDNLNLMJH() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - *
-     * HLODEEONDBF OBGFEMEOJCE = 15;
-     * HFKELKECMJE MKCLHOMEICF = 4;
-     * 
- * - * optional .ChessRogueQueryInfo NOGDNLNLMJH = 9; - * @return this - */ - public ChessRogueQueryScRsp clearNOGDNLNLMJH() { - bitField0_ &= ~0x00000002; - nOGDNLNLMJH.clear(); - return this; - } - - /** - *
-     * HLODEEONDBF OBGFEMEOJCE = 15;
-     * HFKELKECMJE MKCLHOMEICF = 4;
-     * 
- * - * optional .ChessRogueQueryInfo NOGDNLNLMJH = 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 #getMutableNOGDNLNLMJH()} if you want to modify it. - * - * @return internal storage object for reading - */ - public ChessRogueQueryInfoOuterClass.ChessRogueQueryInfo getNOGDNLNLMJH() { - return nOGDNLNLMJH; - } - - /** - *
-     * HLODEEONDBF OBGFEMEOJCE = 15;
-     * HFKELKECMJE MKCLHOMEICF = 4;
-     * 
- * - * optional .ChessRogueQueryInfo NOGDNLNLMJH = 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 - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public ChessRogueQueryInfoOuterClass.ChessRogueQueryInfo getMutableNOGDNLNLMJH() { - bitField0_ |= 0x00000002; - return nOGDNLNLMJH; - } - - /** - *
-     * HLODEEONDBF OBGFEMEOJCE = 15;
-     * HFKELKECMJE MKCLHOMEICF = 4;
-     * 
- * - * optional .ChessRogueQueryInfo NOGDNLNLMJH = 9; - * @param value the nOGDNLNLMJH to set - * @return this - */ - public ChessRogueQueryScRsp setNOGDNLNLMJH( - final ChessRogueQueryInfoOuterClass.ChessRogueQueryInfo value) { - bitField0_ |= 0x00000002; - nOGDNLNLMJH.copyFrom(value); - return this; - } - - /** - * optional .ChessRogueNousQueryInfo rogue_nous = 10; - * @return whether the rogueNous field is set - */ - public boolean hasRogueNous() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional .ChessRogueNousQueryInfo rogue_nous = 10; - * @return this - */ - public ChessRogueQueryScRsp clearRogueNous() { - bitField0_ &= ~0x00000004; - rogueNous.clear(); - return this; - } - - /** - * optional .ChessRogueNousQueryInfo rogue_nous = 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 #getMutableRogueNous()} if you want to modify it. - * - * @return internal storage object for reading - */ - public ChessRogueNousQueryInfoOuterClass.ChessRogueNousQueryInfo getRogueNous() { - return rogueNous; - } - - /** - * optional .ChessRogueNousQueryInfo rogue_nous = 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 - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public ChessRogueNousQueryInfoOuterClass.ChessRogueNousQueryInfo getMutableRogueNous() { - bitField0_ |= 0x00000004; - return rogueNous; - } - - /** - * optional .ChessRogueNousQueryInfo rogue_nous = 10; - * @param value the rogueNous to set - * @return this - */ - public ChessRogueQueryScRsp setRogueNous( - final ChessRogueNousQueryInfoOuterClass.ChessRogueNousQueryInfo value) { - bitField0_ |= 0x00000004; - rogueNous.copyFrom(value); - return this; - } - - /** - * optional .ChessRogueCurrentInfo current_info = 12; - * @return whether the currentInfo field is set - */ - public boolean hasCurrentInfo() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional .ChessRogueCurrentInfo current_info = 12; - * @return this - */ - public ChessRogueQueryScRsp clearCurrentInfo() { - bitField0_ &= ~0x00000008; - currentInfo.clear(); - return this; - } - - /** - * optional .ChessRogueCurrentInfo current_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. - * - * Use {@link #getMutableCurrentInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public ChessRogueCurrentInfoOuterClass.ChessRogueCurrentInfo getCurrentInfo() { - return currentInfo; - } - - /** - * optional .ChessRogueCurrentInfo current_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 - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public ChessRogueCurrentInfoOuterClass.ChessRogueCurrentInfo getMutableCurrentInfo() { - bitField0_ |= 0x00000008; - return currentInfo; - } - - /** - * optional .ChessRogueCurrentInfo current_info = 12; - * @param value the currentInfo to set - * @return this - */ - public ChessRogueQueryScRsp setCurrentInfo( - final ChessRogueCurrentInfoOuterClass.ChessRogueCurrentInfo value) { - bitField0_ |= 0x00000008; - currentInfo.copyFrom(value); - return this; - } - - @Override - public ChessRogueQueryScRsp copyFrom(final ChessRogueQueryScRsp other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - retcode = other.retcode; - nOGDNLNLMJH.copyFrom(other.nOGDNLNLMJH); - rogueNous.copyFrom(other.rogueNous); - currentInfo.copyFrom(other.currentInfo); - } - return this; - } - - @Override - public ChessRogueQueryScRsp mergeFrom(final ChessRogueQueryScRsp other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasRetcode()) { - setRetcode(other.retcode); - } - if (other.hasNOGDNLNLMJH()) { - getMutableNOGDNLNLMJH().mergeFrom(other.nOGDNLNLMJH); - } - if (other.hasRogueNous()) { - getMutableRogueNous().mergeFrom(other.rogueNous); - } - if (other.hasCurrentInfo()) { - getMutableCurrentInfo().mergeFrom(other.currentInfo); - } - return this; - } - - @Override - public ChessRogueQueryScRsp clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - retcode = 0; - nOGDNLNLMJH.clear(); - rogueNous.clear(); - currentInfo.clear(); - return this; - } - - @Override - public ChessRogueQueryScRsp clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - nOGDNLNLMJH.clearQuick(); - rogueNous.clearQuick(); - currentInfo.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof ChessRogueQueryScRsp)) { - return false; - } - ChessRogueQueryScRsp other = (ChessRogueQueryScRsp) o; - return bitField0_ == other.bitField0_ - && (!hasRetcode() || retcode == other.retcode) - && (!hasNOGDNLNLMJH() || nOGDNLNLMJH.equals(other.nOGDNLNLMJH)) - && (!hasRogueNous() || rogueNous.equals(other.rogueNous)) - && (!hasCurrentInfo() || currentInfo.equals(other.currentInfo)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(retcode); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 74); - output.writeMessageNoTag(nOGDNLNLMJH); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 82); - output.writeMessageNoTag(rogueNous); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 98); - output.writeMessageNoTag(currentInfo); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(nOGDNLNLMJH); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(rogueNous); - } - if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(currentInfo); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public ChessRogueQueryScRsp mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 24: { - // retcode - retcode = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 74) { - break; - } - } - case 74: { - // nOGDNLNLMJH - input.readMessage(nOGDNLNLMJH); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 82) { - break; - } - } - case 82: { - // rogueNous - input.readMessage(rogueNous); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 98) { - break; - } - } - case 98: { - // currentInfo - input.readMessage(currentInfo); - bitField0_ |= 0x00000008; - 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.retcode, retcode); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeMessage(FieldNames.nOGDNLNLMJH, nOGDNLNLMJH); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeMessage(FieldNames.rogueNous, rogueNous); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeMessage(FieldNames.currentInfo, currentInfo); - } - output.endObject(); - } - - @Override - public ChessRogueQueryScRsp 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 459821233: { - if (input.isAtField(FieldNames.nOGDNLNLMJH)) { - if (!input.trySkipNullValue()) { - input.readMessage(nOGDNLNLMJH); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case 655959321: - case -1124433052: { - if (input.isAtField(FieldNames.rogueNous)) { - if (!input.trySkipNullValue()) { - input.readMessage(rogueNous); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case 600912327: - case 1468588980: { - if (input.isAtField(FieldNames.currentInfo)) { - if (!input.trySkipNullValue()) { - input.readMessage(currentInfo); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public ChessRogueQueryScRsp clone() { - return new ChessRogueQueryScRsp().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static ChessRogueQueryScRsp parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new ChessRogueQueryScRsp(), data).checkInitialized(); - } - - public static ChessRogueQueryScRsp parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueQueryScRsp(), input).checkInitialized(); - } - - public static ChessRogueQueryScRsp parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueQueryScRsp(), input).checkInitialized(); - } - - /** - * @return factory for creating ChessRogueQueryScRsp messages - */ - public static MessageFactory getFactory() { - return ChessRogueQueryScRspFactory.INSTANCE; - } - - private enum ChessRogueQueryScRspFactory implements MessageFactory { - INSTANCE; - - @Override - public ChessRogueQueryScRsp create() { - return ChessRogueQueryScRsp.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName retcode = FieldName.forField("retcode"); - - static final FieldName nOGDNLNLMJH = FieldName.forField("NOGDNLNLMJH"); - - static final FieldName rogueNous = FieldName.forField("rogueNous", "rogue_nous"); - - static final FieldName currentInfo = FieldName.forField("currentInfo", "current_info"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/ClientMailOuterClass.java b/src/generated/main/emu/lunarcore/proto/ClientMailOuterClass.java index 66e9fe8..9696745 100644 --- a/src/generated/main/emu/lunarcore/proto/ClientMailOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ClientMailOuterClass.java @@ -21,52 +21,52 @@ public final class ClientMailOuterClass { private static final long serialVersionUID = 0L; /** - * optional int64 expire_time = 3; + * optional int64 expire_time = 14; */ private long expireTime; /** - * optional int64 time = 4; + * optional int64 time = 15; */ private long time; /** - * optional uint32 id = 13; + * optional uint32 id = 1; */ private int id; /** - * optional uint32 template_id = 14; + * optional uint32 template_id = 9; */ private int templateId; /** - * optional bool is_read = 10; + * optional bool is_read = 2; */ private boolean isRead; /** - * optional .ItemList attachment = 5; + * optional .ItemList attachment = 11; */ private final ItemListOuterClass.ItemList attachment = ItemListOuterClass.ItemList.newInstance(); /** - * optional string title = 8; - */ - private final Utf8String title = Utf8String.newEmptyInstance(); - - /** - * optional string content = 11; - */ - private final Utf8String content = Utf8String.newEmptyInstance(); - - /** - * optional string sender = 15; + * optional string sender = 5; */ private final Utf8String sender = Utf8String.newEmptyInstance(); /** - * repeated string para_list = 1; + * optional string content = 6; + */ + private final Utf8String content = Utf8String.newEmptyInstance(); + + /** + * optional string title = 7; + */ + private final Utf8String title = Utf8String.newEmptyInstance(); + + /** + * repeated string para_list = 4; */ private final RepeatedString paraList = RepeatedString.newEmptyInstance(); @@ -81,7 +81,7 @@ public final class ClientMailOuterClass { } /** - * optional int64 expire_time = 3; + * optional int64 expire_time = 14; * @return whether the expireTime field is set */ public boolean hasExpireTime() { @@ -89,7 +89,7 @@ public final class ClientMailOuterClass { } /** - * optional int64 expire_time = 3; + * optional int64 expire_time = 14; * @return this */ public ClientMail clearExpireTime() { @@ -99,7 +99,7 @@ public final class ClientMailOuterClass { } /** - * optional int64 expire_time = 3; + * optional int64 expire_time = 14; * @return the expireTime */ public long getExpireTime() { @@ -107,7 +107,7 @@ public final class ClientMailOuterClass { } /** - * optional int64 expire_time = 3; + * optional int64 expire_time = 14; * @param value the expireTime to set * @return this */ @@ -118,7 +118,7 @@ public final class ClientMailOuterClass { } /** - * optional int64 time = 4; + * optional int64 time = 15; * @return whether the time field is set */ public boolean hasTime() { @@ -126,7 +126,7 @@ public final class ClientMailOuterClass { } /** - * optional int64 time = 4; + * optional int64 time = 15; * @return this */ public ClientMail clearTime() { @@ -136,7 +136,7 @@ public final class ClientMailOuterClass { } /** - * optional int64 time = 4; + * optional int64 time = 15; * @return the time */ public long getTime() { @@ -144,7 +144,7 @@ public final class ClientMailOuterClass { } /** - * optional int64 time = 4; + * optional int64 time = 15; * @param value the time to set * @return this */ @@ -155,7 +155,7 @@ public final class ClientMailOuterClass { } /** - * optional uint32 id = 13; + * optional uint32 id = 1; * @return whether the id field is set */ public boolean hasId() { @@ -163,7 +163,7 @@ public final class ClientMailOuterClass { } /** - * optional uint32 id = 13; + * optional uint32 id = 1; * @return this */ public ClientMail clearId() { @@ -173,7 +173,7 @@ public final class ClientMailOuterClass { } /** - * optional uint32 id = 13; + * optional uint32 id = 1; * @return the id */ public int getId() { @@ -181,7 +181,7 @@ public final class ClientMailOuterClass { } /** - * optional uint32 id = 13; + * optional uint32 id = 1; * @param value the id to set * @return this */ @@ -192,7 +192,7 @@ public final class ClientMailOuterClass { } /** - * optional uint32 template_id = 14; + * optional uint32 template_id = 9; * @return whether the templateId field is set */ public boolean hasTemplateId() { @@ -200,7 +200,7 @@ public final class ClientMailOuterClass { } /** - * optional uint32 template_id = 14; + * optional uint32 template_id = 9; * @return this */ public ClientMail clearTemplateId() { @@ -210,7 +210,7 @@ public final class ClientMailOuterClass { } /** - * optional uint32 template_id = 14; + * optional uint32 template_id = 9; * @return the templateId */ public int getTemplateId() { @@ -218,7 +218,7 @@ public final class ClientMailOuterClass { } /** - * optional uint32 template_id = 14; + * optional uint32 template_id = 9; * @param value the templateId to set * @return this */ @@ -229,7 +229,7 @@ public final class ClientMailOuterClass { } /** - * optional bool is_read = 10; + * optional bool is_read = 2; * @return whether the isRead field is set */ public boolean hasIsRead() { @@ -237,7 +237,7 @@ public final class ClientMailOuterClass { } /** - * optional bool is_read = 10; + * optional bool is_read = 2; * @return this */ public ClientMail clearIsRead() { @@ -247,7 +247,7 @@ public final class ClientMailOuterClass { } /** - * optional bool is_read = 10; + * optional bool is_read = 2; * @return the isRead */ public boolean getIsRead() { @@ -255,7 +255,7 @@ public final class ClientMailOuterClass { } /** - * optional bool is_read = 10; + * optional bool is_read = 2; * @param value the isRead to set * @return this */ @@ -266,7 +266,7 @@ public final class ClientMailOuterClass { } /** - * optional .ItemList attachment = 5; + * optional .ItemList attachment = 11; * @return whether the attachment field is set */ public boolean hasAttachment() { @@ -274,7 +274,7 @@ public final class ClientMailOuterClass { } /** - * optional .ItemList attachment = 5; + * optional .ItemList attachment = 11; * @return this */ public ClientMail clearAttachment() { @@ -284,7 +284,7 @@ public final class ClientMailOuterClass { } /** - * optional .ItemList attachment = 5; + * optional .ItemList attachment = 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. @@ -298,7 +298,7 @@ public final class ClientMailOuterClass { } /** - * optional .ItemList attachment = 5; + * optional .ItemList attachment = 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 @@ -312,7 +312,7 @@ public final class ClientMailOuterClass { } /** - * optional .ItemList attachment = 5; + * optional .ItemList attachment = 11; * @param value the attachment to set * @return this */ @@ -323,72 +323,72 @@ public final class ClientMailOuterClass { } /** - * optional string title = 8; - * @return whether the title field is set + * optional string sender = 5; + * @return whether the sender field is set */ - public boolean hasTitle() { + public boolean hasSender() { return (bitField0_ & 0x00000040) != 0; } /** - * optional string title = 8; + * optional string sender = 5; * @return this */ - public ClientMail clearTitle() { + public ClientMail clearSender() { bitField0_ &= ~0x00000040; - title.clear(); + sender.clear(); return this; } /** - * optional string title = 8; - * @return the title + * optional string sender = 5; + * @return the sender */ - public String getTitle() { - return title.getString(); + public String getSender() { + return sender.getString(); } /** - * optional string title = 8; - * @return internal {@code Utf8String} representation of title for reading + * optional string sender = 5; + * @return internal {@code Utf8String} representation of sender for reading */ - public Utf8String getTitleBytes() { - return this.title; + public Utf8String getSenderBytes() { + return this.sender; } /** - * optional string title = 8; - * @return internal {@code Utf8String} representation of title for modifications + * optional string sender = 5; + * @return internal {@code Utf8String} representation of sender for modifications */ - public Utf8String getMutableTitleBytes() { + public Utf8String getMutableSenderBytes() { bitField0_ |= 0x00000040; - return this.title; + return this.sender; } /** - * optional string title = 8; - * @param value the title to set + * optional string sender = 5; + * @param value the sender to set * @return this */ - public ClientMail setTitle(final CharSequence value) { + public ClientMail setSender(final CharSequence value) { bitField0_ |= 0x00000040; - title.copyFrom(value); + sender.copyFrom(value); return this; } /** - * optional string title = 8; - * @param value the title to set + * optional string sender = 5; + * @param value the sender to set * @return this */ - public ClientMail setTitle(final Utf8String value) { + public ClientMail setSender(final Utf8String value) { bitField0_ |= 0x00000040; - title.copyFrom(value); + sender.copyFrom(value); return this; } /** - * optional string content = 11; + * optional string content = 6; * @return whether the content field is set */ public boolean hasContent() { @@ -396,7 +396,7 @@ public final class ClientMailOuterClass { } /** - * optional string content = 11; + * optional string content = 6; * @return this */ public ClientMail clearContent() { @@ -406,7 +406,7 @@ public final class ClientMailOuterClass { } /** - * optional string content = 11; + * optional string content = 6; * @return the content */ public String getContent() { @@ -414,7 +414,7 @@ public final class ClientMailOuterClass { } /** - * optional string content = 11; + * optional string content = 6; * @return internal {@code Utf8String} representation of content for reading */ public Utf8String getContentBytes() { @@ -422,7 +422,7 @@ public final class ClientMailOuterClass { } /** - * optional string content = 11; + * optional string content = 6; * @return internal {@code Utf8String} representation of content for modifications */ public Utf8String getMutableContentBytes() { @@ -431,7 +431,7 @@ public final class ClientMailOuterClass { } /** - * optional string content = 11; + * optional string content = 6; * @param value the content to set * @return this */ @@ -442,7 +442,7 @@ public final class ClientMailOuterClass { } /** - * optional string content = 11; + * optional string content = 6; * @param value the content to set * @return this */ @@ -453,72 +453,72 @@ public final class ClientMailOuterClass { } /** - * optional string sender = 15; - * @return whether the sender field is set + * optional string title = 7; + * @return whether the title field is set */ - public boolean hasSender() { + public boolean hasTitle() { return (bitField0_ & 0x00000100) != 0; } /** - * optional string sender = 15; + * optional string title = 7; * @return this */ - public ClientMail clearSender() { + public ClientMail clearTitle() { bitField0_ &= ~0x00000100; - sender.clear(); + title.clear(); return this; } /** - * optional string sender = 15; - * @return the sender + * optional string title = 7; + * @return the title */ - public String getSender() { - return sender.getString(); + public String getTitle() { + return title.getString(); } /** - * optional string sender = 15; - * @return internal {@code Utf8String} representation of sender for reading + * optional string title = 7; + * @return internal {@code Utf8String} representation of title for reading */ - public Utf8String getSenderBytes() { - return this.sender; + public Utf8String getTitleBytes() { + return this.title; } /** - * optional string sender = 15; - * @return internal {@code Utf8String} representation of sender for modifications + * optional string title = 7; + * @return internal {@code Utf8String} representation of title for modifications */ - public Utf8String getMutableSenderBytes() { + public Utf8String getMutableTitleBytes() { bitField0_ |= 0x00000100; - return this.sender; + return this.title; } /** - * optional string sender = 15; - * @param value the sender to set + * optional string title = 7; + * @param value the title to set * @return this */ - public ClientMail setSender(final CharSequence value) { + public ClientMail setTitle(final CharSequence value) { bitField0_ |= 0x00000100; - sender.copyFrom(value); + title.copyFrom(value); return this; } /** - * optional string sender = 15; - * @param value the sender to set + * optional string title = 7; + * @param value the title to set * @return this */ - public ClientMail setSender(final Utf8String value) { + public ClientMail setTitle(final Utf8String value) { bitField0_ |= 0x00000100; - sender.copyFrom(value); + title.copyFrom(value); return this; } /** - * repeated string para_list = 1; + * repeated string para_list = 4; * @return whether the paraList field is set */ public boolean hasParaList() { @@ -526,7 +526,7 @@ public final class ClientMailOuterClass { } /** - * repeated string para_list = 1; + * repeated string para_list = 4; * @return this */ public ClientMail clearParaList() { @@ -536,7 +536,7 @@ public final class ClientMailOuterClass { } /** - * repeated string para_list = 1; + * repeated string para_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. @@ -550,7 +550,7 @@ public final class ClientMailOuterClass { } /** - * repeated string para_list = 1; + * repeated string para_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 @@ -564,7 +564,7 @@ public final class ClientMailOuterClass { } /** - * repeated string para_list = 1; + * repeated string para_list = 4; * @param value the paraList to add * @return this */ @@ -575,7 +575,7 @@ public final class ClientMailOuterClass { } /** - * repeated string para_list = 1; + * repeated string para_list = 4; * @param values the paraList to add * @return this */ @@ -596,9 +596,9 @@ public final class ClientMailOuterClass { templateId = other.templateId; isRead = other.isRead; attachment.copyFrom(other.attachment); - title.copyFrom(other.title); - content.copyFrom(other.content); sender.copyFrom(other.sender); + content.copyFrom(other.content); + title.copyFrom(other.title); paraList.copyFrom(other.paraList); } return this; @@ -628,14 +628,14 @@ public final class ClientMailOuterClass { if (other.hasAttachment()) { getMutableAttachment().mergeFrom(other.attachment); } - if (other.hasTitle()) { - getMutableTitleBytes().copyFrom(other.title); + if (other.hasSender()) { + getMutableSenderBytes().copyFrom(other.sender); } if (other.hasContent()) { getMutableContentBytes().copyFrom(other.content); } - if (other.hasSender()) { - getMutableSenderBytes().copyFrom(other.sender); + if (other.hasTitle()) { + getMutableTitleBytes().copyFrom(other.title); } if (other.hasParaList()) { getMutableParaList().addAll(other.paraList); @@ -656,9 +656,9 @@ public final class ClientMailOuterClass { templateId = 0; isRead = false; attachment.clear(); - title.clear(); - content.clear(); sender.clear(); + content.clear(); + title.clear(); paraList.clear(); return this; } @@ -671,9 +671,9 @@ public final class ClientMailOuterClass { cachedSize = -1; bitField0_ = 0; attachment.clearQuick(); - title.clear(); - content.clear(); sender.clear(); + content.clear(); + title.clear(); paraList.clear(); return this; } @@ -694,53 +694,53 @@ public final class ClientMailOuterClass { && (!hasTemplateId() || templateId == other.templateId) && (!hasIsRead() || isRead == other.isRead) && (!hasAttachment() || attachment.equals(other.attachment)) - && (!hasTitle() || title.equals(other.title)) - && (!hasContent() || content.equals(other.content)) && (!hasSender() || sender.equals(other.sender)) + && (!hasContent() || content.equals(other.content)) + && (!hasTitle() || title.equals(other.title)) && (!hasParaList() || paraList.equals(other.paraList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 112); output.writeInt64NoTag(expireTime); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 32); + output.writeRawByte((byte) 120); output.writeInt64NoTag(time); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 8); output.writeUInt32NoTag(id); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 72); output.writeUInt32NoTag(templateId); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 16); output.writeBoolNoTag(isRead); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 42); + output.writeRawByte((byte) 90); output.writeMessageNoTag(attachment); } if ((bitField0_ & 0x00000040) != 0) { - output.writeRawByte((byte) 66); - output.writeStringNoTag(title); + output.writeRawByte((byte) 42); + output.writeStringNoTag(sender); } if ((bitField0_ & 0x00000080) != 0) { - output.writeRawByte((byte) 90); + output.writeRawByte((byte) 50); output.writeStringNoTag(content); } if ((bitField0_ & 0x00000100) != 0) { - output.writeRawByte((byte) 122); - output.writeStringNoTag(sender); + output.writeRawByte((byte) 58); + output.writeStringNoTag(title); } if ((bitField0_ & 0x00000200) != 0) { for (int i = 0; i < paraList.length(); i++) { - output.writeRawByte((byte) 10); + output.writeRawByte((byte) 34); output.writeStringNoTag(paraList.get(i)); } } @@ -768,13 +768,13 @@ public final class ClientMailOuterClass { size += 1 + ProtoSink.computeMessageSizeNoTag(attachment); } if ((bitField0_ & 0x00000040) != 0) { - size += 1 + ProtoSink.computeStringSizeNoTag(title); + size += 1 + ProtoSink.computeStringSizeNoTag(sender); } if ((bitField0_ & 0x00000080) != 0) { size += 1 + ProtoSink.computeStringSizeNoTag(content); } if ((bitField0_ & 0x00000100) != 0) { - size += 1 + ProtoSink.computeStringSizeNoTag(sender); + size += 1 + ProtoSink.computeStringSizeNoTag(title); } if ((bitField0_ & 0x00000200) != 0) { size += (1 * paraList.length()) + ProtoSink.computeRepeatedStringSizeNoTag(paraList); @@ -789,88 +789,88 @@ public final class ClientMailOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 24: { + case 112: { // expireTime expireTime = input.readInt64(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 32) { + if (tag != 120) { break; } } - case 32: { + case 120: { // time time = input.readInt64(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 104) { + if (tag != 8) { break; } } - case 104: { + case 8: { // id id = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 112) { + if (tag != 72) { break; } } - case 112: { + case 72: { // templateId templateId = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 80) { + if (tag != 16) { break; } } - case 80: { + case 16: { // isRead isRead = input.readBool(); bitField0_ |= 0x00000010; tag = input.readTag(); - if (tag != 42) { - break; - } - } - case 42: { - // attachment - input.readMessage(attachment); - bitField0_ |= 0x00000020; - tag = input.readTag(); - if (tag != 66) { - break; - } - } - case 66: { - // title - input.readString(title); - bitField0_ |= 0x00000040; - tag = input.readTag(); if (tag != 90) { break; } } case 90: { + // attachment + input.readMessage(attachment); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 42) { + break; + } + } + case 42: { + // sender + input.readString(sender); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 50) { + break; + } + } + case 50: { // content input.readString(content); bitField0_ |= 0x00000080; tag = input.readTag(); - if (tag != 122) { + if (tag != 58) { break; } } - case 122: { - // sender - input.readString(sender); + case 58: { + // title + input.readString(title); bitField0_ |= 0x00000100; tag = input.readTag(); - if (tag != 10) { + if (tag != 34) { break; } } - case 10: { + case 34: { // paraList tag = input.readRepeatedString(paraList, tag); bitField0_ |= 0x00000200; @@ -914,13 +914,13 @@ public final class ClientMailOuterClass { output.writeMessage(FieldNames.attachment, attachment); } if ((bitField0_ & 0x00000040) != 0) { - output.writeString(FieldNames.title, title); + output.writeString(FieldNames.sender, sender); } if ((bitField0_ & 0x00000080) != 0) { output.writeString(FieldNames.content, content); } if ((bitField0_ & 0x00000100) != 0) { - output.writeString(FieldNames.sender, sender); + output.writeString(FieldNames.title, title); } if ((bitField0_ & 0x00000200) != 0) { output.writeRepeatedString(FieldNames.paraList, paraList); @@ -1004,10 +1004,10 @@ public final class ClientMailOuterClass { } 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_ |= 0x00000040; } } else { @@ -1026,10 +1026,10 @@ public final class ClientMailOuterClass { } 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_ |= 0x00000100; } } else { @@ -1113,11 +1113,11 @@ public final class ClientMailOuterClass { static final FieldName attachment = FieldName.forField("attachment"); - static final FieldName title = FieldName.forField("title"); + static final FieldName sender = FieldName.forField("sender"); static final FieldName content = FieldName.forField("content"); - static final FieldName sender = FieldName.forField("sender"); + static final FieldName title = FieldName.forField("title"); static final FieldName paraList = FieldName.forField("paraList", "para_list"); } diff --git a/src/generated/main/emu/lunarcore/proto/CommonRogueQueryOuterClass.java b/src/generated/main/emu/lunarcore/proto/CommonRogueQueryOuterClass.java deleted file mode 100644 index fd00bfc..0000000 --- a/src/generated/main/emu/lunarcore/proto/CommonRogueQueryOuterClass.java +++ /dev/null @@ -1,383 +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 CommonRogueQueryOuterClass { - /** - * Protobuf type {@code CommonRogueQuery} - */ - public static final class CommonRogueQuery extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional .RogueQuery rogue_query = 2; - */ - private final RogueQueryOuterClass.RogueQuery rogueQuery = RogueQueryOuterClass.RogueQuery.newInstance(); - - /** - * optional .RogueUpdate rogue_update = 6; - */ - private final RogueUpdateOuterClass.RogueUpdate rogueUpdate = RogueUpdateOuterClass.RogueUpdate.newInstance(); - - private CommonRogueQuery() { - } - - /** - * @return a new empty instance of {@code CommonRogueQuery} - */ - public static CommonRogueQuery newInstance() { - return new CommonRogueQuery(); - } - - /** - * optional .RogueQuery rogue_query = 2; - * @return whether the rogueQuery field is set - */ - public boolean hasRogueQuery() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional .RogueQuery rogue_query = 2; - * @return this - */ - public CommonRogueQuery clearRogueQuery() { - bitField0_ &= ~0x00000001; - rogueQuery.clear(); - return this; - } - - /** - * optional .RogueQuery rogue_query = 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 #getMutableRogueQuery()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueQueryOuterClass.RogueQuery getRogueQuery() { - return rogueQuery; - } - - /** - * optional .RogueQuery rogue_query = 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 - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RogueQueryOuterClass.RogueQuery getMutableRogueQuery() { - bitField0_ |= 0x00000001; - return rogueQuery; - } - - /** - * optional .RogueQuery rogue_query = 2; - * @param value the rogueQuery to set - * @return this - */ - public CommonRogueQuery setRogueQuery(final RogueQueryOuterClass.RogueQuery value) { - bitField0_ |= 0x00000001; - rogueQuery.copyFrom(value); - return this; - } - - /** - * optional .RogueUpdate rogue_update = 6; - * @return whether the rogueUpdate field is set - */ - public boolean hasRogueUpdate() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional .RogueUpdate rogue_update = 6; - * @return this - */ - public CommonRogueQuery clearRogueUpdate() { - bitField0_ &= ~0x00000002; - rogueUpdate.clear(); - return this; - } - - /** - * optional .RogueUpdate rogue_update = 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 #getMutableRogueUpdate()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueUpdateOuterClass.RogueUpdate getRogueUpdate() { - return rogueUpdate; - } - - /** - * optional .RogueUpdate rogue_update = 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 - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RogueUpdateOuterClass.RogueUpdate getMutableRogueUpdate() { - bitField0_ |= 0x00000002; - return rogueUpdate; - } - - /** - * optional .RogueUpdate rogue_update = 6; - * @param value the rogueUpdate to set - * @return this - */ - public CommonRogueQuery setRogueUpdate(final RogueUpdateOuterClass.RogueUpdate value) { - bitField0_ |= 0x00000002; - rogueUpdate.copyFrom(value); - return this; - } - - @Override - public CommonRogueQuery copyFrom(final CommonRogueQuery other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - rogueQuery.copyFrom(other.rogueQuery); - rogueUpdate.copyFrom(other.rogueUpdate); - } - return this; - } - - @Override - public CommonRogueQuery mergeFrom(final CommonRogueQuery other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasRogueQuery()) { - getMutableRogueQuery().mergeFrom(other.rogueQuery); - } - if (other.hasRogueUpdate()) { - getMutableRogueUpdate().mergeFrom(other.rogueUpdate); - } - return this; - } - - @Override - public CommonRogueQuery clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - rogueQuery.clear(); - rogueUpdate.clear(); - return this; - } - - @Override - public CommonRogueQuery clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - rogueQuery.clearQuick(); - rogueUpdate.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof CommonRogueQuery)) { - return false; - } - CommonRogueQuery other = (CommonRogueQuery) o; - return bitField0_ == other.bitField0_ - && (!hasRogueQuery() || rogueQuery.equals(other.rogueQuery)) - && (!hasRogueUpdate() || rogueUpdate.equals(other.rogueUpdate)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 18); - output.writeMessageNoTag(rogueQuery); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 50); - output.writeMessageNoTag(rogueUpdate); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(rogueQuery); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(rogueUpdate); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public CommonRogueQuery mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 18: { - // rogueQuery - input.readMessage(rogueQuery); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 50) { - break; - } - } - case 50: { - // rogueUpdate - input.readMessage(rogueUpdate); - 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.writeMessage(FieldNames.rogueQuery, rogueQuery); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeMessage(FieldNames.rogueUpdate, rogueUpdate); - } - output.endObject(); - } - - @Override - public CommonRogueQuery mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -1137163506: - case -494752221: { - if (input.isAtField(FieldNames.rogueQuery)) { - if (!input.trySkipNullValue()) { - input.readMessage(rogueQuery); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -782477501: - case 1952403150: { - if (input.isAtField(FieldNames.rogueUpdate)) { - if (!input.trySkipNullValue()) { - input.readMessage(rogueUpdate); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public CommonRogueQuery clone() { - return new CommonRogueQuery().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static CommonRogueQuery parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new CommonRogueQuery(), data).checkInitialized(); - } - - public static CommonRogueQuery parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new CommonRogueQuery(), input).checkInitialized(); - } - - public static CommonRogueQuery parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new CommonRogueQuery(), input).checkInitialized(); - } - - /** - * @return factory for creating CommonRogueQuery messages - */ - public static MessageFactory getFactory() { - return CommonRogueQueryFactory.INSTANCE; - } - - private enum CommonRogueQueryFactory implements MessageFactory { - INSTANCE; - - @Override - public CommonRogueQuery create() { - return CommonRogueQuery.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName rogueQuery = FieldName.forField("rogueQuery", "rogue_query"); - - static final FieldName rogueUpdate = FieldName.forField("rogueUpdate", "rogue_update"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/CommonRogueQueryScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/CommonRogueQueryScRspOuterClass.java deleted file mode 100644 index 8ba3473..0000000 --- a/src/generated/main/emu/lunarcore/proto/CommonRogueQueryScRspOuterClass.java +++ /dev/null @@ -1,362 +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 CommonRogueQueryScRspOuterClass { - /** - * Protobuf type {@code CommonRogueQueryScRsp} - */ - public static final class CommonRogueQueryScRsp extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 retcode = 3; - */ - private int retcode; - - /** - * optional .CommonRogueQuery common_rogue_query = 4; - */ - private final CommonRogueQueryOuterClass.CommonRogueQuery commonRogueQuery = CommonRogueQueryOuterClass.CommonRogueQuery.newInstance(); - - private CommonRogueQueryScRsp() { - } - - /** - * @return a new empty instance of {@code CommonRogueQueryScRsp} - */ - public static CommonRogueQueryScRsp newInstance() { - return new CommonRogueQueryScRsp(); - } - - /** - * optional uint32 retcode = 3; - * @return whether the retcode field is set - */ - public boolean hasRetcode() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 retcode = 3; - * @return this - */ - public CommonRogueQueryScRsp clearRetcode() { - bitField0_ &= ~0x00000001; - retcode = 0; - return this; - } - - /** - * optional uint32 retcode = 3; - * @return the retcode - */ - public int getRetcode() { - return retcode; - } - - /** - * optional uint32 retcode = 3; - * @param value the retcode to set - * @return this - */ - public CommonRogueQueryScRsp setRetcode(final int value) { - bitField0_ |= 0x00000001; - retcode = value; - return this; - } - - /** - * optional .CommonRogueQuery common_rogue_query = 4; - * @return whether the commonRogueQuery field is set - */ - public boolean hasCommonRogueQuery() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional .CommonRogueQuery common_rogue_query = 4; - * @return this - */ - public CommonRogueQueryScRsp clearCommonRogueQuery() { - bitField0_ &= ~0x00000002; - commonRogueQuery.clear(); - return this; - } - - /** - * optional .CommonRogueQuery common_rogue_query = 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 #getMutableCommonRogueQuery()} if you want to modify it. - * - * @return internal storage object for reading - */ - public CommonRogueQueryOuterClass.CommonRogueQuery getCommonRogueQuery() { - return commonRogueQuery; - } - - /** - * optional .CommonRogueQuery common_rogue_query = 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 CommonRogueQueryOuterClass.CommonRogueQuery getMutableCommonRogueQuery() { - bitField0_ |= 0x00000002; - return commonRogueQuery; - } - - /** - * optional .CommonRogueQuery common_rogue_query = 4; - * @param value the commonRogueQuery to set - * @return this - */ - public CommonRogueQueryScRsp setCommonRogueQuery( - final CommonRogueQueryOuterClass.CommonRogueQuery value) { - bitField0_ |= 0x00000002; - commonRogueQuery.copyFrom(value); - return this; - } - - @Override - public CommonRogueQueryScRsp copyFrom(final CommonRogueQueryScRsp other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - retcode = other.retcode; - commonRogueQuery.copyFrom(other.commonRogueQuery); - } - return this; - } - - @Override - public CommonRogueQueryScRsp mergeFrom(final CommonRogueQueryScRsp other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasRetcode()) { - setRetcode(other.retcode); - } - if (other.hasCommonRogueQuery()) { - getMutableCommonRogueQuery().mergeFrom(other.commonRogueQuery); - } - return this; - } - - @Override - public CommonRogueQueryScRsp clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - retcode = 0; - commonRogueQuery.clear(); - return this; - } - - @Override - public CommonRogueQueryScRsp clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - commonRogueQuery.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof CommonRogueQueryScRsp)) { - return false; - } - CommonRogueQueryScRsp other = (CommonRogueQueryScRsp) o; - return bitField0_ == other.bitField0_ - && (!hasRetcode() || retcode == other.retcode) - && (!hasCommonRogueQuery() || commonRogueQuery.equals(other.commonRogueQuery)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(retcode); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 34); - output.writeMessageNoTag(commonRogueQuery); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(commonRogueQuery); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public CommonRogueQueryScRsp mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 24: { - // retcode - retcode = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 34) { - break; - } - } - case 34: { - // commonRogueQuery - input.readMessage(commonRogueQuery); - 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.retcode, retcode); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeMessage(FieldNames.commonRogueQuery, commonRogueQuery); - } - output.endObject(); - } - - @Override - public CommonRogueQueryScRsp 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 1847205721: - case 1954524623: { - if (input.isAtField(FieldNames.commonRogueQuery)) { - if (!input.trySkipNullValue()) { - input.readMessage(commonRogueQuery); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public CommonRogueQueryScRsp clone() { - return new CommonRogueQueryScRsp().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static CommonRogueQueryScRsp parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new CommonRogueQueryScRsp(), data).checkInitialized(); - } - - public static CommonRogueQueryScRsp parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new CommonRogueQueryScRsp(), input).checkInitialized(); - } - - public static CommonRogueQueryScRsp parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new CommonRogueQueryScRsp(), input).checkInitialized(); - } - - /** - * @return factory for creating CommonRogueQueryScRsp messages - */ - public static MessageFactory getFactory() { - return CommonRogueQueryScRspFactory.INSTANCE; - } - - private enum CommonRogueQueryScRspFactory implements MessageFactory { - INSTANCE; - - @Override - public CommonRogueQueryScRsp create() { - return CommonRogueQueryScRsp.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName retcode = FieldName.forField("retcode"); - - static final FieldName commonRogueQuery = FieldName.forField("commonRogueQuery", "common_rogue_query"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/ComposeItemCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/ComposeItemCsReqOuterClass.java index 415e308..d198ca6 100644 --- a/src/generated/main/emu/lunarcore/proto/ComposeItemCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ComposeItemCsReqOuterClass.java @@ -19,17 +19,17 @@ public final class ComposeItemCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 count = 12; - */ - private int count; - - /** - * optional uint32 compose_id = 13; + * optional uint32 compose_id = 8; */ private int composeId; /** - * optional .ItemCostList compose_item_list = 1; + * optional uint32 count = 9; + */ + private int count; + + /** + * optional .ItemCostList compose_item_list = 3; */ private final ItemCostListOuterClass.ItemCostList composeItemList = ItemCostListOuterClass.ItemCostList.newInstance(); @@ -44,62 +44,25 @@ public final class ComposeItemCsReqOuterClass { } /** - * optional uint32 count = 12; - * @return whether the count field is set + * optional uint32 compose_id = 8; + * @return whether the composeId field is set */ - public boolean hasCount() { + public boolean hasComposeId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 count = 12; - * @return this - */ - public ComposeItemCsReq clearCount() { - bitField0_ &= ~0x00000001; - count = 0; - return this; - } - - /** - * optional uint32 count = 12; - * @return the count - */ - public int getCount() { - return count; - } - - /** - * optional uint32 count = 12; - * @param value the count to set - * @return this - */ - public ComposeItemCsReq setCount(final int value) { - bitField0_ |= 0x00000001; - count = value; - return this; - } - - /** - * optional uint32 compose_id = 13; - * @return whether the composeId field is set - */ - public boolean hasComposeId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 compose_id = 13; + * optional uint32 compose_id = 8; * @return this */ public ComposeItemCsReq clearComposeId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; composeId = 0; return this; } /** - * optional uint32 compose_id = 13; + * optional uint32 compose_id = 8; * @return the composeId */ public int getComposeId() { @@ -107,18 +70,55 @@ public final class ComposeItemCsReqOuterClass { } /** - * optional uint32 compose_id = 13; + * optional uint32 compose_id = 8; * @param value the composeId to set * @return this */ public ComposeItemCsReq setComposeId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; composeId = value; return this; } /** - * optional .ItemCostList compose_item_list = 1; + * optional uint32 count = 9; + * @return whether the count field is set + */ + public boolean hasCount() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 count = 9; + * @return this + */ + public ComposeItemCsReq clearCount() { + bitField0_ &= ~0x00000002; + count = 0; + return this; + } + + /** + * optional uint32 count = 9; + * @return the count + */ + public int getCount() { + return count; + } + + /** + * optional uint32 count = 9; + * @param value the count to set + * @return this + */ + public ComposeItemCsReq setCount(final int value) { + bitField0_ |= 0x00000002; + count = value; + return this; + } + + /** + * optional .ItemCostList compose_item_list = 3; * @return whether the composeItemList field is set */ public boolean hasComposeItemList() { @@ -126,7 +126,7 @@ public final class ComposeItemCsReqOuterClass { } /** - * optional .ItemCostList compose_item_list = 1; + * optional .ItemCostList compose_item_list = 3; * @return this */ public ComposeItemCsReq clearComposeItemList() { @@ -136,7 +136,7 @@ public final class ComposeItemCsReqOuterClass { } /** - * optional .ItemCostList compose_item_list = 1; + * optional .ItemCostList compose_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. @@ -150,7 +150,7 @@ public final class ComposeItemCsReqOuterClass { } /** - * optional .ItemCostList compose_item_list = 1; + * optional .ItemCostList compose_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 @@ -164,7 +164,7 @@ public final class ComposeItemCsReqOuterClass { } /** - * optional .ItemCostList compose_item_list = 1; + * optional .ItemCostList compose_item_list = 3; * @param value the composeItemList to set * @return this */ @@ -179,8 +179,8 @@ public final class ComposeItemCsReqOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - count = other.count; composeId = other.composeId; + count = other.count; composeItemList.copyFrom(other.composeItemList); } return this; @@ -192,12 +192,12 @@ public final class ComposeItemCsReqOuterClass { return this; } cachedSize = -1; - if (other.hasCount()) { - setCount(other.count); - } if (other.hasComposeId()) { setComposeId(other.composeId); } + if (other.hasCount()) { + setCount(other.count); + } if (other.hasComposeItemList()) { getMutableComposeItemList().mergeFrom(other.composeItemList); } @@ -211,8 +211,8 @@ public final class ComposeItemCsReqOuterClass { } cachedSize = -1; bitField0_ = 0; - count = 0; composeId = 0; + count = 0; composeItemList.clear(); return this; } @@ -238,23 +238,23 @@ public final class ComposeItemCsReqOuterClass { } ComposeItemCsReq other = (ComposeItemCsReq) o; return bitField0_ == other.bitField0_ - && (!hasCount() || count == other.count) && (!hasComposeId() || composeId == other.composeId) + && (!hasCount() || count == other.count) && (!hasComposeItemList() || composeItemList.equals(other.composeItemList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 96); - output.writeUInt32NoTag(count); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 64); output.writeUInt32NoTag(composeId); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(count); + } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 10); + output.writeRawByte((byte) 26); output.writeMessageNoTag(composeItemList); } } @@ -263,10 +263,10 @@ public final class ComposeItemCsReqOuterClass { 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(count); } if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(composeItemList); @@ -281,25 +281,25 @@ public final class ComposeItemCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 96: { - // count - count = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 104) { - break; - } - } - case 104: { + case 64: { // composeId composeId = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 10) { + if (tag != 72) { break; } } - case 10: { + case 72: { + // count + count = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { // composeItemList input.readMessage(composeItemList); bitField0_ |= 0x00000004; @@ -326,10 +326,10 @@ public final class ComposeItemCsReqOuterClass { 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.count, count); } if ((bitField0_ & 0x00000004) != 0) { output.writeMessage(FieldNames.composeItemList, composeItemList); @@ -344,10 +344,11 @@ public final class ComposeItemCsReqOuterClass { } 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 { @@ -355,11 +356,10 @@ public final class ComposeItemCsReqOuterClass { } break; } - 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_ |= 0x00000002; } } else { @@ -432,10 +432,10 @@ public final class ComposeItemCsReqOuterClass { * 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 count = FieldName.forField("count"); + 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 a5a40b1..0d6a4c3 100644 --- a/src/generated/main/emu/lunarcore/proto/ComposeItemScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ComposeItemScRspOuterClass.java @@ -19,22 +19,22 @@ public final class ComposeItemScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 compose_id = 1; - */ - private int composeId; - - /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 2; */ private int retcode; /** - * optional uint32 count = 9; + * optional uint32 compose_id = 7; + */ + private int composeId; + + /** + * optional uint32 count = 14; */ private int count; /** - * optional .ItemList return_item_list = 3; + * optional .ItemList return_item_list = 9; */ private final ItemListOuterClass.ItemList returnItemList = ItemListOuterClass.ItemList.newInstance(); @@ -49,62 +49,25 @@ public final class ComposeItemScRspOuterClass { } /** - * optional uint32 compose_id = 1; - * @return whether the composeId field is set + * optional uint32 retcode = 2; + * @return whether the retcode field is set */ - public boolean hasComposeId() { + public boolean hasRetcode() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 compose_id = 1; - * @return this - */ - public ComposeItemScRsp clearComposeId() { - bitField0_ &= ~0x00000001; - composeId = 0; - return this; - } - - /** - * optional uint32 compose_id = 1; - * @return the composeId - */ - public int getComposeId() { - return composeId; - } - - /** - * optional uint32 compose_id = 1; - * @param value the composeId to set - * @return this - */ - public ComposeItemScRsp setComposeId(final int value) { - bitField0_ |= 0x00000001; - composeId = value; - return this; - } - - /** - * optional uint32 retcode = 5; - * @return whether the retcode field is set - */ - public boolean hasRetcode() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 2; * @return this */ public ComposeItemScRsp clearRetcode() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; retcode = 0; return this; } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 2; * @return the retcode */ public int getRetcode() { @@ -112,18 +75,55 @@ public final class ComposeItemScRspOuterClass { } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 2; * @param value the retcode to set * @return this */ public ComposeItemScRsp setRetcode(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; retcode = value; return this; } /** - * optional uint32 count = 9; + * optional uint32 compose_id = 7; + * @return whether the composeId field is set + */ + public boolean hasComposeId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 compose_id = 7; + * @return this + */ + public ComposeItemScRsp clearComposeId() { + bitField0_ &= ~0x00000002; + composeId = 0; + return this; + } + + /** + * optional uint32 compose_id = 7; + * @return the composeId + */ + public int getComposeId() { + return composeId; + } + + /** + * optional uint32 compose_id = 7; + * @param value the composeId to set + * @return this + */ + public ComposeItemScRsp setComposeId(final int value) { + bitField0_ |= 0x00000002; + composeId = value; + return this; + } + + /** + * optional uint32 count = 14; * @return whether the count field is set */ public boolean hasCount() { @@ -131,7 +131,7 @@ public final class ComposeItemScRspOuterClass { } /** - * optional uint32 count = 9; + * optional uint32 count = 14; * @return this */ public ComposeItemScRsp clearCount() { @@ -141,7 +141,7 @@ public final class ComposeItemScRspOuterClass { } /** - * optional uint32 count = 9; + * optional uint32 count = 14; * @return the count */ public int getCount() { @@ -149,7 +149,7 @@ public final class ComposeItemScRspOuterClass { } /** - * optional uint32 count = 9; + * optional uint32 count = 14; * @param value the count to set * @return this */ @@ -160,7 +160,7 @@ public final class ComposeItemScRspOuterClass { } /** - * optional .ItemList return_item_list = 3; + * optional .ItemList return_item_list = 9; * @return whether the returnItemList field is set */ public boolean hasReturnItemList() { @@ -168,7 +168,7 @@ public final class ComposeItemScRspOuterClass { } /** - * optional .ItemList return_item_list = 3; + * optional .ItemList return_item_list = 9; * @return this */ public ComposeItemScRsp clearReturnItemList() { @@ -178,7 +178,7 @@ public final class ComposeItemScRspOuterClass { } /** - * optional .ItemList return_item_list = 3; + * 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. @@ -192,7 +192,7 @@ public final class ComposeItemScRspOuterClass { } /** - * optional .ItemList return_item_list = 3; + * 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 @@ -206,7 +206,7 @@ public final class ComposeItemScRspOuterClass { } /** - * optional .ItemList return_item_list = 3; + * optional .ItemList return_item_list = 9; * @param value the returnItemList to set * @return this */ @@ -221,8 +221,8 @@ public final class ComposeItemScRspOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - composeId = other.composeId; retcode = other.retcode; + composeId = other.composeId; count = other.count; returnItemList.copyFrom(other.returnItemList); } @@ -235,12 +235,12 @@ public final class ComposeItemScRspOuterClass { return this; } cachedSize = -1; - if (other.hasComposeId()) { - setComposeId(other.composeId); - } if (other.hasRetcode()) { setRetcode(other.retcode); } + if (other.hasComposeId()) { + setComposeId(other.composeId); + } if (other.hasCount()) { setCount(other.count); } @@ -257,8 +257,8 @@ public final class ComposeItemScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - composeId = 0; retcode = 0; + composeId = 0; count = 0; returnItemList.clear(); return this; @@ -285,8 +285,8 @@ public final class ComposeItemScRspOuterClass { } ComposeItemScRsp other = (ComposeItemScRsp) o; return bitField0_ == other.bitField0_ - && (!hasComposeId() || composeId == other.composeId) && (!hasRetcode() || retcode == other.retcode) + && (!hasComposeId() || composeId == other.composeId) && (!hasCount() || count == other.count) && (!hasReturnItemList() || returnItemList.equals(other.returnItemList)); } @@ -294,19 +294,19 @@ public final class ComposeItemScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(composeId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 16); output.writeUInt32NoTag(retcode); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(composeId); + } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 72); + output.writeRawByte((byte) 112); output.writeUInt32NoTag(count); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 26); + output.writeRawByte((byte) 74); output.writeMessageNoTag(returnItemList); } } @@ -315,10 +315,10 @@ public final class ComposeItemScRspOuterClass { 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.computeUInt32SizeNoTag(count); @@ -336,34 +336,34 @@ public final class ComposeItemScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 8: { - // composeId - composeId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 40) { - break; - } - } - case 40: { + case 16: { // retcode retcode = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 72) { + if (tag != 56) { break; } } - case 72: { + case 56: { + // composeId + composeId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { // count count = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 26) { + if (tag != 74) { break; } } - case 26: { + case 74: { // returnItemList input.readMessage(returnItemList); bitField0_ |= 0x00000008; @@ -390,10 +390,10 @@ public final class ComposeItemScRspOuterClass { 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.writeUInt32(FieldNames.count, count); @@ -411,11 +411,10 @@ public final class ComposeItemScRspOuterClass { } 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 { @@ -423,10 +422,11 @@ public final class ComposeItemScRspOuterClass { } 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 { @@ -510,10 +510,10 @@ public final class ComposeItemScRspOuterClass { * 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 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 f3efc6b..e4f21fa 100644 --- a/src/generated/main/emu/lunarcore/proto/ComposeSelectedRelicCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ComposeSelectedRelicCsReqOuterClass.java @@ -19,27 +19,27 @@ public final class ComposeSelectedRelicCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 compose_relic_id = 3; - */ - private int composeRelicId; - - /** - * optional uint32 compose_id = 5; - */ - private int composeId; - - /** - * optional uint32 count = 11; + * optional uint32 count = 9; */ private int count; + /** + * optional uint32 compose_id = 10; + */ + private int composeId; + /** * optional uint32 main_affix_id = 13; */ private int mainAffixId; /** - * optional .ItemCostList compose_item_list = 9; + * optional uint32 compose_relic_id = 14; + */ + private int composeRelicId; + + /** + * optional .ItemCostList compose_item_list = 6; */ private final ItemCostListOuterClass.ItemCostList composeItemList = ItemCostListOuterClass.ItemCostList.newInstance(); @@ -54,44 +54,44 @@ public final class ComposeSelectedRelicCsReqOuterClass { } /** - * optional uint32 compose_relic_id = 3; - * @return whether the composeRelicId field is set + * optional uint32 count = 9; + * @return whether the count field is set */ - public boolean hasComposeRelicId() { + public boolean hasCount() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 compose_relic_id = 3; + * optional uint32 count = 9; * @return this */ - public ComposeSelectedRelicCsReq clearComposeRelicId() { + public ComposeSelectedRelicCsReq clearCount() { bitField0_ &= ~0x00000001; - composeRelicId = 0; + count = 0; return this; } /** - * optional uint32 compose_relic_id = 3; - * @return the composeRelicId + * optional uint32 count = 9; + * @return the count */ - public int getComposeRelicId() { - return composeRelicId; + public int getCount() { + return count; } /** - * optional uint32 compose_relic_id = 3; - * @param value the composeRelicId to set + * optional uint32 count = 9; + * @param value the count to set * @return this */ - public ComposeSelectedRelicCsReq setComposeRelicId(final int value) { + public ComposeSelectedRelicCsReq setCount(final int value) { bitField0_ |= 0x00000001; - composeRelicId = value; + count = value; return this; } /** - * optional uint32 compose_id = 5; + * optional uint32 compose_id = 10; * @return whether the composeId field is set */ public boolean hasComposeId() { @@ -99,7 +99,7 @@ public final class ComposeSelectedRelicCsReqOuterClass { } /** - * optional uint32 compose_id = 5; + * optional uint32 compose_id = 10; * @return this */ public ComposeSelectedRelicCsReq clearComposeId() { @@ -109,7 +109,7 @@ public final class ComposeSelectedRelicCsReqOuterClass { } /** - * optional uint32 compose_id = 5; + * optional uint32 compose_id = 10; * @return the composeId */ public int getComposeId() { @@ -117,7 +117,7 @@ public final class ComposeSelectedRelicCsReqOuterClass { } /** - * optional uint32 compose_id = 5; + * optional uint32 compose_id = 10; * @param value the composeId to set * @return this */ @@ -127,49 +127,12 @@ public final class ComposeSelectedRelicCsReqOuterClass { return this; } - /** - * optional uint32 count = 11; - * @return whether the count field is set - */ - public boolean hasCount() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 count = 11; - * @return this - */ - public ComposeSelectedRelicCsReq clearCount() { - bitField0_ &= ~0x00000004; - count = 0; - return this; - } - - /** - * optional uint32 count = 11; - * @return the count - */ - public int getCount() { - return count; - } - - /** - * optional uint32 count = 11; - * @param value the count to set - * @return this - */ - public ComposeSelectedRelicCsReq setCount(final int value) { - bitField0_ |= 0x00000004; - count = value; - return this; - } - /** * optional uint32 main_affix_id = 13; * @return whether the mainAffixId field is set */ public boolean hasMainAffixId() { - return (bitField0_ & 0x00000008) != 0; + return (bitField0_ & 0x00000004) != 0; } /** @@ -177,7 +140,7 @@ public final class ComposeSelectedRelicCsReqOuterClass { * @return this */ public ComposeSelectedRelicCsReq clearMainAffixId() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000004; mainAffixId = 0; return this; } @@ -196,13 +159,50 @@ public final class ComposeSelectedRelicCsReqOuterClass { * @return this */ public ComposeSelectedRelicCsReq setMainAffixId(final int value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; mainAffixId = value; return this; } /** - * optional .ItemCostList compose_item_list = 9; + * optional uint32 compose_relic_id = 14; + * @return whether the composeRelicId field is set + */ + public boolean hasComposeRelicId() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 compose_relic_id = 14; + * @return this + */ + public ComposeSelectedRelicCsReq clearComposeRelicId() { + bitField0_ &= ~0x00000008; + composeRelicId = 0; + return this; + } + + /** + * optional uint32 compose_relic_id = 14; + * @return the composeRelicId + */ + public int getComposeRelicId() { + return composeRelicId; + } + + /** + * optional uint32 compose_relic_id = 14; + * @param value the composeRelicId to set + * @return this + */ + public ComposeSelectedRelicCsReq setComposeRelicId(final int value) { + bitField0_ |= 0x00000008; + composeRelicId = value; + return this; + } + + /** + * optional .ItemCostList compose_item_list = 6; * @return whether the composeItemList field is set */ public boolean hasComposeItemList() { @@ -210,7 +210,7 @@ public final class ComposeSelectedRelicCsReqOuterClass { } /** - * optional .ItemCostList compose_item_list = 9; + * optional .ItemCostList compose_item_list = 6; * @return this */ public ComposeSelectedRelicCsReq clearComposeItemList() { @@ -220,7 +220,7 @@ public final class ComposeSelectedRelicCsReqOuterClass { } /** - * optional .ItemCostList compose_item_list = 9; + * optional .ItemCostList compose_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. @@ -234,7 +234,7 @@ public final class ComposeSelectedRelicCsReqOuterClass { } /** - * optional .ItemCostList compose_item_list = 9; + * optional .ItemCostList compose_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 @@ -248,7 +248,7 @@ public final class ComposeSelectedRelicCsReqOuterClass { } /** - * optional .ItemCostList compose_item_list = 9; + * optional .ItemCostList compose_item_list = 6; * @param value the composeItemList to set * @return this */ @@ -264,10 +264,10 @@ public final class ComposeSelectedRelicCsReqOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - composeRelicId = other.composeRelicId; - composeId = other.composeId; count = other.count; + composeId = other.composeId; mainAffixId = other.mainAffixId; + composeRelicId = other.composeRelicId; composeItemList.copyFrom(other.composeItemList); } return this; @@ -279,18 +279,18 @@ public final class ComposeSelectedRelicCsReqOuterClass { return this; } cachedSize = -1; - if (other.hasComposeRelicId()) { - setComposeRelicId(other.composeRelicId); + if (other.hasCount()) { + setCount(other.count); } if (other.hasComposeId()) { setComposeId(other.composeId); } - if (other.hasCount()) { - setCount(other.count); - } if (other.hasMainAffixId()) { setMainAffixId(other.mainAffixId); } + if (other.hasComposeRelicId()) { + setComposeRelicId(other.composeRelicId); + } if (other.hasComposeItemList()) { getMutableComposeItemList().mergeFrom(other.composeItemList); } @@ -304,10 +304,10 @@ public final class ComposeSelectedRelicCsReqOuterClass { } cachedSize = -1; bitField0_ = 0; - composeRelicId = 0; - composeId = 0; count = 0; + composeId = 0; mainAffixId = 0; + composeRelicId = 0; composeItemList.clear(); return this; } @@ -333,33 +333,33 @@ public final class ComposeSelectedRelicCsReqOuterClass { } ComposeSelectedRelicCsReq other = (ComposeSelectedRelicCsReq) o; return bitField0_ == other.bitField0_ - && (!hasComposeRelicId() || composeRelicId == other.composeRelicId) - && (!hasComposeId() || composeId == other.composeId) && (!hasCount() || count == other.count) + && (!hasComposeId() || composeId == other.composeId) && (!hasMainAffixId() || mainAffixId == other.mainAffixId) + && (!hasComposeRelicId() || composeRelicId == other.composeRelicId) && (!hasComposeItemList() || composeItemList.equals(other.composeItemList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(composeRelicId); + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(count); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 80); output.writeUInt32NoTag(composeId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 88); - output.writeUInt32NoTag(count); - } - if ((bitField0_ & 0x00000008) != 0) { output.writeRawByte((byte) 104); output.writeUInt32NoTag(mainAffixId); } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(composeRelicId); + } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 74); + output.writeRawByte((byte) 50); output.writeMessageNoTag(composeItemList); } } @@ -368,16 +368,16 @@ public final class ComposeSelectedRelicCsReqOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(composeRelicId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(count); } if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(composeId); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(count); + size += 1 + ProtoSink.computeUInt32SizeNoTag(mainAffixId); } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(mainAffixId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(composeRelicId); } if ((bitField0_ & 0x00000010) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(composeItemList); @@ -392,29 +392,20 @@ public final class ComposeSelectedRelicCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 24: { - // composeRelicId - composeRelicId = input.readUInt32(); + case 72: { + // count + count = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 40) { + if (tag != 80) { break; } } - case 40: { + case 80: { // composeId composeId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 88) { - break; - } - } - case 88: { - // count - count = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); if (tag != 104) { break; } @@ -422,13 +413,22 @@ public final class ComposeSelectedRelicCsReqOuterClass { case 104: { // mainAffixId mainAffixId = input.readUInt32(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 74) { + if (tag != 112) { break; } } - case 74: { + case 112: { + // composeRelicId + composeRelicId = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 50) { + break; + } + } + case 50: { // composeItemList input.readMessage(composeItemList); bitField0_ |= 0x00000010; @@ -455,16 +455,16 @@ public final class ComposeSelectedRelicCsReqOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.composeRelicId, composeRelicId); + output.writeUInt32(FieldNames.count, count); } if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.composeId, composeId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.count, count); + output.writeUInt32(FieldNames.mainAffixId, mainAffixId); } if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.mainAffixId, mainAffixId); + output.writeUInt32(FieldNames.composeRelicId, composeRelicId); } if ((bitField0_ & 0x00000010) != 0) { output.writeMessage(FieldNames.composeItemList, composeItemList); @@ -479,11 +479,10 @@ public final class ComposeSelectedRelicCsReqOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1424923132: - case 885799284: { - if (input.isAtField(FieldNames.composeRelicId)) { + case 94851343: { + if (input.isAtField(FieldNames.count)) { if (!input.trySkipNullValue()) { - composeRelicId = input.readUInt32(); + count = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -503,10 +502,11 @@ public final class ComposeSelectedRelicCsReqOuterClass { } break; } - case 94851343: { - if (input.isAtField(FieldNames.count)) { + case -1973876974: + case -1426712144: { + if (input.isAtField(FieldNames.mainAffixId)) { if (!input.trySkipNullValue()) { - count = input.readUInt32(); + mainAffixId = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -514,11 +514,11 @@ public final class ComposeSelectedRelicCsReqOuterClass { } break; } - case -1973876974: - case -1426712144: { - if (input.isAtField(FieldNames.mainAffixId)) { + case 1424923132: + case 885799284: { + if (input.isAtField(FieldNames.composeRelicId)) { if (!input.trySkipNullValue()) { - mainAffixId = input.readUInt32(); + composeRelicId = input.readUInt32(); bitField0_ |= 0x00000008; } } else { @@ -591,14 +591,14 @@ public final class ComposeSelectedRelicCsReqOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName composeRelicId = FieldName.forField("composeRelicId", "compose_relic_id"); + static final FieldName count = FieldName.forField("count"); 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"); + static final FieldName composeRelicId = FieldName.forField("composeRelicId", "compose_relic_id"); + static final FieldName composeItemList = FieldName.forField("composeItemList", "compose_item_list"); } } diff --git a/src/generated/main/emu/lunarcore/proto/ComposeSelectedRelicScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/ComposeSelectedRelicScRspOuterClass.java index f8cc52f..b01995b 100644 --- a/src/generated/main/emu/lunarcore/proto/ComposeSelectedRelicScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ComposeSelectedRelicScRspOuterClass.java @@ -19,17 +19,17 @@ public final class ComposeSelectedRelicScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 1; - */ - private int retcode; - - /** - * optional uint32 compose_id = 8; + * optional uint32 compose_id = 5; */ private int composeId; /** - * optional .ItemList return_item_list = 2; + * optional uint32 retcode = 7; + */ + private int retcode; + + /** + * optional .ItemList return_item_list = 14; */ private final ItemListOuterClass.ItemList returnItemList = ItemListOuterClass.ItemList.newInstance(); @@ -44,62 +44,25 @@ public final class ComposeSelectedRelicScRspOuterClass { } /** - * optional uint32 retcode = 1; - * @return whether the retcode field is set + * optional uint32 compose_id = 5; + * @return whether the composeId field is set */ - public boolean hasRetcode() { + public boolean hasComposeId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 retcode = 1; - * @return this - */ - public ComposeSelectedRelicScRsp clearRetcode() { - bitField0_ &= ~0x00000001; - retcode = 0; - return this; - } - - /** - * optional uint32 retcode = 1; - * @return the retcode - */ - public int getRetcode() { - return retcode; - } - - /** - * optional uint32 retcode = 1; - * @param value the retcode to set - * @return this - */ - public ComposeSelectedRelicScRsp setRetcode(final int value) { - bitField0_ |= 0x00000001; - retcode = value; - return this; - } - - /** - * optional uint32 compose_id = 8; - * @return whether the composeId field is set - */ - public boolean hasComposeId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 compose_id = 8; + * optional uint32 compose_id = 5; * @return this */ public ComposeSelectedRelicScRsp clearComposeId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; composeId = 0; return this; } /** - * optional uint32 compose_id = 8; + * optional uint32 compose_id = 5; * @return the composeId */ public int getComposeId() { @@ -107,18 +70,55 @@ public final class ComposeSelectedRelicScRspOuterClass { } /** - * optional uint32 compose_id = 8; + * optional uint32 compose_id = 5; * @param value the composeId to set * @return this */ public ComposeSelectedRelicScRsp setComposeId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; composeId = value; return this; } /** - * optional .ItemList return_item_list = 2; + * optional uint32 retcode = 7; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 retcode = 7; + * @return this + */ + public ComposeSelectedRelicScRsp clearRetcode() { + bitField0_ &= ~0x00000002; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 7; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 7; + * @param value the retcode to set + * @return this + */ + public ComposeSelectedRelicScRsp setRetcode(final int value) { + bitField0_ |= 0x00000002; + retcode = value; + return this; + } + + /** + * optional .ItemList return_item_list = 14; * @return whether the returnItemList field is set */ public boolean hasReturnItemList() { @@ -126,7 +126,7 @@ public final class ComposeSelectedRelicScRspOuterClass { } /** - * optional .ItemList return_item_list = 2; + * optional .ItemList return_item_list = 14; * @return this */ public ComposeSelectedRelicScRsp clearReturnItemList() { @@ -136,7 +136,7 @@ public final class ComposeSelectedRelicScRspOuterClass { } /** - * optional .ItemList return_item_list = 2; + * optional .ItemList return_item_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. @@ -150,7 +150,7 @@ public final class ComposeSelectedRelicScRspOuterClass { } /** - * optional .ItemList return_item_list = 2; + * optional .ItemList return_item_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 @@ -164,7 +164,7 @@ public final class ComposeSelectedRelicScRspOuterClass { } /** - * optional .ItemList return_item_list = 2; + * optional .ItemList return_item_list = 14; * @param value the returnItemList to set * @return this */ @@ -179,8 +179,8 @@ public final class ComposeSelectedRelicScRspOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - retcode = other.retcode; composeId = other.composeId; + retcode = other.retcode; returnItemList.copyFrom(other.returnItemList); } return this; @@ -192,12 +192,12 @@ public final class ComposeSelectedRelicScRspOuterClass { return this; } cachedSize = -1; - if (other.hasRetcode()) { - setRetcode(other.retcode); - } if (other.hasComposeId()) { setComposeId(other.composeId); } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } if (other.hasReturnItemList()) { getMutableReturnItemList().mergeFrom(other.returnItemList); } @@ -211,8 +211,8 @@ public final class ComposeSelectedRelicScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - retcode = 0; composeId = 0; + retcode = 0; returnItemList.clear(); return this; } @@ -238,23 +238,23 @@ public final class ComposeSelectedRelicScRspOuterClass { } ComposeSelectedRelicScRsp other = (ComposeSelectedRelicScRsp) o; return bitField0_ == other.bitField0_ - && (!hasRetcode() || retcode == other.retcode) && (!hasComposeId() || composeId == other.composeId) + && (!hasRetcode() || retcode == other.retcode) && (!hasReturnItemList() || returnItemList.equals(other.returnItemList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(retcode); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 40); output.writeUInt32NoTag(composeId); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(retcode); + } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 18); + output.writeRawByte((byte) 114); output.writeMessageNoTag(returnItemList); } } @@ -263,10 +263,10 @@ public final class ComposeSelectedRelicScRspOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + 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.computeMessageSizeNoTag(returnItemList); @@ -281,25 +281,25 @@ public final class ComposeSelectedRelicScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 8: { - // retcode - retcode = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 64) { - break; - } - } - case 64: { + case 40: { // composeId composeId = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 18) { + if (tag != 56) { break; } } - case 18: { + case 56: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 114) { + break; + } + } + case 114: { // returnItemList input.readMessage(returnItemList); bitField0_ |= 0x00000004; @@ -326,10 +326,10 @@ public final class ComposeSelectedRelicScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.composeId, composeId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.composeId, composeId); + output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000004) != 0) { output.writeMessage(FieldNames.returnItemList, returnItemList); @@ -344,10 +344,11 @@ public final class ComposeSelectedRelicScRspOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - 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_ |= 0x00000001; } } else { @@ -355,11 +356,10 @@ public final class ComposeSelectedRelicScRspOuterClass { } 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 { @@ -432,10 +432,10 @@ public final class ComposeSelectedRelicScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName retcode = FieldName.forField("retcode"); - static final FieldName composeId = FieldName.forField("composeId", "compose_id"); + static final FieldName retcode = FieldName.forField("retcode"); + static final FieldName returnItemList = FieldName.forField("returnItemList", "return_item_list"); } } diff --git a/src/generated/main/emu/lunarcore/proto/DailyActiveInfoNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/DailyActiveInfoNotifyOuterClass.java index f7442e6..54c33a5 100644 --- a/src/generated/main/emu/lunarcore/proto/DailyActiveInfoNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/DailyActiveInfoNotifyOuterClass.java @@ -21,17 +21,17 @@ public final class DailyActiveInfoNotifyOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 daily_active_point = 12; + * optional uint32 daily_active_point = 14; */ private int dailyActivePoint; /** - * repeated uint32 daily_active_quest_id_list = 1; + * repeated uint32 daily_active_quest_id_list = 12; */ private final RepeatedInt dailyActiveQuestIdList = RepeatedInt.newEmptyInstance(); /** - * repeated .DailyActivityInfo daily_active_level_list = 2; + * repeated .DailyActivityInfo daily_active_level_list = 15; */ private final RepeatedMessage dailyActiveLevelList = RepeatedMessage.newEmptyInstance(DailyActivityInfoOuterClass.DailyActivityInfo.getFactory()); @@ -46,7 +46,7 @@ public final class DailyActiveInfoNotifyOuterClass { } /** - * optional uint32 daily_active_point = 12; + * optional uint32 daily_active_point = 14; * @return whether the dailyActivePoint field is set */ public boolean hasDailyActivePoint() { @@ -54,7 +54,7 @@ public final class DailyActiveInfoNotifyOuterClass { } /** - * optional uint32 daily_active_point = 12; + * optional uint32 daily_active_point = 14; * @return this */ public DailyActiveInfoNotify clearDailyActivePoint() { @@ -64,7 +64,7 @@ public final class DailyActiveInfoNotifyOuterClass { } /** - * optional uint32 daily_active_point = 12; + * optional uint32 daily_active_point = 14; * @return the dailyActivePoint */ public int getDailyActivePoint() { @@ -72,7 +72,7 @@ public final class DailyActiveInfoNotifyOuterClass { } /** - * optional uint32 daily_active_point = 12; + * optional uint32 daily_active_point = 14; * @param value the dailyActivePoint to set * @return this */ @@ -83,7 +83,7 @@ public final class DailyActiveInfoNotifyOuterClass { } /** - * repeated uint32 daily_active_quest_id_list = 1; + * repeated uint32 daily_active_quest_id_list = 12; * @return whether the dailyActiveQuestIdList field is set */ public boolean hasDailyActiveQuestIdList() { @@ -91,7 +91,7 @@ public final class DailyActiveInfoNotifyOuterClass { } /** - * repeated uint32 daily_active_quest_id_list = 1; + * repeated uint32 daily_active_quest_id_list = 12; * @return this */ public DailyActiveInfoNotify clearDailyActiveQuestIdList() { @@ -101,7 +101,7 @@ public final class DailyActiveInfoNotifyOuterClass { } /** - * repeated uint32 daily_active_quest_id_list = 1; + * repeated uint32 daily_active_quest_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. @@ -115,7 +115,7 @@ public final class DailyActiveInfoNotifyOuterClass { } /** - * repeated uint32 daily_active_quest_id_list = 1; + * repeated uint32 daily_active_quest_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 @@ -129,7 +129,7 @@ public final class DailyActiveInfoNotifyOuterClass { } /** - * repeated uint32 daily_active_quest_id_list = 1; + * repeated uint32 daily_active_quest_id_list = 12; * @param value the dailyActiveQuestIdList to add * @return this */ @@ -140,7 +140,7 @@ public final class DailyActiveInfoNotifyOuterClass { } /** - * repeated uint32 daily_active_quest_id_list = 1; + * repeated uint32 daily_active_quest_id_list = 12; * @param values the dailyActiveQuestIdList to add * @return this */ @@ -151,7 +151,7 @@ public final class DailyActiveInfoNotifyOuterClass { } /** - * repeated .DailyActivityInfo daily_active_level_list = 2; + * repeated .DailyActivityInfo daily_active_level_list = 15; * @return whether the dailyActiveLevelList field is set */ public boolean hasDailyActiveLevelList() { @@ -159,7 +159,7 @@ public final class DailyActiveInfoNotifyOuterClass { } /** - * repeated .DailyActivityInfo daily_active_level_list = 2; + * repeated .DailyActivityInfo daily_active_level_list = 15; * @return this */ public DailyActiveInfoNotify clearDailyActiveLevelList() { @@ -169,7 +169,7 @@ public final class DailyActiveInfoNotifyOuterClass { } /** - * repeated .DailyActivityInfo daily_active_level_list = 2; + * repeated .DailyActivityInfo daily_active_level_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. @@ -184,7 +184,7 @@ public final class DailyActiveInfoNotifyOuterClass { } /** - * repeated .DailyActivityInfo daily_active_level_list = 2; + * repeated .DailyActivityInfo daily_active_level_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 @@ -199,7 +199,7 @@ public final class DailyActiveInfoNotifyOuterClass { } /** - * repeated .DailyActivityInfo daily_active_level_list = 2; + * repeated .DailyActivityInfo daily_active_level_list = 15; * @param value the dailyActiveLevelList to add * @return this */ @@ -211,7 +211,7 @@ public final class DailyActiveInfoNotifyOuterClass { } /** - * repeated .DailyActivityInfo daily_active_level_list = 2; + * repeated .DailyActivityInfo daily_active_level_list = 15; * @param values the dailyActiveLevelList to add * @return this */ @@ -295,18 +295,18 @@ public final class DailyActiveInfoNotifyOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 112); output.writeUInt32NoTag(dailyActivePoint); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < dailyActiveQuestIdList.length(); i++) { - output.writeRawByte((byte) 8); + output.writeRawByte((byte) 96); output.writeUInt32NoTag(dailyActiveQuestIdList.array()[i]); } } if ((bitField0_ & 0x00000004) != 0) { for (int i = 0; i < dailyActiveLevelList.length(); i++) { - output.writeRawByte((byte) 18); + output.writeRawByte((byte) 122); output.writeMessageNoTag(dailyActiveLevelList.get(i)); } } @@ -334,25 +334,25 @@ public final class DailyActiveInfoNotifyOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 96: { + case 112: { // dailyActivePoint dailyActivePoint = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 10) { + if (tag != 98) { break; } } - case 10: { + case 98: { // dailyActiveQuestIdList [packed=true] input.readPackedUInt32(dailyActiveQuestIdList, tag); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 18) { + if (tag != 122) { break; } } - case 18: { + case 122: { // dailyActiveLevelList tag = input.readRepeatedMessage(dailyActiveLevelList, tag); bitField0_ |= 0x00000004; @@ -370,7 +370,7 @@ public final class DailyActiveInfoNotifyOuterClass { tag = input.readTag(); break; } - case 8: { + case 96: { // dailyActiveQuestIdList [packed=false] tag = input.readRepeatedUInt32(dailyActiveQuestIdList, tag); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/DailyActivityInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/DailyActivityInfoOuterClass.java index e5d5222..ffdf03e 100644 --- a/src/generated/main/emu/lunarcore/proto/DailyActivityInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/DailyActivityInfoOuterClass.java @@ -19,22 +19,22 @@ public final class DailyActivityInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 daily_active_point = 2; + * optional uint32 daily_active_point = 6; */ private int dailyActivePoint; /** - * optional uint32 level = 10; + * optional uint32 level = 8; */ private int level; /** - * optional uint32 world_level = 12; + * optional uint32 world_level = 15; */ private int worldLevel; /** - * optional bool is_has_taken = 8; + * optional bool is_has_taken = 11; */ private boolean isHasTaken; @@ -49,7 +49,7 @@ public final class DailyActivityInfoOuterClass { } /** - * optional uint32 daily_active_point = 2; + * optional uint32 daily_active_point = 6; * @return whether the dailyActivePoint field is set */ public boolean hasDailyActivePoint() { @@ -57,7 +57,7 @@ public final class DailyActivityInfoOuterClass { } /** - * optional uint32 daily_active_point = 2; + * optional uint32 daily_active_point = 6; * @return this */ public DailyActivityInfo clearDailyActivePoint() { @@ -67,7 +67,7 @@ public final class DailyActivityInfoOuterClass { } /** - * optional uint32 daily_active_point = 2; + * optional uint32 daily_active_point = 6; * @return the dailyActivePoint */ public int getDailyActivePoint() { @@ -75,7 +75,7 @@ public final class DailyActivityInfoOuterClass { } /** - * optional uint32 daily_active_point = 2; + * optional uint32 daily_active_point = 6; * @param value the dailyActivePoint to set * @return this */ @@ -86,7 +86,7 @@ public final class DailyActivityInfoOuterClass { } /** - * optional uint32 level = 10; + * optional uint32 level = 8; * @return whether the level field is set */ public boolean hasLevel() { @@ -94,7 +94,7 @@ public final class DailyActivityInfoOuterClass { } /** - * optional uint32 level = 10; + * optional uint32 level = 8; * @return this */ public DailyActivityInfo clearLevel() { @@ -104,7 +104,7 @@ public final class DailyActivityInfoOuterClass { } /** - * optional uint32 level = 10; + * optional uint32 level = 8; * @return the level */ public int getLevel() { @@ -112,7 +112,7 @@ public final class DailyActivityInfoOuterClass { } /** - * optional uint32 level = 10; + * optional uint32 level = 8; * @param value the level to set * @return this */ @@ -123,7 +123,7 @@ public final class DailyActivityInfoOuterClass { } /** - * optional uint32 world_level = 12; + * optional uint32 world_level = 15; * @return whether the worldLevel field is set */ public boolean hasWorldLevel() { @@ -131,7 +131,7 @@ public final class DailyActivityInfoOuterClass { } /** - * optional uint32 world_level = 12; + * optional uint32 world_level = 15; * @return this */ public DailyActivityInfo clearWorldLevel() { @@ -141,7 +141,7 @@ public final class DailyActivityInfoOuterClass { } /** - * optional uint32 world_level = 12; + * optional uint32 world_level = 15; * @return the worldLevel */ public int getWorldLevel() { @@ -149,7 +149,7 @@ public final class DailyActivityInfoOuterClass { } /** - * optional uint32 world_level = 12; + * optional uint32 world_level = 15; * @param value the worldLevel to set * @return this */ @@ -160,7 +160,7 @@ public final class DailyActivityInfoOuterClass { } /** - * optional bool is_has_taken = 8; + * optional bool is_has_taken = 11; * @return whether the isHasTaken field is set */ public boolean hasIsHasTaken() { @@ -168,7 +168,7 @@ public final class DailyActivityInfoOuterClass { } /** - * optional bool is_has_taken = 8; + * optional bool is_has_taken = 11; * @return this */ public DailyActivityInfo clearIsHasTaken() { @@ -178,7 +178,7 @@ public final class DailyActivityInfoOuterClass { } /** - * optional bool is_has_taken = 8; + * optional bool is_has_taken = 11; * @return the isHasTaken */ public boolean getIsHasTaken() { @@ -186,7 +186,7 @@ public final class DailyActivityInfoOuterClass { } /** - * optional bool is_has_taken = 8; + * optional bool is_has_taken = 11; * @param value the isHasTaken to set * @return this */ @@ -273,19 +273,19 @@ public final class DailyActivityInfoOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); + output.writeRawByte((byte) 48); output.writeUInt32NoTag(dailyActivePoint); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 64); output.writeUInt32NoTag(level); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 120); output.writeUInt32NoTag(worldLevel); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 88); output.writeBoolNoTag(isHasTaken); } } @@ -315,34 +315,34 @@ public final class DailyActivityInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { + case 48: { // dailyActivePoint dailyActivePoint = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 80) { - break; - } - } - case 80: { - // level - level = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 96) { - break; - } - } - case 96: { - // worldLevel - worldLevel = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); if (tag != 64) { break; } } case 64: { + // level + level = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // worldLevel + worldLevel = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { // isHasTaken isHasTaken = input.readBool(); bitField0_ |= 0x00000008; diff --git a/src/generated/main/emu/lunarcore/proto/DeactivateFarmElementCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/DeactivateFarmElementCsReqOuterClass.java new file mode 100644 index 0000000..c5a581e --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/DeactivateFarmElementCsReqOuterClass.java @@ -0,0 +1,260 @@ +// 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 DeactivateFarmElementCsReqOuterClass { + /** + * Protobuf type {@code DeactivateFarmElementCsReq} + */ + public static final class DeactivateFarmElementCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 entity_id = 9; + */ + private int entityId; + + private DeactivateFarmElementCsReq() { + } + + /** + * @return a new empty instance of {@code DeactivateFarmElementCsReq} + */ + public static DeactivateFarmElementCsReq newInstance() { + return new DeactivateFarmElementCsReq(); + } + + /** + * optional uint32 entity_id = 9; + * @return whether the entityId field is set + */ + public boolean hasEntityId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 entity_id = 9; + * @return this + */ + public DeactivateFarmElementCsReq clearEntityId() { + bitField0_ &= ~0x00000001; + entityId = 0; + return this; + } + + /** + * optional uint32 entity_id = 9; + * @return the entityId + */ + public int getEntityId() { + return entityId; + } + + /** + * optional uint32 entity_id = 9; + * @param value the entityId to set + * @return this + */ + public DeactivateFarmElementCsReq setEntityId(final int value) { + bitField0_ |= 0x00000001; + entityId = value; + return this; + } + + @Override + public DeactivateFarmElementCsReq copyFrom(final DeactivateFarmElementCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + entityId = other.entityId; + } + return this; + } + + @Override + public DeactivateFarmElementCsReq mergeFrom(final DeactivateFarmElementCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasEntityId()) { + setEntityId(other.entityId); + } + return this; + } + + @Override + public DeactivateFarmElementCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + entityId = 0; + return this; + } + + @Override + public DeactivateFarmElementCsReq 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 DeactivateFarmElementCsReq)) { + return false; + } + DeactivateFarmElementCsReq other = (DeactivateFarmElementCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasEntityId() || entityId == other.entityId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(entityId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(entityId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public DeactivateFarmElementCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 72: { + // entityId + entityId = input.readUInt32(); + bitField0_ |= 0x00000001; + 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.entityId, entityId); + } + output.endObject(); + } + + @Override + public DeactivateFarmElementCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + 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; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public DeactivateFarmElementCsReq clone() { + return new DeactivateFarmElementCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static DeactivateFarmElementCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new DeactivateFarmElementCsReq(), data).checkInitialized(); + } + + public static DeactivateFarmElementCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new DeactivateFarmElementCsReq(), input).checkInitialized(); + } + + public static DeactivateFarmElementCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new DeactivateFarmElementCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating DeactivateFarmElementCsReq messages + */ + public static MessageFactory getFactory() { + return DeactivateFarmElementCsReqFactory.INSTANCE; + } + + private enum DeactivateFarmElementCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public DeactivateFarmElementCsReq create() { + return DeactivateFarmElementCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName entityId = FieldName.forField("entityId", "entity_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/DeactivateFarmElementScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/DeactivateFarmElementScRspOuterClass.java new file mode 100644 index 0000000..7d67c9b --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/DeactivateFarmElementScRspOuterClass.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 DeactivateFarmElementScRspOuterClass { + /** + * Protobuf type {@code DeactivateFarmElementScRsp} + */ + public static final class DeactivateFarmElementScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 entity_id = 5; + */ + private int entityId; + + /** + * optional uint32 retcode = 15; + */ + private int retcode; + + private DeactivateFarmElementScRsp() { + } + + /** + * @return a new empty instance of {@code DeactivateFarmElementScRsp} + */ + public static DeactivateFarmElementScRsp newInstance() { + return new DeactivateFarmElementScRsp(); + } + + /** + * optional uint32 entity_id = 5; + * @return whether the entityId field is set + */ + public boolean hasEntityId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 entity_id = 5; + * @return this + */ + public DeactivateFarmElementScRsp clearEntityId() { + bitField0_ &= ~0x00000001; + entityId = 0; + return this; + } + + /** + * optional uint32 entity_id = 5; + * @return the entityId + */ + public int getEntityId() { + return entityId; + } + + /** + * optional uint32 entity_id = 5; + * @param value the entityId to set + * @return this + */ + public DeactivateFarmElementScRsp setEntityId(final int value) { + bitField0_ |= 0x00000001; + entityId = value; + return this; + } + + /** + * optional uint32 retcode = 15; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 retcode = 15; + * @return this + */ + public DeactivateFarmElementScRsp clearRetcode() { + bitField0_ &= ~0x00000002; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 15; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 15; + * @param value the retcode to set + * @return this + */ + public DeactivateFarmElementScRsp setRetcode(final int value) { + bitField0_ |= 0x00000002; + retcode = value; + return this; + } + + @Override + public DeactivateFarmElementScRsp copyFrom(final DeactivateFarmElementScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + entityId = other.entityId; + retcode = other.retcode; + } + return this; + } + + @Override + public DeactivateFarmElementScRsp mergeFrom(final DeactivateFarmElementScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasEntityId()) { + setEntityId(other.entityId); + } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + return this; + } + + @Override + public DeactivateFarmElementScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + entityId = 0; + retcode = 0; + return this; + } + + @Override + public DeactivateFarmElementScRsp 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 DeactivateFarmElementScRsp)) { + return false; + } + DeactivateFarmElementScRsp other = (DeactivateFarmElementScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasEntityId() || entityId == other.entityId) + && (!hasRetcode() || retcode == other.retcode); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(entityId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(retcode); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(entityId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public DeactivateFarmElementScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 40: { + // entityId + entityId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // retcode + retcode = 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.entityId, entityId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } + output.endObject(); + } + + @Override + public DeactivateFarmElementScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + 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 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public DeactivateFarmElementScRsp clone() { + return new DeactivateFarmElementScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static DeactivateFarmElementScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new DeactivateFarmElementScRsp(), data).checkInitialized(); + } + + public static DeactivateFarmElementScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new DeactivateFarmElementScRsp(), input).checkInitialized(); + } + + public static DeactivateFarmElementScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new DeactivateFarmElementScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating DeactivateFarmElementScRsp messages + */ + public static MessageFactory getFactory() { + return DeactivateFarmElementScRspFactory.INSTANCE; + } + + private enum DeactivateFarmElementScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public DeactivateFarmElementScRsp create() { + return DeactivateFarmElementScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName entityId = FieldName.forField("entityId", "entity_id"); + + static final FieldName retcode = FieldName.forField("retcode"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/DelMailCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/DelMailCsReqOuterClass.java index fe622de..17bb3a9 100644 --- a/src/generated/main/emu/lunarcore/proto/DelMailCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/DelMailCsReqOuterClass.java @@ -20,7 +20,7 @@ public final class DelMailCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * repeated uint32 id_list = 13; + * repeated uint32 id_list = 8; */ private final RepeatedInt idList = RepeatedInt.newEmptyInstance(); @@ -35,7 +35,7 @@ public final class DelMailCsReqOuterClass { } /** - * repeated uint32 id_list = 13; + * repeated uint32 id_list = 8; * @return whether the idList field is set */ public boolean hasIdList() { @@ -43,7 +43,7 @@ public final class DelMailCsReqOuterClass { } /** - * repeated uint32 id_list = 13; + * repeated uint32 id_list = 8; * @return this */ public DelMailCsReq clearIdList() { @@ -53,7 +53,7 @@ public final class DelMailCsReqOuterClass { } /** - * repeated uint32 id_list = 13; + * repeated uint32 id_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. @@ -67,7 +67,7 @@ public final class DelMailCsReqOuterClass { } /** - * repeated uint32 id_list = 13; + * repeated uint32 id_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 @@ -81,7 +81,7 @@ public final class DelMailCsReqOuterClass { } /** - * repeated uint32 id_list = 13; + * repeated uint32 id_list = 8; * @param value the idList to add * @return this */ @@ -92,7 +92,7 @@ public final class DelMailCsReqOuterClass { } /** - * repeated uint32 id_list = 13; + * repeated uint32 id_list = 8; * @param values the idList to add * @return this */ @@ -163,7 +163,7 @@ public final class DelMailCsReqOuterClass { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { for (int i = 0; i < idList.length(); i++) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 64); output.writeUInt32NoTag(idList.array()[i]); } } @@ -185,7 +185,7 @@ public final class DelMailCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 106: { + case 66: { // idList [packed=true] input.readPackedUInt32(idList, tag); bitField0_ |= 0x00000001; @@ -204,7 +204,7 @@ public final class DelMailCsReqOuterClass { tag = input.readTag(); break; } - case 104: { + case 64: { // idList [packed=false] tag = input.readRepeatedUInt32(idList, tag); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/DelMailScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/DelMailScRspOuterClass.java index e9cb962..736301e 100644 --- a/src/generated/main/emu/lunarcore/proto/DelMailScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/DelMailScRspOuterClass.java @@ -20,12 +20,12 @@ public final class DelMailScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 4; */ private int retcode; /** - * repeated uint32 id_list = 5; + * repeated uint32 id_list = 7; */ private final RepeatedInt idList = RepeatedInt.newEmptyInstance(); @@ -40,7 +40,7 @@ public final class DelMailScRspOuterClass { } /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 4; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -48,7 +48,7 @@ public final class DelMailScRspOuterClass { } /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 4; * @return this */ public DelMailScRsp clearRetcode() { @@ -58,7 +58,7 @@ public final class DelMailScRspOuterClass { } /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 4; * @return the retcode */ public int getRetcode() { @@ -66,7 +66,7 @@ public final class DelMailScRspOuterClass { } /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 4; * @param value the retcode to set * @return this */ @@ -77,7 +77,7 @@ public final class DelMailScRspOuterClass { } /** - * repeated uint32 id_list = 5; + * repeated uint32 id_list = 7; * @return whether the idList field is set */ public boolean hasIdList() { @@ -85,7 +85,7 @@ public final class DelMailScRspOuterClass { } /** - * repeated uint32 id_list = 5; + * repeated uint32 id_list = 7; * @return this */ public DelMailScRsp clearIdList() { @@ -95,7 +95,7 @@ public final class DelMailScRspOuterClass { } /** - * repeated uint32 id_list = 5; + * repeated uint32 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. @@ -109,7 +109,7 @@ public final class DelMailScRspOuterClass { } /** - * repeated uint32 id_list = 5; + * repeated uint32 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 @@ -123,7 +123,7 @@ public final class DelMailScRspOuterClass { } /** - * repeated uint32 id_list = 5; + * repeated uint32 id_list = 7; * @param value the idList to add * @return this */ @@ -134,7 +134,7 @@ public final class DelMailScRspOuterClass { } /** - * repeated uint32 id_list = 5; + * repeated uint32 id_list = 7; * @param values the idList to add * @return this */ @@ -210,12 +210,12 @@ public final class DelMailScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < idList.length(); i++) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 56); output.writeUInt32NoTag(idList.array()[i]); } } @@ -240,16 +240,16 @@ public final class DelMailScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 56: { + case 32: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 42) { + if (tag != 58) { break; } } - case 42: { + case 58: { // idList [packed=true] input.readPackedUInt32(idList, tag); bitField0_ |= 0x00000002; @@ -268,7 +268,7 @@ public final class DelMailScRspOuterClass { tag = input.readTag(); break; } - case 40: { + case 56: { // idList [packed=false] tag = input.readRepeatedUInt32(idList, tag); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/DeleteFriendCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/DeleteFriendCsReqOuterClass.java index d468153..cb981b9 100644 --- a/src/generated/main/emu/lunarcore/proto/DeleteFriendCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/DeleteFriendCsReqOuterClass.java @@ -19,7 +19,7 @@ public final class DeleteFriendCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 uid = 2; + * optional uint32 uid = 3; */ private int uid; @@ -34,7 +34,7 @@ public final class DeleteFriendCsReqOuterClass { } /** - * optional uint32 uid = 2; + * optional uint32 uid = 3; * @return whether the uid field is set */ public boolean hasUid() { @@ -42,7 +42,7 @@ public final class DeleteFriendCsReqOuterClass { } /** - * optional uint32 uid = 2; + * optional uint32 uid = 3; * @return this */ public DeleteFriendCsReq clearUid() { @@ -52,7 +52,7 @@ public final class DeleteFriendCsReqOuterClass { } /** - * optional uint32 uid = 2; + * optional uint32 uid = 3; * @return the uid */ public int getUid() { @@ -60,7 +60,7 @@ public final class DeleteFriendCsReqOuterClass { } /** - * optional uint32 uid = 2; + * optional uint32 uid = 3; * @param value the uid to set * @return this */ @@ -129,7 +129,7 @@ public final class DeleteFriendCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); + output.writeRawByte((byte) 24); output.writeUInt32NoTag(uid); } } @@ -150,7 +150,7 @@ public final class DeleteFriendCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { + case 24: { // uid uid = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/OFHBFINPHAGOuterClass.java b/src/generated/main/emu/lunarcore/proto/DeployRotaterCsReqOuterClass.java similarity index 50% rename from src/generated/main/emu/lunarcore/proto/OFHBFINPHAGOuterClass.java rename to src/generated/main/emu/lunarcore/proto/DeployRotaterCsReqOuterClass.java index c1150c9..7223406 100644 --- a/src/generated/main/emu/lunarcore/proto/OFHBFINPHAGOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/DeployRotaterCsReqOuterClass.java @@ -10,64 +10,63 @@ 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 OFHBFINPHAGOuterClass { +public final class DeployRotaterCsReqOuterClass { /** - * Protobuf type {@code OFHBFINPHAG} + * Protobuf type {@code DeployRotaterCsReq} */ - public static final class OFHBFINPHAG extends ProtoMessage implements Cloneable { + public static final class DeployRotaterCsReq extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * repeated uint32 AALLCOBKIDB = 14; + * optional .RotaterData rotater_data = 4; */ - private final RepeatedInt aALLCOBKIDB = RepeatedInt.newEmptyInstance(); + private final RotaterDataOuterClass.RotaterData rotaterData = RotaterDataOuterClass.RotaterData.newInstance(); - private OFHBFINPHAG() { + private DeployRotaterCsReq() { } /** - * @return a new empty instance of {@code OFHBFINPHAG} + * @return a new empty instance of {@code DeployRotaterCsReq} */ - public static OFHBFINPHAG newInstance() { - return new OFHBFINPHAG(); + public static DeployRotaterCsReq newInstance() { + return new DeployRotaterCsReq(); } /** - * repeated uint32 AALLCOBKIDB = 14; - * @return whether the aALLCOBKIDB field is set + * optional .RotaterData rotater_data = 4; + * @return whether the rotaterData field is set */ - public boolean hasAALLCOBKIDB() { + public boolean hasRotaterData() { return (bitField0_ & 0x00000001) != 0; } /** - * repeated uint32 AALLCOBKIDB = 14; + * optional .RotaterData rotater_data = 4; * @return this */ - public OFHBFINPHAG clearAALLCOBKIDB() { + public DeployRotaterCsReq clearRotaterData() { bitField0_ &= ~0x00000001; - aALLCOBKIDB.clear(); + rotaterData.clear(); return this; } /** - * repeated uint32 AALLCOBKIDB = 14; + * optional .RotaterData rotater_data = 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 #getMutableAALLCOBKIDB()} if you want to modify it. + * Use {@link #getMutableRotaterData()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedInt getAALLCOBKIDB() { - return aALLCOBKIDB; + public RotaterDataOuterClass.RotaterData getRotaterData() { + return rotaterData; } /** - * repeated uint32 AALLCOBKIDB = 14; + * optional .RotaterData rotater_data = 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 @@ -75,74 +74,63 @@ public final class OFHBFINPHAGOuterClass { * * @return internal storage object for modifications */ - public RepeatedInt getMutableAALLCOBKIDB() { + public RotaterDataOuterClass.RotaterData getMutableRotaterData() { bitField0_ |= 0x00000001; - return aALLCOBKIDB; + return rotaterData; } /** - * repeated uint32 AALLCOBKIDB = 14; - * @param value the aALLCOBKIDB to add + * optional .RotaterData rotater_data = 4; + * @param value the rotaterData to set * @return this */ - public OFHBFINPHAG addAALLCOBKIDB(final int value) { + public DeployRotaterCsReq setRotaterData(final RotaterDataOuterClass.RotaterData value) { bitField0_ |= 0x00000001; - aALLCOBKIDB.add(value); - return this; - } - - /** - * repeated uint32 AALLCOBKIDB = 14; - * @param values the aALLCOBKIDB to add - * @return this - */ - public OFHBFINPHAG addAllAALLCOBKIDB(final int... values) { - bitField0_ |= 0x00000001; - aALLCOBKIDB.addAll(values); + rotaterData.copyFrom(value); return this; } @Override - public OFHBFINPHAG copyFrom(final OFHBFINPHAG other) { + public DeployRotaterCsReq copyFrom(final DeployRotaterCsReq other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - aALLCOBKIDB.copyFrom(other.aALLCOBKIDB); + rotaterData.copyFrom(other.rotaterData); } return this; } @Override - public OFHBFINPHAG mergeFrom(final OFHBFINPHAG other) { + public DeployRotaterCsReq mergeFrom(final DeployRotaterCsReq other) { if (other.isEmpty()) { return this; } cachedSize = -1; - if (other.hasAALLCOBKIDB()) { - getMutableAALLCOBKIDB().addAll(other.aALLCOBKIDB); + if (other.hasRotaterData()) { + getMutableRotaterData().mergeFrom(other.rotaterData); } return this; } @Override - public OFHBFINPHAG clear() { + public DeployRotaterCsReq clear() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - aALLCOBKIDB.clear(); + rotaterData.clear(); return this; } @Override - public OFHBFINPHAG clearQuick() { + public DeployRotaterCsReq clearQuick() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - aALLCOBKIDB.clear(); + rotaterData.clearQuick(); return this; } @@ -151,21 +139,19 @@ public final class OFHBFINPHAGOuterClass { if (o == this) { return true; } - if (!(o instanceof OFHBFINPHAG)) { + if (!(o instanceof DeployRotaterCsReq)) { return false; } - OFHBFINPHAG other = (OFHBFINPHAG) o; + DeployRotaterCsReq other = (DeployRotaterCsReq) o; return bitField0_ == other.bitField0_ - && (!hasAALLCOBKIDB() || aALLCOBKIDB.equals(other.aALLCOBKIDB)); + && (!hasRotaterData() || rotaterData.equals(other.rotaterData)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - for (int i = 0; i < aALLCOBKIDB.length(); i++) { - output.writeRawByte((byte) 112); - output.writeUInt32NoTag(aALLCOBKIDB.array()[i]); - } + output.writeRawByte((byte) 34); + output.writeMessageNoTag(rotaterData); } } @@ -173,21 +159,21 @@ public final class OFHBFINPHAGOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += (1 * aALLCOBKIDB.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(aALLCOBKIDB); + size += 1 + ProtoSink.computeMessageSizeNoTag(rotaterData); } return size; } @Override @SuppressWarnings("fallthrough") - public OFHBFINPHAG mergeFrom(final ProtoSource input) throws IOException { + public DeployRotaterCsReq mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { switch (tag) { - case 114: { - // aALLCOBKIDB [packed=true] - input.readPackedUInt32(aALLCOBKIDB, tag); + case 34: { + // rotaterData + input.readMessage(rotaterData); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 0) { @@ -204,12 +190,6 @@ public final class OFHBFINPHAGOuterClass { tag = input.readTag(); break; } - case 112: { - // aALLCOBKIDB [packed=false] - tag = input.readRepeatedUInt32(aALLCOBKIDB, tag); - bitField0_ |= 0x00000001; - break; - } } } } @@ -218,22 +198,23 @@ public final class OFHBFINPHAGOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeRepeatedUInt32(FieldNames.aALLCOBKIDB, aALLCOBKIDB); + output.writeMessage(FieldNames.rotaterData, rotaterData); } output.endObject(); } @Override - public OFHBFINPHAG mergeFrom(final JsonSource input) throws IOException { + public DeployRotaterCsReq mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 313982738: { - if (input.isAtField(FieldNames.aALLCOBKIDB)) { + case 1880563393: + case -1807070094: { + if (input.isAtField(FieldNames.rotaterData)) { if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(aALLCOBKIDB); + input.readMessage(rotaterData); bitField0_ |= 0x00000001; } } else { @@ -252,8 +233,8 @@ public final class OFHBFINPHAGOuterClass { } @Override - public OFHBFINPHAG clone() { - return new OFHBFINPHAG().copyFrom(this); + public DeployRotaterCsReq clone() { + return new DeployRotaterCsReq().copyFrom(this); } @Override @@ -261,31 +242,32 @@ public final class OFHBFINPHAGOuterClass { return ((bitField0_) == 0); } - public static OFHBFINPHAG parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new OFHBFINPHAG(), data).checkInitialized(); + public static DeployRotaterCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new DeployRotaterCsReq(), data).checkInitialized(); } - public static OFHBFINPHAG parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new OFHBFINPHAG(), input).checkInitialized(); + public static DeployRotaterCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new DeployRotaterCsReq(), input).checkInitialized(); } - public static OFHBFINPHAG parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new OFHBFINPHAG(), input).checkInitialized(); + public static DeployRotaterCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new DeployRotaterCsReq(), input).checkInitialized(); } /** - * @return factory for creating OFHBFINPHAG messages + * @return factory for creating DeployRotaterCsReq messages */ - public static MessageFactory getFactory() { - return OFHBFINPHAGFactory.INSTANCE; + public static MessageFactory getFactory() { + return DeployRotaterCsReqFactory.INSTANCE; } - private enum OFHBFINPHAGFactory implements MessageFactory { + private enum DeployRotaterCsReqFactory implements MessageFactory { INSTANCE; @Override - public OFHBFINPHAG create() { - return OFHBFINPHAG.newInstance(); + public DeployRotaterCsReq create() { + return DeployRotaterCsReq.newInstance(); } } @@ -293,7 +275,7 @@ public final class OFHBFINPHAGOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName aALLCOBKIDB = FieldName.forField("AALLCOBKIDB"); + static final FieldName rotaterData = FieldName.forField("rotaterData", "rotater_data"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/DeployRotaterScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/DeployRotaterScRspOuterClass.java new file mode 100644 index 0000000..0ffc00a --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/DeployRotaterScRspOuterClass.java @@ -0,0 +1,789 @@ +// 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 DeployRotaterScRspOuterClass { + /** + * Protobuf type {@code DeployRotaterScRsp} + */ + public static final class DeployRotaterScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 3; + */ + private int retcode; + + /** + * optional .DeployRotaterScRsp.EnergyInfo energy_info = 7; + */ + private final EnergyInfo energyInfo = EnergyInfo.newInstance(); + + /** + * optional .RotaterData rotater_data = 9; + */ + private final RotaterDataOuterClass.RotaterData rotaterData = RotaterDataOuterClass.RotaterData.newInstance(); + + private DeployRotaterScRsp() { + } + + /** + * @return a new empty instance of {@code DeployRotaterScRsp} + */ + public static DeployRotaterScRsp newInstance() { + return new DeployRotaterScRsp(); + } + + /** + * optional uint32 retcode = 3; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 3; + * @return this + */ + public DeployRotaterScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 3; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 3; + * @param value the retcode to set + * @return this + */ + public DeployRotaterScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * optional .DeployRotaterScRsp.EnergyInfo energy_info = 7; + * @return whether the energyInfo field is set + */ + public boolean hasEnergyInfo() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .DeployRotaterScRsp.EnergyInfo energy_info = 7; + * @return this + */ + public DeployRotaterScRsp clearEnergyInfo() { + bitField0_ &= ~0x00000002; + energyInfo.clear(); + return this; + } + + /** + * optional .DeployRotaterScRsp.EnergyInfo energy_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. + * + * Use {@link #getMutableEnergyInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public EnergyInfo getEnergyInfo() { + return energyInfo; + } + + /** + * optional .DeployRotaterScRsp.EnergyInfo energy_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 + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public EnergyInfo getMutableEnergyInfo() { + bitField0_ |= 0x00000002; + return energyInfo; + } + + /** + * optional .DeployRotaterScRsp.EnergyInfo energy_info = 7; + * @param value the energyInfo to set + * @return this + */ + public DeployRotaterScRsp setEnergyInfo(final EnergyInfo value) { + bitField0_ |= 0x00000002; + energyInfo.copyFrom(value); + return this; + } + + /** + * optional .RotaterData rotater_data = 9; + * @return whether the rotaterData field is set + */ + public boolean hasRotaterData() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .RotaterData rotater_data = 9; + * @return this + */ + public DeployRotaterScRsp clearRotaterData() { + bitField0_ &= ~0x00000004; + rotaterData.clear(); + return this; + } + + /** + * optional .RotaterData rotater_data = 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 #getMutableRotaterData()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RotaterDataOuterClass.RotaterData getRotaterData() { + return rotaterData; + } + + /** + * optional .RotaterData rotater_data = 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 + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RotaterDataOuterClass.RotaterData getMutableRotaterData() { + bitField0_ |= 0x00000004; + return rotaterData; + } + + /** + * optional .RotaterData rotater_data = 9; + * @param value the rotaterData to set + * @return this + */ + public DeployRotaterScRsp setRotaterData(final RotaterDataOuterClass.RotaterData value) { + bitField0_ |= 0x00000004; + rotaterData.copyFrom(value); + return this; + } + + @Override + public DeployRotaterScRsp copyFrom(final DeployRotaterScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + energyInfo.copyFrom(other.energyInfo); + rotaterData.copyFrom(other.rotaterData); + } + return this; + } + + @Override + public DeployRotaterScRsp mergeFrom(final DeployRotaterScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasEnergyInfo()) { + getMutableEnergyInfo().mergeFrom(other.energyInfo); + } + if (other.hasRotaterData()) { + getMutableRotaterData().mergeFrom(other.rotaterData); + } + return this; + } + + @Override + public DeployRotaterScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + energyInfo.clear(); + rotaterData.clear(); + return this; + } + + @Override + public DeployRotaterScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + energyInfo.clearQuick(); + rotaterData.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof DeployRotaterScRsp)) { + return false; + } + DeployRotaterScRsp other = (DeployRotaterScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasEnergyInfo() || energyInfo.equals(other.energyInfo)) + && (!hasRotaterData() || rotaterData.equals(other.rotaterData)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 58); + output.writeMessageNoTag(energyInfo); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 74); + output.writeMessageNoTag(rotaterData); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(energyInfo); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(rotaterData); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public DeployRotaterScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 24: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 58) { + break; + } + } + case 58: { + // energyInfo + input.readMessage(energyInfo); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 74) { + break; + } + } + case 74: { + // rotaterData + input.readMessage(rotaterData); + 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.retcode, retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.energyInfo, energyInfo); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.rotaterData, rotaterData); + } + output.endObject(); + } + + @Override + public DeployRotaterScRsp 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 1464698710: + case -1818804219: { + if (input.isAtField(FieldNames.energyInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(energyInfo); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1880563393: + case -1807070094: { + if (input.isAtField(FieldNames.rotaterData)) { + if (!input.trySkipNullValue()) { + input.readMessage(rotaterData); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public DeployRotaterScRsp clone() { + return new DeployRotaterScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static DeployRotaterScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new DeployRotaterScRsp(), data).checkInitialized(); + } + + public static DeployRotaterScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new DeployRotaterScRsp(), input).checkInitialized(); + } + + public static DeployRotaterScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new DeployRotaterScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating DeployRotaterScRsp messages + */ + public static MessageFactory getFactory() { + return DeployRotaterScRspFactory.INSTANCE; + } + + /** + * Protobuf type {@code EnergyInfo} + */ + public static final class EnergyInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 cur_num = 3; + */ + private int curNum; + + /** + * optional uint32 max_num = 14; + */ + private int maxNum; + + private EnergyInfo() { + } + + /** + * @return a new empty instance of {@code EnergyInfo} + */ + public static EnergyInfo newInstance() { + return new EnergyInfo(); + } + + /** + * optional uint32 cur_num = 3; + * @return whether the curNum field is set + */ + public boolean hasCurNum() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 cur_num = 3; + * @return this + */ + public EnergyInfo clearCurNum() { + bitField0_ &= ~0x00000001; + curNum = 0; + return this; + } + + /** + * optional uint32 cur_num = 3; + * @return the curNum + */ + public int getCurNum() { + return curNum; + } + + /** + * optional uint32 cur_num = 3; + * @param value the curNum to set + * @return this + */ + public EnergyInfo setCurNum(final int value) { + bitField0_ |= 0x00000001; + curNum = value; + return this; + } + + /** + * optional uint32 max_num = 14; + * @return whether the maxNum field is set + */ + public boolean hasMaxNum() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 max_num = 14; + * @return this + */ + public EnergyInfo clearMaxNum() { + bitField0_ &= ~0x00000002; + maxNum = 0; + return this; + } + + /** + * optional uint32 max_num = 14; + * @return the maxNum + */ + public int getMaxNum() { + return maxNum; + } + + /** + * optional uint32 max_num = 14; + * @param value the maxNum to set + * @return this + */ + public EnergyInfo setMaxNum(final int value) { + bitField0_ |= 0x00000002; + maxNum = value; + return this; + } + + @Override + public EnergyInfo copyFrom(final EnergyInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + curNum = other.curNum; + maxNum = other.maxNum; + } + return this; + } + + @Override + public EnergyInfo mergeFrom(final EnergyInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasCurNum()) { + setCurNum(other.curNum); + } + if (other.hasMaxNum()) { + setMaxNum(other.maxNum); + } + return this; + } + + @Override + public EnergyInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + curNum = 0; + maxNum = 0; + return this; + } + + @Override + public EnergyInfo 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 EnergyInfo)) { + return false; + } + EnergyInfo other = (EnergyInfo) o; + return bitField0_ == other.bitField0_ + && (!hasCurNum() || curNum == other.curNum) + && (!hasMaxNum() || maxNum == other.maxNum); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(curNum); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(maxNum); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(curNum); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(maxNum); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public EnergyInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 24: { + // curNum + curNum = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // maxNum + maxNum = 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.curNum, curNum); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.maxNum, maxNum); + } + output.endObject(); + } + + @Override + public EnergyInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1349154522: + case 1126382855: { + if (input.isAtField(FieldNames.curNum)) { + if (!input.trySkipNullValue()) { + curNum = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1081154686: + case 844443179: { + if (input.isAtField(FieldNames.maxNum)) { + if (!input.trySkipNullValue()) { + maxNum = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public EnergyInfo clone() { + return new EnergyInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static EnergyInfo parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new EnergyInfo(), data).checkInitialized(); + } + + public static EnergyInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new EnergyInfo(), input).checkInitialized(); + } + + public static EnergyInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new EnergyInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating EnergyInfo messages + */ + public static MessageFactory getFactory() { + return EnergyInfoFactory.INSTANCE; + } + + private enum EnergyInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public EnergyInfo create() { + return EnergyInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName curNum = FieldName.forField("curNum", "cur_num"); + + static final FieldName maxNum = FieldName.forField("maxNum", "max_num"); + } + } + + private enum DeployRotaterScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public DeployRotaterScRsp create() { + return DeployRotaterScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName energyInfo = FieldName.forField("energyInfo", "energy_info"); + + static final FieldName rotaterData = FieldName.forField("rotaterData", "rotater_data"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/DisplayAvatarOuterClass.java b/src/generated/main/emu/lunarcore/proto/DisplayAvatarOuterClass.java index 9293a52..2d58382 100644 --- a/src/generated/main/emu/lunarcore/proto/DisplayAvatarOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/DisplayAvatarOuterClass.java @@ -19,15 +19,15 @@ public final class DisplayAvatarOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 avatar_id = 8; - */ - private int avatarId; - - /** - * optional uint32 pos = 13; + * optional uint32 pos = 10; */ private int pos; + /** + * optional uint32 avatar_id = 14; + */ + private int avatarId; + private DisplayAvatar() { } @@ -39,62 +39,25 @@ public final class DisplayAvatarOuterClass { } /** - * optional uint32 avatar_id = 8; - * @return whether the avatarId field is set + * optional uint32 pos = 10; + * @return whether the pos field is set */ - public boolean hasAvatarId() { + public boolean hasPos() { 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; + * optional uint32 pos = 10; * @return this */ public DisplayAvatar clearPos() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; pos = 0; return this; } /** - * optional uint32 pos = 13; + * optional uint32 pos = 10; * @return the pos */ public int getPos() { @@ -102,23 +65,60 @@ public final class DisplayAvatarOuterClass { } /** - * optional uint32 pos = 13; + * optional uint32 pos = 10; * @param value the pos to set * @return this */ public DisplayAvatar setPos(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; pos = value; return this; } + /** + * optional uint32 avatar_id = 14; + * @return whether the avatarId field is set + */ + public boolean hasAvatarId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 avatar_id = 14; + * @return this + */ + public DisplayAvatar clearAvatarId() { + bitField0_ &= ~0x00000002; + avatarId = 0; + return this; + } + + /** + * optional uint32 avatar_id = 14; + * @return the avatarId + */ + public int getAvatarId() { + return avatarId; + } + + /** + * optional uint32 avatar_id = 14; + * @param value the avatarId to set + * @return this + */ + public DisplayAvatar setAvatarId(final int value) { + bitField0_ |= 0x00000002; + avatarId = 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; + avatarId = other.avatarId; } return this; } @@ -129,12 +129,12 @@ public final class DisplayAvatarOuterClass { return this; } cachedSize = -1; - if (other.hasAvatarId()) { - setAvatarId(other.avatarId); - } if (other.hasPos()) { setPos(other.pos); } + if (other.hasAvatarId()) { + setAvatarId(other.avatarId); + } return this; } @@ -145,8 +145,8 @@ public final class DisplayAvatarOuterClass { } cachedSize = -1; bitField0_ = 0; - avatarId = 0; pos = 0; + avatarId = 0; return this; } @@ -170,19 +170,19 @@ public final class DisplayAvatarOuterClass { } DisplayAvatar other = (DisplayAvatar) o; return bitField0_ == other.bitField0_ - && (!hasAvatarId() || avatarId == other.avatarId) - && (!hasPos() || pos == other.pos); + && (!hasPos() || pos == other.pos) + && (!hasAvatarId() || avatarId == other.avatarId); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 64); - output.writeUInt32NoTag(avatarId); + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(pos); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 104); - output.writeUInt32NoTag(pos); + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(avatarId); } } @@ -190,10 +190,10 @@ public final class DisplayAvatarOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(avatarId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(pos); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(pos); + size += 1 + ProtoSink.computeUInt32SizeNoTag(avatarId); } return size; } @@ -205,18 +205,18 @@ public final class DisplayAvatarOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 64: { - // avatarId - avatarId = input.readUInt32(); + case 80: { + // pos + pos = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 104) { + if (tag != 112) { break; } } - case 104: { - // pos - pos = input.readUInt32(); + case 112: { + // avatarId + avatarId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { @@ -241,10 +241,10 @@ public final class DisplayAvatarOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.avatarId, avatarId); + output.writeUInt32(FieldNames.pos, pos); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.pos, pos); + output.writeUInt32(FieldNames.avatarId, avatarId); } output.endObject(); } @@ -256,11 +256,10 @@ public final class DisplayAvatarOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1787287636: - case -428636735: { - if (input.isAtField(FieldNames.avatarId)) { + case 111188: { + if (input.isAtField(FieldNames.pos)) { if (!input.trySkipNullValue()) { - avatarId = input.readUInt32(); + pos = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -268,10 +267,11 @@ public final class DisplayAvatarOuterClass { } break; } - case 111188: { - if (input.isAtField(FieldNames.pos)) { + case 1787287636: + case -428636735: { + if (input.isAtField(FieldNames.avatarId)) { if (!input.trySkipNullValue()) { - pos = input.readUInt32(); + avatarId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -331,9 +331,9 @@ public final class DisplayAvatarOuterClass { * 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"); + + static final FieldName avatarId = FieldName.forField("avatarId", "avatar_id"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/DisplayAvatarVecOuterClass.java b/src/generated/main/emu/lunarcore/proto/DisplayAvatarVecOuterClass.java index d41f09d..10ab331 100644 --- a/src/generated/main/emu/lunarcore/proto/DisplayAvatarVecOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/DisplayAvatarVecOuterClass.java @@ -20,12 +20,12 @@ public final class DisplayAvatarVecOuterClass { private static final long serialVersionUID = 0L; /** - * optional bool is_display = 7; + * optional bool is_display = 3; */ private boolean isDisplay; /** - * repeated .DisplayAvatar display_avatar_list = 14; + * repeated .DisplayAvatar display_avatar_list = 15; */ private final RepeatedMessage displayAvatarList = RepeatedMessage.newEmptyInstance(DisplayAvatarOuterClass.DisplayAvatar.getFactory()); @@ -40,7 +40,7 @@ public final class DisplayAvatarVecOuterClass { } /** - * optional bool is_display = 7; + * optional bool is_display = 3; * @return whether the isDisplay field is set */ public boolean hasIsDisplay() { @@ -48,7 +48,7 @@ public final class DisplayAvatarVecOuterClass { } /** - * optional bool is_display = 7; + * optional bool is_display = 3; * @return this */ public DisplayAvatarVec clearIsDisplay() { @@ -58,7 +58,7 @@ public final class DisplayAvatarVecOuterClass { } /** - * optional bool is_display = 7; + * optional bool is_display = 3; * @return the isDisplay */ public boolean getIsDisplay() { @@ -66,7 +66,7 @@ public final class DisplayAvatarVecOuterClass { } /** - * optional bool is_display = 7; + * optional bool is_display = 3; * @param value the isDisplay to set * @return this */ @@ -77,7 +77,7 @@ public final class DisplayAvatarVecOuterClass { } /** - * repeated .DisplayAvatar display_avatar_list = 14; + * repeated .DisplayAvatar display_avatar_list = 15; * @return whether the displayAvatarList field is set */ public boolean hasDisplayAvatarList() { @@ -85,7 +85,7 @@ public final class DisplayAvatarVecOuterClass { } /** - * repeated .DisplayAvatar display_avatar_list = 14; + * repeated .DisplayAvatar display_avatar_list = 15; * @return this */ public DisplayAvatarVec clearDisplayAvatarList() { @@ -95,7 +95,7 @@ public final class DisplayAvatarVecOuterClass { } /** - * repeated .DisplayAvatar display_avatar_list = 14; + * repeated .DisplayAvatar display_avatar_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 final class DisplayAvatarVecOuterClass { } /** - * repeated .DisplayAvatar display_avatar_list = 14; + * repeated .DisplayAvatar display_avatar_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 final class DisplayAvatarVecOuterClass { } /** - * repeated .DisplayAvatar display_avatar_list = 14; + * repeated .DisplayAvatar display_avatar_list = 15; * @param value the displayAvatarList to add * @return this */ @@ -135,7 +135,7 @@ public final class DisplayAvatarVecOuterClass { } /** - * repeated .DisplayAvatar display_avatar_list = 14; + * repeated .DisplayAvatar display_avatar_list = 15; * @param values the displayAvatarList to add * @return this */ @@ -212,12 +212,12 @@ public final class DisplayAvatarVecOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 24); output.writeBoolNoTag(isDisplay); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < displayAvatarList.length(); i++) { - output.writeRawByte((byte) 114); + output.writeRawByte((byte) 122); output.writeMessageNoTag(displayAvatarList.get(i)); } } @@ -242,16 +242,16 @@ public final class DisplayAvatarVecOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 56: { + case 24: { // isDisplay isDisplay = input.readBool(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 114) { + if (tag != 122) { break; } } - case 114: { + case 122: { // displayAvatarList tag = input.readRepeatedMessage(displayAvatarList, tag); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/DoGachaCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/DoGachaCsReqOuterClass.java index ca6ad80..f7f9456 100644 --- a/src/generated/main/emu/lunarcore/proto/DoGachaCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/DoGachaCsReqOuterClass.java @@ -19,24 +19,24 @@ public final class DoGachaCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 gacha_num = 1; + * optional uint32 gacha_random = 3; */ - private int gachaNum; + private int gachaRandom; /** - * optional uint32 gacha_id = 9; + * optional uint32 gacha_id = 5; */ private int gachaId; /** - * optional uint32 simulate_magic = 10; + * optional uint32 gacha_num = 6; */ - private int simulateMagic; + private int gachaNum; /** - * optional uint32 gacha_random = 15; + * optional uint32 simulate_magic = 15; */ - private int gachaRandom; + private int simulateMagic; private DoGachaCsReq() { } @@ -49,44 +49,44 @@ public final class DoGachaCsReqOuterClass { } /** - * optional uint32 gacha_num = 1; - * @return whether the gachaNum field is set + * optional uint32 gacha_random = 3; + * @return whether the gachaRandom field is set */ - public boolean hasGachaNum() { + public boolean hasGachaRandom() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 gacha_num = 1; + * optional uint32 gacha_random = 3; * @return this */ - public DoGachaCsReq clearGachaNum() { + public DoGachaCsReq clearGachaRandom() { bitField0_ &= ~0x00000001; - gachaNum = 0; + gachaRandom = 0; return this; } /** - * optional uint32 gacha_num = 1; - * @return the gachaNum + * optional uint32 gacha_random = 3; + * @return the gachaRandom */ - public int getGachaNum() { - return gachaNum; + public int getGachaRandom() { + return gachaRandom; } /** - * optional uint32 gacha_num = 1; - * @param value the gachaNum to set + * optional uint32 gacha_random = 3; + * @param value the gachaRandom to set * @return this */ - public DoGachaCsReq setGachaNum(final int value) { + public DoGachaCsReq setGachaRandom(final int value) { bitField0_ |= 0x00000001; - gachaNum = value; + gachaRandom = value; return this; } /** - * optional uint32 gacha_id = 9; + * optional uint32 gacha_id = 5; * @return whether the gachaId field is set */ public boolean hasGachaId() { @@ -94,7 +94,7 @@ public final class DoGachaCsReqOuterClass { } /** - * optional uint32 gacha_id = 9; + * optional uint32 gacha_id = 5; * @return this */ public DoGachaCsReq clearGachaId() { @@ -104,7 +104,7 @@ public final class DoGachaCsReqOuterClass { } /** - * optional uint32 gacha_id = 9; + * optional uint32 gacha_id = 5; * @return the gachaId */ public int getGachaId() { @@ -112,7 +112,7 @@ public final class DoGachaCsReqOuterClass { } /** - * optional uint32 gacha_id = 9; + * optional uint32 gacha_id = 5; * @param value the gachaId to set * @return this */ @@ -123,25 +123,62 @@ public final class DoGachaCsReqOuterClass { } /** - * optional uint32 simulate_magic = 10; - * @return whether the simulateMagic field is set + * optional uint32 gacha_num = 6; + * @return whether the gachaNum field is set */ - public boolean hasSimulateMagic() { + public boolean hasGachaNum() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 simulate_magic = 10; + * optional uint32 gacha_num = 6; + * @return this + */ + public DoGachaCsReq clearGachaNum() { + bitField0_ &= ~0x00000004; + gachaNum = 0; + return this; + } + + /** + * optional uint32 gacha_num = 6; + * @return the gachaNum + */ + public int getGachaNum() { + return gachaNum; + } + + /** + * optional uint32 gacha_num = 6; + * @param value the gachaNum to set + * @return this + */ + public DoGachaCsReq setGachaNum(final int value) { + bitField0_ |= 0x00000004; + gachaNum = value; + return this; + } + + /** + * optional uint32 simulate_magic = 15; + * @return whether the simulateMagic field is set + */ + public boolean hasSimulateMagic() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 simulate_magic = 15; * @return this */ public DoGachaCsReq clearSimulateMagic() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000008; simulateMagic = 0; return this; } /** - * optional uint32 simulate_magic = 10; + * optional uint32 simulate_magic = 15; * @return the simulateMagic */ public int getSimulateMagic() { @@ -149,50 +186,13 @@ public final class DoGachaCsReqOuterClass { } /** - * optional uint32 simulate_magic = 10; + * optional uint32 simulate_magic = 15; * @param value the simulateMagic to set * @return this */ public DoGachaCsReq setSimulateMagic(final int value) { - bitField0_ |= 0x00000004; - simulateMagic = value; - return this; - } - - /** - * optional uint32 gacha_random = 15; - * @return whether the gachaRandom field is set - */ - public boolean hasGachaRandom() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional uint32 gacha_random = 15; - * @return this - */ - public DoGachaCsReq clearGachaRandom() { - bitField0_ &= ~0x00000008; - gachaRandom = 0; - return this; - } - - /** - * optional uint32 gacha_random = 15; - * @return the gachaRandom - */ - public int getGachaRandom() { - return gachaRandom; - } - - /** - * optional uint32 gacha_random = 15; - * @param value the gachaRandom to set - * @return this - */ - public DoGachaCsReq setGachaRandom(final int value) { bitField0_ |= 0x00000008; - gachaRandom = value; + simulateMagic = value; return this; } @@ -201,10 +201,10 @@ public final class DoGachaCsReqOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - gachaNum = other.gachaNum; - gachaId = other.gachaId; - simulateMagic = other.simulateMagic; gachaRandom = other.gachaRandom; + gachaId = other.gachaId; + gachaNum = other.gachaNum; + simulateMagic = other.simulateMagic; } return this; } @@ -215,18 +215,18 @@ public final class DoGachaCsReqOuterClass { return this; } cachedSize = -1; - if (other.hasGachaNum()) { - setGachaNum(other.gachaNum); + if (other.hasGachaRandom()) { + setGachaRandom(other.gachaRandom); } if (other.hasGachaId()) { setGachaId(other.gachaId); } + if (other.hasGachaNum()) { + setGachaNum(other.gachaNum); + } if (other.hasSimulateMagic()) { setSimulateMagic(other.simulateMagic); } - if (other.hasGachaRandom()) { - setGachaRandom(other.gachaRandom); - } return this; } @@ -237,10 +237,10 @@ public final class DoGachaCsReqOuterClass { } cachedSize = -1; bitField0_ = 0; - gachaNum = 0; - gachaId = 0; - simulateMagic = 0; gachaRandom = 0; + gachaId = 0; + gachaNum = 0; + simulateMagic = 0; return this; } @@ -264,29 +264,29 @@ public final class DoGachaCsReqOuterClass { } DoGachaCsReq other = (DoGachaCsReq) o; return bitField0_ == other.bitField0_ - && (!hasGachaNum() || gachaNum == other.gachaNum) + && (!hasGachaRandom() || gachaRandom == other.gachaRandom) && (!hasGachaId() || gachaId == other.gachaId) - && (!hasSimulateMagic() || simulateMagic == other.simulateMagic) - && (!hasGachaRandom() || gachaRandom == other.gachaRandom); + && (!hasGachaNum() || gachaNum == other.gachaNum) + && (!hasSimulateMagic() || simulateMagic == other.simulateMagic); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(gachaNum); + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(gachaRandom); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 72); + output.writeRawByte((byte) 40); output.writeUInt32NoTag(gachaId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 80); - output.writeUInt32NoTag(simulateMagic); + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(gachaNum); } if ((bitField0_ & 0x00000008) != 0) { output.writeRawByte((byte) 120); - output.writeUInt32NoTag(gachaRandom); + output.writeUInt32NoTag(simulateMagic); } } @@ -294,16 +294,16 @@ public final class DoGachaCsReqOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(gachaNum); + size += 1 + ProtoSink.computeUInt32SizeNoTag(gachaRandom); } if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(gachaId); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(simulateMagic); + size += 1 + ProtoSink.computeUInt32SizeNoTag(gachaNum); } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(gachaRandom); + size += 1 + ProtoSink.computeUInt32SizeNoTag(simulateMagic); } return size; } @@ -315,27 +315,27 @@ public final class DoGachaCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 8: { - // gachaNum - gachaNum = input.readUInt32(); + case 24: { + // gachaRandom + gachaRandom = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 72) { + if (tag != 40) { break; } } - case 72: { + case 40: { // gachaId gachaId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 80) { + if (tag != 48) { break; } } - case 80: { - // simulateMagic - simulateMagic = input.readUInt32(); + case 48: { + // gachaNum + gachaNum = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 120) { @@ -343,8 +343,8 @@ public final class DoGachaCsReqOuterClass { } } case 120: { - // gachaRandom - gachaRandom = input.readUInt32(); + // simulateMagic + simulateMagic = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 0) { @@ -369,16 +369,16 @@ public final class DoGachaCsReqOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.gachaNum, gachaNum); + output.writeUInt32(FieldNames.gachaRandom, gachaRandom); } if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.gachaId, gachaId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.simulateMagic, simulateMagic); + output.writeUInt32(FieldNames.gachaNum, gachaNum); } if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.gachaRandom, gachaRandom); + output.writeUInt32(FieldNames.simulateMagic, simulateMagic); } output.endObject(); } @@ -390,11 +390,11 @@ public final class DoGachaCsReqOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -2052317532: - case 803166025: { - if (input.isAtField(FieldNames.gachaNum)) { + case -1635961627: + case -47579616: { + if (input.isAtField(FieldNames.gachaRandom)) { if (!input.trySkipNullValue()) { - gachaNum = input.readUInt32(); + gachaRandom = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -414,11 +414,11 @@ public final class DoGachaCsReqOuterClass { } break; } - case -370053655: - case 1939465170: { - if (input.isAtField(FieldNames.simulateMagic)) { + case -2052317532: + case 803166025: { + if (input.isAtField(FieldNames.gachaNum)) { if (!input.trySkipNullValue()) { - simulateMagic = input.readUInt32(); + gachaNum = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -426,11 +426,11 @@ public final class DoGachaCsReqOuterClass { } break; } - case -1635961627: - case -47579616: { - if (input.isAtField(FieldNames.gachaRandom)) { + case -370053655: + case 1939465170: { + if (input.isAtField(FieldNames.simulateMagic)) { if (!input.trySkipNullValue()) { - gachaRandom = input.readUInt32(); + simulateMagic = input.readUInt32(); bitField0_ |= 0x00000008; } } else { @@ -490,13 +490,13 @@ public final class DoGachaCsReqOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName gachaNum = FieldName.forField("gachaNum", "gacha_num"); + static final FieldName gachaRandom = FieldName.forField("gachaRandom", "gacha_random"); static final FieldName gachaId = FieldName.forField("gachaId", "gacha_id"); - static final FieldName simulateMagic = FieldName.forField("simulateMagic", "simulate_magic"); + static final FieldName gachaNum = FieldName.forField("gachaNum", "gacha_num"); - static final FieldName gachaRandom = FieldName.forField("gachaRandom", "gacha_random"); + static final FieldName simulateMagic = FieldName.forField("simulateMagic", "simulate_magic"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/DoGachaInRollShopCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/DoGachaInRollShopCsReqOuterClass.java new file mode 100644 index 0000000..5b802fe --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/DoGachaInRollShopCsReqOuterClass.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 DoGachaInRollShopCsReqOuterClass { + /** + * Protobuf type {@code DoGachaInRollShopCsReq} + */ + public static final class DoGachaInRollShopCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 BBJIJINJAFK = 5; + */ + private int bBJIJINJAFK; + + /** + * optional uint32 roll_shop_id = 10; + */ + private int rollShopId; + + private DoGachaInRollShopCsReq() { + } + + /** + * @return a new empty instance of {@code DoGachaInRollShopCsReq} + */ + public static DoGachaInRollShopCsReq newInstance() { + return new DoGachaInRollShopCsReq(); + } + + /** + * optional uint32 BBJIJINJAFK = 5; + * @return whether the bBJIJINJAFK field is set + */ + public boolean hasBBJIJINJAFK() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 BBJIJINJAFK = 5; + * @return this + */ + public DoGachaInRollShopCsReq clearBBJIJINJAFK() { + bitField0_ &= ~0x00000001; + bBJIJINJAFK = 0; + return this; + } + + /** + * optional uint32 BBJIJINJAFK = 5; + * @return the bBJIJINJAFK + */ + public int getBBJIJINJAFK() { + return bBJIJINJAFK; + } + + /** + * optional uint32 BBJIJINJAFK = 5; + * @param value the bBJIJINJAFK to set + * @return this + */ + public DoGachaInRollShopCsReq setBBJIJINJAFK(final int value) { + bitField0_ |= 0x00000001; + bBJIJINJAFK = value; + return this; + } + + /** + * optional uint32 roll_shop_id = 10; + * @return whether the rollShopId field is set + */ + public boolean hasRollShopId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 roll_shop_id = 10; + * @return this + */ + public DoGachaInRollShopCsReq clearRollShopId() { + bitField0_ &= ~0x00000002; + rollShopId = 0; + return this; + } + + /** + * optional uint32 roll_shop_id = 10; + * @return the rollShopId + */ + public int getRollShopId() { + return rollShopId; + } + + /** + * optional uint32 roll_shop_id = 10; + * @param value the rollShopId to set + * @return this + */ + public DoGachaInRollShopCsReq setRollShopId(final int value) { + bitField0_ |= 0x00000002; + rollShopId = value; + return this; + } + + @Override + public DoGachaInRollShopCsReq copyFrom(final DoGachaInRollShopCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + bBJIJINJAFK = other.bBJIJINJAFK; + rollShopId = other.rollShopId; + } + return this; + } + + @Override + public DoGachaInRollShopCsReq mergeFrom(final DoGachaInRollShopCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasBBJIJINJAFK()) { + setBBJIJINJAFK(other.bBJIJINJAFK); + } + if (other.hasRollShopId()) { + setRollShopId(other.rollShopId); + } + return this; + } + + @Override + public DoGachaInRollShopCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + bBJIJINJAFK = 0; + rollShopId = 0; + return this; + } + + @Override + public DoGachaInRollShopCsReq 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 DoGachaInRollShopCsReq)) { + return false; + } + DoGachaInRollShopCsReq other = (DoGachaInRollShopCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasBBJIJINJAFK() || bBJIJINJAFK == other.bBJIJINJAFK) + && (!hasRollShopId() || rollShopId == other.rollShopId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(bBJIJINJAFK); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(rollShopId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(bBJIJINJAFK); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(rollShopId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public DoGachaInRollShopCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 40: { + // bBJIJINJAFK + bBJIJINJAFK = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { + // rollShopId + rollShopId = 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.bBJIJINJAFK, bBJIJINJAFK); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.rollShopId, rollShopId); + } + output.endObject(); + } + + @Override + public DoGachaInRollShopCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1536175796: { + if (input.isAtField(FieldNames.bBJIJINJAFK)) { + if (!input.trySkipNullValue()) { + bBJIJINJAFK = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -904898162: + case -1612413630: { + if (input.isAtField(FieldNames.rollShopId)) { + if (!input.trySkipNullValue()) { + rollShopId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public DoGachaInRollShopCsReq clone() { + return new DoGachaInRollShopCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static DoGachaInRollShopCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new DoGachaInRollShopCsReq(), data).checkInitialized(); + } + + public static DoGachaInRollShopCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new DoGachaInRollShopCsReq(), input).checkInitialized(); + } + + public static DoGachaInRollShopCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new DoGachaInRollShopCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating DoGachaInRollShopCsReq messages + */ + public static MessageFactory getFactory() { + return DoGachaInRollShopCsReqFactory.INSTANCE; + } + + private enum DoGachaInRollShopCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public DoGachaInRollShopCsReq create() { + return DoGachaInRollShopCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName bBJIJINJAFK = FieldName.forField("BBJIJINJAFK"); + + static final FieldName rollShopId = FieldName.forField("rollShopId", "roll_shop_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/DoGachaInRollShopScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/DoGachaInRollShopScRspOuterClass.java new file mode 100644 index 0000000..e6394bd --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/DoGachaInRollShopScRspOuterClass.java @@ -0,0 +1,601 @@ +// 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 DoGachaInRollShopScRspOuterClass { + /** + * Protobuf type {@code DoGachaInRollShopScRsp} + */ + public static final class DoGachaInRollShopScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 AFMPDBBHCHM = 2; + */ + private int aFMPDBBHCHM; + + /** + * optional uint32 LEJJOJGNIHK = 4; + */ + private int lEJJOJGNIHK; + + /** + * optional uint32 retcode = 7; + */ + private int retcode; + + /** + * optional uint32 roll_shop_id = 8; + */ + private int rollShopId; + + /** + * optional .ItemList reward = 9; + */ + private final ItemListOuterClass.ItemList reward = ItemListOuterClass.ItemList.newInstance(); + + private DoGachaInRollShopScRsp() { + } + + /** + * @return a new empty instance of {@code DoGachaInRollShopScRsp} + */ + public static DoGachaInRollShopScRsp newInstance() { + return new DoGachaInRollShopScRsp(); + } + + /** + * optional uint32 AFMPDBBHCHM = 2; + * @return whether the aFMPDBBHCHM field is set + */ + public boolean hasAFMPDBBHCHM() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 AFMPDBBHCHM = 2; + * @return this + */ + public DoGachaInRollShopScRsp clearAFMPDBBHCHM() { + bitField0_ &= ~0x00000001; + aFMPDBBHCHM = 0; + return this; + } + + /** + * optional uint32 AFMPDBBHCHM = 2; + * @return the aFMPDBBHCHM + */ + public int getAFMPDBBHCHM() { + return aFMPDBBHCHM; + } + + /** + * optional uint32 AFMPDBBHCHM = 2; + * @param value the aFMPDBBHCHM to set + * @return this + */ + public DoGachaInRollShopScRsp setAFMPDBBHCHM(final int value) { + bitField0_ |= 0x00000001; + aFMPDBBHCHM = value; + return this; + } + + /** + * optional uint32 LEJJOJGNIHK = 4; + * @return whether the lEJJOJGNIHK field is set + */ + public boolean hasLEJJOJGNIHK() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 LEJJOJGNIHK = 4; + * @return this + */ + public DoGachaInRollShopScRsp clearLEJJOJGNIHK() { + bitField0_ &= ~0x00000002; + lEJJOJGNIHK = 0; + return this; + } + + /** + * optional uint32 LEJJOJGNIHK = 4; + * @return the lEJJOJGNIHK + */ + public int getLEJJOJGNIHK() { + return lEJJOJGNIHK; + } + + /** + * optional uint32 LEJJOJGNIHK = 4; + * @param value the lEJJOJGNIHK to set + * @return this + */ + public DoGachaInRollShopScRsp setLEJJOJGNIHK(final int value) { + bitField0_ |= 0x00000002; + lEJJOJGNIHK = value; + return this; + } + + /** + * optional uint32 retcode = 7; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 retcode = 7; + * @return this + */ + public DoGachaInRollShopScRsp clearRetcode() { + bitField0_ &= ~0x00000004; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 7; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 7; + * @param value the retcode to set + * @return this + */ + public DoGachaInRollShopScRsp setRetcode(final int value) { + bitField0_ |= 0x00000004; + retcode = value; + return this; + } + + /** + * optional uint32 roll_shop_id = 8; + * @return whether the rollShopId field is set + */ + public boolean hasRollShopId() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 roll_shop_id = 8; + * @return this + */ + public DoGachaInRollShopScRsp clearRollShopId() { + bitField0_ &= ~0x00000008; + rollShopId = 0; + return this; + } + + /** + * optional uint32 roll_shop_id = 8; + * @return the rollShopId + */ + public int getRollShopId() { + return rollShopId; + } + + /** + * optional uint32 roll_shop_id = 8; + * @param value the rollShopId to set + * @return this + */ + public DoGachaInRollShopScRsp setRollShopId(final int value) { + bitField0_ |= 0x00000008; + rollShopId = value; + return this; + } + + /** + * optional .ItemList reward = 9; + * @return whether the reward field is set + */ + public boolean hasReward() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional .ItemList reward = 9; + * @return this + */ + public DoGachaInRollShopScRsp clearReward() { + bitField0_ &= ~0x00000010; + reward.clear(); + return this; + } + + /** + * optional .ItemList reward = 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 #getMutableReward()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ItemListOuterClass.ItemList getReward() { + return reward; + } + + /** + * optional .ItemList reward = 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 + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public ItemListOuterClass.ItemList getMutableReward() { + bitField0_ |= 0x00000010; + return reward; + } + + /** + * optional .ItemList reward = 9; + * @param value the reward to set + * @return this + */ + public DoGachaInRollShopScRsp setReward(final ItemListOuterClass.ItemList value) { + bitField0_ |= 0x00000010; + reward.copyFrom(value); + return this; + } + + @Override + public DoGachaInRollShopScRsp copyFrom(final DoGachaInRollShopScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + aFMPDBBHCHM = other.aFMPDBBHCHM; + lEJJOJGNIHK = other.lEJJOJGNIHK; + retcode = other.retcode; + rollShopId = other.rollShopId; + reward.copyFrom(other.reward); + } + return this; + } + + @Override + public DoGachaInRollShopScRsp mergeFrom(final DoGachaInRollShopScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasAFMPDBBHCHM()) { + setAFMPDBBHCHM(other.aFMPDBBHCHM); + } + if (other.hasLEJJOJGNIHK()) { + setLEJJOJGNIHK(other.lEJJOJGNIHK); + } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasRollShopId()) { + setRollShopId(other.rollShopId); + } + if (other.hasReward()) { + getMutableReward().mergeFrom(other.reward); + } + return this; + } + + @Override + public DoGachaInRollShopScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + aFMPDBBHCHM = 0; + lEJJOJGNIHK = 0; + retcode = 0; + rollShopId = 0; + reward.clear(); + return this; + } + + @Override + public DoGachaInRollShopScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + reward.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof DoGachaInRollShopScRsp)) { + return false; + } + DoGachaInRollShopScRsp other = (DoGachaInRollShopScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasAFMPDBBHCHM() || aFMPDBBHCHM == other.aFMPDBBHCHM) + && (!hasLEJJOJGNIHK() || lEJJOJGNIHK == other.lEJJOJGNIHK) + && (!hasRetcode() || retcode == other.retcode) + && (!hasRollShopId() || rollShopId == other.rollShopId) + && (!hasReward() || reward.equals(other.reward)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(aFMPDBBHCHM); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(lEJJOJGNIHK); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(rollShopId); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 74); + output.writeMessageNoTag(reward); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(aFMPDBBHCHM); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(lEJJOJGNIHK); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(rollShopId); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(reward); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public DoGachaInRollShopScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // aFMPDBBHCHM + aFMPDBBHCHM = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // lEJJOJGNIHK + lEJJOJGNIHK = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 64) { + break; + } + } + case 64: { + // rollShopId + rollShopId = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 74) { + break; + } + } + case 74: { + // reward + input.readMessage(reward); + bitField0_ |= 0x00000010; + 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.aFMPDBBHCHM, aFMPDBBHCHM); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.lEJJOJGNIHK, lEJJOJGNIHK); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.rollShopId, rollShopId); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeMessage(FieldNames.reward, reward); + } + output.endObject(); + } + + @Override + public DoGachaInRollShopScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 715464508: { + if (input.isAtField(FieldNames.aFMPDBBHCHM)) { + if (!input.trySkipNullValue()) { + aFMPDBBHCHM = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1007707855: { + if (input.isAtField(FieldNames.lEJJOJGNIHK)) { + if (!input.trySkipNullValue()) { + lEJJOJGNIHK = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -904898162: + case -1612413630: { + if (input.isAtField(FieldNames.rollShopId)) { + if (!input.trySkipNullValue()) { + rollShopId = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -934326481: { + if (input.isAtField(FieldNames.reward)) { + if (!input.trySkipNullValue()) { + input.readMessage(reward); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public DoGachaInRollShopScRsp clone() { + return new DoGachaInRollShopScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static DoGachaInRollShopScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new DoGachaInRollShopScRsp(), data).checkInitialized(); + } + + public static DoGachaInRollShopScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new DoGachaInRollShopScRsp(), input).checkInitialized(); + } + + public static DoGachaInRollShopScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new DoGachaInRollShopScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating DoGachaInRollShopScRsp messages + */ + public static MessageFactory getFactory() { + return DoGachaInRollShopScRspFactory.INSTANCE; + } + + private enum DoGachaInRollShopScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public DoGachaInRollShopScRsp create() { + return DoGachaInRollShopScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName aFMPDBBHCHM = FieldName.forField("AFMPDBBHCHM"); + + static final FieldName lEJJOJGNIHK = FieldName.forField("LEJJOJGNIHK"); + + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName rollShopId = FieldName.forField("rollShopId", "roll_shop_id"); + + static final FieldName reward = FieldName.forField("reward"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/DoGachaScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/DoGachaScRspOuterClass.java index a79e7e1..82fd922 100644 --- a/src/generated/main/emu/lunarcore/proto/DoGachaScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/DoGachaScRspOuterClass.java @@ -20,27 +20,27 @@ public final class DoGachaScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 gacha_id = 4; - */ - private int gachaId; - - /** - * optional uint32 gacha_num = 5; + * optional uint32 gacha_num = 2; */ private int gachaNum; /** - * optional uint32 ceiling_num = 13; + * optional uint32 ceiling_num = 9; */ private int ceilingNum; /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 12; */ private int retcode; /** - * repeated .GachaItem gacha_item_list = 7; + * optional uint32 gacha_id = 13; + */ + private int gachaId; + + /** + * repeated .GachaItem gacha_item_list = 3; */ private final RepeatedMessage gachaItemList = RepeatedMessage.newEmptyInstance(GachaItemOuterClass.GachaItem.getFactory()); @@ -55,62 +55,25 @@ public final class DoGachaScRspOuterClass { } /** - * optional uint32 gacha_id = 4; - * @return whether the gachaId field is set + * optional uint32 gacha_num = 2; + * @return whether the gachaNum field is set */ - public boolean hasGachaId() { + public boolean hasGachaNum() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 gacha_id = 4; - * @return this - */ - public DoGachaScRsp clearGachaId() { - bitField0_ &= ~0x00000001; - gachaId = 0; - return this; - } - - /** - * optional uint32 gacha_id = 4; - * @return the gachaId - */ - public int getGachaId() { - return gachaId; - } - - /** - * optional uint32 gacha_id = 4; - * @param value the gachaId to set - * @return this - */ - public DoGachaScRsp setGachaId(final int value) { - bitField0_ |= 0x00000001; - gachaId = value; - return this; - } - - /** - * optional uint32 gacha_num = 5; - * @return whether the gachaNum field is set - */ - public boolean hasGachaNum() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 gacha_num = 5; + * optional uint32 gacha_num = 2; * @return this */ public DoGachaScRsp clearGachaNum() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; gachaNum = 0; return this; } /** - * optional uint32 gacha_num = 5; + * optional uint32 gacha_num = 2; * @return the gachaNum */ public int getGachaNum() { @@ -118,36 +81,36 @@ public final class DoGachaScRspOuterClass { } /** - * optional uint32 gacha_num = 5; + * optional uint32 gacha_num = 2; * @param value the gachaNum to set * @return this */ public DoGachaScRsp setGachaNum(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; gachaNum = value; return this; } /** - * optional uint32 ceiling_num = 13; + * optional uint32 ceiling_num = 9; * @return whether the ceilingNum field is set */ public boolean hasCeilingNum() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 ceiling_num = 13; + * optional uint32 ceiling_num = 9; * @return this */ public DoGachaScRsp clearCeilingNum() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; ceilingNum = 0; return this; } /** - * optional uint32 ceiling_num = 13; + * optional uint32 ceiling_num = 9; * @return the ceilingNum */ public int getCeilingNum() { @@ -155,36 +118,36 @@ public final class DoGachaScRspOuterClass { } /** - * optional uint32 ceiling_num = 13; + * optional uint32 ceiling_num = 9; * @param value the ceilingNum to set * @return this */ public DoGachaScRsp setCeilingNum(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; ceilingNum = value; return this; } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 12; * @return whether the retcode field is set */ public boolean hasRetcode() { - return (bitField0_ & 0x00000008) != 0; + return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 12; * @return this */ public DoGachaScRsp clearRetcode() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000004; retcode = 0; return this; } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 12; * @return the retcode */ public int getRetcode() { @@ -192,18 +155,55 @@ public final class DoGachaScRspOuterClass { } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 12; * @param value the retcode to set * @return this */ public DoGachaScRsp setRetcode(final int value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; retcode = value; return this; } /** - * repeated .GachaItem gacha_item_list = 7; + * optional uint32 gacha_id = 13; + * @return whether the gachaId field is set + */ + public boolean hasGachaId() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 gacha_id = 13; + * @return this + */ + public DoGachaScRsp clearGachaId() { + bitField0_ &= ~0x00000008; + gachaId = 0; + return this; + } + + /** + * optional uint32 gacha_id = 13; + * @return the gachaId + */ + public int getGachaId() { + return gachaId; + } + + /** + * optional uint32 gacha_id = 13; + * @param value the gachaId to set + * @return this + */ + public DoGachaScRsp setGachaId(final int value) { + bitField0_ |= 0x00000008; + gachaId = value; + return this; + } + + /** + * repeated .GachaItem gacha_item_list = 3; * @return whether the gachaItemList field is set */ public boolean hasGachaItemList() { @@ -211,7 +211,7 @@ public final class DoGachaScRspOuterClass { } /** - * repeated .GachaItem gacha_item_list = 7; + * repeated .GachaItem gacha_item_list = 3; * @return this */ public DoGachaScRsp clearGachaItemList() { @@ -221,7 +221,7 @@ public final class DoGachaScRspOuterClass { } /** - * repeated .GachaItem gacha_item_list = 7; + * repeated .GachaItem gacha_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. @@ -235,7 +235,7 @@ public final class DoGachaScRspOuterClass { } /** - * repeated .GachaItem gacha_item_list = 7; + * repeated .GachaItem gacha_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 @@ -249,7 +249,7 @@ public final class DoGachaScRspOuterClass { } /** - * repeated .GachaItem gacha_item_list = 7; + * repeated .GachaItem gacha_item_list = 3; * @param value the gachaItemList to add * @return this */ @@ -260,7 +260,7 @@ public final class DoGachaScRspOuterClass { } /** - * repeated .GachaItem gacha_item_list = 7; + * repeated .GachaItem gacha_item_list = 3; * @param values the gachaItemList to add * @return this */ @@ -275,10 +275,10 @@ public final class DoGachaScRspOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - gachaId = other.gachaId; gachaNum = other.gachaNum; ceilingNum = other.ceilingNum; retcode = other.retcode; + gachaId = other.gachaId; gachaItemList.copyFrom(other.gachaItemList); } return this; @@ -290,9 +290,6 @@ public final class DoGachaScRspOuterClass { return this; } cachedSize = -1; - if (other.hasGachaId()) { - setGachaId(other.gachaId); - } if (other.hasGachaNum()) { setGachaNum(other.gachaNum); } @@ -302,6 +299,9 @@ public final class DoGachaScRspOuterClass { if (other.hasRetcode()) { setRetcode(other.retcode); } + if (other.hasGachaId()) { + setGachaId(other.gachaId); + } if (other.hasGachaItemList()) { getMutableGachaItemList().addAll(other.gachaItemList); } @@ -315,10 +315,10 @@ public final class DoGachaScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - gachaId = 0; gachaNum = 0; ceilingNum = 0; retcode = 0; + gachaId = 0; gachaItemList.clear(); return this; } @@ -344,34 +344,34 @@ public final class DoGachaScRspOuterClass { } DoGachaScRsp other = (DoGachaScRsp) o; return bitField0_ == other.bitField0_ - && (!hasGachaId() || gachaId == other.gachaId) && (!hasGachaNum() || gachaNum == other.gachaNum) && (!hasCeilingNum() || ceilingNum == other.ceilingNum) && (!hasRetcode() || retcode == other.retcode) + && (!hasGachaId() || gachaId == other.gachaId) && (!hasGachaItemList() || gachaItemList.equals(other.gachaItemList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 32); - output.writeUInt32NoTag(gachaId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 16); output.writeUInt32NoTag(gachaNum); } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 104); + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 72); output.writeUInt32NoTag(ceilingNum); } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 112); + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 96); output.writeUInt32NoTag(retcode); } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(gachaId); + } if ((bitField0_ & 0x00000010) != 0) { for (int i = 0; i < gachaItemList.length(); i++) { - output.writeRawByte((byte) 58); + output.writeRawByte((byte) 26); output.writeMessageNoTag(gachaItemList.get(i)); } } @@ -381,17 +381,17 @@ public final class DoGachaScRspOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(gachaId); - } - if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(gachaNum); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(ceilingNum); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(gachaId); + } if ((bitField0_ & 0x00000010) != 0) { size += (1 * gachaItemList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(gachaItemList); } @@ -405,43 +405,43 @@ public final class DoGachaScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 32: { - // gachaId - gachaId = input.readUInt32(); + case 16: { + // gachaNum + gachaNum = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 40) { + if (tag != 72) { break; } } - case 40: { - // gachaNum - gachaNum = input.readUInt32(); + case 72: { + // ceilingNum + ceilingNum = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); + if (tag != 96) { + break; + } + } + case 96: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); if (tag != 104) { break; } } case 104: { - // ceilingNum - ceilingNum = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 112) { - break; - } - } - case 112: { - // retcode - retcode = input.readUInt32(); + // gachaId + gachaId = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 58) { + if (tag != 26) { break; } } - case 58: { + case 26: { // gachaItemList tag = input.readRepeatedMessage(gachaItemList, tag); bitField0_ |= 0x00000010; @@ -467,17 +467,17 @@ public final class DoGachaScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.gachaId, gachaId); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.gachaNum, gachaNum); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.ceilingNum, ceilingNum); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.retcode, retcode); } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.gachaId, gachaId); + } if ((bitField0_ & 0x00000010) != 0) { output.writeRepeatedMessage(FieldNames.gachaItemList, gachaItemList); } @@ -491,24 +491,12 @@ public final class DoGachaScRspOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -204751299: - case -2052301576: { - if (input.isAtField(FieldNames.gachaId)) { - if (!input.trySkipNullValue()) { - gachaId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } case -2052317532: case 803166025: { if (input.isAtField(FieldNames.gachaNum)) { if (!input.trySkipNullValue()) { gachaNum = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } else { input.skipUnknownField(); @@ -520,7 +508,7 @@ public final class DoGachaScRspOuterClass { if (input.isAtField(FieldNames.ceilingNum)) { if (!input.trySkipNullValue()) { ceilingNum = input.readUInt32(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; } } else { input.skipUnknownField(); @@ -531,6 +519,18 @@ public final class DoGachaScRspOuterClass { if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { retcode = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -204751299: + case -2052301576: { + if (input.isAtField(FieldNames.gachaId)) { + if (!input.trySkipNullValue()) { + gachaId = input.readUInt32(); bitField0_ |= 0x00000008; } } else { @@ -602,14 +602,14 @@ public final class DoGachaScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName gachaId = FieldName.forField("gachaId", "gacha_id"); - 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 gachaId = FieldName.forField("gachaId", "gacha_id"); + 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 3c3ae59..5033518 100644 --- a/src/generated/main/emu/lunarcore/proto/DressAvatarCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/DressAvatarCsReqOuterClass.java @@ -19,15 +19,15 @@ public final class DressAvatarCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 base_avatar_id = 2; - */ - private int baseAvatarId; - - /** - * optional uint32 equipment_unique_id = 4; + * optional uint32 equipment_unique_id = 1; */ private int equipmentUniqueId; + /** + * optional uint32 base_avatar_id = 10; + */ + private int baseAvatarId; + private DressAvatarCsReq() { } @@ -39,62 +39,25 @@ public final class DressAvatarCsReqOuterClass { } /** - * optional uint32 base_avatar_id = 2; - * @return whether the baseAvatarId field is set + * optional uint32 equipment_unique_id = 1; + * @return whether the equipmentUniqueId field is set */ - public boolean hasBaseAvatarId() { + public boolean hasEquipmentUniqueId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 base_avatar_id = 2; - * @return this - */ - public DressAvatarCsReq clearBaseAvatarId() { - bitField0_ &= ~0x00000001; - baseAvatarId = 0; - return this; - } - - /** - * optional uint32 base_avatar_id = 2; - * @return the baseAvatarId - */ - public int getBaseAvatarId() { - return baseAvatarId; - } - - /** - * optional uint32 base_avatar_id = 2; - * @param value the baseAvatarId to set - * @return this - */ - public DressAvatarCsReq setBaseAvatarId(final int value) { - bitField0_ |= 0x00000001; - baseAvatarId = value; - return this; - } - - /** - * optional uint32 equipment_unique_id = 4; - * @return whether the equipmentUniqueId field is set - */ - public boolean hasEquipmentUniqueId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 equipment_unique_id = 4; + * optional uint32 equipment_unique_id = 1; * @return this */ public DressAvatarCsReq clearEquipmentUniqueId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; equipmentUniqueId = 0; return this; } /** - * optional uint32 equipment_unique_id = 4; + * optional uint32 equipment_unique_id = 1; * @return the equipmentUniqueId */ public int getEquipmentUniqueId() { @@ -102,23 +65,60 @@ public final class DressAvatarCsReqOuterClass { } /** - * optional uint32 equipment_unique_id = 4; + * optional uint32 equipment_unique_id = 1; * @param value the equipmentUniqueId to set * @return this */ public DressAvatarCsReq setEquipmentUniqueId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; equipmentUniqueId = value; return this; } + /** + * optional uint32 base_avatar_id = 10; + * @return whether the baseAvatarId field is set + */ + public boolean hasBaseAvatarId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 base_avatar_id = 10; + * @return this + */ + public DressAvatarCsReq clearBaseAvatarId() { + bitField0_ &= ~0x00000002; + baseAvatarId = 0; + return this; + } + + /** + * optional uint32 base_avatar_id = 10; + * @return the baseAvatarId + */ + public int getBaseAvatarId() { + return baseAvatarId; + } + + /** + * optional uint32 base_avatar_id = 10; + * @param value the baseAvatarId to set + * @return this + */ + public DressAvatarCsReq setBaseAvatarId(final int value) { + bitField0_ |= 0x00000002; + baseAvatarId = value; + return this; + } + @Override public DressAvatarCsReq copyFrom(final DressAvatarCsReq other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - baseAvatarId = other.baseAvatarId; equipmentUniqueId = other.equipmentUniqueId; + baseAvatarId = other.baseAvatarId; } return this; } @@ -129,12 +129,12 @@ public final class DressAvatarCsReqOuterClass { return this; } cachedSize = -1; - if (other.hasBaseAvatarId()) { - setBaseAvatarId(other.baseAvatarId); - } if (other.hasEquipmentUniqueId()) { setEquipmentUniqueId(other.equipmentUniqueId); } + if (other.hasBaseAvatarId()) { + setBaseAvatarId(other.baseAvatarId); + } return this; } @@ -145,8 +145,8 @@ public final class DressAvatarCsReqOuterClass { } cachedSize = -1; bitField0_ = 0; - baseAvatarId = 0; equipmentUniqueId = 0; + baseAvatarId = 0; return this; } @@ -170,19 +170,19 @@ public final class DressAvatarCsReqOuterClass { } DressAvatarCsReq other = (DressAvatarCsReq) o; return bitField0_ == other.bitField0_ - && (!hasBaseAvatarId() || baseAvatarId == other.baseAvatarId) - && (!hasEquipmentUniqueId() || equipmentUniqueId == other.equipmentUniqueId); + && (!hasEquipmentUniqueId() || equipmentUniqueId == other.equipmentUniqueId) + && (!hasBaseAvatarId() || baseAvatarId == other.baseAvatarId); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(baseAvatarId); + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(equipmentUniqueId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 32); - output.writeUInt32NoTag(equipmentUniqueId); + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(baseAvatarId); } } @@ -190,10 +190,10 @@ public final class DressAvatarCsReqOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(equipmentUniqueId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(equipmentUniqueId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); } return size; } @@ -205,18 +205,18 @@ public final class DressAvatarCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { - // baseAvatarId - baseAvatarId = input.readUInt32(); + case 8: { + // equipmentUniqueId + equipmentUniqueId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 32) { + if (tag != 80) { break; } } - case 32: { - // equipmentUniqueId - equipmentUniqueId = input.readUInt32(); + case 80: { + // baseAvatarId + baseAvatarId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { @@ -241,10 +241,10 @@ public final class DressAvatarCsReqOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.baseAvatarId, baseAvatarId); + output.writeUInt32(FieldNames.equipmentUniqueId, equipmentUniqueId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.equipmentUniqueId, equipmentUniqueId); + output.writeUInt32(FieldNames.baseAvatarId, baseAvatarId); } output.endObject(); } @@ -256,11 +256,11 @@ public final class DressAvatarCsReqOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - 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_ |= 0x00000001; } } else { @@ -268,11 +268,11 @@ public final class DressAvatarCsReqOuterClass { } break; } - 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_ |= 0x00000002; } } else { @@ -333,9 +333,9 @@ public final class DressAvatarCsReqOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName baseAvatarId = FieldName.forField("baseAvatarId", "base_avatar_id"); - static final FieldName equipmentUniqueId = FieldName.forField("equipmentUniqueId", "equipment_unique_id"); + + static final FieldName baseAvatarId = FieldName.forField("baseAvatarId", "base_avatar_id"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/DressRelicAvatarCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/DressRelicAvatarCsReqOuterClass.java index 12122ec..2bbe589 100644 --- a/src/generated/main/emu/lunarcore/proto/DressRelicAvatarCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/DressRelicAvatarCsReqOuterClass.java @@ -20,12 +20,12 @@ public final class DressRelicAvatarCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 base_avatar_id = 5; + * optional uint32 base_avatar_id = 3; */ private int baseAvatarId; /** - * repeated .RelicParam param_list = 15; + * repeated .RelicParam param_list = 10; */ private final RepeatedMessage paramList = RepeatedMessage.newEmptyInstance(RelicParamOuterClass.RelicParam.getFactory()); @@ -40,7 +40,7 @@ public final class DressRelicAvatarCsReqOuterClass { } /** - * optional uint32 base_avatar_id = 5; + * optional uint32 base_avatar_id = 3; * @return whether the baseAvatarId field is set */ public boolean hasBaseAvatarId() { @@ -48,7 +48,7 @@ public final class DressRelicAvatarCsReqOuterClass { } /** - * optional uint32 base_avatar_id = 5; + * optional uint32 base_avatar_id = 3; * @return this */ public DressRelicAvatarCsReq clearBaseAvatarId() { @@ -58,7 +58,7 @@ public final class DressRelicAvatarCsReqOuterClass { } /** - * optional uint32 base_avatar_id = 5; + * optional uint32 base_avatar_id = 3; * @return the baseAvatarId */ public int getBaseAvatarId() { @@ -66,7 +66,7 @@ public final class DressRelicAvatarCsReqOuterClass { } /** - * optional uint32 base_avatar_id = 5; + * optional uint32 base_avatar_id = 3; * @param value the baseAvatarId to set * @return this */ @@ -77,7 +77,7 @@ public final class DressRelicAvatarCsReqOuterClass { } /** - * repeated .RelicParam param_list = 15; + * repeated .RelicParam param_list = 10; * @return whether the paramList field is set */ public boolean hasParamList() { @@ -85,7 +85,7 @@ public final class DressRelicAvatarCsReqOuterClass { } /** - * repeated .RelicParam param_list = 15; + * repeated .RelicParam param_list = 10; * @return this */ public DressRelicAvatarCsReq clearParamList() { @@ -95,7 +95,7 @@ public final class DressRelicAvatarCsReqOuterClass { } /** - * repeated .RelicParam param_list = 15; + * repeated .RelicParam param_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. @@ -109,7 +109,7 @@ public final class DressRelicAvatarCsReqOuterClass { } /** - * repeated .RelicParam param_list = 15; + * repeated .RelicParam param_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 @@ -123,7 +123,7 @@ public final class DressRelicAvatarCsReqOuterClass { } /** - * repeated .RelicParam param_list = 15; + * repeated .RelicParam param_list = 10; * @param value the paramList to add * @return this */ @@ -134,7 +134,7 @@ public final class DressRelicAvatarCsReqOuterClass { } /** - * repeated .RelicParam param_list = 15; + * repeated .RelicParam param_list = 10; * @param values the paramList to add * @return this */ @@ -210,12 +210,12 @@ public final class DressRelicAvatarCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 24); output.writeUInt32NoTag(baseAvatarId); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < paramList.length(); i++) { - output.writeRawByte((byte) 122); + output.writeRawByte((byte) 82); output.writeMessageNoTag(paramList.get(i)); } } @@ -240,16 +240,16 @@ public final class DressRelicAvatarCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 40: { + case 24: { // baseAvatarId baseAvatarId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 122) { + if (tag != 82) { break; } } - case 122: { + case 82: { // paramList tag = input.readRepeatedMessage(paramList, tag); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/RogueQueryOuterClass.java b/src/generated/main/emu/lunarcore/proto/EnterMapRotationRegionCsReqOuterClass.java similarity index 51% rename from src/generated/main/emu/lunarcore/proto/RogueQueryOuterClass.java rename to src/generated/main/emu/lunarcore/proto/EnterMapRotationRegionCsReqOuterClass.java index f4f0ce7..0cdb40b 100644 --- a/src/generated/main/emu/lunarcore/proto/RogueQueryOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/EnterMapRotationRegionCsReqOuterClass.java @@ -10,64 +10,63 @@ 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 RogueQueryOuterClass { +public final class EnterMapRotationRegionCsReqOuterClass { /** - * Protobuf type {@code RogueQuery} + * Protobuf type {@code EnterMapRotationRegionCsReq} */ - public static final class RogueQuery extends ProtoMessage implements Cloneable { + public static final class EnterMapRotationRegionCsReq extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * repeated uint32 FFJHNGIINMN = 13; + * optional .MotionInfo motion = 12; */ - private final RepeatedInt fFJHNGIINMN = RepeatedInt.newEmptyInstance(); + private final MotionInfoOuterClass.MotionInfo motion = MotionInfoOuterClass.MotionInfo.newInstance(); - private RogueQuery() { + private EnterMapRotationRegionCsReq() { } /** - * @return a new empty instance of {@code RogueQuery} + * @return a new empty instance of {@code EnterMapRotationRegionCsReq} */ - public static RogueQuery newInstance() { - return new RogueQuery(); + public static EnterMapRotationRegionCsReq newInstance() { + return new EnterMapRotationRegionCsReq(); } /** - * repeated uint32 FFJHNGIINMN = 13; - * @return whether the fFJHNGIINMN field is set + * optional .MotionInfo motion = 12; + * @return whether the motion field is set */ - public boolean hasFFJHNGIINMN() { + public boolean hasMotion() { return (bitField0_ & 0x00000001) != 0; } /** - * repeated uint32 FFJHNGIINMN = 13; + * optional .MotionInfo motion = 12; * @return this */ - public RogueQuery clearFFJHNGIINMN() { + public EnterMapRotationRegionCsReq clearMotion() { bitField0_ &= ~0x00000001; - fFJHNGIINMN.clear(); + motion.clear(); return this; } /** - * repeated uint32 FFJHNGIINMN = 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. * - * Use {@link #getMutableFFJHNGIINMN()} if you want to modify it. + * Use {@link #getMutableMotion()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedInt getFFJHNGIINMN() { - return fFJHNGIINMN; + public MotionInfoOuterClass.MotionInfo getMotion() { + return motion; } /** - * repeated uint32 FFJHNGIINMN = 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 @@ -75,74 +74,63 @@ public final class RogueQueryOuterClass { * * @return internal storage object for modifications */ - public RepeatedInt getMutableFFJHNGIINMN() { + public MotionInfoOuterClass.MotionInfo getMutableMotion() { bitField0_ |= 0x00000001; - return fFJHNGIINMN; + return motion; } /** - * repeated uint32 FFJHNGIINMN = 13; - * @param value the fFJHNGIINMN to add + * optional .MotionInfo motion = 12; + * @param value the motion to set * @return this */ - public RogueQuery addFFJHNGIINMN(final int value) { + public EnterMapRotationRegionCsReq setMotion(final MotionInfoOuterClass.MotionInfo value) { bitField0_ |= 0x00000001; - fFJHNGIINMN.add(value); - return this; - } - - /** - * repeated uint32 FFJHNGIINMN = 13; - * @param values the fFJHNGIINMN to add - * @return this - */ - public RogueQuery addAllFFJHNGIINMN(final int... values) { - bitField0_ |= 0x00000001; - fFJHNGIINMN.addAll(values); + motion.copyFrom(value); return this; } @Override - public RogueQuery copyFrom(final RogueQuery other) { + public EnterMapRotationRegionCsReq copyFrom(final EnterMapRotationRegionCsReq other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - fFJHNGIINMN.copyFrom(other.fFJHNGIINMN); + motion.copyFrom(other.motion); } return this; } @Override - public RogueQuery mergeFrom(final RogueQuery other) { + public EnterMapRotationRegionCsReq mergeFrom(final EnterMapRotationRegionCsReq other) { if (other.isEmpty()) { return this; } cachedSize = -1; - if (other.hasFFJHNGIINMN()) { - getMutableFFJHNGIINMN().addAll(other.fFJHNGIINMN); + if (other.hasMotion()) { + getMutableMotion().mergeFrom(other.motion); } return this; } @Override - public RogueQuery clear() { + public EnterMapRotationRegionCsReq clear() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - fFJHNGIINMN.clear(); + motion.clear(); return this; } @Override - public RogueQuery clearQuick() { + public EnterMapRotationRegionCsReq clearQuick() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - fFJHNGIINMN.clear(); + motion.clearQuick(); return this; } @@ -151,21 +139,19 @@ public final class RogueQueryOuterClass { if (o == this) { return true; } - if (!(o instanceof RogueQuery)) { + if (!(o instanceof EnterMapRotationRegionCsReq)) { return false; } - RogueQuery other = (RogueQuery) o; + EnterMapRotationRegionCsReq other = (EnterMapRotationRegionCsReq) o; return bitField0_ == other.bitField0_ - && (!hasFFJHNGIINMN() || fFJHNGIINMN.equals(other.fFJHNGIINMN)); + && (!hasMotion() || motion.equals(other.motion)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - for (int i = 0; i < fFJHNGIINMN.length(); i++) { - output.writeRawByte((byte) 104); - output.writeUInt32NoTag(fFJHNGIINMN.array()[i]); - } + output.writeRawByte((byte) 98); + output.writeMessageNoTag(motion); } } @@ -173,21 +159,21 @@ public final class RogueQueryOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += (1 * fFJHNGIINMN.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(fFJHNGIINMN); + size += 1 + ProtoSink.computeMessageSizeNoTag(motion); } return size; } @Override @SuppressWarnings("fallthrough") - public RogueQuery mergeFrom(final ProtoSource input) throws IOException { + public EnterMapRotationRegionCsReq mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { switch (tag) { - case 106: { - // fFJHNGIINMN [packed=true] - input.readPackedUInt32(fFJHNGIINMN, tag); + case 98: { + // motion + input.readMessage(motion); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 0) { @@ -204,12 +190,6 @@ public final class RogueQueryOuterClass { tag = input.readTag(); break; } - case 104: { - // fFJHNGIINMN [packed=false] - tag = input.readRepeatedUInt32(fFJHNGIINMN, tag); - bitField0_ |= 0x00000001; - break; - } } } } @@ -218,22 +198,22 @@ public final class RogueQueryOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeRepeatedUInt32(FieldNames.fFJHNGIINMN, fFJHNGIINMN); + output.writeMessage(FieldNames.motion, motion); } output.endObject(); } @Override - public RogueQuery mergeFrom(final JsonSource input) throws IOException { + public EnterMapRotationRegionCsReq mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 825210744: { - if (input.isAtField(FieldNames.fFJHNGIINMN)) { + case -1068318794: { + if (input.isAtField(FieldNames.motion)) { if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(fFJHNGIINMN); + input.readMessage(motion); bitField0_ |= 0x00000001; } } else { @@ -252,8 +232,8 @@ public final class RogueQueryOuterClass { } @Override - public RogueQuery clone() { - return new RogueQuery().copyFrom(this); + public EnterMapRotationRegionCsReq clone() { + return new EnterMapRotationRegionCsReq().copyFrom(this); } @Override @@ -261,31 +241,33 @@ public final class RogueQueryOuterClass { return ((bitField0_) == 0); } - public static RogueQuery parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueQuery(), data).checkInitialized(); + public static EnterMapRotationRegionCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new EnterMapRotationRegionCsReq(), data).checkInitialized(); } - public static RogueQuery parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueQuery(), input).checkInitialized(); + public static EnterMapRotationRegionCsReq parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new EnterMapRotationRegionCsReq(), input).checkInitialized(); } - public static RogueQuery parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueQuery(), input).checkInitialized(); + public static EnterMapRotationRegionCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new EnterMapRotationRegionCsReq(), input).checkInitialized(); } /** - * @return factory for creating RogueQuery messages + * @return factory for creating EnterMapRotationRegionCsReq messages */ - public static MessageFactory getFactory() { - return RogueQueryFactory.INSTANCE; + public static MessageFactory getFactory() { + return EnterMapRotationRegionCsReqFactory.INSTANCE; } - private enum RogueQueryFactory implements MessageFactory { + private enum EnterMapRotationRegionCsReqFactory implements MessageFactory { INSTANCE; @Override - public RogueQuery create() { - return RogueQuery.newInstance(); + public EnterMapRotationRegionCsReq create() { + return EnterMapRotationRegionCsReq.newInstance(); } } @@ -293,7 +275,7 @@ public final class RogueQueryOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName fFJHNGIINMN = FieldName.forField("FFJHNGIINMN"); + static final FieldName motion = FieldName.forField("motion"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/EnterMapRotationRegionScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/EnterMapRotationRegionScRspOuterClass.java new file mode 100644 index 0000000..e1df4ed --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/EnterMapRotationRegionScRspOuterClass.java @@ -0,0 +1,442 @@ +// 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 EnterMapRotationRegionScRspOuterClass { + /** + * Protobuf type {@code EnterMapRotationRegionScRsp} + */ + public static final class EnterMapRotationRegionScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 client_pos_version = 1; + */ + private int clientPosVersion; + + /** + * optional uint32 retcode = 5; + */ + private int retcode; + + /** + * optional .MotionInfo motion = 10; + */ + private final MotionInfoOuterClass.MotionInfo motion = MotionInfoOuterClass.MotionInfo.newInstance(); + + private EnterMapRotationRegionScRsp() { + } + + /** + * @return a new empty instance of {@code EnterMapRotationRegionScRsp} + */ + public static EnterMapRotationRegionScRsp newInstance() { + return new EnterMapRotationRegionScRsp(); + } + + /** + * optional uint32 client_pos_version = 1; + * @return whether the clientPosVersion field is set + */ + public boolean hasClientPosVersion() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 client_pos_version = 1; + * @return this + */ + public EnterMapRotationRegionScRsp clearClientPosVersion() { + bitField0_ &= ~0x00000001; + clientPosVersion = 0; + return this; + } + + /** + * optional uint32 client_pos_version = 1; + * @return the clientPosVersion + */ + public int getClientPosVersion() { + return clientPosVersion; + } + + /** + * optional uint32 client_pos_version = 1; + * @param value the clientPosVersion to set + * @return this + */ + public EnterMapRotationRegionScRsp setClientPosVersion(final int value) { + bitField0_ |= 0x00000001; + clientPosVersion = value; + return this; + } + + /** + * optional uint32 retcode = 5; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 retcode = 5; + * @return this + */ + public EnterMapRotationRegionScRsp clearRetcode() { + bitField0_ &= ~0x00000002; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 5; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 5; + * @param value the retcode to set + * @return this + */ + public EnterMapRotationRegionScRsp setRetcode(final int value) { + bitField0_ |= 0x00000002; + retcode = value; + return this; + } + + /** + * optional .MotionInfo motion = 10; + * @return whether the motion field is set + */ + public boolean hasMotion() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .MotionInfo motion = 10; + * @return this + */ + public EnterMapRotationRegionScRsp clearMotion() { + bitField0_ &= ~0x00000004; + motion.clear(); + return this; + } + + /** + * optional .MotionInfo motion = 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 #getMutableMotion()} if you want to modify it. + * + * @return internal storage object for reading + */ + public MotionInfoOuterClass.MotionInfo getMotion() { + return motion; + } + + /** + * optional .MotionInfo motion = 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 + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public MotionInfoOuterClass.MotionInfo getMutableMotion() { + bitField0_ |= 0x00000004; + return motion; + } + + /** + * optional .MotionInfo motion = 10; + * @param value the motion to set + * @return this + */ + public EnterMapRotationRegionScRsp setMotion(final MotionInfoOuterClass.MotionInfo value) { + bitField0_ |= 0x00000004; + motion.copyFrom(value); + return this; + } + + @Override + public EnterMapRotationRegionScRsp copyFrom(final EnterMapRotationRegionScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + clientPosVersion = other.clientPosVersion; + retcode = other.retcode; + motion.copyFrom(other.motion); + } + return this; + } + + @Override + public EnterMapRotationRegionScRsp mergeFrom(final EnterMapRotationRegionScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasClientPosVersion()) { + setClientPosVersion(other.clientPosVersion); + } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasMotion()) { + getMutableMotion().mergeFrom(other.motion); + } + return this; + } + + @Override + public EnterMapRotationRegionScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + clientPosVersion = 0; + retcode = 0; + motion.clear(); + return this; + } + + @Override + public EnterMapRotationRegionScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + motion.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof EnterMapRotationRegionScRsp)) { + return false; + } + EnterMapRotationRegionScRsp other = (EnterMapRotationRegionScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasClientPosVersion() || clientPosVersion == other.clientPosVersion) + && (!hasRetcode() || retcode == other.retcode) + && (!hasMotion() || motion.equals(other.motion)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(clientPosVersion); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 82); + output.writeMessageNoTag(motion); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(clientPosVersion); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(motion); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public EnterMapRotationRegionScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // clientPosVersion + clientPosVersion = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 82) { + break; + } + } + case 82: { + // motion + input.readMessage(motion); + 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.clientPosVersion, clientPosVersion); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.motion, motion); + } + output.endObject(); + } + + @Override + public EnterMapRotationRegionScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1787644431: + case 1278860153: { + if (input.isAtField(FieldNames.clientPosVersion)) { + if (!input.trySkipNullValue()) { + clientPosVersion = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1068318794: { + if (input.isAtField(FieldNames.motion)) { + if (!input.trySkipNullValue()) { + input.readMessage(motion); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public EnterMapRotationRegionScRsp clone() { + return new EnterMapRotationRegionScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static EnterMapRotationRegionScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new EnterMapRotationRegionScRsp(), data).checkInitialized(); + } + + public static EnterMapRotationRegionScRsp parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new EnterMapRotationRegionScRsp(), input).checkInitialized(); + } + + public static EnterMapRotationRegionScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new EnterMapRotationRegionScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating EnterMapRotationRegionScRsp messages + */ + public static MessageFactory getFactory() { + return EnterMapRotationRegionScRspFactory.INSTANCE; + } + + private enum EnterMapRotationRegionScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public EnterMapRotationRegionScRsp create() { + return EnterMapRotationRegionScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName clientPosVersion = FieldName.forField("clientPosVersion", "client_pos_version"); + + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName motion = FieldName.forField("motion"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/EnterSceneByServerScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/EnterSceneByServerScNotifyOuterClass.java index c25e7e7..c0ce18f 100644 --- a/src/generated/main/emu/lunarcore/proto/EnterSceneByServerScNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/EnterSceneByServerScNotifyOuterClass.java @@ -19,17 +19,17 @@ public final class EnterSceneByServerScNotifyOuterClass { private static final long serialVersionUID = 0L; /** - * optional .EnterSceneReason reason = 3; + * optional .EnterSceneReason reason = 10; */ private int reason; /** - * optional .SceneInfo scene = 4; + * optional .SceneInfo scene = 5; */ private final SceneInfoOuterClass.SceneInfo scene = SceneInfoOuterClass.SceneInfo.newInstance(); /** - * optional .LineupInfo lineup = 12; + * optional .LineupInfo lineup = 6; */ private final LineupInfoOuterClass.LineupInfo lineup = LineupInfoOuterClass.LineupInfo.newInstance(); @@ -44,7 +44,7 @@ public final class EnterSceneByServerScNotifyOuterClass { } /** - * optional .EnterSceneReason reason = 3; + * optional .EnterSceneReason reason = 10; * @return whether the reason field is set */ public boolean hasReason() { @@ -52,7 +52,7 @@ public final class EnterSceneByServerScNotifyOuterClass { } /** - * optional .EnterSceneReason reason = 3; + * optional .EnterSceneReason reason = 10; * @return this */ public EnterSceneByServerScNotify clearReason() { @@ -62,7 +62,7 @@ public final class EnterSceneByServerScNotifyOuterClass { } /** - * optional .EnterSceneReason reason = 3; + * optional .EnterSceneReason reason = 10; * @return the reason */ public EnterSceneReasonOuterClass.EnterSceneReason getReason() { @@ -95,7 +95,7 @@ public final class EnterSceneByServerScNotifyOuterClass { } /** - * optional .EnterSceneReason reason = 3; + * optional .EnterSceneReason reason = 10; * @param value the reason to set * @return this */ @@ -107,7 +107,7 @@ public final class EnterSceneByServerScNotifyOuterClass { } /** - * optional .SceneInfo scene = 4; + * optional .SceneInfo scene = 5; * @return whether the scene field is set */ public boolean hasScene() { @@ -115,7 +115,7 @@ public final class EnterSceneByServerScNotifyOuterClass { } /** - * optional .SceneInfo scene = 4; + * optional .SceneInfo scene = 5; * @return this */ public EnterSceneByServerScNotify clearScene() { @@ -125,7 +125,7 @@ public final class EnterSceneByServerScNotifyOuterClass { } /** - * optional .SceneInfo scene = 4; + * optional .SceneInfo scene = 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. @@ -139,7 +139,7 @@ public final class EnterSceneByServerScNotifyOuterClass { } /** - * optional .SceneInfo scene = 4; + * optional .SceneInfo scene = 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 @@ -153,7 +153,7 @@ public final class EnterSceneByServerScNotifyOuterClass { } /** - * optional .SceneInfo scene = 4; + * optional .SceneInfo scene = 5; * @param value the scene to set * @return this */ @@ -164,7 +164,7 @@ public final class EnterSceneByServerScNotifyOuterClass { } /** - * optional .LineupInfo lineup = 12; + * optional .LineupInfo lineup = 6; * @return whether the lineup field is set */ public boolean hasLineup() { @@ -172,7 +172,7 @@ public final class EnterSceneByServerScNotifyOuterClass { } /** - * optional .LineupInfo lineup = 12; + * optional .LineupInfo lineup = 6; * @return this */ public EnterSceneByServerScNotify clearLineup() { @@ -182,7 +182,7 @@ public final class EnterSceneByServerScNotifyOuterClass { } /** - * optional .LineupInfo lineup = 12; + * optional .LineupInfo lineup = 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. @@ -196,7 +196,7 @@ public final class EnterSceneByServerScNotifyOuterClass { } /** - * optional .LineupInfo lineup = 12; + * optional .LineupInfo lineup = 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 @@ -210,7 +210,7 @@ public final class EnterSceneByServerScNotifyOuterClass { } /** - * optional .LineupInfo lineup = 12; + * optional .LineupInfo lineup = 6; * @param value the lineup to set * @return this */ @@ -293,15 +293,15 @@ public final class EnterSceneByServerScNotifyOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 80); output.writeEnumNoTag(reason); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 34); + output.writeRawByte((byte) 42); output.writeMessageNoTag(scene); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 98); + output.writeRawByte((byte) 50); output.writeMessageNoTag(lineup); } } @@ -328,7 +328,7 @@ public final class EnterSceneByServerScNotifyOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 24: { + case 80: { // reason final int value = input.readInt32(); if (EnterSceneReasonOuterClass.EnterSceneReason.forNumber(value) != null) { @@ -336,20 +336,20 @@ public final class EnterSceneByServerScNotifyOuterClass { bitField0_ |= 0x00000001; } tag = input.readTag(); - if (tag != 34) { + if (tag != 42) { break; } } - case 34: { + case 42: { // scene input.readMessage(scene); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 98) { + if (tag != 50) { break; } } - case 98: { + case 50: { // lineup input.readMessage(lineup); bitField0_ |= 0x00000004; diff --git a/src/generated/main/emu/lunarcore/proto/EnterSceneCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/EnterSceneCsReqOuterClass.java index 30428eb..f8111fa 100644 --- a/src/generated/main/emu/lunarcore/proto/EnterSceneCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/EnterSceneCsReqOuterClass.java @@ -19,15 +19,15 @@ public final class EnterSceneCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 teleport_id = 2; - */ - private int teleportId; - - /** - * optional uint32 entry_id = 14; + * optional uint32 entry_id = 1; */ private int entryId; + /** + * optional uint32 teleport_id = 14; + */ + private int teleportId; + private EnterSceneCsReq() { } @@ -39,62 +39,25 @@ public final class EnterSceneCsReqOuterClass { } /** - * optional uint32 teleport_id = 2; - * @return whether the teleportId field is set + * optional uint32 entry_id = 1; + * @return whether the entryId field is set */ - public boolean hasTeleportId() { + public boolean hasEntryId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 teleport_id = 2; - * @return this - */ - public EnterSceneCsReq clearTeleportId() { - bitField0_ &= ~0x00000001; - teleportId = 0; - return this; - } - - /** - * optional uint32 teleport_id = 2; - * @return the teleportId - */ - public int getTeleportId() { - return teleportId; - } - - /** - * optional uint32 teleport_id = 2; - * @param value the teleportId to set - * @return this - */ - public EnterSceneCsReq setTeleportId(final int value) { - bitField0_ |= 0x00000001; - teleportId = value; - return this; - } - - /** - * optional uint32 entry_id = 14; - * @return whether the entryId field is set - */ - public boolean hasEntryId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 entry_id = 14; + * optional uint32 entry_id = 1; * @return this */ public EnterSceneCsReq clearEntryId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; entryId = 0; return this; } /** - * optional uint32 entry_id = 14; + * optional uint32 entry_id = 1; * @return the entryId */ public int getEntryId() { @@ -102,23 +65,60 @@ public final class EnterSceneCsReqOuterClass { } /** - * optional uint32 entry_id = 14; + * optional uint32 entry_id = 1; * @param value the entryId to set * @return this */ public EnterSceneCsReq setEntryId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; entryId = value; return this; } + /** + * optional uint32 teleport_id = 14; + * @return whether the teleportId field is set + */ + public boolean hasTeleportId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 teleport_id = 14; + * @return this + */ + public EnterSceneCsReq clearTeleportId() { + bitField0_ &= ~0x00000002; + teleportId = 0; + return this; + } + + /** + * optional uint32 teleport_id = 14; + * @return the teleportId + */ + public int getTeleportId() { + return teleportId; + } + + /** + * optional uint32 teleport_id = 14; + * @param value the teleportId to set + * @return this + */ + public EnterSceneCsReq setTeleportId(final int value) { + bitField0_ |= 0x00000002; + teleportId = value; + return this; + } + @Override public EnterSceneCsReq copyFrom(final EnterSceneCsReq other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - teleportId = other.teleportId; entryId = other.entryId; + teleportId = other.teleportId; } return this; } @@ -129,12 +129,12 @@ public final class EnterSceneCsReqOuterClass { return this; } cachedSize = -1; - if (other.hasTeleportId()) { - setTeleportId(other.teleportId); - } if (other.hasEntryId()) { setEntryId(other.entryId); } + if (other.hasTeleportId()) { + setTeleportId(other.teleportId); + } return this; } @@ -145,8 +145,8 @@ public final class EnterSceneCsReqOuterClass { } cachedSize = -1; bitField0_ = 0; - teleportId = 0; entryId = 0; + teleportId = 0; return this; } @@ -170,19 +170,19 @@ public final class EnterSceneCsReqOuterClass { } EnterSceneCsReq other = (EnterSceneCsReq) o; return bitField0_ == other.bitField0_ - && (!hasTeleportId() || teleportId == other.teleportId) - && (!hasEntryId() || entryId == other.entryId); + && (!hasEntryId() || entryId == other.entryId) + && (!hasTeleportId() || teleportId == other.teleportId); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(teleportId); + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(entryId); } if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 112); - output.writeUInt32NoTag(entryId); + output.writeUInt32NoTag(teleportId); } } @@ -190,10 +190,10 @@ public final class EnterSceneCsReqOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(teleportId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(entryId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(entryId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(teleportId); } return size; } @@ -205,9 +205,9 @@ public final class EnterSceneCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { - // teleportId - teleportId = input.readUInt32(); + case 8: { + // entryId + entryId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 112) { @@ -215,8 +215,8 @@ public final class EnterSceneCsReqOuterClass { } } case 112: { - // entryId - entryId = input.readUInt32(); + // teleportId + teleportId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { @@ -241,10 +241,10 @@ public final class EnterSceneCsReqOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.teleportId, teleportId); + output.writeUInt32(FieldNames.entryId, entryId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.entryId, entryId); + output.writeUInt32(FieldNames.teleportId, teleportId); } output.endObject(); } @@ -256,11 +256,11 @@ public final class EnterSceneCsReqOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -1484004954: - case 1240508079: { - if (input.isAtField(FieldNames.teleportId)) { + case -1591558867: + case -2093663224: { + if (input.isAtField(FieldNames.entryId)) { if (!input.trySkipNullValue()) { - teleportId = input.readUInt32(); + entryId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -268,11 +268,11 @@ public final class EnterSceneCsReqOuterClass { } break; } - case -1591558867: - case -2093663224: { - if (input.isAtField(FieldNames.entryId)) { + case -1484004954: + case 1240508079: { + if (input.isAtField(FieldNames.teleportId)) { if (!input.trySkipNullValue()) { - entryId = input.readUInt32(); + teleportId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -333,9 +333,9 @@ public final class EnterSceneCsReqOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName teleportId = FieldName.forField("teleportId", "teleport_id"); - static final FieldName entryId = FieldName.forField("entryId", "entry_id"); + + static final FieldName teleportId = FieldName.forField("teleportId", "teleport_id"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/EnteredSceneInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/EnteredSceneInfoOuterClass.java index edaf76e..8cb5f80 100644 --- a/src/generated/main/emu/lunarcore/proto/EnteredSceneInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/EnteredSceneInfoOuterClass.java @@ -19,15 +19,15 @@ public final class EnteredSceneInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 plane_id = 1; - */ - private int planeId; - - /** - * optional uint32 floor_id = 6; + * optional uint32 floor_id = 4; */ private int floorId; + /** + * optional uint32 plane_id = 12; + */ + private int planeId; + private EnteredSceneInfo() { } @@ -39,62 +39,25 @@ public final class EnteredSceneInfoOuterClass { } /** - * optional uint32 plane_id = 1; - * @return whether the planeId field is set + * optional uint32 floor_id = 4; + * @return whether the floorId field is set */ - public boolean hasPlaneId() { + public boolean hasFloorId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 plane_id = 1; - * @return this - */ - public EnteredSceneInfo clearPlaneId() { - bitField0_ &= ~0x00000001; - planeId = 0; - return this; - } - - /** - * optional uint32 plane_id = 1; - * @return the planeId - */ - public int getPlaneId() { - return planeId; - } - - /** - * optional uint32 plane_id = 1; - * @param value the planeId to set - * @return this - */ - public EnteredSceneInfo setPlaneId(final int value) { - bitField0_ |= 0x00000001; - planeId = value; - return this; - } - - /** - * optional uint32 floor_id = 6; - * @return whether the floorId field is set - */ - public boolean hasFloorId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 floor_id = 6; + * optional uint32 floor_id = 4; * @return this */ public EnteredSceneInfo clearFloorId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; floorId = 0; return this; } /** - * optional uint32 floor_id = 6; + * optional uint32 floor_id = 4; * @return the floorId */ public int getFloorId() { @@ -102,23 +65,60 @@ public final class EnteredSceneInfoOuterClass { } /** - * optional uint32 floor_id = 6; + * optional uint32 floor_id = 4; * @param value the floorId to set * @return this */ public EnteredSceneInfo setFloorId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; floorId = value; return this; } + /** + * optional uint32 plane_id = 12; + * @return whether the planeId field is set + */ + public boolean hasPlaneId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 plane_id = 12; + * @return this + */ + public EnteredSceneInfo clearPlaneId() { + bitField0_ &= ~0x00000002; + planeId = 0; + return this; + } + + /** + * optional uint32 plane_id = 12; + * @return the planeId + */ + public int getPlaneId() { + return planeId; + } + + /** + * optional uint32 plane_id = 12; + * @param value the planeId to set + * @return this + */ + public EnteredSceneInfo setPlaneId(final int value) { + bitField0_ |= 0x00000002; + planeId = value; + return this; + } + @Override public EnteredSceneInfo copyFrom(final EnteredSceneInfo other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - planeId = other.planeId; floorId = other.floorId; + planeId = other.planeId; } return this; } @@ -129,12 +129,12 @@ public final class EnteredSceneInfoOuterClass { return this; } cachedSize = -1; - if (other.hasPlaneId()) { - setPlaneId(other.planeId); - } if (other.hasFloorId()) { setFloorId(other.floorId); } + if (other.hasPlaneId()) { + setPlaneId(other.planeId); + } return this; } @@ -145,8 +145,8 @@ public final class EnteredSceneInfoOuterClass { } cachedSize = -1; bitField0_ = 0; - planeId = 0; floorId = 0; + planeId = 0; return this; } @@ -170,19 +170,19 @@ public final class EnteredSceneInfoOuterClass { } EnteredSceneInfo other = (EnteredSceneInfo) o; return bitField0_ == other.bitField0_ - && (!hasPlaneId() || planeId == other.planeId) - && (!hasFloorId() || floorId == other.floorId); + && (!hasFloorId() || floorId == other.floorId) + && (!hasPlaneId() || planeId == other.planeId); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(planeId); + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(floorId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 48); - output.writeUInt32NoTag(floorId); + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(planeId); } } @@ -190,10 +190,10 @@ public final class EnteredSceneInfoOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(planeId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(floorId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(floorId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(planeId); } return size; } @@ -205,18 +205,18 @@ public final class EnteredSceneInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 8: { - // planeId - planeId = input.readUInt32(); + case 32: { + // floorId + floorId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 48) { + if (tag != 96) { break; } } - case 48: { - // floorId - floorId = input.readUInt32(); + case 96: { + // planeId + planeId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { @@ -241,10 +241,10 @@ public final class EnteredSceneInfoOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.planeId, planeId); + output.writeUInt32(FieldNames.floorId, floorId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.floorId, floorId); + output.writeUInt32(FieldNames.planeId, planeId); } output.endObject(); } @@ -256,11 +256,11 @@ public final class EnteredSceneInfoOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - 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_ |= 0x00000001; } } else { @@ -268,11 +268,11 @@ public final class EnteredSceneInfoOuterClass { } 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_ |= 0x00000002; } } else { @@ -333,9 +333,9 @@ public final class EnteredSceneInfoOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName planeId = FieldName.forField("planeId", "plane_id"); - static final FieldName floorId = FieldName.forField("floorId", "floor_id"); + + static final FieldName planeId = FieldName.forField("planeId", "plane_id"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/EntityBuffChangeInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/EntityBuffChangeInfoOuterClass.java index 4b85880..5a9a4d1 100644 --- a/src/generated/main/emu/lunarcore/proto/EntityBuffChangeInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/EntityBuffChangeInfoOuterClass.java @@ -19,17 +19,17 @@ public final class EntityBuffChangeInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 remove_buff_id = 4; - */ - private int removeBuffId; - - /** - * optional uint32 entity_id = 9; + * optional uint32 entity_id = 7; */ private int entityId; /** - * optional .BuffInfo add_buff_info = 12; + * optional uint32 remove_buff_id = 12; + */ + private int removeBuffId; + + /** + * optional .BuffInfo add_buff_info = 5; */ private final BuffInfoOuterClass.BuffInfo addBuffInfo = BuffInfoOuterClass.BuffInfo.newInstance(); @@ -44,62 +44,25 @@ public final class EntityBuffChangeInfoOuterClass { } /** - * optional uint32 remove_buff_id = 4; - * @return whether the removeBuffId field is set + * optional uint32 entity_id = 7; + * @return whether the entityId field is set */ - public boolean hasRemoveBuffId() { + public boolean hasEntityId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 remove_buff_id = 4; - * @return this - */ - public EntityBuffChangeInfo clearRemoveBuffId() { - bitField0_ &= ~0x00000001; - removeBuffId = 0; - return this; - } - - /** - * optional uint32 remove_buff_id = 4; - * @return the removeBuffId - */ - public int getRemoveBuffId() { - return removeBuffId; - } - - /** - * optional uint32 remove_buff_id = 4; - * @param value the removeBuffId to set - * @return this - */ - public EntityBuffChangeInfo setRemoveBuffId(final int value) { - bitField0_ |= 0x00000001; - removeBuffId = value; - return this; - } - - /** - * optional uint32 entity_id = 9; - * @return whether the entityId field is set - */ - public boolean hasEntityId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 entity_id = 9; + * optional uint32 entity_id = 7; * @return this */ public EntityBuffChangeInfo clearEntityId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; entityId = 0; return this; } /** - * optional uint32 entity_id = 9; + * optional uint32 entity_id = 7; * @return the entityId */ public int getEntityId() { @@ -107,18 +70,55 @@ public final class EntityBuffChangeInfoOuterClass { } /** - * optional uint32 entity_id = 9; + * optional uint32 entity_id = 7; * @param value the entityId to set * @return this */ public EntityBuffChangeInfo setEntityId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; entityId = value; return this; } /** - * optional .BuffInfo add_buff_info = 12; + * optional uint32 remove_buff_id = 12; + * @return whether the removeBuffId field is set + */ + public boolean hasRemoveBuffId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 remove_buff_id = 12; + * @return this + */ + public EntityBuffChangeInfo clearRemoveBuffId() { + bitField0_ &= ~0x00000002; + removeBuffId = 0; + return this; + } + + /** + * optional uint32 remove_buff_id = 12; + * @return the removeBuffId + */ + public int getRemoveBuffId() { + return removeBuffId; + } + + /** + * optional uint32 remove_buff_id = 12; + * @param value the removeBuffId to set + * @return this + */ + public EntityBuffChangeInfo setRemoveBuffId(final int value) { + bitField0_ |= 0x00000002; + removeBuffId = value; + return this; + } + + /** + * optional .BuffInfo add_buff_info = 5; * @return whether the addBuffInfo field is set */ public boolean hasAddBuffInfo() { @@ -126,7 +126,7 @@ public final class EntityBuffChangeInfoOuterClass { } /** - * optional .BuffInfo add_buff_info = 12; + * optional .BuffInfo add_buff_info = 5; * @return this */ public EntityBuffChangeInfo clearAddBuffInfo() { @@ -136,7 +136,7 @@ public final class EntityBuffChangeInfoOuterClass { } /** - * optional .BuffInfo add_buff_info = 12; + * optional .BuffInfo add_buff_info = 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. @@ -150,7 +150,7 @@ public final class EntityBuffChangeInfoOuterClass { } /** - * optional .BuffInfo add_buff_info = 12; + * optional .BuffInfo add_buff_info = 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 @@ -164,7 +164,7 @@ public final class EntityBuffChangeInfoOuterClass { } /** - * optional .BuffInfo add_buff_info = 12; + * optional .BuffInfo add_buff_info = 5; * @param value the addBuffInfo to set * @return this */ @@ -179,8 +179,8 @@ public final class EntityBuffChangeInfoOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - removeBuffId = other.removeBuffId; entityId = other.entityId; + removeBuffId = other.removeBuffId; addBuffInfo.copyFrom(other.addBuffInfo); } return this; @@ -192,12 +192,12 @@ public final class EntityBuffChangeInfoOuterClass { return this; } cachedSize = -1; - if (other.hasRemoveBuffId()) { - setRemoveBuffId(other.removeBuffId); - } if (other.hasEntityId()) { setEntityId(other.entityId); } + if (other.hasRemoveBuffId()) { + setRemoveBuffId(other.removeBuffId); + } if (other.hasAddBuffInfo()) { getMutableAddBuffInfo().mergeFrom(other.addBuffInfo); } @@ -211,8 +211,8 @@ public final class EntityBuffChangeInfoOuterClass { } cachedSize = -1; bitField0_ = 0; - removeBuffId = 0; entityId = 0; + removeBuffId = 0; addBuffInfo.clear(); return this; } @@ -238,23 +238,23 @@ public final class EntityBuffChangeInfoOuterClass { } EntityBuffChangeInfo other = (EntityBuffChangeInfo) o; return bitField0_ == other.bitField0_ - && (!hasRemoveBuffId() || removeBuffId == other.removeBuffId) && (!hasEntityId() || entityId == other.entityId) + && (!hasRemoveBuffId() || removeBuffId == other.removeBuffId) && (!hasAddBuffInfo() || addBuffInfo.equals(other.addBuffInfo)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 32); - output.writeUInt32NoTag(removeBuffId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 72); + output.writeRawByte((byte) 56); output.writeUInt32NoTag(entityId); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(removeBuffId); + } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 98); + output.writeRawByte((byte) 42); output.writeMessageNoTag(addBuffInfo); } } @@ -263,10 +263,10 @@ public final class EntityBuffChangeInfoOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(removeBuffId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(entityId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(entityId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(removeBuffId); } if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(addBuffInfo); @@ -281,25 +281,25 @@ public final class EntityBuffChangeInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 32: { - // removeBuffId - removeBuffId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 72) { - break; - } - } - case 72: { + case 56: { // entityId entityId = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 98) { + if (tag != 96) { break; } } - case 98: { + case 96: { + // removeBuffId + removeBuffId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 42) { + break; + } + } + case 42: { // addBuffInfo input.readMessage(addBuffInfo); bitField0_ |= 0x00000004; @@ -326,10 +326,10 @@ public final class EntityBuffChangeInfoOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.removeBuffId, removeBuffId); + output.writeUInt32(FieldNames.entityId, entityId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.entityId, entityId); + output.writeUInt32(FieldNames.removeBuffId, removeBuffId); } if ((bitField0_ & 0x00000004) != 0) { output.writeMessage(FieldNames.addBuffInfo, addBuffInfo); @@ -344,11 +344,11 @@ public final class EntityBuffChangeInfoOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -1339555214: - case 927119308: { - if (input.isAtField(FieldNames.removeBuffId)) { + case -2102099874: + case -740565257: { + if (input.isAtField(FieldNames.entityId)) { if (!input.trySkipNullValue()) { - removeBuffId = input.readUInt32(); + entityId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -356,11 +356,11 @@ public final class EntityBuffChangeInfoOuterClass { } break; } - case -2102099874: - case -740565257: { - if (input.isAtField(FieldNames.entityId)) { + case -1339555214: + case 927119308: { + if (input.isAtField(FieldNames.removeBuffId)) { if (!input.trySkipNullValue()) { - entityId = input.readUInt32(); + removeBuffId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -433,10 +433,10 @@ public final class EntityBuffChangeInfoOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName removeBuffId = FieldName.forField("removeBuffId", "remove_buff_id"); - static final FieldName entityId = FieldName.forField("entityId", "entity_id"); + static final FieldName removeBuffId = FieldName.forField("removeBuffId", "remove_buff_id"); + static final FieldName addBuffInfo = FieldName.forField("addBuffInfo", "add_buff_info"); } } diff --git a/src/generated/main/emu/lunarcore/proto/EntityBuffInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/EntityBuffInfoOuterClass.java index f44162f..0e88c5d 100644 --- a/src/generated/main/emu/lunarcore/proto/EntityBuffInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/EntityBuffInfoOuterClass.java @@ -20,12 +20,12 @@ public final class EntityBuffInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 entity_id = 7; + * optional uint32 entity_id = 11; */ private int entityId; /** - * repeated .BuffInfo buff_list = 6; + * repeated .BuffInfo buff_list = 8; */ private final RepeatedMessage buffList = RepeatedMessage.newEmptyInstance(BuffInfoOuterClass.BuffInfo.getFactory()); @@ -40,7 +40,7 @@ public final class EntityBuffInfoOuterClass { } /** - * optional uint32 entity_id = 7; + * optional uint32 entity_id = 11; * @return whether the entityId field is set */ public boolean hasEntityId() { @@ -48,7 +48,7 @@ public final class EntityBuffInfoOuterClass { } /** - * optional uint32 entity_id = 7; + * optional uint32 entity_id = 11; * @return this */ public EntityBuffInfo clearEntityId() { @@ -58,7 +58,7 @@ public final class EntityBuffInfoOuterClass { } /** - * optional uint32 entity_id = 7; + * optional uint32 entity_id = 11; * @return the entityId */ public int getEntityId() { @@ -66,7 +66,7 @@ public final class EntityBuffInfoOuterClass { } /** - * optional uint32 entity_id = 7; + * optional uint32 entity_id = 11; * @param value the entityId to set * @return this */ @@ -77,7 +77,7 @@ public final class EntityBuffInfoOuterClass { } /** - * repeated .BuffInfo buff_list = 6; + * repeated .BuffInfo buff_list = 8; * @return whether the buffList field is set */ public boolean hasBuffList() { @@ -85,7 +85,7 @@ public final class EntityBuffInfoOuterClass { } /** - * repeated .BuffInfo buff_list = 6; + * repeated .BuffInfo buff_list = 8; * @return this */ public EntityBuffInfo clearBuffList() { @@ -95,7 +95,7 @@ public final class EntityBuffInfoOuterClass { } /** - * repeated .BuffInfo buff_list = 6; + * repeated .BuffInfo buff_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 final class EntityBuffInfoOuterClass { } /** - * repeated .BuffInfo buff_list = 6; + * repeated .BuffInfo buff_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 final class EntityBuffInfoOuterClass { } /** - * repeated .BuffInfo buff_list = 6; + * repeated .BuffInfo buff_list = 8; * @param value the buffList to add * @return this */ @@ -134,7 +134,7 @@ public final class EntityBuffInfoOuterClass { } /** - * repeated .BuffInfo buff_list = 6; + * repeated .BuffInfo buff_list = 8; * @param values the buffList to add * @return this */ @@ -210,12 +210,12 @@ public final class EntityBuffInfoOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 88); output.writeUInt32NoTag(entityId); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < buffList.length(); i++) { - output.writeRawByte((byte) 50); + output.writeRawByte((byte) 66); output.writeMessageNoTag(buffList.get(i)); } } @@ -240,16 +240,16 @@ public final class EntityBuffInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 56: { + case 88: { // entityId entityId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 50) { + if (tag != 66) { break; } } - case 50: { + case 66: { // buffList tag = input.readRepeatedMessage(buffList, tag); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/EntityMotionOuterClass.java b/src/generated/main/emu/lunarcore/proto/EntityMotionOuterClass.java index 590b796..6f62a97 100644 --- a/src/generated/main/emu/lunarcore/proto/EntityMotionOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/EntityMotionOuterClass.java @@ -18,18 +18,18 @@ public final class EntityMotionOuterClass { public static final class EntityMotion extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; + /** + * optional uint32 entity_id = 11; + */ + private int entityId; + /** * optional uint32 map_layer = 13; */ private int mapLayer; /** - * optional uint32 entity_id = 14; - */ - private int entityId; - - /** - * optional .MotionInfo motion = 11; + * optional .MotionInfo motion = 3; */ private final MotionInfoOuterClass.MotionInfo motion = MotionInfoOuterClass.MotionInfo.newInstance(); @@ -43,12 +43,49 @@ public final class EntityMotionOuterClass { return new EntityMotion(); } + /** + * optional uint32 entity_id = 11; + * @return whether the entityId field is set + */ + public boolean hasEntityId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 entity_id = 11; + * @return this + */ + public EntityMotion clearEntityId() { + bitField0_ &= ~0x00000001; + entityId = 0; + return this; + } + + /** + * optional uint32 entity_id = 11; + * @return the entityId + */ + public int getEntityId() { + return entityId; + } + + /** + * optional uint32 entity_id = 11; + * @param value the entityId to set + * @return this + */ + public EntityMotion setEntityId(final int value) { + bitField0_ |= 0x00000001; + entityId = value; + return this; + } + /** * optional uint32 map_layer = 13; * @return whether the mapLayer field is set */ public boolean hasMapLayer() { - return (bitField0_ & 0x00000001) != 0; + return (bitField0_ & 0x00000002) != 0; } /** @@ -56,7 +93,7 @@ public final class EntityMotionOuterClass { * @return this */ public EntityMotion clearMapLayer() { - bitField0_ &= ~0x00000001; + bitField0_ &= ~0x00000002; mapLayer = 0; return this; } @@ -75,50 +112,13 @@ public final class EntityMotionOuterClass { * @return this */ public EntityMotion setMapLayer(final int value) { - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; mapLayer = value; return this; } /** - * optional uint32 entity_id = 14; - * @return whether the entityId field is set - */ - public boolean hasEntityId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 entity_id = 14; - * @return this - */ - public EntityMotion clearEntityId() { - bitField0_ &= ~0x00000002; - entityId = 0; - return this; - } - - /** - * optional uint32 entity_id = 14; - * @return the entityId - */ - public int getEntityId() { - return entityId; - } - - /** - * optional uint32 entity_id = 14; - * @param value the entityId to set - * @return this - */ - public EntityMotion setEntityId(final int value) { - bitField0_ |= 0x00000002; - entityId = value; - return this; - } - - /** - * optional .MotionInfo motion = 11; + * optional .MotionInfo motion = 3; * @return whether the motion field is set */ public boolean hasMotion() { @@ -126,7 +126,7 @@ public final class EntityMotionOuterClass { } /** - * optional .MotionInfo motion = 11; + * optional .MotionInfo motion = 3; * @return this */ public EntityMotion clearMotion() { @@ -136,7 +136,7 @@ public final class EntityMotionOuterClass { } /** - * optional .MotionInfo motion = 11; + * optional .MotionInfo motion = 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. @@ -150,7 +150,7 @@ public final class EntityMotionOuterClass { } /** - * optional .MotionInfo motion = 11; + * optional .MotionInfo motion = 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 @@ -164,7 +164,7 @@ public final class EntityMotionOuterClass { } /** - * optional .MotionInfo motion = 11; + * optional .MotionInfo motion = 3; * @param value the motion to set * @return this */ @@ -179,8 +179,8 @@ public final class EntityMotionOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - mapLayer = other.mapLayer; entityId = other.entityId; + mapLayer = other.mapLayer; motion.copyFrom(other.motion); } return this; @@ -192,12 +192,12 @@ public final class EntityMotionOuterClass { return this; } cachedSize = -1; - if (other.hasMapLayer()) { - setMapLayer(other.mapLayer); - } if (other.hasEntityId()) { setEntityId(other.entityId); } + if (other.hasMapLayer()) { + setMapLayer(other.mapLayer); + } if (other.hasMotion()) { getMutableMotion().mergeFrom(other.motion); } @@ -211,8 +211,8 @@ public final class EntityMotionOuterClass { } cachedSize = -1; bitField0_ = 0; - mapLayer = 0; entityId = 0; + mapLayer = 0; motion.clear(); return this; } @@ -238,23 +238,23 @@ public final class EntityMotionOuterClass { } EntityMotion other = (EntityMotion) o; return bitField0_ == other.bitField0_ - && (!hasMapLayer() || mapLayer == other.mapLayer) && (!hasEntityId() || entityId == other.entityId) + && (!hasMapLayer() || mapLayer == other.mapLayer) && (!hasMotion() || motion.equals(other.motion)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(entityId); + } + if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 104); output.writeUInt32NoTag(mapLayer); } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 112); - output.writeUInt32NoTag(entityId); - } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 90); + output.writeRawByte((byte) 26); output.writeMessageNoTag(motion); } } @@ -263,10 +263,10 @@ public final class EntityMotionOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(mapLayer); + size += 1 + ProtoSink.computeUInt32SizeNoTag(entityId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(entityId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(mapLayer); } if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(motion); @@ -281,25 +281,25 @@ public final class EntityMotionOuterClass { int tag = input.readTag(); while (true) { switch (tag) { + case 88: { + // entityId + entityId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 104) { + break; + } + } case 104: { // mapLayer mapLayer = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 112) { - break; - } - } - case 112: { - // entityId - entityId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 90) { + if (tag != 26) { break; } } - case 90: { + case 26: { // motion input.readMessage(motion); bitField0_ |= 0x00000004; @@ -326,10 +326,10 @@ public final class EntityMotionOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.mapLayer, mapLayer); + output.writeUInt32(FieldNames.entityId, entityId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.entityId, entityId); + output.writeUInt32(FieldNames.mapLayer, mapLayer); } if ((bitField0_ & 0x00000004) != 0) { output.writeMessage(FieldNames.motion, motion); @@ -344,11 +344,11 @@ public final class EntityMotionOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - 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_ |= 0x00000001; } } else { @@ -356,11 +356,11 @@ public final class EntityMotionOuterClass { } break; } - 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_ |= 0x00000002; } } else { @@ -431,10 +431,10 @@ public final class EntityMotionOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName mapLayer = FieldName.forField("mapLayer", "map_layer"); - static final FieldName entityId = FieldName.forField("entityId", "entity_id"); + static final FieldName mapLayer = FieldName.forField("mapLayer", "map_layer"); + 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 1eba528..fd4005b 100644 --- a/src/generated/main/emu/lunarcore/proto/EquipRelicOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/EquipRelicOuterClass.java @@ -19,12 +19,12 @@ public final class EquipRelicOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 slot = 4; + * optional uint32 slot = 3; */ private int slot; /** - * optional uint32 relic_unique_id = 15; + * optional uint32 relic_unique_id = 4; */ private int relicUniqueId; @@ -39,7 +39,7 @@ public final class EquipRelicOuterClass { } /** - * optional uint32 slot = 4; + * optional uint32 slot = 3; * @return whether the slot field is set */ public boolean hasSlot() { @@ -47,7 +47,7 @@ public final class EquipRelicOuterClass { } /** - * optional uint32 slot = 4; + * optional uint32 slot = 3; * @return this */ public EquipRelic clearSlot() { @@ -57,7 +57,7 @@ public final class EquipRelicOuterClass { } /** - * optional uint32 slot = 4; + * optional uint32 slot = 3; * @return the slot */ public int getSlot() { @@ -65,7 +65,7 @@ public final class EquipRelicOuterClass { } /** - * optional uint32 slot = 4; + * optional uint32 slot = 3; * @param value the slot to set * @return this */ @@ -76,7 +76,7 @@ public final class EquipRelicOuterClass { } /** - * optional uint32 relic_unique_id = 15; + * optional uint32 relic_unique_id = 4; * @return whether the relicUniqueId field is set */ public boolean hasRelicUniqueId() { @@ -84,7 +84,7 @@ public final class EquipRelicOuterClass { } /** - * optional uint32 relic_unique_id = 15; + * optional uint32 relic_unique_id = 4; * @return this */ public EquipRelic clearRelicUniqueId() { @@ -94,7 +94,7 @@ public final class EquipRelicOuterClass { } /** - * optional uint32 relic_unique_id = 15; + * optional uint32 relic_unique_id = 4; * @return the relicUniqueId */ public int getRelicUniqueId() { @@ -102,7 +102,7 @@ public final class EquipRelicOuterClass { } /** - * optional uint32 relic_unique_id = 15; + * optional uint32 relic_unique_id = 4; * @param value the relicUniqueId to set * @return this */ @@ -177,11 +177,11 @@ public final class EquipRelicOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 32); + output.writeRawByte((byte) 24); output.writeUInt32NoTag(slot); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(relicUniqueId); } } @@ -205,16 +205,16 @@ public final class EquipRelicOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 32: { + case 24: { // slot slot = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 120) { + if (tag != 32) { break; } } - case 120: { + case 32: { // relicUniqueId relicUniqueId = input.readUInt32(); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/EquipmentOuterClass.java b/src/generated/main/emu/lunarcore/proto/EquipmentOuterClass.java index 6cf75a5..d1ed594 100644 --- a/src/generated/main/emu/lunarcore/proto/EquipmentOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/EquipmentOuterClass.java @@ -19,42 +19,42 @@ public final class EquipmentOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 rank = 1; - */ - private int rank; - - /** - * optional uint32 exp = 2; - */ - private int exp; - - /** - * optional uint32 base_avatar_id = 7; - */ - private int baseAvatarId; - - /** - * optional uint32 promotion = 8; - */ - private int promotion; - - /** - * optional uint32 unique_id = 12; - */ - private int uniqueId; - - /** - * optional uint32 tid = 14; + * optional uint32 tid = 3; */ private int tid; /** - * optional uint32 level = 15; + * optional uint32 rank = 4; + */ + private int rank; + + /** + * optional uint32 exp = 6; + */ + private int exp; + + /** + * optional uint32 unique_id = 11; + */ + private int uniqueId; + + /** + * optional uint32 promotion = 12; + */ + private int promotion; + + /** + * optional uint32 level = 14; */ private int level; /** - * optional bool is_protected = 3; + * optional uint32 base_avatar_id = 15; + */ + private int baseAvatarId; + + /** + * optional bool is_protected = 5; */ private boolean isProtected; @@ -69,210 +69,25 @@ public final class EquipmentOuterClass { } /** - * optional uint32 rank = 1; - * @return whether the rank field is set + * optional uint32 tid = 3; + * @return whether the tid field is set */ - public boolean hasRank() { + public boolean hasTid() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 rank = 1; - * @return this - */ - public Equipment clearRank() { - bitField0_ &= ~0x00000001; - rank = 0; - return this; - } - - /** - * optional uint32 rank = 1; - * @return the rank - */ - public int getRank() { - return rank; - } - - /** - * optional uint32 rank = 1; - * @param value the rank to set - * @return this - */ - public Equipment setRank(final int value) { - bitField0_ |= 0x00000001; - rank = value; - return this; - } - - /** - * optional uint32 exp = 2; - * @return whether the exp field is set - */ - public boolean hasExp() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 exp = 2; - * @return this - */ - public Equipment clearExp() { - bitField0_ &= ~0x00000002; - exp = 0; - return this; - } - - /** - * optional uint32 exp = 2; - * @return the exp - */ - public int getExp() { - return exp; - } - - /** - * optional uint32 exp = 2; - * @param value the exp to set - * @return this - */ - public Equipment setExp(final int value) { - bitField0_ |= 0x00000002; - exp = value; - return this; - } - - /** - * optional uint32 base_avatar_id = 7; - * @return whether the baseAvatarId field is set - */ - public boolean hasBaseAvatarId() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 base_avatar_id = 7; - * @return this - */ - public Equipment clearBaseAvatarId() { - bitField0_ &= ~0x00000004; - baseAvatarId = 0; - return this; - } - - /** - * optional uint32 base_avatar_id = 7; - * @return the baseAvatarId - */ - public int getBaseAvatarId() { - return baseAvatarId; - } - - /** - * optional uint32 base_avatar_id = 7; - * @param value the baseAvatarId to set - * @return this - */ - public Equipment setBaseAvatarId(final int value) { - bitField0_ |= 0x00000004; - baseAvatarId = value; - return this; - } - - /** - * optional uint32 promotion = 8; - * @return whether the promotion field is set - */ - public boolean hasPromotion() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional uint32 promotion = 8; - * @return this - */ - public Equipment clearPromotion() { - bitField0_ &= ~0x00000008; - promotion = 0; - return this; - } - - /** - * optional uint32 promotion = 8; - * @return the promotion - */ - public int getPromotion() { - return promotion; - } - - /** - * optional uint32 promotion = 8; - * @param value the promotion to set - * @return this - */ - public Equipment setPromotion(final int value) { - bitField0_ |= 0x00000008; - promotion = value; - return this; - } - - /** - * optional uint32 unique_id = 12; - * @return whether the uniqueId field is set - */ - public boolean hasUniqueId() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - * optional uint32 unique_id = 12; - * @return this - */ - public Equipment clearUniqueId() { - bitField0_ &= ~0x00000010; - uniqueId = 0; - return this; - } - - /** - * optional uint32 unique_id = 12; - * @return the uniqueId - */ - public int getUniqueId() { - return uniqueId; - } - - /** - * optional uint32 unique_id = 12; - * @param value the uniqueId to set - * @return this - */ - public Equipment setUniqueId(final int value) { - bitField0_ |= 0x00000010; - uniqueId = value; - return this; - } - - /** - * optional uint32 tid = 14; - * @return whether the tid field is set - */ - public boolean hasTid() { - return (bitField0_ & 0x00000020) != 0; - } - - /** - * optional uint32 tid = 14; + * optional uint32 tid = 3; * @return this */ public Equipment clearTid() { - bitField0_ &= ~0x00000020; + bitField0_ &= ~0x00000001; tid = 0; return this; } /** - * optional uint32 tid = 14; + * optional uint32 tid = 3; * @return the tid */ public int getTid() { @@ -280,36 +95,184 @@ public final class EquipmentOuterClass { } /** - * optional uint32 tid = 14; + * optional uint32 tid = 3; * @param value the tid to set * @return this */ public Equipment setTid(final int value) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000001; tid = value; return this; } /** - * optional uint32 level = 15; - * @return whether the level field is set + * optional uint32 rank = 4; + * @return whether the rank field is set */ - public boolean hasLevel() { - return (bitField0_ & 0x00000040) != 0; + public boolean hasRank() { + return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 level = 15; + * optional uint32 rank = 4; + * @return this + */ + public Equipment clearRank() { + bitField0_ &= ~0x00000002; + rank = 0; + return this; + } + + /** + * optional uint32 rank = 4; + * @return the rank + */ + public int getRank() { + return rank; + } + + /** + * optional uint32 rank = 4; + * @param value the rank to set + * @return this + */ + public Equipment setRank(final int value) { + bitField0_ |= 0x00000002; + rank = value; + return this; + } + + /** + * optional uint32 exp = 6; + * @return whether the exp field is set + */ + public boolean hasExp() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 exp = 6; + * @return this + */ + public Equipment clearExp() { + bitField0_ &= ~0x00000004; + exp = 0; + return this; + } + + /** + * optional uint32 exp = 6; + * @return the exp + */ + public int getExp() { + return exp; + } + + /** + * optional uint32 exp = 6; + * @param value the exp to set + * @return this + */ + public Equipment setExp(final int value) { + bitField0_ |= 0x00000004; + exp = value; + return this; + } + + /** + * optional uint32 unique_id = 11; + * @return whether the uniqueId field is set + */ + public boolean hasUniqueId() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 unique_id = 11; + * @return this + */ + public Equipment clearUniqueId() { + bitField0_ &= ~0x00000008; + uniqueId = 0; + return this; + } + + /** + * optional uint32 unique_id = 11; + * @return the uniqueId + */ + public int getUniqueId() { + return uniqueId; + } + + /** + * optional uint32 unique_id = 11; + * @param value the uniqueId to set + * @return this + */ + public Equipment setUniqueId(final int value) { + bitField0_ |= 0x00000008; + uniqueId = value; + return this; + } + + /** + * optional uint32 promotion = 12; + * @return whether the promotion field is set + */ + public boolean hasPromotion() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 promotion = 12; + * @return this + */ + public Equipment clearPromotion() { + bitField0_ &= ~0x00000010; + promotion = 0; + return this; + } + + /** + * optional uint32 promotion = 12; + * @return the promotion + */ + public int getPromotion() { + return promotion; + } + + /** + * optional uint32 promotion = 12; + * @param value the promotion to set + * @return this + */ + public Equipment setPromotion(final int value) { + bitField0_ |= 0x00000010; + promotion = value; + return this; + } + + /** + * optional uint32 level = 14; + * @return whether the level field is set + */ + public boolean hasLevel() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional uint32 level = 14; * @return this */ public Equipment clearLevel() { - bitField0_ &= ~0x00000040; + bitField0_ &= ~0x00000020; level = 0; return this; } /** - * optional uint32 level = 15; + * optional uint32 level = 14; * @return the level */ public int getLevel() { @@ -317,18 +280,55 @@ public final class EquipmentOuterClass { } /** - * optional uint32 level = 15; + * optional uint32 level = 14; * @param value the level to set * @return this */ public Equipment setLevel(final int value) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000020; level = value; return this; } /** - * optional bool is_protected = 3; + * optional uint32 base_avatar_id = 15; + * @return whether the baseAvatarId field is set + */ + public boolean hasBaseAvatarId() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional uint32 base_avatar_id = 15; + * @return this + */ + public Equipment clearBaseAvatarId() { + bitField0_ &= ~0x00000040; + baseAvatarId = 0; + return this; + } + + /** + * optional uint32 base_avatar_id = 15; + * @return the baseAvatarId + */ + public int getBaseAvatarId() { + return baseAvatarId; + } + + /** + * optional uint32 base_avatar_id = 15; + * @param value the baseAvatarId to set + * @return this + */ + public Equipment setBaseAvatarId(final int value) { + bitField0_ |= 0x00000040; + baseAvatarId = value; + return this; + } + + /** + * optional bool is_protected = 5; * @return whether the isProtected field is set */ public boolean hasIsProtected() { @@ -336,7 +336,7 @@ public final class EquipmentOuterClass { } /** - * optional bool is_protected = 3; + * optional bool is_protected = 5; * @return this */ public Equipment clearIsProtected() { @@ -346,7 +346,7 @@ public final class EquipmentOuterClass { } /** - * optional bool is_protected = 3; + * optional bool is_protected = 5; * @return the isProtected */ public boolean getIsProtected() { @@ -354,7 +354,7 @@ public final class EquipmentOuterClass { } /** - * optional bool is_protected = 3; + * optional bool is_protected = 5; * @param value the isProtected to set * @return this */ @@ -369,13 +369,13 @@ public final class EquipmentOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; + tid = other.tid; rank = other.rank; exp = other.exp; - baseAvatarId = other.baseAvatarId; - promotion = other.promotion; uniqueId = other.uniqueId; - tid = other.tid; + promotion = other.promotion; level = other.level; + baseAvatarId = other.baseAvatarId; isProtected = other.isProtected; } return this; @@ -387,27 +387,27 @@ public final class EquipmentOuterClass { return this; } cachedSize = -1; + if (other.hasTid()) { + setTid(other.tid); + } if (other.hasRank()) { setRank(other.rank); } if (other.hasExp()) { setExp(other.exp); } - if (other.hasBaseAvatarId()) { - setBaseAvatarId(other.baseAvatarId); + if (other.hasUniqueId()) { + setUniqueId(other.uniqueId); } 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.hasBaseAvatarId()) { + setBaseAvatarId(other.baseAvatarId); + } if (other.hasIsProtected()) { setIsProtected(other.isProtected); } @@ -421,13 +421,13 @@ public final class EquipmentOuterClass { } cachedSize = -1; bitField0_ = 0; + tid = 0; rank = 0; exp = 0; - baseAvatarId = 0; - promotion = 0; uniqueId = 0; - tid = 0; + promotion = 0; level = 0; + baseAvatarId = 0; isProtected = false; return this; } @@ -452,48 +452,48 @@ public final class EquipmentOuterClass { } Equipment other = (Equipment) o; return bitField0_ == other.bitField0_ + && (!hasTid() || tid == other.tid) && (!hasRank() || rank == other.rank) && (!hasExp() || exp == other.exp) - && (!hasBaseAvatarId() || baseAvatarId == other.baseAvatarId) - && (!hasPromotion() || promotion == other.promotion) && (!hasUniqueId() || uniqueId == other.uniqueId) - && (!hasTid() || tid == other.tid) + && (!hasPromotion() || promotion == other.promotion) && (!hasLevel() || level == other.level) + && (!hasBaseAvatarId() || baseAvatarId == other.baseAvatarId) && (!hasIsProtected() || isProtected == other.isProtected); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(rank); + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(tid); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(exp); + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(rank); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 56); - output.writeUInt32NoTag(baseAvatarId); + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(exp); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 64); - output.writeUInt32NoTag(promotion); + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(uniqueId); } if ((bitField0_ & 0x00000010) != 0) { output.writeRawByte((byte) 96); - output.writeUInt32NoTag(uniqueId); + output.writeUInt32NoTag(promotion); } if ((bitField0_ & 0x00000020) != 0) { output.writeRawByte((byte) 112); - output.writeUInt32NoTag(tid); + output.writeUInt32NoTag(level); } if ((bitField0_ & 0x00000040) != 0) { output.writeRawByte((byte) 120); - output.writeUInt32NoTag(level); + output.writeUInt32NoTag(baseAvatarId); } if ((bitField0_ & 0x00000080) != 0) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 40); output.writeBoolNoTag(isProtected); } } @@ -502,26 +502,26 @@ public final class EquipmentOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(rank); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(exp); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); - } - if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(promotion); - } - if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(uniqueId); - } - if ((bitField0_ & 0x00000020) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(tid); } - if ((bitField0_ & 0x00000040) != 0) { + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(rank); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(exp); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(uniqueId); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(promotion); + } + if ((bitField0_ & 0x00000020) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(level); } + if ((bitField0_ & 0x00000040) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); + } if ((bitField0_ & 0x00000080) != 0) { size += 2; } @@ -535,36 +535,36 @@ public final class EquipmentOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 8: { - // rank - rank = input.readUInt32(); + case 24: { + // tid + tid = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 16) { + if (tag != 32) { break; } } - case 16: { - // exp - exp = input.readUInt32(); + case 32: { + // rank + rank = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 56) { + if (tag != 48) { break; } } - case 56: { - // baseAvatarId - baseAvatarId = input.readUInt32(); + case 48: { + // exp + exp = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 64) { + if (tag != 88) { break; } } - case 64: { - // promotion - promotion = input.readUInt32(); + case 88: { + // uniqueId + uniqueId = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 96) { @@ -572,8 +572,8 @@ public final class EquipmentOuterClass { } } case 96: { - // uniqueId - uniqueId = input.readUInt32(); + // promotion + promotion = input.readUInt32(); bitField0_ |= 0x00000010; tag = input.readTag(); if (tag != 112) { @@ -581,8 +581,8 @@ public final class EquipmentOuterClass { } } case 112: { - // tid - tid = input.readUInt32(); + // level + level = input.readUInt32(); bitField0_ |= 0x00000020; tag = input.readTag(); if (tag != 120) { @@ -590,15 +590,15 @@ public final class EquipmentOuterClass { } } case 120: { - // level - level = input.readUInt32(); + // baseAvatarId + baseAvatarId = input.readUInt32(); bitField0_ |= 0x00000040; tag = input.readTag(); - if (tag != 24) { + if (tag != 40) { break; } } - case 24: { + case 40: { // isProtected isProtected = input.readBool(); bitField0_ |= 0x00000080; @@ -625,26 +625,26 @@ public final class EquipmentOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.rank, rank); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.exp, exp); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.baseAvatarId, baseAvatarId); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.promotion, promotion); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeUInt32(FieldNames.uniqueId, uniqueId); - } - if ((bitField0_ & 0x00000020) != 0) { output.writeUInt32(FieldNames.tid, tid); } - if ((bitField0_ & 0x00000040) != 0) { + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.rank, rank); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.exp, exp); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.uniqueId, uniqueId); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.promotion, promotion); + } + if ((bitField0_ & 0x00000020) != 0) { output.writeUInt32(FieldNames.level, level); } + if ((bitField0_ & 0x00000040) != 0) { + output.writeUInt32(FieldNames.baseAvatarId, baseAvatarId); + } if ((bitField0_ & 0x00000080) != 0) { output.writeBool(FieldNames.isProtected, isProtected); } @@ -658,11 +658,22 @@ public final class EquipmentOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { + case 114831: { + if (input.isAtField(FieldNames.tid)) { + if (!input.trySkipNullValue()) { + tid = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } case 3492908: { if (input.isAtField(FieldNames.rank)) { if (!input.trySkipNullValue()) { rank = input.readUInt32(); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } else { input.skipUnknownField(); @@ -673,18 +684,6 @@ public final class EquipmentOuterClass { if (input.isAtField(FieldNames.exp)) { if (!input.trySkipNullValue()) { exp = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case 118022725: - case -1756826157: { - if (input.isAtField(FieldNames.baseAvatarId)) { - if (!input.trySkipNullValue()) { - baseAvatarId = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -692,34 +691,23 @@ public final class EquipmentOuterClass { } break; } - case -799212381: { - if (input.isAtField(FieldNames.promotion)) { - if (!input.trySkipNullValue()) { - promotion = input.readUInt32(); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } case -294460212: case -538310583: { if (input.isAtField(FieldNames.uniqueId)) { if (!input.trySkipNullValue()) { uniqueId = input.readUInt32(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; } } else { input.skipUnknownField(); } break; } - case 114831: { - if (input.isAtField(FieldNames.tid)) { + case -799212381: { + if (input.isAtField(FieldNames.promotion)) { if (!input.trySkipNullValue()) { - tid = input.readUInt32(); - bitField0_ |= 0x00000020; + promotion = input.readUInt32(); + bitField0_ |= 0x00000010; } } else { input.skipUnknownField(); @@ -730,6 +718,18 @@ public final class EquipmentOuterClass { if (input.isAtField(FieldNames.level)) { if (!input.trySkipNullValue()) { level = input.readUInt32(); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case 118022725: + case -1756826157: { + if (input.isAtField(FieldNames.baseAvatarId)) { + if (!input.trySkipNullValue()) { + baseAvatarId = input.readUInt32(); bitField0_ |= 0x00000040; } } else { @@ -801,20 +801,20 @@ public final class EquipmentOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { + static final FieldName tid = FieldName.forField("tid"); + 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 uniqueId = FieldName.forField("uniqueId", "unique_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 baseAvatarId = FieldName.forField("baseAvatarId", "base_avatar_id"); + 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 4c43fb2..09cc04d 100644 --- a/src/generated/main/emu/lunarcore/proto/ExchangeGachaCeilingCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ExchangeGachaCeilingCsReqOuterClass.java @@ -19,12 +19,12 @@ public final class ExchangeGachaCeilingCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 avatar_id = 6; + * optional uint32 avatar_id = 1; */ private int avatarId; /** - * optional uint32 gacha_type = 8; + * optional uint32 gacha_type = 5; */ private int gachaType; @@ -39,7 +39,7 @@ public final class ExchangeGachaCeilingCsReqOuterClass { } /** - * optional uint32 avatar_id = 6; + * optional uint32 avatar_id = 1; * @return whether the avatarId field is set */ public boolean hasAvatarId() { @@ -47,7 +47,7 @@ public final class ExchangeGachaCeilingCsReqOuterClass { } /** - * optional uint32 avatar_id = 6; + * optional uint32 avatar_id = 1; * @return this */ public ExchangeGachaCeilingCsReq clearAvatarId() { @@ -57,7 +57,7 @@ public final class ExchangeGachaCeilingCsReqOuterClass { } /** - * optional uint32 avatar_id = 6; + * optional uint32 avatar_id = 1; * @return the avatarId */ public int getAvatarId() { @@ -65,7 +65,7 @@ public final class ExchangeGachaCeilingCsReqOuterClass { } /** - * optional uint32 avatar_id = 6; + * optional uint32 avatar_id = 1; * @param value the avatarId to set * @return this */ @@ -76,7 +76,7 @@ public final class ExchangeGachaCeilingCsReqOuterClass { } /** - * optional uint32 gacha_type = 8; + * optional uint32 gacha_type = 5; * @return whether the gachaType field is set */ public boolean hasGachaType() { @@ -84,7 +84,7 @@ public final class ExchangeGachaCeilingCsReqOuterClass { } /** - * optional uint32 gacha_type = 8; + * optional uint32 gacha_type = 5; * @return this */ public ExchangeGachaCeilingCsReq clearGachaType() { @@ -94,7 +94,7 @@ public final class ExchangeGachaCeilingCsReqOuterClass { } /** - * optional uint32 gacha_type = 8; + * optional uint32 gacha_type = 5; * @return the gachaType */ public int getGachaType() { @@ -102,7 +102,7 @@ public final class ExchangeGachaCeilingCsReqOuterClass { } /** - * optional uint32 gacha_type = 8; + * optional uint32 gacha_type = 5; * @param value the gachaType to set * @return this */ @@ -177,11 +177,11 @@ public final class ExchangeGachaCeilingCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 8); output.writeUInt32NoTag(avatarId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 40); output.writeUInt32NoTag(gachaType); } } @@ -205,16 +205,16 @@ public final class ExchangeGachaCeilingCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 48: { + case 8: { // avatarId avatarId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 64) { + if (tag != 40) { break; } } - case 64: { + case 40: { // gachaType gachaType = input.readUInt32(); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/ExchangeGachaCeilingScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/ExchangeGachaCeilingScRspOuterClass.java index f77eb6f..deddc3f 100644 --- a/src/generated/main/emu/lunarcore/proto/ExchangeGachaCeilingScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ExchangeGachaCeilingScRspOuterClass.java @@ -19,30 +19,30 @@ public final class ExchangeGachaCeilingScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 avatar_id = 6; - */ - private int avatarId; - - /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 3; */ private int retcode; /** - * optional uint32 gacha_type = 14; + * optional uint32 avatar_id = 4; + */ + private int avatarId; + + /** + * optional uint32 gacha_type = 10; */ private int gachaType; + /** + * optional .ItemList transfer_item_list = 2; + */ + private final ItemListOuterClass.ItemList transferItemList = ItemListOuterClass.ItemList.newInstance(); + /** * optional .GachaCeiling gacha_ceiling = 5; */ private final GachaCeilingOuterClass.GachaCeiling gachaCeiling = GachaCeilingOuterClass.GachaCeiling.newInstance(); - /** - * optional .ItemList transfer_item_list = 7; - */ - private final ItemListOuterClass.ItemList transferItemList = ItemListOuterClass.ItemList.newInstance(); - private ExchangeGachaCeilingScRsp() { } @@ -54,62 +54,25 @@ public final class ExchangeGachaCeilingScRspOuterClass { } /** - * optional uint32 avatar_id = 6; - * @return whether the avatarId field is set + * optional uint32 retcode = 3; + * @return whether the retcode field is set */ - public boolean hasAvatarId() { + public boolean hasRetcode() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 avatar_id = 6; - * @return this - */ - public ExchangeGachaCeilingScRsp clearAvatarId() { - bitField0_ &= ~0x00000001; - avatarId = 0; - return this; - } - - /** - * optional uint32 avatar_id = 6; - * @return the avatarId - */ - public int getAvatarId() { - return avatarId; - } - - /** - * optional uint32 avatar_id = 6; - * @param value the avatarId to set - * @return this - */ - public ExchangeGachaCeilingScRsp setAvatarId(final int value) { - bitField0_ |= 0x00000001; - avatarId = value; - return this; - } - - /** - * optional uint32 retcode = 12; - * @return whether the retcode field is set - */ - public boolean hasRetcode() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 3; * @return this */ public ExchangeGachaCeilingScRsp clearRetcode() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; retcode = 0; return this; } /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 3; * @return the retcode */ public int getRetcode() { @@ -117,18 +80,55 @@ public final class ExchangeGachaCeilingScRspOuterClass { } /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 3; * @param value the retcode to set * @return this */ public ExchangeGachaCeilingScRsp setRetcode(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; retcode = value; return this; } /** - * optional uint32 gacha_type = 14; + * optional uint32 avatar_id = 4; + * @return whether the avatarId field is set + */ + public boolean hasAvatarId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 avatar_id = 4; + * @return this + */ + public ExchangeGachaCeilingScRsp clearAvatarId() { + bitField0_ &= ~0x00000002; + avatarId = 0; + return this; + } + + /** + * optional uint32 avatar_id = 4; + * @return the avatarId + */ + public int getAvatarId() { + return avatarId; + } + + /** + * optional uint32 avatar_id = 4; + * @param value the avatarId to set + * @return this + */ + public ExchangeGachaCeilingScRsp setAvatarId(final int value) { + bitField0_ |= 0x00000002; + avatarId = value; + return this; + } + + /** + * optional uint32 gacha_type = 10; * @return whether the gachaType field is set */ public boolean hasGachaType() { @@ -136,7 +136,7 @@ public final class ExchangeGachaCeilingScRspOuterClass { } /** - * optional uint32 gacha_type = 14; + * optional uint32 gacha_type = 10; * @return this */ public ExchangeGachaCeilingScRsp clearGachaType() { @@ -146,7 +146,7 @@ public final class ExchangeGachaCeilingScRspOuterClass { } /** - * optional uint32 gacha_type = 14; + * optional uint32 gacha_type = 10; * @return the gachaType */ public int getGachaType() { @@ -154,7 +154,7 @@ public final class ExchangeGachaCeilingScRspOuterClass { } /** - * optional uint32 gacha_type = 14; + * optional uint32 gacha_type = 10; * @param value the gachaType to set * @return this */ @@ -164,12 +164,69 @@ public final class ExchangeGachaCeilingScRspOuterClass { return this; } + /** + * optional .ItemList transfer_item_list = 2; + * @return whether the transferItemList field is set + */ + public boolean hasTransferItemList() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .ItemList transfer_item_list = 2; + * @return this + */ + public ExchangeGachaCeilingScRsp clearTransferItemList() { + bitField0_ &= ~0x00000008; + transferItemList.clear(); + return this; + } + + /** + * optional .ItemList transfer_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. + * + * Use {@link #getMutableTransferItemList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ItemListOuterClass.ItemList getTransferItemList() { + return transferItemList; + } + + /** + * optional .ItemList transfer_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 + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public ItemListOuterClass.ItemList getMutableTransferItemList() { + bitField0_ |= 0x00000008; + return transferItemList; + } + + /** + * optional .ItemList transfer_item_list = 2; + * @param value the transferItemList to set + * @return this + */ + public ExchangeGachaCeilingScRsp setTransferItemList(final ItemListOuterClass.ItemList value) { + bitField0_ |= 0x00000008; + transferItemList.copyFrom(value); + return this; + } + /** * optional .GachaCeiling gacha_ceiling = 5; * @return whether the gachaCeiling field is set */ public boolean hasGachaCeiling() { - return (bitField0_ & 0x00000008) != 0; + return (bitField0_ & 0x00000010) != 0; } /** @@ -177,7 +234,7 @@ public final class ExchangeGachaCeilingScRspOuterClass { * @return this */ public ExchangeGachaCeilingScRsp clearGachaCeiling() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000010; gachaCeiling.clear(); return this; } @@ -206,7 +263,7 @@ public final class ExchangeGachaCeilingScRspOuterClass { * @return internal storage object for modifications */ public GachaCeilingOuterClass.GachaCeiling getMutableGachaCeiling() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; return gachaCeiling; } @@ -217,78 +274,21 @@ public final class ExchangeGachaCeilingScRspOuterClass { */ public ExchangeGachaCeilingScRsp setGachaCeiling( final GachaCeilingOuterClass.GachaCeiling value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; gachaCeiling.copyFrom(value); return this; } - /** - * optional .ItemList transfer_item_list = 7; - * @return whether the transferItemList field is set - */ - public boolean hasTransferItemList() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - * optional .ItemList transfer_item_list = 7; - * @return this - */ - public ExchangeGachaCeilingScRsp clearTransferItemList() { - bitField0_ &= ~0x00000010; - transferItemList.clear(); - return this; - } - - /** - * 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 #getMutableTransferItemList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public ItemListOuterClass.ItemList getTransferItemList() { - return transferItemList; - } - - /** - * 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 - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public ItemListOuterClass.ItemList getMutableTransferItemList() { - bitField0_ |= 0x00000010; - return transferItemList; - } - - /** - * optional .ItemList transfer_item_list = 7; - * @param value the transferItemList to set - * @return this - */ - public ExchangeGachaCeilingScRsp setTransferItemList(final ItemListOuterClass.ItemList value) { - bitField0_ |= 0x00000010; - transferItemList.copyFrom(value); - return this; - } - @Override public ExchangeGachaCeilingScRsp copyFrom(final ExchangeGachaCeilingScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - avatarId = other.avatarId; retcode = other.retcode; + avatarId = other.avatarId; gachaType = other.gachaType; - gachaCeiling.copyFrom(other.gachaCeiling); transferItemList.copyFrom(other.transferItemList); + gachaCeiling.copyFrom(other.gachaCeiling); } return this; } @@ -299,21 +299,21 @@ public final class ExchangeGachaCeilingScRspOuterClass { return this; } cachedSize = -1; - if (other.hasAvatarId()) { - setAvatarId(other.avatarId); - } if (other.hasRetcode()) { setRetcode(other.retcode); } + if (other.hasAvatarId()) { + setAvatarId(other.avatarId); + } if (other.hasGachaType()) { setGachaType(other.gachaType); } - if (other.hasGachaCeiling()) { - getMutableGachaCeiling().mergeFrom(other.gachaCeiling); - } if (other.hasTransferItemList()) { getMutableTransferItemList().mergeFrom(other.transferItemList); } + if (other.hasGachaCeiling()) { + getMutableGachaCeiling().mergeFrom(other.gachaCeiling); + } return this; } @@ -324,11 +324,11 @@ public final class ExchangeGachaCeilingScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - avatarId = 0; retcode = 0; + avatarId = 0; gachaType = 0; - gachaCeiling.clear(); transferItemList.clear(); + gachaCeiling.clear(); return this; } @@ -339,8 +339,8 @@ public final class ExchangeGachaCeilingScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - gachaCeiling.clearQuick(); transferItemList.clearQuick(); + gachaCeiling.clearQuick(); return this; } @@ -354,34 +354,34 @@ public final class ExchangeGachaCeilingScRspOuterClass { } ExchangeGachaCeilingScRsp other = (ExchangeGachaCeilingScRsp) o; return bitField0_ == other.bitField0_ - && (!hasAvatarId() || avatarId == other.avatarId) && (!hasRetcode() || retcode == other.retcode) + && (!hasAvatarId() || avatarId == other.avatarId) && (!hasGachaType() || gachaType == other.gachaType) - && (!hasGachaCeiling() || gachaCeiling.equals(other.gachaCeiling)) - && (!hasTransferItemList() || transferItemList.equals(other.transferItemList)); + && (!hasTransferItemList() || transferItemList.equals(other.transferItemList)) + && (!hasGachaCeiling() || gachaCeiling.equals(other.gachaCeiling)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 48); - output.writeUInt32NoTag(avatarId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 24); output.writeUInt32NoTag(retcode); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(avatarId); + } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 80); output.writeUInt32NoTag(gachaType); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 42); - output.writeMessageNoTag(gachaCeiling); + output.writeRawByte((byte) 18); + output.writeMessageNoTag(transferItemList); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 58); - output.writeMessageNoTag(transferItemList); + output.writeRawByte((byte) 42); + output.writeMessageNoTag(gachaCeiling); } } @@ -389,19 +389,19 @@ public final class ExchangeGachaCeilingScRspOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(avatarId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(avatarId); } if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(gachaType); } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(gachaCeiling); + size += 1 + ProtoSink.computeMessageSizeNoTag(transferItemList); } if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(transferItemList); + size += 1 + ProtoSink.computeMessageSizeNoTag(gachaCeiling); } return size; } @@ -413,29 +413,38 @@ public final class ExchangeGachaCeilingScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 48: { - // avatarId - avatarId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 96) { - break; - } - } - case 96: { + case 24: { // retcode retcode = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 112) { + if (tag != 32) { break; } } - case 112: { + case 32: { + // avatarId + avatarId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { // gachaType gachaType = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // transferItemList + input.readMessage(transferItemList); + bitField0_ |= 0x00000008; + tag = input.readTag(); if (tag != 42) { break; } @@ -443,15 +452,6 @@ public final class ExchangeGachaCeilingScRspOuterClass { case 42: { // gachaCeiling input.readMessage(gachaCeiling); - bitField0_ |= 0x00000008; - tag = input.readTag(); - if (tag != 58) { - break; - } - } - case 58: { - // transferItemList - input.readMessage(transferItemList); bitField0_ |= 0x00000010; tag = input.readTag(); if (tag != 0) { @@ -476,19 +476,19 @@ public final class ExchangeGachaCeilingScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.avatarId, avatarId); + output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.avatarId, avatarId); } if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.gachaType, gachaType); } if ((bitField0_ & 0x00000008) != 0) { - output.writeMessage(FieldNames.gachaCeiling, gachaCeiling); + output.writeMessage(FieldNames.transferItemList, transferItemList); } if ((bitField0_ & 0x00000010) != 0) { - output.writeMessage(FieldNames.transferItemList, transferItemList); + output.writeMessage(FieldNames.gachaCeiling, gachaCeiling); } output.endObject(); } @@ -500,11 +500,10 @@ public final class ExchangeGachaCeilingScRspOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1787287636: - case -428636735: { - if (input.isAtField(FieldNames.avatarId)) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { - avatarId = input.readUInt32(); + retcode = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -512,10 +511,11 @@ public final class ExchangeGachaCeilingScRspOuterClass { } break; } - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { + case 1787287636: + case -428636735: { + if (input.isAtField(FieldNames.avatarId)) { if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); + avatarId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -535,11 +535,11 @@ public final class ExchangeGachaCeilingScRspOuterClass { } 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_ |= 0x00000008; } } else { @@ -547,11 +547,11 @@ public final class ExchangeGachaCeilingScRspOuterClass { } 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_ |= 0x00000010; } } else { @@ -612,15 +612,15 @@ public final class ExchangeGachaCeilingScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName avatarId = FieldName.forField("avatarId", "avatar_id"); - static final FieldName retcode = FieldName.forField("retcode"); + static final FieldName avatarId = FieldName.forField("avatarId", "avatar_id"); + static final FieldName gachaType = FieldName.forField("gachaType", "gacha_type"); - static final FieldName gachaCeiling = FieldName.forField("gachaCeiling", "gacha_ceiling"); - static final FieldName transferItemList = FieldName.forField("transferItemList", "transfer_item_list"); + + static final FieldName gachaCeiling = FieldName.forField("gachaCeiling", "gacha_ceiling"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/ExchangeHcoinCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/ExchangeHcoinCsReqOuterClass.java index 783af0e..328c2db 100644 --- a/src/generated/main/emu/lunarcore/proto/ExchangeHcoinCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ExchangeHcoinCsReqOuterClass.java @@ -19,7 +19,7 @@ public final class ExchangeHcoinCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 num = 11; + * optional uint32 num = 10; */ private int num; @@ -34,7 +34,7 @@ public final class ExchangeHcoinCsReqOuterClass { } /** - * optional uint32 num = 11; + * optional uint32 num = 10; * @return whether the num field is set */ public boolean hasNum() { @@ -42,7 +42,7 @@ public final class ExchangeHcoinCsReqOuterClass { } /** - * optional uint32 num = 11; + * optional uint32 num = 10; * @return this */ public ExchangeHcoinCsReq clearNum() { @@ -52,7 +52,7 @@ public final class ExchangeHcoinCsReqOuterClass { } /** - * optional uint32 num = 11; + * optional uint32 num = 10; * @return the num */ public int getNum() { @@ -60,7 +60,7 @@ public final class ExchangeHcoinCsReqOuterClass { } /** - * optional uint32 num = 11; + * optional uint32 num = 10; * @param value the num to set * @return this */ @@ -129,7 +129,7 @@ public final class ExchangeHcoinCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 80); output.writeUInt32NoTag(num); } } @@ -150,7 +150,7 @@ public final class ExchangeHcoinCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 88: { + case 80: { // 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 a95b3a2..2d00911 100644 --- a/src/generated/main/emu/lunarcore/proto/ExchangeHcoinScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ExchangeHcoinScRspOuterClass.java @@ -19,15 +19,15 @@ public final class ExchangeHcoinScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 7; - */ - private int retcode; - - /** - * optional uint32 num = 9; + * optional uint32 num = 1; */ private int num; + /** + * optional uint32 retcode = 14; + */ + private int retcode; + private ExchangeHcoinScRsp() { } @@ -39,62 +39,25 @@ public final class ExchangeHcoinScRspOuterClass { } /** - * optional uint32 retcode = 7; - * @return whether the retcode field is set + * optional uint32 num = 1; + * @return whether the num field is set */ - public boolean hasRetcode() { + public boolean hasNum() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 retcode = 7; - * @return this - */ - public ExchangeHcoinScRsp clearRetcode() { - bitField0_ &= ~0x00000001; - retcode = 0; - return this; - } - - /** - * optional uint32 retcode = 7; - * @return the retcode - */ - public int getRetcode() { - return retcode; - } - - /** - * optional uint32 retcode = 7; - * @param value the retcode to set - * @return this - */ - public ExchangeHcoinScRsp setRetcode(final int value) { - bitField0_ |= 0x00000001; - retcode = value; - return this; - } - - /** - * optional uint32 num = 9; - * @return whether the num field is set - */ - public boolean hasNum() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 num = 9; + * optional uint32 num = 1; * @return this */ public ExchangeHcoinScRsp clearNum() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; num = 0; return this; } /** - * optional uint32 num = 9; + * optional uint32 num = 1; * @return the num */ public int getNum() { @@ -102,23 +65,60 @@ public final class ExchangeHcoinScRspOuterClass { } /** - * optional uint32 num = 9; + * optional uint32 num = 1; * @param value the num to set * @return this */ public ExchangeHcoinScRsp setNum(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; num = value; return this; } + /** + * optional uint32 retcode = 14; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 retcode = 14; + * @return this + */ + public ExchangeHcoinScRsp clearRetcode() { + bitField0_ &= ~0x00000002; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 14; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 14; + * @param value the retcode to set + * @return this + */ + public ExchangeHcoinScRsp setRetcode(final int value) { + bitField0_ |= 0x00000002; + retcode = value; + return this; + } + @Override public ExchangeHcoinScRsp copyFrom(final ExchangeHcoinScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - retcode = other.retcode; num = other.num; + retcode = other.retcode; } return this; } @@ -129,12 +129,12 @@ public final class ExchangeHcoinScRspOuterClass { return this; } cachedSize = -1; - if (other.hasRetcode()) { - setRetcode(other.retcode); - } if (other.hasNum()) { setNum(other.num); } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } return this; } @@ -145,8 +145,8 @@ public final class ExchangeHcoinScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - retcode = 0; num = 0; + retcode = 0; return this; } @@ -170,19 +170,19 @@ public final class ExchangeHcoinScRspOuterClass { } ExchangeHcoinScRsp other = (ExchangeHcoinScRsp) o; return bitField0_ == other.bitField0_ - && (!hasRetcode() || retcode == other.retcode) - && (!hasNum() || num == other.num); + && (!hasNum() || num == other.num) + && (!hasRetcode() || retcode == other.retcode); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 56); - output.writeUInt32NoTag(retcode); + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(num); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 72); - output.writeUInt32NoTag(num); + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(retcode); } } @@ -190,10 +190,10 @@ public final class ExchangeHcoinScRspOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(num); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(num); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } return size; } @@ -205,18 +205,18 @@ public final class ExchangeHcoinScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 56: { - // retcode - retcode = input.readUInt32(); + case 8: { + // num + num = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 72) { + if (tag != 112) { break; } } - case 72: { - // num - num = input.readUInt32(); + case 112: { + // retcode + retcode = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { @@ -241,10 +241,10 @@ public final class ExchangeHcoinScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.num, num); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.num, num); + output.writeUInt32(FieldNames.retcode, retcode); } output.endObject(); } @@ -256,10 +256,10 @@ public final class ExchangeHcoinScRspOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { + case 109446: { + if (input.isAtField(FieldNames.num)) { if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); + num = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -267,10 +267,10 @@ public final class ExchangeHcoinScRspOuterClass { } break; } - case 109446: { - if (input.isAtField(FieldNames.num)) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { - num = input.readUInt32(); + retcode = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -331,9 +331,9 @@ public final class ExchangeHcoinScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName retcode = FieldName.forField("retcode"); - static final FieldName num = FieldName.forField("num"); + + static final FieldName retcode = FieldName.forField("retcode"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/ExpUpEquipmentCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/ExpUpEquipmentCsReqOuterClass.java index 4978ca0..df1d0d1 100644 --- a/src/generated/main/emu/lunarcore/proto/ExpUpEquipmentCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ExpUpEquipmentCsReqOuterClass.java @@ -19,12 +19,12 @@ public final class ExpUpEquipmentCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 equipment_unique_id = 10; + * optional uint32 equipment_unique_id = 2; */ private int equipmentUniqueId; /** - * optional .ItemCostList item_cost_list = 3; + * optional .ItemCostList item_cost_list = 1; */ private final ItemCostListOuterClass.ItemCostList itemCostList = ItemCostListOuterClass.ItemCostList.newInstance(); @@ -39,7 +39,7 @@ public final class ExpUpEquipmentCsReqOuterClass { } /** - * optional uint32 equipment_unique_id = 10; + * optional uint32 equipment_unique_id = 2; * @return whether the equipmentUniqueId field is set */ public boolean hasEquipmentUniqueId() { @@ -47,7 +47,7 @@ public final class ExpUpEquipmentCsReqOuterClass { } /** - * optional uint32 equipment_unique_id = 10; + * optional uint32 equipment_unique_id = 2; * @return this */ public ExpUpEquipmentCsReq clearEquipmentUniqueId() { @@ -57,7 +57,7 @@ public final class ExpUpEquipmentCsReqOuterClass { } /** - * optional uint32 equipment_unique_id = 10; + * optional uint32 equipment_unique_id = 2; * @return the equipmentUniqueId */ public int getEquipmentUniqueId() { @@ -65,7 +65,7 @@ public final class ExpUpEquipmentCsReqOuterClass { } /** - * optional uint32 equipment_unique_id = 10; + * optional uint32 equipment_unique_id = 2; * @param value the equipmentUniqueId to set * @return this */ @@ -76,7 +76,7 @@ public final class ExpUpEquipmentCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 3; + * optional .ItemCostList item_cost_list = 1; * @return whether the itemCostList field is set */ public boolean hasItemCostList() { @@ -84,7 +84,7 @@ public final class ExpUpEquipmentCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 3; + * optional .ItemCostList item_cost_list = 1; * @return this */ public ExpUpEquipmentCsReq clearItemCostList() { @@ -94,7 +94,7 @@ public final class ExpUpEquipmentCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 3; + * optional .ItemCostList item_cost_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. @@ -108,7 +108,7 @@ public final class ExpUpEquipmentCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 3; + * optional .ItemCostList item_cost_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 @@ -122,7 +122,7 @@ public final class ExpUpEquipmentCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 3; + * optional .ItemCostList item_cost_list = 1; * @param value the itemCostList to set * @return this */ @@ -198,11 +198,11 @@ public final class ExpUpEquipmentCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 16); output.writeUInt32NoTag(equipmentUniqueId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 26); + output.writeRawByte((byte) 10); output.writeMessageNoTag(itemCostList); } } @@ -226,16 +226,16 @@ public final class ExpUpEquipmentCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 80: { + case 16: { // equipmentUniqueId equipmentUniqueId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 26) { + if (tag != 10) { break; } } - case 26: { + case 10: { // 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 7b4881d..667f9d9 100644 --- a/src/generated/main/emu/lunarcore/proto/ExpUpEquipmentScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ExpUpEquipmentScRspOuterClass.java @@ -20,12 +20,12 @@ public final class ExpUpEquipmentScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 8; */ private int retcode; /** - * repeated .PileItem return_item_list = 6; + * repeated .PileItem return_item_list = 12; */ private final RepeatedMessage returnItemList = RepeatedMessage.newEmptyInstance(PileItemOuterClass.PileItem.getFactory()); @@ -40,7 +40,7 @@ public final class ExpUpEquipmentScRspOuterClass { } /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 8; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -48,7 +48,7 @@ public final class ExpUpEquipmentScRspOuterClass { } /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 8; * @return this */ public ExpUpEquipmentScRsp clearRetcode() { @@ -58,7 +58,7 @@ public final class ExpUpEquipmentScRspOuterClass { } /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 8; * @return the retcode */ public int getRetcode() { @@ -66,7 +66,7 @@ public final class ExpUpEquipmentScRspOuterClass { } /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 8; * @param value the retcode to set * @return this */ @@ -77,7 +77,7 @@ public final class ExpUpEquipmentScRspOuterClass { } /** - * repeated .PileItem return_item_list = 6; + * repeated .PileItem return_item_list = 12; * @return whether the returnItemList field is set */ public boolean hasReturnItemList() { @@ -85,7 +85,7 @@ public final class ExpUpEquipmentScRspOuterClass { } /** - * repeated .PileItem return_item_list = 6; + * repeated .PileItem return_item_list = 12; * @return this */ public ExpUpEquipmentScRsp clearReturnItemList() { @@ -95,7 +95,7 @@ public final class ExpUpEquipmentScRspOuterClass { } /** - * repeated .PileItem return_item_list = 6; + * repeated .PileItem return_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. @@ -109,7 +109,7 @@ public final class ExpUpEquipmentScRspOuterClass { } /** - * repeated .PileItem return_item_list = 6; + * repeated .PileItem return_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 @@ -123,7 +123,7 @@ public final class ExpUpEquipmentScRspOuterClass { } /** - * repeated .PileItem return_item_list = 6; + * repeated .PileItem return_item_list = 12; * @param value the returnItemList to add * @return this */ @@ -134,7 +134,7 @@ public final class ExpUpEquipmentScRspOuterClass { } /** - * repeated .PileItem return_item_list = 6; + * repeated .PileItem return_item_list = 12; * @param values the returnItemList to add * @return this */ @@ -210,12 +210,12 @@ public final class ExpUpEquipmentScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 64); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < returnItemList.length(); i++) { - output.writeRawByte((byte) 50); + output.writeRawByte((byte) 98); output.writeMessageNoTag(returnItemList.get(i)); } } @@ -240,16 +240,16 @@ public final class ExpUpEquipmentScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 80: { + case 64: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 50) { + if (tag != 98) { break; } } - case 50: { + case 98: { // 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 7dcc7db..1297d1e 100644 --- a/src/generated/main/emu/lunarcore/proto/ExpUpRelicCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ExpUpRelicCsReqOuterClass.java @@ -19,12 +19,12 @@ public final class ExpUpRelicCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 relic_unique_id = 8; + * optional uint32 relic_unique_id = 7; */ private int relicUniqueId; /** - * optional .ItemCostList item_cost_list = 13; + * optional .ItemCostList item_cost_list = 11; */ private final ItemCostListOuterClass.ItemCostList itemCostList = ItemCostListOuterClass.ItemCostList.newInstance(); @@ -39,7 +39,7 @@ public final class ExpUpRelicCsReqOuterClass { } /** - * optional uint32 relic_unique_id = 8; + * optional uint32 relic_unique_id = 7; * @return whether the relicUniqueId field is set */ public boolean hasRelicUniqueId() { @@ -47,7 +47,7 @@ public final class ExpUpRelicCsReqOuterClass { } /** - * optional uint32 relic_unique_id = 8; + * optional uint32 relic_unique_id = 7; * @return this */ public ExpUpRelicCsReq clearRelicUniqueId() { @@ -57,7 +57,7 @@ public final class ExpUpRelicCsReqOuterClass { } /** - * optional uint32 relic_unique_id = 8; + * optional uint32 relic_unique_id = 7; * @return the relicUniqueId */ public int getRelicUniqueId() { @@ -65,7 +65,7 @@ public final class ExpUpRelicCsReqOuterClass { } /** - * optional uint32 relic_unique_id = 8; + * optional uint32 relic_unique_id = 7; * @param value the relicUniqueId to set * @return this */ @@ -76,7 +76,7 @@ public final class ExpUpRelicCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 13; + * optional .ItemCostList item_cost_list = 11; * @return whether the itemCostList field is set */ public boolean hasItemCostList() { @@ -84,7 +84,7 @@ public final class ExpUpRelicCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 13; + * optional .ItemCostList item_cost_list = 11; * @return this */ public ExpUpRelicCsReq clearItemCostList() { @@ -94,7 +94,7 @@ public final class ExpUpRelicCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 13; + * optional .ItemCostList item_cost_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. @@ -108,7 +108,7 @@ public final class ExpUpRelicCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 13; + * optional .ItemCostList item_cost_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 @@ -122,7 +122,7 @@ public final class ExpUpRelicCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 13; + * optional .ItemCostList item_cost_list = 11; * @param value the itemCostList to set * @return this */ @@ -198,11 +198,11 @@ public final class ExpUpRelicCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 56); output.writeUInt32NoTag(relicUniqueId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 106); + output.writeRawByte((byte) 90); output.writeMessageNoTag(itemCostList); } } @@ -226,16 +226,16 @@ public final class ExpUpRelicCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 64: { + case 56: { // relicUniqueId relicUniqueId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 106) { + if (tag != 90) { break; } } - case 106: { + case 90: { // 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 1127dd7..a7c7e45 100644 --- a/src/generated/main/emu/lunarcore/proto/ExpUpRelicScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ExpUpRelicScRspOuterClass.java @@ -20,12 +20,12 @@ public final class ExpUpRelicScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 1; */ private int retcode; /** - * repeated .PileItem return_item_list = 6; + * repeated .PileItem return_item_list = 14; */ private final RepeatedMessage returnItemList = RepeatedMessage.newEmptyInstance(PileItemOuterClass.PileItem.getFactory()); @@ -40,7 +40,7 @@ public final class ExpUpRelicScRspOuterClass { } /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 1; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -48,7 +48,7 @@ public final class ExpUpRelicScRspOuterClass { } /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 1; * @return this */ public ExpUpRelicScRsp clearRetcode() { @@ -58,7 +58,7 @@ public final class ExpUpRelicScRspOuterClass { } /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 1; * @return the retcode */ public int getRetcode() { @@ -66,7 +66,7 @@ public final class ExpUpRelicScRspOuterClass { } /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 1; * @param value the retcode to set * @return this */ @@ -77,7 +77,7 @@ public final class ExpUpRelicScRspOuterClass { } /** - * repeated .PileItem return_item_list = 6; + * repeated .PileItem return_item_list = 14; * @return whether the returnItemList field is set */ public boolean hasReturnItemList() { @@ -85,7 +85,7 @@ public final class ExpUpRelicScRspOuterClass { } /** - * repeated .PileItem return_item_list = 6; + * repeated .PileItem return_item_list = 14; * @return this */ public ExpUpRelicScRsp clearReturnItemList() { @@ -95,7 +95,7 @@ public final class ExpUpRelicScRspOuterClass { } /** - * repeated .PileItem return_item_list = 6; + * repeated .PileItem return_item_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. @@ -109,7 +109,7 @@ public final class ExpUpRelicScRspOuterClass { } /** - * repeated .PileItem return_item_list = 6; + * repeated .PileItem return_item_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 @@ -123,7 +123,7 @@ public final class ExpUpRelicScRspOuterClass { } /** - * repeated .PileItem return_item_list = 6; + * repeated .PileItem return_item_list = 14; * @param value the returnItemList to add * @return this */ @@ -134,7 +134,7 @@ public final class ExpUpRelicScRspOuterClass { } /** - * repeated .PileItem return_item_list = 6; + * repeated .PileItem return_item_list = 14; * @param values the returnItemList to add * @return this */ @@ -210,12 +210,12 @@ public final class ExpUpRelicScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 8); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < returnItemList.length(); i++) { - output.writeRawByte((byte) 50); + output.writeRawByte((byte) 114); output.writeMessageNoTag(returnItemList.get(i)); } } @@ -240,16 +240,16 @@ public final class ExpUpRelicScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 80: { + case 8: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 50) { + if (tag != 114) { break; } } - case 50: { + case 114: { // returnItemList tag = input.readRepeatedMessage(returnItemList, tag); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/FriendApplyInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/FriendApplyInfoOuterClass.java index 88e9aa9..671f160 100644 --- a/src/generated/main/emu/lunarcore/proto/FriendApplyInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/FriendApplyInfoOuterClass.java @@ -19,7 +19,7 @@ public final class FriendApplyInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional .SimpleInfo simple_info = 4; + * optional .SimpleInfo simple_info = 14; */ private final SimpleInfoOuterClass.SimpleInfo simpleInfo = SimpleInfoOuterClass.SimpleInfo.newInstance(); @@ -34,7 +34,7 @@ public final class FriendApplyInfoOuterClass { } /** - * optional .SimpleInfo simple_info = 4; + * optional .SimpleInfo simple_info = 14; * @return whether the simpleInfo field is set */ public boolean hasSimpleInfo() { @@ -42,7 +42,7 @@ public final class FriendApplyInfoOuterClass { } /** - * optional .SimpleInfo simple_info = 4; + * optional .SimpleInfo simple_info = 14; * @return this */ public FriendApplyInfo clearSimpleInfo() { @@ -52,7 +52,7 @@ public final class FriendApplyInfoOuterClass { } /** - * optional .SimpleInfo simple_info = 4; + * optional .SimpleInfo simple_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. @@ -66,7 +66,7 @@ public final class FriendApplyInfoOuterClass { } /** - * optional .SimpleInfo simple_info = 4; + * optional .SimpleInfo simple_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 @@ -80,7 +80,7 @@ public final class FriendApplyInfoOuterClass { } /** - * optional .SimpleInfo simple_info = 4; + * optional .SimpleInfo simple_info = 14; * @param value the simpleInfo to set * @return this */ @@ -150,7 +150,7 @@ public final class FriendApplyInfoOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 34); + output.writeRawByte((byte) 114); output.writeMessageNoTag(simpleInfo); } } @@ -171,7 +171,7 @@ public final class FriendApplyInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 34: { + case 114: { // simpleInfo input.readMessage(simpleInfo); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/FriendListInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/FriendListInfoOuterClass.java index 36f8146..688851c 100644 --- a/src/generated/main/emu/lunarcore/proto/FriendListInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/FriendListInfoOuterClass.java @@ -19,7 +19,7 @@ public final class FriendListInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional .SimpleInfo simple_info = 7; + * optional .SimpleInfo simple_info = 10; */ private final SimpleInfoOuterClass.SimpleInfo simpleInfo = SimpleInfoOuterClass.SimpleInfo.newInstance(); @@ -34,7 +34,7 @@ public final class FriendListInfoOuterClass { } /** - * optional .SimpleInfo simple_info = 7; + * optional .SimpleInfo simple_info = 10; * @return whether the simpleInfo field is set */ public boolean hasSimpleInfo() { @@ -42,7 +42,7 @@ public final class FriendListInfoOuterClass { } /** - * optional .SimpleInfo simple_info = 7; + * optional .SimpleInfo simple_info = 10; * @return this */ public FriendListInfo clearSimpleInfo() { @@ -52,7 +52,7 @@ public final class FriendListInfoOuterClass { } /** - * optional .SimpleInfo simple_info = 7; + * optional .SimpleInfo simple_info = 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. @@ -66,7 +66,7 @@ public final class FriendListInfoOuterClass { } /** - * optional .SimpleInfo simple_info = 7; + * optional .SimpleInfo simple_info = 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 @@ -80,7 +80,7 @@ public final class FriendListInfoOuterClass { } /** - * optional .SimpleInfo simple_info = 7; + * optional .SimpleInfo simple_info = 10; * @param value the simpleInfo to set * @return this */ @@ -150,7 +150,7 @@ public final class FriendListInfoOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 58); + output.writeRawByte((byte) 82); output.writeMessageNoTag(simpleInfo); } } @@ -171,7 +171,7 @@ public final class FriendListInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 58: { + case 82: { // 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 97b22f6..4bef5a6 100644 --- a/src/generated/main/emu/lunarcore/proto/FriendRecommendInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/FriendRecommendInfoOuterClass.java @@ -19,7 +19,7 @@ public final class FriendRecommendInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional .SimpleInfo simple_info = 1; + * optional .SimpleInfo simple_info = 15; */ private final SimpleInfoOuterClass.SimpleInfo simpleInfo = SimpleInfoOuterClass.SimpleInfo.newInstance(); @@ -34,7 +34,7 @@ public final class FriendRecommendInfoOuterClass { } /** - * optional .SimpleInfo simple_info = 1; + * optional .SimpleInfo simple_info = 15; * @return whether the simpleInfo field is set */ public boolean hasSimpleInfo() { @@ -42,7 +42,7 @@ public final class FriendRecommendInfoOuterClass { } /** - * optional .SimpleInfo simple_info = 1; + * optional .SimpleInfo simple_info = 15; * @return this */ public FriendRecommendInfo clearSimpleInfo() { @@ -52,7 +52,7 @@ public final class FriendRecommendInfoOuterClass { } /** - * optional .SimpleInfo simple_info = 1; + * optional .SimpleInfo simple_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. @@ -66,7 +66,7 @@ public final class FriendRecommendInfoOuterClass { } /** - * optional .SimpleInfo simple_info = 1; + * optional .SimpleInfo simple_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 @@ -80,7 +80,7 @@ public final class FriendRecommendInfoOuterClass { } /** - * optional .SimpleInfo simple_info = 1; + * optional .SimpleInfo simple_info = 15; * @param value the simpleInfo to set * @return this */ @@ -150,7 +150,7 @@ public final class FriendRecommendInfoOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 10); + output.writeRawByte((byte) 122); output.writeMessageNoTag(simpleInfo); } } @@ -171,7 +171,7 @@ public final class FriendRecommendInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 10: { + case 122: { // 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 1c107fe..2e0f178 100644 --- a/src/generated/main/emu/lunarcore/proto/GachaCeilingAvatarOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GachaCeilingAvatarOuterClass.java @@ -24,7 +24,7 @@ public final class GachaCeilingAvatarOuterClass { private int avatarId; /** - * optional uint32 repeated_cnt = 12; + * optional uint32 repeated_cnt = 15; */ private int repeatedCnt; @@ -76,7 +76,7 @@ public final class GachaCeilingAvatarOuterClass { } /** - * optional uint32 repeated_cnt = 12; + * optional uint32 repeated_cnt = 15; * @return whether the repeatedCnt field is set */ public boolean hasRepeatedCnt() { @@ -84,7 +84,7 @@ public final class GachaCeilingAvatarOuterClass { } /** - * optional uint32 repeated_cnt = 12; + * optional uint32 repeated_cnt = 15; * @return this */ public GachaCeilingAvatar clearRepeatedCnt() { @@ -94,7 +94,7 @@ public final class GachaCeilingAvatarOuterClass { } /** - * optional uint32 repeated_cnt = 12; + * optional uint32 repeated_cnt = 15; * @return the repeatedCnt */ public int getRepeatedCnt() { @@ -102,7 +102,7 @@ public final class GachaCeilingAvatarOuterClass { } /** - * optional uint32 repeated_cnt = 12; + * optional uint32 repeated_cnt = 15; * @param value the repeatedCnt to set * @return this */ @@ -181,7 +181,7 @@ public final class GachaCeilingAvatarOuterClass { output.writeUInt32NoTag(avatarId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 120); output.writeUInt32NoTag(repeatedCnt); } } @@ -210,11 +210,11 @@ public final class GachaCeilingAvatarOuterClass { avatarId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 96) { + if (tag != 120) { break; } } - case 96: { + case 120: { // 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 7fad773..c0e271a 100644 --- a/src/generated/main/emu/lunarcore/proto/GachaCeilingOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GachaCeilingOuterClass.java @@ -20,12 +20,12 @@ public final class GachaCeilingOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 ceiling_num = 12; + * optional uint32 ceiling_num = 4; */ private int ceilingNum; /** - * optional bool is_claimed = 5; + * optional bool is_claimed = 3; */ private boolean isClaimed; @@ -45,7 +45,7 @@ public final class GachaCeilingOuterClass { } /** - * optional uint32 ceiling_num = 12; + * optional uint32 ceiling_num = 4; * @return whether the ceilingNum field is set */ public boolean hasCeilingNum() { @@ -53,7 +53,7 @@ public final class GachaCeilingOuterClass { } /** - * optional uint32 ceiling_num = 12; + * optional uint32 ceiling_num = 4; * @return this */ public GachaCeiling clearCeilingNum() { @@ -63,7 +63,7 @@ public final class GachaCeilingOuterClass { } /** - * optional uint32 ceiling_num = 12; + * optional uint32 ceiling_num = 4; * @return the ceilingNum */ public int getCeilingNum() { @@ -71,7 +71,7 @@ public final class GachaCeilingOuterClass { } /** - * optional uint32 ceiling_num = 12; + * optional uint32 ceiling_num = 4; * @param value the ceilingNum to set * @return this */ @@ -82,7 +82,7 @@ public final class GachaCeilingOuterClass { } /** - * optional bool is_claimed = 5; + * optional bool is_claimed = 3; * @return whether the isClaimed field is set */ public boolean hasIsClaimed() { @@ -90,7 +90,7 @@ public final class GachaCeilingOuterClass { } /** - * optional bool is_claimed = 5; + * optional bool is_claimed = 3; * @return this */ public GachaCeiling clearIsClaimed() { @@ -100,7 +100,7 @@ public final class GachaCeilingOuterClass { } /** - * optional bool is_claimed = 5; + * optional bool is_claimed = 3; * @return the isClaimed */ public boolean getIsClaimed() { @@ -108,7 +108,7 @@ public final class GachaCeilingOuterClass { } /** - * optional bool is_claimed = 5; + * optional bool is_claimed = 3; * @param value the isClaimed to set * @return this */ @@ -259,11 +259,11 @@ public final class GachaCeilingOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(ceilingNum); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 24); output.writeBoolNoTag(isClaimed); } if ((bitField0_ & 0x00000004) != 0) { @@ -296,16 +296,16 @@ public final class GachaCeilingOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 96: { + case 32: { // ceilingNum ceilingNum = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 40) { + if (tag != 24) { break; } } - case 40: { + case 24: { // isClaimed isClaimed = input.readBool(); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/GachaInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/GachaInfoOuterClass.java index cbafb9f..3802d17 100644 --- a/src/generated/main/emu/lunarcore/proto/GachaInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GachaInfoOuterClass.java @@ -21,45 +21,45 @@ public final class GachaInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional int64 begin_time = 5; + * optional int64 begin_time = 10; */ private long beginTime; /** - * optional int64 end_time = 15; + * optional int64 end_time = 12; */ private long endTime; /** - * optional uint32 gacha_id = 3; + * optional uint32 gacha_id = 13; */ private int gachaId; /** - * optional .GachaCeiling gacha_ceiling = 1; + * optional .GachaCeiling gacha_ceiling = 9; */ private final GachaCeilingOuterClass.GachaCeiling gachaCeiling = GachaCeilingOuterClass.GachaCeiling.newInstance(); /** - * optional string history_url = 13; - */ - private final Utf8String historyUrl = Utf8String.newEmptyInstance(); - - /** - * optional string detail_url = 14; + * optional string detail_url = 2; */ private final Utf8String detailUrl = Utf8String.newEmptyInstance(); /** - * repeated uint32 up_info = 6; + * optional string history_url = 6; */ - private final RepeatedInt upInfo = RepeatedInt.newEmptyInstance(); + private final Utf8String historyUrl = Utf8String.newEmptyInstance(); /** - * repeated uint32 featured = 9; + * repeated uint32 featured = 1; */ private final RepeatedInt featured = RepeatedInt.newEmptyInstance(); + /** + * repeated uint32 up_info = 5; + */ + private final RepeatedInt upInfo = RepeatedInt.newEmptyInstance(); + private GachaInfo() { } @@ -71,7 +71,7 @@ public final class GachaInfoOuterClass { } /** - * optional int64 begin_time = 5; + * optional int64 begin_time = 10; * @return whether the beginTime field is set */ public boolean hasBeginTime() { @@ -79,7 +79,7 @@ public final class GachaInfoOuterClass { } /** - * optional int64 begin_time = 5; + * optional int64 begin_time = 10; * @return this */ public GachaInfo clearBeginTime() { @@ -89,7 +89,7 @@ public final class GachaInfoOuterClass { } /** - * optional int64 begin_time = 5; + * optional int64 begin_time = 10; * @return the beginTime */ public long getBeginTime() { @@ -97,7 +97,7 @@ public final class GachaInfoOuterClass { } /** - * optional int64 begin_time = 5; + * optional int64 begin_time = 10; * @param value the beginTime to set * @return this */ @@ -108,7 +108,7 @@ public final class GachaInfoOuterClass { } /** - * optional int64 end_time = 15; + * optional int64 end_time = 12; * @return whether the endTime field is set */ public boolean hasEndTime() { @@ -116,7 +116,7 @@ public final class GachaInfoOuterClass { } /** - * optional int64 end_time = 15; + * optional int64 end_time = 12; * @return this */ public GachaInfo clearEndTime() { @@ -126,7 +126,7 @@ public final class GachaInfoOuterClass { } /** - * optional int64 end_time = 15; + * optional int64 end_time = 12; * @return the endTime */ public long getEndTime() { @@ -134,7 +134,7 @@ public final class GachaInfoOuterClass { } /** - * optional int64 end_time = 15; + * optional int64 end_time = 12; * @param value the endTime to set * @return this */ @@ -145,7 +145,7 @@ public final class GachaInfoOuterClass { } /** - * optional uint32 gacha_id = 3; + * optional uint32 gacha_id = 13; * @return whether the gachaId field is set */ public boolean hasGachaId() { @@ -153,7 +153,7 @@ public final class GachaInfoOuterClass { } /** - * optional uint32 gacha_id = 3; + * optional uint32 gacha_id = 13; * @return this */ public GachaInfo clearGachaId() { @@ -163,7 +163,7 @@ public final class GachaInfoOuterClass { } /** - * optional uint32 gacha_id = 3; + * optional uint32 gacha_id = 13; * @return the gachaId */ public int getGachaId() { @@ -171,7 +171,7 @@ public final class GachaInfoOuterClass { } /** - * optional uint32 gacha_id = 3; + * optional uint32 gacha_id = 13; * @param value the gachaId to set * @return this */ @@ -182,7 +182,7 @@ public final class GachaInfoOuterClass { } /** - * optional .GachaCeiling gacha_ceiling = 1; + * optional .GachaCeiling gacha_ceiling = 9; * @return whether the gachaCeiling field is set */ public boolean hasGachaCeiling() { @@ -190,7 +190,7 @@ public final class GachaInfoOuterClass { } /** - * optional .GachaCeiling gacha_ceiling = 1; + * optional .GachaCeiling gacha_ceiling = 9; * @return this */ public GachaInfo clearGachaCeiling() { @@ -200,7 +200,7 @@ public final class GachaInfoOuterClass { } /** - * optional .GachaCeiling gacha_ceiling = 1; + * optional .GachaCeiling gacha_ceiling = 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. @@ -214,7 +214,7 @@ public final class GachaInfoOuterClass { } /** - * optional .GachaCeiling gacha_ceiling = 1; + * optional .GachaCeiling gacha_ceiling = 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 @@ -228,7 +228,7 @@ public final class GachaInfoOuterClass { } /** - * optional .GachaCeiling gacha_ceiling = 1; + * optional .GachaCeiling gacha_ceiling = 9; * @param value the gachaCeiling to set * @return this */ @@ -239,90 +239,25 @@ public final class GachaInfoOuterClass { } /** - * optional string history_url = 13; - * @return whether the historyUrl field is set + * optional string detail_url = 2; + * @return whether the detailUrl field is set */ - public boolean hasHistoryUrl() { + public boolean hasDetailUrl() { return (bitField0_ & 0x00000010) != 0; } /** - * optional string history_url = 13; - * @return this - */ - public GachaInfo clearHistoryUrl() { - bitField0_ &= ~0x00000010; - historyUrl.clear(); - return this; - } - - /** - * optional string history_url = 13; - * @return the historyUrl - */ - public String getHistoryUrl() { - return historyUrl.getString(); - } - - /** - * optional string history_url = 13; - * @return internal {@code Utf8String} representation of historyUrl for reading - */ - public Utf8String getHistoryUrlBytes() { - return this.historyUrl; - } - - /** - * optional string history_url = 13; - * @return internal {@code Utf8String} representation of historyUrl for modifications - */ - public Utf8String getMutableHistoryUrlBytes() { - bitField0_ |= 0x00000010; - return this.historyUrl; - } - - /** - * optional string history_url = 13; - * @param value the historyUrl to set - * @return this - */ - public GachaInfo setHistoryUrl(final CharSequence value) { - bitField0_ |= 0x00000010; - historyUrl.copyFrom(value); - return this; - } - - /** - * optional string history_url = 13; - * @param value the historyUrl to set - * @return this - */ - public GachaInfo setHistoryUrl(final Utf8String value) { - bitField0_ |= 0x00000010; - historyUrl.copyFrom(value); - return this; - } - - /** - * optional string detail_url = 14; - * @return whether the detailUrl field is set - */ - public boolean hasDetailUrl() { - return (bitField0_ & 0x00000020) != 0; - } - - /** - * optional string detail_url = 14; + * optional string detail_url = 2; * @return this */ public GachaInfo clearDetailUrl() { - bitField0_ &= ~0x00000020; + bitField0_ &= ~0x00000010; detailUrl.clear(); return this; } /** - * optional string detail_url = 14; + * optional string detail_url = 2; * @return the detailUrl */ public String getDetailUrl() { @@ -330,7 +265,7 @@ public final class GachaInfoOuterClass { } /** - * optional string detail_url = 14; + * optional string detail_url = 2; * @return internal {@code Utf8String} representation of detailUrl for reading */ public Utf8String getDetailUrlBytes() { @@ -338,124 +273,121 @@ public final class GachaInfoOuterClass { } /** - * optional string detail_url = 14; + * optional string detail_url = 2; * @return internal {@code Utf8String} representation of detailUrl for modifications */ public Utf8String getMutableDetailUrlBytes() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; return this.detailUrl; } /** - * optional string detail_url = 14; + * optional string detail_url = 2; * @param value the detailUrl to set * @return this */ public GachaInfo setDetailUrl(final CharSequence value) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; detailUrl.copyFrom(value); return this; } /** - * optional string detail_url = 14; + * optional string detail_url = 2; * @param value the detailUrl to set * @return this */ public GachaInfo setDetailUrl(final Utf8String value) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; detailUrl.copyFrom(value); return this; } /** - * repeated uint32 up_info = 6; - * @return whether the upInfo field is set + * optional string history_url = 6; + * @return whether the historyUrl field is set */ - public boolean hasUpInfo() { + public boolean hasHistoryUrl() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional string history_url = 6; + * @return this + */ + public GachaInfo clearHistoryUrl() { + bitField0_ &= ~0x00000020; + historyUrl.clear(); + return this; + } + + /** + * optional string history_url = 6; + * @return the historyUrl + */ + public String getHistoryUrl() { + return historyUrl.getString(); + } + + /** + * optional string history_url = 6; + * @return internal {@code Utf8String} representation of historyUrl for reading + */ + public Utf8String getHistoryUrlBytes() { + return this.historyUrl; + } + + /** + * optional string history_url = 6; + * @return internal {@code Utf8String} representation of historyUrl for modifications + */ + public Utf8String getMutableHistoryUrlBytes() { + bitField0_ |= 0x00000020; + return this.historyUrl; + } + + /** + * optional string history_url = 6; + * @param value the historyUrl to set + * @return this + */ + public GachaInfo setHistoryUrl(final CharSequence value) { + bitField0_ |= 0x00000020; + historyUrl.copyFrom(value); + return this; + } + + /** + * optional string history_url = 6; + * @param value the historyUrl to set + * @return this + */ + public GachaInfo setHistoryUrl(final Utf8String value) { + bitField0_ |= 0x00000020; + historyUrl.copyFrom(value); + return this; + } + + /** + * repeated uint32 featured = 1; + * @return whether the featured field is set + */ + public boolean hasFeatured() { return (bitField0_ & 0x00000040) != 0; } /** - * repeated uint32 up_info = 6; - * @return this - */ - public GachaInfo clearUpInfo() { - bitField0_ &= ~0x00000040; - upInfo.clear(); - return this; - } - - /** - * 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. - * - * Use {@link #getMutableUpInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedInt getUpInfo() { - return upInfo; - } - - /** - * 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 - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedInt getMutableUpInfo() { - bitField0_ |= 0x00000040; - return upInfo; - } - - /** - * repeated uint32 up_info = 6; - * @param value the upInfo to add - * @return this - */ - public GachaInfo addUpInfo(final int value) { - bitField0_ |= 0x00000040; - upInfo.add(value); - return this; - } - - /** - * repeated uint32 up_info = 6; - * @param values the upInfo to add - * @return this - */ - public GachaInfo addAllUpInfo(final int... values) { - bitField0_ |= 0x00000040; - upInfo.addAll(values); - return this; - } - - /** - * repeated uint32 featured = 9; - * @return whether the featured field is set - */ - public boolean hasFeatured() { - return (bitField0_ & 0x00000080) != 0; - } - - /** - * repeated uint32 featured = 9; + * repeated uint32 featured = 1; * @return this */ public GachaInfo clearFeatured() { - bitField0_ &= ~0x00000080; + bitField0_ &= ~0x00000040; featured.clear(); return this; } /** - * repeated uint32 featured = 9; + * repeated uint32 featured = 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. @@ -469,7 +401,7 @@ public final class GachaInfoOuterClass { } /** - * repeated uint32 featured = 9; + * repeated uint32 featured = 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 @@ -478,32 +410,100 @@ public final class GachaInfoOuterClass { * @return internal storage object for modifications */ public RepeatedInt getMutableFeatured() { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000040; return featured; } /** - * repeated uint32 featured = 9; + * repeated uint32 featured = 1; * @param value the featured to add * @return this */ public GachaInfo addFeatured(final int value) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000040; featured.add(value); return this; } /** - * repeated uint32 featured = 9; + * repeated uint32 featured = 1; * @param values the featured to add * @return this */ public GachaInfo addAllFeatured(final int... values) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000040; featured.addAll(values); return this; } + /** + * repeated uint32 up_info = 5; + * @return whether the upInfo field is set + */ + public boolean hasUpInfo() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * repeated uint32 up_info = 5; + * @return this + */ + public GachaInfo clearUpInfo() { + bitField0_ &= ~0x00000080; + upInfo.clear(); + return this; + } + + /** + * repeated uint32 up_info = 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 #getMutableUpInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getUpInfo() { + return upInfo; + } + + /** + * repeated uint32 up_info = 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 getMutableUpInfo() { + bitField0_ |= 0x00000080; + return upInfo; + } + + /** + * repeated uint32 up_info = 5; + * @param value the upInfo to add + * @return this + */ + public GachaInfo addUpInfo(final int value) { + bitField0_ |= 0x00000080; + upInfo.add(value); + return this; + } + + /** + * repeated uint32 up_info = 5; + * @param values the upInfo to add + * @return this + */ + public GachaInfo addAllUpInfo(final int... values) { + bitField0_ |= 0x00000080; + upInfo.addAll(values); + return this; + } + @Override public GachaInfo copyFrom(final GachaInfo other) { cachedSize = other.cachedSize; @@ -513,10 +513,10 @@ public final class GachaInfoOuterClass { endTime = other.endTime; gachaId = other.gachaId; gachaCeiling.copyFrom(other.gachaCeiling); - historyUrl.copyFrom(other.historyUrl); detailUrl.copyFrom(other.detailUrl); - upInfo.copyFrom(other.upInfo); + historyUrl.copyFrom(other.historyUrl); featured.copyFrom(other.featured); + upInfo.copyFrom(other.upInfo); } return this; } @@ -539,18 +539,18 @@ public final class GachaInfoOuterClass { if (other.hasGachaCeiling()) { getMutableGachaCeiling().mergeFrom(other.gachaCeiling); } - if (other.hasHistoryUrl()) { - getMutableHistoryUrlBytes().copyFrom(other.historyUrl); - } if (other.hasDetailUrl()) { getMutableDetailUrlBytes().copyFrom(other.detailUrl); } - if (other.hasUpInfo()) { - getMutableUpInfo().addAll(other.upInfo); + if (other.hasHistoryUrl()) { + getMutableHistoryUrlBytes().copyFrom(other.historyUrl); } if (other.hasFeatured()) { getMutableFeatured().addAll(other.featured); } + if (other.hasUpInfo()) { + getMutableUpInfo().addAll(other.upInfo); + } return this; } @@ -565,10 +565,10 @@ public final class GachaInfoOuterClass { endTime = 0L; gachaId = 0; gachaCeiling.clear(); - historyUrl.clear(); detailUrl.clear(); - upInfo.clear(); + historyUrl.clear(); featured.clear(); + upInfo.clear(); return this; } @@ -580,10 +580,10 @@ public final class GachaInfoOuterClass { cachedSize = -1; bitField0_ = 0; gachaCeiling.clearQuick(); - historyUrl.clear(); detailUrl.clear(); - upInfo.clear(); + historyUrl.clear(); featured.clear(); + upInfo.clear(); return this; } @@ -601,48 +601,48 @@ public final class GachaInfoOuterClass { && (!hasEndTime() || endTime == other.endTime) && (!hasGachaId() || gachaId == other.gachaId) && (!hasGachaCeiling() || gachaCeiling.equals(other.gachaCeiling)) - && (!hasHistoryUrl() || historyUrl.equals(other.historyUrl)) && (!hasDetailUrl() || detailUrl.equals(other.detailUrl)) - && (!hasUpInfo() || upInfo.equals(other.upInfo)) - && (!hasFeatured() || featured.equals(other.featured)); + && (!hasHistoryUrl() || historyUrl.equals(other.historyUrl)) + && (!hasFeatured() || featured.equals(other.featured)) + && (!hasUpInfo() || upInfo.equals(other.upInfo)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 80); output.writeInt64NoTag(beginTime); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 96); output.writeInt64NoTag(endTime); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 104); output.writeUInt32NoTag(gachaId); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 10); + output.writeRawByte((byte) 74); output.writeMessageNoTag(gachaCeiling); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 106); - output.writeStringNoTag(historyUrl); - } - if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 114); + output.writeRawByte((byte) 18); output.writeStringNoTag(detailUrl); } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 50); + output.writeStringNoTag(historyUrl); + } if ((bitField0_ & 0x00000040) != 0) { - for (int i = 0; i < upInfo.length(); i++) { - output.writeRawByte((byte) 48); - output.writeUInt32NoTag(upInfo.array()[i]); + for (int i = 0; i < featured.length(); i++) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(featured.array()[i]); } } if ((bitField0_ & 0x00000080) != 0) { - for (int i = 0; i < featured.length(); i++) { - output.writeRawByte((byte) 72); - output.writeUInt32NoTag(featured.array()[i]); + for (int i = 0; i < upInfo.length(); i++) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(upInfo.array()[i]); } } } @@ -663,16 +663,16 @@ public final class GachaInfoOuterClass { size += 1 + ProtoSink.computeMessageSizeNoTag(gachaCeiling); } if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeStringSizeNoTag(historyUrl); - } - if ((bitField0_ & 0x00000020) != 0) { size += 1 + ProtoSink.computeStringSizeNoTag(detailUrl); } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(historyUrl); + } if ((bitField0_ & 0x00000040) != 0) { - size += (1 * upInfo.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(upInfo); + size += (1 * featured.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(featured); } if ((bitField0_ & 0x00000080) != 0) { - size += (1 * featured.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(featured); + size += (1 * upInfo.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(upInfo); } return size; } @@ -684,72 +684,72 @@ public final class GachaInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 40: { + case 80: { // beginTime beginTime = input.readInt64(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 120) { + if (tag != 96) { break; } } - case 120: { + case 96: { // endTime endTime = input.readInt64(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 24) { + if (tag != 104) { break; } } - case 24: { + case 104: { // gachaId gachaId = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 10) { - break; - } - } - case 10: { - // gachaCeiling - input.readMessage(gachaCeiling); - bitField0_ |= 0x00000008; - tag = input.readTag(); - if (tag != 106) { - break; - } - } - case 106: { - // historyUrl - input.readString(historyUrl); - bitField0_ |= 0x00000010; - tag = input.readTag(); - if (tag != 114) { - break; - } - } - case 114: { - // detailUrl - input.readString(detailUrl); - bitField0_ |= 0x00000020; - tag = input.readTag(); - if (tag != 50) { - break; - } - } - case 50: { - // upInfo [packed=true] - input.readPackedUInt32(upInfo, tag); - bitField0_ |= 0x00000040; - tag = input.readTag(); if (tag != 74) { break; } } case 74: { + // gachaCeiling + input.readMessage(gachaCeiling); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // detailUrl + input.readString(detailUrl); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 50) { + break; + } + } + case 50: { + // historyUrl + input.readString(historyUrl); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { // featured [packed=true] input.readPackedUInt32(featured, tag); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 42) { + break; + } + } + case 42: { + // upInfo [packed=true] + input.readPackedUInt32(upInfo, tag); bitField0_ |= 0x00000080; tag = input.readTag(); if (tag != 0) { @@ -766,15 +766,15 @@ public final class GachaInfoOuterClass { tag = input.readTag(); break; } - case 48: { - // upInfo [packed=false] - tag = input.readRepeatedUInt32(upInfo, tag); + case 8: { + // featured [packed=false] + tag = input.readRepeatedUInt32(featured, tag); bitField0_ |= 0x00000040; break; } - case 72: { - // featured [packed=false] - tag = input.readRepeatedUInt32(featured, tag); + case 40: { + // upInfo [packed=false] + tag = input.readRepeatedUInt32(upInfo, tag); bitField0_ |= 0x00000080; break; } @@ -798,16 +798,16 @@ public final class GachaInfoOuterClass { output.writeMessage(FieldNames.gachaCeiling, gachaCeiling); } if ((bitField0_ & 0x00000010) != 0) { - output.writeString(FieldNames.historyUrl, historyUrl); - } - if ((bitField0_ & 0x00000020) != 0) { output.writeString(FieldNames.detailUrl, detailUrl); } + if ((bitField0_ & 0x00000020) != 0) { + output.writeString(FieldNames.historyUrl, historyUrl); + } if ((bitField0_ & 0x00000040) != 0) { - output.writeRepeatedUInt32(FieldNames.upInfo, upInfo); + output.writeRepeatedUInt32(FieldNames.featured, featured); } if ((bitField0_ & 0x00000080) != 0) { - output.writeRepeatedUInt32(FieldNames.featured, featured); + output.writeRepeatedUInt32(FieldNames.upInfo, upInfo); } output.endObject(); } @@ -867,11 +867,11 @@ public final class GachaInfoOuterClass { } break; } - case 1951019067: - case 352350020: { - if (input.isAtField(FieldNames.historyUrl)) { + case -1973090466: + case -1035961215: { + if (input.isAtField(FieldNames.detailUrl)) { if (!input.trySkipNullValue()) { - input.readString(historyUrl); + input.readString(detailUrl); bitField0_ |= 0x00000010; } } else { @@ -879,11 +879,11 @@ public final class GachaInfoOuterClass { } break; } - case -1973090466: - case -1035961215: { - if (input.isAtField(FieldNames.detailUrl)) { + case 1951019067: + case 352350020: { + if (input.isAtField(FieldNames.historyUrl)) { if (!input.trySkipNullValue()) { - input.readString(detailUrl); + input.readString(historyUrl); bitField0_ |= 0x00000020; } } else { @@ -891,22 +891,22 @@ public final class GachaInfoOuterClass { } break; } + case -290659282: { + if (input.isAtField(FieldNames.featured)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(featured); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } case -839638551: case -238815278: { if (input.isAtField(FieldNames.upInfo)) { if (!input.trySkipNullValue()) { input.readRepeatedUInt32(upInfo); - bitField0_ |= 0x00000040; - } - } else { - input.skipUnknownField(); - } - break; - } - case -290659282: { - if (input.isAtField(FieldNames.featured)) { - if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(featured); bitField0_ |= 0x00000080; } } else { @@ -974,13 +974,13 @@ public final class GachaInfoOuterClass { static final FieldName gachaCeiling = FieldName.forField("gachaCeiling", "gacha_ceiling"); - static final FieldName historyUrl = FieldName.forField("historyUrl", "history_url"); - static final FieldName detailUrl = FieldName.forField("detailUrl", "detail_url"); - static final FieldName upInfo = FieldName.forField("upInfo", "up_info"); + static final FieldName historyUrl = FieldName.forField("historyUrl", "history_url"); static final FieldName featured = FieldName.forField("featured"); + + static final FieldName upInfo = FieldName.forField("upInfo", "up_info"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/GachaItemOuterClass.java b/src/generated/main/emu/lunarcore/proto/GachaItemOuterClass.java index a263463..011bdbd 100644 --- a/src/generated/main/emu/lunarcore/proto/GachaItemOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GachaItemOuterClass.java @@ -19,22 +19,22 @@ public final class GachaItemOuterClass { private static final long serialVersionUID = 0L; /** - * optional bool is_new = 8; + * optional bool is_new = 4; */ private boolean isNew; /** - * optional .Item gacha_item = 1; - */ - private final ItemOuterClass.Item gachaItem = ItemOuterClass.Item.newInstance(); - - /** - * optional .ItemList token_item = 9; + * optional .ItemList token_item = 6; */ private final ItemListOuterClass.ItemList tokenItem = ItemListOuterClass.ItemList.newInstance(); /** - * optional .ItemList transfer_item_list = 12; + * optional .Item gacha_item = 7; + */ + private final ItemOuterClass.Item gachaItem = ItemOuterClass.Item.newInstance(); + + /** + * optional .ItemList transfer_item_list = 10; */ private final ItemListOuterClass.ItemList transferItemList = ItemListOuterClass.ItemList.newInstance(); @@ -49,7 +49,7 @@ public final class GachaItemOuterClass { } /** - * optional bool is_new = 8; + * optional bool is_new = 4; * @return whether the isNew field is set */ public boolean hasIsNew() { @@ -57,7 +57,7 @@ public final class GachaItemOuterClass { } /** - * optional bool is_new = 8; + * optional bool is_new = 4; * @return this */ public GachaItem clearIsNew() { @@ -67,7 +67,7 @@ public final class GachaItemOuterClass { } /** - * optional bool is_new = 8; + * optional bool is_new = 4; * @return the isNew */ public boolean getIsNew() { @@ -75,7 +75,7 @@ public final class GachaItemOuterClass { } /** - * optional bool is_new = 8; + * optional bool is_new = 4; * @param value the isNew to set * @return this */ @@ -86,82 +86,25 @@ public final class GachaItemOuterClass { } /** - * optional .Item gacha_item = 1; - * @return whether the gachaItem field is set + * optional .ItemList token_item = 6; + * @return whether the tokenItem field is set */ - public boolean hasGachaItem() { + public boolean hasTokenItem() { return (bitField0_ & 0x00000002) != 0; } /** - * optional .Item gacha_item = 1; - * @return this - */ - public GachaItem clearGachaItem() { - bitField0_ &= ~0x00000002; - gachaItem.clear(); - return this; - } - - /** - * 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. - * - * Use {@link #getMutableGachaItem()} if you want to modify it. - * - * @return internal storage object for reading - */ - public ItemOuterClass.Item getGachaItem() { - return gachaItem; - } - - /** - * 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 - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public ItemOuterClass.Item getMutableGachaItem() { - bitField0_ |= 0x00000002; - return gachaItem; - } - - /** - * optional .Item gacha_item = 1; - * @param value the gachaItem to set - * @return this - */ - public GachaItem setGachaItem(final ItemOuterClass.Item value) { - bitField0_ |= 0x00000002; - gachaItem.copyFrom(value); - return this; - } - - /** - * optional .ItemList token_item = 9; - * @return whether the tokenItem field is set - */ - public boolean hasTokenItem() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional .ItemList token_item = 9; + * optional .ItemList token_item = 6; * @return this */ public GachaItem clearTokenItem() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; tokenItem.clear(); return this; } /** - * optional .ItemList token_item = 9; + * optional .ItemList token_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. @@ -175,7 +118,7 @@ public final class GachaItemOuterClass { } /** - * optional .ItemList token_item = 9; + * optional .ItemList token_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 @@ -184,23 +127,80 @@ public final class GachaItemOuterClass { * @return internal storage object for modifications */ public ItemListOuterClass.ItemList getMutableTokenItem() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; return tokenItem; } /** - * optional .ItemList token_item = 9; + * optional .ItemList token_item = 6; * @param value the tokenItem to set * @return this */ public GachaItem setTokenItem(final ItemListOuterClass.ItemList value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; tokenItem.copyFrom(value); return this; } /** - * optional .ItemList transfer_item_list = 12; + * optional .Item gacha_item = 7; + * @return whether the gachaItem field is set + */ + public boolean hasGachaItem() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .Item gacha_item = 7; + * @return this + */ + public GachaItem clearGachaItem() { + bitField0_ &= ~0x00000004; + gachaItem.clear(); + return this; + } + + /** + * optional .Item gacha_item = 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 #getMutableGachaItem()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ItemOuterClass.Item getGachaItem() { + return gachaItem; + } + + /** + * optional .Item gacha_item = 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 + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public ItemOuterClass.Item getMutableGachaItem() { + bitField0_ |= 0x00000004; + return gachaItem; + } + + /** + * optional .Item gacha_item = 7; + * @param value the gachaItem to set + * @return this + */ + public GachaItem setGachaItem(final ItemOuterClass.Item value) { + bitField0_ |= 0x00000004; + gachaItem.copyFrom(value); + return this; + } + + /** + * optional .ItemList transfer_item_list = 10; * @return whether the transferItemList field is set */ public boolean hasTransferItemList() { @@ -208,7 +208,7 @@ public final class GachaItemOuterClass { } /** - * optional .ItemList transfer_item_list = 12; + * optional .ItemList transfer_item_list = 10; * @return this */ public GachaItem clearTransferItemList() { @@ -218,7 +218,7 @@ public final class GachaItemOuterClass { } /** - * optional .ItemList transfer_item_list = 12; + * optional .ItemList transfer_item_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. @@ -232,7 +232,7 @@ public final class GachaItemOuterClass { } /** - * optional .ItemList transfer_item_list = 12; + * optional .ItemList transfer_item_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 @@ -246,7 +246,7 @@ public final class GachaItemOuterClass { } /** - * optional .ItemList transfer_item_list = 12; + * optional .ItemList transfer_item_list = 10; * @param value the transferItemList to set * @return this */ @@ -262,8 +262,8 @@ public final class GachaItemOuterClass { if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; isNew = other.isNew; - gachaItem.copyFrom(other.gachaItem); tokenItem.copyFrom(other.tokenItem); + gachaItem.copyFrom(other.gachaItem); transferItemList.copyFrom(other.transferItemList); } return this; @@ -278,12 +278,12 @@ public final class GachaItemOuterClass { if (other.hasIsNew()) { setIsNew(other.isNew); } - if (other.hasGachaItem()) { - getMutableGachaItem().mergeFrom(other.gachaItem); - } if (other.hasTokenItem()) { getMutableTokenItem().mergeFrom(other.tokenItem); } + if (other.hasGachaItem()) { + getMutableGachaItem().mergeFrom(other.gachaItem); + } if (other.hasTransferItemList()) { getMutableTransferItemList().mergeFrom(other.transferItemList); } @@ -298,8 +298,8 @@ public final class GachaItemOuterClass { cachedSize = -1; bitField0_ = 0; isNew = false; - gachaItem.clear(); tokenItem.clear(); + gachaItem.clear(); transferItemList.clear(); return this; } @@ -311,8 +311,8 @@ public final class GachaItemOuterClass { } cachedSize = -1; bitField0_ = 0; - gachaItem.clearQuick(); tokenItem.clearQuick(); + gachaItem.clearQuick(); transferItemList.clearQuick(); return this; } @@ -328,27 +328,27 @@ public final class GachaItemOuterClass { GachaItem other = (GachaItem) o; return bitField0_ == other.bitField0_ && (!hasIsNew() || isNew == other.isNew) - && (!hasGachaItem() || gachaItem.equals(other.gachaItem)) && (!hasTokenItem() || tokenItem.equals(other.tokenItem)) + && (!hasGachaItem() || gachaItem.equals(other.gachaItem)) && (!hasTransferItemList() || transferItemList.equals(other.transferItemList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 32); output.writeBoolNoTag(isNew); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 10); - output.writeMessageNoTag(gachaItem); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 74); + output.writeRawByte((byte) 50); output.writeMessageNoTag(tokenItem); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 58); + output.writeMessageNoTag(gachaItem); + } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 98); + output.writeRawByte((byte) 82); output.writeMessageNoTag(transferItemList); } } @@ -360,10 +360,10 @@ public final class GachaItemOuterClass { size += 2; } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(gachaItem); + size += 1 + ProtoSink.computeMessageSizeNoTag(tokenItem); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(tokenItem); + size += 1 + ProtoSink.computeMessageSizeNoTag(gachaItem); } if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(transferItemList); @@ -378,34 +378,34 @@ public final class GachaItemOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 64: { + case 32: { // isNew isNew = input.readBool(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 10) { + if (tag != 50) { break; } } - case 10: { - // gachaItem - input.readMessage(gachaItem); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 74) { - break; - } - } - case 74: { + case 50: { // tokenItem input.readMessage(tokenItem); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 98) { + if (tag != 58) { break; } } - case 98: { + case 58: { + // gachaItem + input.readMessage(gachaItem); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 82) { + break; + } + } + case 82: { // transferItemList input.readMessage(transferItemList); bitField0_ |= 0x00000008; @@ -435,10 +435,10 @@ public final class GachaItemOuterClass { output.writeBool(FieldNames.isNew, isNew); } if ((bitField0_ & 0x00000002) != 0) { - output.writeMessage(FieldNames.gachaItem, gachaItem); + output.writeMessage(FieldNames.tokenItem, tokenItem); } if ((bitField0_ & 0x00000004) != 0) { - output.writeMessage(FieldNames.tokenItem, tokenItem); + output.writeMessage(FieldNames.gachaItem, gachaItem); } if ((bitField0_ & 0x00000008) != 0) { output.writeMessage(FieldNames.transferItemList, transferItemList); @@ -465,11 +465,11 @@ public final class GachaItemOuterClass { } break; } - case 802515893: - case -871807056: { - if (input.isAtField(FieldNames.gachaItem)) { + case 141165740: + case 101174681: { + if (input.isAtField(FieldNames.tokenItem)) { if (!input.trySkipNullValue()) { - input.readMessage(gachaItem); + input.readMessage(tokenItem); bitField0_ |= 0x00000002; } } else { @@ -477,11 +477,11 @@ public final class GachaItemOuterClass { } break; } - case 141165740: - case 101174681: { - if (input.isAtField(FieldNames.tokenItem)) { + case 802515893: + case -871807056: { + if (input.isAtField(FieldNames.gachaItem)) { if (!input.trySkipNullValue()) { - input.readMessage(tokenItem); + input.readMessage(gachaItem); bitField0_ |= 0x00000004; } } else { @@ -555,10 +555,10 @@ public final class GachaItemOuterClass { static class FieldNames { static final FieldName isNew = FieldName.forField("isNew", "is_new"); - static final FieldName gachaItem = FieldName.forField("gachaItem", "gacha_item"); - static final FieldName tokenItem = FieldName.forField("tokenItem", "token_item"); + static final FieldName gachaItem = FieldName.forField("gachaItem", "gacha_item"); + static final FieldName transferItemList = FieldName.forField("transferItemList", "transfer_item_list"); } } diff --git a/src/generated/main/emu/lunarcore/proto/GateserverOuterClass.java b/src/generated/main/emu/lunarcore/proto/GateserverOuterClass.java index d3be564..56aba70 100644 --- a/src/generated/main/emu/lunarcore/proto/GateserverOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GateserverOuterClass.java @@ -20,82 +20,91 @@ public final class GateserverOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 port = 15; + * optional uint32 port = 7; */ private int port; /** - * optional bool unk1 = 5; + * optional bool unk1 = 4; */ private boolean unk1; /** - * optional bool unk2 = 9; + * optional bool unk2 = 8; */ private boolean unk2; /** - * optional bool unk3 = 170; + * optional bool unk3 = 66; */ private boolean unk3; /** - * optional bool unk4 = 1397; + * optional bool unk4 = 551; */ private boolean unk4; /** - * optional bool unk5 = 1649; + *
+     * bool unk5 = 646;
+     * 
+ * + * optional bool unk5 = 929; */ private boolean unk5; /** - * optional string msg = 1; + * optional bool unk6 = 979; */ - private final Utf8String msg = Utf8String.newEmptyInstance(); + private boolean unk6; /** - * 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 = 10; - */ - private final Utf8String luaUrl = Utf8String.newEmptyInstance(); - - /** - * optional string ex_resource_url = 12; - */ - private final Utf8String exResourceUrl = Utf8String.newEmptyInstance(); - - /** - * optional string asset_bundle_url = 14; + * optional string asset_bundle_url = 1; */ private final Utf8String assetBundleUrl = Utf8String.newEmptyInstance(); /** - * optional string ifix_version = 20; + * optional string ex_resource_url = 9; */ - private final Utf8String ifixVersion = Utf8String.newEmptyInstance(); + private final Utf8String exResourceUrl = Utf8String.newEmptyInstance(); /** - * optional string ifix_url = 98; + * optional string lua_url = 11; + */ + private final Utf8String luaUrl = Utf8String.newEmptyInstance(); + + /** + * optional string ip = 12; + */ + private final Utf8String ip = Utf8String.newEmptyInstance(); + + /** + * optional string region_name = 13; + */ + private final Utf8String regionName = Utf8String.newEmptyInstance(); + + /** + * optional string ifix_url = 140; */ private final Utf8String ifixUrl = Utf8String.newEmptyInstance(); /** - * optional string client_secret_key = 239; + * optional string client_secret_key = 591; */ private final Utf8String clientSecretKey = Utf8String.newEmptyInstance(); /** - * optional string mdk_res_version = 1506; + * optional string msg = 1076; + */ + private final Utf8String msg = Utf8String.newEmptyInstance(); + + /** + * optional string ifix_version = 1444; + */ + private final Utf8String ifixVersion = Utf8String.newEmptyInstance(); + + /** + * optional string mdk_res_version = 1456; */ private final Utf8String mdkResVersion = Utf8String.newEmptyInstance(); @@ -110,7 +119,7 @@ public final class GateserverOuterClass { } /** - * optional uint32 port = 15; + * optional uint32 port = 7; * @return whether the port field is set */ public boolean hasPort() { @@ -118,7 +127,7 @@ public final class GateserverOuterClass { } /** - * optional uint32 port = 15; + * optional uint32 port = 7; * @return this */ public Gateserver clearPort() { @@ -128,7 +137,7 @@ public final class GateserverOuterClass { } /** - * optional uint32 port = 15; + * optional uint32 port = 7; * @return the port */ public int getPort() { @@ -136,7 +145,7 @@ public final class GateserverOuterClass { } /** - * optional uint32 port = 15; + * optional uint32 port = 7; * @param value the port to set * @return this */ @@ -147,7 +156,7 @@ public final class GateserverOuterClass { } /** - * optional bool unk1 = 5; + * optional bool unk1 = 4; * @return whether the unk1 field is set */ public boolean hasUnk1() { @@ -155,7 +164,7 @@ public final class GateserverOuterClass { } /** - * optional bool unk1 = 5; + * optional bool unk1 = 4; * @return this */ public Gateserver clearUnk1() { @@ -165,7 +174,7 @@ public final class GateserverOuterClass { } /** - * optional bool unk1 = 5; + * optional bool unk1 = 4; * @return the unk1 */ public boolean getUnk1() { @@ -173,7 +182,7 @@ public final class GateserverOuterClass { } /** - * optional bool unk1 = 5; + * optional bool unk1 = 4; * @param value the unk1 to set * @return this */ @@ -184,7 +193,7 @@ public final class GateserverOuterClass { } /** - * optional bool unk2 = 9; + * optional bool unk2 = 8; * @return whether the unk2 field is set */ public boolean hasUnk2() { @@ -192,7 +201,7 @@ public final class GateserverOuterClass { } /** - * optional bool unk2 = 9; + * optional bool unk2 = 8; * @return this */ public Gateserver clearUnk2() { @@ -202,7 +211,7 @@ public final class GateserverOuterClass { } /** - * optional bool unk2 = 9; + * optional bool unk2 = 8; * @return the unk2 */ public boolean getUnk2() { @@ -210,7 +219,7 @@ public final class GateserverOuterClass { } /** - * optional bool unk2 = 9; + * optional bool unk2 = 8; * @param value the unk2 to set * @return this */ @@ -221,7 +230,7 @@ public final class GateserverOuterClass { } /** - * optional bool unk3 = 170; + * optional bool unk3 = 66; * @return whether the unk3 field is set */ public boolean hasUnk3() { @@ -229,7 +238,7 @@ public final class GateserverOuterClass { } /** - * optional bool unk3 = 170; + * optional bool unk3 = 66; * @return this */ public Gateserver clearUnk3() { @@ -239,7 +248,7 @@ public final class GateserverOuterClass { } /** - * optional bool unk3 = 170; + * optional bool unk3 = 66; * @return the unk3 */ public boolean getUnk3() { @@ -247,7 +256,7 @@ public final class GateserverOuterClass { } /** - * optional bool unk3 = 170; + * optional bool unk3 = 66; * @param value the unk3 to set * @return this */ @@ -258,7 +267,7 @@ public final class GateserverOuterClass { } /** - * optional bool unk4 = 1397; + * optional bool unk4 = 551; * @return whether the unk4 field is set */ public boolean hasUnk4() { @@ -266,7 +275,7 @@ public final class GateserverOuterClass { } /** - * optional bool unk4 = 1397; + * optional bool unk4 = 551; * @return this */ public Gateserver clearUnk4() { @@ -276,7 +285,7 @@ public final class GateserverOuterClass { } /** - * optional bool unk4 = 1397; + * optional bool unk4 = 551; * @return the unk4 */ public boolean getUnk4() { @@ -284,7 +293,7 @@ public final class GateserverOuterClass { } /** - * optional bool unk4 = 1397; + * optional bool unk4 = 551; * @param value the unk4 to set * @return this */ @@ -295,7 +304,11 @@ public final class GateserverOuterClass { } /** - * optional bool unk5 = 1649; + *
+     * bool unk5 = 646;
+     * 
+ * + * optional bool unk5 = 929; * @return whether the unk5 field is set */ public boolean hasUnk5() { @@ -303,7 +316,11 @@ public final class GateserverOuterClass { } /** - * optional bool unk5 = 1649; + *
+     * bool unk5 = 646;
+     * 
+ * + * optional bool unk5 = 929; * @return this */ public Gateserver clearUnk5() { @@ -313,7 +330,11 @@ public final class GateserverOuterClass { } /** - * optional bool unk5 = 1649; + *
+     * bool unk5 = 646;
+     * 
+ * + * optional bool unk5 = 929; * @return the unk5 */ public boolean getUnk5() { @@ -321,7 +342,11 @@ public final class GateserverOuterClass { } /** - * optional bool unk5 = 1649; + *
+     * bool unk5 = 646;
+     * 
+ * + * optional bool unk5 = 929; * @param value the unk5 to set * @return this */ @@ -332,202 +357,174 @@ public final class GateserverOuterClass { } /** - * optional string msg = 1; - * @return whether the msg field is set + * optional bool unk6 = 979; + * @return whether the unk6 field is set */ - public boolean hasMsg() { + public boolean hasUnk6() { return (bitField0_ & 0x00000040) != 0; } /** - * optional string msg = 1; + * optional bool unk6 = 979; * @return this */ - public Gateserver clearMsg() { + public Gateserver clearUnk6() { bitField0_ &= ~0x00000040; - msg.clear(); + unk6 = false; return this; } /** - * optional string msg = 1; - * @return the msg + * optional bool unk6 = 979; + * @return the unk6 */ - public String getMsg() { - return msg.getString(); + public boolean getUnk6() { + return unk6; } /** - * 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 + * optional bool unk6 = 979; + * @param value the unk6 to set * @return this */ - public Gateserver setMsg(final CharSequence value) { + public Gateserver setUnk6(final boolean value) { bitField0_ |= 0x00000040; - msg.copyFrom(value); + unk6 = value; return this; } /** - * optional string msg = 1; - * @param value the msg to set - * @return this + * optional string asset_bundle_url = 1; + * @return whether the assetBundleUrl field is set */ - 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() { + public boolean hasAssetBundleUrl() { return (bitField0_ & 0x00000080) != 0; } /** - * optional string ip = 3; + * optional string asset_bundle_url = 1; * @return this */ - public Gateserver clearIp() { + public Gateserver clearAssetBundleUrl() { bitField0_ &= ~0x00000080; - ip.clear(); + assetBundleUrl.clear(); return this; } /** - * optional string ip = 3; - * @return the ip + * optional string asset_bundle_url = 1; + * @return the assetBundleUrl */ - public String getIp() { - return ip.getString(); + public String getAssetBundleUrl() { + return assetBundleUrl.getString(); } /** - * optional string ip = 3; - * @return internal {@code Utf8String} representation of ip for reading + * optional string asset_bundle_url = 1; + * @return internal {@code Utf8String} representation of assetBundleUrl for reading */ - public Utf8String getIpBytes() { - return this.ip; + public Utf8String getAssetBundleUrlBytes() { + return this.assetBundleUrl; } /** - * optional string ip = 3; - * @return internal {@code Utf8String} representation of ip for modifications + * optional string asset_bundle_url = 1; + * @return internal {@code Utf8String} representation of assetBundleUrl for modifications */ - public Utf8String getMutableIpBytes() { + public Utf8String getMutableAssetBundleUrlBytes() { bitField0_ |= 0x00000080; - return this.ip; + return this.assetBundleUrl; } /** - * optional string ip = 3; - * @param value the ip to set + * optional string asset_bundle_url = 1; + * @param value the assetBundleUrl to set * @return this */ - public Gateserver setIp(final CharSequence value) { + public Gateserver setAssetBundleUrl(final CharSequence value) { bitField0_ |= 0x00000080; - ip.copyFrom(value); + assetBundleUrl.copyFrom(value); return this; } /** - * optional string ip = 3; - * @param value the ip to set + * optional string asset_bundle_url = 1; + * @param value the assetBundleUrl to set * @return this */ - public Gateserver setIp(final Utf8String value) { + public Gateserver setAssetBundleUrl(final Utf8String value) { bitField0_ |= 0x00000080; - ip.copyFrom(value); + assetBundleUrl.copyFrom(value); return this; } /** - * optional string region_name = 4; - * @return whether the regionName field is set + * optional string ex_resource_url = 9; + * @return whether the exResourceUrl field is set */ - public boolean hasRegionName() { + public boolean hasExResourceUrl() { return (bitField0_ & 0x00000100) != 0; } /** - * optional string region_name = 4; + * optional string ex_resource_url = 9; * @return this */ - public Gateserver clearRegionName() { + public Gateserver clearExResourceUrl() { bitField0_ &= ~0x00000100; - regionName.clear(); + exResourceUrl.clear(); return this; } /** - * optional string region_name = 4; - * @return the regionName + * optional string ex_resource_url = 9; + * @return the exResourceUrl */ - public String getRegionName() { - return regionName.getString(); + public String getExResourceUrl() { + return exResourceUrl.getString(); } /** - * optional string region_name = 4; - * @return internal {@code Utf8String} representation of regionName for reading + * optional string ex_resource_url = 9; + * @return internal {@code Utf8String} representation of exResourceUrl for reading */ - public Utf8String getRegionNameBytes() { - return this.regionName; + public Utf8String getExResourceUrlBytes() { + return this.exResourceUrl; } /** - * optional string region_name = 4; - * @return internal {@code Utf8String} representation of regionName for modifications + * optional string ex_resource_url = 9; + * @return internal {@code Utf8String} representation of exResourceUrl for modifications */ - public Utf8String getMutableRegionNameBytes() { + public Utf8String getMutableExResourceUrlBytes() { bitField0_ |= 0x00000100; - return this.regionName; + return this.exResourceUrl; } /** - * optional string region_name = 4; - * @param value the regionName to set + * optional string ex_resource_url = 9; + * @param value the exResourceUrl to set * @return this */ - public Gateserver setRegionName(final CharSequence value) { + public Gateserver setExResourceUrl(final CharSequence value) { bitField0_ |= 0x00000100; - regionName.copyFrom(value); + exResourceUrl.copyFrom(value); return this; } /** - * optional string region_name = 4; - * @param value the regionName to set + * optional string ex_resource_url = 9; + * @param value the exResourceUrl to set * @return this */ - public Gateserver setRegionName(final Utf8String value) { + public Gateserver setExResourceUrl(final Utf8String value) { bitField0_ |= 0x00000100; - regionName.copyFrom(value); + exResourceUrl.copyFrom(value); return this; } /** - * optional string lua_url = 10; + * optional string lua_url = 11; * @return whether the luaUrl field is set */ public boolean hasLuaUrl() { @@ -535,7 +532,7 @@ public final class GateserverOuterClass { } /** - * optional string lua_url = 10; + * optional string lua_url = 11; * @return this */ public Gateserver clearLuaUrl() { @@ -545,7 +542,7 @@ public final class GateserverOuterClass { } /** - * optional string lua_url = 10; + * optional string lua_url = 11; * @return the luaUrl */ public String getLuaUrl() { @@ -553,7 +550,7 @@ public final class GateserverOuterClass { } /** - * optional string lua_url = 10; + * optional string lua_url = 11; * @return internal {@code Utf8String} representation of luaUrl for reading */ public Utf8String getLuaUrlBytes() { @@ -561,7 +558,7 @@ public final class GateserverOuterClass { } /** - * optional string lua_url = 10; + * optional string lua_url = 11; * @return internal {@code Utf8String} representation of luaUrl for modifications */ public Utf8String getMutableLuaUrlBytes() { @@ -570,7 +567,7 @@ public final class GateserverOuterClass { } /** - * optional string lua_url = 10; + * optional string lua_url = 11; * @param value the luaUrl to set * @return this */ @@ -581,7 +578,7 @@ public final class GateserverOuterClass { } /** - * optional string lua_url = 10; + * optional string lua_url = 11; * @param value the luaUrl to set * @return this */ @@ -592,220 +589,155 @@ public final class GateserverOuterClass { } /** - * optional string ex_resource_url = 12; - * @return whether the exResourceUrl field is set + * optional string ip = 12; + * @return whether the ip field is set */ - public boolean hasExResourceUrl() { + public boolean hasIp() { return (bitField0_ & 0x00000400) != 0; } /** - * optional string ex_resource_url = 12; + * optional string ip = 12; * @return this */ - public Gateserver clearExResourceUrl() { + public Gateserver clearIp() { bitField0_ &= ~0x00000400; - exResourceUrl.clear(); + ip.clear(); return this; } /** - * optional string ex_resource_url = 12; - * @return the exResourceUrl + * optional string ip = 12; + * @return the ip */ - public String getExResourceUrl() { - return exResourceUrl.getString(); + public String getIp() { + return ip.getString(); } /** - * optional string ex_resource_url = 12; - * @return internal {@code Utf8String} representation of exResourceUrl for reading + * optional string ip = 12; + * @return internal {@code Utf8String} representation of ip for reading */ - public Utf8String getExResourceUrlBytes() { - return this.exResourceUrl; + public Utf8String getIpBytes() { + return this.ip; } /** - * optional string ex_resource_url = 12; - * @return internal {@code Utf8String} representation of exResourceUrl for modifications + * optional string ip = 12; + * @return internal {@code Utf8String} representation of ip for modifications */ - public Utf8String getMutableExResourceUrlBytes() { + public Utf8String getMutableIpBytes() { bitField0_ |= 0x00000400; - return this.exResourceUrl; + return this.ip; } /** - * optional string ex_resource_url = 12; - * @param value the exResourceUrl to set + * optional string ip = 12; + * @param value the ip to set * @return this */ - public Gateserver setExResourceUrl(final CharSequence value) { + public Gateserver setIp(final CharSequence value) { bitField0_ |= 0x00000400; - exResourceUrl.copyFrom(value); + ip.copyFrom(value); return this; } /** - * optional string ex_resource_url = 12; - * @param value the exResourceUrl to set + * optional string ip = 12; + * @param value the ip to set * @return this */ - public Gateserver setExResourceUrl(final Utf8String value) { + public Gateserver setIp(final Utf8String value) { bitField0_ |= 0x00000400; - exResourceUrl.copyFrom(value); + ip.copyFrom(value); return this; } /** - * optional string asset_bundle_url = 14; - * @return whether the assetBundleUrl field is set + * optional string region_name = 13; + * @return whether the regionName field is set */ - public boolean hasAssetBundleUrl() { + public boolean hasRegionName() { return (bitField0_ & 0x00000800) != 0; } /** - * optional string asset_bundle_url = 14; + * optional string region_name = 13; * @return this */ - public Gateserver clearAssetBundleUrl() { + public Gateserver clearRegionName() { bitField0_ &= ~0x00000800; - assetBundleUrl.clear(); + regionName.clear(); return this; } /** - * optional string asset_bundle_url = 14; - * @return the assetBundleUrl + * optional string region_name = 13; + * @return the regionName */ - public String getAssetBundleUrl() { - return assetBundleUrl.getString(); + public String getRegionName() { + return regionName.getString(); } /** - * optional string asset_bundle_url = 14; - * @return internal {@code Utf8String} representation of assetBundleUrl for reading + * optional string region_name = 13; + * @return internal {@code Utf8String} representation of regionName for reading */ - public Utf8String getAssetBundleUrlBytes() { - return this.assetBundleUrl; + public Utf8String getRegionNameBytes() { + return this.regionName; } /** - * optional string asset_bundle_url = 14; - * @return internal {@code Utf8String} representation of assetBundleUrl for modifications + * optional string region_name = 13; + * @return internal {@code Utf8String} representation of regionName for modifications */ - public Utf8String getMutableAssetBundleUrlBytes() { + public Utf8String getMutableRegionNameBytes() { bitField0_ |= 0x00000800; - return this.assetBundleUrl; + return this.regionName; } /** - * optional string asset_bundle_url = 14; - * @param value the assetBundleUrl to set + * optional string region_name = 13; + * @param value the regionName to set * @return this */ - public Gateserver setAssetBundleUrl(final CharSequence value) { + public Gateserver setRegionName(final CharSequence value) { bitField0_ |= 0x00000800; - assetBundleUrl.copyFrom(value); + regionName.copyFrom(value); return this; } /** - * optional string asset_bundle_url = 14; - * @param value the assetBundleUrl to set + * optional string region_name = 13; + * @param value the regionName to set * @return this */ - public Gateserver setAssetBundleUrl(final Utf8String value) { + public Gateserver setRegionName(final Utf8String value) { bitField0_ |= 0x00000800; - assetBundleUrl.copyFrom(value); + regionName.copyFrom(value); return this; } /** - * optional string ifix_version = 20; - * @return whether the ifixVersion field is set + * optional string ifix_url = 140; + * @return whether the ifixUrl field is set */ - public boolean hasIfixVersion() { + public boolean hasIfixUrl() { return (bitField0_ & 0x00001000) != 0; } /** - * optional string ifix_version = 20; - * @return this - */ - public Gateserver clearIfixVersion() { - bitField0_ &= ~0x00001000; - ifixVersion.clear(); - return this; - } - - /** - * optional string ifix_version = 20; - * @return the ifixVersion - */ - public String getIfixVersion() { - return ifixVersion.getString(); - } - - /** - * optional string ifix_version = 20; - * @return internal {@code Utf8String} representation of ifixVersion for reading - */ - public Utf8String getIfixVersionBytes() { - return this.ifixVersion; - } - - /** - * optional string ifix_version = 20; - * @return internal {@code Utf8String} representation of ifixVersion for modifications - */ - public Utf8String getMutableIfixVersionBytes() { - bitField0_ |= 0x00001000; - return this.ifixVersion; - } - - /** - * optional string ifix_version = 20; - * @param value the ifixVersion to set - * @return this - */ - public Gateserver setIfixVersion(final CharSequence value) { - bitField0_ |= 0x00001000; - ifixVersion.copyFrom(value); - return this; - } - - /** - * optional string ifix_version = 20; - * @param value the ifixVersion to set - * @return this - */ - public Gateserver setIfixVersion(final Utf8String value) { - bitField0_ |= 0x00001000; - ifixVersion.copyFrom(value); - return this; - } - - /** - * optional string ifix_url = 98; - * @return whether the ifixUrl field is set - */ - public boolean hasIfixUrl() { - return (bitField0_ & 0x00002000) != 0; - } - - /** - * optional string ifix_url = 98; + * optional string ifix_url = 140; * @return this */ public Gateserver clearIfixUrl() { - bitField0_ &= ~0x00002000; + bitField0_ &= ~0x00001000; ifixUrl.clear(); return this; } /** - * optional string ifix_url = 98; + * optional string ifix_url = 140; * @return the ifixUrl */ public String getIfixUrl() { @@ -813,7 +745,7 @@ public final class GateserverOuterClass { } /** - * optional string ifix_url = 98; + * optional string ifix_url = 140; * @return internal {@code Utf8String} representation of ifixUrl for reading */ public Utf8String getIfixUrlBytes() { @@ -821,56 +753,56 @@ public final class GateserverOuterClass { } /** - * optional string ifix_url = 98; + * optional string ifix_url = 140; * @return internal {@code Utf8String} representation of ifixUrl for modifications */ public Utf8String getMutableIfixUrlBytes() { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00001000; return this.ifixUrl; } /** - * optional string ifix_url = 98; + * optional string ifix_url = 140; * @param value the ifixUrl to set * @return this */ public Gateserver setIfixUrl(final CharSequence value) { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00001000; ifixUrl.copyFrom(value); return this; } /** - * optional string ifix_url = 98; + * optional string ifix_url = 140; * @param value the ifixUrl to set * @return this */ public Gateserver setIfixUrl(final Utf8String value) { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00001000; ifixUrl.copyFrom(value); return this; } /** - * optional string client_secret_key = 239; + * optional string client_secret_key = 591; * @return whether the clientSecretKey field is set */ public boolean hasClientSecretKey() { - return (bitField0_ & 0x00004000) != 0; + return (bitField0_ & 0x00002000) != 0; } /** - * optional string client_secret_key = 239; + * optional string client_secret_key = 591; * @return this */ public Gateserver clearClientSecretKey() { - bitField0_ &= ~0x00004000; + bitField0_ &= ~0x00002000; clientSecretKey.clear(); return this; } /** - * optional string client_secret_key = 239; + * optional string client_secret_key = 591; * @return the clientSecretKey */ public String getClientSecretKey() { @@ -878,7 +810,7 @@ public final class GateserverOuterClass { } /** - * optional string client_secret_key = 239; + * optional string client_secret_key = 591; * @return internal {@code Utf8String} representation of clientSecretKey for reading */ public Utf8String getClientSecretKeyBytes() { @@ -886,56 +818,186 @@ public final class GateserverOuterClass { } /** - * optional string client_secret_key = 239; + * optional string client_secret_key = 591; * @return internal {@code Utf8String} representation of clientSecretKey for modifications */ public Utf8String getMutableClientSecretKeyBytes() { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00002000; return this.clientSecretKey; } /** - * optional string client_secret_key = 239; + * optional string client_secret_key = 591; * @param value the clientSecretKey to set * @return this */ public Gateserver setClientSecretKey(final CharSequence value) { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00002000; clientSecretKey.copyFrom(value); return this; } /** - * optional string client_secret_key = 239; + * optional string client_secret_key = 591; * @param value the clientSecretKey to set * @return this */ public Gateserver setClientSecretKey(final Utf8String value) { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00002000; clientSecretKey.copyFrom(value); return this; } /** - * optional string mdk_res_version = 1506; - * @return whether the mdkResVersion field is set + * optional string msg = 1076; + * @return whether the msg field is set */ - public boolean hasMdkResVersion() { + public boolean hasMsg() { + return (bitField0_ & 0x00004000) != 0; + } + + /** + * optional string msg = 1076; + * @return this + */ + public Gateserver clearMsg() { + bitField0_ &= ~0x00004000; + msg.clear(); + return this; + } + + /** + * optional string msg = 1076; + * @return the msg + */ + public String getMsg() { + return msg.getString(); + } + + /** + * optional string msg = 1076; + * @return internal {@code Utf8String} representation of msg for reading + */ + public Utf8String getMsgBytes() { + return this.msg; + } + + /** + * optional string msg = 1076; + * @return internal {@code Utf8String} representation of msg for modifications + */ + public Utf8String getMutableMsgBytes() { + bitField0_ |= 0x00004000; + return this.msg; + } + + /** + * optional string msg = 1076; + * @param value the msg to set + * @return this + */ + public Gateserver setMsg(final CharSequence value) { + bitField0_ |= 0x00004000; + msg.copyFrom(value); + return this; + } + + /** + * optional string msg = 1076; + * @param value the msg to set + * @return this + */ + public Gateserver setMsg(final Utf8String value) { + bitField0_ |= 0x00004000; + msg.copyFrom(value); + return this; + } + + /** + * optional string ifix_version = 1444; + * @return whether the ifixVersion field is set + */ + public boolean hasIfixVersion() { return (bitField0_ & 0x00008000) != 0; } /** - * optional string mdk_res_version = 1506; + * optional string ifix_version = 1444; + * @return this + */ + public Gateserver clearIfixVersion() { + bitField0_ &= ~0x00008000; + ifixVersion.clear(); + return this; + } + + /** + * optional string ifix_version = 1444; + * @return the ifixVersion + */ + public String getIfixVersion() { + return ifixVersion.getString(); + } + + /** + * optional string ifix_version = 1444; + * @return internal {@code Utf8String} representation of ifixVersion for reading + */ + public Utf8String getIfixVersionBytes() { + return this.ifixVersion; + } + + /** + * optional string ifix_version = 1444; + * @return internal {@code Utf8String} representation of ifixVersion for modifications + */ + public Utf8String getMutableIfixVersionBytes() { + bitField0_ |= 0x00008000; + return this.ifixVersion; + } + + /** + * optional string ifix_version = 1444; + * @param value the ifixVersion to set + * @return this + */ + public Gateserver setIfixVersion(final CharSequence value) { + bitField0_ |= 0x00008000; + ifixVersion.copyFrom(value); + return this; + } + + /** + * optional string ifix_version = 1444; + * @param value the ifixVersion to set + * @return this + */ + public Gateserver setIfixVersion(final Utf8String value) { + bitField0_ |= 0x00008000; + ifixVersion.copyFrom(value); + return this; + } + + /** + * optional string mdk_res_version = 1456; + * @return whether the mdkResVersion field is set + */ + public boolean hasMdkResVersion() { + return (bitField0_ & 0x00010000) != 0; + } + + /** + * optional string mdk_res_version = 1456; * @return this */ public Gateserver clearMdkResVersion() { - bitField0_ &= ~0x00008000; + bitField0_ &= ~0x00010000; mdkResVersion.clear(); return this; } /** - * optional string mdk_res_version = 1506; + * optional string mdk_res_version = 1456; * @return the mdkResVersion */ public String getMdkResVersion() { @@ -943,7 +1005,7 @@ public final class GateserverOuterClass { } /** - * optional string mdk_res_version = 1506; + * optional string mdk_res_version = 1456; * @return internal {@code Utf8String} representation of mdkResVersion for reading */ public Utf8String getMdkResVersionBytes() { @@ -951,32 +1013,32 @@ public final class GateserverOuterClass { } /** - * optional string mdk_res_version = 1506; + * optional string mdk_res_version = 1456; * @return internal {@code Utf8String} representation of mdkResVersion for modifications */ public Utf8String getMutableMdkResVersionBytes() { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; return this.mdkResVersion; } /** - * optional string mdk_res_version = 1506; + * optional string mdk_res_version = 1456; * @param value the mdkResVersion to set * @return this */ public Gateserver setMdkResVersion(final CharSequence value) { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; mdkResVersion.copyFrom(value); return this; } /** - * optional string mdk_res_version = 1506; + * optional string mdk_res_version = 1456; * @param value the mdkResVersion to set * @return this */ public Gateserver setMdkResVersion(final Utf8String value) { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; mdkResVersion.copyFrom(value); return this; } @@ -992,15 +1054,16 @@ public final class GateserverOuterClass { unk3 = other.unk3; unk4 = other.unk4; unk5 = other.unk5; - msg.copyFrom(other.msg); + unk6 = other.unk6; + assetBundleUrl.copyFrom(other.assetBundleUrl); + exResourceUrl.copyFrom(other.exResourceUrl); + luaUrl.copyFrom(other.luaUrl); ip.copyFrom(other.ip); regionName.copyFrom(other.regionName); - luaUrl.copyFrom(other.luaUrl); - exResourceUrl.copyFrom(other.exResourceUrl); - assetBundleUrl.copyFrom(other.assetBundleUrl); - ifixVersion.copyFrom(other.ifixVersion); ifixUrl.copyFrom(other.ifixUrl); clientSecretKey.copyFrom(other.clientSecretKey); + msg.copyFrom(other.msg); + ifixVersion.copyFrom(other.ifixVersion); mdkResVersion.copyFrom(other.mdkResVersion); } return this; @@ -1030,8 +1093,17 @@ public final class GateserverOuterClass { if (other.hasUnk5()) { setUnk5(other.unk5); } - if (other.hasMsg()) { - getMutableMsgBytes().copyFrom(other.msg); + if (other.hasUnk6()) { + setUnk6(other.unk6); + } + if (other.hasAssetBundleUrl()) { + getMutableAssetBundleUrlBytes().copyFrom(other.assetBundleUrl); + } + if (other.hasExResourceUrl()) { + getMutableExResourceUrlBytes().copyFrom(other.exResourceUrl); + } + if (other.hasLuaUrl()) { + getMutableLuaUrlBytes().copyFrom(other.luaUrl); } if (other.hasIp()) { getMutableIpBytes().copyFrom(other.ip); @@ -1039,24 +1111,18 @@ public final class GateserverOuterClass { if (other.hasRegionName()) { getMutableRegionNameBytes().copyFrom(other.regionName); } - if (other.hasLuaUrl()) { - getMutableLuaUrlBytes().copyFrom(other.luaUrl); - } - if (other.hasExResourceUrl()) { - getMutableExResourceUrlBytes().copyFrom(other.exResourceUrl); - } - if (other.hasAssetBundleUrl()) { - getMutableAssetBundleUrlBytes().copyFrom(other.assetBundleUrl); - } - if (other.hasIfixVersion()) { - getMutableIfixVersionBytes().copyFrom(other.ifixVersion); - } if (other.hasIfixUrl()) { getMutableIfixUrlBytes().copyFrom(other.ifixUrl); } if (other.hasClientSecretKey()) { getMutableClientSecretKeyBytes().copyFrom(other.clientSecretKey); } + if (other.hasMsg()) { + getMutableMsgBytes().copyFrom(other.msg); + } + if (other.hasIfixVersion()) { + getMutableIfixVersionBytes().copyFrom(other.ifixVersion); + } if (other.hasMdkResVersion()) { getMutableMdkResVersionBytes().copyFrom(other.mdkResVersion); } @@ -1076,15 +1142,16 @@ public final class GateserverOuterClass { unk3 = false; unk4 = false; unk5 = false; - msg.clear(); + unk6 = false; + assetBundleUrl.clear(); + exResourceUrl.clear(); + luaUrl.clear(); ip.clear(); regionName.clear(); - luaUrl.clear(); - exResourceUrl.clear(); - assetBundleUrl.clear(); - ifixVersion.clear(); ifixUrl.clear(); clientSecretKey.clear(); + msg.clear(); + ifixVersion.clear(); mdkResVersion.clear(); return this; } @@ -1096,15 +1163,15 @@ public final class GateserverOuterClass { } cachedSize = -1; bitField0_ = 0; - msg.clear(); + assetBundleUrl.clear(); + exResourceUrl.clear(); + luaUrl.clear(); ip.clear(); regionName.clear(); - luaUrl.clear(); - exResourceUrl.clear(); - assetBundleUrl.clear(); - ifixVersion.clear(); ifixUrl.clear(); clientSecretKey.clear(); + msg.clear(); + ifixVersion.clear(); mdkResVersion.clear(); return this; } @@ -1125,82 +1192,87 @@ public final class GateserverOuterClass { && (!hasUnk3() || unk3 == other.unk3) && (!hasUnk4() || unk4 == other.unk4) && (!hasUnk5() || unk5 == other.unk5) - && (!hasMsg() || msg.equals(other.msg)) + && (!hasUnk6() || unk6 == other.unk6) + && (!hasAssetBundleUrl() || assetBundleUrl.equals(other.assetBundleUrl)) + && (!hasExResourceUrl() || exResourceUrl.equals(other.exResourceUrl)) + && (!hasLuaUrl() || luaUrl.equals(other.luaUrl)) && (!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)) - && (!hasIfixVersion() || ifixVersion.equals(other.ifixVersion)) && (!hasIfixUrl() || ifixUrl.equals(other.ifixUrl)) && (!hasClientSecretKey() || clientSecretKey.equals(other.clientSecretKey)) + && (!hasMsg() || msg.equals(other.msg)) + && (!hasIfixVersion() || ifixVersion.equals(other.ifixVersion)) && (!hasMdkResVersion() || mdkResVersion.equals(other.mdkResVersion)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 56); output.writeUInt32NoTag(port); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 32); output.writeBoolNoTag(unk1); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 72); + output.writeRawByte((byte) 64); output.writeBoolNoTag(unk2); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawLittleEndian16((short) 2768); + output.writeRawLittleEndian16((short) 1168); output.writeBoolNoTag(unk3); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawLittleEndian16((short) 22440); + output.writeRawLittleEndian16((short) 8888); output.writeBoolNoTag(unk4); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRawLittleEndian16((short) 26504); + output.writeRawLittleEndian16((short) 14984); output.writeBoolNoTag(unk5); } if ((bitField0_ & 0x00000040) != 0) { - output.writeRawByte((byte) 10); - output.writeStringNoTag(msg); + output.writeRawLittleEndian16((short) 15768); + output.writeBoolNoTag(unk6); } if ((bitField0_ & 0x00000080) != 0) { - output.writeRawByte((byte) 26); - output.writeStringNoTag(ip); + output.writeRawByte((byte) 10); + output.writeStringNoTag(assetBundleUrl); } if ((bitField0_ & 0x00000100) != 0) { - output.writeRawByte((byte) 34); - output.writeStringNoTag(regionName); + output.writeRawByte((byte) 74); + output.writeStringNoTag(exResourceUrl); } if ((bitField0_ & 0x00000200) != 0) { - output.writeRawByte((byte) 82); + output.writeRawByte((byte) 90); output.writeStringNoTag(luaUrl); } if ((bitField0_ & 0x00000400) != 0) { output.writeRawByte((byte) 98); - output.writeStringNoTag(exResourceUrl); + output.writeStringNoTag(ip); } if ((bitField0_ & 0x00000800) != 0) { - output.writeRawByte((byte) 114); - output.writeStringNoTag(assetBundleUrl); + output.writeRawByte((byte) 106); + output.writeStringNoTag(regionName); } if ((bitField0_ & 0x00001000) != 0) { - output.writeRawLittleEndian16((short) 418); - output.writeStringNoTag(ifixVersion); - } - if ((bitField0_ & 0x00002000) != 0) { - output.writeRawLittleEndian16((short) 1682); + output.writeRawLittleEndian16((short) 2274); output.writeStringNoTag(ifixUrl); } - if ((bitField0_ & 0x00004000) != 0) { - output.writeRawLittleEndian16((short) 3834); + if ((bitField0_ & 0x00002000) != 0) { + output.writeRawLittleEndian16((short) 9466); output.writeStringNoTag(clientSecretKey); } + if ((bitField0_ & 0x00004000) != 0) { + output.writeRawLittleEndian16((short) 17314); + output.writeStringNoTag(msg); + } if ((bitField0_ & 0x00008000) != 0) { - output.writeRawLittleEndian16((short) 24210); + output.writeRawLittleEndian16((short) 23202); + output.writeStringNoTag(ifixVersion); + } + if ((bitField0_ & 0x00010000) != 0) { + output.writeRawLittleEndian16((short) 23426); output.writeStringNoTag(mdkResVersion); } } @@ -1227,33 +1299,36 @@ public final class GateserverOuterClass { size += 3; } if ((bitField0_ & 0x00000040) != 0) { - size += 1 + ProtoSink.computeStringSizeNoTag(msg); + size += 3; } if ((bitField0_ & 0x00000080) != 0) { - size += 1 + ProtoSink.computeStringSizeNoTag(ip); + size += 1 + ProtoSink.computeStringSizeNoTag(assetBundleUrl); } if ((bitField0_ & 0x00000100) != 0) { - size += 1 + ProtoSink.computeStringSizeNoTag(regionName); + size += 1 + ProtoSink.computeStringSizeNoTag(exResourceUrl); } if ((bitField0_ & 0x00000200) != 0) { size += 1 + ProtoSink.computeStringSizeNoTag(luaUrl); } if ((bitField0_ & 0x00000400) != 0) { - size += 1 + ProtoSink.computeStringSizeNoTag(exResourceUrl); + size += 1 + ProtoSink.computeStringSizeNoTag(ip); } if ((bitField0_ & 0x00000800) != 0) { - size += 1 + ProtoSink.computeStringSizeNoTag(assetBundleUrl); + size += 1 + ProtoSink.computeStringSizeNoTag(regionName); } if ((bitField0_ & 0x00001000) != 0) { - size += 2 + ProtoSink.computeStringSizeNoTag(ifixVersion); - } - if ((bitField0_ & 0x00002000) != 0) { size += 2 + ProtoSink.computeStringSizeNoTag(ifixUrl); } - if ((bitField0_ & 0x00004000) != 0) { + if ((bitField0_ & 0x00002000) != 0) { size += 2 + ProtoSink.computeStringSizeNoTag(clientSecretKey); } + if ((bitField0_ & 0x00004000) != 0) { + size += 2 + ProtoSink.computeStringSizeNoTag(msg); + } if ((bitField0_ & 0x00008000) != 0) { + size += 2 + ProtoSink.computeStringSizeNoTag(ifixVersion); + } + if ((bitField0_ & 0x00010000) != 0) { size += 2 + ProtoSink.computeStringSizeNoTag(mdkResVersion); } return size; @@ -1266,88 +1341,88 @@ public final class GateserverOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 120: { + case 56: { // port port = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 40) { + if (tag != 32) { break; } } - case 40: { + case 32: { // unk1 unk1 = input.readBool(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 72) { + if (tag != 64) { break; } } - case 72: { + case 64: { // unk2 unk2 = input.readBool(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 1360) { + if (tag != 528) { break; } } - case 1360: { + case 528: { // unk3 unk3 = input.readBool(); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 11176) { + if (tag != 4408) { break; } } - case 11176: { + case 4408: { // unk4 unk4 = input.readBool(); bitField0_ |= 0x00000010; tag = input.readTag(); - if (tag != 13192) { + if (tag != 7432) { break; } } - case 13192: { + case 7432: { // unk5 unk5 = input.readBool(); bitField0_ |= 0x00000020; tag = input.readTag(); + if (tag != 7832) { + break; + } + } + case 7832: { + // unk6 + unk6 = input.readBool(); + bitField0_ |= 0x00000040; + tag = input.readTag(); if (tag != 10) { break; } } case 10: { - // msg - input.readString(msg); - bitField0_ |= 0x00000040; - tag = input.readTag(); - if (tag != 26) { - break; - } - } - case 26: { - // ip - input.readString(ip); + // assetBundleUrl + input.readString(assetBundleUrl); bitField0_ |= 0x00000080; tag = input.readTag(); - if (tag != 34) { + if (tag != 74) { break; } } - case 34: { - // regionName - input.readString(regionName); + case 74: { + // exResourceUrl + input.readString(exResourceUrl); bitField0_ |= 0x00000100; tag = input.readTag(); - if (tag != 82) { + if (tag != 90) { break; } } - case 82: { + case 90: { // luaUrl input.readString(luaUrl); bitField0_ |= 0x00000200; @@ -1357,54 +1432,63 @@ public final class GateserverOuterClass { } } case 98: { - // exResourceUrl - input.readString(exResourceUrl); + // ip + input.readString(ip); bitField0_ |= 0x00000400; tag = input.readTag(); - if (tag != 114) { + if (tag != 106) { break; } } - case 114: { - // assetBundleUrl - input.readString(assetBundleUrl); + case 106: { + // regionName + input.readString(regionName); bitField0_ |= 0x00000800; tag = input.readTag(); - if (tag != 162) { + if (tag != 1122) { break; } } - case 162: { - // ifixVersion - input.readString(ifixVersion); - bitField0_ |= 0x00001000; - tag = input.readTag(); - if (tag != 786) { - break; - } - } - case 786: { + case 1122: { // ifixUrl input.readString(ifixUrl); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00001000; tag = input.readTag(); - if (tag != 1914) { + if (tag != 4730) { break; } } - case 1914: { + case 4730: { // clientSecretKey input.readString(clientSecretKey); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00002000; tag = input.readTag(); - if (tag != 12050) { + if (tag != 8610) { break; } } - case 12050: { + case 8610: { + // msg + input.readString(msg); + bitField0_ |= 0x00004000; + tag = input.readTag(); + if (tag != 11554) { + break; + } + } + case 11554: { + // ifixVersion + input.readString(ifixVersion); + bitField0_ |= 0x00008000; + tag = input.readTag(); + if (tag != 11650) { + break; + } + } + case 11650: { // mdkResVersion input.readString(mdkResVersion); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; tag = input.readTag(); if (tag != 0) { break; @@ -1446,33 +1530,36 @@ public final class GateserverOuterClass { output.writeBool(FieldNames.unk5, unk5); } if ((bitField0_ & 0x00000040) != 0) { - output.writeString(FieldNames.msg, msg); + output.writeBool(FieldNames.unk6, unk6); } if ((bitField0_ & 0x00000080) != 0) { - output.writeString(FieldNames.ip, ip); + output.writeString(FieldNames.assetBundleUrl, assetBundleUrl); } if ((bitField0_ & 0x00000100) != 0) { - output.writeString(FieldNames.regionName, regionName); + output.writeString(FieldNames.exResourceUrl, exResourceUrl); } if ((bitField0_ & 0x00000200) != 0) { output.writeString(FieldNames.luaUrl, luaUrl); } if ((bitField0_ & 0x00000400) != 0) { - output.writeString(FieldNames.exResourceUrl, exResourceUrl); + output.writeString(FieldNames.ip, ip); } if ((bitField0_ & 0x00000800) != 0) { - output.writeString(FieldNames.assetBundleUrl, assetBundleUrl); + output.writeString(FieldNames.regionName, regionName); } if ((bitField0_ & 0x00001000) != 0) { - output.writeString(FieldNames.ifixVersion, ifixVersion); - } - if ((bitField0_ & 0x00002000) != 0) { output.writeString(FieldNames.ifixUrl, ifixUrl); } - if ((bitField0_ & 0x00004000) != 0) { + if ((bitField0_ & 0x00002000) != 0) { output.writeString(FieldNames.clientSecretKey, clientSecretKey); } + if ((bitField0_ & 0x00004000) != 0) { + output.writeString(FieldNames.msg, msg); + } if ((bitField0_ & 0x00008000) != 0) { + output.writeString(FieldNames.ifixVersion, ifixVersion); + } + if ((bitField0_ & 0x00010000) != 0) { output.writeString(FieldNames.mdkResVersion, mdkResVersion); } output.endObject(); @@ -1551,10 +1638,10 @@ public final class GateserverOuterClass { } break; } - case 108417: { - if (input.isAtField(FieldNames.msg)) { + case 3594628: { + if (input.isAtField(FieldNames.unk6)) { if (!input.trySkipNullValue()) { - input.readString(msg); + unk6 = input.readBool(); bitField0_ |= 0x00000040; } } else { @@ -1562,10 +1649,11 @@ public final class GateserverOuterClass { } break; } - case 3367: { - if (input.isAtField(FieldNames.ip)) { + case -1116358531: + case 1973569761: { + if (input.isAtField(FieldNames.assetBundleUrl)) { if (!input.trySkipNullValue()) { - input.readString(ip); + input.readString(assetBundleUrl); bitField0_ |= 0x00000080; } } else { @@ -1573,11 +1661,11 @@ public final class GateserverOuterClass { } break; } - case -1990689889: - case -1565768458: { - if (input.isAtField(FieldNames.regionName)) { + case 1643520974: + case -1086137910: { + if (input.isAtField(FieldNames.exResourceUrl)) { if (!input.trySkipNullValue()) { - input.readString(regionName); + input.readString(exResourceUrl); bitField0_ |= 0x00000100; } } else { @@ -1597,11 +1685,10 @@ public final class GateserverOuterClass { } break; } - case 1643520974: - case -1086137910: { - if (input.isAtField(FieldNames.exResourceUrl)) { + case 3367: { + if (input.isAtField(FieldNames.ip)) { if (!input.trySkipNullValue()) { - input.readString(exResourceUrl); + input.readString(ip); bitField0_ |= 0x00000400; } } else { @@ -1609,11 +1696,11 @@ public final class GateserverOuterClass { } break; } - case -1116358531: - case 1973569761: { - if (input.isAtField(FieldNames.assetBundleUrl)) { + case -1990689889: + case -1565768458: { + if (input.isAtField(FieldNames.regionName)) { if (!input.trySkipNullValue()) { - input.readString(assetBundleUrl); + input.readString(regionName); bitField0_ |= 0x00000800; } } else { @@ -1621,24 +1708,12 @@ public final class GateserverOuterClass { } break; } - case 1625073708: - case -827048283: { - if (input.isAtField(FieldNames.ifixVersion)) { - if (!input.trySkipNullValue()) { - input.readString(ifixVersion); - bitField0_ |= 0x00001000; - } - } else { - input.skipUnknownField(); - } - break; - } case 1719409347: case 1762383292: { if (input.isAtField(FieldNames.ifixUrl)) { if (!input.trySkipNullValue()) { input.readString(ifixUrl); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00001000; } } else { input.skipUnknownField(); @@ -1650,6 +1725,17 @@ public final class GateserverOuterClass { if (input.isAtField(FieldNames.clientSecretKey)) { if (!input.trySkipNullValue()) { input.readString(clientSecretKey); + bitField0_ |= 0x00002000; + } + } else { + input.skipUnknownField(); + } + break; + } + case 108417: { + if (input.isAtField(FieldNames.msg)) { + if (!input.trySkipNullValue()) { + input.readString(msg); bitField0_ |= 0x00004000; } } else { @@ -1657,12 +1743,24 @@ public final class GateserverOuterClass { } break; } + case 1625073708: + case -827048283: { + if (input.isAtField(FieldNames.ifixVersion)) { + if (!input.trySkipNullValue()) { + input.readString(ifixVersion); + bitField0_ |= 0x00008000; + } + } else { + input.skipUnknownField(); + } + break; + } case -1415579412: case -204279250: { if (input.isAtField(FieldNames.mdkResVersion)) { if (!input.trySkipNullValue()) { input.readString(mdkResVersion); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; } } else { input.skipUnknownField(); @@ -1733,24 +1831,26 @@ public final class GateserverOuterClass { static final FieldName unk5 = FieldName.forField("unk5"); - static final FieldName msg = FieldName.forField("msg"); + static final FieldName unk6 = FieldName.forField("unk6"); + + static final FieldName assetBundleUrl = FieldName.forField("assetBundleUrl", "asset_bundle_url"); + + static final FieldName exResourceUrl = FieldName.forField("exResourceUrl", "ex_resource_url"); + + static final FieldName luaUrl = FieldName.forField("luaUrl", "lua_url"); 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"); - - static final FieldName exResourceUrl = FieldName.forField("exResourceUrl", "ex_resource_url"); - - static final FieldName assetBundleUrl = FieldName.forField("assetBundleUrl", "asset_bundle_url"); - - 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 msg = FieldName.forField("msg"); + + static final FieldName ifixVersion = FieldName.forField("ifixVersion", "ifix_version"); + static final FieldName mdkResVersion = FieldName.forField("mdkResVersion", "mdk_res_version"); } } diff --git a/src/generated/main/emu/lunarcore/proto/GetActivityScheduleConfigScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetActivityScheduleConfigScRspOuterClass.java index b642ee8..ae92faf 100644 --- a/src/generated/main/emu/lunarcore/proto/GetActivityScheduleConfigScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetActivityScheduleConfigScRspOuterClass.java @@ -20,12 +20,12 @@ public final class GetActivityScheduleConfigScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 2; + * optional uint32 retcode = 3; */ private int retcode; /** - * repeated .ActivityScheduleInfo activity_schedule_list = 10; + * repeated .ActivityScheduleInfo activity_schedule_list = 9; */ private final RepeatedMessage activityScheduleList = RepeatedMessage.newEmptyInstance(ActivityScheduleInfoOuterClass.ActivityScheduleInfo.getFactory()); @@ -40,7 +40,7 @@ public final class GetActivityScheduleConfigScRspOuterClass { } /** - * optional uint32 retcode = 2; + * optional uint32 retcode = 3; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -48,7 +48,7 @@ public final class GetActivityScheduleConfigScRspOuterClass { } /** - * optional uint32 retcode = 2; + * optional uint32 retcode = 3; * @return this */ public GetActivityScheduleConfigScRsp clearRetcode() { @@ -58,7 +58,7 @@ public final class GetActivityScheduleConfigScRspOuterClass { } /** - * optional uint32 retcode = 2; + * optional uint32 retcode = 3; * @return the retcode */ public int getRetcode() { @@ -66,7 +66,7 @@ public final class GetActivityScheduleConfigScRspOuterClass { } /** - * optional uint32 retcode = 2; + * optional uint32 retcode = 3; * @param value the retcode to set * @return this */ @@ -77,7 +77,7 @@ public final class GetActivityScheduleConfigScRspOuterClass { } /** - * repeated .ActivityScheduleInfo activity_schedule_list = 10; + * repeated .ActivityScheduleInfo activity_schedule_list = 9; * @return whether the activityScheduleList field is set */ public boolean hasActivityScheduleList() { @@ -85,7 +85,7 @@ public final class GetActivityScheduleConfigScRspOuterClass { } /** - * repeated .ActivityScheduleInfo activity_schedule_list = 10; + * repeated .ActivityScheduleInfo activity_schedule_list = 9; * @return this */ public GetActivityScheduleConfigScRsp clearActivityScheduleList() { @@ -95,7 +95,7 @@ public final class GetActivityScheduleConfigScRspOuterClass { } /** - * repeated .ActivityScheduleInfo activity_schedule_list = 10; + * repeated .ActivityScheduleInfo activity_schedule_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. @@ -110,7 +110,7 @@ public final class GetActivityScheduleConfigScRspOuterClass { } /** - * repeated .ActivityScheduleInfo activity_schedule_list = 10; + * repeated .ActivityScheduleInfo activity_schedule_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 @@ -125,7 +125,7 @@ public final class GetActivityScheduleConfigScRspOuterClass { } /** - * repeated .ActivityScheduleInfo activity_schedule_list = 10; + * repeated .ActivityScheduleInfo activity_schedule_list = 9; * @param value the activityScheduleList to add * @return this */ @@ -137,7 +137,7 @@ public final class GetActivityScheduleConfigScRspOuterClass { } /** - * repeated .ActivityScheduleInfo activity_schedule_list = 10; + * repeated .ActivityScheduleInfo activity_schedule_list = 9; * @param values the activityScheduleList to add * @return this */ @@ -214,12 +214,12 @@ public final class GetActivityScheduleConfigScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); + output.writeRawByte((byte) 24); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < activityScheduleList.length(); i++) { - output.writeRawByte((byte) 82); + output.writeRawByte((byte) 74); output.writeMessageNoTag(activityScheduleList.get(i)); } } @@ -244,16 +244,16 @@ public final class GetActivityScheduleConfigScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { + case 24: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 82) { + if (tag != 74) { break; } } - case 82: { + case 74: { // activityScheduleList tag = input.readRepeatedMessage(activityScheduleList, tag); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/GetAllLineupDataScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetAllLineupDataScRspOuterClass.java index 8f7fb91..97d0d41 100644 --- a/src/generated/main/emu/lunarcore/proto/GetAllLineupDataScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetAllLineupDataScRspOuterClass.java @@ -20,17 +20,17 @@ public final class GetAllLineupDataScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 cur_index = 5; - */ - private int curIndex; - - /** - * optional uint32 retcode = 6; + * optional uint32 retcode = 3; */ private int retcode; /** - * repeated .LineupInfo lineup_list = 10; + * optional uint32 cur_index = 15; + */ + private int curIndex; + + /** + * repeated .LineupInfo lineup_list = 2; */ private final RepeatedMessage lineupList = RepeatedMessage.newEmptyInstance(LineupInfoOuterClass.LineupInfo.getFactory()); @@ -45,62 +45,25 @@ public final class GetAllLineupDataScRspOuterClass { } /** - * optional uint32 cur_index = 5; - * @return whether the curIndex field is set + * optional uint32 retcode = 3; + * @return whether the retcode field is set */ - public boolean hasCurIndex() { + public boolean hasRetcode() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 cur_index = 5; - * @return this - */ - public GetAllLineupDataScRsp clearCurIndex() { - bitField0_ &= ~0x00000001; - curIndex = 0; - return this; - } - - /** - * optional uint32 cur_index = 5; - * @return the curIndex - */ - public int getCurIndex() { - return curIndex; - } - - /** - * optional uint32 cur_index = 5; - * @param value the curIndex to set - * @return this - */ - public GetAllLineupDataScRsp setCurIndex(final int value) { - bitField0_ |= 0x00000001; - curIndex = value; - return this; - } - - /** - * optional uint32 retcode = 6; - * @return whether the retcode field is set - */ - public boolean hasRetcode() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 retcode = 6; + * optional uint32 retcode = 3; * @return this */ public GetAllLineupDataScRsp clearRetcode() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; retcode = 0; return this; } /** - * optional uint32 retcode = 6; + * optional uint32 retcode = 3; * @return the retcode */ public int getRetcode() { @@ -108,18 +71,55 @@ public final class GetAllLineupDataScRspOuterClass { } /** - * optional uint32 retcode = 6; + * optional uint32 retcode = 3; * @param value the retcode to set * @return this */ public GetAllLineupDataScRsp setRetcode(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; retcode = value; return this; } /** - * repeated .LineupInfo lineup_list = 10; + * optional uint32 cur_index = 15; + * @return whether the curIndex field is set + */ + public boolean hasCurIndex() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 cur_index = 15; + * @return this + */ + public GetAllLineupDataScRsp clearCurIndex() { + bitField0_ &= ~0x00000002; + curIndex = 0; + return this; + } + + /** + * optional uint32 cur_index = 15; + * @return the curIndex + */ + public int getCurIndex() { + return curIndex; + } + + /** + * optional uint32 cur_index = 15; + * @param value the curIndex to set + * @return this + */ + public GetAllLineupDataScRsp setCurIndex(final int value) { + bitField0_ |= 0x00000002; + curIndex = value; + return this; + } + + /** + * repeated .LineupInfo lineup_list = 2; * @return whether the lineupList field is set */ public boolean hasLineupList() { @@ -127,7 +127,7 @@ public final class GetAllLineupDataScRspOuterClass { } /** - * repeated .LineupInfo lineup_list = 10; + * repeated .LineupInfo lineup_list = 2; * @return this */ public GetAllLineupDataScRsp clearLineupList() { @@ -137,7 +137,7 @@ public final class GetAllLineupDataScRspOuterClass { } /** - * repeated .LineupInfo lineup_list = 10; + * repeated .LineupInfo lineup_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. @@ -151,7 +151,7 @@ public final class GetAllLineupDataScRspOuterClass { } /** - * repeated .LineupInfo lineup_list = 10; + * repeated .LineupInfo lineup_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 @@ -165,7 +165,7 @@ public final class GetAllLineupDataScRspOuterClass { } /** - * repeated .LineupInfo lineup_list = 10; + * repeated .LineupInfo lineup_list = 2; * @param value the lineupList to add * @return this */ @@ -176,7 +176,7 @@ public final class GetAllLineupDataScRspOuterClass { } /** - * repeated .LineupInfo lineup_list = 10; + * repeated .LineupInfo lineup_list = 2; * @param values the lineupList to add * @return this */ @@ -191,8 +191,8 @@ public final class GetAllLineupDataScRspOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - curIndex = other.curIndex; retcode = other.retcode; + curIndex = other.curIndex; lineupList.copyFrom(other.lineupList); } return this; @@ -204,12 +204,12 @@ public final class GetAllLineupDataScRspOuterClass { return this; } cachedSize = -1; - if (other.hasCurIndex()) { - setCurIndex(other.curIndex); - } if (other.hasRetcode()) { setRetcode(other.retcode); } + if (other.hasCurIndex()) { + setCurIndex(other.curIndex); + } if (other.hasLineupList()) { getMutableLineupList().addAll(other.lineupList); } @@ -223,8 +223,8 @@ public final class GetAllLineupDataScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - curIndex = 0; retcode = 0; + curIndex = 0; lineupList.clear(); return this; } @@ -250,24 +250,24 @@ public final class GetAllLineupDataScRspOuterClass { } GetAllLineupDataScRsp other = (GetAllLineupDataScRsp) o; return bitField0_ == other.bitField0_ - && (!hasCurIndex() || curIndex == other.curIndex) && (!hasRetcode() || retcode == other.retcode) + && (!hasCurIndex() || curIndex == other.curIndex) && (!hasLineupList() || lineupList.equals(other.lineupList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); - output.writeUInt32NoTag(curIndex); + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 48); - output.writeUInt32NoTag(retcode); + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(curIndex); } if ((bitField0_ & 0x00000004) != 0) { for (int i = 0; i < lineupList.length(); i++) { - output.writeRawByte((byte) 82); + output.writeRawByte((byte) 18); output.writeMessageNoTag(lineupList.get(i)); } } @@ -277,10 +277,10 @@ public final class GetAllLineupDataScRspOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(curIndex); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(curIndex); } if ((bitField0_ & 0x00000004) != 0) { size += (1 * lineupList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(lineupList); @@ -295,25 +295,25 @@ public final class GetAllLineupDataScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 40: { - // curIndex - curIndex = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 48) { - break; - } - } - case 48: { + case 24: { // retcode retcode = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 82) { + if (tag != 120) { break; } } - case 82: { + case 120: { + // curIndex + curIndex = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { // lineupList tag = input.readRepeatedMessage(lineupList, tag); bitField0_ |= 0x00000004; @@ -339,10 +339,10 @@ public final class GetAllLineupDataScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.curIndex, curIndex); + output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.curIndex, curIndex); } if ((bitField0_ & 0x00000004) != 0) { output.writeRepeatedMessage(FieldNames.lineupList, lineupList); @@ -357,11 +357,10 @@ public final class GetAllLineupDataScRspOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 537796210: - case 117333523: { - if (input.isAtField(FieldNames.curIndex)) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { - curIndex = input.readUInt32(); + retcode = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -369,10 +368,11 @@ public final class GetAllLineupDataScRspOuterClass { } break; } - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { + case 537796210: + case 117333523: { + if (input.isAtField(FieldNames.curIndex)) { if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); + curIndex = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -445,10 +445,10 @@ public final class GetAllLineupDataScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName curIndex = FieldName.forField("curIndex", "cur_index"); - static final FieldName retcode = FieldName.forField("retcode"); + static final FieldName curIndex = FieldName.forField("curIndex", "cur_index"); + static final FieldName lineupList = FieldName.forField("lineupList", "lineup_list"); } } diff --git a/src/generated/main/emu/lunarcore/proto/GetArchiveDataScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetArchiveDataScRspOuterClass.java index d32f5e6..3cc88a6 100644 --- a/src/generated/main/emu/lunarcore/proto/GetArchiveDataScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetArchiveDataScRspOuterClass.java @@ -24,7 +24,7 @@ public final class GetArchiveDataScRspOuterClass { private int retcode; /** - * optional .ArchiveData archive_data = 1; + * optional .ArchiveData archive_data = 15; */ private final ArchiveDataOuterClass.ArchiveData archiveData = ArchiveDataOuterClass.ArchiveData.newInstance(); @@ -76,7 +76,7 @@ public final class GetArchiveDataScRspOuterClass { } /** - * optional .ArchiveData archive_data = 1; + * optional .ArchiveData archive_data = 15; * @return whether the archiveData field is set */ public boolean hasArchiveData() { @@ -84,7 +84,7 @@ public final class GetArchiveDataScRspOuterClass { } /** - * optional .ArchiveData archive_data = 1; + * optional .ArchiveData archive_data = 15; * @return this */ public GetArchiveDataScRsp clearArchiveData() { @@ -94,7 +94,7 @@ public final class GetArchiveDataScRspOuterClass { } /** - * optional .ArchiveData archive_data = 1; + * optional .ArchiveData archive_data = 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 final class GetArchiveDataScRspOuterClass { } /** - * optional .ArchiveData archive_data = 1; + * optional .ArchiveData archive_data = 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 final class GetArchiveDataScRspOuterClass { } /** - * optional .ArchiveData archive_data = 1; + * optional .ArchiveData archive_data = 15; * @param value the archiveData to set * @return this */ @@ -202,7 +202,7 @@ public final class GetArchiveDataScRspOuterClass { output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 10); + output.writeRawByte((byte) 122); output.writeMessageNoTag(archiveData); } } @@ -231,11 +231,11 @@ public final class GetArchiveDataScRspOuterClass { retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 10) { + if (tag != 122) { break; } } - case 10: { + case 122: { // 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 af1a845..564a0ed 100644 --- a/src/generated/main/emu/lunarcore/proto/GetAvatarDataCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetAvatarDataCsReqOuterClass.java @@ -20,7 +20,7 @@ public final class GetAvatarDataCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional bool is_get_all = 5; + * optional bool is_get_all = 6; */ private boolean isGetAll; @@ -40,7 +40,7 @@ public final class GetAvatarDataCsReqOuterClass { } /** - * optional bool is_get_all = 5; + * optional bool is_get_all = 6; * @return whether the isGetAll field is set */ public boolean hasIsGetAll() { @@ -48,7 +48,7 @@ public final class GetAvatarDataCsReqOuterClass { } /** - * optional bool is_get_all = 5; + * optional bool is_get_all = 6; * @return this */ public GetAvatarDataCsReq clearIsGetAll() { @@ -58,7 +58,7 @@ public final class GetAvatarDataCsReqOuterClass { } /** - * optional bool is_get_all = 5; + * optional bool is_get_all = 6; * @return the isGetAll */ public boolean getIsGetAll() { @@ -66,7 +66,7 @@ public final class GetAvatarDataCsReqOuterClass { } /** - * optional bool is_get_all = 5; + * optional bool is_get_all = 6; * @param value the isGetAll to set * @return this */ @@ -210,7 +210,7 @@ public final class GetAvatarDataCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 48); output.writeBoolNoTag(isGetAll); } if ((bitField0_ & 0x00000002) != 0) { @@ -240,7 +240,7 @@ public final class GetAvatarDataCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 40: { + case 48: { // isGetAll isGetAll = input.readBool(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/GetAvatarDataScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetAvatarDataScRspOuterClass.java index 5150289..28978f4 100644 --- a/src/generated/main/emu/lunarcore/proto/GetAvatarDataScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetAvatarDataScRspOuterClass.java @@ -20,17 +20,17 @@ public final class GetAvatarDataScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 6; */ private int retcode; /** - * optional bool is_get_all = 6; + * optional bool is_get_all = 10; */ private boolean isGetAll; /** - * repeated .Avatar avatar_list = 14; + * repeated .Avatar avatar_list = 7; */ private final RepeatedMessage avatarList = RepeatedMessage.newEmptyInstance(AvatarOuterClass.Avatar.getFactory()); @@ -45,7 +45,7 @@ public final class GetAvatarDataScRspOuterClass { } /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 6; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -53,7 +53,7 @@ public final class GetAvatarDataScRspOuterClass { } /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 6; * @return this */ public GetAvatarDataScRsp clearRetcode() { @@ -63,7 +63,7 @@ public final class GetAvatarDataScRspOuterClass { } /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 6; * @return the retcode */ public int getRetcode() { @@ -71,7 +71,7 @@ public final class GetAvatarDataScRspOuterClass { } /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 6; * @param value the retcode to set * @return this */ @@ -82,7 +82,7 @@ public final class GetAvatarDataScRspOuterClass { } /** - * optional bool is_get_all = 6; + * optional bool is_get_all = 10; * @return whether the isGetAll field is set */ public boolean hasIsGetAll() { @@ -90,7 +90,7 @@ public final class GetAvatarDataScRspOuterClass { } /** - * optional bool is_get_all = 6; + * optional bool is_get_all = 10; * @return this */ public GetAvatarDataScRsp clearIsGetAll() { @@ -100,7 +100,7 @@ public final class GetAvatarDataScRspOuterClass { } /** - * optional bool is_get_all = 6; + * optional bool is_get_all = 10; * @return the isGetAll */ public boolean getIsGetAll() { @@ -108,7 +108,7 @@ public final class GetAvatarDataScRspOuterClass { } /** - * optional bool is_get_all = 6; + * optional bool is_get_all = 10; * @param value the isGetAll to set * @return this */ @@ -119,7 +119,7 @@ public final class GetAvatarDataScRspOuterClass { } /** - * repeated .Avatar avatar_list = 14; + * repeated .Avatar avatar_list = 7; * @return whether the avatarList field is set */ public boolean hasAvatarList() { @@ -127,7 +127,7 @@ public final class GetAvatarDataScRspOuterClass { } /** - * repeated .Avatar avatar_list = 14; + * repeated .Avatar avatar_list = 7; * @return this */ public GetAvatarDataScRsp clearAvatarList() { @@ -137,7 +137,7 @@ public final class GetAvatarDataScRspOuterClass { } /** - * repeated .Avatar avatar_list = 14; + * repeated .Avatar avatar_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. @@ -151,7 +151,7 @@ public final class GetAvatarDataScRspOuterClass { } /** - * repeated .Avatar avatar_list = 14; + * repeated .Avatar avatar_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 @@ -165,7 +165,7 @@ public final class GetAvatarDataScRspOuterClass { } /** - * repeated .Avatar avatar_list = 14; + * repeated .Avatar avatar_list = 7; * @param value the avatarList to add * @return this */ @@ -176,7 +176,7 @@ public final class GetAvatarDataScRspOuterClass { } /** - * repeated .Avatar avatar_list = 14; + * repeated .Avatar avatar_list = 7; * @param values the avatarList to add * @return this */ @@ -258,16 +258,16 @@ public final class GetAvatarDataScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 48); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 80); output.writeBoolNoTag(isGetAll); } if ((bitField0_ & 0x00000004) != 0) { for (int i = 0; i < avatarList.length(); i++) { - output.writeRawByte((byte) 114); + output.writeRawByte((byte) 58); output.writeMessageNoTag(avatarList.get(i)); } } @@ -295,25 +295,25 @@ public final class GetAvatarDataScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 80: { + case 48: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 48) { + if (tag != 80) { break; } } - case 48: { + case 80: { // isGetAll isGetAll = input.readBool(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 114) { + if (tag != 58) { break; } } - case 114: { + case 58: { // 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 e3a66a6..0506b02 100644 --- a/src/generated/main/emu/lunarcore/proto/GetBagScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetBagScRspOuterClass.java @@ -20,25 +20,25 @@ public final class GetBagScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 2; */ private int retcode; /** - * repeated .Equipment equipment_list = 1; + * repeated .Relic relic_list = 1; + */ + private final RepeatedMessage relicList = RepeatedMessage.newEmptyInstance(RelicOuterClass.Relic.getFactory()); + + /** + * repeated .Equipment equipment_list = 10; */ private final RepeatedMessage equipmentList = RepeatedMessage.newEmptyInstance(EquipmentOuterClass.Equipment.getFactory()); /** - * repeated .Material material_list = 2; + * repeated .Material material_list = 14; */ private final RepeatedMessage materialList = RepeatedMessage.newEmptyInstance(MaterialOuterClass.Material.getFactory()); - /** - * repeated .Relic relic_list = 13; - */ - private final RepeatedMessage relicList = RepeatedMessage.newEmptyInstance(RelicOuterClass.Relic.getFactory()); - private GetBagScRsp() { } @@ -50,7 +50,7 @@ public final class GetBagScRspOuterClass { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 2; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -58,7 +58,7 @@ public final class GetBagScRspOuterClass { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 2; * @return this */ public GetBagScRsp clearRetcode() { @@ -68,7 +68,7 @@ public final class GetBagScRspOuterClass { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 2; * @return the retcode */ public int getRetcode() { @@ -76,7 +76,7 @@ public final class GetBagScRspOuterClass { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 2; * @param value the retcode to set * @return this */ @@ -87,161 +87,25 @@ public final class GetBagScRspOuterClass { } /** - * repeated .Equipment equipment_list = 1; - * @return whether the equipmentList field is set + * repeated .Relic relic_list = 1; + * @return whether the relicList field is set */ - public boolean hasEquipmentList() { + public boolean hasRelicList() { return (bitField0_ & 0x00000002) != 0; } /** - * repeated .Equipment equipment_list = 1; - * @return this - */ - public GetBagScRsp clearEquipmentList() { - bitField0_ &= ~0x00000002; - equipmentList.clear(); - return this; - } - - /** - * 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. - * - * Use {@link #getMutableEquipmentList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getEquipmentList() { - return equipmentList; - } - - /** - * 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 - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableEquipmentList() { - bitField0_ |= 0x00000002; - return equipmentList; - } - - /** - * repeated .Equipment equipment_list = 1; - * @param value the equipmentList to add - * @return this - */ - public GetBagScRsp addEquipmentList(final EquipmentOuterClass.Equipment value) { - bitField0_ |= 0x00000002; - equipmentList.add(value); - return this; - } - - /** - * repeated .Equipment equipment_list = 1; - * @param values the equipmentList to add - * @return this - */ - public GetBagScRsp addAllEquipmentList(final EquipmentOuterClass.Equipment... values) { - bitField0_ |= 0x00000002; - equipmentList.addAll(values); - return this; - } - - /** - * repeated .Material material_list = 2; - * @return whether the materialList field is set - */ - public boolean hasMaterialList() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * repeated .Material material_list = 2; - * @return this - */ - public GetBagScRsp clearMaterialList() { - bitField0_ &= ~0x00000004; - materialList.clear(); - return this; - } - - /** - * 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 #getMutableMaterialList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getMaterialList() { - return materialList; - } - - /** - * 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 - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableMaterialList() { - bitField0_ |= 0x00000004; - return materialList; - } - - /** - * repeated .Material material_list = 2; - * @param value the materialList to add - * @return this - */ - public GetBagScRsp addMaterialList(final MaterialOuterClass.Material value) { - bitField0_ |= 0x00000004; - materialList.add(value); - return this; - } - - /** - * repeated .Material material_list = 2; - * @param values the materialList to add - * @return this - */ - public GetBagScRsp addAllMaterialList(final MaterialOuterClass.Material... values) { - bitField0_ |= 0x00000004; - materialList.addAll(values); - return this; - } - - /** - * repeated .Relic relic_list = 13; - * @return whether the relicList field is set - */ - public boolean hasRelicList() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * repeated .Relic relic_list = 13; + * repeated .Relic relic_list = 1; * @return this */ public GetBagScRsp clearRelicList() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000002; relicList.clear(); return this; } /** - * repeated .Relic relic_list = 13; + * repeated .Relic relic_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. @@ -255,7 +119,7 @@ public final class GetBagScRspOuterClass { } /** - * repeated .Relic relic_list = 13; + * repeated .Relic relic_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 @@ -264,41 +128,177 @@ public final class GetBagScRspOuterClass { * @return internal storage object for modifications */ public RepeatedMessage getMutableRelicList() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000002; return relicList; } /** - * repeated .Relic relic_list = 13; + * repeated .Relic relic_list = 1; * @param value the relicList to add * @return this */ public GetBagScRsp addRelicList(final RelicOuterClass.Relic value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000002; relicList.add(value); return this; } /** - * repeated .Relic relic_list = 13; + * repeated .Relic relic_list = 1; * @param values the relicList to add * @return this */ public GetBagScRsp addAllRelicList(final RelicOuterClass.Relic... values) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000002; relicList.addAll(values); return this; } + /** + * repeated .Equipment equipment_list = 10; + * @return whether the equipmentList field is set + */ + public boolean hasEquipmentList() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated .Equipment equipment_list = 10; + * @return this + */ + public GetBagScRsp clearEquipmentList() { + bitField0_ &= ~0x00000004; + equipmentList.clear(); + return this; + } + + /** + * repeated .Equipment 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. + * + * Use {@link #getMutableEquipmentList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getEquipmentList() { + return equipmentList; + } + + /** + * repeated .Equipment 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 + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableEquipmentList() { + bitField0_ |= 0x00000004; + return equipmentList; + } + + /** + * repeated .Equipment equipment_list = 10; + * @param value the equipmentList to add + * @return this + */ + public GetBagScRsp addEquipmentList(final EquipmentOuterClass.Equipment value) { + bitField0_ |= 0x00000004; + equipmentList.add(value); + return this; + } + + /** + * repeated .Equipment equipment_list = 10; + * @param values the equipmentList to add + * @return this + */ + public GetBagScRsp addAllEquipmentList(final EquipmentOuterClass.Equipment... values) { + bitField0_ |= 0x00000004; + equipmentList.addAll(values); + return this; + } + + /** + * repeated .Material material_list = 14; + * @return whether the materialList field is set + */ + public boolean hasMaterialList() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated .Material material_list = 14; + * @return this + */ + public GetBagScRsp clearMaterialList() { + bitField0_ &= ~0x00000008; + materialList.clear(); + return this; + } + + /** + * repeated .Material material_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 #getMutableMaterialList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getMaterialList() { + return materialList; + } + + /** + * repeated .Material material_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 getMutableMaterialList() { + bitField0_ |= 0x00000008; + return materialList; + } + + /** + * repeated .Material material_list = 14; + * @param value the materialList to add + * @return this + */ + public GetBagScRsp addMaterialList(final MaterialOuterClass.Material value) { + bitField0_ |= 0x00000008; + materialList.add(value); + return this; + } + + /** + * repeated .Material material_list = 14; + * @param values the materialList to add + * @return this + */ + public GetBagScRsp addAllMaterialList(final MaterialOuterClass.Material... values) { + bitField0_ |= 0x00000008; + materialList.addAll(values); + return this; + } + @Override public GetBagScRsp copyFrom(final GetBagScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; retcode = other.retcode; + relicList.copyFrom(other.relicList); equipmentList.copyFrom(other.equipmentList); materialList.copyFrom(other.materialList); - relicList.copyFrom(other.relicList); } return this; } @@ -312,15 +312,15 @@ public final class GetBagScRspOuterClass { if (other.hasRetcode()) { setRetcode(other.retcode); } + if (other.hasRelicList()) { + getMutableRelicList().addAll(other.relicList); + } if (other.hasEquipmentList()) { getMutableEquipmentList().addAll(other.equipmentList); } if (other.hasMaterialList()) { getMutableMaterialList().addAll(other.materialList); } - if (other.hasRelicList()) { - getMutableRelicList().addAll(other.relicList); - } return this; } @@ -332,9 +332,9 @@ public final class GetBagScRspOuterClass { cachedSize = -1; bitField0_ = 0; retcode = 0; + relicList.clear(); equipmentList.clear(); materialList.clear(); - relicList.clear(); return this; } @@ -345,9 +345,9 @@ public final class GetBagScRspOuterClass { } cachedSize = -1; bitField0_ = 0; + relicList.clearQuick(); equipmentList.clearQuick(); materialList.clearQuick(); - relicList.clearQuick(); return this; } @@ -362,33 +362,33 @@ public final class GetBagScRspOuterClass { GetBagScRsp other = (GetBagScRsp) o; return bitField0_ == other.bitField0_ && (!hasRetcode() || retcode == other.retcode) + && (!hasRelicList() || relicList.equals(other.relicList)) && (!hasEquipmentList() || equipmentList.equals(other.equipmentList)) - && (!hasMaterialList() || materialList.equals(other.materialList)) - && (!hasRelicList() || relicList.equals(other.relicList)); + && (!hasMaterialList() || materialList.equals(other.materialList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 16); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - for (int i = 0; i < equipmentList.length(); i++) { + for (int i = 0; i < relicList.length(); i++) { output.writeRawByte((byte) 10); - output.writeMessageNoTag(equipmentList.get(i)); + output.writeMessageNoTag(relicList.get(i)); } } if ((bitField0_ & 0x00000004) != 0) { - for (int i = 0; i < materialList.length(); i++) { - output.writeRawByte((byte) 18); - output.writeMessageNoTag(materialList.get(i)); + for (int i = 0; i < equipmentList.length(); i++) { + output.writeRawByte((byte) 82); + output.writeMessageNoTag(equipmentList.get(i)); } } if ((bitField0_ & 0x00000008) != 0) { - for (int i = 0; i < relicList.length(); i++) { - output.writeRawByte((byte) 106); - output.writeMessageNoTag(relicList.get(i)); + for (int i = 0; i < materialList.length(); i++) { + output.writeRawByte((byte) 114); + output.writeMessageNoTag(materialList.get(i)); } } } @@ -400,13 +400,13 @@ public final class GetBagScRspOuterClass { size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - size += (1 * equipmentList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(equipmentList); + size += (1 * relicList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(relicList); } if ((bitField0_ & 0x00000004) != 0) { - size += (1 * materialList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(materialList); + size += (1 * equipmentList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(equipmentList); } if ((bitField0_ & 0x00000008) != 0) { - size += (1 * relicList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(relicList); + size += (1 * materialList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(materialList); } return size; } @@ -418,7 +418,7 @@ public final class GetBagScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 120: { + case 16: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; @@ -428,24 +428,24 @@ public final class GetBagScRspOuterClass { } } case 10: { - // equipmentList - tag = input.readRepeatedMessage(equipmentList, tag); - bitField0_ |= 0x00000002; - if (tag != 18) { - break; - } - } - case 18: { - // materialList - tag = input.readRepeatedMessage(materialList, tag); - bitField0_ |= 0x00000004; - if (tag != 106) { - break; - } - } - case 106: { // relicList tag = input.readRepeatedMessage(relicList, tag); + bitField0_ |= 0x00000002; + if (tag != 82) { + break; + } + } + case 82: { + // equipmentList + tag = input.readRepeatedMessage(equipmentList, tag); + bitField0_ |= 0x00000004; + if (tag != 114) { + break; + } + } + case 114: { + // materialList + tag = input.readRepeatedMessage(materialList, tag); bitField0_ |= 0x00000008; if (tag != 0) { break; @@ -472,13 +472,13 @@ public final class GetBagScRspOuterClass { output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRepeatedMessage(FieldNames.equipmentList, equipmentList); + output.writeRepeatedMessage(FieldNames.relicList, relicList); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRepeatedMessage(FieldNames.materialList, materialList); + output.writeRepeatedMessage(FieldNames.equipmentList, equipmentList); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRepeatedMessage(FieldNames.relicList, relicList); + output.writeRepeatedMessage(FieldNames.materialList, materialList); } output.endObject(); } @@ -501,12 +501,24 @@ public final class GetBagScRspOuterClass { } break; } + case 204814001: + case 2071893482: { + if (input.isAtField(FieldNames.relicList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(relicList); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } case 2007143244: case 2109525167: { if (input.isAtField(FieldNames.equipmentList)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(equipmentList); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; } } else { input.skipUnknownField(); @@ -518,18 +530,6 @@ public final class GetBagScRspOuterClass { if (input.isAtField(FieldNames.materialList)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(materialList); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case 204814001: - case 2071893482: { - if (input.isAtField(FieldNames.relicList)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(relicList); bitField0_ |= 0x00000008; } } else { @@ -591,11 +591,11 @@ public final class GetBagScRspOuterClass { static class FieldNames { static final FieldName retcode = FieldName.forField("retcode"); + 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 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 5fc5fcb..348356a 100644 --- a/src/generated/main/emu/lunarcore/proto/GetBasicInfoScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetBasicInfoScRspOuterClass.java @@ -19,42 +19,42 @@ public final class GetBasicInfoScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional int64 last_set_nickname_time = 3; - */ - private long lastSetNicknameTime; - - /** - * optional int64 next_recover_time = 15; + * optional int64 next_recover_time = 1; */ private long nextRecoverTime; /** - * optional uint32 cur_day = 1; + * optional int64 last_set_nickname_time = 11; + */ + private long lastSetNicknameTime; + + /** + * optional uint32 cur_day = 2; */ private int curDay; /** - * optional uint32 week_cocoon_finished_count = 2; - */ - private int weekCocoonFinishedCount; - - /** - * optional uint32 exchange_times = 6; + * optional uint32 exchange_times = 4; */ private int exchangeTimes; /** - * optional uint32 gameplay_birthday = 9; + * optional uint32 week_cocoon_finished_count = 9; */ - private int gameplayBirthday; + private int weekCocoonFinishedCount; /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 13; */ private int retcode; /** - * optional .PlayerSettingInfo player_setting_info = 14; + * optional uint32 gameplay_birthday = 14; + */ + private int gameplayBirthday; + + /** + * optional .PlayerSettingInfo player_setting_info = 6; */ private final PlayerSettingInfoOuterClass.PlayerSettingInfo playerSettingInfo = PlayerSettingInfoOuterClass.PlayerSettingInfo.newInstance(); @@ -69,62 +69,25 @@ public final class GetBasicInfoScRspOuterClass { } /** - * optional int64 last_set_nickname_time = 3; - * @return whether the lastSetNicknameTime field is set + * optional int64 next_recover_time = 1; + * @return whether the nextRecoverTime field is set */ - public boolean hasLastSetNicknameTime() { + public boolean hasNextRecoverTime() { return (bitField0_ & 0x00000001) != 0; } /** - * optional int64 last_set_nickname_time = 3; - * @return this - */ - public GetBasicInfoScRsp clearLastSetNicknameTime() { - bitField0_ &= ~0x00000001; - lastSetNicknameTime = 0L; - return this; - } - - /** - * optional int64 last_set_nickname_time = 3; - * @return the lastSetNicknameTime - */ - public long getLastSetNicknameTime() { - return lastSetNicknameTime; - } - - /** - * optional int64 last_set_nickname_time = 3; - * @param value the lastSetNicknameTime to set - * @return this - */ - public GetBasicInfoScRsp setLastSetNicknameTime(final long value) { - bitField0_ |= 0x00000001; - lastSetNicknameTime = value; - return this; - } - - /** - * optional int64 next_recover_time = 15; - * @return whether the nextRecoverTime field is set - */ - public boolean hasNextRecoverTime() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional int64 next_recover_time = 15; + * optional int64 next_recover_time = 1; * @return this */ public GetBasicInfoScRsp clearNextRecoverTime() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; nextRecoverTime = 0L; return this; } /** - * optional int64 next_recover_time = 15; + * optional int64 next_recover_time = 1; * @return the nextRecoverTime */ public long getNextRecoverTime() { @@ -132,18 +95,55 @@ public final class GetBasicInfoScRspOuterClass { } /** - * optional int64 next_recover_time = 15; + * optional int64 next_recover_time = 1; * @param value the nextRecoverTime to set * @return this */ public GetBasicInfoScRsp setNextRecoverTime(final long value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; nextRecoverTime = value; return this; } /** - * optional uint32 cur_day = 1; + * optional int64 last_set_nickname_time = 11; + * @return whether the lastSetNicknameTime field is set + */ + public boolean hasLastSetNicknameTime() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional int64 last_set_nickname_time = 11; + * @return this + */ + public GetBasicInfoScRsp clearLastSetNicknameTime() { + bitField0_ &= ~0x00000002; + lastSetNicknameTime = 0L; + return this; + } + + /** + * optional int64 last_set_nickname_time = 11; + * @return the lastSetNicknameTime + */ + public long getLastSetNicknameTime() { + return lastSetNicknameTime; + } + + /** + * optional int64 last_set_nickname_time = 11; + * @param value the lastSetNicknameTime to set + * @return this + */ + public GetBasicInfoScRsp setLastSetNicknameTime(final long value) { + bitField0_ |= 0x00000002; + lastSetNicknameTime = value; + return this; + } + + /** + * optional uint32 cur_day = 2; * @return whether the curDay field is set */ public boolean hasCurDay() { @@ -151,7 +151,7 @@ public final class GetBasicInfoScRspOuterClass { } /** - * optional uint32 cur_day = 1; + * optional uint32 cur_day = 2; * @return this */ public GetBasicInfoScRsp clearCurDay() { @@ -161,7 +161,7 @@ public final class GetBasicInfoScRspOuterClass { } /** - * optional uint32 cur_day = 1; + * optional uint32 cur_day = 2; * @return the curDay */ public int getCurDay() { @@ -169,7 +169,7 @@ public final class GetBasicInfoScRspOuterClass { } /** - * optional uint32 cur_day = 1; + * optional uint32 cur_day = 2; * @param value the curDay to set * @return this */ @@ -180,62 +180,25 @@ public final class GetBasicInfoScRspOuterClass { } /** - * optional uint32 week_cocoon_finished_count = 2; - * @return whether the weekCocoonFinishedCount field is set + * optional uint32 exchange_times = 4; + * @return whether the exchangeTimes field is set */ - public boolean hasWeekCocoonFinishedCount() { + public boolean hasExchangeTimes() { return (bitField0_ & 0x00000008) != 0; } /** - * optional uint32 week_cocoon_finished_count = 2; - * @return this - */ - public GetBasicInfoScRsp clearWeekCocoonFinishedCount() { - bitField0_ &= ~0x00000008; - weekCocoonFinishedCount = 0; - return this; - } - - /** - * optional uint32 week_cocoon_finished_count = 2; - * @return the weekCocoonFinishedCount - */ - public int getWeekCocoonFinishedCount() { - return weekCocoonFinishedCount; - } - - /** - * optional uint32 week_cocoon_finished_count = 2; - * @param value the weekCocoonFinishedCount to set - * @return this - */ - public GetBasicInfoScRsp setWeekCocoonFinishedCount(final int value) { - bitField0_ |= 0x00000008; - weekCocoonFinishedCount = value; - return this; - } - - /** - * optional uint32 exchange_times = 6; - * @return whether the exchangeTimes field is set - */ - public boolean hasExchangeTimes() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - * optional uint32 exchange_times = 6; + * optional uint32 exchange_times = 4; * @return this */ public GetBasicInfoScRsp clearExchangeTimes() { - bitField0_ &= ~0x00000010; + bitField0_ &= ~0x00000008; exchangeTimes = 0; return this; } /** - * optional uint32 exchange_times = 6; + * optional uint32 exchange_times = 4; * @return the exchangeTimes */ public int getExchangeTimes() { @@ -243,73 +206,73 @@ public final class GetBasicInfoScRspOuterClass { } /** - * optional uint32 exchange_times = 6; + * optional uint32 exchange_times = 4; * @param value the exchangeTimes to set * @return this */ public GetBasicInfoScRsp setExchangeTimes(final int value) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; exchangeTimes = value; return this; } /** - * optional uint32 gameplay_birthday = 9; - * @return whether the gameplayBirthday field is set + * optional uint32 week_cocoon_finished_count = 9; + * @return whether the weekCocoonFinishedCount field is set */ - public boolean hasGameplayBirthday() { + public boolean hasWeekCocoonFinishedCount() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 week_cocoon_finished_count = 9; + * @return this + */ + public GetBasicInfoScRsp clearWeekCocoonFinishedCount() { + bitField0_ &= ~0x00000010; + weekCocoonFinishedCount = 0; + return this; + } + + /** + * optional uint32 week_cocoon_finished_count = 9; + * @return the weekCocoonFinishedCount + */ + public int getWeekCocoonFinishedCount() { + return weekCocoonFinishedCount; + } + + /** + * optional uint32 week_cocoon_finished_count = 9; + * @param value the weekCocoonFinishedCount to set + * @return this + */ + public GetBasicInfoScRsp setWeekCocoonFinishedCount(final int value) { + bitField0_ |= 0x00000010; + weekCocoonFinishedCount = value; + return this; + } + + /** + * optional uint32 retcode = 13; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { return (bitField0_ & 0x00000020) != 0; } /** - * optional uint32 gameplay_birthday = 9; - * @return this - */ - public GetBasicInfoScRsp clearGameplayBirthday() { - bitField0_ &= ~0x00000020; - gameplayBirthday = 0; - return this; - } - - /** - * optional uint32 gameplay_birthday = 9; - * @return the gameplayBirthday - */ - public int getGameplayBirthday() { - return gameplayBirthday; - } - - /** - * optional uint32 gameplay_birthday = 9; - * @param value the gameplayBirthday to set - * @return this - */ - public GetBasicInfoScRsp setGameplayBirthday(final int value) { - bitField0_ |= 0x00000020; - gameplayBirthday = value; - return this; - } - - /** - * optional uint32 retcode = 10; - * @return whether the retcode field is set - */ - public boolean hasRetcode() { - return (bitField0_ & 0x00000040) != 0; - } - - /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 13; * @return this */ public GetBasicInfoScRsp clearRetcode() { - bitField0_ &= ~0x00000040; + bitField0_ &= ~0x00000020; retcode = 0; return this; } /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 13; * @return the retcode */ public int getRetcode() { @@ -317,18 +280,55 @@ public final class GetBasicInfoScRspOuterClass { } /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 13; * @param value the retcode to set * @return this */ public GetBasicInfoScRsp setRetcode(final int value) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000020; retcode = value; return this; } /** - * optional .PlayerSettingInfo player_setting_info = 14; + * optional uint32 gameplay_birthday = 14; + * @return whether the gameplayBirthday field is set + */ + public boolean hasGameplayBirthday() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional uint32 gameplay_birthday = 14; + * @return this + */ + public GetBasicInfoScRsp clearGameplayBirthday() { + bitField0_ &= ~0x00000040; + gameplayBirthday = 0; + return this; + } + + /** + * optional uint32 gameplay_birthday = 14; + * @return the gameplayBirthday + */ + public int getGameplayBirthday() { + return gameplayBirthday; + } + + /** + * optional uint32 gameplay_birthday = 14; + * @param value the gameplayBirthday to set + * @return this + */ + public GetBasicInfoScRsp setGameplayBirthday(final int value) { + bitField0_ |= 0x00000040; + gameplayBirthday = value; + return this; + } + + /** + * optional .PlayerSettingInfo player_setting_info = 6; * @return whether the playerSettingInfo field is set */ public boolean hasPlayerSettingInfo() { @@ -336,7 +336,7 @@ public final class GetBasicInfoScRspOuterClass { } /** - * optional .PlayerSettingInfo player_setting_info = 14; + * optional .PlayerSettingInfo player_setting_info = 6; * @return this */ public GetBasicInfoScRsp clearPlayerSettingInfo() { @@ -346,7 +346,7 @@ public final class GetBasicInfoScRspOuterClass { } /** - * optional .PlayerSettingInfo player_setting_info = 14; + * optional .PlayerSettingInfo player_setting_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. @@ -360,7 +360,7 @@ public final class GetBasicInfoScRspOuterClass { } /** - * optional .PlayerSettingInfo player_setting_info = 14; + * optional .PlayerSettingInfo player_setting_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 @@ -374,7 +374,7 @@ public final class GetBasicInfoScRspOuterClass { } /** - * optional .PlayerSettingInfo player_setting_info = 14; + * optional .PlayerSettingInfo player_setting_info = 6; * @param value the playerSettingInfo to set * @return this */ @@ -390,13 +390,13 @@ public final class GetBasicInfoScRspOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - lastSetNicknameTime = other.lastSetNicknameTime; nextRecoverTime = other.nextRecoverTime; + lastSetNicknameTime = other.lastSetNicknameTime; curDay = other.curDay; - weekCocoonFinishedCount = other.weekCocoonFinishedCount; exchangeTimes = other.exchangeTimes; - gameplayBirthday = other.gameplayBirthday; + weekCocoonFinishedCount = other.weekCocoonFinishedCount; retcode = other.retcode; + gameplayBirthday = other.gameplayBirthday; playerSettingInfo.copyFrom(other.playerSettingInfo); } return this; @@ -408,27 +408,27 @@ public final class GetBasicInfoScRspOuterClass { return this; } cachedSize = -1; - if (other.hasLastSetNicknameTime()) { - setLastSetNicknameTime(other.lastSetNicknameTime); - } if (other.hasNextRecoverTime()) { setNextRecoverTime(other.nextRecoverTime); } + if (other.hasLastSetNicknameTime()) { + setLastSetNicknameTime(other.lastSetNicknameTime); + } if (other.hasCurDay()) { setCurDay(other.curDay); } - if (other.hasWeekCocoonFinishedCount()) { - setWeekCocoonFinishedCount(other.weekCocoonFinishedCount); - } if (other.hasExchangeTimes()) { setExchangeTimes(other.exchangeTimes); } - if (other.hasGameplayBirthday()) { - setGameplayBirthday(other.gameplayBirthday); + if (other.hasWeekCocoonFinishedCount()) { + setWeekCocoonFinishedCount(other.weekCocoonFinishedCount); } if (other.hasRetcode()) { setRetcode(other.retcode); } + if (other.hasGameplayBirthday()) { + setGameplayBirthday(other.gameplayBirthday); + } if (other.hasPlayerSettingInfo()) { getMutablePlayerSettingInfo().mergeFrom(other.playerSettingInfo); } @@ -442,13 +442,13 @@ public final class GetBasicInfoScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - lastSetNicknameTime = 0L; nextRecoverTime = 0L; + lastSetNicknameTime = 0L; curDay = 0; - weekCocoonFinishedCount = 0; exchangeTimes = 0; - gameplayBirthday = 0; + weekCocoonFinishedCount = 0; retcode = 0; + gameplayBirthday = 0; playerSettingInfo.clear(); return this; } @@ -474,48 +474,48 @@ public final class GetBasicInfoScRspOuterClass { } GetBasicInfoScRsp other = (GetBasicInfoScRsp) o; return bitField0_ == other.bitField0_ - && (!hasLastSetNicknameTime() || lastSetNicknameTime == other.lastSetNicknameTime) && (!hasNextRecoverTime() || nextRecoverTime == other.nextRecoverTime) + && (!hasLastSetNicknameTime() || lastSetNicknameTime == other.lastSetNicknameTime) && (!hasCurDay() || curDay == other.curDay) - && (!hasWeekCocoonFinishedCount() || weekCocoonFinishedCount == other.weekCocoonFinishedCount) && (!hasExchangeTimes() || exchangeTimes == other.exchangeTimes) - && (!hasGameplayBirthday() || gameplayBirthday == other.gameplayBirthday) + && (!hasWeekCocoonFinishedCount() || weekCocoonFinishedCount == other.weekCocoonFinishedCount) && (!hasRetcode() || retcode == other.retcode) + && (!hasGameplayBirthday() || gameplayBirthday == other.gameplayBirthday) && (!hasPlayerSettingInfo() || playerSettingInfo.equals(other.playerSettingInfo)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); - output.writeInt64NoTag(lastSetNicknameTime); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 8); output.writeInt64NoTag(nextRecoverTime); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 88); + output.writeInt64NoTag(lastSetNicknameTime); + } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 8); + output.writeRawByte((byte) 16); output.writeUInt32NoTag(curDay); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(weekCocoonFinishedCount); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(exchangeTimes); } - if ((bitField0_ & 0x00000020) != 0) { + if ((bitField0_ & 0x00000010) != 0) { output.writeRawByte((byte) 72); - output.writeUInt32NoTag(gameplayBirthday); + output.writeUInt32NoTag(weekCocoonFinishedCount); } - if ((bitField0_ & 0x00000040) != 0) { - output.writeRawByte((byte) 80); + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 104); output.writeUInt32NoTag(retcode); } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(gameplayBirthday); + } if ((bitField0_ & 0x00000080) != 0) { - output.writeRawByte((byte) 114); + output.writeRawByte((byte) 50); output.writeMessageNoTag(playerSettingInfo); } } @@ -524,25 +524,25 @@ public final class GetBasicInfoScRspOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeInt64SizeNoTag(lastSetNicknameTime); + size += 1 + ProtoSink.computeInt64SizeNoTag(nextRecoverTime); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeInt64SizeNoTag(nextRecoverTime); + size += 1 + ProtoSink.computeInt64SizeNoTag(lastSetNicknameTime); } if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(curDay); } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(weekCocoonFinishedCount); - } - if ((bitField0_ & 0x00000010) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(exchangeTimes); } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(weekCocoonFinishedCount); + } if ((bitField0_ & 0x00000020) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(gameplayBirthday); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000040) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(gameplayBirthday); } if ((bitField0_ & 0x00000080) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(playerSettingInfo); @@ -557,70 +557,70 @@ public final class GetBasicInfoScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 24: { - // lastSetNicknameTime - lastSetNicknameTime = input.readInt64(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 120) { - break; - } - } - case 120: { + case 8: { // nextRecoverTime nextRecoverTime = input.readInt64(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 8) { + if (tag != 88) { break; } } - case 8: { - // curDay - curDay = input.readUInt32(); - bitField0_ |= 0x00000004; + case 88: { + // lastSetNicknameTime + lastSetNicknameTime = input.readInt64(); + bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 16) { break; } } case 16: { - // weekCocoonFinishedCount - weekCocoonFinishedCount = input.readUInt32(); - bitField0_ |= 0x00000008; + // curDay + curDay = input.readUInt32(); + bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 48) { + if (tag != 32) { break; } } - case 48: { + case 32: { // exchangeTimes exchangeTimes = input.readUInt32(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 72) { break; } } case 72: { - // gameplayBirthday - gameplayBirthday = input.readUInt32(); - bitField0_ |= 0x00000020; + // weekCocoonFinishedCount + weekCocoonFinishedCount = input.readUInt32(); + bitField0_ |= 0x00000010; tag = input.readTag(); - if (tag != 80) { + if (tag != 104) { break; } } - case 80: { + case 104: { // retcode retcode = input.readUInt32(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000020; tag = input.readTag(); - if (tag != 114) { + if (tag != 112) { break; } } - case 114: { + case 112: { + // gameplayBirthday + gameplayBirthday = input.readUInt32(); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 50) { + break; + } + } + case 50: { // playerSettingInfo input.readMessage(playerSettingInfo); bitField0_ |= 0x00000080; @@ -647,25 +647,25 @@ public final class GetBasicInfoScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeInt64(FieldNames.lastSetNicknameTime, lastSetNicknameTime); + output.writeInt64(FieldNames.nextRecoverTime, nextRecoverTime); } if ((bitField0_ & 0x00000002) != 0) { - output.writeInt64(FieldNames.nextRecoverTime, nextRecoverTime); + output.writeInt64(FieldNames.lastSetNicknameTime, lastSetNicknameTime); } if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.curDay, curDay); } if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.weekCocoonFinishedCount, weekCocoonFinishedCount); - } - if ((bitField0_ & 0x00000010) != 0) { output.writeUInt32(FieldNames.exchangeTimes, exchangeTimes); } + if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.weekCocoonFinishedCount, weekCocoonFinishedCount); + } if ((bitField0_ & 0x00000020) != 0) { - output.writeUInt32(FieldNames.gameplayBirthday, gameplayBirthday); + output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000040) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.gameplayBirthday, gameplayBirthday); } if ((bitField0_ & 0x00000080) != 0) { output.writeMessage(FieldNames.playerSettingInfo, playerSettingInfo); @@ -680,11 +680,11 @@ public final class GetBasicInfoScRspOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - 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_ |= 0x00000001; } } else { @@ -692,11 +692,11 @@ public final class GetBasicInfoScRspOuterClass { } break; } - 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_ |= 0x00000002; } } else { @@ -716,11 +716,11 @@ public final class GetBasicInfoScRspOuterClass { } break; } - case 1387396786: - case 668486783: { - if (input.isAtField(FieldNames.weekCocoonFinishedCount)) { + case 1371137763: + case -119434710: { + if (input.isAtField(FieldNames.exchangeTimes)) { if (!input.trySkipNullValue()) { - weekCocoonFinishedCount = input.readUInt32(); + exchangeTimes = input.readUInt32(); bitField0_ |= 0x00000008; } } else { @@ -728,11 +728,11 @@ public final class GetBasicInfoScRspOuterClass { } break; } - case 1371137763: - case -119434710: { - if (input.isAtField(FieldNames.exchangeTimes)) { + case 1387396786: + case 668486783: { + if (input.isAtField(FieldNames.weekCocoonFinishedCount)) { if (!input.trySkipNullValue()) { - exchangeTimes = input.readUInt32(); + weekCocoonFinishedCount = input.readUInt32(); bitField0_ |= 0x00000010; } } else { @@ -740,22 +740,22 @@ public final class GetBasicInfoScRspOuterClass { } break; } + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } case 686542531: case 172986486: { if (input.isAtField(FieldNames.gameplayBirthday)) { if (!input.trySkipNullValue()) { gameplayBirthday = input.readUInt32(); - bitField0_ |= 0x00000020; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { - if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); bitField0_ |= 0x00000040; } } else { @@ -828,20 +828,20 @@ public final class GetBasicInfoScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName lastSetNicknameTime = FieldName.forField("lastSetNicknameTime", "last_set_nickname_time"); - 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 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 weekCocoonFinishedCount = FieldName.forField("weekCocoonFinishedCount", "week_cocoon_finished_count"); static final FieldName retcode = FieldName.forField("retcode"); + static final FieldName gameplayBirthday = FieldName.forField("gameplayBirthday", "gameplay_birthday"); + 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 3d268e0..55224c6 100644 --- a/src/generated/main/emu/lunarcore/proto/GetChallengeScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetChallengeScRspOuterClass.java @@ -20,20 +20,20 @@ public final class GetChallengeScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 5; */ private int retcode; /** - * repeated .Challenge challenge_list = 8; - */ - private final RepeatedMessage challengeList = RepeatedMessage.newEmptyInstance(ChallengeOuterClass.Challenge.getFactory()); - - /** - * repeated .ChallengeReward challenge_reward_list = 9; + * repeated .ChallengeReward challenge_reward_list = 1; */ private final RepeatedMessage challengeRewardList = RepeatedMessage.newEmptyInstance(ChallengeRewardOuterClass.ChallengeReward.getFactory()); + /** + * repeated .Challenge challenge_list = 13; + */ + private final RepeatedMessage challengeList = RepeatedMessage.newEmptyInstance(ChallengeOuterClass.Challenge.getFactory()); + private GetChallengeScRsp() { } @@ -45,7 +45,7 @@ public final class GetChallengeScRspOuterClass { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 5; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -53,7 +53,7 @@ public final class GetChallengeScRspOuterClass { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 5; * @return this */ public GetChallengeScRsp clearRetcode() { @@ -63,7 +63,7 @@ public final class GetChallengeScRspOuterClass { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 5; * @return the retcode */ public int getRetcode() { @@ -71,7 +71,7 @@ public final class GetChallengeScRspOuterClass { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 5; * @param value the retcode to set * @return this */ @@ -82,93 +82,25 @@ public final class GetChallengeScRspOuterClass { } /** - * repeated .Challenge challenge_list = 8; - * @return whether the challengeList field is set + * repeated .ChallengeReward challenge_reward_list = 1; + * @return whether the challengeRewardList field is set */ - public boolean hasChallengeList() { + public boolean hasChallengeRewardList() { return (bitField0_ & 0x00000002) != 0; } /** - * repeated .Challenge challenge_list = 8; - * @return this - */ - public GetChallengeScRsp clearChallengeList() { - bitField0_ &= ~0x00000002; - challengeList.clear(); - return this; - } - - /** - * 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. - * - * Use {@link #getMutableChallengeList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getChallengeList() { - return challengeList; - } - - /** - * 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 - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableChallengeList() { - bitField0_ |= 0x00000002; - return challengeList; - } - - /** - * repeated .Challenge challenge_list = 8; - * @param value the challengeList to add - * @return this - */ - public GetChallengeScRsp addChallengeList(final ChallengeOuterClass.Challenge value) { - bitField0_ |= 0x00000002; - challengeList.add(value); - return this; - } - - /** - * repeated .Challenge challenge_list = 8; - * @param values the challengeList to add - * @return this - */ - public GetChallengeScRsp addAllChallengeList(final ChallengeOuterClass.Challenge... values) { - bitField0_ |= 0x00000002; - challengeList.addAll(values); - return this; - } - - /** - * repeated .ChallengeReward challenge_reward_list = 9; - * @return whether the challengeRewardList field is set - */ - public boolean hasChallengeRewardList() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * repeated .ChallengeReward challenge_reward_list = 9; + * repeated .ChallengeReward challenge_reward_list = 1; * @return this */ public GetChallengeScRsp clearChallengeRewardList() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; challengeRewardList.clear(); return this; } /** - * repeated .ChallengeReward challenge_reward_list = 9; + * repeated .ChallengeReward challenge_reward_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. @@ -182,7 +114,7 @@ public final class GetChallengeScRspOuterClass { } /** - * repeated .ChallengeReward challenge_reward_list = 9; + * repeated .ChallengeReward challenge_reward_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 @@ -192,42 +124,110 @@ public final class GetChallengeScRspOuterClass { */ public RepeatedMessage getMutableChallengeRewardList( ) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; return challengeRewardList; } /** - * repeated .ChallengeReward challenge_reward_list = 9; + * repeated .ChallengeReward challenge_reward_list = 1; * @param value the challengeRewardList to add * @return this */ public GetChallengeScRsp addChallengeRewardList( final ChallengeRewardOuterClass.ChallengeReward value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; challengeRewardList.add(value); return this; } /** - * repeated .ChallengeReward challenge_reward_list = 9; + * repeated .ChallengeReward challenge_reward_list = 1; * @param values the challengeRewardList to add * @return this */ public GetChallengeScRsp addAllChallengeRewardList( final ChallengeRewardOuterClass.ChallengeReward... values) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; challengeRewardList.addAll(values); return this; } + /** + * repeated .Challenge challenge_list = 13; + * @return whether the challengeList field is set + */ + public boolean hasChallengeList() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated .Challenge challenge_list = 13; + * @return this + */ + public GetChallengeScRsp clearChallengeList() { + bitField0_ &= ~0x00000004; + challengeList.clear(); + return this; + } + + /** + * repeated .Challenge challenge_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 #getMutableChallengeList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getChallengeList() { + return challengeList; + } + + /** + * repeated .Challenge challenge_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 RepeatedMessage getMutableChallengeList() { + bitField0_ |= 0x00000004; + return challengeList; + } + + /** + * repeated .Challenge challenge_list = 13; + * @param value the challengeList to add + * @return this + */ + public GetChallengeScRsp addChallengeList(final ChallengeOuterClass.Challenge value) { + bitField0_ |= 0x00000004; + challengeList.add(value); + return this; + } + + /** + * repeated .Challenge challenge_list = 13; + * @param values the challengeList to add + * @return this + */ + public GetChallengeScRsp addAllChallengeList(final ChallengeOuterClass.Challenge... values) { + bitField0_ |= 0x00000004; + challengeList.addAll(values); + return this; + } + @Override public GetChallengeScRsp copyFrom(final GetChallengeScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; retcode = other.retcode; - challengeList.copyFrom(other.challengeList); challengeRewardList.copyFrom(other.challengeRewardList); + challengeList.copyFrom(other.challengeList); } return this; } @@ -241,12 +241,12 @@ public final class GetChallengeScRspOuterClass { if (other.hasRetcode()) { setRetcode(other.retcode); } - if (other.hasChallengeList()) { - getMutableChallengeList().addAll(other.challengeList); - } if (other.hasChallengeRewardList()) { getMutableChallengeRewardList().addAll(other.challengeRewardList); } + if (other.hasChallengeList()) { + getMutableChallengeList().addAll(other.challengeList); + } return this; } @@ -258,8 +258,8 @@ public final class GetChallengeScRspOuterClass { cachedSize = -1; bitField0_ = 0; retcode = 0; - challengeList.clear(); challengeRewardList.clear(); + challengeList.clear(); return this; } @@ -270,8 +270,8 @@ public final class GetChallengeScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - challengeList.clearQuick(); challengeRewardList.clearQuick(); + challengeList.clearQuick(); return this; } @@ -286,26 +286,26 @@ public final class GetChallengeScRspOuterClass { GetChallengeScRsp other = (GetChallengeScRsp) o; return bitField0_ == other.bitField0_ && (!hasRetcode() || retcode == other.retcode) - && (!hasChallengeList() || challengeList.equals(other.challengeList)) - && (!hasChallengeRewardList() || challengeRewardList.equals(other.challengeRewardList)); + && (!hasChallengeRewardList() || challengeRewardList.equals(other.challengeRewardList)) + && (!hasChallengeList() || challengeList.equals(other.challengeList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 40); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - for (int i = 0; i < challengeList.length(); i++) { - output.writeRawByte((byte) 66); - output.writeMessageNoTag(challengeList.get(i)); + for (int i = 0; i < challengeRewardList.length(); i++) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(challengeRewardList.get(i)); } } if ((bitField0_ & 0x00000004) != 0) { - for (int i = 0; i < challengeRewardList.length(); i++) { - output.writeRawByte((byte) 74); - output.writeMessageNoTag(challengeRewardList.get(i)); + for (int i = 0; i < challengeList.length(); i++) { + output.writeRawByte((byte) 106); + output.writeMessageNoTag(challengeList.get(i)); } } } @@ -317,10 +317,10 @@ public final class GetChallengeScRspOuterClass { size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - size += (1 * challengeList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(challengeList); + size += (1 * challengeRewardList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(challengeRewardList); } if ((bitField0_ & 0x00000004) != 0) { - size += (1 * challengeRewardList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(challengeRewardList); + size += (1 * challengeList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(challengeList); } return size; } @@ -332,26 +332,26 @@ public final class GetChallengeScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 120: { + case 40: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 66) { + if (tag != 10) { break; } } - case 66: { - // challengeList - tag = input.readRepeatedMessage(challengeList, tag); - bitField0_ |= 0x00000002; - if (tag != 74) { - break; - } - } - case 74: { + case 10: { // challengeRewardList tag = input.readRepeatedMessage(challengeRewardList, tag); + bitField0_ |= 0x00000002; + if (tag != 106) { + break; + } + } + case 106: { + // challengeList + tag = input.readRepeatedMessage(challengeList, tag); bitField0_ |= 0x00000004; if (tag != 0) { break; @@ -378,10 +378,10 @@ public final class GetChallengeScRspOuterClass { output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRepeatedMessage(FieldNames.challengeList, challengeList); + output.writeRepeatedMessage(FieldNames.challengeRewardList, challengeRewardList); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRepeatedMessage(FieldNames.challengeRewardList, challengeRewardList); + output.writeRepeatedMessage(FieldNames.challengeList, challengeList); } output.endObject(); } @@ -404,11 +404,11 @@ public final class GetChallengeScRspOuterClass { } break; } - case -812402783: - case 602944250: { - if (input.isAtField(FieldNames.challengeList)) { + case 1371323696: + case -2132566574: { + if (input.isAtField(FieldNames.challengeRewardList)) { if (!input.trySkipNullValue()) { - input.readRepeatedMessage(challengeList); + input.readRepeatedMessage(challengeRewardList); bitField0_ |= 0x00000002; } } else { @@ -416,11 +416,11 @@ public final class GetChallengeScRspOuterClass { } break; } - case 1371323696: - case -2132566574: { - if (input.isAtField(FieldNames.challengeRewardList)) { + case -812402783: + case 602944250: { + if (input.isAtField(FieldNames.challengeList)) { if (!input.trySkipNullValue()) { - input.readRepeatedMessage(challengeRewardList); + input.readRepeatedMessage(challengeList); bitField0_ |= 0x00000004; } } else { @@ -483,9 +483,9 @@ public final class GetChallengeScRspOuterClass { static class FieldNames { static final FieldName retcode = FieldName.forField("retcode"); - static final FieldName challengeList = FieldName.forField("challengeList", "challenge_list"); - static final FieldName challengeRewardList = FieldName.forField("challengeRewardList", "challenge_reward_list"); + + static final FieldName challengeList = FieldName.forField("challengeList", "challenge_list"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/GetCurChallengeScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetCurChallengeScRspOuterClass.java index aa8ac8c..4e63fbf 100644 --- a/src/generated/main/emu/lunarcore/proto/GetCurChallengeScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetCurChallengeScRspOuterClass.java @@ -19,12 +19,12 @@ public final class GetCurChallengeScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 15; */ private int retcode; /** - * optional .ChallengeInfo challenge_info = 9; + * optional .ChallengeInfo challenge_info = 14; */ private final ChallengeInfoOuterClass.ChallengeInfo challengeInfo = ChallengeInfoOuterClass.ChallengeInfo.newInstance(); @@ -39,7 +39,7 @@ public final class GetCurChallengeScRspOuterClass { } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 15; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -47,7 +47,7 @@ public final class GetCurChallengeScRspOuterClass { } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 15; * @return this */ public GetCurChallengeScRsp clearRetcode() { @@ -57,7 +57,7 @@ public final class GetCurChallengeScRspOuterClass { } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 15; * @return the retcode */ public int getRetcode() { @@ -65,7 +65,7 @@ public final class GetCurChallengeScRspOuterClass { } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 15; * @param value the retcode to set * @return this */ @@ -76,7 +76,7 @@ public final class GetCurChallengeScRspOuterClass { } /** - * optional .ChallengeInfo challenge_info = 9; + * optional .ChallengeInfo challenge_info = 14; * @return whether the challengeInfo field is set */ public boolean hasChallengeInfo() { @@ -84,7 +84,7 @@ public final class GetCurChallengeScRspOuterClass { } /** - * optional .ChallengeInfo challenge_info = 9; + * optional .ChallengeInfo challenge_info = 14; * @return this */ public GetCurChallengeScRsp clearChallengeInfo() { @@ -94,7 +94,7 @@ public final class GetCurChallengeScRspOuterClass { } /** - * optional .ChallengeInfo challenge_info = 9; + * optional .ChallengeInfo challenge_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 final class GetCurChallengeScRspOuterClass { } /** - * optional .ChallengeInfo challenge_info = 9; + * optional .ChallengeInfo challenge_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 final class GetCurChallengeScRspOuterClass { } /** - * optional .ChallengeInfo challenge_info = 9; + * optional .ChallengeInfo challenge_info = 14; * @param value the challengeInfo to set * @return this */ @@ -199,11 +199,11 @@ public final class GetCurChallengeScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 120); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 74); + output.writeRawByte((byte) 114); output.writeMessageNoTag(challengeInfo); } } @@ -227,16 +227,16 @@ public final class GetCurChallengeScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 40: { + case 120: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 74) { + if (tag != 114) { break; } } - case 74: { + case 114: { // 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 c4f3505..28370e7 100644 --- a/src/generated/main/emu/lunarcore/proto/GetCurLineupDataScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetCurLineupDataScRspOuterClass.java @@ -19,12 +19,12 @@ public final class GetCurLineupDataScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 1; */ private int retcode; /** - * optional .LineupInfo lineup = 2; + * optional .LineupInfo lineup = 15; */ private final LineupInfoOuterClass.LineupInfo lineup = LineupInfoOuterClass.LineupInfo.newInstance(); @@ -39,7 +39,7 @@ public final class GetCurLineupDataScRspOuterClass { } /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 1; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -47,7 +47,7 @@ public final class GetCurLineupDataScRspOuterClass { } /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 1; * @return this */ public GetCurLineupDataScRsp clearRetcode() { @@ -57,7 +57,7 @@ public final class GetCurLineupDataScRspOuterClass { } /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 1; * @return the retcode */ public int getRetcode() { @@ -65,7 +65,7 @@ public final class GetCurLineupDataScRspOuterClass { } /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 1; * @param value the retcode to set * @return this */ @@ -76,7 +76,7 @@ public final class GetCurLineupDataScRspOuterClass { } /** - * optional .LineupInfo lineup = 2; + * optional .LineupInfo lineup = 15; * @return whether the lineup field is set */ public boolean hasLineup() { @@ -84,7 +84,7 @@ public final class GetCurLineupDataScRspOuterClass { } /** - * optional .LineupInfo lineup = 2; + * optional .LineupInfo lineup = 15; * @return this */ public GetCurLineupDataScRsp clearLineup() { @@ -94,7 +94,7 @@ public final class GetCurLineupDataScRspOuterClass { } /** - * optional .LineupInfo lineup = 2; + * optional .LineupInfo lineup = 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 final class GetCurLineupDataScRspOuterClass { } /** - * optional .LineupInfo lineup = 2; + * optional .LineupInfo lineup = 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 final class GetCurLineupDataScRspOuterClass { } /** - * optional .LineupInfo lineup = 2; + * optional .LineupInfo lineup = 15; * @param value the lineup to set * @return this */ @@ -198,11 +198,11 @@ public final class GetCurLineupDataScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 8); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 18); + output.writeRawByte((byte) 122); output.writeMessageNoTag(lineup); } } @@ -226,16 +226,16 @@ public final class GetCurLineupDataScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 56: { + case 8: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 18) { + if (tag != 122) { break; } } - case 18: { + case 122: { // 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 3d803eb..73cf85e 100644 --- a/src/generated/main/emu/lunarcore/proto/GetCurSceneInfoScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetCurSceneInfoScRspOuterClass.java @@ -19,12 +19,12 @@ public final class GetCurSceneInfoScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 1; + * optional uint32 retcode = 15; */ private int retcode; /** - * optional .SceneInfo scene = 15; + * optional .SceneInfo scene = 13; */ private final SceneInfoOuterClass.SceneInfo scene = SceneInfoOuterClass.SceneInfo.newInstance(); @@ -39,7 +39,7 @@ public final class GetCurSceneInfoScRspOuterClass { } /** - * optional uint32 retcode = 1; + * optional uint32 retcode = 15; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -47,7 +47,7 @@ public final class GetCurSceneInfoScRspOuterClass { } /** - * optional uint32 retcode = 1; + * optional uint32 retcode = 15; * @return this */ public GetCurSceneInfoScRsp clearRetcode() { @@ -57,7 +57,7 @@ public final class GetCurSceneInfoScRspOuterClass { } /** - * optional uint32 retcode = 1; + * optional uint32 retcode = 15; * @return the retcode */ public int getRetcode() { @@ -65,7 +65,7 @@ public final class GetCurSceneInfoScRspOuterClass { } /** - * optional uint32 retcode = 1; + * optional uint32 retcode = 15; * @param value the retcode to set * @return this */ @@ -76,7 +76,7 @@ public final class GetCurSceneInfoScRspOuterClass { } /** - * optional .SceneInfo scene = 15; + * optional .SceneInfo scene = 13; * @return whether the scene field is set */ public boolean hasScene() { @@ -84,7 +84,7 @@ public final class GetCurSceneInfoScRspOuterClass { } /** - * optional .SceneInfo scene = 15; + * optional .SceneInfo scene = 13; * @return this */ public GetCurSceneInfoScRsp clearScene() { @@ -94,7 +94,7 @@ public final class GetCurSceneInfoScRspOuterClass { } /** - * optional .SceneInfo scene = 15; + * optional .SceneInfo scene = 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 final class GetCurSceneInfoScRspOuterClass { } /** - * optional .SceneInfo scene = 15; + * optional .SceneInfo scene = 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 final class GetCurSceneInfoScRspOuterClass { } /** - * optional .SceneInfo scene = 15; + * optional .SceneInfo scene = 13; * @param value the scene to set * @return this */ @@ -198,11 +198,11 @@ public final class GetCurSceneInfoScRspOuterClass { @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) { - output.writeRawByte((byte) 122); + output.writeRawByte((byte) 106); output.writeMessageNoTag(scene); } } @@ -226,16 +226,16 @@ public final class GetCurSceneInfoScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 8: { + case 120: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 122) { + if (tag != 106) { break; } } - case 122: { + case 106: { // scene input.readMessage(scene); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/GetDailyActiveInfoScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetDailyActiveInfoScRspOuterClass.java index 33da322..60ed7d2 100644 --- a/src/generated/main/emu/lunarcore/proto/GetDailyActiveInfoScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetDailyActiveInfoScRspOuterClass.java @@ -21,12 +21,12 @@ public final class GetDailyActiveInfoScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 daily_active_point = 9; + * optional uint32 daily_active_point = 4; */ private int dailyActivePoint; /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 6; */ private int retcode; @@ -51,7 +51,7 @@ public final class GetDailyActiveInfoScRspOuterClass { } /** - * optional uint32 daily_active_point = 9; + * optional uint32 daily_active_point = 4; * @return whether the dailyActivePoint field is set */ public boolean hasDailyActivePoint() { @@ -59,7 +59,7 @@ public final class GetDailyActiveInfoScRspOuterClass { } /** - * optional uint32 daily_active_point = 9; + * optional uint32 daily_active_point = 4; * @return this */ public GetDailyActiveInfoScRsp clearDailyActivePoint() { @@ -69,7 +69,7 @@ public final class GetDailyActiveInfoScRspOuterClass { } /** - * optional uint32 daily_active_point = 9; + * optional uint32 daily_active_point = 4; * @return the dailyActivePoint */ public int getDailyActivePoint() { @@ -77,7 +77,7 @@ public final class GetDailyActiveInfoScRspOuterClass { } /** - * optional uint32 daily_active_point = 9; + * optional uint32 daily_active_point = 4; * @param value the dailyActivePoint to set * @return this */ @@ -88,7 +88,7 @@ public final class GetDailyActiveInfoScRspOuterClass { } /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 6; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -96,7 +96,7 @@ public final class GetDailyActiveInfoScRspOuterClass { } /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 6; * @return this */ public GetDailyActiveInfoScRsp clearRetcode() { @@ -106,7 +106,7 @@ public final class GetDailyActiveInfoScRspOuterClass { } /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 6; * @return the retcode */ public int getRetcode() { @@ -114,7 +114,7 @@ public final class GetDailyActiveInfoScRspOuterClass { } /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 6; * @param value the retcode to set * @return this */ @@ -343,11 +343,11 @@ public final class GetDailyActiveInfoScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 72); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(dailyActivePoint); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 48); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000004) != 0) { @@ -389,16 +389,16 @@ public final class GetDailyActiveInfoScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 72: { + case 32: { // dailyActivePoint dailyActivePoint = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 96) { + if (tag != 48) { break; } } - case 96: { + case 48: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/GetEnteredSceneScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetEnteredSceneScRspOuterClass.java index 9506cc4..c3c3fdb 100644 --- a/src/generated/main/emu/lunarcore/proto/GetEnteredSceneScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetEnteredSceneScRspOuterClass.java @@ -20,12 +20,12 @@ public final class GetEnteredSceneScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 3; + * optional uint32 retcode = 11; */ private int retcode; /** - * repeated .EnteredSceneInfo entered_scene_info = 4; + * repeated .EnteredSceneInfo entered_scene_info = 6; */ private final RepeatedMessage enteredSceneInfo = RepeatedMessage.newEmptyInstance(EnteredSceneInfoOuterClass.EnteredSceneInfo.getFactory()); @@ -40,7 +40,7 @@ public final class GetEnteredSceneScRspOuterClass { } /** - * optional uint32 retcode = 3; + * optional uint32 retcode = 11; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -48,7 +48,7 @@ public final class GetEnteredSceneScRspOuterClass { } /** - * optional uint32 retcode = 3; + * optional uint32 retcode = 11; * @return this */ public GetEnteredSceneScRsp clearRetcode() { @@ -58,7 +58,7 @@ public final class GetEnteredSceneScRspOuterClass { } /** - * optional uint32 retcode = 3; + * optional uint32 retcode = 11; * @return the retcode */ public int getRetcode() { @@ -66,7 +66,7 @@ public final class GetEnteredSceneScRspOuterClass { } /** - * optional uint32 retcode = 3; + * optional uint32 retcode = 11; * @param value the retcode to set * @return this */ @@ -77,7 +77,7 @@ public final class GetEnteredSceneScRspOuterClass { } /** - * repeated .EnteredSceneInfo entered_scene_info = 4; + * repeated .EnteredSceneInfo entered_scene_info = 6; * @return whether the enteredSceneInfo field is set */ public boolean hasEnteredSceneInfo() { @@ -85,7 +85,7 @@ public final class GetEnteredSceneScRspOuterClass { } /** - * repeated .EnteredSceneInfo entered_scene_info = 4; + * repeated .EnteredSceneInfo entered_scene_info = 6; * @return this */ public GetEnteredSceneScRsp clearEnteredSceneInfo() { @@ -95,7 +95,7 @@ public final class GetEnteredSceneScRspOuterClass { } /** - * repeated .EnteredSceneInfo entered_scene_info = 4; + * repeated .EnteredSceneInfo entered_scene_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. @@ -109,7 +109,7 @@ public final class GetEnteredSceneScRspOuterClass { } /** - * repeated .EnteredSceneInfo entered_scene_info = 4; + * repeated .EnteredSceneInfo entered_scene_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 @@ -124,7 +124,7 @@ public final class GetEnteredSceneScRspOuterClass { } /** - * repeated .EnteredSceneInfo entered_scene_info = 4; + * repeated .EnteredSceneInfo entered_scene_info = 6; * @param value the enteredSceneInfo to add * @return this */ @@ -136,7 +136,7 @@ public final class GetEnteredSceneScRspOuterClass { } /** - * repeated .EnteredSceneInfo entered_scene_info = 4; + * repeated .EnteredSceneInfo entered_scene_info = 6; * @param values the enteredSceneInfo to add * @return this */ @@ -213,12 +213,12 @@ public final class GetEnteredSceneScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 88); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < enteredSceneInfo.length(); i++) { - output.writeRawByte((byte) 34); + output.writeRawByte((byte) 50); output.writeMessageNoTag(enteredSceneInfo.get(i)); } } @@ -243,16 +243,16 @@ public final class GetEnteredSceneScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 24: { + case 88: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 34) { + if (tag != 50) { break; } } - case 34: { + case 50: { // 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 5340f10..789832d 100644 --- a/src/generated/main/emu/lunarcore/proto/GetFirstTalkByPerformanceNpcCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetFirstTalkByPerformanceNpcCsReqOuterClass.java @@ -20,7 +20,7 @@ public final class GetFirstTalkByPerformanceNpcCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * repeated uint32 npc_talk_list = 2; + * repeated uint32 npc_talk_list = 6; */ private final RepeatedInt npcTalkList = RepeatedInt.newEmptyInstance(); @@ -35,7 +35,7 @@ public final class GetFirstTalkByPerformanceNpcCsReqOuterClass { } /** - * repeated uint32 npc_talk_list = 2; + * repeated uint32 npc_talk_list = 6; * @return whether the npcTalkList field is set */ public boolean hasNpcTalkList() { @@ -43,7 +43,7 @@ public final class GetFirstTalkByPerformanceNpcCsReqOuterClass { } /** - * repeated uint32 npc_talk_list = 2; + * repeated uint32 npc_talk_list = 6; * @return this */ public GetFirstTalkByPerformanceNpcCsReq clearNpcTalkList() { @@ -53,7 +53,7 @@ public final class GetFirstTalkByPerformanceNpcCsReqOuterClass { } /** - * repeated uint32 npc_talk_list = 2; + * repeated uint32 npc_talk_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 final class GetFirstTalkByPerformanceNpcCsReqOuterClass { } /** - * repeated uint32 npc_talk_list = 2; + * repeated uint32 npc_talk_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 final class GetFirstTalkByPerformanceNpcCsReqOuterClass { } /** - * repeated uint32 npc_talk_list = 2; + * repeated uint32 npc_talk_list = 6; * @param value the npcTalkList to add * @return this */ @@ -92,7 +92,7 @@ public final class GetFirstTalkByPerformanceNpcCsReqOuterClass { } /** - * repeated uint32 npc_talk_list = 2; + * repeated uint32 npc_talk_list = 6; * @param values the npcTalkList to add * @return this */ @@ -165,7 +165,7 @@ public final class GetFirstTalkByPerformanceNpcCsReqOuterClass { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { for (int i = 0; i < npcTalkList.length(); i++) { - output.writeRawByte((byte) 16); + output.writeRawByte((byte) 48); output.writeUInt32NoTag(npcTalkList.array()[i]); } } @@ -187,7 +187,7 @@ public final class GetFirstTalkByPerformanceNpcCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 18: { + case 50: { // npcTalkList [packed=true] input.readPackedUInt32(npcTalkList, tag); bitField0_ |= 0x00000001; @@ -206,7 +206,7 @@ public final class GetFirstTalkByPerformanceNpcCsReqOuterClass { tag = input.readTag(); break; } - case 16: { + case 48: { // 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 811b5c2..f8b2d1c 100644 --- a/src/generated/main/emu/lunarcore/proto/GetFirstTalkByPerformanceNpcScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetFirstTalkByPerformanceNpcScRspOuterClass.java @@ -20,12 +20,12 @@ public final class GetFirstTalkByPerformanceNpcScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 14; */ private int retcode; /** - * repeated .NpcTalkInfo npc_talk_info_list = 11; + * repeated .NpcTalkInfo npc_talk_info_list = 4; */ private final RepeatedMessage npcTalkInfoList = RepeatedMessage.newEmptyInstance(NpcTalkInfoOuterClass.NpcTalkInfo.getFactory()); @@ -40,7 +40,7 @@ public final class GetFirstTalkByPerformanceNpcScRspOuterClass { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 14; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -48,7 +48,7 @@ public final class GetFirstTalkByPerformanceNpcScRspOuterClass { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 14; * @return this */ public GetFirstTalkByPerformanceNpcScRsp clearRetcode() { @@ -58,7 +58,7 @@ public final class GetFirstTalkByPerformanceNpcScRspOuterClass { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 14; * @return the retcode */ public int getRetcode() { @@ -66,7 +66,7 @@ public final class GetFirstTalkByPerformanceNpcScRspOuterClass { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 14; * @param value the retcode to set * @return this */ @@ -77,7 +77,7 @@ public final class GetFirstTalkByPerformanceNpcScRspOuterClass { } /** - * repeated .NpcTalkInfo npc_talk_info_list = 11; + * repeated .NpcTalkInfo npc_talk_info_list = 4; * @return whether the npcTalkInfoList field is set */ public boolean hasNpcTalkInfoList() { @@ -85,7 +85,7 @@ public final class GetFirstTalkByPerformanceNpcScRspOuterClass { } /** - * repeated .NpcTalkInfo npc_talk_info_list = 11; + * repeated .NpcTalkInfo npc_talk_info_list = 4; * @return this */ public GetFirstTalkByPerformanceNpcScRsp clearNpcTalkInfoList() { @@ -95,7 +95,7 @@ public final class GetFirstTalkByPerformanceNpcScRspOuterClass { } /** - * repeated .NpcTalkInfo npc_talk_info_list = 11; + * repeated .NpcTalkInfo npc_talk_info_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 final class GetFirstTalkByPerformanceNpcScRspOuterClass { } /** - * repeated .NpcTalkInfo npc_talk_info_list = 11; + * repeated .NpcTalkInfo npc_talk_info_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 final class GetFirstTalkByPerformanceNpcScRspOuterClass { } /** - * repeated .NpcTalkInfo npc_talk_info_list = 11; + * repeated .NpcTalkInfo npc_talk_info_list = 4; * @param value the npcTalkInfoList to add * @return this */ @@ -135,7 +135,7 @@ public final class GetFirstTalkByPerformanceNpcScRspOuterClass { } /** - * repeated .NpcTalkInfo npc_talk_info_list = 11; + * repeated .NpcTalkInfo npc_talk_info_list = 4; * @param values the npcTalkInfoList to add * @return this */ @@ -214,12 +214,12 @@ public final class GetFirstTalkByPerformanceNpcScRspOuterClass { @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) { for (int i = 0; i < npcTalkInfoList.length(); i++) { - output.writeRawByte((byte) 90); + output.writeRawByte((byte) 34); output.writeMessageNoTag(npcTalkInfoList.get(i)); } } @@ -244,16 +244,16 @@ public final class GetFirstTalkByPerformanceNpcScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 64: { + case 112: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 90) { + if (tag != 34) { break; } } - case 90: { + case 34: { // 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 02c9f36..75c2a1e 100644 --- a/src/generated/main/emu/lunarcore/proto/GetFriendApplyListInfoScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetFriendApplyListInfoScRspOuterClass.java @@ -20,12 +20,12 @@ public final class GetFriendApplyListInfoScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 3; + * optional uint32 retcode = 9; */ private int retcode; /** - * repeated .FriendApplyInfo friend_apply_list = 1; + * repeated .FriendApplyInfo friend_apply_list = 5; */ private final RepeatedMessage friendApplyList = RepeatedMessage.newEmptyInstance(FriendApplyInfoOuterClass.FriendApplyInfo.getFactory()); @@ -40,7 +40,7 @@ public final class GetFriendApplyListInfoScRspOuterClass { } /** - * optional uint32 retcode = 3; + * optional uint32 retcode = 9; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -48,7 +48,7 @@ public final class GetFriendApplyListInfoScRspOuterClass { } /** - * optional uint32 retcode = 3; + * optional uint32 retcode = 9; * @return this */ public GetFriendApplyListInfoScRsp clearRetcode() { @@ -58,7 +58,7 @@ public final class GetFriendApplyListInfoScRspOuterClass { } /** - * optional uint32 retcode = 3; + * optional uint32 retcode = 9; * @return the retcode */ public int getRetcode() { @@ -66,7 +66,7 @@ public final class GetFriendApplyListInfoScRspOuterClass { } /** - * optional uint32 retcode = 3; + * optional uint32 retcode = 9; * @param value the retcode to set * @return this */ @@ -77,7 +77,7 @@ public final class GetFriendApplyListInfoScRspOuterClass { } /** - * repeated .FriendApplyInfo friend_apply_list = 1; + * repeated .FriendApplyInfo friend_apply_list = 5; * @return whether the friendApplyList field is set */ public boolean hasFriendApplyList() { @@ -85,7 +85,7 @@ public final class GetFriendApplyListInfoScRspOuterClass { } /** - * repeated .FriendApplyInfo friend_apply_list = 1; + * repeated .FriendApplyInfo friend_apply_list = 5; * @return this */ public GetFriendApplyListInfoScRsp clearFriendApplyList() { @@ -95,7 +95,7 @@ public final class GetFriendApplyListInfoScRspOuterClass { } /** - * repeated .FriendApplyInfo friend_apply_list = 1; + * repeated .FriendApplyInfo friend_apply_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 final class GetFriendApplyListInfoScRspOuterClass { } /** - * repeated .FriendApplyInfo friend_apply_list = 1; + * repeated .FriendApplyInfo friend_apply_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 final class GetFriendApplyListInfoScRspOuterClass { } /** - * repeated .FriendApplyInfo friend_apply_list = 1; + * repeated .FriendApplyInfo friend_apply_list = 5; * @param value the friendApplyList to add * @return this */ @@ -135,7 +135,7 @@ public final class GetFriendApplyListInfoScRspOuterClass { } /** - * repeated .FriendApplyInfo friend_apply_list = 1; + * repeated .FriendApplyInfo friend_apply_list = 5; * @param values the friendApplyList to add * @return this */ @@ -212,12 +212,12 @@ public final class GetFriendApplyListInfoScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 72); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < friendApplyList.length(); i++) { - output.writeRawByte((byte) 10); + output.writeRawByte((byte) 42); output.writeMessageNoTag(friendApplyList.get(i)); } } @@ -242,16 +242,16 @@ public final class GetFriendApplyListInfoScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 24: { + case 72: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 10) { + if (tag != 42) { break; } } - case 10: { + case 42: { // 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 e3af621..a879dd3 100644 --- a/src/generated/main/emu/lunarcore/proto/GetFriendListInfoScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetFriendListInfoScRspOuterClass.java @@ -20,17 +20,12 @@ public final class GetFriendListInfoScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 6; */ private int retcode; /** - * repeated .SimpleInfo simple_info = 1; - */ - private final RepeatedMessage simpleInfo = RepeatedMessage.newEmptyInstance(SimpleInfoOuterClass.SimpleInfo.getFactory()); - - /** - * repeated .FriendListInfo friend_list = 3; + * repeated .FriendListInfo friend_list = 2; */ private final RepeatedMessage friendList = RepeatedMessage.newEmptyInstance(FriendListInfoOuterClass.FriendListInfo.getFactory()); @@ -45,7 +40,7 @@ public final class GetFriendListInfoScRspOuterClass { } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 6; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -53,7 +48,7 @@ public final class GetFriendListInfoScRspOuterClass { } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 6; * @return this */ public GetFriendListInfoScRsp clearRetcode() { @@ -63,7 +58,7 @@ public final class GetFriendListInfoScRspOuterClass { } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 6; * @return the retcode */ public int getRetcode() { @@ -71,7 +66,7 @@ public final class GetFriendListInfoScRspOuterClass { } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 6; * @param value the retcode to set * @return this */ @@ -82,94 +77,25 @@ public final class GetFriendListInfoScRspOuterClass { } /** - * repeated .SimpleInfo simple_info = 1; - * @return whether the simpleInfo field is set + * repeated .FriendListInfo friend_list = 2; + * @return whether the friendList field is set */ - public boolean hasSimpleInfo() { + public boolean hasFriendList() { return (bitField0_ & 0x00000002) != 0; } /** - * repeated .SimpleInfo simple_info = 1; - * @return this - */ - public GetFriendListInfoScRsp clearSimpleInfo() { - bitField0_ &= ~0x00000002; - simpleInfo.clear(); - return this; - } - - /** - * 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 #getMutableSimpleInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getSimpleInfo() { - return simpleInfo; - } - - /** - * 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 - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableSimpleInfo() { - bitField0_ |= 0x00000002; - return simpleInfo; - } - - /** - * repeated .SimpleInfo simple_info = 1; - * @param value the simpleInfo to add - * @return this - */ - public GetFriendListInfoScRsp addSimpleInfo(final SimpleInfoOuterClass.SimpleInfo value) { - bitField0_ |= 0x00000002; - simpleInfo.add(value); - return this; - } - - /** - * repeated .SimpleInfo simple_info = 1; - * @param values the simpleInfo to add - * @return this - */ - public GetFriendListInfoScRsp addAllSimpleInfo( - final SimpleInfoOuterClass.SimpleInfo... values) { - bitField0_ |= 0x00000002; - simpleInfo.addAll(values); - return this; - } - - /** - * repeated .FriendListInfo friend_list = 3; - * @return whether the friendList field is set - */ - public boolean hasFriendList() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * repeated .FriendListInfo friend_list = 3; + * repeated .FriendListInfo friend_list = 2; * @return this */ public GetFriendListInfoScRsp clearFriendList() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; friendList.clear(); return this; } /** - * repeated .FriendListInfo friend_list = 3; + * repeated .FriendListInfo friend_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. @@ -183,7 +109,7 @@ public final class GetFriendListInfoScRspOuterClass { } /** - * repeated .FriendListInfo friend_list = 3; + * repeated .FriendListInfo friend_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 @@ -192,30 +118,30 @@ public final class GetFriendListInfoScRspOuterClass { * @return internal storage object for modifications */ public RepeatedMessage getMutableFriendList() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; return friendList; } /** - * repeated .FriendListInfo friend_list = 3; + * repeated .FriendListInfo friend_list = 2; * @param value the friendList to add * @return this */ public GetFriendListInfoScRsp addFriendList( final FriendListInfoOuterClass.FriendListInfo value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; friendList.add(value); return this; } /** - * repeated .FriendListInfo friend_list = 3; + * repeated .FriendListInfo friend_list = 2; * @param values the friendList to add * @return this */ public GetFriendListInfoScRsp addAllFriendList( final FriendListInfoOuterClass.FriendListInfo... values) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; friendList.addAll(values); return this; } @@ -226,7 +152,6 @@ public final class GetFriendListInfoScRspOuterClass { if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; retcode = other.retcode; - simpleInfo.copyFrom(other.simpleInfo); friendList.copyFrom(other.friendList); } return this; @@ -241,9 +166,6 @@ public final class GetFriendListInfoScRspOuterClass { if (other.hasRetcode()) { setRetcode(other.retcode); } - if (other.hasSimpleInfo()) { - getMutableSimpleInfo().addAll(other.simpleInfo); - } if (other.hasFriendList()) { getMutableFriendList().addAll(other.friendList); } @@ -258,7 +180,6 @@ public final class GetFriendListInfoScRspOuterClass { cachedSize = -1; bitField0_ = 0; retcode = 0; - simpleInfo.clear(); friendList.clear(); return this; } @@ -270,7 +191,6 @@ public final class GetFriendListInfoScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - simpleInfo.clearQuick(); friendList.clearQuick(); return this; } @@ -286,25 +206,18 @@ public final class GetFriendListInfoScRspOuterClass { GetFriendListInfoScRsp other = (GetFriendListInfoScRsp) o; return bitField0_ == other.bitField0_ && (!hasRetcode() || retcode == other.retcode) - && (!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) 112); + output.writeRawByte((byte) 48); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - 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 < friendList.length(); i++) { - output.writeRawByte((byte) 26); + output.writeRawByte((byte) 18); output.writeMessageNoTag(friendList.get(i)); } } @@ -317,9 +230,6 @@ public final class GetFriendListInfoScRspOuterClass { size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - size += (1 * simpleInfo.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(simpleInfo); - } - if ((bitField0_ & 0x00000004) != 0) { size += (1 * friendList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(friendList); } return size; @@ -332,27 +242,19 @@ public final class GetFriendListInfoScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 112: { + case 48: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 10) { + if (tag != 18) { break; } } - case 10: { - // simpleInfo - tag = input.readRepeatedMessage(simpleInfo, tag); - bitField0_ |= 0x00000002; - if (tag != 26) { - break; - } - } - case 26: { + case 18: { // friendList tag = input.readRepeatedMessage(friendList, tag); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; if (tag != 0) { break; } @@ -378,9 +280,6 @@ public final class GetFriendListInfoScRspOuterClass { output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRepeatedMessage(FieldNames.simpleInfo, simpleInfo); - } - if ((bitField0_ & 0x00000004) != 0) { output.writeRepeatedMessage(FieldNames.friendList, friendList); } output.endObject(); @@ -404,24 +303,12 @@ public final class GetFriendListInfoScRspOuterClass { } break; } - case -1431903872: - case -1419171045: { - if (input.isAtField(FieldNames.simpleInfo)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(simpleInfo); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } case -1756909476: case 1388007839: { if (input.isAtField(FieldNames.friendList)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(friendList); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; } } else { input.skipUnknownField(); @@ -483,8 +370,6 @@ public final class GetFriendListInfoScRspOuterClass { static class FieldNames { static final FieldName retcode = FieldName.forField("retcode"); - 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 83e99f0..9676d84 100644 --- a/src/generated/main/emu/lunarcore/proto/GetFriendLoginInfoScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetFriendLoginInfoScRspOuterClass.java @@ -20,19 +20,19 @@ public final class GetFriendLoginInfoScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 11; + * optional uint32 retcode = 4; */ private int retcode; /** - * repeated uint32 friend_uid_list = 5; + * repeated uint32 friend_uid_list = 11; */ private final RepeatedInt friendUidList = RepeatedInt.newEmptyInstance(); /** - * repeated uint32 black_uid_list = 15; + * repeated uint32 DKOGBHPIFKJ = 12; */ - private final RepeatedInt blackUidList = RepeatedInt.newEmptyInstance(); + private final RepeatedInt dKOGBHPIFKJ = RepeatedInt.newEmptyInstance(); private GetFriendLoginInfoScRsp() { } @@ -45,7 +45,7 @@ public final class GetFriendLoginInfoScRspOuterClass { } /** - * optional uint32 retcode = 11; + * optional uint32 retcode = 4; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -53,7 +53,7 @@ public final class GetFriendLoginInfoScRspOuterClass { } /** - * optional uint32 retcode = 11; + * optional uint32 retcode = 4; * @return this */ public GetFriendLoginInfoScRsp clearRetcode() { @@ -63,7 +63,7 @@ public final class GetFriendLoginInfoScRspOuterClass { } /** - * optional uint32 retcode = 11; + * optional uint32 retcode = 4; * @return the retcode */ public int getRetcode() { @@ -71,7 +71,7 @@ public final class GetFriendLoginInfoScRspOuterClass { } /** - * optional uint32 retcode = 11; + * optional uint32 retcode = 4; * @param value the retcode to set * @return this */ @@ -82,7 +82,7 @@ public final class GetFriendLoginInfoScRspOuterClass { } /** - * repeated uint32 friend_uid_list = 5; + * repeated uint32 friend_uid_list = 11; * @return whether the friendUidList field is set */ public boolean hasFriendUidList() { @@ -90,7 +90,7 @@ public final class GetFriendLoginInfoScRspOuterClass { } /** - * repeated uint32 friend_uid_list = 5; + * repeated uint32 friend_uid_list = 11; * @return this */ public GetFriendLoginInfoScRsp clearFriendUidList() { @@ -100,7 +100,7 @@ public final class GetFriendLoginInfoScRspOuterClass { } /** - * repeated uint32 friend_uid_list = 5; + * repeated uint32 friend_uid_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. @@ -114,7 +114,7 @@ public final class GetFriendLoginInfoScRspOuterClass { } /** - * repeated uint32 friend_uid_list = 5; + * repeated uint32 friend_uid_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 @@ -128,7 +128,7 @@ public final class GetFriendLoginInfoScRspOuterClass { } /** - * repeated uint32 friend_uid_list = 5; + * repeated uint32 friend_uid_list = 11; * @param value the friendUidList to add * @return this */ @@ -139,7 +139,7 @@ public final class GetFriendLoginInfoScRspOuterClass { } /** - * repeated uint32 friend_uid_list = 5; + * repeated uint32 friend_uid_list = 11; * @param values the friendUidList to add * @return this */ @@ -150,39 +150,39 @@ public final class GetFriendLoginInfoScRspOuterClass { } /** - * repeated uint32 black_uid_list = 15; - * @return whether the blackUidList field is set + * repeated uint32 DKOGBHPIFKJ = 12; + * @return whether the dKOGBHPIFKJ field is set */ - public boolean hasBlackUidList() { + public boolean hasDKOGBHPIFKJ() { return (bitField0_ & 0x00000004) != 0; } /** - * repeated uint32 black_uid_list = 15; + * repeated uint32 DKOGBHPIFKJ = 12; * @return this */ - public GetFriendLoginInfoScRsp clearBlackUidList() { + public GetFriendLoginInfoScRsp clearDKOGBHPIFKJ() { bitField0_ &= ~0x00000004; - blackUidList.clear(); + dKOGBHPIFKJ.clear(); return this; } /** - * repeated uint32 black_uid_list = 15; + * repeated uint32 DKOGBHPIFKJ = 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 #getMutableBlackUidList()} if you want to modify it. + * Use {@link #getMutableDKOGBHPIFKJ()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedInt getBlackUidList() { - return blackUidList; + public RepeatedInt getDKOGBHPIFKJ() { + return dKOGBHPIFKJ; } /** - * repeated uint32 black_uid_list = 15; + * repeated uint32 DKOGBHPIFKJ = 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 @@ -190,30 +190,30 @@ public final class GetFriendLoginInfoScRspOuterClass { * * @return internal storage object for modifications */ - public RepeatedInt getMutableBlackUidList() { + public RepeatedInt getMutableDKOGBHPIFKJ() { bitField0_ |= 0x00000004; - return blackUidList; + return dKOGBHPIFKJ; } /** - * repeated uint32 black_uid_list = 15; - * @param value the blackUidList to add + * repeated uint32 DKOGBHPIFKJ = 12; + * @param value the dKOGBHPIFKJ to add * @return this */ - public GetFriendLoginInfoScRsp addBlackUidList(final int value) { + public GetFriendLoginInfoScRsp addDKOGBHPIFKJ(final int value) { bitField0_ |= 0x00000004; - blackUidList.add(value); + dKOGBHPIFKJ.add(value); return this; } /** - * repeated uint32 black_uid_list = 15; - * @param values the blackUidList to add + * repeated uint32 DKOGBHPIFKJ = 12; + * @param values the dKOGBHPIFKJ to add * @return this */ - public GetFriendLoginInfoScRsp addAllBlackUidList(final int... values) { + public GetFriendLoginInfoScRsp addAllDKOGBHPIFKJ(final int... values) { bitField0_ |= 0x00000004; - blackUidList.addAll(values); + dKOGBHPIFKJ.addAll(values); return this; } @@ -224,7 +224,7 @@ public final class GetFriendLoginInfoScRspOuterClass { bitField0_ = other.bitField0_; retcode = other.retcode; friendUidList.copyFrom(other.friendUidList); - blackUidList.copyFrom(other.blackUidList); + dKOGBHPIFKJ.copyFrom(other.dKOGBHPIFKJ); } return this; } @@ -241,8 +241,8 @@ public final class GetFriendLoginInfoScRspOuterClass { if (other.hasFriendUidList()) { getMutableFriendUidList().addAll(other.friendUidList); } - if (other.hasBlackUidList()) { - getMutableBlackUidList().addAll(other.blackUidList); + if (other.hasDKOGBHPIFKJ()) { + getMutableDKOGBHPIFKJ().addAll(other.dKOGBHPIFKJ); } return this; } @@ -256,7 +256,7 @@ public final class GetFriendLoginInfoScRspOuterClass { bitField0_ = 0; retcode = 0; friendUidList.clear(); - blackUidList.clear(); + dKOGBHPIFKJ.clear(); return this; } @@ -268,7 +268,7 @@ public final class GetFriendLoginInfoScRspOuterClass { cachedSize = -1; bitField0_ = 0; friendUidList.clear(); - blackUidList.clear(); + dKOGBHPIFKJ.clear(); return this; } @@ -284,25 +284,25 @@ public final class GetFriendLoginInfoScRspOuterClass { return bitField0_ == other.bitField0_ && (!hasRetcode() || retcode == other.retcode) && (!hasFriendUidList() || friendUidList.equals(other.friendUidList)) - && (!hasBlackUidList() || blackUidList.equals(other.blackUidList)); + && (!hasDKOGBHPIFKJ() || dKOGBHPIFKJ.equals(other.dKOGBHPIFKJ)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < friendUidList.length(); i++) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 88); output.writeUInt32NoTag(friendUidList.array()[i]); } } if ((bitField0_ & 0x00000004) != 0) { - for (int i = 0; i < blackUidList.length(); i++) { - output.writeRawByte((byte) 120); - output.writeUInt32NoTag(blackUidList.array()[i]); + for (int i = 0; i < dKOGBHPIFKJ.length(); i++) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(dKOGBHPIFKJ.array()[i]); } } } @@ -317,7 +317,7 @@ public final class GetFriendLoginInfoScRspOuterClass { size += (1 * friendUidList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(friendUidList); } if ((bitField0_ & 0x00000004) != 0) { - size += (1 * blackUidList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(blackUidList); + size += (1 * dKOGBHPIFKJ.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(dKOGBHPIFKJ); } return size; } @@ -329,27 +329,27 @@ public final class GetFriendLoginInfoScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 88: { + case 32: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 42) { + if (tag != 90) { break; } } - case 42: { + case 90: { // friendUidList [packed=true] input.readPackedUInt32(friendUidList, tag); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 122) { + if (tag != 98) { break; } } - case 122: { - // blackUidList [packed=true] - input.readPackedUInt32(blackUidList, tag); + case 98: { + // dKOGBHPIFKJ [packed=true] + input.readPackedUInt32(dKOGBHPIFKJ, tag); bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 0) { @@ -366,15 +366,15 @@ public final class GetFriendLoginInfoScRspOuterClass { tag = input.readTag(); break; } - case 40: { + case 88: { // friendUidList [packed=false] tag = input.readRepeatedUInt32(friendUidList, tag); bitField0_ |= 0x00000002; break; } - case 120: { - // blackUidList [packed=false] - tag = input.readRepeatedUInt32(blackUidList, tag); + case 96: { + // dKOGBHPIFKJ [packed=false] + tag = input.readRepeatedUInt32(dKOGBHPIFKJ, tag); bitField0_ |= 0x00000004; break; } @@ -392,7 +392,7 @@ public final class GetFriendLoginInfoScRspOuterClass { output.writeRepeatedUInt32(FieldNames.friendUidList, friendUidList); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRepeatedUInt32(FieldNames.blackUidList, blackUidList); + output.writeRepeatedUInt32(FieldNames.dKOGBHPIFKJ, dKOGBHPIFKJ); } output.endObject(); } @@ -427,11 +427,10 @@ public final class GetFriendLoginInfoScRspOuterClass { } break; } - case 1562975247: - case -1854929043: { - if (input.isAtField(FieldNames.blackUidList)) { + case -778625657: { + if (input.isAtField(FieldNames.dKOGBHPIFKJ)) { if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(blackUidList); + input.readRepeatedUInt32(dKOGBHPIFKJ); bitField0_ |= 0x00000004; } } else { @@ -496,7 +495,7 @@ public final class GetFriendLoginInfoScRspOuterClass { static final FieldName friendUidList = FieldName.forField("friendUidList", "friend_uid_list"); - static final FieldName blackUidList = FieldName.forField("blackUidList", "black_uid_list"); + static final FieldName dKOGBHPIFKJ = FieldName.forField("DKOGBHPIFKJ"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/GetFriendRecommendListInfoScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetFriendRecommendListInfoScRspOuterClass.java index c5ce8f4..ef59c0b 100644 --- a/src/generated/main/emu/lunarcore/proto/GetFriendRecommendListInfoScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetFriendRecommendListInfoScRspOuterClass.java @@ -20,12 +20,12 @@ public final class GetFriendRecommendListInfoScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 3; + * optional uint32 retcode = 8; */ private int retcode; /** - * repeated .FriendRecommendInfo friend_recommend_list = 13; + * repeated .FriendRecommendInfo friend_recommend_list = 10; */ private final RepeatedMessage friendRecommendList = RepeatedMessage.newEmptyInstance(FriendRecommendInfoOuterClass.FriendRecommendInfo.getFactory()); @@ -40,7 +40,7 @@ public final class GetFriendRecommendListInfoScRspOuterClass { } /** - * optional uint32 retcode = 3; + * optional uint32 retcode = 8; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -48,7 +48,7 @@ public final class GetFriendRecommendListInfoScRspOuterClass { } /** - * optional uint32 retcode = 3; + * optional uint32 retcode = 8; * @return this */ public GetFriendRecommendListInfoScRsp clearRetcode() { @@ -58,7 +58,7 @@ public final class GetFriendRecommendListInfoScRspOuterClass { } /** - * optional uint32 retcode = 3; + * optional uint32 retcode = 8; * @return the retcode */ public int getRetcode() { @@ -66,7 +66,7 @@ public final class GetFriendRecommendListInfoScRspOuterClass { } /** - * optional uint32 retcode = 3; + * optional uint32 retcode = 8; * @param value the retcode to set * @return this */ @@ -77,7 +77,7 @@ public final class GetFriendRecommendListInfoScRspOuterClass { } /** - * repeated .FriendRecommendInfo friend_recommend_list = 13; + * repeated .FriendRecommendInfo friend_recommend_list = 10; * @return whether the friendRecommendList field is set */ public boolean hasFriendRecommendList() { @@ -85,7 +85,7 @@ public final class GetFriendRecommendListInfoScRspOuterClass { } /** - * repeated .FriendRecommendInfo friend_recommend_list = 13; + * repeated .FriendRecommendInfo friend_recommend_list = 10; * @return this */ public GetFriendRecommendListInfoScRsp clearFriendRecommendList() { @@ -95,7 +95,7 @@ public final class GetFriendRecommendListInfoScRspOuterClass { } /** - * repeated .FriendRecommendInfo friend_recommend_list = 13; + * repeated .FriendRecommendInfo friend_recommend_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. @@ -110,7 +110,7 @@ public final class GetFriendRecommendListInfoScRspOuterClass { } /** - * repeated .FriendRecommendInfo friend_recommend_list = 13; + * repeated .FriendRecommendInfo friend_recommend_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 @@ -125,7 +125,7 @@ public final class GetFriendRecommendListInfoScRspOuterClass { } /** - * repeated .FriendRecommendInfo friend_recommend_list = 13; + * repeated .FriendRecommendInfo friend_recommend_list = 10; * @param value the friendRecommendList to add * @return this */ @@ -137,7 +137,7 @@ public final class GetFriendRecommendListInfoScRspOuterClass { } /** - * repeated .FriendRecommendInfo friend_recommend_list = 13; + * repeated .FriendRecommendInfo friend_recommend_list = 10; * @param values the friendRecommendList to add * @return this */ @@ -214,12 +214,12 @@ public final class GetFriendRecommendListInfoScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 64); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < friendRecommendList.length(); i++) { - output.writeRawByte((byte) 106); + output.writeRawByte((byte) 82); output.writeMessageNoTag(friendRecommendList.get(i)); } } @@ -244,16 +244,16 @@ public final class GetFriendRecommendListInfoScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 24: { + case 64: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 106) { + if (tag != 82) { break; } } - case 106: { + case 82: { // 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 a23ac56..ba29e9d 100644 --- a/src/generated/main/emu/lunarcore/proto/GetGachaCeilingCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetGachaCeilingCsReqOuterClass.java @@ -19,7 +19,7 @@ public final class GetGachaCeilingCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 gacha_type = 10; + * optional uint32 gacha_type = 12; */ private int gachaType; @@ -34,7 +34,7 @@ public final class GetGachaCeilingCsReqOuterClass { } /** - * optional uint32 gacha_type = 10; + * optional uint32 gacha_type = 12; * @return whether the gachaType field is set */ public boolean hasGachaType() { @@ -42,7 +42,7 @@ public final class GetGachaCeilingCsReqOuterClass { } /** - * optional uint32 gacha_type = 10; + * optional uint32 gacha_type = 12; * @return this */ public GetGachaCeilingCsReq clearGachaType() { @@ -52,7 +52,7 @@ public final class GetGachaCeilingCsReqOuterClass { } /** - * optional uint32 gacha_type = 10; + * optional uint32 gacha_type = 12; * @return the gachaType */ public int getGachaType() { @@ -60,7 +60,7 @@ public final class GetGachaCeilingCsReqOuterClass { } /** - * optional uint32 gacha_type = 10; + * optional uint32 gacha_type = 12; * @param value the gachaType to set * @return this */ @@ -129,7 +129,7 @@ public final class GetGachaCeilingCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 96); output.writeUInt32NoTag(gachaType); } } @@ -150,7 +150,7 @@ public final class GetGachaCeilingCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 80: { + case 96: { // 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 bf918d3..38ffad6 100644 --- a/src/generated/main/emu/lunarcore/proto/GetGachaCeilingScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetGachaCeilingScRspOuterClass.java @@ -19,15 +19,15 @@ public final class GetGachaCeilingScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 gacha_type = 3; - */ - private int gachaType; - - /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 3; */ private int retcode; + /** + * optional uint32 gacha_type = 6; + */ + private int gachaType; + /** * optional .GachaCeiling gacha_ceiling = 1; */ @@ -44,62 +44,25 @@ public final class GetGachaCeilingScRspOuterClass { } /** - * optional uint32 gacha_type = 3; - * @return whether the gachaType field is set + * optional uint32 retcode = 3; + * @return whether the retcode field is set */ - public boolean hasGachaType() { + public boolean hasRetcode() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 gacha_type = 3; - * @return this - */ - public GetGachaCeilingScRsp clearGachaType() { - bitField0_ &= ~0x00000001; - gachaType = 0; - return this; - } - - /** - * optional uint32 gacha_type = 3; - * @return the gachaType - */ - public int getGachaType() { - return gachaType; - } - - /** - * optional uint32 gacha_type = 3; - * @param value the gachaType to set - * @return this - */ - public GetGachaCeilingScRsp setGachaType(final int value) { - bitField0_ |= 0x00000001; - gachaType = value; - return this; - } - - /** - * optional uint32 retcode = 15; - * @return whether the retcode field is set - */ - public boolean hasRetcode() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 3; * @return this */ public GetGachaCeilingScRsp clearRetcode() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; retcode = 0; return this; } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 3; * @return the retcode */ public int getRetcode() { @@ -107,16 +70,53 @@ public final class GetGachaCeilingScRspOuterClass { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 3; * @param value the retcode to set * @return this */ public GetGachaCeilingScRsp setRetcode(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; retcode = value; return this; } + /** + * optional uint32 gacha_type = 6; + * @return whether the gachaType field is set + */ + public boolean hasGachaType() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 gacha_type = 6; + * @return this + */ + public GetGachaCeilingScRsp clearGachaType() { + bitField0_ &= ~0x00000002; + gachaType = 0; + return this; + } + + /** + * optional uint32 gacha_type = 6; + * @return the gachaType + */ + public int getGachaType() { + return gachaType; + } + + /** + * optional uint32 gacha_type = 6; + * @param value the gachaType to set + * @return this + */ + public GetGachaCeilingScRsp setGachaType(final int value) { + bitField0_ |= 0x00000002; + gachaType = value; + return this; + } + /** * optional .GachaCeiling gacha_ceiling = 1; * @return whether the gachaCeiling field is set @@ -179,8 +179,8 @@ public final class GetGachaCeilingScRspOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - gachaType = other.gachaType; retcode = other.retcode; + gachaType = other.gachaType; gachaCeiling.copyFrom(other.gachaCeiling); } return this; @@ -192,12 +192,12 @@ public final class GetGachaCeilingScRspOuterClass { return this; } cachedSize = -1; - if (other.hasGachaType()) { - setGachaType(other.gachaType); - } if (other.hasRetcode()) { setRetcode(other.retcode); } + if (other.hasGachaType()) { + setGachaType(other.gachaType); + } if (other.hasGachaCeiling()) { getMutableGachaCeiling().mergeFrom(other.gachaCeiling); } @@ -211,8 +211,8 @@ public final class GetGachaCeilingScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - gachaType = 0; retcode = 0; + gachaType = 0; gachaCeiling.clear(); return this; } @@ -238,8 +238,8 @@ public final class GetGachaCeilingScRspOuterClass { } GetGachaCeilingScRsp other = (GetGachaCeilingScRsp) o; return bitField0_ == other.bitField0_ - && (!hasGachaType() || gachaType == other.gachaType) && (!hasRetcode() || retcode == other.retcode) + && (!hasGachaType() || gachaType == other.gachaType) && (!hasGachaCeiling() || gachaCeiling.equals(other.gachaCeiling)); } @@ -247,11 +247,11 @@ public final class GetGachaCeilingScRspOuterClass { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { output.writeRawByte((byte) 24); - output.writeUInt32NoTag(gachaType); + output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 120); - output.writeUInt32NoTag(retcode); + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(gachaType); } if ((bitField0_ & 0x00000004) != 0) { output.writeRawByte((byte) 10); @@ -263,10 +263,10 @@ public final class GetGachaCeilingScRspOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(gachaType); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(gachaType); } if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(gachaCeiling); @@ -282,17 +282,17 @@ public final class GetGachaCeilingScRspOuterClass { while (true) { switch (tag) { case 24: { - // gachaType - gachaType = input.readUInt32(); + // retcode + retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 120) { + if (tag != 48) { break; } } - case 120: { - // retcode - retcode = input.readUInt32(); + case 48: { + // gachaType + gachaType = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 10) { @@ -326,10 +326,10 @@ public final class GetGachaCeilingScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.gachaType, gachaType); + output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.gachaType, gachaType); } if ((bitField0_ & 0x00000004) != 0) { output.writeMessage(FieldNames.gachaCeiling, gachaCeiling); @@ -344,11 +344,10 @@ public final class GetGachaCeilingScRspOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 802848732: - case -871474217: { - if (input.isAtField(FieldNames.gachaType)) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { - gachaType = input.readUInt32(); + retcode = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -356,10 +355,11 @@ public final class GetGachaCeilingScRspOuterClass { } break; } - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { + case 802848732: + case -871474217: { + if (input.isAtField(FieldNames.gachaType)) { if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); + gachaType = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -432,10 +432,10 @@ public final class GetGachaCeilingScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName gachaType = FieldName.forField("gachaType", "gacha_type"); - static final FieldName retcode = FieldName.forField("retcode"); + static final FieldName gachaType = FieldName.forField("gachaType", "gacha_type"); + static final FieldName gachaCeiling = FieldName.forField("gachaCeiling", "gacha_ceiling"); } } diff --git a/src/generated/main/emu/lunarcore/proto/GetGachaInfoScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetGachaInfoScRspOuterClass.java index ee4e6b0..288028d 100644 --- a/src/generated/main/emu/lunarcore/proto/GetGachaInfoScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetGachaInfoScRspOuterClass.java @@ -20,12 +20,12 @@ public final class GetGachaInfoScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 11; + * optional uint32 retcode = 4; */ private int retcode; /** - * repeated .GachaInfo gacha_info_list = 8; + * repeated .GachaInfo gacha_info_list = 13; */ private final RepeatedMessage gachaInfoList = RepeatedMessage.newEmptyInstance(GachaInfoOuterClass.GachaInfo.getFactory()); @@ -40,7 +40,7 @@ public final class GetGachaInfoScRspOuterClass { } /** - * optional uint32 retcode = 11; + * optional uint32 retcode = 4; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -48,7 +48,7 @@ public final class GetGachaInfoScRspOuterClass { } /** - * optional uint32 retcode = 11; + * optional uint32 retcode = 4; * @return this */ public GetGachaInfoScRsp clearRetcode() { @@ -58,7 +58,7 @@ public final class GetGachaInfoScRspOuterClass { } /** - * optional uint32 retcode = 11; + * optional uint32 retcode = 4; * @return the retcode */ public int getRetcode() { @@ -66,7 +66,7 @@ public final class GetGachaInfoScRspOuterClass { } /** - * optional uint32 retcode = 11; + * optional uint32 retcode = 4; * @param value the retcode to set * @return this */ @@ -77,7 +77,7 @@ public final class GetGachaInfoScRspOuterClass { } /** - * repeated .GachaInfo gacha_info_list = 8; + * repeated .GachaInfo gacha_info_list = 13; * @return whether the gachaInfoList field is set */ public boolean hasGachaInfoList() { @@ -85,7 +85,7 @@ public final class GetGachaInfoScRspOuterClass { } /** - * repeated .GachaInfo gacha_info_list = 8; + * repeated .GachaInfo gacha_info_list = 13; * @return this */ public GetGachaInfoScRsp clearGachaInfoList() { @@ -95,7 +95,7 @@ public final class GetGachaInfoScRspOuterClass { } /** - * repeated .GachaInfo gacha_info_list = 8; + * repeated .GachaInfo gacha_info_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. @@ -109,7 +109,7 @@ public final class GetGachaInfoScRspOuterClass { } /** - * repeated .GachaInfo gacha_info_list = 8; + * repeated .GachaInfo gacha_info_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 @@ -123,7 +123,7 @@ public final class GetGachaInfoScRspOuterClass { } /** - * repeated .GachaInfo gacha_info_list = 8; + * repeated .GachaInfo gacha_info_list = 13; * @param value the gachaInfoList to add * @return this */ @@ -134,7 +134,7 @@ public final class GetGachaInfoScRspOuterClass { } /** - * repeated .GachaInfo gacha_info_list = 8; + * repeated .GachaInfo gacha_info_list = 13; * @param values the gachaInfoList to add * @return this */ @@ -210,12 +210,12 @@ public final class GetGachaInfoScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < gachaInfoList.length(); i++) { - output.writeRawByte((byte) 66); + output.writeRawByte((byte) 106); output.writeMessageNoTag(gachaInfoList.get(i)); } } @@ -240,16 +240,16 @@ public final class GetGachaInfoScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 88: { + case 32: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 66) { + if (tag != 106) { break; } } - case 66: { + case 106: { // 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 1e28b32..3646223 100644 --- a/src/generated/main/emu/lunarcore/proto/GetHeroBasicTypeInfoScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetHeroBasicTypeInfoScRspOuterClass.java @@ -20,22 +20,22 @@ public final class GetHeroBasicTypeInfoScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 2; + * optional uint32 retcode = 11; */ private int retcode; + /** + * optional .Gender gender = 1; + */ + private int gender; + /** * optional .HeroBasicType cur_basic_type = 7; */ private int curBasicType; /** - * optional .Gender gender = 13; - */ - private int gender; - - /** - * repeated .HeroBasicTypeInfo basic_type_info_list = 5; + * repeated .HeroBasicTypeInfo basic_type_info_list = 2; */ private final RepeatedMessage basicTypeInfoList = RepeatedMessage.newEmptyInstance(HeroBasicTypeInfoOuterClass.HeroBasicTypeInfo.getFactory()); @@ -50,7 +50,7 @@ public final class GetHeroBasicTypeInfoScRspOuterClass { } /** - * optional uint32 retcode = 2; + * optional uint32 retcode = 11; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -58,7 +58,7 @@ public final class GetHeroBasicTypeInfoScRspOuterClass { } /** - * optional uint32 retcode = 2; + * optional uint32 retcode = 11; * @return this */ public GetHeroBasicTypeInfoScRsp clearRetcode() { @@ -68,7 +68,7 @@ public final class GetHeroBasicTypeInfoScRspOuterClass { } /** - * optional uint32 retcode = 2; + * optional uint32 retcode = 11; * @return the retcode */ public int getRetcode() { @@ -76,7 +76,7 @@ public final class GetHeroBasicTypeInfoScRspOuterClass { } /** - * optional uint32 retcode = 2; + * optional uint32 retcode = 11; * @param value the retcode to set * @return this */ @@ -86,12 +86,74 @@ public final class GetHeroBasicTypeInfoScRspOuterClass { return this; } + /** + * optional .Gender gender = 1; + * @return whether the gender field is set + */ + public boolean hasGender() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .Gender gender = 1; + * @return this + */ + public GetHeroBasicTypeInfoScRsp clearGender() { + bitField0_ &= ~0x00000002; + gender = 0; + return this; + } + + /** + * optional .Gender gender = 1; + * @return the gender + */ + public GenderOuterClass.Gender getGender() { + return GenderOuterClass.Gender.forNumber(gender); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link GetHeroBasicTypeInfoScRsp#getGender()}.getNumber(). + * + * @return numeric wire representation + */ + 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 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 setGenderValue(final int value) { + bitField0_ |= 0x00000002; + gender = value; + return this; + } + + /** + * optional .Gender gender = 1; + * @param value the gender to set + * @return this + */ + public GetHeroBasicTypeInfoScRsp setGender(final GenderOuterClass.Gender value) { + bitField0_ |= 0x00000002; + gender = value.getNumber(); + return this; + } + /** * optional .HeroBasicType cur_basic_type = 7; * @return whether the curBasicType field is set */ public boolean hasCurBasicType() { - return (bitField0_ & 0x00000002) != 0; + return (bitField0_ & 0x00000004) != 0; } /** @@ -99,7 +161,7 @@ public final class GetHeroBasicTypeInfoScRspOuterClass { * @return this */ public GetHeroBasicTypeInfoScRsp clearCurBasicType() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000004; curBasicType = 0; return this; } @@ -132,7 +194,7 @@ public final class GetHeroBasicTypeInfoScRspOuterClass { * @return this */ public GetHeroBasicTypeInfoScRsp setCurBasicTypeValue(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; curBasicType = value; return this; } @@ -144,75 +206,13 @@ public final class GetHeroBasicTypeInfoScRspOuterClass { */ public GetHeroBasicTypeInfoScRsp setCurBasicType( final HeroBasicTypeOuterClass.HeroBasicType value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; curBasicType = value.getNumber(); return this; } /** - * optional .Gender gender = 13; - * @return whether the gender field is set - */ - public boolean hasGender() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional .Gender gender = 13; - * @return this - */ - public GetHeroBasicTypeInfoScRsp clearGender() { - bitField0_ &= ~0x00000004; - gender = 0; - return this; - } - - /** - * optional .Gender gender = 13; - * @return the gender - */ - public GenderOuterClass.Gender getGender() { - return GenderOuterClass.Gender.forNumber(gender); - } - - /** - * Gets the value of the internal enum store. The result is - * equivalent to {@link GetHeroBasicTypeInfoScRsp#getGender()}.getNumber(). - * - * @return numeric wire representation - */ - 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 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 setGenderValue(final int value) { - bitField0_ |= 0x00000004; - gender = value; - return this; - } - - /** - * optional .Gender gender = 13; - * @param value the gender to set - * @return this - */ - public GetHeroBasicTypeInfoScRsp setGender(final GenderOuterClass.Gender value) { - bitField0_ |= 0x00000004; - gender = value.getNumber(); - return this; - } - - /** - * repeated .HeroBasicTypeInfo basic_type_info_list = 5; + * repeated .HeroBasicTypeInfo basic_type_info_list = 2; * @return whether the basicTypeInfoList field is set */ public boolean hasBasicTypeInfoList() { @@ -220,7 +220,7 @@ public final class GetHeroBasicTypeInfoScRspOuterClass { } /** - * repeated .HeroBasicTypeInfo basic_type_info_list = 5; + * repeated .HeroBasicTypeInfo basic_type_info_list = 2; * @return this */ public GetHeroBasicTypeInfoScRsp clearBasicTypeInfoList() { @@ -230,7 +230,7 @@ public final class GetHeroBasicTypeInfoScRspOuterClass { } /** - * repeated .HeroBasicTypeInfo basic_type_info_list = 5; + * repeated .HeroBasicTypeInfo basic_type_info_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. @@ -244,7 +244,7 @@ public final class GetHeroBasicTypeInfoScRspOuterClass { } /** - * repeated .HeroBasicTypeInfo basic_type_info_list = 5; + * repeated .HeroBasicTypeInfo basic_type_info_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 @@ -259,7 +259,7 @@ public final class GetHeroBasicTypeInfoScRspOuterClass { } /** - * repeated .HeroBasicTypeInfo basic_type_info_list = 5; + * repeated .HeroBasicTypeInfo basic_type_info_list = 2; * @param value the basicTypeInfoList to add * @return this */ @@ -271,7 +271,7 @@ public final class GetHeroBasicTypeInfoScRspOuterClass { } /** - * repeated .HeroBasicTypeInfo basic_type_info_list = 5; + * repeated .HeroBasicTypeInfo basic_type_info_list = 2; * @param values the basicTypeInfoList to add * @return this */ @@ -288,8 +288,8 @@ public final class GetHeroBasicTypeInfoScRspOuterClass { if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; retcode = other.retcode; - curBasicType = other.curBasicType; gender = other.gender; + curBasicType = other.curBasicType; basicTypeInfoList.copyFrom(other.basicTypeInfoList); } return this; @@ -304,12 +304,12 @@ public final class GetHeroBasicTypeInfoScRspOuterClass { if (other.hasRetcode()) { setRetcode(other.retcode); } - if (other.hasCurBasicType()) { - setCurBasicTypeValue(other.curBasicType); - } if (other.hasGender()) { setGenderValue(other.gender); } + if (other.hasCurBasicType()) { + setCurBasicTypeValue(other.curBasicType); + } if (other.hasBasicTypeInfoList()) { getMutableBasicTypeInfoList().addAll(other.basicTypeInfoList); } @@ -324,8 +324,8 @@ public final class GetHeroBasicTypeInfoScRspOuterClass { cachedSize = -1; bitField0_ = 0; retcode = 0; - curBasicType = 0; gender = 0; + curBasicType = 0; basicTypeInfoList.clear(); return this; } @@ -352,28 +352,28 @@ public final class GetHeroBasicTypeInfoScRspOuterClass { GetHeroBasicTypeInfoScRsp other = (GetHeroBasicTypeInfoScRsp) o; return bitField0_ == other.bitField0_ && (!hasRetcode() || retcode == other.retcode) - && (!hasCurBasicType() || curBasicType == other.curBasicType) && (!hasGender() || gender == other.gender) + && (!hasCurBasicType() || curBasicType == other.curBasicType) && (!hasBasicTypeInfoList() || basicTypeInfoList.equals(other.basicTypeInfoList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); + output.writeRawByte((byte) 88); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 8); + output.writeEnumNoTag(gender); + } + if ((bitField0_ & 0x00000004) != 0) { output.writeRawByte((byte) 56); output.writeEnumNoTag(curBasicType); } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 104); - output.writeEnumNoTag(gender); - } if ((bitField0_ & 0x00000008) != 0) { for (int i = 0; i < basicTypeInfoList.length(); i++) { - output.writeRawByte((byte) 42); + output.writeRawByte((byte) 18); output.writeMessageNoTag(basicTypeInfoList.get(i)); } } @@ -386,10 +386,10 @@ public final class GetHeroBasicTypeInfoScRspOuterClass { size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeEnumSizeNoTag(curBasicType); + size += 1 + ProtoSink.computeEnumSizeNoTag(gender); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeEnumSizeNoTag(gender); + size += 1 + ProtoSink.computeEnumSizeNoTag(curBasicType); } if ((bitField0_ & 0x00000008) != 0) { size += (1 * basicTypeInfoList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(basicTypeInfoList); @@ -404,11 +404,23 @@ public final class GetHeroBasicTypeInfoScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { + case 88: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); + if (tag != 8) { + break; + } + } + case 8: { + // gender + final int value = input.readInt32(); + if (GenderOuterClass.Gender.forNumber(value) != null) { + gender = value; + bitField0_ |= 0x00000002; + } + tag = input.readTag(); if (tag != 56) { break; } @@ -418,26 +430,14 @@ public final class GetHeroBasicTypeInfoScRspOuterClass { final int value = input.readInt32(); if (HeroBasicTypeOuterClass.HeroBasicType.forNumber(value) != null) { curBasicType = value; - bitField0_ |= 0x00000002; - } - tag = input.readTag(); - if (tag != 104) { - break; - } - } - case 104: { - // gender - final int value = input.readInt32(); - if (GenderOuterClass.Gender.forNumber(value) != null) { - gender = value; bitField0_ |= 0x00000004; } tag = input.readTag(); - if (tag != 42) { + if (tag != 18) { break; } } - case 42: { + case 18: { // basicTypeInfoList tag = input.readRepeatedMessage(basicTypeInfoList, tag); bitField0_ |= 0x00000008; @@ -466,10 +466,10 @@ public final class GetHeroBasicTypeInfoScRspOuterClass { output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeEnum(FieldNames.curBasicType, curBasicType, HeroBasicTypeOuterClass.HeroBasicType.converter()); + output.writeEnum(FieldNames.gender, gender, GenderOuterClass.Gender.converter()); } if ((bitField0_ & 0x00000004) != 0) { - output.writeEnum(FieldNames.gender, gender, GenderOuterClass.Gender.converter()); + output.writeEnum(FieldNames.curBasicType, curBasicType, HeroBasicTypeOuterClass.HeroBasicType.converter()); } if ((bitField0_ & 0x00000008) != 0) { output.writeRepeatedMessage(FieldNames.basicTypeInfoList, basicTypeInfoList); @@ -495,13 +495,12 @@ public final class GetHeroBasicTypeInfoScRspOuterClass { } 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_ |= 0x00000002; } else { input.skipUnknownEnumValue(); @@ -512,12 +511,13 @@ public final class GetHeroBasicTypeInfoScRspOuterClass { } 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_ |= 0x00000004; } else { input.skipUnknownEnumValue(); @@ -595,10 +595,10 @@ public final class GetHeroBasicTypeInfoScRspOuterClass { static class FieldNames { static final FieldName retcode = FieldName.forField("retcode"); - static final FieldName curBasicType = FieldName.forField("curBasicType", "cur_basic_type"); - static final FieldName gender = FieldName.forField("gender"); + static final FieldName curBasicType = FieldName.forField("curBasicType", "cur_basic_type"); + 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 ed6da24..3870f39 100644 --- a/src/generated/main/emu/lunarcore/proto/GetJukeboxDataScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetJukeboxDataScRspOuterClass.java @@ -20,17 +20,17 @@ public final class GetJukeboxDataScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 playing_id = 3; - */ - private int playingId; - - /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 4; */ private int retcode; /** - * repeated .UnlockedMusic music_list = 14; + * optional uint32 playing_id = 10; + */ + private int playingId; + + /** + * repeated .UnlockedMusic music_list = 3; */ private final RepeatedMessage musicList = RepeatedMessage.newEmptyInstance(UnlockedMusicOuterClass.UnlockedMusic.getFactory()); @@ -45,62 +45,25 @@ public final class GetJukeboxDataScRspOuterClass { } /** - * optional uint32 playing_id = 3; - * @return whether the playingId field is set + * optional uint32 retcode = 4; + * @return whether the retcode field is set */ - public boolean hasPlayingId() { + public boolean hasRetcode() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 playing_id = 3; - * @return this - */ - public GetJukeboxDataScRsp clearPlayingId() { - bitField0_ &= ~0x00000001; - playingId = 0; - return this; - } - - /** - * optional uint32 playing_id = 3; - * @return the playingId - */ - public int getPlayingId() { - return playingId; - } - - /** - * optional uint32 playing_id = 3; - * @param value the playingId to set - * @return this - */ - public GetJukeboxDataScRsp setPlayingId(final int value) { - bitField0_ |= 0x00000001; - playingId = value; - return this; - } - - /** - * optional uint32 retcode = 13; - * @return whether the retcode field is set - */ - public boolean hasRetcode() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 4; * @return this */ public GetJukeboxDataScRsp clearRetcode() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; retcode = 0; return this; } /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 4; * @return the retcode */ public int getRetcode() { @@ -108,18 +71,55 @@ public final class GetJukeboxDataScRspOuterClass { } /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 4; * @param value the retcode to set * @return this */ public GetJukeboxDataScRsp setRetcode(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; retcode = value; return this; } /** - * repeated .UnlockedMusic music_list = 14; + * optional uint32 playing_id = 10; + * @return whether the playingId field is set + */ + public boolean hasPlayingId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 playing_id = 10; + * @return this + */ + public GetJukeboxDataScRsp clearPlayingId() { + bitField0_ &= ~0x00000002; + playingId = 0; + return this; + } + + /** + * optional uint32 playing_id = 10; + * @return the playingId + */ + public int getPlayingId() { + return playingId; + } + + /** + * optional uint32 playing_id = 10; + * @param value the playingId to set + * @return this + */ + public GetJukeboxDataScRsp setPlayingId(final int value) { + bitField0_ |= 0x00000002; + playingId = value; + return this; + } + + /** + * repeated .UnlockedMusic music_list = 3; * @return whether the musicList field is set */ public boolean hasMusicList() { @@ -127,7 +127,7 @@ public final class GetJukeboxDataScRspOuterClass { } /** - * repeated .UnlockedMusic music_list = 14; + * repeated .UnlockedMusic music_list = 3; * @return this */ public GetJukeboxDataScRsp clearMusicList() { @@ -137,7 +137,7 @@ public final class GetJukeboxDataScRspOuterClass { } /** - * repeated .UnlockedMusic music_list = 14; + * repeated .UnlockedMusic music_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. @@ -151,7 +151,7 @@ public final class GetJukeboxDataScRspOuterClass { } /** - * repeated .UnlockedMusic music_list = 14; + * repeated .UnlockedMusic music_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 @@ -165,7 +165,7 @@ public final class GetJukeboxDataScRspOuterClass { } /** - * repeated .UnlockedMusic music_list = 14; + * repeated .UnlockedMusic music_list = 3; * @param value the musicList to add * @return this */ @@ -176,7 +176,7 @@ public final class GetJukeboxDataScRspOuterClass { } /** - * repeated .UnlockedMusic music_list = 14; + * repeated .UnlockedMusic music_list = 3; * @param values the musicList to add * @return this */ @@ -192,8 +192,8 @@ public final class GetJukeboxDataScRspOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - playingId = other.playingId; retcode = other.retcode; + playingId = other.playingId; musicList.copyFrom(other.musicList); } return this; @@ -205,12 +205,12 @@ public final class GetJukeboxDataScRspOuterClass { return this; } cachedSize = -1; - if (other.hasPlayingId()) { - setPlayingId(other.playingId); - } if (other.hasRetcode()) { setRetcode(other.retcode); } + if (other.hasPlayingId()) { + setPlayingId(other.playingId); + } if (other.hasMusicList()) { getMutableMusicList().addAll(other.musicList); } @@ -224,8 +224,8 @@ public final class GetJukeboxDataScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - playingId = 0; retcode = 0; + playingId = 0; musicList.clear(); return this; } @@ -251,24 +251,24 @@ public final class GetJukeboxDataScRspOuterClass { } GetJukeboxDataScRsp other = (GetJukeboxDataScRsp) o; return bitField0_ == other.bitField0_ - && (!hasPlayingId() || playingId == other.playingId) && (!hasRetcode() || retcode == other.retcode) + && (!hasPlayingId() || playingId == other.playingId) && (!hasMusicList() || musicList.equals(other.musicList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(playingId); + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 104); - output.writeUInt32NoTag(retcode); + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(playingId); } if ((bitField0_ & 0x00000004) != 0) { for (int i = 0; i < musicList.length(); i++) { - output.writeRawByte((byte) 114); + output.writeRawByte((byte) 26); output.writeMessageNoTag(musicList.get(i)); } } @@ -278,10 +278,10 @@ public final class GetJukeboxDataScRspOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(playingId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(playingId); } if ((bitField0_ & 0x00000004) != 0) { size += (1 * musicList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(musicList); @@ -296,25 +296,25 @@ public final class GetJukeboxDataScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 24: { - // playingId - playingId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 104) { - break; - } - } - case 104: { + case 32: { // retcode retcode = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 114) { + if (tag != 80) { break; } } - case 114: { + case 80: { + // playingId + playingId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { // musicList tag = input.readRepeatedMessage(musicList, tag); bitField0_ |= 0x00000004; @@ -340,10 +340,10 @@ public final class GetJukeboxDataScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.playingId, playingId); + output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.playingId, playingId); } if ((bitField0_ & 0x00000004) != 0) { output.writeRepeatedMessage(FieldNames.musicList, musicList); @@ -358,11 +358,10 @@ public final class GetJukeboxDataScRspOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -1868462615: - case -2087744820: { - if (input.isAtField(FieldNames.playingId)) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { - playingId = input.readUInt32(); + retcode = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -370,10 +369,11 @@ public final class GetJukeboxDataScRspOuterClass { } break; } - 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_ |= 0x00000002; } } else { @@ -446,10 +446,10 @@ public final class GetJukeboxDataScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName playingId = FieldName.forField("playingId", "playing_id"); - static final FieldName retcode = FieldName.forField("retcode"); + static final FieldName playingId = FieldName.forField("playingId", "playing_id"); + static final FieldName musicList = FieldName.forField("musicList", "music_list"); } } diff --git a/src/generated/main/emu/lunarcore/proto/GetMailScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetMailScRspOuterClass.java index b3d4cc0..dc57150 100644 --- a/src/generated/main/emu/lunarcore/proto/GetMailScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetMailScRspOuterClass.java @@ -25,30 +25,30 @@ public final class GetMailScRspOuterClass { private int retcode; /** - * optional uint32 total_num = 2; + * optional uint32 total_num = 8; */ private int totalNum; /** - * optional uint32 start = 4; + * optional uint32 start = 14; */ private int start; /** - * optional bool is_end = 5; + * optional bool is_end = 4; */ private boolean isEnd; /** - * repeated .ClientMail notice_mail_list = 8; - */ - private final RepeatedMessage noticeMailList = RepeatedMessage.newEmptyInstance(ClientMailOuterClass.ClientMail.getFactory()); - - /** - * repeated .ClientMail mail_list = 15; + * repeated .ClientMail mail_list = 2; */ private final RepeatedMessage mailList = RepeatedMessage.newEmptyInstance(ClientMailOuterClass.ClientMail.getFactory()); + /** + * repeated .ClientMail notice_mail_list = 6; + */ + private final RepeatedMessage noticeMailList = RepeatedMessage.newEmptyInstance(ClientMailOuterClass.ClientMail.getFactory()); + private GetMailScRsp() { } @@ -97,7 +97,7 @@ public final class GetMailScRspOuterClass { } /** - * optional uint32 total_num = 2; + * optional uint32 total_num = 8; * @return whether the totalNum field is set */ public boolean hasTotalNum() { @@ -105,7 +105,7 @@ public final class GetMailScRspOuterClass { } /** - * optional uint32 total_num = 2; + * optional uint32 total_num = 8; * @return this */ public GetMailScRsp clearTotalNum() { @@ -115,7 +115,7 @@ public final class GetMailScRspOuterClass { } /** - * optional uint32 total_num = 2; + * optional uint32 total_num = 8; * @return the totalNum */ public int getTotalNum() { @@ -123,7 +123,7 @@ public final class GetMailScRspOuterClass { } /** - * optional uint32 total_num = 2; + * optional uint32 total_num = 8; * @param value the totalNum to set * @return this */ @@ -134,7 +134,7 @@ public final class GetMailScRspOuterClass { } /** - * optional uint32 start = 4; + * optional uint32 start = 14; * @return whether the start field is set */ public boolean hasStart() { @@ -142,7 +142,7 @@ public final class GetMailScRspOuterClass { } /** - * optional uint32 start = 4; + * optional uint32 start = 14; * @return this */ public GetMailScRsp clearStart() { @@ -152,7 +152,7 @@ public final class GetMailScRspOuterClass { } /** - * optional uint32 start = 4; + * optional uint32 start = 14; * @return the start */ public int getStart() { @@ -160,7 +160,7 @@ public final class GetMailScRspOuterClass { } /** - * optional uint32 start = 4; + * optional uint32 start = 14; * @param value the start to set * @return this */ @@ -171,7 +171,7 @@ public final class GetMailScRspOuterClass { } /** - * optional bool is_end = 5; + * optional bool is_end = 4; * @return whether the isEnd field is set */ public boolean hasIsEnd() { @@ -179,7 +179,7 @@ public final class GetMailScRspOuterClass { } /** - * optional bool is_end = 5; + * optional bool is_end = 4; * @return this */ public GetMailScRsp clearIsEnd() { @@ -189,7 +189,7 @@ public final class GetMailScRspOuterClass { } /** - * optional bool is_end = 5; + * optional bool is_end = 4; * @return the isEnd */ public boolean getIsEnd() { @@ -197,7 +197,7 @@ public final class GetMailScRspOuterClass { } /** - * optional bool is_end = 5; + * optional bool is_end = 4; * @param value the isEnd to set * @return this */ @@ -208,93 +208,25 @@ public final class GetMailScRspOuterClass { } /** - * repeated .ClientMail notice_mail_list = 8; - * @return whether the noticeMailList field is set + * repeated .ClientMail mail_list = 2; + * @return whether the mailList field is set */ - public boolean hasNoticeMailList() { + public boolean hasMailList() { return (bitField0_ & 0x00000010) != 0; } /** - * repeated .ClientMail notice_mail_list = 8; - * @return this - */ - public GetMailScRsp clearNoticeMailList() { - bitField0_ &= ~0x00000010; - noticeMailList.clear(); - return this; - } - - /** - * 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 #getMutableNoticeMailList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getNoticeMailList() { - return noticeMailList; - } - - /** - * 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 - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableNoticeMailList() { - bitField0_ |= 0x00000010; - return noticeMailList; - } - - /** - * repeated .ClientMail notice_mail_list = 8; - * @param value the noticeMailList to add - * @return this - */ - public GetMailScRsp addNoticeMailList(final ClientMailOuterClass.ClientMail value) { - bitField0_ |= 0x00000010; - noticeMailList.add(value); - return this; - } - - /** - * repeated .ClientMail notice_mail_list = 8; - * @param values the noticeMailList to add - * @return this - */ - public GetMailScRsp addAllNoticeMailList(final ClientMailOuterClass.ClientMail... values) { - bitField0_ |= 0x00000010; - noticeMailList.addAll(values); - return this; - } - - /** - * repeated .ClientMail mail_list = 15; - * @return whether the mailList field is set - */ - public boolean hasMailList() { - return (bitField0_ & 0x00000020) != 0; - } - - /** - * repeated .ClientMail mail_list = 15; + * repeated .ClientMail mail_list = 2; * @return this */ public GetMailScRsp clearMailList() { - bitField0_ &= ~0x00000020; + bitField0_ &= ~0x00000010; mailList.clear(); return this; } /** - * repeated .ClientMail mail_list = 15; + * repeated .ClientMail mail_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. @@ -308,7 +240,7 @@ public final class GetMailScRspOuterClass { } /** - * repeated .ClientMail mail_list = 15; + * repeated .ClientMail mail_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 @@ -317,32 +249,100 @@ public final class GetMailScRspOuterClass { * @return internal storage object for modifications */ public RepeatedMessage getMutableMailList() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; return mailList; } /** - * repeated .ClientMail mail_list = 15; + * repeated .ClientMail mail_list = 2; * @param value the mailList to add * @return this */ public GetMailScRsp addMailList(final ClientMailOuterClass.ClientMail value) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; mailList.add(value); return this; } /** - * repeated .ClientMail mail_list = 15; + * repeated .ClientMail mail_list = 2; * @param values the mailList to add * @return this */ public GetMailScRsp addAllMailList(final ClientMailOuterClass.ClientMail... values) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; mailList.addAll(values); return this; } + /** + * repeated .ClientMail notice_mail_list = 6; + * @return whether the noticeMailList field is set + */ + public boolean hasNoticeMailList() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * repeated .ClientMail notice_mail_list = 6; + * @return this + */ + public GetMailScRsp clearNoticeMailList() { + bitField0_ &= ~0x00000020; + noticeMailList.clear(); + return this; + } + + /** + * repeated .ClientMail notice_mail_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 #getMutableNoticeMailList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getNoticeMailList() { + return noticeMailList; + } + + /** + * repeated .ClientMail notice_mail_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 + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableNoticeMailList() { + bitField0_ |= 0x00000020; + return noticeMailList; + } + + /** + * repeated .ClientMail notice_mail_list = 6; + * @param value the noticeMailList to add + * @return this + */ + public GetMailScRsp addNoticeMailList(final ClientMailOuterClass.ClientMail value) { + bitField0_ |= 0x00000020; + noticeMailList.add(value); + return this; + } + + /** + * repeated .ClientMail notice_mail_list = 6; + * @param values the noticeMailList to add + * @return this + */ + public GetMailScRsp addAllNoticeMailList(final ClientMailOuterClass.ClientMail... values) { + bitField0_ |= 0x00000020; + noticeMailList.addAll(values); + return this; + } + @Override public GetMailScRsp copyFrom(final GetMailScRsp other) { cachedSize = other.cachedSize; @@ -352,8 +352,8 @@ public final class GetMailScRspOuterClass { totalNum = other.totalNum; start = other.start; isEnd = other.isEnd; - noticeMailList.copyFrom(other.noticeMailList); mailList.copyFrom(other.mailList); + noticeMailList.copyFrom(other.noticeMailList); } return this; } @@ -376,12 +376,12 @@ public final class GetMailScRspOuterClass { if (other.hasIsEnd()) { setIsEnd(other.isEnd); } - if (other.hasNoticeMailList()) { - getMutableNoticeMailList().addAll(other.noticeMailList); - } if (other.hasMailList()) { getMutableMailList().addAll(other.mailList); } + if (other.hasNoticeMailList()) { + getMutableNoticeMailList().addAll(other.noticeMailList); + } return this; } @@ -396,8 +396,8 @@ public final class GetMailScRspOuterClass { totalNum = 0; start = 0; isEnd = false; - noticeMailList.clear(); mailList.clear(); + noticeMailList.clear(); return this; } @@ -408,8 +408,8 @@ public final class GetMailScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - noticeMailList.clearQuick(); mailList.clearQuick(); + noticeMailList.clearQuick(); return this; } @@ -427,8 +427,8 @@ public final class GetMailScRspOuterClass { && (!hasTotalNum() || totalNum == other.totalNum) && (!hasStart() || start == other.start) && (!hasIsEnd() || isEnd == other.isEnd) - && (!hasNoticeMailList() || noticeMailList.equals(other.noticeMailList)) - && (!hasMailList() || mailList.equals(other.mailList)); + && (!hasMailList() || mailList.equals(other.mailList)) + && (!hasNoticeMailList() || noticeMailList.equals(other.noticeMailList)); } @Override @@ -438,27 +438,27 @@ public final class GetMailScRspOuterClass { output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 16); + output.writeRawByte((byte) 64); output.writeUInt32NoTag(totalNum); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 32); + output.writeRawByte((byte) 112); output.writeUInt32NoTag(start); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 32); output.writeBoolNoTag(isEnd); } if ((bitField0_ & 0x00000010) != 0) { - for (int i = 0; i < noticeMailList.length(); i++) { - output.writeRawByte((byte) 66); - output.writeMessageNoTag(noticeMailList.get(i)); + for (int i = 0; i < mailList.length(); i++) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(mailList.get(i)); } } if ((bitField0_ & 0x00000020) != 0) { - for (int i = 0; i < mailList.length(); i++) { - output.writeRawByte((byte) 122); - output.writeMessageNoTag(mailList.get(i)); + for (int i = 0; i < noticeMailList.length(); i++) { + output.writeRawByte((byte) 50); + output.writeMessageNoTag(noticeMailList.get(i)); } } } @@ -479,10 +479,10 @@ public final class GetMailScRspOuterClass { size += 2; } if ((bitField0_ & 0x00000010) != 0) { - size += (1 * noticeMailList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(noticeMailList); + size += (1 * mailList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(mailList); } if ((bitField0_ & 0x00000020) != 0) { - size += (1 * mailList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(mailList); + size += (1 * noticeMailList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(noticeMailList); } return size; } @@ -499,48 +499,48 @@ public final class GetMailScRspOuterClass { retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 16) { + if (tag != 64) { break; } } - case 16: { + case 64: { // totalNum totalNum = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // start + start = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); if (tag != 32) { break; } } case 32: { - // start - start = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 40) { - break; - } - } - case 40: { // isEnd isEnd = input.readBool(); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 66) { + if (tag != 18) { break; } } - case 66: { - // noticeMailList - tag = input.readRepeatedMessage(noticeMailList, tag); - bitField0_ |= 0x00000010; - if (tag != 122) { - break; - } - } - case 122: { + case 18: { // mailList tag = input.readRepeatedMessage(mailList, tag); + bitField0_ |= 0x00000010; + if (tag != 50) { + break; + } + } + case 50: { + // noticeMailList + tag = input.readRepeatedMessage(noticeMailList, tag); bitField0_ |= 0x00000020; if (tag != 0) { break; @@ -576,10 +576,10 @@ public final class GetMailScRspOuterClass { output.writeBool(FieldNames.isEnd, isEnd); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRepeatedMessage(FieldNames.noticeMailList, noticeMailList); + output.writeRepeatedMessage(FieldNames.mailList, mailList); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRepeatedMessage(FieldNames.mailList, mailList); + output.writeRepeatedMessage(FieldNames.noticeMailList, noticeMailList); } output.endObject(); } @@ -637,11 +637,11 @@ public final class GetMailScRspOuterClass { } 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_ |= 0x00000010; } } else { @@ -649,11 +649,11 @@ public final class GetMailScRspOuterClass { } 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_ |= 0x00000020; } } else { @@ -721,9 +721,9 @@ public final class GetMailScRspOuterClass { 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"); + + static final FieldName noticeMailList = FieldName.forField("noticeMailList", "notice_mail_list"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/GetMissionStatusCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetMissionStatusCsReqOuterClass.java index b4b24d2..86c0d76 100644 --- a/src/generated/main/emu/lunarcore/proto/GetMissionStatusCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetMissionStatusCsReqOuterClass.java @@ -20,12 +20,12 @@ public final class GetMissionStatusCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * repeated uint32 mission_event_id_list = 9; + * repeated uint32 mission_event_id_list = 7; */ private final RepeatedInt missionEventIdList = RepeatedInt.newEmptyInstance(); /** - * repeated uint32 sub_mission_id_list = 13; + * repeated uint32 sub_mission_id_list = 8; */ private final RepeatedInt subMissionIdList = RepeatedInt.newEmptyInstance(); @@ -45,7 +45,7 @@ public final class GetMissionStatusCsReqOuterClass { } /** - * repeated uint32 mission_event_id_list = 9; + * repeated uint32 mission_event_id_list = 7; * @return whether the missionEventIdList field is set */ public boolean hasMissionEventIdList() { @@ -53,7 +53,7 @@ public final class GetMissionStatusCsReqOuterClass { } /** - * repeated uint32 mission_event_id_list = 9; + * repeated uint32 mission_event_id_list = 7; * @return this */ public GetMissionStatusCsReq clearMissionEventIdList() { @@ -63,7 +63,7 @@ public final class GetMissionStatusCsReqOuterClass { } /** - * repeated uint32 mission_event_id_list = 9; + * repeated uint32 mission_event_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. @@ -77,7 +77,7 @@ public final class GetMissionStatusCsReqOuterClass { } /** - * repeated uint32 mission_event_id_list = 9; + * repeated uint32 mission_event_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,7 +91,7 @@ public final class GetMissionStatusCsReqOuterClass { } /** - * repeated uint32 mission_event_id_list = 9; + * repeated uint32 mission_event_id_list = 7; * @param value the missionEventIdList to add * @return this */ @@ -102,7 +102,7 @@ public final class GetMissionStatusCsReqOuterClass { } /** - * repeated uint32 mission_event_id_list = 9; + * repeated uint32 mission_event_id_list = 7; * @param values the missionEventIdList to add * @return this */ @@ -113,7 +113,7 @@ public final class GetMissionStatusCsReqOuterClass { } /** - * repeated uint32 sub_mission_id_list = 13; + * repeated uint32 sub_mission_id_list = 8; * @return whether the subMissionIdList field is set */ public boolean hasSubMissionIdList() { @@ -121,7 +121,7 @@ public final class GetMissionStatusCsReqOuterClass { } /** - * repeated uint32 sub_mission_id_list = 13; + * repeated uint32 sub_mission_id_list = 8; * @return this */ public GetMissionStatusCsReq clearSubMissionIdList() { @@ -131,7 +131,7 @@ public final class GetMissionStatusCsReqOuterClass { } /** - * repeated uint32 sub_mission_id_list = 13; + * repeated uint32 sub_mission_id_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. @@ -145,7 +145,7 @@ public final class GetMissionStatusCsReqOuterClass { } /** - * repeated uint32 sub_mission_id_list = 13; + * repeated uint32 sub_mission_id_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 @@ -159,7 +159,7 @@ public final class GetMissionStatusCsReqOuterClass { } /** - * repeated uint32 sub_mission_id_list = 13; + * repeated uint32 sub_mission_id_list = 8; * @param value the subMissionIdList to add * @return this */ @@ -170,7 +170,7 @@ public final class GetMissionStatusCsReqOuterClass { } /** - * repeated uint32 sub_mission_id_list = 13; + * repeated uint32 sub_mission_id_list = 8; * @param values the subMissionIdList to add * @return this */ @@ -323,13 +323,13 @@ public final class GetMissionStatusCsReqOuterClass { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { for (int i = 0; i < missionEventIdList.length(); i++) { - output.writeRawByte((byte) 72); + output.writeRawByte((byte) 56); output.writeUInt32NoTag(missionEventIdList.array()[i]); } } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < subMissionIdList.length(); i++) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 64); output.writeUInt32NoTag(subMissionIdList.array()[i]); } } @@ -363,16 +363,16 @@ public final class GetMissionStatusCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 74: { + case 58: { // missionEventIdList [packed=true] input.readPackedUInt32(missionEventIdList, tag); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 106) { + if (tag != 66) { break; } } - case 106: { + case 66: { // subMissionIdList [packed=true] input.readPackedUInt32(subMissionIdList, tag); bitField0_ |= 0x00000002; @@ -400,13 +400,13 @@ public final class GetMissionStatusCsReqOuterClass { tag = input.readTag(); break; } - case 72: { + case 56: { // missionEventIdList [packed=false] tag = input.readRepeatedUInt32(missionEventIdList, tag); bitField0_ |= 0x00000001; break; } - case 104: { + case 64: { // subMissionIdList [packed=false] tag = input.readRepeatedUInt32(subMissionIdList, tag); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/GetMissionStatusScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetMissionStatusScRspOuterClass.java index 6d8dde4..aba8881 100644 --- a/src/generated/main/emu/lunarcore/proto/GetMissionStatusScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetMissionStatusScRspOuterClass.java @@ -21,35 +21,35 @@ public final class GetMissionStatusScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 4; */ private int retcode; /** - * repeated uint32 unfinished_main_mission_id_list = 2; + * repeated uint32 unfinished_main_mission_id_list = 10; */ private final RepeatedInt unfinishedMainMissionIdList = RepeatedInt.newEmptyInstance(); /** - * repeated uint32 disabled_main_mission_id_list = 9; + * repeated uint32 disabled_main_mission_id_list = 11; */ private final RepeatedInt disabledMainMissionIdList = RepeatedInt.newEmptyInstance(); /** - * repeated uint32 finished_main_mission_id_list = 11; + * repeated uint32 finished_main_mission_id_list = 13; */ private final RepeatedInt finishedMainMissionIdList = RepeatedInt.newEmptyInstance(); /** - * repeated .Mission sub_mission_status_list = 6; - */ - private final RepeatedMessage subMissionStatusList = RepeatedMessage.newEmptyInstance(MissionOuterClass.Mission.getFactory()); - - /** - * repeated .Mission mission_event_status_list = 12; + * repeated .Mission mission_event_status_list = 9; */ private final RepeatedMessage missionEventStatusList = RepeatedMessage.newEmptyInstance(MissionOuterClass.Mission.getFactory()); + /** + * repeated .Mission sub_mission_status_list = 14; + */ + private final RepeatedMessage subMissionStatusList = RepeatedMessage.newEmptyInstance(MissionOuterClass.Mission.getFactory()); + private GetMissionStatusScRsp() { } @@ -61,7 +61,7 @@ public final class GetMissionStatusScRspOuterClass { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 4; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -69,7 +69,7 @@ public final class GetMissionStatusScRspOuterClass { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 4; * @return this */ public GetMissionStatusScRsp clearRetcode() { @@ -79,7 +79,7 @@ public final class GetMissionStatusScRspOuterClass { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 4; * @return the retcode */ public int getRetcode() { @@ -87,7 +87,7 @@ public final class GetMissionStatusScRspOuterClass { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 4; * @param value the retcode to set * @return this */ @@ -98,7 +98,7 @@ public final class GetMissionStatusScRspOuterClass { } /** - * repeated uint32 unfinished_main_mission_id_list = 2; + * repeated uint32 unfinished_main_mission_id_list = 10; * @return whether the unfinishedMainMissionIdList field is set */ public boolean hasUnfinishedMainMissionIdList() { @@ -106,7 +106,7 @@ public final class GetMissionStatusScRspOuterClass { } /** - * repeated uint32 unfinished_main_mission_id_list = 2; + * repeated uint32 unfinished_main_mission_id_list = 10; * @return this */ public GetMissionStatusScRsp clearUnfinishedMainMissionIdList() { @@ -116,7 +116,7 @@ public final class GetMissionStatusScRspOuterClass { } /** - * repeated uint32 unfinished_main_mission_id_list = 2; + * repeated uint32 unfinished_main_mission_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. @@ -130,7 +130,7 @@ public final class GetMissionStatusScRspOuterClass { } /** - * repeated uint32 unfinished_main_mission_id_list = 2; + * repeated uint32 unfinished_main_mission_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 @@ -144,7 +144,7 @@ public final class GetMissionStatusScRspOuterClass { } /** - * repeated uint32 unfinished_main_mission_id_list = 2; + * repeated uint32 unfinished_main_mission_id_list = 10; * @param value the unfinishedMainMissionIdList to add * @return this */ @@ -155,7 +155,7 @@ public final class GetMissionStatusScRspOuterClass { } /** - * repeated uint32 unfinished_main_mission_id_list = 2; + * repeated uint32 unfinished_main_mission_id_list = 10; * @param values the unfinishedMainMissionIdList to add * @return this */ @@ -166,7 +166,7 @@ public final class GetMissionStatusScRspOuterClass { } /** - * repeated uint32 disabled_main_mission_id_list = 9; + * repeated uint32 disabled_main_mission_id_list = 11; * @return whether the disabledMainMissionIdList field is set */ public boolean hasDisabledMainMissionIdList() { @@ -174,7 +174,7 @@ public final class GetMissionStatusScRspOuterClass { } /** - * repeated uint32 disabled_main_mission_id_list = 9; + * repeated uint32 disabled_main_mission_id_list = 11; * @return this */ public GetMissionStatusScRsp clearDisabledMainMissionIdList() { @@ -184,7 +184,7 @@ public final class GetMissionStatusScRspOuterClass { } /** - * repeated uint32 disabled_main_mission_id_list = 9; + * repeated uint32 disabled_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. @@ -198,7 +198,7 @@ public final class GetMissionStatusScRspOuterClass { } /** - * repeated uint32 disabled_main_mission_id_list = 9; + * repeated uint32 disabled_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 @@ -212,7 +212,7 @@ public final class GetMissionStatusScRspOuterClass { } /** - * repeated uint32 disabled_main_mission_id_list = 9; + * repeated uint32 disabled_main_mission_id_list = 11; * @param value the disabledMainMissionIdList to add * @return this */ @@ -223,7 +223,7 @@ public final class GetMissionStatusScRspOuterClass { } /** - * repeated uint32 disabled_main_mission_id_list = 9; + * repeated uint32 disabled_main_mission_id_list = 11; * @param values the disabledMainMissionIdList to add * @return this */ @@ -234,7 +234,7 @@ public final class GetMissionStatusScRspOuterClass { } /** - * repeated uint32 finished_main_mission_id_list = 11; + * repeated uint32 finished_main_mission_id_list = 13; * @return whether the finishedMainMissionIdList field is set */ public boolean hasFinishedMainMissionIdList() { @@ -242,7 +242,7 @@ public final class GetMissionStatusScRspOuterClass { } /** - * repeated uint32 finished_main_mission_id_list = 11; + * repeated uint32 finished_main_mission_id_list = 13; * @return this */ public GetMissionStatusScRsp clearFinishedMainMissionIdList() { @@ -252,7 +252,7 @@ public final class GetMissionStatusScRspOuterClass { } /** - * repeated uint32 finished_main_mission_id_list = 11; + * repeated uint32 finished_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. @@ -266,7 +266,7 @@ public final class GetMissionStatusScRspOuterClass { } /** - * repeated uint32 finished_main_mission_id_list = 11; + * repeated uint32 finished_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 @@ -280,7 +280,7 @@ public final class GetMissionStatusScRspOuterClass { } /** - * repeated uint32 finished_main_mission_id_list = 11; + * repeated uint32 finished_main_mission_id_list = 13; * @param value the finishedMainMissionIdList to add * @return this */ @@ -291,7 +291,7 @@ public final class GetMissionStatusScRspOuterClass { } /** - * repeated uint32 finished_main_mission_id_list = 11; + * repeated uint32 finished_main_mission_id_list = 13; * @param values the finishedMainMissionIdList to add * @return this */ @@ -302,94 +302,25 @@ public final class GetMissionStatusScRspOuterClass { } /** - * repeated .Mission sub_mission_status_list = 6; - * @return whether the subMissionStatusList field is set + * repeated .Mission mission_event_status_list = 9; + * @return whether the missionEventStatusList field is set */ - public boolean hasSubMissionStatusList() { + public boolean hasMissionEventStatusList() { return (bitField0_ & 0x00000010) != 0; } /** - * repeated .Mission sub_mission_status_list = 6; - * @return this - */ - public GetMissionStatusScRsp clearSubMissionStatusList() { - bitField0_ &= ~0x00000010; - subMissionStatusList.clear(); - return this; - } - - /** - * 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. - * - * Use {@link #getMutableSubMissionStatusList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getSubMissionStatusList() { - return subMissionStatusList; - } - - /** - * 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 - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableSubMissionStatusList() { - bitField0_ |= 0x00000010; - return subMissionStatusList; - } - - /** - * repeated .Mission sub_mission_status_list = 6; - * @param value the subMissionStatusList to add - * @return this - */ - public GetMissionStatusScRsp addSubMissionStatusList(final MissionOuterClass.Mission value) { - bitField0_ |= 0x00000010; - subMissionStatusList.add(value); - return this; - } - - /** - * repeated .Mission sub_mission_status_list = 6; - * @param values the subMissionStatusList to add - * @return this - */ - public GetMissionStatusScRsp addAllSubMissionStatusList( - final MissionOuterClass.Mission... values) { - bitField0_ |= 0x00000010; - subMissionStatusList.addAll(values); - return this; - } - - /** - * repeated .Mission mission_event_status_list = 12; - * @return whether the missionEventStatusList field is set - */ - public boolean hasMissionEventStatusList() { - return (bitField0_ & 0x00000020) != 0; - } - - /** - * repeated .Mission mission_event_status_list = 12; + * repeated .Mission mission_event_status_list = 9; * @return this */ public GetMissionStatusScRsp clearMissionEventStatusList() { - bitField0_ &= ~0x00000020; + bitField0_ &= ~0x00000010; missionEventStatusList.clear(); return this; } /** - * repeated .Mission mission_event_status_list = 12; + * repeated .Mission mission_event_status_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. @@ -403,7 +334,7 @@ public final class GetMissionStatusScRspOuterClass { } /** - * repeated .Mission mission_event_status_list = 12; + * repeated .Mission mission_event_status_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 @@ -412,33 +343,102 @@ public final class GetMissionStatusScRspOuterClass { * @return internal storage object for modifications */ public RepeatedMessage getMutableMissionEventStatusList() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; return missionEventStatusList; } /** - * repeated .Mission mission_event_status_list = 12; + * repeated .Mission mission_event_status_list = 9; * @param value the missionEventStatusList to add * @return this */ public GetMissionStatusScRsp addMissionEventStatusList(final MissionOuterClass.Mission value) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; missionEventStatusList.add(value); return this; } /** - * repeated .Mission mission_event_status_list = 12; + * repeated .Mission mission_event_status_list = 9; * @param values the missionEventStatusList to add * @return this */ public GetMissionStatusScRsp addAllMissionEventStatusList( final MissionOuterClass.Mission... values) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; missionEventStatusList.addAll(values); return this; } + /** + * repeated .Mission sub_mission_status_list = 14; + * @return whether the subMissionStatusList field is set + */ + public boolean hasSubMissionStatusList() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * repeated .Mission sub_mission_status_list = 14; + * @return this + */ + public GetMissionStatusScRsp clearSubMissionStatusList() { + bitField0_ &= ~0x00000020; + subMissionStatusList.clear(); + return this; + } + + /** + * repeated .Mission sub_mission_status_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 #getMutableSubMissionStatusList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getSubMissionStatusList() { + return subMissionStatusList; + } + + /** + * repeated .Mission sub_mission_status_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 getMutableSubMissionStatusList() { + bitField0_ |= 0x00000020; + return subMissionStatusList; + } + + /** + * repeated .Mission sub_mission_status_list = 14; + * @param value the subMissionStatusList to add + * @return this + */ + public GetMissionStatusScRsp addSubMissionStatusList(final MissionOuterClass.Mission value) { + bitField0_ |= 0x00000020; + subMissionStatusList.add(value); + return this; + } + + /** + * repeated .Mission sub_mission_status_list = 14; + * @param values the subMissionStatusList to add + * @return this + */ + public GetMissionStatusScRsp addAllSubMissionStatusList( + final MissionOuterClass.Mission... values) { + bitField0_ |= 0x00000020; + subMissionStatusList.addAll(values); + return this; + } + @Override public GetMissionStatusScRsp copyFrom(final GetMissionStatusScRsp other) { cachedSize = other.cachedSize; @@ -448,8 +448,8 @@ public final class GetMissionStatusScRspOuterClass { unfinishedMainMissionIdList.copyFrom(other.unfinishedMainMissionIdList); disabledMainMissionIdList.copyFrom(other.disabledMainMissionIdList); finishedMainMissionIdList.copyFrom(other.finishedMainMissionIdList); - subMissionStatusList.copyFrom(other.subMissionStatusList); missionEventStatusList.copyFrom(other.missionEventStatusList); + subMissionStatusList.copyFrom(other.subMissionStatusList); } return this; } @@ -472,12 +472,12 @@ public final class GetMissionStatusScRspOuterClass { if (other.hasFinishedMainMissionIdList()) { getMutableFinishedMainMissionIdList().addAll(other.finishedMainMissionIdList); } - if (other.hasSubMissionStatusList()) { - getMutableSubMissionStatusList().addAll(other.subMissionStatusList); - } if (other.hasMissionEventStatusList()) { getMutableMissionEventStatusList().addAll(other.missionEventStatusList); } + if (other.hasSubMissionStatusList()) { + getMutableSubMissionStatusList().addAll(other.subMissionStatusList); + } return this; } @@ -492,8 +492,8 @@ public final class GetMissionStatusScRspOuterClass { unfinishedMainMissionIdList.clear(); disabledMainMissionIdList.clear(); finishedMainMissionIdList.clear(); - subMissionStatusList.clear(); missionEventStatusList.clear(); + subMissionStatusList.clear(); return this; } @@ -507,8 +507,8 @@ public final class GetMissionStatusScRspOuterClass { unfinishedMainMissionIdList.clear(); disabledMainMissionIdList.clear(); finishedMainMissionIdList.clear(); - subMissionStatusList.clearQuick(); missionEventStatusList.clearQuick(); + subMissionStatusList.clearQuick(); return this; } @@ -526,44 +526,44 @@ public final class GetMissionStatusScRspOuterClass { && (!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)); + && (!hasMissionEventStatusList() || missionEventStatusList.equals(other.missionEventStatusList)) + && (!hasSubMissionStatusList() || subMissionStatusList.equals(other.subMissionStatusList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < unfinishedMainMissionIdList.length(); i++) { - output.writeRawByte((byte) 16); + output.writeRawByte((byte) 80); output.writeUInt32NoTag(unfinishedMainMissionIdList.array()[i]); } } if ((bitField0_ & 0x00000004) != 0) { for (int i = 0; i < disabledMainMissionIdList.length(); i++) { - output.writeRawByte((byte) 72); + output.writeRawByte((byte) 88); output.writeUInt32NoTag(disabledMainMissionIdList.array()[i]); } } if ((bitField0_ & 0x00000008) != 0) { for (int i = 0; i < finishedMainMissionIdList.length(); i++) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 104); output.writeUInt32NoTag(finishedMainMissionIdList.array()[i]); } } if ((bitField0_ & 0x00000010) != 0) { - for (int i = 0; i < subMissionStatusList.length(); i++) { - output.writeRawByte((byte) 50); - output.writeMessageNoTag(subMissionStatusList.get(i)); + for (int i = 0; i < missionEventStatusList.length(); i++) { + output.writeRawByte((byte) 74); + output.writeMessageNoTag(missionEventStatusList.get(i)); } } if ((bitField0_ & 0x00000020) != 0) { - for (int i = 0; i < missionEventStatusList.length(); i++) { - output.writeRawByte((byte) 98); - output.writeMessageNoTag(missionEventStatusList.get(i)); + for (int i = 0; i < subMissionStatusList.length(); i++) { + output.writeRawByte((byte) 114); + output.writeMessageNoTag(subMissionStatusList.get(i)); } } } @@ -584,10 +584,10 @@ public final class GetMissionStatusScRspOuterClass { size += (1 * finishedMainMissionIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(finishedMainMissionIdList); } if ((bitField0_ & 0x00000010) != 0) { - size += (1 * subMissionStatusList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(subMissionStatusList); + size += (1 * missionEventStatusList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(missionEventStatusList); } if ((bitField0_ & 0x00000020) != 0) { - size += (1 * missionEventStatusList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(missionEventStatusList); + size += (1 * subMissionStatusList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(subMissionStatusList); } return size; } @@ -599,53 +599,53 @@ public final class GetMissionStatusScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 120: { + case 32: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 18) { + if (tag != 82) { break; } } - case 18: { + case 82: { // unfinishedMainMissionIdList [packed=true] input.readPackedUInt32(unfinishedMainMissionIdList, tag); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 74) { - break; - } - } - case 74: { - // disabledMainMissionIdList [packed=true] - input.readPackedUInt32(disabledMainMissionIdList, tag); - bitField0_ |= 0x00000004; - tag = input.readTag(); if (tag != 90) { break; } } case 90: { + // disabledMainMissionIdList [packed=true] + input.readPackedUInt32(disabledMainMissionIdList, tag); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 106) { + break; + } + } + case 106: { // finishedMainMissionIdList [packed=true] input.readPackedUInt32(finishedMainMissionIdList, tag); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 50) { + if (tag != 74) { break; } } - case 50: { - // subMissionStatusList - tag = input.readRepeatedMessage(subMissionStatusList, tag); - bitField0_ |= 0x00000010; - if (tag != 98) { - break; - } - } - case 98: { + case 74: { // missionEventStatusList tag = input.readRepeatedMessage(missionEventStatusList, tag); + bitField0_ |= 0x00000010; + if (tag != 114) { + break; + } + } + case 114: { + // subMissionStatusList + tag = input.readRepeatedMessage(subMissionStatusList, tag); bitField0_ |= 0x00000020; if (tag != 0) { break; @@ -661,19 +661,19 @@ public final class GetMissionStatusScRspOuterClass { tag = input.readTag(); break; } - case 16: { + case 80: { // unfinishedMainMissionIdList [packed=false] tag = input.readRepeatedUInt32(unfinishedMainMissionIdList, tag); bitField0_ |= 0x00000002; break; } - case 72: { + case 88: { // disabledMainMissionIdList [packed=false] tag = input.readRepeatedUInt32(disabledMainMissionIdList, tag); bitField0_ |= 0x00000004; break; } - case 88: { + case 104: { // finishedMainMissionIdList [packed=false] tag = input.readRepeatedUInt32(finishedMainMissionIdList, tag); bitField0_ |= 0x00000008; @@ -699,10 +699,10 @@ public final class GetMissionStatusScRspOuterClass { output.writeRepeatedUInt32(FieldNames.finishedMainMissionIdList, finishedMainMissionIdList); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRepeatedMessage(FieldNames.subMissionStatusList, subMissionStatusList); + output.writeRepeatedMessage(FieldNames.missionEventStatusList, missionEventStatusList); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRepeatedMessage(FieldNames.missionEventStatusList, missionEventStatusList); + output.writeRepeatedMessage(FieldNames.subMissionStatusList, subMissionStatusList); } output.endObject(); } @@ -761,11 +761,11 @@ public final class GetMissionStatusScRspOuterClass { } break; } - case -1842850820: - case 1165580825: { - if (input.isAtField(FieldNames.subMissionStatusList)) { + case 582053566: + case 1494751923: { + if (input.isAtField(FieldNames.missionEventStatusList)) { if (!input.trySkipNullValue()) { - input.readRepeatedMessage(subMissionStatusList); + input.readRepeatedMessage(missionEventStatusList); bitField0_ |= 0x00000010; } } else { @@ -773,11 +773,11 @@ public final class GetMissionStatusScRspOuterClass { } break; } - case 582053566: - case 1494751923: { - if (input.isAtField(FieldNames.missionEventStatusList)) { + case -1842850820: + case 1165580825: { + if (input.isAtField(FieldNames.subMissionStatusList)) { if (!input.trySkipNullValue()) { - input.readRepeatedMessage(missionEventStatusList); + input.readRepeatedMessage(subMissionStatusList); bitField0_ |= 0x00000020; } } else { @@ -846,9 +846,9 @@ public final class GetMissionStatusScRspOuterClass { static final FieldName finishedMainMissionIdList = FieldName.forField("finishedMainMissionIdList", "finished_main_mission_id_list"); - static final FieldName subMissionStatusList = FieldName.forField("subMissionStatusList", "sub_mission_status_list"); - static final FieldName missionEventStatusList = FieldName.forField("missionEventStatusList", "mission_event_status_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 bae5c88..5a73302 100644 --- a/src/generated/main/emu/lunarcore/proto/GetNpcTakenRewardCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetNpcTakenRewardCsReqOuterClass.java @@ -19,7 +19,7 @@ public final class GetNpcTakenRewardCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 npc_id = 6; + * optional uint32 npc_id = 4; */ private int npcId; @@ -34,7 +34,7 @@ public final class GetNpcTakenRewardCsReqOuterClass { } /** - * optional uint32 npc_id = 6; + * optional uint32 npc_id = 4; * @return whether the npcId field is set */ public boolean hasNpcId() { @@ -42,7 +42,7 @@ public final class GetNpcTakenRewardCsReqOuterClass { } /** - * optional uint32 npc_id = 6; + * optional uint32 npc_id = 4; * @return this */ public GetNpcTakenRewardCsReq clearNpcId() { @@ -52,7 +52,7 @@ public final class GetNpcTakenRewardCsReqOuterClass { } /** - * optional uint32 npc_id = 6; + * optional uint32 npc_id = 4; * @return the npcId */ public int getNpcId() { @@ -60,7 +60,7 @@ public final class GetNpcTakenRewardCsReqOuterClass { } /** - * optional uint32 npc_id = 6; + * optional uint32 npc_id = 4; * @param value the npcId to set * @return this */ @@ -129,7 +129,7 @@ public final class GetNpcTakenRewardCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(npcId); } } @@ -150,7 +150,7 @@ public final class GetNpcTakenRewardCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 48: { + case 32: { // 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 5a14cab..8f9f014 100644 --- a/src/generated/main/emu/lunarcore/proto/GetNpcTakenRewardScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetNpcTakenRewardScRspOuterClass.java @@ -19,15 +19,15 @@ public final class GetNpcTakenRewardScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 npc_id = 1; - */ - private int npcId; - - /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 3; */ private int retcode; + /** + * optional uint32 npc_id = 13; + */ + private int npcId; + private GetNpcTakenRewardScRsp() { } @@ -39,62 +39,25 @@ public final class GetNpcTakenRewardScRspOuterClass { } /** - * optional uint32 npc_id = 1; - * @return whether the npcId field is set + * optional uint32 retcode = 3; + * @return whether the retcode field is set */ - public boolean hasNpcId() { + public boolean hasRetcode() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 npc_id = 1; - * @return this - */ - public GetNpcTakenRewardScRsp clearNpcId() { - bitField0_ &= ~0x00000001; - npcId = 0; - return this; - } - - /** - * optional uint32 npc_id = 1; - * @return the npcId - */ - public int getNpcId() { - return npcId; - } - - /** - * optional uint32 npc_id = 1; - * @param value the npcId to set - * @return this - */ - public GetNpcTakenRewardScRsp setNpcId(final int value) { - bitField0_ |= 0x00000001; - npcId = value; - return this; - } - - /** - * optional uint32 retcode = 12; - * @return whether the retcode field is set - */ - public boolean hasRetcode() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 3; * @return this */ public GetNpcTakenRewardScRsp clearRetcode() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; retcode = 0; return this; } /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 3; * @return the retcode */ public int getRetcode() { @@ -102,23 +65,60 @@ public final class GetNpcTakenRewardScRspOuterClass { } /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 3; * @param value the retcode to set * @return this */ public GetNpcTakenRewardScRsp setRetcode(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; retcode = value; return this; } + /** + * optional uint32 npc_id = 13; + * @return whether the npcId field is set + */ + public boolean hasNpcId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 npc_id = 13; + * @return this + */ + public GetNpcTakenRewardScRsp clearNpcId() { + bitField0_ &= ~0x00000002; + npcId = 0; + return this; + } + + /** + * optional uint32 npc_id = 13; + * @return the npcId + */ + public int getNpcId() { + return npcId; + } + + /** + * optional uint32 npc_id = 13; + * @param value the npcId to set + * @return this + */ + public GetNpcTakenRewardScRsp setNpcId(final int value) { + bitField0_ |= 0x00000002; + npcId = value; + return this; + } + @Override public GetNpcTakenRewardScRsp copyFrom(final GetNpcTakenRewardScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - npcId = other.npcId; retcode = other.retcode; + npcId = other.npcId; } return this; } @@ -129,12 +129,12 @@ public final class GetNpcTakenRewardScRspOuterClass { return this; } cachedSize = -1; - if (other.hasNpcId()) { - setNpcId(other.npcId); - } if (other.hasRetcode()) { setRetcode(other.retcode); } + if (other.hasNpcId()) { + setNpcId(other.npcId); + } return this; } @@ -145,8 +145,8 @@ public final class GetNpcTakenRewardScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - npcId = 0; retcode = 0; + npcId = 0; return this; } @@ -170,19 +170,19 @@ public final class GetNpcTakenRewardScRspOuterClass { } GetNpcTakenRewardScRsp other = (GetNpcTakenRewardScRsp) o; return bitField0_ == other.bitField0_ - && (!hasNpcId() || npcId == other.npcId) - && (!hasRetcode() || retcode == other.retcode); + && (!hasRetcode() || retcode == other.retcode) + && (!hasNpcId() || npcId == other.npcId); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(npcId); + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 96); - output.writeUInt32NoTag(retcode); + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(npcId); } } @@ -190,10 +190,10 @@ public final class GetNpcTakenRewardScRspOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(npcId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(npcId); } return size; } @@ -205,18 +205,18 @@ public final class GetNpcTakenRewardScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 8: { - // npcId - npcId = input.readUInt32(); + case 24: { + // retcode + retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 96) { + if (tag != 104) { break; } } - case 96: { - // retcode - retcode = input.readUInt32(); + case 104: { + // npcId + npcId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { @@ -241,10 +241,10 @@ public final class GetNpcTakenRewardScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.npcId, npcId); + output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.npcId, npcId); } output.endObject(); } @@ -256,11 +256,10 @@ public final class GetNpcTakenRewardScRspOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - 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_ |= 0x00000001; } } else { @@ -268,10 +267,11 @@ public final class GetNpcTakenRewardScRspOuterClass { } break; } - 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_ |= 0x00000002; } } else { @@ -332,9 +332,9 @@ public final class GetNpcTakenRewardScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName npcId = FieldName.forField("npcId", "npc_id"); - static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName npcId = FieldName.forField("npcId", "npc_id"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/GetPhoneDataScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetPhoneDataScRspOuterClass.java index 6d0ed16..6c30f5c 100644 --- a/src/generated/main/emu/lunarcore/proto/GetPhoneDataScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetPhoneDataScRspOuterClass.java @@ -19,31 +19,31 @@ public final class GetPhoneDataScRspOuterClass { public static final class GetPhoneDataScRsp extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; - /** - * optional uint32 cur_chat_bubble = 6; - */ - private int curChatBubble; - - /** - * optional uint32 retcode = 8; - */ - private int retcode; - /** * optional uint32 cur_phone_theme = 10; */ private int curPhoneTheme; + /** + * optional uint32 cur_chat_bubble = 13; + */ + private int curChatBubble; + + /** + * optional uint32 retcode = 14; + */ + private int retcode; + + /** + * repeated uint32 owned_chat_bubbles = 9; + */ + private final RepeatedInt ownedChatBubbles = RepeatedInt.newEmptyInstance(); + /** * repeated uint32 owned_phone_themes = 11; */ private final RepeatedInt ownedPhoneThemes = RepeatedInt.newEmptyInstance(); - /** - * repeated uint32 owned_chat_bubbles = 15; - */ - private final RepeatedInt ownedChatBubbles = RepeatedInt.newEmptyInstance(); - private GetPhoneDataScRsp() { } @@ -54,86 +54,12 @@ public final class GetPhoneDataScRspOuterClass { return new GetPhoneDataScRsp(); } - /** - * optional uint32 cur_chat_bubble = 6; - * @return whether the curChatBubble field is set - */ - public boolean hasCurChatBubble() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 cur_chat_bubble = 6; - * @return this - */ - public GetPhoneDataScRsp clearCurChatBubble() { - bitField0_ &= ~0x00000001; - curChatBubble = 0; - return this; - } - - /** - * optional uint32 cur_chat_bubble = 6; - * @return the curChatBubble - */ - public int getCurChatBubble() { - return curChatBubble; - } - - /** - * optional uint32 cur_chat_bubble = 6; - * @param value the curChatBubble to set - * @return this - */ - public GetPhoneDataScRsp setCurChatBubble(final int value) { - bitField0_ |= 0x00000001; - curChatBubble = value; - return this; - } - - /** - * optional uint32 retcode = 8; - * @return whether the retcode field is set - */ - public boolean hasRetcode() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 retcode = 8; - * @return this - */ - public GetPhoneDataScRsp clearRetcode() { - bitField0_ &= ~0x00000002; - retcode = 0; - return this; - } - - /** - * optional uint32 retcode = 8; - * @return the retcode - */ - public int getRetcode() { - return retcode; - } - - /** - * optional uint32 retcode = 8; - * @param value the retcode to set - * @return this - */ - public GetPhoneDataScRsp setRetcode(final int value) { - bitField0_ |= 0x00000002; - retcode = value; - return this; - } - /** * optional uint32 cur_phone_theme = 10; * @return whether the curPhoneTheme field is set */ public boolean hasCurPhoneTheme() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000001) != 0; } /** @@ -141,7 +67,7 @@ public final class GetPhoneDataScRspOuterClass { * @return this */ public GetPhoneDataScRsp clearCurPhoneTheme() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000001; curPhoneTheme = 0; return this; } @@ -160,17 +86,159 @@ public final class GetPhoneDataScRspOuterClass { * @return this */ public GetPhoneDataScRsp setCurPhoneTheme(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; curPhoneTheme = value; return this; } + /** + * optional uint32 cur_chat_bubble = 13; + * @return whether the curChatBubble field is set + */ + public boolean hasCurChatBubble() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 cur_chat_bubble = 13; + * @return this + */ + public GetPhoneDataScRsp clearCurChatBubble() { + bitField0_ &= ~0x00000002; + curChatBubble = 0; + return this; + } + + /** + * optional uint32 cur_chat_bubble = 13; + * @return the curChatBubble + */ + public int getCurChatBubble() { + return curChatBubble; + } + + /** + * optional uint32 cur_chat_bubble = 13; + * @param value the curChatBubble to set + * @return this + */ + public GetPhoneDataScRsp setCurChatBubble(final int value) { + bitField0_ |= 0x00000002; + curChatBubble = value; + return this; + } + + /** + * optional uint32 retcode = 14; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 retcode = 14; + * @return this + */ + public GetPhoneDataScRsp clearRetcode() { + bitField0_ &= ~0x00000004; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 14; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 14; + * @param value the retcode to set + * @return this + */ + public GetPhoneDataScRsp setRetcode(final int value) { + bitField0_ |= 0x00000004; + retcode = value; + return this; + } + + /** + * repeated uint32 owned_chat_bubbles = 9; + * @return whether the ownedChatBubbles field is set + */ + public boolean hasOwnedChatBubbles() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated uint32 owned_chat_bubbles = 9; + * @return this + */ + public GetPhoneDataScRsp clearOwnedChatBubbles() { + bitField0_ &= ~0x00000008; + ownedChatBubbles.clear(); + return this; + } + + /** + * repeated uint32 owned_chat_bubbles = 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 #getMutableOwnedChatBubbles()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getOwnedChatBubbles() { + return ownedChatBubbles; + } + + /** + * repeated uint32 owned_chat_bubbles = 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 + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedInt getMutableOwnedChatBubbles() { + bitField0_ |= 0x00000008; + return ownedChatBubbles; + } + + /** + * repeated uint32 owned_chat_bubbles = 9; + * @param value the ownedChatBubbles to add + * @return this + */ + public GetPhoneDataScRsp addOwnedChatBubbles(final int value) { + bitField0_ |= 0x00000008; + ownedChatBubbles.add(value); + return this; + } + + /** + * repeated uint32 owned_chat_bubbles = 9; + * @param values the ownedChatBubbles to add + * @return this + */ + public GetPhoneDataScRsp addAllOwnedChatBubbles(final int... values) { + bitField0_ |= 0x00000008; + ownedChatBubbles.addAll(values); + return this; + } + /** * repeated uint32 owned_phone_themes = 11; * @return whether the ownedPhoneThemes field is set */ public boolean hasOwnedPhoneThemes() { - return (bitField0_ & 0x00000008) != 0; + return (bitField0_ & 0x00000010) != 0; } /** @@ -178,7 +246,7 @@ public final class GetPhoneDataScRspOuterClass { * @return this */ public GetPhoneDataScRsp clearOwnedPhoneThemes() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000010; ownedPhoneThemes.clear(); return this; } @@ -207,7 +275,7 @@ public final class GetPhoneDataScRspOuterClass { * @return internal storage object for modifications */ public RepeatedInt getMutableOwnedPhoneThemes() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; return ownedPhoneThemes; } @@ -217,7 +285,7 @@ public final class GetPhoneDataScRspOuterClass { * @return this */ public GetPhoneDataScRsp addOwnedPhoneThemes(final int value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; ownedPhoneThemes.add(value); return this; } @@ -228,89 +296,21 @@ public final class GetPhoneDataScRspOuterClass { * @return this */ public GetPhoneDataScRsp addAllOwnedPhoneThemes(final int... values) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; ownedPhoneThemes.addAll(values); return this; } - /** - * repeated uint32 owned_chat_bubbles = 15; - * @return whether the ownedChatBubbles field is set - */ - public boolean hasOwnedChatBubbles() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - * repeated uint32 owned_chat_bubbles = 15; - * @return this - */ - public GetPhoneDataScRsp clearOwnedChatBubbles() { - bitField0_ &= ~0x00000010; - ownedChatBubbles.clear(); - return this; - } - - /** - * 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 #getMutableOwnedChatBubbles()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedInt getOwnedChatBubbles() { - return ownedChatBubbles; - } - - /** - * 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 - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedInt getMutableOwnedChatBubbles() { - bitField0_ |= 0x00000010; - return ownedChatBubbles; - } - - /** - * repeated uint32 owned_chat_bubbles = 15; - * @param value the ownedChatBubbles to add - * @return this - */ - public GetPhoneDataScRsp addOwnedChatBubbles(final int value) { - bitField0_ |= 0x00000010; - ownedChatBubbles.add(value); - return this; - } - - /** - * repeated uint32 owned_chat_bubbles = 15; - * @param values the ownedChatBubbles to add - * @return this - */ - public GetPhoneDataScRsp addAllOwnedChatBubbles(final int... values) { - bitField0_ |= 0x00000010; - ownedChatBubbles.addAll(values); - return this; - } - @Override public GetPhoneDataScRsp copyFrom(final GetPhoneDataScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; + curPhoneTheme = other.curPhoneTheme; curChatBubble = other.curChatBubble; retcode = other.retcode; - curPhoneTheme = other.curPhoneTheme; - ownedPhoneThemes.copyFrom(other.ownedPhoneThemes); ownedChatBubbles.copyFrom(other.ownedChatBubbles); + ownedPhoneThemes.copyFrom(other.ownedPhoneThemes); } return this; } @@ -321,21 +321,21 @@ public final class GetPhoneDataScRspOuterClass { return this; } cachedSize = -1; + if (other.hasCurPhoneTheme()) { + setCurPhoneTheme(other.curPhoneTheme); + } if (other.hasCurChatBubble()) { setCurChatBubble(other.curChatBubble); } if (other.hasRetcode()) { setRetcode(other.retcode); } - if (other.hasCurPhoneTheme()) { - setCurPhoneTheme(other.curPhoneTheme); + if (other.hasOwnedChatBubbles()) { + getMutableOwnedChatBubbles().addAll(other.ownedChatBubbles); } if (other.hasOwnedPhoneThemes()) { getMutableOwnedPhoneThemes().addAll(other.ownedPhoneThemes); } - if (other.hasOwnedChatBubbles()) { - getMutableOwnedChatBubbles().addAll(other.ownedChatBubbles); - } return this; } @@ -346,11 +346,11 @@ public final class GetPhoneDataScRspOuterClass { } cachedSize = -1; bitField0_ = 0; + curPhoneTheme = 0; curChatBubble = 0; retcode = 0; - curPhoneTheme = 0; - ownedPhoneThemes.clear(); ownedChatBubbles.clear(); + ownedPhoneThemes.clear(); return this; } @@ -361,8 +361,8 @@ public final class GetPhoneDataScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - ownedPhoneThemes.clear(); ownedChatBubbles.clear(); + ownedPhoneThemes.clear(); return this; } @@ -376,37 +376,37 @@ public final class GetPhoneDataScRspOuterClass { } GetPhoneDataScRsp other = (GetPhoneDataScRsp) o; return bitField0_ == other.bitField0_ + && (!hasCurPhoneTheme() || curPhoneTheme == other.curPhoneTheme) && (!hasCurChatBubble() || curChatBubble == other.curChatBubble) && (!hasRetcode() || retcode == other.retcode) - && (!hasCurPhoneTheme() || curPhoneTheme == other.curPhoneTheme) - && (!hasOwnedPhoneThemes() || ownedPhoneThemes.equals(other.ownedPhoneThemes)) - && (!hasOwnedChatBubbles() || ownedChatBubbles.equals(other.ownedChatBubbles)); + && (!hasOwnedChatBubbles() || ownedChatBubbles.equals(other.ownedChatBubbles)) + && (!hasOwnedPhoneThemes() || ownedPhoneThemes.equals(other.ownedPhoneThemes)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 48); - output.writeUInt32NoTag(curChatBubble); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 64); - output.writeUInt32NoTag(retcode); - } - if ((bitField0_ & 0x00000004) != 0) { output.writeRawByte((byte) 80); output.writeUInt32NoTag(curPhoneTheme); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(curChatBubble); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(retcode); + } if ((bitField0_ & 0x00000008) != 0) { - for (int i = 0; i < ownedPhoneThemes.length(); i++) { - output.writeRawByte((byte) 88); - output.writeUInt32NoTag(ownedPhoneThemes.array()[i]); + for (int i = 0; i < ownedChatBubbles.length(); i++) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(ownedChatBubbles.array()[i]); } } if ((bitField0_ & 0x00000010) != 0) { - for (int i = 0; i < ownedChatBubbles.length(); i++) { - output.writeRawByte((byte) 120); - output.writeUInt32NoTag(ownedChatBubbles.array()[i]); + for (int i = 0; i < ownedPhoneThemes.length(); i++) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(ownedPhoneThemes.array()[i]); } } } @@ -415,19 +415,19 @@ public final class GetPhoneDataScRspOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(curChatBubble); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); - } - if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(curPhoneTheme); } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(curChatBubble); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } if ((bitField0_ & 0x00000008) != 0) { - size += (1 * ownedPhoneThemes.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(ownedPhoneThemes); + size += (1 * ownedChatBubbles.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(ownedChatBubbles); } if ((bitField0_ & 0x00000010) != 0) { - size += (1 * ownedChatBubbles.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(ownedChatBubbles); + size += (1 * ownedPhoneThemes.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(ownedPhoneThemes); } return size; } @@ -439,29 +439,38 @@ public final class GetPhoneDataScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 48: { - // curChatBubble - curChatBubble = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 64) { - break; - } - } - case 64: { - // retcode - retcode = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 80) { - break; - } - } case 80: { // curPhoneTheme curPhoneTheme = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // curChatBubble + curChatBubble = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // retcode + retcode = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); + if (tag != 74) { + break; + } + } + case 74: { + // ownedChatBubbles [packed=true] + input.readPackedUInt32(ownedChatBubbles, tag); + bitField0_ |= 0x00000008; + tag = input.readTag(); if (tag != 90) { break; } @@ -469,15 +478,6 @@ public final class GetPhoneDataScRspOuterClass { case 90: { // ownedPhoneThemes [packed=true] input.readPackedUInt32(ownedPhoneThemes, tag); - bitField0_ |= 0x00000008; - tag = input.readTag(); - if (tag != 122) { - break; - } - } - case 122: { - // ownedChatBubbles [packed=true] - input.readPackedUInt32(ownedChatBubbles, tag); bitField0_ |= 0x00000010; tag = input.readTag(); if (tag != 0) { @@ -494,15 +494,15 @@ public final class GetPhoneDataScRspOuterClass { tag = input.readTag(); break; } - case 88: { - // ownedPhoneThemes [packed=false] - tag = input.readRepeatedUInt32(ownedPhoneThemes, tag); + case 72: { + // ownedChatBubbles [packed=false] + tag = input.readRepeatedUInt32(ownedChatBubbles, tag); bitField0_ |= 0x00000008; break; } - case 120: { - // ownedChatBubbles [packed=false] - tag = input.readRepeatedUInt32(ownedChatBubbles, tag); + case 88: { + // ownedPhoneThemes [packed=false] + tag = input.readRepeatedUInt32(ownedPhoneThemes, tag); bitField0_ |= 0x00000010; break; } @@ -514,19 +514,19 @@ public final class GetPhoneDataScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.curChatBubble, curChatBubble); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); - } - if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.curPhoneTheme, curPhoneTheme); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.curChatBubble, curChatBubble); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } if ((bitField0_ & 0x00000008) != 0) { - output.writeRepeatedUInt32(FieldNames.ownedPhoneThemes, ownedPhoneThemes); + output.writeRepeatedUInt32(FieldNames.ownedChatBubbles, ownedChatBubbles); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRepeatedUInt32(FieldNames.ownedChatBubbles, ownedChatBubbles); + output.writeRepeatedUInt32(FieldNames.ownedPhoneThemes, ownedPhoneThemes); } output.endObject(); } @@ -538,12 +538,24 @@ public final class GetPhoneDataScRspOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { + case 405670747: + case -514634695: { + if (input.isAtField(FieldNames.curPhoneTheme)) { + if (!input.trySkipNullValue()) { + curPhoneTheme = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } case 94167140: case 1828957140: { if (input.isAtField(FieldNames.curChatBubble)) { if (!input.trySkipNullValue()) { curChatBubble = input.readUInt32(); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } else { input.skipUnknownField(); @@ -554,18 +566,6 @@ public final class GetPhoneDataScRspOuterClass { if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { retcode = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case 405670747: - case -514634695: { - if (input.isAtField(FieldNames.curPhoneTheme)) { - if (!input.trySkipNullValue()) { - curPhoneTheme = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -573,23 +573,23 @@ public final class GetPhoneDataScRspOuterClass { } break; } - case -512676109: - case -1128638699: { - if (input.isAtField(FieldNames.ownedPhoneThemes)) { - if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(ownedPhoneThemes); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } case -1579353334: case -1491735846: { if (input.isAtField(FieldNames.ownedChatBubbles)) { if (!input.trySkipNullValue()) { input.readRepeatedUInt32(ownedChatBubbles); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -512676109: + case -1128638699: { + if (input.isAtField(FieldNames.ownedPhoneThemes)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(ownedPhoneThemes); bitField0_ |= 0x00000010; } } else { @@ -650,15 +650,15 @@ public final class GetPhoneDataScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { + static final FieldName curPhoneTheme = FieldName.forField("curPhoneTheme", "cur_phone_theme"); + static final FieldName curChatBubble = FieldName.forField("curChatBubble", "cur_chat_bubble"); static final FieldName retcode = FieldName.forField("retcode"); - static final FieldName curPhoneTheme = FieldName.forField("curPhoneTheme", "cur_phone_theme"); + static final FieldName ownedChatBubbles = FieldName.forField("ownedChatBubbles", "owned_chat_bubbles"); 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 e649059..033ab71 100644 --- a/src/generated/main/emu/lunarcore/proto/GetPlayerBoardDataScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetPlayerBoardDataScRspOuterClass.java @@ -21,27 +21,27 @@ public final class GetPlayerBoardDataScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 current_head_icon_id = 6; + * optional uint32 current_head_icon_id = 2; */ private int currentHeadIconId; /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 9; */ private int retcode; /** - * optional .DisplayAvatarVec display_avatar_vec = 15; + * optional .DisplayAvatarVec display_avatar_vec = 13; */ private final DisplayAvatarVecOuterClass.DisplayAvatarVec displayAvatarVec = DisplayAvatarVecOuterClass.DisplayAvatarVec.newInstance(); /** - * optional string signature = 5; + * optional string signature = 15; */ private final Utf8String signature = Utf8String.newEmptyInstance(); /** - * repeated .HeadIcon unlocked_head_icon_list = 12; + * repeated .HeadIcon unlocked_head_icon_list = 3; */ private final RepeatedMessage unlockedHeadIconList = RepeatedMessage.newEmptyInstance(HeadIconOuterClass.HeadIcon.getFactory()); @@ -56,7 +56,7 @@ public final class GetPlayerBoardDataScRspOuterClass { } /** - * optional uint32 current_head_icon_id = 6; + * optional uint32 current_head_icon_id = 2; * @return whether the currentHeadIconId field is set */ public boolean hasCurrentHeadIconId() { @@ -64,7 +64,7 @@ public final class GetPlayerBoardDataScRspOuterClass { } /** - * optional uint32 current_head_icon_id = 6; + * optional uint32 current_head_icon_id = 2; * @return this */ public GetPlayerBoardDataScRsp clearCurrentHeadIconId() { @@ -74,7 +74,7 @@ public final class GetPlayerBoardDataScRspOuterClass { } /** - * optional uint32 current_head_icon_id = 6; + * optional uint32 current_head_icon_id = 2; * @return the currentHeadIconId */ public int getCurrentHeadIconId() { @@ -82,7 +82,7 @@ public final class GetPlayerBoardDataScRspOuterClass { } /** - * optional uint32 current_head_icon_id = 6; + * optional uint32 current_head_icon_id = 2; * @param value the currentHeadIconId to set * @return this */ @@ -93,7 +93,7 @@ public final class GetPlayerBoardDataScRspOuterClass { } /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 9; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -101,7 +101,7 @@ public final class GetPlayerBoardDataScRspOuterClass { } /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 9; * @return this */ public GetPlayerBoardDataScRsp clearRetcode() { @@ -111,7 +111,7 @@ public final class GetPlayerBoardDataScRspOuterClass { } /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 9; * @return the retcode */ public int getRetcode() { @@ -119,7 +119,7 @@ public final class GetPlayerBoardDataScRspOuterClass { } /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 9; * @param value the retcode to set * @return this */ @@ -130,7 +130,7 @@ public final class GetPlayerBoardDataScRspOuterClass { } /** - * optional .DisplayAvatarVec display_avatar_vec = 15; + * optional .DisplayAvatarVec display_avatar_vec = 13; * @return whether the displayAvatarVec field is set */ public boolean hasDisplayAvatarVec() { @@ -138,7 +138,7 @@ public final class GetPlayerBoardDataScRspOuterClass { } /** - * optional .DisplayAvatarVec display_avatar_vec = 15; + * optional .DisplayAvatarVec display_avatar_vec = 13; * @return this */ public GetPlayerBoardDataScRsp clearDisplayAvatarVec() { @@ -148,7 +148,7 @@ public final class GetPlayerBoardDataScRspOuterClass { } /** - * optional .DisplayAvatarVec display_avatar_vec = 15; + * optional .DisplayAvatarVec display_avatar_vec = 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. @@ -162,7 +162,7 @@ public final class GetPlayerBoardDataScRspOuterClass { } /** - * optional .DisplayAvatarVec display_avatar_vec = 15; + * optional .DisplayAvatarVec display_avatar_vec = 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 @@ -176,7 +176,7 @@ public final class GetPlayerBoardDataScRspOuterClass { } /** - * optional .DisplayAvatarVec display_avatar_vec = 15; + * optional .DisplayAvatarVec display_avatar_vec = 13; * @param value the displayAvatarVec to set * @return this */ @@ -188,7 +188,7 @@ public final class GetPlayerBoardDataScRspOuterClass { } /** - * optional string signature = 5; + * optional string signature = 15; * @return whether the signature field is set */ public boolean hasSignature() { @@ -196,7 +196,7 @@ public final class GetPlayerBoardDataScRspOuterClass { } /** - * optional string signature = 5; + * optional string signature = 15; * @return this */ public GetPlayerBoardDataScRsp clearSignature() { @@ -206,7 +206,7 @@ public final class GetPlayerBoardDataScRspOuterClass { } /** - * optional string signature = 5; + * optional string signature = 15; * @return the signature */ public String getSignature() { @@ -214,7 +214,7 @@ public final class GetPlayerBoardDataScRspOuterClass { } /** - * optional string signature = 5; + * optional string signature = 15; * @return internal {@code Utf8String} representation of signature for reading */ public Utf8String getSignatureBytes() { @@ -222,7 +222,7 @@ public final class GetPlayerBoardDataScRspOuterClass { } /** - * optional string signature = 5; + * optional string signature = 15; * @return internal {@code Utf8String} representation of signature for modifications */ public Utf8String getMutableSignatureBytes() { @@ -231,7 +231,7 @@ public final class GetPlayerBoardDataScRspOuterClass { } /** - * optional string signature = 5; + * optional string signature = 15; * @param value the signature to set * @return this */ @@ -242,7 +242,7 @@ public final class GetPlayerBoardDataScRspOuterClass { } /** - * optional string signature = 5; + * optional string signature = 15; * @param value the signature to set * @return this */ @@ -253,7 +253,7 @@ public final class GetPlayerBoardDataScRspOuterClass { } /** - * repeated .HeadIcon unlocked_head_icon_list = 12; + * repeated .HeadIcon unlocked_head_icon_list = 3; * @return whether the unlockedHeadIconList field is set */ public boolean hasUnlockedHeadIconList() { @@ -261,7 +261,7 @@ public final class GetPlayerBoardDataScRspOuterClass { } /** - * repeated .HeadIcon unlocked_head_icon_list = 12; + * repeated .HeadIcon unlocked_head_icon_list = 3; * @return this */ public GetPlayerBoardDataScRsp clearUnlockedHeadIconList() { @@ -271,7 +271,7 @@ public final class GetPlayerBoardDataScRspOuterClass { } /** - * repeated .HeadIcon unlocked_head_icon_list = 12; + * repeated .HeadIcon unlocked_head_icon_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. @@ -285,7 +285,7 @@ public final class GetPlayerBoardDataScRspOuterClass { } /** - * repeated .HeadIcon unlocked_head_icon_list = 12; + * repeated .HeadIcon unlocked_head_icon_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 @@ -299,7 +299,7 @@ public final class GetPlayerBoardDataScRspOuterClass { } /** - * repeated .HeadIcon unlocked_head_icon_list = 12; + * repeated .HeadIcon unlocked_head_icon_list = 3; * @param value the unlockedHeadIconList to add * @return this */ @@ -311,7 +311,7 @@ public final class GetPlayerBoardDataScRspOuterClass { } /** - * repeated .HeadIcon unlocked_head_icon_list = 12; + * repeated .HeadIcon unlocked_head_icon_list = 3; * @param values the unlockedHeadIconList to add * @return this */ @@ -408,24 +408,24 @@ public final class GetPlayerBoardDataScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 16); output.writeUInt32NoTag(currentHeadIconId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 72); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 122); + output.writeRawByte((byte) 106); output.writeMessageNoTag(displayAvatarVec); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 42); + output.writeRawByte((byte) 122); output.writeStringNoTag(signature); } if ((bitField0_ & 0x00000010) != 0) { for (int i = 0; i < unlockedHeadIconList.length(); i++) { - output.writeRawByte((byte) 98); + output.writeRawByte((byte) 26); output.writeMessageNoTag(unlockedHeadIconList.get(i)); } } @@ -459,43 +459,43 @@ public final class GetPlayerBoardDataScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 48: { + case 16: { // currentHeadIconId currentHeadIconId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 56) { + if (tag != 72) { break; } } - case 56: { + case 72: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); + if (tag != 106) { + break; + } + } + case 106: { + // displayAvatarVec + input.readMessage(displayAvatarVec); + bitField0_ |= 0x00000004; + tag = input.readTag(); if (tag != 122) { break; } } case 122: { - // displayAvatarVec - input.readMessage(displayAvatarVec); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 42) { - break; - } - } - case 42: { // signature input.readString(signature); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 98) { + if (tag != 26) { break; } } - case 98: { + case 26: { // unlockedHeadIconList tag = input.readRepeatedMessage(unlockedHeadIconList, tag); bitField0_ |= 0x00000010; diff --git a/src/generated/main/emu/lunarcore/proto/GetPlayerDetailInfoCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetPlayerDetailInfoCsReqOuterClass.java index 804e542..a29daa2 100644 --- a/src/generated/main/emu/lunarcore/proto/GetPlayerDetailInfoCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetPlayerDetailInfoCsReqOuterClass.java @@ -19,7 +19,7 @@ public final class GetPlayerDetailInfoCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 uid = 5; + * optional uint32 uid = 12; */ private int uid; @@ -34,7 +34,7 @@ public final class GetPlayerDetailInfoCsReqOuterClass { } /** - * optional uint32 uid = 5; + * optional uint32 uid = 12; * @return whether the uid field is set */ public boolean hasUid() { @@ -42,7 +42,7 @@ public final class GetPlayerDetailInfoCsReqOuterClass { } /** - * optional uint32 uid = 5; + * optional uint32 uid = 12; * @return this */ public GetPlayerDetailInfoCsReq clearUid() { @@ -52,7 +52,7 @@ public final class GetPlayerDetailInfoCsReqOuterClass { } /** - * optional uint32 uid = 5; + * optional uint32 uid = 12; * @return the uid */ public int getUid() { @@ -60,7 +60,7 @@ public final class GetPlayerDetailInfoCsReqOuterClass { } /** - * optional uint32 uid = 5; + * optional uint32 uid = 12; * @param value the uid to set * @return this */ @@ -129,7 +129,7 @@ public final class GetPlayerDetailInfoCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 96); output.writeUInt32NoTag(uid); } } @@ -150,7 +150,7 @@ public final class GetPlayerDetailInfoCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 40: { + case 96: { // 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 3c517ff..775fc3f 100644 --- a/src/generated/main/emu/lunarcore/proto/GetPlayerDetailInfoScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetPlayerDetailInfoScRspOuterClass.java @@ -19,12 +19,12 @@ public final class GetPlayerDetailInfoScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 8; */ private int retcode; /** - * optional .PlayerDetailInfo player_detail_info = 3; + * optional .PlayerDetailInfo player_detail_info = 4; */ private final PlayerDetailInfoOuterClass.PlayerDetailInfo playerDetailInfo = PlayerDetailInfoOuterClass.PlayerDetailInfo.newInstance(); @@ -39,7 +39,7 @@ public final class GetPlayerDetailInfoScRspOuterClass { } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 8; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -47,7 +47,7 @@ public final class GetPlayerDetailInfoScRspOuterClass { } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 8; * @return this */ public GetPlayerDetailInfoScRsp clearRetcode() { @@ -57,7 +57,7 @@ public final class GetPlayerDetailInfoScRspOuterClass { } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 8; * @return the retcode */ public int getRetcode() { @@ -65,7 +65,7 @@ public final class GetPlayerDetailInfoScRspOuterClass { } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 8; * @param value the retcode to set * @return this */ @@ -76,7 +76,7 @@ public final class GetPlayerDetailInfoScRspOuterClass { } /** - * optional .PlayerDetailInfo player_detail_info = 3; + * optional .PlayerDetailInfo player_detail_info = 4; * @return whether the playerDetailInfo field is set */ public boolean hasPlayerDetailInfo() { @@ -84,7 +84,7 @@ public final class GetPlayerDetailInfoScRspOuterClass { } /** - * optional .PlayerDetailInfo player_detail_info = 3; + * optional .PlayerDetailInfo player_detail_info = 4; * @return this */ public GetPlayerDetailInfoScRsp clearPlayerDetailInfo() { @@ -94,7 +94,7 @@ public final class GetPlayerDetailInfoScRspOuterClass { } /** - * optional .PlayerDetailInfo player_detail_info = 3; + * optional .PlayerDetailInfo player_detail_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 +108,7 @@ public final class GetPlayerDetailInfoScRspOuterClass { } /** - * optional .PlayerDetailInfo player_detail_info = 3; + * optional .PlayerDetailInfo player_detail_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 @@ -122,7 +122,7 @@ public final class GetPlayerDetailInfoScRspOuterClass { } /** - * optional .PlayerDetailInfo player_detail_info = 3; + * optional .PlayerDetailInfo player_detail_info = 4; * @param value the playerDetailInfo to set * @return this */ @@ -199,11 +199,11 @@ public final class GetPlayerDetailInfoScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 64); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 26); + output.writeRawByte((byte) 34); output.writeMessageNoTag(playerDetailInfo); } } @@ -227,16 +227,16 @@ public final class GetPlayerDetailInfoScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 112: { + case 64: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 26) { + if (tag != 34) { break; } } - case 26: { + case 34: { // 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 8680acf..5b74231 100644 --- a/src/generated/main/emu/lunarcore/proto/GetPrivateChatHistoryCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetPrivateChatHistoryCsReqOuterClass.java @@ -19,15 +19,15 @@ public final class GetPrivateChatHistoryCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 to_uid = 2; - */ - private int toUid; - - /** - * optional uint32 sender_uid = 5; + * optional uint32 sender_uid = 8; */ private int senderUid; + /** + * optional uint32 to_uid = 13; + */ + private int toUid; + private GetPrivateChatHistoryCsReq() { } @@ -39,62 +39,25 @@ public final class GetPrivateChatHistoryCsReqOuterClass { } /** - * optional uint32 to_uid = 2; - * @return whether the toUid field is set + * optional uint32 sender_uid = 8; + * @return whether the senderUid field is set */ - public boolean hasToUid() { + public boolean hasSenderUid() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 to_uid = 2; - * @return this - */ - public GetPrivateChatHistoryCsReq clearToUid() { - bitField0_ &= ~0x00000001; - toUid = 0; - return this; - } - - /** - * optional uint32 to_uid = 2; - * @return the toUid - */ - public int getToUid() { - return toUid; - } - - /** - * optional uint32 to_uid = 2; - * @param value the toUid to set - * @return this - */ - public GetPrivateChatHistoryCsReq setToUid(final int value) { - bitField0_ |= 0x00000001; - toUid = value; - return this; - } - - /** - * optional uint32 sender_uid = 5; - * @return whether the senderUid field is set - */ - public boolean hasSenderUid() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 sender_uid = 5; + * optional uint32 sender_uid = 8; * @return this */ public GetPrivateChatHistoryCsReq clearSenderUid() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; senderUid = 0; return this; } /** - * optional uint32 sender_uid = 5; + * optional uint32 sender_uid = 8; * @return the senderUid */ public int getSenderUid() { @@ -102,23 +65,60 @@ public final class GetPrivateChatHistoryCsReqOuterClass { } /** - * optional uint32 sender_uid = 5; + * optional uint32 sender_uid = 8; * @param value the senderUid to set * @return this */ public GetPrivateChatHistoryCsReq setSenderUid(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; senderUid = value; return this; } + /** + * optional uint32 to_uid = 13; + * @return whether the toUid field is set + */ + public boolean hasToUid() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 to_uid = 13; + * @return this + */ + public GetPrivateChatHistoryCsReq clearToUid() { + bitField0_ &= ~0x00000002; + toUid = 0; + return this; + } + + /** + * optional uint32 to_uid = 13; + * @return the toUid + */ + public int getToUid() { + return toUid; + } + + /** + * optional uint32 to_uid = 13; + * @param value the toUid to set + * @return this + */ + public GetPrivateChatHistoryCsReq setToUid(final int value) { + bitField0_ |= 0x00000002; + toUid = value; + return this; + } + @Override public GetPrivateChatHistoryCsReq copyFrom(final GetPrivateChatHistoryCsReq other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - toUid = other.toUid; senderUid = other.senderUid; + toUid = other.toUid; } return this; } @@ -129,12 +129,12 @@ public final class GetPrivateChatHistoryCsReqOuterClass { return this; } cachedSize = -1; - if (other.hasToUid()) { - setToUid(other.toUid); - } if (other.hasSenderUid()) { setSenderUid(other.senderUid); } + if (other.hasToUid()) { + setToUid(other.toUid); + } return this; } @@ -145,8 +145,8 @@ public final class GetPrivateChatHistoryCsReqOuterClass { } cachedSize = -1; bitField0_ = 0; - toUid = 0; senderUid = 0; + toUid = 0; return this; } @@ -170,19 +170,19 @@ public final class GetPrivateChatHistoryCsReqOuterClass { } GetPrivateChatHistoryCsReq other = (GetPrivateChatHistoryCsReq) o; return bitField0_ == other.bitField0_ - && (!hasToUid() || toUid == other.toUid) - && (!hasSenderUid() || senderUid == other.senderUid); + && (!hasSenderUid() || senderUid == other.senderUid) + && (!hasToUid() || toUid == other.toUid); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(toUid); + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(senderUid); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 40); - output.writeUInt32NoTag(senderUid); + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(toUid); } } @@ -190,10 +190,10 @@ public final class GetPrivateChatHistoryCsReqOuterClass { 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(senderUid); + size += 1 + ProtoSink.computeUInt32SizeNoTag(toUid); } return size; } @@ -205,18 +205,18 @@ public final class GetPrivateChatHistoryCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { - // toUid - toUid = input.readUInt32(); + case 64: { + // senderUid + senderUid = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 40) { + if (tag != 104) { break; } } - case 40: { - // senderUid - senderUid = input.readUInt32(); + case 104: { + // toUid + toUid = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { @@ -241,10 +241,10 @@ public final class GetPrivateChatHistoryCsReqOuterClass { 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.senderUid, senderUid); + output.writeUInt32(FieldNames.toUid, toUid); } output.endObject(); } @@ -256,11 +256,11 @@ public final class GetPrivateChatHistoryCsReqOuterClass { } 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 { @@ -268,11 +268,11 @@ public final class GetPrivateChatHistoryCsReqOuterClass { } break; } - 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_ |= 0x00000002; } } else { @@ -333,9 +333,9 @@ public final class GetPrivateChatHistoryCsReqOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName toUid = FieldName.forField("toUid", "to_uid"); - static final FieldName senderUid = FieldName.forField("senderUid", "sender_uid"); + + static final FieldName toUid = FieldName.forField("toUid", "to_uid"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/GetPrivateChatHistoryScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetPrivateChatHistoryScRspOuterClass.java index 18f4660..d643f56 100644 --- a/src/generated/main/emu/lunarcore/proto/GetPrivateChatHistoryScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetPrivateChatHistoryScRspOuterClass.java @@ -20,22 +20,22 @@ public final class GetPrivateChatHistoryScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 sender_uid = 4; - */ - private int senderUid; - - /** - * optional uint32 to_uid = 9; + * optional uint32 to_uid = 8; */ private int toUid; /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 10; */ private int retcode; /** - * repeated .Chat chat_list = 3; + * optional uint32 sender_uid = 13; + */ + private int senderUid; + + /** + * repeated .Chat chat_list = 5; */ private final RepeatedMessage chatList = RepeatedMessage.newEmptyInstance(ChatOuterClass.Chat.getFactory()); @@ -50,62 +50,25 @@ public final class GetPrivateChatHistoryScRspOuterClass { } /** - * optional uint32 sender_uid = 4; - * @return whether the senderUid field is set + * optional uint32 to_uid = 8; + * @return whether the toUid field is set */ - public boolean hasSenderUid() { + public boolean hasToUid() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 sender_uid = 4; - * @return this - */ - public GetPrivateChatHistoryScRsp clearSenderUid() { - bitField0_ &= ~0x00000001; - senderUid = 0; - return this; - } - - /** - * optional uint32 sender_uid = 4; - * @return the senderUid - */ - public int getSenderUid() { - return senderUid; - } - - /** - * optional uint32 sender_uid = 4; - * @param value the senderUid to set - * @return this - */ - public GetPrivateChatHistoryScRsp setSenderUid(final int value) { - bitField0_ |= 0x00000001; - senderUid = value; - return this; - } - - /** - * optional uint32 to_uid = 9; - * @return whether the toUid field is set - */ - public boolean hasToUid() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 to_uid = 9; + * optional uint32 to_uid = 8; * @return this */ public GetPrivateChatHistoryScRsp clearToUid() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; toUid = 0; return this; } /** - * optional uint32 to_uid = 9; + * optional uint32 to_uid = 8; * @return the toUid */ public int getToUid() { @@ -113,36 +76,36 @@ public final class GetPrivateChatHistoryScRspOuterClass { } /** - * optional uint32 to_uid = 9; + * optional uint32 to_uid = 8; * @param value the toUid to set * @return this */ public GetPrivateChatHistoryScRsp setToUid(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; toUid = value; return this; } /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 10; * @return whether the retcode field is set */ public boolean hasRetcode() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 10; * @return this */ public GetPrivateChatHistoryScRsp clearRetcode() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; retcode = 0; return this; } /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 10; * @return the retcode */ public int getRetcode() { @@ -150,18 +113,55 @@ public final class GetPrivateChatHistoryScRspOuterClass { } /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 10; * @param value the retcode to set * @return this */ public GetPrivateChatHistoryScRsp setRetcode(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; retcode = value; return this; } /** - * repeated .Chat chat_list = 3; + * optional uint32 sender_uid = 13; + * @return whether the senderUid field is set + */ + public boolean hasSenderUid() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 sender_uid = 13; + * @return this + */ + public GetPrivateChatHistoryScRsp clearSenderUid() { + bitField0_ &= ~0x00000004; + senderUid = 0; + return this; + } + + /** + * optional uint32 sender_uid = 13; + * @return the senderUid + */ + public int getSenderUid() { + return senderUid; + } + + /** + * optional uint32 sender_uid = 13; + * @param value the senderUid to set + * @return this + */ + public GetPrivateChatHistoryScRsp setSenderUid(final int value) { + bitField0_ |= 0x00000004; + senderUid = value; + return this; + } + + /** + * repeated .Chat chat_list = 5; * @return whether the chatList field is set */ public boolean hasChatList() { @@ -169,7 +169,7 @@ public final class GetPrivateChatHistoryScRspOuterClass { } /** - * repeated .Chat chat_list = 3; + * repeated .Chat chat_list = 5; * @return this */ public GetPrivateChatHistoryScRsp clearChatList() { @@ -179,7 +179,7 @@ public final class GetPrivateChatHistoryScRspOuterClass { } /** - * repeated .Chat chat_list = 3; + * repeated .Chat chat_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. @@ -193,7 +193,7 @@ public final class GetPrivateChatHistoryScRspOuterClass { } /** - * repeated .Chat chat_list = 3; + * repeated .Chat chat_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 @@ -207,7 +207,7 @@ public final class GetPrivateChatHistoryScRspOuterClass { } /** - * repeated .Chat chat_list = 3; + * repeated .Chat chat_list = 5; * @param value the chatList to add * @return this */ @@ -218,7 +218,7 @@ public final class GetPrivateChatHistoryScRspOuterClass { } /** - * repeated .Chat chat_list = 3; + * repeated .Chat chat_list = 5; * @param values the chatList to add * @return this */ @@ -233,9 +233,9 @@ public final class GetPrivateChatHistoryScRspOuterClass { 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 final class GetPrivateChatHistoryScRspOuterClass { 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 final class GetPrivateChatHistoryScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - senderUid = 0; toUid = 0; retcode = 0; + senderUid = 0; chatList.clear(); return this; } @@ -297,29 +297,29 @@ public final class GetPrivateChatHistoryScRspOuterClass { } 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) 32); - output.writeUInt32NoTag(senderUid); + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(toUid); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 72); - output.writeUInt32NoTag(toUid); + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000004) != 0) { output.writeRawByte((byte) 104); - output.writeUInt32NoTag(retcode); + output.writeUInt32NoTag(senderUid); } if ((bitField0_ & 0x00000008) != 0) { for (int i = 0; i < chatList.length(); i++) { - output.writeRawByte((byte) 26); + output.writeRawByte((byte) 42); output.writeMessageNoTag(chatList.get(i)); } } @@ -329,14 +329,14 @@ public final class GetPrivateChatHistoryScRspOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(senderUid); - } - if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(toUid); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(senderUid); + } if ((bitField0_ & 0x00000008) != 0) { size += (1 * chatList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(chatList); } @@ -350,18 +350,18 @@ public final class GetPrivateChatHistoryScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 32: { - // senderUid - senderUid = input.readUInt32(); + case 64: { + // toUid + toUid = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 72) { + if (tag != 80) { break; } } - case 72: { - // toUid - toUid = input.readUInt32(); + case 80: { + // retcode + retcode = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 104) { @@ -369,15 +369,15 @@ public final class GetPrivateChatHistoryScRspOuterClass { } } case 104: { - // retcode - retcode = input.readUInt32(); + // senderUid + senderUid = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 26) { + if (tag != 42) { break; } } - case 26: { + case 42: { // chatList tag = input.readRepeatedMessage(chatList, tag); bitField0_ |= 0x00000008; @@ -403,14 +403,14 @@ public final class GetPrivateChatHistoryScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.senderUid, senderUid); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.toUid, toUid); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.retcode, retcode); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.senderUid, senderUid); + } if ((bitField0_ & 0x00000008) != 0) { output.writeRepeatedMessage(FieldNames.chatList, chatList); } @@ -424,24 +424,12 @@ public final class GetPrivateChatHistoryScRspOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 32180699: - case 997911366: { - if (input.isAtField(FieldNames.senderUid)) { - if (!input.trySkipNullValue()) { - senderUid = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } case 110520277: case -868529012: { if (input.isAtField(FieldNames.toUid)) { if (!input.trySkipNullValue()) { toUid = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } else { input.skipUnknownField(); @@ -452,6 +440,18 @@ public final class GetPrivateChatHistoryScRspOuterClass { if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { retcode = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 32180699: + case 997911366: { + if (input.isAtField(FieldNames.senderUid)) { + if (!input.trySkipNullValue()) { + senderUid = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -524,12 +524,12 @@ public final class GetPrivateChatHistoryScRspOuterClass { * 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/GetQuestDataScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetQuestDataScRspOuterClass.java index 45e4b68..6af7e8c 100644 --- a/src/generated/main/emu/lunarcore/proto/GetQuestDataScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetQuestDataScRspOuterClass.java @@ -20,17 +20,17 @@ public final class GetQuestDataScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 total_achievement_exp = 1; + * optional uint32 total_achievement_exp = 3; */ private int totalAchievementExp; /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 13; */ private int retcode; /** - * repeated .Quest quest_list = 10; + * repeated .Quest quest_list = 12; */ private final RepeatedMessage questList = RepeatedMessage.newEmptyInstance(QuestOuterClass.Quest.getFactory()); @@ -45,7 +45,7 @@ public final class GetQuestDataScRspOuterClass { } /** - * optional uint32 total_achievement_exp = 1; + * optional uint32 total_achievement_exp = 3; * @return whether the totalAchievementExp field is set */ public boolean hasTotalAchievementExp() { @@ -53,7 +53,7 @@ public final class GetQuestDataScRspOuterClass { } /** - * optional uint32 total_achievement_exp = 1; + * optional uint32 total_achievement_exp = 3; * @return this */ public GetQuestDataScRsp clearTotalAchievementExp() { @@ -63,7 +63,7 @@ public final class GetQuestDataScRspOuterClass { } /** - * optional uint32 total_achievement_exp = 1; + * optional uint32 total_achievement_exp = 3; * @return the totalAchievementExp */ public int getTotalAchievementExp() { @@ -71,7 +71,7 @@ public final class GetQuestDataScRspOuterClass { } /** - * optional uint32 total_achievement_exp = 1; + * optional uint32 total_achievement_exp = 3; * @param value the totalAchievementExp to set * @return this */ @@ -82,7 +82,7 @@ public final class GetQuestDataScRspOuterClass { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 13; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -90,7 +90,7 @@ public final class GetQuestDataScRspOuterClass { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 13; * @return this */ public GetQuestDataScRsp clearRetcode() { @@ -100,7 +100,7 @@ public final class GetQuestDataScRspOuterClass { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 13; * @return the retcode */ public int getRetcode() { @@ -108,7 +108,7 @@ public final class GetQuestDataScRspOuterClass { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 13; * @param value the retcode to set * @return this */ @@ -119,7 +119,7 @@ public final class GetQuestDataScRspOuterClass { } /** - * repeated .Quest quest_list = 10; + * repeated .Quest quest_list = 12; * @return whether the questList field is set */ public boolean hasQuestList() { @@ -127,7 +127,7 @@ public final class GetQuestDataScRspOuterClass { } /** - * repeated .Quest quest_list = 10; + * repeated .Quest quest_list = 12; * @return this */ public GetQuestDataScRsp clearQuestList() { @@ -137,7 +137,7 @@ public final class GetQuestDataScRspOuterClass { } /** - * repeated .Quest quest_list = 10; + * repeated .Quest quest_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. @@ -151,7 +151,7 @@ public final class GetQuestDataScRspOuterClass { } /** - * repeated .Quest quest_list = 10; + * repeated .Quest quest_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 @@ -165,7 +165,7 @@ public final class GetQuestDataScRspOuterClass { } /** - * repeated .Quest quest_list = 10; + * repeated .Quest quest_list = 12; * @param value the questList to add * @return this */ @@ -176,7 +176,7 @@ public final class GetQuestDataScRspOuterClass { } /** - * repeated .Quest quest_list = 10; + * repeated .Quest quest_list = 12; * @param values the questList to add * @return this */ @@ -258,16 +258,16 @@ public final class GetQuestDataScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); + output.writeRawByte((byte) 24); output.writeUInt32NoTag(totalAchievementExp); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 104); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000004) != 0) { for (int i = 0; i < questList.length(); i++) { - output.writeRawByte((byte) 82); + output.writeRawByte((byte) 98); output.writeMessageNoTag(questList.get(i)); } } @@ -295,25 +295,25 @@ public final class GetQuestDataScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 8: { + case 24: { // totalAchievementExp totalAchievementExp = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 64) { + if (tag != 104) { break; } } - case 64: { + case 104: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 82) { + if (tag != 98) { break; } } - case 82: { + case 98: { // questList tag = input.readRepeatedMessage(questList, tag); bitField0_ |= 0x00000004; diff --git a/src/generated/main/emu/lunarcore/proto/GetRollShopInfoCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetRollShopInfoCsReqOuterClass.java new file mode 100644 index 0000000..75e806d --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/GetRollShopInfoCsReqOuterClass.java @@ -0,0 +1,260 @@ +// 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 GetRollShopInfoCsReqOuterClass { + /** + * Protobuf type {@code GetRollShopInfoCsReq} + */ + public static final class GetRollShopInfoCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 roll_shop_id = 8; + */ + private int rollShopId; + + private GetRollShopInfoCsReq() { + } + + /** + * @return a new empty instance of {@code GetRollShopInfoCsReq} + */ + public static GetRollShopInfoCsReq newInstance() { + return new GetRollShopInfoCsReq(); + } + + /** + * optional uint32 roll_shop_id = 8; + * @return whether the rollShopId field is set + */ + public boolean hasRollShopId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 roll_shop_id = 8; + * @return this + */ + public GetRollShopInfoCsReq clearRollShopId() { + bitField0_ &= ~0x00000001; + rollShopId = 0; + return this; + } + + /** + * optional uint32 roll_shop_id = 8; + * @return the rollShopId + */ + public int getRollShopId() { + return rollShopId; + } + + /** + * optional uint32 roll_shop_id = 8; + * @param value the rollShopId to set + * @return this + */ + public GetRollShopInfoCsReq setRollShopId(final int value) { + bitField0_ |= 0x00000001; + rollShopId = value; + return this; + } + + @Override + public GetRollShopInfoCsReq copyFrom(final GetRollShopInfoCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + rollShopId = other.rollShopId; + } + return this; + } + + @Override + public GetRollShopInfoCsReq mergeFrom(final GetRollShopInfoCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRollShopId()) { + setRollShopId(other.rollShopId); + } + return this; + } + + @Override + public GetRollShopInfoCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + rollShopId = 0; + return this; + } + + @Override + public GetRollShopInfoCsReq 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 GetRollShopInfoCsReq)) { + return false; + } + GetRollShopInfoCsReq other = (GetRollShopInfoCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasRollShopId() || rollShopId == other.rollShopId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(rollShopId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(rollShopId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GetRollShopInfoCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 64: { + // rollShopId + rollShopId = input.readUInt32(); + bitField0_ |= 0x00000001; + 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.rollShopId, rollShopId); + } + output.endObject(); + } + + @Override + public GetRollShopInfoCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -904898162: + case -1612413630: { + if (input.isAtField(FieldNames.rollShopId)) { + if (!input.trySkipNullValue()) { + rollShopId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GetRollShopInfoCsReq clone() { + return new GetRollShopInfoCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GetRollShopInfoCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GetRollShopInfoCsReq(), data).checkInitialized(); + } + + public static GetRollShopInfoCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetRollShopInfoCsReq(), input).checkInitialized(); + } + + public static GetRollShopInfoCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetRollShopInfoCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating GetRollShopInfoCsReq messages + */ + public static MessageFactory getFactory() { + return GetRollShopInfoCsReqFactory.INSTANCE; + } + + private enum GetRollShopInfoCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public GetRollShopInfoCsReq create() { + return GetRollShopInfoCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName rollShopId = FieldName.forField("rollShopId", "roll_shop_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/GetRollShopInfoScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetRollShopInfoScRspOuterClass.java new file mode 100644 index 0000000..4aa453c --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/GetRollShopInfoScRspOuterClass.java @@ -0,0 +1,541 @@ +// 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 GetRollShopInfoScRspOuterClass { + /** + * Protobuf type {@code GetRollShopInfoScRsp} + */ + public static final class GetRollShopInfoScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 BBJIJINJAFK = 4; + */ + private int bBJIJINJAFK; + + /** + * optional uint32 retcode = 5; + */ + private int retcode; + + /** + * optional uint32 roll_shop_id = 15; + */ + private int rollShopId; + + /** + * repeated uint32 DLPBJMPECFC = 8; + */ + private final RepeatedInt dLPBJMPECFC = RepeatedInt.newEmptyInstance(); + + private GetRollShopInfoScRsp() { + } + + /** + * @return a new empty instance of {@code GetRollShopInfoScRsp} + */ + public static GetRollShopInfoScRsp newInstance() { + return new GetRollShopInfoScRsp(); + } + + /** + * optional uint32 BBJIJINJAFK = 4; + * @return whether the bBJIJINJAFK field is set + */ + public boolean hasBBJIJINJAFK() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 BBJIJINJAFK = 4; + * @return this + */ + public GetRollShopInfoScRsp clearBBJIJINJAFK() { + bitField0_ &= ~0x00000001; + bBJIJINJAFK = 0; + return this; + } + + /** + * optional uint32 BBJIJINJAFK = 4; + * @return the bBJIJINJAFK + */ + public int getBBJIJINJAFK() { + return bBJIJINJAFK; + } + + /** + * optional uint32 BBJIJINJAFK = 4; + * @param value the bBJIJINJAFK to set + * @return this + */ + public GetRollShopInfoScRsp setBBJIJINJAFK(final int value) { + bitField0_ |= 0x00000001; + bBJIJINJAFK = value; + return this; + } + + /** + * optional uint32 retcode = 5; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 retcode = 5; + * @return this + */ + public GetRollShopInfoScRsp clearRetcode() { + bitField0_ &= ~0x00000002; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 5; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 5; + * @param value the retcode to set + * @return this + */ + public GetRollShopInfoScRsp setRetcode(final int value) { + bitField0_ |= 0x00000002; + retcode = value; + return this; + } + + /** + * optional uint32 roll_shop_id = 15; + * @return whether the rollShopId field is set + */ + public boolean hasRollShopId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 roll_shop_id = 15; + * @return this + */ + public GetRollShopInfoScRsp clearRollShopId() { + bitField0_ &= ~0x00000004; + rollShopId = 0; + return this; + } + + /** + * optional uint32 roll_shop_id = 15; + * @return the rollShopId + */ + public int getRollShopId() { + return rollShopId; + } + + /** + * optional uint32 roll_shop_id = 15; + * @param value the rollShopId to set + * @return this + */ + public GetRollShopInfoScRsp setRollShopId(final int value) { + bitField0_ |= 0x00000004; + rollShopId = value; + return this; + } + + /** + * repeated uint32 DLPBJMPECFC = 8; + * @return whether the dLPBJMPECFC field is set + */ + public boolean hasDLPBJMPECFC() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated uint32 DLPBJMPECFC = 8; + * @return this + */ + public GetRollShopInfoScRsp clearDLPBJMPECFC() { + bitField0_ &= ~0x00000008; + dLPBJMPECFC.clear(); + return this; + } + + /** + * repeated uint32 DLPBJMPECFC = 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 #getMutableDLPBJMPECFC()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getDLPBJMPECFC() { + return dLPBJMPECFC; + } + + /** + * repeated uint32 DLPBJMPECFC = 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 + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedInt getMutableDLPBJMPECFC() { + bitField0_ |= 0x00000008; + return dLPBJMPECFC; + } + + /** + * repeated uint32 DLPBJMPECFC = 8; + * @param value the dLPBJMPECFC to add + * @return this + */ + public GetRollShopInfoScRsp addDLPBJMPECFC(final int value) { + bitField0_ |= 0x00000008; + dLPBJMPECFC.add(value); + return this; + } + + /** + * repeated uint32 DLPBJMPECFC = 8; + * @param values the dLPBJMPECFC to add + * @return this + */ + public GetRollShopInfoScRsp addAllDLPBJMPECFC(final int... values) { + bitField0_ |= 0x00000008; + dLPBJMPECFC.addAll(values); + return this; + } + + @Override + public GetRollShopInfoScRsp copyFrom(final GetRollShopInfoScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + bBJIJINJAFK = other.bBJIJINJAFK; + retcode = other.retcode; + rollShopId = other.rollShopId; + dLPBJMPECFC.copyFrom(other.dLPBJMPECFC); + } + return this; + } + + @Override + public GetRollShopInfoScRsp mergeFrom(final GetRollShopInfoScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasBBJIJINJAFK()) { + setBBJIJINJAFK(other.bBJIJINJAFK); + } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasRollShopId()) { + setRollShopId(other.rollShopId); + } + if (other.hasDLPBJMPECFC()) { + getMutableDLPBJMPECFC().addAll(other.dLPBJMPECFC); + } + return this; + } + + @Override + public GetRollShopInfoScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + bBJIJINJAFK = 0; + retcode = 0; + rollShopId = 0; + dLPBJMPECFC.clear(); + return this; + } + + @Override + public GetRollShopInfoScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + dLPBJMPECFC.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof GetRollShopInfoScRsp)) { + return false; + } + GetRollShopInfoScRsp other = (GetRollShopInfoScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasBBJIJINJAFK() || bBJIJINJAFK == other.bBJIJINJAFK) + && (!hasRetcode() || retcode == other.retcode) + && (!hasRollShopId() || rollShopId == other.rollShopId) + && (!hasDLPBJMPECFC() || dLPBJMPECFC.equals(other.dLPBJMPECFC)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(bBJIJINJAFK); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(rollShopId); + } + if ((bitField0_ & 0x00000008) != 0) { + for (int i = 0; i < dLPBJMPECFC.length(); i++) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(dLPBJMPECFC.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(bBJIJINJAFK); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(rollShopId); + } + if ((bitField0_ & 0x00000008) != 0) { + size += (1 * dLPBJMPECFC.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(dLPBJMPECFC); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GetRollShopInfoScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 32: { + // bBJIJINJAFK + bBJIJINJAFK = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // rollShopId + rollShopId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 66) { + break; + } + } + case 66: { + // dLPBJMPECFC [packed=true] + input.readPackedUInt32(dLPBJMPECFC, tag); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 64: { + // dLPBJMPECFC [packed=false] + tag = input.readRepeatedUInt32(dLPBJMPECFC, tag); + bitField0_ |= 0x00000008; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.bBJIJINJAFK, bBJIJINJAFK); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.rollShopId, rollShopId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedUInt32(FieldNames.dLPBJMPECFC, dLPBJMPECFC); + } + output.endObject(); + } + + @Override + public GetRollShopInfoScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1536175796: { + if (input.isAtField(FieldNames.bBJIJINJAFK)) { + if (!input.trySkipNullValue()) { + bBJIJINJAFK = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -904898162: + case -1612413630: { + if (input.isAtField(FieldNames.rollShopId)) { + if (!input.trySkipNullValue()) { + rollShopId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 41374990: { + if (input.isAtField(FieldNames.dLPBJMPECFC)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(dLPBJMPECFC); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GetRollShopInfoScRsp clone() { + return new GetRollShopInfoScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GetRollShopInfoScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GetRollShopInfoScRsp(), data).checkInitialized(); + } + + public static GetRollShopInfoScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetRollShopInfoScRsp(), input).checkInitialized(); + } + + public static GetRollShopInfoScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetRollShopInfoScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating GetRollShopInfoScRsp messages + */ + public static MessageFactory getFactory() { + return GetRollShopInfoScRspFactory.INSTANCE; + } + + private enum GetRollShopInfoScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public GetRollShopInfoScRsp create() { + return GetRollShopInfoScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName bBJIJINJAFK = FieldName.forField("BBJIJINJAFK"); + + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName rollShopId = FieldName.forField("rollShopId", "roll_shop_id"); + + static final FieldName dLPBJMPECFC = FieldName.forField("DLPBJMPECFC"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/GetSceneMapInfoCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetSceneMapInfoCsReqOuterClass.java index 3ee0f98..891e6e0 100644 --- a/src/generated/main/emu/lunarcore/proto/GetSceneMapInfoCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetSceneMapInfoCsReqOuterClass.java @@ -20,12 +20,12 @@ public final class GetSceneMapInfoCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 entry_id = 11; + * optional uint32 entry_id = 15; */ private int entryId; /** - * repeated uint32 entry_id_list = 3; + * repeated uint32 entry_id_list = 8; */ private final RepeatedInt entryIdList = RepeatedInt.newEmptyInstance(); @@ -40,7 +40,7 @@ public final class GetSceneMapInfoCsReqOuterClass { } /** - * optional uint32 entry_id = 11; + * optional uint32 entry_id = 15; * @return whether the entryId field is set */ public boolean hasEntryId() { @@ -48,7 +48,7 @@ public final class GetSceneMapInfoCsReqOuterClass { } /** - * optional uint32 entry_id = 11; + * optional uint32 entry_id = 15; * @return this */ public GetSceneMapInfoCsReq clearEntryId() { @@ -58,7 +58,7 @@ public final class GetSceneMapInfoCsReqOuterClass { } /** - * optional uint32 entry_id = 11; + * optional uint32 entry_id = 15; * @return the entryId */ public int getEntryId() { @@ -66,7 +66,7 @@ public final class GetSceneMapInfoCsReqOuterClass { } /** - * optional uint32 entry_id = 11; + * optional uint32 entry_id = 15; * @param value the entryId to set * @return this */ @@ -77,7 +77,7 @@ public final class GetSceneMapInfoCsReqOuterClass { } /** - * repeated uint32 entry_id_list = 3; + * repeated uint32 entry_id_list = 8; * @return whether the entryIdList field is set */ public boolean hasEntryIdList() { @@ -85,7 +85,7 @@ public final class GetSceneMapInfoCsReqOuterClass { } /** - * repeated uint32 entry_id_list = 3; + * repeated uint32 entry_id_list = 8; * @return this */ public GetSceneMapInfoCsReq clearEntryIdList() { @@ -95,7 +95,7 @@ public final class GetSceneMapInfoCsReqOuterClass { } /** - * repeated uint32 entry_id_list = 3; + * repeated uint32 entry_id_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 final class GetSceneMapInfoCsReqOuterClass { } /** - * repeated uint32 entry_id_list = 3; + * repeated uint32 entry_id_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 final class GetSceneMapInfoCsReqOuterClass { } /** - * repeated uint32 entry_id_list = 3; + * repeated uint32 entry_id_list = 8; * @param value the entryIdList to add * @return this */ @@ -134,7 +134,7 @@ public final class GetSceneMapInfoCsReqOuterClass { } /** - * repeated uint32 entry_id_list = 3; + * repeated uint32 entry_id_list = 8; * @param values the entryIdList to add * @return this */ @@ -210,12 +210,12 @@ public final class GetSceneMapInfoCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 120); output.writeUInt32NoTag(entryId); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < entryIdList.length(); i++) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 64); output.writeUInt32NoTag(entryIdList.array()[i]); } } @@ -240,16 +240,16 @@ public final class GetSceneMapInfoCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 88: { + case 120: { // entryId entryId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 26) { + if (tag != 66) { break; } } - case 26: { + case 66: { // entryIdList [packed=true] input.readPackedUInt32(entryIdList, tag); bitField0_ |= 0x00000002; @@ -268,7 +268,7 @@ public final class GetSceneMapInfoCsReqOuterClass { tag = input.readTag(); break; } - case 24: { + case 64: { // 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 3217a76..883787d 100644 --- a/src/generated/main/emu/lunarcore/proto/GetSceneMapInfoScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetSceneMapInfoScRspOuterClass.java @@ -20,51 +20,51 @@ public final class GetSceneMapInfoScRspOuterClass { public static final class GetSceneMapInfoScRsp extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; - /** - * optional uint32 cur_map_entry_id = 3; - */ - private int curMapEntryId; - /** * optional uint32 retcode = 8; */ private int retcode; /** - * optional uint32 entry_id = 11; + * optional uint32 cur_map_entry_id = 9; + */ + private int curMapEntryId; + + /** + * optional uint32 entry_id = 10; */ private int entryId; /** - * repeated uint32 lighten_section_list = 7; + * repeated uint32 lighten_section_list = 4; */ private final RepeatedInt lightenSectionList = RepeatedInt.newEmptyInstance(); /** - * repeated uint32 unlocked_teleport_list = 15; + * repeated uint32 unlocked_teleport_list = 13; */ private final RepeatedInt unlockedTeleportList = RepeatedInt.newEmptyInstance(); /** - * repeated .MazeChest unlocked_chest_list = 1; - */ - private final RepeatedMessage unlockedChestList = RepeatedMessage.newEmptyInstance(MazeChestOuterClass.MazeChest.getFactory()); - - /** - * repeated .MazeGroup maze_group_list = 4; - */ - private final RepeatedMessage mazeGroupList = RepeatedMessage.newEmptyInstance(MazeGroupOuterClass.MazeGroup.getFactory()); - - /** - * repeated .MazeProp maze_prop_list = 6; + * repeated .MazeProp maze_prop_list = 7; */ private final RepeatedMessage mazePropList = RepeatedMessage.newEmptyInstance(MazePropOuterClass.MazeProp.getFactory()); /** - * repeated .MazeMapData map_list = 10; + * repeated .MazeChest unlocked_chest_list = 12; + */ + private final RepeatedMessage unlockedChestList = RepeatedMessage.newEmptyInstance(MazeChestOuterClass.MazeChest.getFactory()); + + /** + * repeated .MazeMapData map_list = 14; */ private final RepeatedMessage mapList = RepeatedMessage.newEmptyInstance(MazeMapDataOuterClass.MazeMapData.getFactory()); + /** + * repeated .MazeGroup maze_group_list = 15; + */ + private final RepeatedMessage mazeGroupList = RepeatedMessage.newEmptyInstance(MazeGroupOuterClass.MazeGroup.getFactory()); + private GetSceneMapInfoScRsp() { } @@ -75,49 +75,12 @@ public final class GetSceneMapInfoScRspOuterClass { return new GetSceneMapInfoScRsp(); } - /** - * optional uint32 cur_map_entry_id = 3; - * @return whether the curMapEntryId field is set - */ - public boolean hasCurMapEntryId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 cur_map_entry_id = 3; - * @return this - */ - public GetSceneMapInfoScRsp clearCurMapEntryId() { - bitField0_ &= ~0x00000001; - curMapEntryId = 0; - return this; - } - - /** - * optional uint32 cur_map_entry_id = 3; - * @return the curMapEntryId - */ - public int getCurMapEntryId() { - return curMapEntryId; - } - - /** - * optional uint32 cur_map_entry_id = 3; - * @param value the curMapEntryId to set - * @return this - */ - public GetSceneMapInfoScRsp setCurMapEntryId(final int value) { - bitField0_ |= 0x00000001; - curMapEntryId = value; - return this; - } - /** * optional uint32 retcode = 8; * @return whether the retcode field is set */ public boolean hasRetcode() { - return (bitField0_ & 0x00000002) != 0; + return (bitField0_ & 0x00000001) != 0; } /** @@ -125,7 +88,7 @@ public final class GetSceneMapInfoScRspOuterClass { * @return this */ public GetSceneMapInfoScRsp clearRetcode() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; retcode = 0; return this; } @@ -144,13 +107,50 @@ public final class GetSceneMapInfoScRspOuterClass { * @return this */ public GetSceneMapInfoScRsp setRetcode(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; retcode = value; return this; } /** - * optional uint32 entry_id = 11; + * optional uint32 cur_map_entry_id = 9; + * @return whether the curMapEntryId field is set + */ + public boolean hasCurMapEntryId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 cur_map_entry_id = 9; + * @return this + */ + public GetSceneMapInfoScRsp clearCurMapEntryId() { + bitField0_ &= ~0x00000002; + curMapEntryId = 0; + return this; + } + + /** + * optional uint32 cur_map_entry_id = 9; + * @return the curMapEntryId + */ + public int getCurMapEntryId() { + return curMapEntryId; + } + + /** + * optional uint32 cur_map_entry_id = 9; + * @param value the curMapEntryId to set + * @return this + */ + public GetSceneMapInfoScRsp setCurMapEntryId(final int value) { + bitField0_ |= 0x00000002; + curMapEntryId = value; + return this; + } + + /** + * optional uint32 entry_id = 10; * @return whether the entryId field is set */ public boolean hasEntryId() { @@ -158,7 +158,7 @@ public final class GetSceneMapInfoScRspOuterClass { } /** - * optional uint32 entry_id = 11; + * optional uint32 entry_id = 10; * @return this */ public GetSceneMapInfoScRsp clearEntryId() { @@ -168,7 +168,7 @@ public final class GetSceneMapInfoScRspOuterClass { } /** - * optional uint32 entry_id = 11; + * optional uint32 entry_id = 10; * @return the entryId */ public int getEntryId() { @@ -176,7 +176,7 @@ public final class GetSceneMapInfoScRspOuterClass { } /** - * optional uint32 entry_id = 11; + * optional uint32 entry_id = 10; * @param value the entryId to set * @return this */ @@ -187,7 +187,7 @@ public final class GetSceneMapInfoScRspOuterClass { } /** - * repeated uint32 lighten_section_list = 7; + * repeated uint32 lighten_section_list = 4; * @return whether the lightenSectionList field is set */ public boolean hasLightenSectionList() { @@ -195,7 +195,7 @@ public final class GetSceneMapInfoScRspOuterClass { } /** - * repeated uint32 lighten_section_list = 7; + * repeated uint32 lighten_section_list = 4; * @return this */ public GetSceneMapInfoScRsp clearLightenSectionList() { @@ -205,7 +205,7 @@ public final class GetSceneMapInfoScRspOuterClass { } /** - * repeated uint32 lighten_section_list = 7; + * repeated uint32 lighten_section_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. @@ -219,7 +219,7 @@ public final class GetSceneMapInfoScRspOuterClass { } /** - * repeated uint32 lighten_section_list = 7; + * repeated uint32 lighten_section_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 @@ -233,7 +233,7 @@ public final class GetSceneMapInfoScRspOuterClass { } /** - * repeated uint32 lighten_section_list = 7; + * repeated uint32 lighten_section_list = 4; * @param value the lightenSectionList to add * @return this */ @@ -244,7 +244,7 @@ public final class GetSceneMapInfoScRspOuterClass { } /** - * repeated uint32 lighten_section_list = 7; + * repeated uint32 lighten_section_list = 4; * @param values the lightenSectionList to add * @return this */ @@ -255,7 +255,7 @@ public final class GetSceneMapInfoScRspOuterClass { } /** - * repeated uint32 unlocked_teleport_list = 15; + * repeated uint32 unlocked_teleport_list = 13; * @return whether the unlockedTeleportList field is set */ public boolean hasUnlockedTeleportList() { @@ -263,7 +263,7 @@ public final class GetSceneMapInfoScRspOuterClass { } /** - * repeated uint32 unlocked_teleport_list = 15; + * repeated uint32 unlocked_teleport_list = 13; * @return this */ public GetSceneMapInfoScRsp clearUnlockedTeleportList() { @@ -273,7 +273,7 @@ public final class GetSceneMapInfoScRspOuterClass { } /** - * repeated uint32 unlocked_teleport_list = 15; + * repeated uint32 unlocked_teleport_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. @@ -287,7 +287,7 @@ public final class GetSceneMapInfoScRspOuterClass { } /** - * repeated uint32 unlocked_teleport_list = 15; + * repeated uint32 unlocked_teleport_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 @@ -301,7 +301,7 @@ public final class GetSceneMapInfoScRspOuterClass { } /** - * repeated uint32 unlocked_teleport_list = 15; + * repeated uint32 unlocked_teleport_list = 13; * @param value the unlockedTeleportList to add * @return this */ @@ -312,7 +312,7 @@ public final class GetSceneMapInfoScRspOuterClass { } /** - * repeated uint32 unlocked_teleport_list = 15; + * repeated uint32 unlocked_teleport_list = 13; * @param values the unlockedTeleportList to add * @return this */ @@ -323,162 +323,25 @@ public final class GetSceneMapInfoScRspOuterClass { } /** - * repeated .MazeChest unlocked_chest_list = 1; - * @return whether the unlockedChestList field is set + * repeated .MazeProp maze_prop_list = 7; + * @return whether the mazePropList field is set */ - public boolean hasUnlockedChestList() { + public boolean hasMazePropList() { return (bitField0_ & 0x00000020) != 0; } /** - * repeated .MazeChest unlocked_chest_list = 1; - * @return this - */ - public GetSceneMapInfoScRsp clearUnlockedChestList() { - bitField0_ &= ~0x00000020; - unlockedChestList.clear(); - return this; - } - - /** - * 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 #getMutableUnlockedChestList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getUnlockedChestList() { - return unlockedChestList; - } - - /** - * 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 - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableUnlockedChestList() { - bitField0_ |= 0x00000020; - return unlockedChestList; - } - - /** - * repeated .MazeChest unlocked_chest_list = 1; - * @param value the unlockedChestList to add - * @return this - */ - public GetSceneMapInfoScRsp addUnlockedChestList(final MazeChestOuterClass.MazeChest value) { - bitField0_ |= 0x00000020; - unlockedChestList.add(value); - return this; - } - - /** - * repeated .MazeChest unlocked_chest_list = 1; - * @param values the unlockedChestList to add - * @return this - */ - public GetSceneMapInfoScRsp addAllUnlockedChestList( - final MazeChestOuterClass.MazeChest... values) { - bitField0_ |= 0x00000020; - unlockedChestList.addAll(values); - return this; - } - - /** - * repeated .MazeGroup maze_group_list = 4; - * @return whether the mazeGroupList field is set - */ - public boolean hasMazeGroupList() { - return (bitField0_ & 0x00000040) != 0; - } - - /** - * repeated .MazeGroup maze_group_list = 4; - * @return this - */ - public GetSceneMapInfoScRsp clearMazeGroupList() { - bitField0_ &= ~0x00000040; - mazeGroupList.clear(); - return this; - } - - /** - * 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 #getMutableMazeGroupList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getMazeGroupList() { - return mazeGroupList; - } - - /** - * 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 - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableMazeGroupList() { - bitField0_ |= 0x00000040; - return mazeGroupList; - } - - /** - * repeated .MazeGroup maze_group_list = 4; - * @param value the mazeGroupList to add - * @return this - */ - public GetSceneMapInfoScRsp addMazeGroupList(final MazeGroupOuterClass.MazeGroup value) { - bitField0_ |= 0x00000040; - mazeGroupList.add(value); - return this; - } - - /** - * repeated .MazeGroup maze_group_list = 4; - * @param values the mazeGroupList to add - * @return this - */ - public GetSceneMapInfoScRsp addAllMazeGroupList(final MazeGroupOuterClass.MazeGroup... values) { - bitField0_ |= 0x00000040; - mazeGroupList.addAll(values); - return this; - } - - /** - * repeated .MazeProp maze_prop_list = 6; - * @return whether the mazePropList field is set - */ - public boolean hasMazePropList() { - return (bitField0_ & 0x00000080) != 0; - } - - /** - * repeated .MazeProp maze_prop_list = 6; + * repeated .MazeProp maze_prop_list = 7; * @return this */ public GetSceneMapInfoScRsp clearMazePropList() { - bitField0_ &= ~0x00000080; + bitField0_ &= ~0x00000020; mazePropList.clear(); return this; } /** - * repeated .MazeProp maze_prop_list = 6; + * repeated .MazeProp maze_prop_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. @@ -492,7 +355,7 @@ public final class GetSceneMapInfoScRspOuterClass { } /** - * repeated .MazeProp maze_prop_list = 6; + * repeated .MazeProp maze_prop_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 @@ -501,52 +364,121 @@ public final class GetSceneMapInfoScRspOuterClass { * @return internal storage object for modifications */ public RepeatedMessage getMutableMazePropList() { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000020; return mazePropList; } /** - * repeated .MazeProp maze_prop_list = 6; + * repeated .MazeProp maze_prop_list = 7; * @param value the mazePropList to add * @return this */ public GetSceneMapInfoScRsp addMazePropList(final MazePropOuterClass.MazeProp value) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000020; mazePropList.add(value); return this; } /** - * repeated .MazeProp maze_prop_list = 6; + * repeated .MazeProp maze_prop_list = 7; * @param values the mazePropList to add * @return this */ public GetSceneMapInfoScRsp addAllMazePropList(final MazePropOuterClass.MazeProp... values) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000020; mazePropList.addAll(values); return this; } /** - * repeated .MazeMapData map_list = 10; - * @return whether the mapList field is set + * repeated .MazeChest unlocked_chest_list = 12; + * @return whether the unlockedChestList field is set */ - public boolean hasMapList() { - return (bitField0_ & 0x00000100) != 0; + public boolean hasUnlockedChestList() { + return (bitField0_ & 0x00000040) != 0; } /** - * repeated .MazeMapData map_list = 10; + * repeated .MazeChest unlocked_chest_list = 12; + * @return this + */ + public GetSceneMapInfoScRsp clearUnlockedChestList() { + bitField0_ &= ~0x00000040; + unlockedChestList.clear(); + return this; + } + + /** + * repeated .MazeChest unlocked_chest_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. + * + * Use {@link #getMutableUnlockedChestList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getUnlockedChestList() { + return unlockedChestList; + } + + /** + * repeated .MazeChest unlocked_chest_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 + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableUnlockedChestList() { + bitField0_ |= 0x00000040; + return unlockedChestList; + } + + /** + * repeated .MazeChest unlocked_chest_list = 12; + * @param value the unlockedChestList to add + * @return this + */ + public GetSceneMapInfoScRsp addUnlockedChestList(final MazeChestOuterClass.MazeChest value) { + bitField0_ |= 0x00000040; + unlockedChestList.add(value); + return this; + } + + /** + * repeated .MazeChest unlocked_chest_list = 12; + * @param values the unlockedChestList to add + * @return this + */ + public GetSceneMapInfoScRsp addAllUnlockedChestList( + final MazeChestOuterClass.MazeChest... values) { + bitField0_ |= 0x00000040; + unlockedChestList.addAll(values); + return this; + } + + /** + * repeated .MazeMapData map_list = 14; + * @return whether the mapList field is set + */ + public boolean hasMapList() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * repeated .MazeMapData map_list = 14; * @return this */ public GetSceneMapInfoScRsp clearMapList() { - bitField0_ &= ~0x00000100; + bitField0_ &= ~0x00000080; mapList.clear(); return this; } /** - * repeated .MazeMapData map_list = 10; + * repeated .MazeMapData map_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. @@ -560,7 +492,7 @@ public final class GetSceneMapInfoScRspOuterClass { } /** - * repeated .MazeMapData map_list = 10; + * repeated .MazeMapData map_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 @@ -569,46 +501,114 @@ public final class GetSceneMapInfoScRspOuterClass { * @return internal storage object for modifications */ public RepeatedMessage getMutableMapList() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000080; return mapList; } /** - * repeated .MazeMapData map_list = 10; + * repeated .MazeMapData map_list = 14; * @param value the mapList to add * @return this */ public GetSceneMapInfoScRsp addMapList(final MazeMapDataOuterClass.MazeMapData value) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000080; mapList.add(value); return this; } /** - * repeated .MazeMapData map_list = 10; + * repeated .MazeMapData map_list = 14; * @param values the mapList to add * @return this */ public GetSceneMapInfoScRsp addAllMapList(final MazeMapDataOuterClass.MazeMapData... values) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000080; mapList.addAll(values); return this; } + /** + * repeated .MazeGroup maze_group_list = 15; + * @return whether the mazeGroupList field is set + */ + public boolean hasMazeGroupList() { + return (bitField0_ & 0x00000100) != 0; + } + + /** + * repeated .MazeGroup maze_group_list = 15; + * @return this + */ + public GetSceneMapInfoScRsp clearMazeGroupList() { + bitField0_ &= ~0x00000100; + mazeGroupList.clear(); + return this; + } + + /** + * repeated .MazeGroup maze_group_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 #getMutableMazeGroupList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getMazeGroupList() { + return mazeGroupList; + } + + /** + * repeated .MazeGroup maze_group_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 + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableMazeGroupList() { + bitField0_ |= 0x00000100; + return mazeGroupList; + } + + /** + * repeated .MazeGroup maze_group_list = 15; + * @param value the mazeGroupList to add + * @return this + */ + public GetSceneMapInfoScRsp addMazeGroupList(final MazeGroupOuterClass.MazeGroup value) { + bitField0_ |= 0x00000100; + mazeGroupList.add(value); + return this; + } + + /** + * repeated .MazeGroup maze_group_list = 15; + * @param values the mazeGroupList to add + * @return this + */ + public GetSceneMapInfoScRsp addAllMazeGroupList(final MazeGroupOuterClass.MazeGroup... values) { + bitField0_ |= 0x00000100; + mazeGroupList.addAll(values); + return this; + } + @Override public GetSceneMapInfoScRsp copyFrom(final GetSceneMapInfoScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - curMapEntryId = other.curMapEntryId; retcode = other.retcode; + curMapEntryId = other.curMapEntryId; 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); + mazeGroupList.copyFrom(other.mazeGroupList); } return this; } @@ -619,12 +619,12 @@ public final class GetSceneMapInfoScRspOuterClass { return this; } cachedSize = -1; - if (other.hasCurMapEntryId()) { - setCurMapEntryId(other.curMapEntryId); - } if (other.hasRetcode()) { setRetcode(other.retcode); } + if (other.hasCurMapEntryId()) { + setCurMapEntryId(other.curMapEntryId); + } if (other.hasEntryId()) { setEntryId(other.entryId); } @@ -634,18 +634,18 @@ public final class GetSceneMapInfoScRspOuterClass { 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); } + if (other.hasMazeGroupList()) { + getMutableMazeGroupList().addAll(other.mazeGroupList); + } return this; } @@ -656,15 +656,15 @@ public final class GetSceneMapInfoScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - curMapEntryId = 0; retcode = 0; + curMapEntryId = 0; entryId = 0; lightenSectionList.clear(); unlockedTeleportList.clear(); - unlockedChestList.clear(); - mazeGroupList.clear(); mazePropList.clear(); + unlockedChestList.clear(); mapList.clear(); + mazeGroupList.clear(); return this; } @@ -677,10 +677,10 @@ public final class GetSceneMapInfoScRspOuterClass { bitField0_ = 0; lightenSectionList.clear(); unlockedTeleportList.clear(); - unlockedChestList.clearQuick(); - mazeGroupList.clearQuick(); mazePropList.clearQuick(); + unlockedChestList.clearQuick(); mapList.clearQuick(); + mazeGroupList.clearQuick(); return this; } @@ -694,77 +694,77 @@ public final class GetSceneMapInfoScRspOuterClass { } GetSceneMapInfoScRsp other = (GetSceneMapInfoScRsp) o; return bitField0_ == other.bitField0_ - && (!hasCurMapEntryId() || curMapEntryId == other.curMapEntryId) && (!hasRetcode() || retcode == other.retcode) + && (!hasCurMapEntryId() || curMapEntryId == other.curMapEntryId) && (!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)) - && (!hasMapList() || mapList.equals(other.mapList)); + && (!hasUnlockedChestList() || unlockedChestList.equals(other.unlockedChestList)) + && (!hasMapList() || mapList.equals(other.mapList)) + && (!hasMazeGroupList() || mazeGroupList.equals(other.mazeGroupList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(curMapEntryId); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 64); output.writeUInt32NoTag(retcode); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(curMapEntryId); + } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 80); output.writeUInt32NoTag(entryId); } if ((bitField0_ & 0x00000008) != 0) { for (int i = 0; i < lightenSectionList.length(); i++) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(lightenSectionList.array()[i]); } } if ((bitField0_ & 0x00000010) != 0) { for (int i = 0; i < unlockedTeleportList.length(); i++) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 104); output.writeUInt32NoTag(unlockedTeleportList.array()[i]); } } if ((bitField0_ & 0x00000020) != 0) { - for (int i = 0; i < unlockedChestList.length(); i++) { - output.writeRawByte((byte) 10); - output.writeMessageNoTag(unlockedChestList.get(i)); - } - } - if ((bitField0_ & 0x00000040) != 0) { - 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 < mazePropList.length(); i++) { - output.writeRawByte((byte) 50); + output.writeRawByte((byte) 58); output.writeMessageNoTag(mazePropList.get(i)); } } - if ((bitField0_ & 0x00000100) != 0) { + if ((bitField0_ & 0x00000040) != 0) { + for (int i = 0; i < unlockedChestList.length(); i++) { + output.writeRawByte((byte) 98); + output.writeMessageNoTag(unlockedChestList.get(i)); + } + } + if ((bitField0_ & 0x00000080) != 0) { for (int i = 0; i < mapList.length(); i++) { - output.writeRawByte((byte) 82); + output.writeRawByte((byte) 114); output.writeMessageNoTag(mapList.get(i)); } } + if ((bitField0_ & 0x00000100) != 0) { + for (int i = 0; i < mazeGroupList.length(); i++) { + output.writeRawByte((byte) 122); + output.writeMessageNoTag(mazeGroupList.get(i)); + } + } } @Override protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(curMapEntryId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(curMapEntryId); } if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(entryId); @@ -776,17 +776,17 @@ public final class GetSceneMapInfoScRspOuterClass { size += (1 * unlockedTeleportList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(unlockedTeleportList); } if ((bitField0_ & 0x00000020) != 0) { - size += (1 * unlockedChestList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(unlockedChestList); - } - if ((bitField0_ & 0x00000040) != 0) { - size += (1 * mazeGroupList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(mazeGroupList); - } - if ((bitField0_ & 0x00000080) != 0) { size += (1 * mazePropList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(mazePropList); } - if ((bitField0_ & 0x00000100) != 0) { + if ((bitField0_ & 0x00000040) != 0) { + size += (1 * unlockedChestList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(unlockedChestList); + } + if ((bitField0_ & 0x00000080) != 0) { size += (1 * mapList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(mapList); } + if ((bitField0_ & 0x00000100) != 0) { + size += (1 * mazeGroupList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(mazeGroupList); + } return size; } @@ -797,78 +797,78 @@ public final class GetSceneMapInfoScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 24: { - // curMapEntryId - curMapEntryId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 64) { - break; - } - } case 64: { // retcode retcode = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 88) { + if (tag != 72) { break; } } - case 88: { + case 72: { + // curMapEntryId + curMapEntryId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { // entryId entryId = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // lightenSectionList [packed=true] + input.readPackedUInt32(lightenSectionList, tag); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 106) { + break; + } + } + case 106: { + // unlockedTeleportList [packed=true] + input.readPackedUInt32(unlockedTeleportList, tag); + bitField0_ |= 0x00000010; + tag = input.readTag(); if (tag != 58) { break; } } case 58: { - // lightenSectionList [packed=true] - input.readPackedUInt32(lightenSectionList, tag); - bitField0_ |= 0x00000008; - tag = input.readTag(); + // mazePropList + tag = input.readRepeatedMessage(mazePropList, tag); + bitField0_ |= 0x00000020; + if (tag != 98) { + break; + } + } + case 98: { + // unlockedChestList + tag = input.readRepeatedMessage(unlockedChestList, tag); + bitField0_ |= 0x00000040; + if (tag != 114) { + break; + } + } + case 114: { + // mapList + tag = input.readRepeatedMessage(mapList, tag); + bitField0_ |= 0x00000080; if (tag != 122) { break; } } case 122: { - // unlockedTeleportList [packed=true] - input.readPackedUInt32(unlockedTeleportList, tag); - bitField0_ |= 0x00000010; - tag = input.readTag(); - if (tag != 10) { - break; - } - } - case 10: { - // unlockedChestList - tag = input.readRepeatedMessage(unlockedChestList, tag); - bitField0_ |= 0x00000020; - if (tag != 34) { - break; - } - } - case 34: { // mazeGroupList tag = input.readRepeatedMessage(mazeGroupList, tag); - bitField0_ |= 0x00000040; - if (tag != 50) { - break; - } - } - case 50: { - // mazePropList - tag = input.readRepeatedMessage(mazePropList, tag); - bitField0_ |= 0x00000080; - if (tag != 82) { - break; - } - } - case 82: { - // mapList - tag = input.readRepeatedMessage(mapList, tag); bitField0_ |= 0x00000100; if (tag != 0) { break; @@ -884,13 +884,13 @@ public final class GetSceneMapInfoScRspOuterClass { tag = input.readTag(); break; } - case 56: { + case 32: { // lightenSectionList [packed=false] tag = input.readRepeatedUInt32(lightenSectionList, tag); bitField0_ |= 0x00000008; break; } - case 120: { + case 104: { // unlockedTeleportList [packed=false] tag = input.readRepeatedUInt32(unlockedTeleportList, tag); bitField0_ |= 0x00000010; @@ -904,10 +904,10 @@ public final class GetSceneMapInfoScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.curMapEntryId, curMapEntryId); + output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.curMapEntryId, curMapEntryId); } if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.entryId, entryId); @@ -919,17 +919,17 @@ public final class GetSceneMapInfoScRspOuterClass { output.writeRepeatedUInt32(FieldNames.unlockedTeleportList, unlockedTeleportList); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRepeatedMessage(FieldNames.unlockedChestList, unlockedChestList); - } - if ((bitField0_ & 0x00000040) != 0) { - output.writeRepeatedMessage(FieldNames.mazeGroupList, mazeGroupList); - } - if ((bitField0_ & 0x00000080) != 0) { output.writeRepeatedMessage(FieldNames.mazePropList, mazePropList); } - if ((bitField0_ & 0x00000100) != 0) { + if ((bitField0_ & 0x00000040) != 0) { + output.writeRepeatedMessage(FieldNames.unlockedChestList, unlockedChestList); + } + if ((bitField0_ & 0x00000080) != 0) { output.writeRepeatedMessage(FieldNames.mapList, mapList); } + if ((bitField0_ & 0x00000100) != 0) { + output.writeRepeatedMessage(FieldNames.mazeGroupList, mazeGroupList); + } output.endObject(); } @@ -940,11 +940,10 @@ public final class GetSceneMapInfoScRspOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 764919441: - case 2115673898: { - if (input.isAtField(FieldNames.curMapEntryId)) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { - curMapEntryId = input.readUInt32(); + retcode = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -952,10 +951,11 @@ public final class GetSceneMapInfoScRspOuterClass { } break; } - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { + case 764919441: + case 2115673898: { + if (input.isAtField(FieldNames.curMapEntryId)) { if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); + curMapEntryId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -999,11 +999,11 @@ public final class GetSceneMapInfoScRspOuterClass { } 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_ |= 0x00000020; } } else { @@ -1011,11 +1011,11 @@ public final class GetSceneMapInfoScRspOuterClass { } 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_ |= 0x00000040; } } else { @@ -1023,23 +1023,23 @@ public final class GetSceneMapInfoScRspOuterClass { } break; } - case 1676123008: - case 1875839866: { - if (input.isAtField(FieldNames.mazePropList)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(mazePropList); - bitField0_ |= 0x00000080; - } - } else { - input.skipUnknownField(); - } - break; - } case 836484122: case 178830753: { if (input.isAtField(FieldNames.mapList)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(mapList); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + case -317054274: + case 407435998: { + if (input.isAtField(FieldNames.mazeGroupList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(mazeGroupList); bitField0_ |= 0x00000100; } } else { @@ -1100,23 +1100,23 @@ public final class GetSceneMapInfoScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName curMapEntryId = FieldName.forField("curMapEntryId", "cur_map_entry_id"); - static final FieldName retcode = FieldName.forField("retcode"); + static final FieldName curMapEntryId = FieldName.forField("curMapEntryId", "cur_map_entry_id"); + static final FieldName entryId = FieldName.forField("entryId", "entry_id"); static final FieldName lightenSectionList = FieldName.forField("lightenSectionList", "lighten_section_list"); 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"); + + static final FieldName mazeGroupList = FieldName.forField("mazeGroupList", "maze_group_list"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/GetShopListCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetShopListCsReqOuterClass.java index 31cc89d..ad0df6e 100644 --- a/src/generated/main/emu/lunarcore/proto/GetShopListCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetShopListCsReqOuterClass.java @@ -19,7 +19,7 @@ public final class GetShopListCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 shop_type = 1; + * optional uint32 shop_type = 10; */ private int shopType; @@ -34,7 +34,7 @@ public final class GetShopListCsReqOuterClass { } /** - * optional uint32 shop_type = 1; + * optional uint32 shop_type = 10; * @return whether the shopType field is set */ public boolean hasShopType() { @@ -42,7 +42,7 @@ public final class GetShopListCsReqOuterClass { } /** - * optional uint32 shop_type = 1; + * optional uint32 shop_type = 10; * @return this */ public GetShopListCsReq clearShopType() { @@ -52,7 +52,7 @@ public final class GetShopListCsReqOuterClass { } /** - * optional uint32 shop_type = 1; + * optional uint32 shop_type = 10; * @return the shopType */ public int getShopType() { @@ -60,7 +60,7 @@ public final class GetShopListCsReqOuterClass { } /** - * optional uint32 shop_type = 1; + * optional uint32 shop_type = 10; * @param value the shopType to set * @return this */ @@ -129,7 +129,7 @@ public final class GetShopListCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); + output.writeRawByte((byte) 80); output.writeUInt32NoTag(shopType); } } @@ -150,7 +150,7 @@ public final class GetShopListCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 8: { + case 80: { // 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 3eed9f8..ad5a9e3 100644 --- a/src/generated/main/emu/lunarcore/proto/GetShopListScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetShopListScRspOuterClass.java @@ -20,17 +20,17 @@ public final class GetShopListScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 1; - */ - private int retcode; - - /** - * optional uint32 shop_type = 4; + * optional uint32 shop_type = 3; */ private int shopType; /** - * repeated .Shop shop_list = 14; + * optional uint32 retcode = 13; + */ + private int retcode; + + /** + * repeated .Shop shop_list = 8; */ private final RepeatedMessage shopList = RepeatedMessage.newEmptyInstance(ShopOuterClass.Shop.getFactory()); @@ -45,62 +45,25 @@ public final class GetShopListScRspOuterClass { } /** - * optional uint32 retcode = 1; - * @return whether the retcode field is set + * optional uint32 shop_type = 3; + * @return whether the shopType field is set */ - public boolean hasRetcode() { + public boolean hasShopType() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 retcode = 1; - * @return this - */ - public GetShopListScRsp clearRetcode() { - bitField0_ &= ~0x00000001; - retcode = 0; - return this; - } - - /** - * optional uint32 retcode = 1; - * @return the retcode - */ - public int getRetcode() { - return retcode; - } - - /** - * optional uint32 retcode = 1; - * @param value the retcode to set - * @return this - */ - public GetShopListScRsp setRetcode(final int value) { - bitField0_ |= 0x00000001; - retcode = value; - return this; - } - - /** - * optional uint32 shop_type = 4; - * @return whether the shopType field is set - */ - public boolean hasShopType() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 shop_type = 4; + * optional uint32 shop_type = 3; * @return this */ public GetShopListScRsp clearShopType() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; shopType = 0; return this; } /** - * optional uint32 shop_type = 4; + * optional uint32 shop_type = 3; * @return the shopType */ public int getShopType() { @@ -108,18 +71,55 @@ public final class GetShopListScRspOuterClass { } /** - * optional uint32 shop_type = 4; + * optional uint32 shop_type = 3; * @param value the shopType to set * @return this */ public GetShopListScRsp setShopType(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; shopType = value; return this; } /** - * repeated .Shop shop_list = 14; + * optional uint32 retcode = 13; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 retcode = 13; + * @return this + */ + public GetShopListScRsp clearRetcode() { + bitField0_ &= ~0x00000002; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 13; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 13; + * @param value the retcode to set + * @return this + */ + public GetShopListScRsp setRetcode(final int value) { + bitField0_ |= 0x00000002; + retcode = value; + return this; + } + + /** + * repeated .Shop shop_list = 8; * @return whether the shopList field is set */ public boolean hasShopList() { @@ -127,7 +127,7 @@ public final class GetShopListScRspOuterClass { } /** - * repeated .Shop shop_list = 14; + * repeated .Shop shop_list = 8; * @return this */ public GetShopListScRsp clearShopList() { @@ -137,7 +137,7 @@ public final class GetShopListScRspOuterClass { } /** - * repeated .Shop shop_list = 14; + * repeated .Shop shop_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. @@ -151,7 +151,7 @@ public final class GetShopListScRspOuterClass { } /** - * repeated .Shop shop_list = 14; + * repeated .Shop shop_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 @@ -165,7 +165,7 @@ public final class GetShopListScRspOuterClass { } /** - * repeated .Shop shop_list = 14; + * repeated .Shop shop_list = 8; * @param value the shopList to add * @return this */ @@ -176,7 +176,7 @@ public final class GetShopListScRspOuterClass { } /** - * repeated .Shop shop_list = 14; + * repeated .Shop shop_list = 8; * @param values the shopList to add * @return this */ @@ -191,8 +191,8 @@ public final class GetShopListScRspOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - retcode = other.retcode; shopType = other.shopType; + retcode = other.retcode; shopList.copyFrom(other.shopList); } return this; @@ -204,12 +204,12 @@ public final class GetShopListScRspOuterClass { return this; } cachedSize = -1; - if (other.hasRetcode()) { - setRetcode(other.retcode); - } if (other.hasShopType()) { setShopType(other.shopType); } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } if (other.hasShopList()) { getMutableShopList().addAll(other.shopList); } @@ -223,8 +223,8 @@ public final class GetShopListScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - retcode = 0; shopType = 0; + retcode = 0; shopList.clear(); return this; } @@ -250,24 +250,24 @@ public final class GetShopListScRspOuterClass { } GetShopListScRsp other = (GetShopListScRsp) o; return bitField0_ == other.bitField0_ - && (!hasRetcode() || retcode == other.retcode) && (!hasShopType() || shopType == other.shopType) + && (!hasRetcode() || retcode == other.retcode) && (!hasShopList() || shopList.equals(other.shopList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(retcode); + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(shopType); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 32); - output.writeUInt32NoTag(shopType); + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000004) != 0) { for (int i = 0; i < shopList.length(); i++) { - output.writeRawByte((byte) 114); + output.writeRawByte((byte) 66); output.writeMessageNoTag(shopList.get(i)); } } @@ -277,10 +277,10 @@ public final class GetShopListScRspOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(shopType); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(shopType); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000004) != 0) { size += (1 * shopList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(shopList); @@ -295,25 +295,25 @@ public final class GetShopListScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 8: { - // retcode - retcode = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 32) { - break; - } - } - case 32: { + case 24: { // shopType shopType = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 114) { + if (tag != 104) { break; } } - case 114: { + case 104: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 66) { + break; + } + } + case 66: { // shopList tag = input.readRepeatedMessage(shopList, tag); bitField0_ |= 0x00000004; @@ -339,10 +339,10 @@ public final class GetShopListScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.shopType, shopType); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.shopType, shopType); + output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000004) != 0) { output.writeRepeatedMessage(FieldNames.shopList, shopList); @@ -357,10 +357,11 @@ public final class GetShopListScRspOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { + case -345279664: + case -2103716125: { + if (input.isAtField(FieldNames.shopType)) { if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); + shopType = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -368,11 +369,10 @@ public final class GetShopListScRspOuterClass { } break; } - case -345279664: - case -2103716125: { - if (input.isAtField(FieldNames.shopType)) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { - shopType = input.readUInt32(); + retcode = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -445,10 +445,10 @@ public final class GetShopListScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName retcode = FieldName.forField("retcode"); - static final FieldName shopType = FieldName.forField("shopType", "shop_type"); + static final FieldName retcode = FieldName.forField("retcode"); + static final FieldName shopList = FieldName.forField("shopList", "shop_list"); } } diff --git a/src/generated/main/emu/lunarcore/proto/GetUnlockTeleportCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetUnlockTeleportCsReqOuterClass.java index 4b50bbf..bfa4941 100644 --- a/src/generated/main/emu/lunarcore/proto/GetUnlockTeleportCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetUnlockTeleportCsReqOuterClass.java @@ -20,7 +20,7 @@ public final class GetUnlockTeleportCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * repeated uint32 entry_id_list = 6; + * repeated uint32 entry_id_list = 1; */ private final RepeatedInt entryIdList = RepeatedInt.newEmptyInstance(); @@ -35,7 +35,7 @@ public final class GetUnlockTeleportCsReqOuterClass { } /** - * repeated uint32 entry_id_list = 6; + * repeated uint32 entry_id_list = 1; * @return whether the entryIdList field is set */ public boolean hasEntryIdList() { @@ -43,7 +43,7 @@ public final class GetUnlockTeleportCsReqOuterClass { } /** - * repeated uint32 entry_id_list = 6; + * repeated uint32 entry_id_list = 1; * @return this */ public GetUnlockTeleportCsReq clearEntryIdList() { @@ -53,7 +53,7 @@ public final class GetUnlockTeleportCsReqOuterClass { } /** - * repeated uint32 entry_id_list = 6; + * repeated uint32 entry_id_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 final class GetUnlockTeleportCsReqOuterClass { } /** - * repeated uint32 entry_id_list = 6; + * repeated uint32 entry_id_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 final class GetUnlockTeleportCsReqOuterClass { } /** - * repeated uint32 entry_id_list = 6; + * repeated uint32 entry_id_list = 1; * @param value the entryIdList to add * @return this */ @@ -92,7 +92,7 @@ public final class GetUnlockTeleportCsReqOuterClass { } /** - * repeated uint32 entry_id_list = 6; + * repeated uint32 entry_id_list = 1; * @param values the entryIdList to add * @return this */ @@ -163,7 +163,7 @@ public final class GetUnlockTeleportCsReqOuterClass { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { for (int i = 0; i < entryIdList.length(); i++) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 8); output.writeUInt32NoTag(entryIdList.array()[i]); } } @@ -185,7 +185,7 @@ public final class GetUnlockTeleportCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 50: { + case 10: { // entryIdList [packed=true] input.readPackedUInt32(entryIdList, tag); bitField0_ |= 0x00000001; @@ -204,7 +204,7 @@ public final class GetUnlockTeleportCsReqOuterClass { tag = input.readTag(); break; } - case 48: { + case 8: { // 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 2c5e09a..54e00f3 100644 --- a/src/generated/main/emu/lunarcore/proto/GetUnlockTeleportScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetUnlockTeleportScRspOuterClass.java @@ -20,12 +20,12 @@ public final class GetUnlockTeleportScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 6; */ private int retcode; /** - * repeated uint32 unlocked_teleport_list = 5; + * repeated uint32 unlocked_teleport_list = 3; */ private final RepeatedInt unlockedTeleportList = RepeatedInt.newEmptyInstance(); @@ -40,7 +40,7 @@ public final class GetUnlockTeleportScRspOuterClass { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 6; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -48,7 +48,7 @@ public final class GetUnlockTeleportScRspOuterClass { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 6; * @return this */ public GetUnlockTeleportScRsp clearRetcode() { @@ -58,7 +58,7 @@ public final class GetUnlockTeleportScRspOuterClass { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 6; * @return the retcode */ public int getRetcode() { @@ -66,7 +66,7 @@ public final class GetUnlockTeleportScRspOuterClass { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 6; * @param value the retcode to set * @return this */ @@ -77,7 +77,7 @@ public final class GetUnlockTeleportScRspOuterClass { } /** - * repeated uint32 unlocked_teleport_list = 5; + * repeated uint32 unlocked_teleport_list = 3; * @return whether the unlockedTeleportList field is set */ public boolean hasUnlockedTeleportList() { @@ -85,7 +85,7 @@ public final class GetUnlockTeleportScRspOuterClass { } /** - * repeated uint32 unlocked_teleport_list = 5; + * repeated uint32 unlocked_teleport_list = 3; * @return this */ public GetUnlockTeleportScRsp clearUnlockedTeleportList() { @@ -95,7 +95,7 @@ public final class GetUnlockTeleportScRspOuterClass { } /** - * repeated uint32 unlocked_teleport_list = 5; + * repeated uint32 unlocked_teleport_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 final class GetUnlockTeleportScRspOuterClass { } /** - * repeated uint32 unlocked_teleport_list = 5; + * repeated uint32 unlocked_teleport_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 final class GetUnlockTeleportScRspOuterClass { } /** - * repeated uint32 unlocked_teleport_list = 5; + * repeated uint32 unlocked_teleport_list = 3; * @param value the unlockedTeleportList to add * @return this */ @@ -134,7 +134,7 @@ public final class GetUnlockTeleportScRspOuterClass { } /** - * repeated uint32 unlocked_teleport_list = 5; + * repeated uint32 unlocked_teleport_list = 3; * @param values the unlockedTeleportList to add * @return this */ @@ -210,12 +210,12 @@ public final class GetUnlockTeleportScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 48); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < unlockedTeleportList.length(); i++) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 24); output.writeUInt32NoTag(unlockedTeleportList.array()[i]); } } @@ -240,16 +240,16 @@ public final class GetUnlockTeleportScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 120: { + case 48: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 42) { + if (tag != 26) { break; } } - case 42: { + case 26: { // unlockedTeleportList [packed=true] input.readPackedUInt32(unlockedTeleportList, tag); bitField0_ |= 0x00000002; @@ -268,7 +268,7 @@ public final class GetUnlockTeleportScRspOuterClass { tag = input.readTag(); break; } - case 40: { + case 24: { // 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 05e67a1..2fa1970 100644 --- a/src/generated/main/emu/lunarcore/proto/GoodsOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GoodsOuterClass.java @@ -19,30 +19,30 @@ public final class GoodsOuterClass { private static final long serialVersionUID = 0L; /** - * optional int64 end_time = 5; - */ - private long endTime; - - /** - * optional int64 begin_time = 12; + * optional int64 begin_time = 3; */ private long beginTime; /** - * optional uint32 buy_times = 1; + * optional int64 end_time = 13; + */ + private long endTime; + + /** + * optional uint32 goods_id = 4; + */ + private int goodsId; + + /** + * optional uint32 buy_times = 8; */ private int buyTimes; /** - * optional uint32 item_id = 2; + * optional uint32 item_id = 14; */ private int itemId; - /** - * optional uint32 goods_id = 9; - */ - private int goodsId; - private Goods() { } @@ -54,62 +54,25 @@ public final class GoodsOuterClass { } /** - * optional int64 end_time = 5; - * @return whether the endTime field is set + * optional int64 begin_time = 3; + * @return whether the beginTime field is set */ - public boolean hasEndTime() { + public boolean hasBeginTime() { return (bitField0_ & 0x00000001) != 0; } /** - * optional int64 end_time = 5; - * @return this - */ - public Goods clearEndTime() { - bitField0_ &= ~0x00000001; - endTime = 0L; - return this; - } - - /** - * optional int64 end_time = 5; - * @return the endTime - */ - public long getEndTime() { - return endTime; - } - - /** - * optional int64 end_time = 5; - * @param value the endTime to set - * @return this - */ - public Goods setEndTime(final long value) { - bitField0_ |= 0x00000001; - endTime = value; - return this; - } - - /** - * optional int64 begin_time = 12; - * @return whether the beginTime field is set - */ - public boolean hasBeginTime() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional int64 begin_time = 12; + * optional int64 begin_time = 3; * @return this */ public Goods clearBeginTime() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; beginTime = 0L; return this; } /** - * optional int64 begin_time = 12; + * optional int64 begin_time = 3; * @return the beginTime */ public long getBeginTime() { @@ -117,110 +80,73 @@ public final class GoodsOuterClass { } /** - * optional int64 begin_time = 12; + * optional int64 begin_time = 3; * @param value the beginTime to set * @return this */ public Goods setBeginTime(final long value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; beginTime = value; return this; } /** - * optional uint32 buy_times = 1; - * @return whether the buyTimes field is set + * optional int64 end_time = 13; + * @return whether the endTime field is set */ - public boolean hasBuyTimes() { + public boolean hasEndTime() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional int64 end_time = 13; + * @return this + */ + public Goods clearEndTime() { + bitField0_ &= ~0x00000002; + endTime = 0L; + return this; + } + + /** + * optional int64 end_time = 13; + * @return the endTime + */ + public long getEndTime() { + return endTime; + } + + /** + * optional int64 end_time = 13; + * @param value the endTime to set + * @return this + */ + public Goods setEndTime(final long value) { + bitField0_ |= 0x00000002; + endTime = value; + return this; + } + + /** + * optional uint32 goods_id = 4; + * @return whether the goodsId field is set + */ + public boolean hasGoodsId() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 buy_times = 1; - * @return this - */ - public Goods clearBuyTimes() { - bitField0_ &= ~0x00000004; - buyTimes = 0; - return this; - } - - /** - * optional uint32 buy_times = 1; - * @return the buyTimes - */ - public int getBuyTimes() { - return buyTimes; - } - - /** - * optional uint32 buy_times = 1; - * @param value the buyTimes to set - * @return this - */ - public Goods setBuyTimes(final int value) { - bitField0_ |= 0x00000004; - buyTimes = value; - return this; - } - - /** - * optional uint32 item_id = 2; - * @return whether the itemId field is set - */ - public boolean hasItemId() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional uint32 item_id = 2; - * @return this - */ - public Goods clearItemId() { - bitField0_ &= ~0x00000008; - itemId = 0; - return this; - } - - /** - * optional uint32 item_id = 2; - * @return the itemId - */ - public int getItemId() { - return itemId; - } - - /** - * optional uint32 item_id = 2; - * @param value the itemId to set - * @return this - */ - public Goods setItemId(final int value) { - bitField0_ |= 0x00000008; - itemId = value; - return this; - } - - /** - * optional uint32 goods_id = 9; - * @return whether the goodsId field is set - */ - public boolean hasGoodsId() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - * optional uint32 goods_id = 9; + * optional uint32 goods_id = 4; * @return this */ public Goods clearGoodsId() { - bitField0_ &= ~0x00000010; + bitField0_ &= ~0x00000004; goodsId = 0; return this; } /** - * optional uint32 goods_id = 9; + * optional uint32 goods_id = 4; * @return the goodsId */ public int getGoodsId() { @@ -228,26 +154,100 @@ public final class GoodsOuterClass { } /** - * optional uint32 goods_id = 9; + * optional uint32 goods_id = 4; * @param value the goodsId to set * @return this */ public Goods setGoodsId(final int value) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000004; goodsId = value; return this; } + /** + * optional uint32 buy_times = 8; + * @return whether the buyTimes field is set + */ + public boolean hasBuyTimes() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 buy_times = 8; + * @return this + */ + public Goods clearBuyTimes() { + bitField0_ &= ~0x00000008; + buyTimes = 0; + return this; + } + + /** + * optional uint32 buy_times = 8; + * @return the buyTimes + */ + public int getBuyTimes() { + return buyTimes; + } + + /** + * optional uint32 buy_times = 8; + * @param value the buyTimes to set + * @return this + */ + public Goods setBuyTimes(final int value) { + bitField0_ |= 0x00000008; + buyTimes = value; + return this; + } + + /** + * optional uint32 item_id = 14; + * @return whether the itemId field is set + */ + public boolean hasItemId() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 item_id = 14; + * @return this + */ + public Goods clearItemId() { + bitField0_ &= ~0x00000010; + itemId = 0; + return this; + } + + /** + * optional uint32 item_id = 14; + * @return the itemId + */ + public int getItemId() { + return itemId; + } + + /** + * optional uint32 item_id = 14; + * @param value the itemId to set + * @return this + */ + public Goods setItemId(final int value) { + bitField0_ |= 0x00000010; + itemId = value; + return this; + } + @Override public Goods copyFrom(final Goods other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - endTime = other.endTime; beginTime = other.beginTime; + endTime = other.endTime; + goodsId = other.goodsId; buyTimes = other.buyTimes; itemId = other.itemId; - goodsId = other.goodsId; } return this; } @@ -258,11 +258,14 @@ public final class GoodsOuterClass { return this; } cachedSize = -1; + if (other.hasBeginTime()) { + setBeginTime(other.beginTime); + } if (other.hasEndTime()) { setEndTime(other.endTime); } - if (other.hasBeginTime()) { - setBeginTime(other.beginTime); + if (other.hasGoodsId()) { + setGoodsId(other.goodsId); } if (other.hasBuyTimes()) { setBuyTimes(other.buyTimes); @@ -270,9 +273,6 @@ public final class GoodsOuterClass { if (other.hasItemId()) { setItemId(other.itemId); } - if (other.hasGoodsId()) { - setGoodsId(other.goodsId); - } return this; } @@ -283,11 +283,11 @@ public final class GoodsOuterClass { } cachedSize = -1; bitField0_ = 0; - endTime = 0L; beginTime = 0L; + endTime = 0L; + goodsId = 0; buyTimes = 0; itemId = 0; - goodsId = 0; return this; } @@ -311,34 +311,34 @@ public final class GoodsOuterClass { } Goods other = (Goods) o; return bitField0_ == other.bitField0_ - && (!hasEndTime() || endTime == other.endTime) && (!hasBeginTime() || beginTime == other.beginTime) + && (!hasEndTime() || endTime == other.endTime) + && (!hasGoodsId() || goodsId == other.goodsId) && (!hasBuyTimes() || buyTimes == other.buyTimes) - && (!hasItemId() || itemId == other.itemId) - && (!hasGoodsId() || goodsId == other.goodsId); + && (!hasItemId() || itemId == other.itemId); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); - output.writeInt64NoTag(endTime); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 24); output.writeInt64NoTag(beginTime); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 104); + output.writeInt64NoTag(endTime); + } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(buyTimes); + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(goodsId); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(itemId); + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(buyTimes); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 72); - output.writeUInt32NoTag(goodsId); + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(itemId); } } @@ -346,19 +346,19 @@ public final class GoodsOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeInt64SizeNoTag(endTime); - } - if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeInt64SizeNoTag(beginTime); } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeInt64SizeNoTag(endTime); + } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(buyTimes); + size += 1 + ProtoSink.computeUInt32SizeNoTag(goodsId); } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(itemId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(buyTimes); } if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(goodsId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(itemId); } return size; } @@ -370,45 +370,45 @@ public final class GoodsOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 40: { - // endTime - endTime = input.readInt64(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 96) { - break; - } - } - case 96: { + case 24: { // beginTime beginTime = input.readInt64(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // endTime + endTime = input.readInt64(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 8) { + if (tag != 32) { break; } } - case 8: { - // buyTimes - buyTimes = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 16) { - break; - } - } - case 16: { - // itemId - itemId = input.readUInt32(); - bitField0_ |= 0x00000008; - tag = input.readTag(); - if (tag != 72) { - break; - } - } - case 72: { + case 32: { // goodsId goodsId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 64) { + break; + } + } + case 64: { + // buyTimes + buyTimes = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // itemId + itemId = input.readUInt32(); bitField0_ |= 0x00000010; tag = input.readTag(); if (tag != 0) { @@ -433,19 +433,19 @@ public final class GoodsOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeInt64(FieldNames.endTime, endTime); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeInt64(FieldNames.beginTime, beginTime); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeInt64(FieldNames.endTime, endTime); + } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.buyTimes, buyTimes); + output.writeUInt32(FieldNames.goodsId, goodsId); } if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.itemId, itemId); + output.writeUInt32(FieldNames.buyTimes, buyTimes); } if ((bitField0_ & 0x00000010) != 0) { - output.writeUInt32(FieldNames.goodsId, goodsId); + output.writeUInt32(FieldNames.itemId, itemId); } output.endObject(); } @@ -457,11 +457,11 @@ public final class GoodsOuterClass { } 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 { @@ -469,11 +469,11 @@ public final class GoodsOuterClass { } 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 { @@ -481,35 +481,35 @@ public final class GoodsOuterClass { } break; } - case -994591648: - case -442602419: { - if (input.isAtField(FieldNames.buyTimes)) { - if (!input.trySkipNullValue()) { - buyTimes = input.readUInt32(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1178662002: - case 2116204999: { - if (input.isAtField(FieldNames.itemId)) { - if (!input.trySkipNullValue()) { - itemId = input.readUInt32(); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } case 207037201: case 2123207332: { if (input.isAtField(FieldNames.goodsId)) { if (!input.trySkipNullValue()) { goodsId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -994591648: + case -442602419: { + if (input.isAtField(FieldNames.buyTimes)) { + if (!input.trySkipNullValue()) { + buyTimes = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1178662002: + case 2116204999: { + if (input.isAtField(FieldNames.itemId)) { + if (!input.trySkipNullValue()) { + itemId = input.readUInt32(); bitField0_ |= 0x00000010; } } else { @@ -569,15 +569,15 @@ public final class GoodsOuterClass { * 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 beginTime = FieldName.forField("beginTime", "begin_time"); + static final FieldName goodsId = FieldName.forField("goodsId", "goods_id"); 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/GroupStateChangeCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/GroupStateChangeCsReqOuterClass.java index dba3509..152f823 100644 --- a/src/generated/main/emu/lunarcore/proto/GroupStateChangeCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GroupStateChangeCsReqOuterClass.java @@ -19,7 +19,7 @@ public final class GroupStateChangeCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional .GroupStateInfo group_state_info = 6; + * optional .GroupStateInfo group_state_info = 8; */ private final GroupStateInfoOuterClass.GroupStateInfo groupStateInfo = GroupStateInfoOuterClass.GroupStateInfo.newInstance(); @@ -34,7 +34,7 @@ public final class GroupStateChangeCsReqOuterClass { } /** - * optional .GroupStateInfo group_state_info = 6; + * optional .GroupStateInfo group_state_info = 8; * @return whether the groupStateInfo field is set */ public boolean hasGroupStateInfo() { @@ -42,7 +42,7 @@ public final class GroupStateChangeCsReqOuterClass { } /** - * optional .GroupStateInfo group_state_info = 6; + * optional .GroupStateInfo group_state_info = 8; * @return this */ public GroupStateChangeCsReq clearGroupStateInfo() { @@ -52,7 +52,7 @@ public final class GroupStateChangeCsReqOuterClass { } /** - * optional .GroupStateInfo group_state_info = 6; + * optional .GroupStateInfo group_state_info = 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 final class GroupStateChangeCsReqOuterClass { } /** - * optional .GroupStateInfo group_state_info = 6; + * optional .GroupStateInfo group_state_info = 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 final class GroupStateChangeCsReqOuterClass { } /** - * optional .GroupStateInfo group_state_info = 6; + * optional .GroupStateInfo group_state_info = 8; * @param value the groupStateInfo to set * @return this */ @@ -151,7 +151,7 @@ public final class GroupStateChangeCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 50); + output.writeRawByte((byte) 66); output.writeMessageNoTag(groupStateInfo); } } @@ -172,7 +172,7 @@ public final class GroupStateChangeCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 50: { + case 66: { // groupStateInfo input.readMessage(groupStateInfo); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/GroupStateChangeScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/GroupStateChangeScNotifyOuterClass.java index bdd29e7..4fd2d70 100644 --- a/src/generated/main/emu/lunarcore/proto/GroupStateChangeScNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GroupStateChangeScNotifyOuterClass.java @@ -19,7 +19,7 @@ public final class GroupStateChangeScNotifyOuterClass { private static final long serialVersionUID = 0L; /** - * optional .GroupStateInfo group_state_info = 8; + * optional .GroupStateInfo group_state_info = 6; */ private final GroupStateInfoOuterClass.GroupStateInfo groupStateInfo = GroupStateInfoOuterClass.GroupStateInfo.newInstance(); @@ -34,7 +34,7 @@ public final class GroupStateChangeScNotifyOuterClass { } /** - * optional .GroupStateInfo group_state_info = 8; + * optional .GroupStateInfo group_state_info = 6; * @return whether the groupStateInfo field is set */ public boolean hasGroupStateInfo() { @@ -42,7 +42,7 @@ public final class GroupStateChangeScNotifyOuterClass { } /** - * optional .GroupStateInfo group_state_info = 8; + * optional .GroupStateInfo group_state_info = 6; * @return this */ public GroupStateChangeScNotify clearGroupStateInfo() { @@ -52,7 +52,7 @@ public final class GroupStateChangeScNotifyOuterClass { } /** - * optional .GroupStateInfo group_state_info = 8; + * optional .GroupStateInfo group_state_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. @@ -66,7 +66,7 @@ public final class GroupStateChangeScNotifyOuterClass { } /** - * optional .GroupStateInfo group_state_info = 8; + * optional .GroupStateInfo group_state_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 @@ -80,7 +80,7 @@ public final class GroupStateChangeScNotifyOuterClass { } /** - * optional .GroupStateInfo group_state_info = 8; + * optional .GroupStateInfo group_state_info = 6; * @param value the groupStateInfo to set * @return this */ @@ -151,7 +151,7 @@ public final class GroupStateChangeScNotifyOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 66); + output.writeRawByte((byte) 50); output.writeMessageNoTag(groupStateInfo); } } @@ -172,7 +172,7 @@ public final class GroupStateChangeScNotifyOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 66: { + case 50: { // groupStateInfo input.readMessage(groupStateInfo); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/GroupStateChangeScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GroupStateChangeScRspOuterClass.java index d6be4f1..9061326 100644 --- a/src/generated/main/emu/lunarcore/proto/GroupStateChangeScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GroupStateChangeScRspOuterClass.java @@ -19,7 +19,7 @@ public final class GroupStateChangeScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 4; + * optional uint32 retcode = 10; */ private int retcode; @@ -39,7 +39,7 @@ public final class GroupStateChangeScRspOuterClass { } /** - * optional uint32 retcode = 4; + * optional uint32 retcode = 10; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -47,7 +47,7 @@ public final class GroupStateChangeScRspOuterClass { } /** - * optional uint32 retcode = 4; + * optional uint32 retcode = 10; * @return this */ public GroupStateChangeScRsp clearRetcode() { @@ -57,7 +57,7 @@ public final class GroupStateChangeScRspOuterClass { } /** - * optional uint32 retcode = 4; + * optional uint32 retcode = 10; * @return the retcode */ public int getRetcode() { @@ -65,7 +65,7 @@ public final class GroupStateChangeScRspOuterClass { } /** - * optional uint32 retcode = 4; + * optional uint32 retcode = 10; * @param value the retcode to set * @return this */ @@ -199,7 +199,7 @@ public final class GroupStateChangeScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 32); + output.writeRawByte((byte) 80); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { @@ -227,7 +227,7 @@ public final class GroupStateChangeScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 32: { + case 80: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/GroupStateInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/GroupStateInfoOuterClass.java index 209a57b..7de7788 100644 --- a/src/generated/main/emu/lunarcore/proto/GroupStateInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GroupStateInfoOuterClass.java @@ -19,22 +19,22 @@ public final class GroupStateInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 FIKOEFBNMHB = 4; - */ - private int fIKOEFBNMHB; - - /** - * optional uint32 entry_id = 5; - */ - private int entryId; - - /** - * optional uint32 group_id = 9; + * optional uint32 group_id = 1; */ private int groupId; /** - * optional uint32 group_state = 15; + * optional uint32 entry_id = 3; + */ + private int entryId; + + /** + * optional uint32 IJMFKKGOPJF = 8; + */ + private int iJMFKKGOPJF; + + /** + * optional uint32 group_state = 14; */ private int groupState; @@ -49,44 +49,44 @@ public final class GroupStateInfoOuterClass { } /** - * optional uint32 FIKOEFBNMHB = 4; - * @return whether the fIKOEFBNMHB field is set + * optional uint32 group_id = 1; + * @return whether the groupId field is set */ - public boolean hasFIKOEFBNMHB() { + public boolean hasGroupId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 FIKOEFBNMHB = 4; + * optional uint32 group_id = 1; * @return this */ - public GroupStateInfo clearFIKOEFBNMHB() { + public GroupStateInfo clearGroupId() { bitField0_ &= ~0x00000001; - fIKOEFBNMHB = 0; + groupId = 0; return this; } /** - * optional uint32 FIKOEFBNMHB = 4; - * @return the fIKOEFBNMHB + * optional uint32 group_id = 1; + * @return the groupId */ - public int getFIKOEFBNMHB() { - return fIKOEFBNMHB; + public int getGroupId() { + return groupId; } /** - * optional uint32 FIKOEFBNMHB = 4; - * @param value the fIKOEFBNMHB to set + * optional uint32 group_id = 1; + * @param value the groupId to set * @return this */ - public GroupStateInfo setFIKOEFBNMHB(final int value) { + public GroupStateInfo setGroupId(final int value) { bitField0_ |= 0x00000001; - fIKOEFBNMHB = value; + groupId = value; return this; } /** - * optional uint32 entry_id = 5; + * optional uint32 entry_id = 3; * @return whether the entryId field is set */ public boolean hasEntryId() { @@ -94,7 +94,7 @@ public final class GroupStateInfoOuterClass { } /** - * optional uint32 entry_id = 5; + * optional uint32 entry_id = 3; * @return this */ public GroupStateInfo clearEntryId() { @@ -104,7 +104,7 @@ public final class GroupStateInfoOuterClass { } /** - * optional uint32 entry_id = 5; + * optional uint32 entry_id = 3; * @return the entryId */ public int getEntryId() { @@ -112,7 +112,7 @@ public final class GroupStateInfoOuterClass { } /** - * optional uint32 entry_id = 5; + * optional uint32 entry_id = 3; * @param value the entryId to set * @return this */ @@ -123,44 +123,44 @@ public final class GroupStateInfoOuterClass { } /** - * optional uint32 group_id = 9; - * @return whether the groupId field is set + * optional uint32 IJMFKKGOPJF = 8; + * @return whether the iJMFKKGOPJF field is set */ - public boolean hasGroupId() { + public boolean hasIJMFKKGOPJF() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 group_id = 9; + * optional uint32 IJMFKKGOPJF = 8; * @return this */ - public GroupStateInfo clearGroupId() { + public GroupStateInfo clearIJMFKKGOPJF() { bitField0_ &= ~0x00000004; - groupId = 0; + iJMFKKGOPJF = 0; return this; } /** - * optional uint32 group_id = 9; - * @return the groupId + * optional uint32 IJMFKKGOPJF = 8; + * @return the iJMFKKGOPJF */ - public int getGroupId() { - return groupId; + public int getIJMFKKGOPJF() { + return iJMFKKGOPJF; } /** - * optional uint32 group_id = 9; - * @param value the groupId to set + * optional uint32 IJMFKKGOPJF = 8; + * @param value the iJMFKKGOPJF to set * @return this */ - public GroupStateInfo setGroupId(final int value) { + public GroupStateInfo setIJMFKKGOPJF(final int value) { bitField0_ |= 0x00000004; - groupId = value; + iJMFKKGOPJF = value; return this; } /** - * optional uint32 group_state = 15; + * optional uint32 group_state = 14; * @return whether the groupState field is set */ public boolean hasGroupState() { @@ -168,7 +168,7 @@ public final class GroupStateInfoOuterClass { } /** - * optional uint32 group_state = 15; + * optional uint32 group_state = 14; * @return this */ public GroupStateInfo clearGroupState() { @@ -178,7 +178,7 @@ public final class GroupStateInfoOuterClass { } /** - * optional uint32 group_state = 15; + * optional uint32 group_state = 14; * @return the groupState */ public int getGroupState() { @@ -186,7 +186,7 @@ public final class GroupStateInfoOuterClass { } /** - * optional uint32 group_state = 15; + * optional uint32 group_state = 14; * @param value the groupState to set * @return this */ @@ -201,9 +201,9 @@ public final class GroupStateInfoOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - fIKOEFBNMHB = other.fIKOEFBNMHB; - entryId = other.entryId; groupId = other.groupId; + entryId = other.entryId; + iJMFKKGOPJF = other.iJMFKKGOPJF; groupState = other.groupState; } return this; @@ -215,14 +215,14 @@ public final class GroupStateInfoOuterClass { return this; } cachedSize = -1; - if (other.hasFIKOEFBNMHB()) { - setFIKOEFBNMHB(other.fIKOEFBNMHB); + if (other.hasGroupId()) { + setGroupId(other.groupId); } if (other.hasEntryId()) { setEntryId(other.entryId); } - if (other.hasGroupId()) { - setGroupId(other.groupId); + if (other.hasIJMFKKGOPJF()) { + setIJMFKKGOPJF(other.iJMFKKGOPJF); } if (other.hasGroupState()) { setGroupState(other.groupState); @@ -237,9 +237,9 @@ public final class GroupStateInfoOuterClass { } cachedSize = -1; bitField0_ = 0; - fIKOEFBNMHB = 0; - entryId = 0; groupId = 0; + entryId = 0; + iJMFKKGOPJF = 0; groupState = 0; return this; } @@ -264,28 +264,28 @@ public final class GroupStateInfoOuterClass { } GroupStateInfo other = (GroupStateInfo) o; return bitField0_ == other.bitField0_ - && (!hasFIKOEFBNMHB() || fIKOEFBNMHB == other.fIKOEFBNMHB) - && (!hasEntryId() || entryId == other.entryId) && (!hasGroupId() || groupId == other.groupId) + && (!hasEntryId() || entryId == other.entryId) + && (!hasIJMFKKGOPJF() || iJMFKKGOPJF == other.iJMFKKGOPJF) && (!hasGroupState() || groupState == other.groupState); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 32); - output.writeUInt32NoTag(fIKOEFBNMHB); + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(groupId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 24); output.writeUInt32NoTag(entryId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 72); - output.writeUInt32NoTag(groupId); + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(iJMFKKGOPJF); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 112); output.writeUInt32NoTag(groupState); } } @@ -294,13 +294,13 @@ public final class GroupStateInfoOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(fIKOEFBNMHB); + size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); } if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(entryId); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(iJMFKKGOPJF); } if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(groupState); @@ -315,34 +315,34 @@ public final class GroupStateInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 32: { - // fIKOEFBNMHB - fIKOEFBNMHB = input.readUInt32(); + case 8: { + // groupId + groupId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 40) { + if (tag != 24) { break; } } - case 40: { + case 24: { // entryId entryId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 72) { + if (tag != 64) { break; } } - case 72: { - // groupId - groupId = input.readUInt32(); + case 64: { + // iJMFKKGOPJF + iJMFKKGOPJF = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 120) { + if (tag != 112) { break; } } - case 120: { + case 112: { // groupState groupState = input.readUInt32(); bitField0_ |= 0x00000008; @@ -369,13 +369,13 @@ public final class GroupStateInfoOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.fIKOEFBNMHB, fIKOEFBNMHB); + output.writeUInt32(FieldNames.groupId, groupId); } if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.entryId, entryId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.groupId, groupId); + output.writeUInt32(FieldNames.iJMFKKGOPJF, iJMFKKGOPJF); } if ((bitField0_ & 0x00000008) != 0) { output.writeUInt32(FieldNames.groupState, groupState); @@ -390,10 +390,11 @@ public final class GroupStateInfoOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -1689558285: { - if (input.isAtField(FieldNames.fIKOEFBNMHB)) { + case 293428218: + case 506361563: { + if (input.isAtField(FieldNames.groupId)) { if (!input.trySkipNullValue()) { - fIKOEFBNMHB = input.readUInt32(); + groupId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -413,11 +414,10 @@ public final class GroupStateInfoOuterClass { } break; } - case 293428218: - case 506361563: { - if (input.isAtField(FieldNames.groupId)) { + case 370526858: { + if (input.isAtField(FieldNames.iJMFKKGOPJF)) { if (!input.trySkipNullValue()) { - groupId = input.readUInt32(); + iJMFKKGOPJF = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -490,11 +490,11 @@ public final class GroupStateInfoOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName fIKOEFBNMHB = FieldName.forField("FIKOEFBNMHB"); + static final FieldName groupId = FieldName.forField("groupId", "group_id"); static final FieldName entryId = FieldName.forField("entryId", "entry_id"); - static final FieldName groupId = FieldName.forField("groupId", "group_id"); + static final FieldName iJMFKKGOPJF = FieldName.forField("IJMFKKGOPJF"); static final FieldName groupState = FieldName.forField("groupState", "group_state"); } diff --git a/src/generated/main/emu/lunarcore/proto/HandleFriendCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/HandleFriendCsReqOuterClass.java index 1fda94d..c3e3ba9 100644 --- a/src/generated/main/emu/lunarcore/proto/HandleFriendCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/HandleFriendCsReqOuterClass.java @@ -19,12 +19,12 @@ public final class HandleFriendCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 uid = 7; + * optional uint32 uid = 2; */ private int uid; /** - * optional bool handle_result = 13; + * optional bool handle_result = 12; */ private boolean handleResult; @@ -39,7 +39,7 @@ public final class HandleFriendCsReqOuterClass { } /** - * optional uint32 uid = 7; + * optional uint32 uid = 2; * @return whether the uid field is set */ public boolean hasUid() { @@ -47,7 +47,7 @@ public final class HandleFriendCsReqOuterClass { } /** - * optional uint32 uid = 7; + * optional uint32 uid = 2; * @return this */ public HandleFriendCsReq clearUid() { @@ -57,7 +57,7 @@ public final class HandleFriendCsReqOuterClass { } /** - * optional uint32 uid = 7; + * optional uint32 uid = 2; * @return the uid */ public int getUid() { @@ -65,7 +65,7 @@ public final class HandleFriendCsReqOuterClass { } /** - * optional uint32 uid = 7; + * optional uint32 uid = 2; * @param value the uid to set * @return this */ @@ -76,7 +76,7 @@ public final class HandleFriendCsReqOuterClass { } /** - * optional bool handle_result = 13; + * optional bool handle_result = 12; * @return whether the handleResult field is set */ public boolean hasHandleResult() { @@ -84,7 +84,7 @@ public final class HandleFriendCsReqOuterClass { } /** - * optional bool handle_result = 13; + * optional bool handle_result = 12; * @return this */ public HandleFriendCsReq clearHandleResult() { @@ -94,7 +94,7 @@ public final class HandleFriendCsReqOuterClass { } /** - * optional bool handle_result = 13; + * optional bool handle_result = 12; * @return the handleResult */ public boolean getHandleResult() { @@ -102,7 +102,7 @@ public final class HandleFriendCsReqOuterClass { } /** - * optional bool handle_result = 13; + * optional bool handle_result = 12; * @param value the handleResult to set * @return this */ @@ -177,11 +177,11 @@ public final class HandleFriendCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 16); output.writeUInt32NoTag(uid); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 96); output.writeBoolNoTag(handleResult); } } @@ -205,16 +205,16 @@ public final class HandleFriendCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 56: { + 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; diff --git a/src/generated/main/emu/lunarcore/proto/HandleFriendScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/HandleFriendScRspOuterClass.java index d6fddcf..d972f5d 100644 --- a/src/generated/main/emu/lunarcore/proto/HandleFriendScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/HandleFriendScRspOuterClass.java @@ -19,22 +19,22 @@ public final class HandleFriendScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 5; - */ - private int retcode; - - /** - * optional uint32 uid = 10; + * optional uint32 uid = 6; */ private int uid; /** - * optional bool handle_result = 8; + * optional uint32 retcode = 15; + */ + private int retcode; + + /** + * optional bool handle_result = 5; */ private boolean handleResult; /** - * optional .FriendListInfo handle_friend_info = 12; + * optional .FriendListInfo handle_friend_info = 3; */ private final FriendListInfoOuterClass.FriendListInfo handleFriendInfo = FriendListInfoOuterClass.FriendListInfo.newInstance(); @@ -49,62 +49,25 @@ public final class HandleFriendScRspOuterClass { } /** - * optional uint32 retcode = 5; - * @return whether the retcode field is set + * optional uint32 uid = 6; + * @return whether the uid field is set */ - public boolean hasRetcode() { + public boolean hasUid() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 retcode = 5; - * @return this - */ - public HandleFriendScRsp clearRetcode() { - bitField0_ &= ~0x00000001; - retcode = 0; - return this; - } - - /** - * optional uint32 retcode = 5; - * @return the retcode - */ - public int getRetcode() { - return retcode; - } - - /** - * optional uint32 retcode = 5; - * @param value the retcode to set - * @return this - */ - public HandleFriendScRsp setRetcode(final int value) { - bitField0_ |= 0x00000001; - retcode = value; - return this; - } - - /** - * optional uint32 uid = 10; - * @return whether the uid field is set - */ - public boolean hasUid() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 uid = 10; + * optional uint32 uid = 6; * @return this */ public HandleFriendScRsp clearUid() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; uid = 0; return this; } /** - * optional uint32 uid = 10; + * optional uint32 uid = 6; * @return the uid */ public int getUid() { @@ -112,18 +75,55 @@ public final class HandleFriendScRspOuterClass { } /** - * optional uint32 uid = 10; + * optional uint32 uid = 6; * @param value the uid to set * @return this */ public HandleFriendScRsp setUid(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; uid = value; return this; } /** - * optional bool handle_result = 8; + * optional uint32 retcode = 15; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 retcode = 15; + * @return this + */ + public HandleFriendScRsp clearRetcode() { + bitField0_ &= ~0x00000002; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 15; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 15; + * @param value the retcode to set + * @return this + */ + public HandleFriendScRsp setRetcode(final int value) { + bitField0_ |= 0x00000002; + retcode = value; + return this; + } + + /** + * optional bool handle_result = 5; * @return whether the handleResult field is set */ public boolean hasHandleResult() { @@ -131,7 +131,7 @@ public final class HandleFriendScRspOuterClass { } /** - * optional bool handle_result = 8; + * optional bool handle_result = 5; * @return this */ public HandleFriendScRsp clearHandleResult() { @@ -141,7 +141,7 @@ public final class HandleFriendScRspOuterClass { } /** - * optional bool handle_result = 8; + * optional bool handle_result = 5; * @return the handleResult */ public boolean getHandleResult() { @@ -149,7 +149,7 @@ public final class HandleFriendScRspOuterClass { } /** - * optional bool handle_result = 8; + * optional bool handle_result = 5; * @param value the handleResult to set * @return this */ @@ -160,7 +160,7 @@ public final class HandleFriendScRspOuterClass { } /** - * optional .FriendListInfo handle_friend_info = 12; + * optional .FriendListInfo handle_friend_info = 3; * @return whether the handleFriendInfo field is set */ public boolean hasHandleFriendInfo() { @@ -168,7 +168,7 @@ public final class HandleFriendScRspOuterClass { } /** - * optional .FriendListInfo handle_friend_info = 12; + * optional .FriendListInfo handle_friend_info = 3; * @return this */ public HandleFriendScRsp clearHandleFriendInfo() { @@ -178,7 +178,7 @@ public final class HandleFriendScRspOuterClass { } /** - * optional .FriendListInfo handle_friend_info = 12; + * optional .FriendListInfo handle_friend_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. @@ -192,7 +192,7 @@ public final class HandleFriendScRspOuterClass { } /** - * optional .FriendListInfo handle_friend_info = 12; + * optional .FriendListInfo handle_friend_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 @@ -206,7 +206,7 @@ public final class HandleFriendScRspOuterClass { } /** - * optional .FriendListInfo handle_friend_info = 12; + * optional .FriendListInfo handle_friend_info = 3; * @param value the handleFriendInfo to set * @return this */ @@ -222,8 +222,8 @@ public final class HandleFriendScRspOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - retcode = other.retcode; uid = other.uid; + retcode = other.retcode; handleResult = other.handleResult; handleFriendInfo.copyFrom(other.handleFriendInfo); } @@ -236,12 +236,12 @@ public final class HandleFriendScRspOuterClass { return this; } cachedSize = -1; - if (other.hasRetcode()) { - setRetcode(other.retcode); - } if (other.hasUid()) { setUid(other.uid); } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } if (other.hasHandleResult()) { setHandleResult(other.handleResult); } @@ -258,8 +258,8 @@ public final class HandleFriendScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - retcode = 0; uid = 0; + retcode = 0; handleResult = false; handleFriendInfo.clear(); return this; @@ -286,8 +286,8 @@ public final class HandleFriendScRspOuterClass { } HandleFriendScRsp other = (HandleFriendScRsp) o; return bitField0_ == other.bitField0_ - && (!hasRetcode() || retcode == other.retcode) && (!hasUid() || uid == other.uid) + && (!hasRetcode() || retcode == other.retcode) && (!hasHandleResult() || handleResult == other.handleResult) && (!hasHandleFriendInfo() || handleFriendInfo.equals(other.handleFriendInfo)); } @@ -295,19 +295,19 @@ public final class HandleFriendScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); - output.writeUInt32NoTag(retcode); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 48); output.writeUInt32NoTag(uid); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(retcode); + } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 40); output.writeBoolNoTag(handleResult); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 98); + output.writeRawByte((byte) 26); output.writeMessageNoTag(handleFriendInfo); } } @@ -316,10 +316,10 @@ public final class HandleFriendScRspOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(uid); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(uid); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000004) != 0) { size += 2; @@ -337,34 +337,34 @@ public final class HandleFriendScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 40: { - // retcode - retcode = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 80) { - break; - } - } - case 80: { + case 48: { // uid uid = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 64) { + if (tag != 120) { break; } } - case 64: { + case 120: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { // handleResult handleResult = input.readBool(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 98) { + if (tag != 26) { break; } } - case 98: { + case 26: { // handleFriendInfo input.readMessage(handleFriendInfo); bitField0_ |= 0x00000008; @@ -391,10 +391,10 @@ public final class HandleFriendScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.uid, uid); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.uid, uid); + output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000004) != 0) { output.writeBool(FieldNames.handleResult, handleResult); @@ -412,10 +412,10 @@ public final class HandleFriendScRspOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { + case 115792: { + if (input.isAtField(FieldNames.uid)) { if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); + uid = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -423,10 +423,10 @@ public final class HandleFriendScRspOuterClass { } 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_ |= 0x00000002; } } else { @@ -511,10 +511,10 @@ public final class HandleFriendScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName retcode = FieldName.forField("retcode"); - static final FieldName uid = FieldName.forField("uid"); + static final FieldName retcode = FieldName.forField("retcode"); + 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 e1277db..e1076e7 100644 --- a/src/generated/main/emu/lunarcore/proto/HeadIconOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/HeadIconOuterClass.java @@ -19,7 +19,7 @@ public final class HeadIconOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 id = 8; + * optional uint32 id = 10; */ private int id; @@ -34,7 +34,7 @@ public final class HeadIconOuterClass { } /** - * optional uint32 id = 8; + * optional uint32 id = 10; * @return whether the id field is set */ public boolean hasId() { @@ -42,7 +42,7 @@ public final class HeadIconOuterClass { } /** - * optional uint32 id = 8; + * optional uint32 id = 10; * @return this */ public HeadIcon clearId() { @@ -52,7 +52,7 @@ public final class HeadIconOuterClass { } /** - * optional uint32 id = 8; + * optional uint32 id = 10; * @return the id */ public int getId() { @@ -60,7 +60,7 @@ public final class HeadIconOuterClass { } /** - * optional uint32 id = 8; + * optional uint32 id = 10; * @param value the id to set * @return this */ @@ -129,7 +129,7 @@ public final class HeadIconOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 80); output.writeUInt32NoTag(id); } } @@ -150,7 +150,7 @@ public final class HeadIconOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 64: { + case 80: { // 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 21c483b..3a54907 100644 --- a/src/generated/main/emu/lunarcore/proto/HeroBasicTypeInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/HeroBasicTypeInfoOuterClass.java @@ -20,17 +20,17 @@ public final class HeroBasicTypeInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 rank = 9; + * optional uint32 rank = 11; */ private int rank; /** - * optional .HeroBasicType basic_type = 3; + * optional .HeroBasicType basic_type = 2; */ private int basicType; /** - * repeated .AvatarSkillTree skill_tree_list = 1; + * repeated .AvatarSkillTree skill_tree_list = 12; */ private final RepeatedMessage skillTreeList = RepeatedMessage.newEmptyInstance(AvatarSkillTreeOuterClass.AvatarSkillTree.getFactory()); @@ -45,7 +45,7 @@ public final class HeroBasicTypeInfoOuterClass { } /** - * optional uint32 rank = 9; + * optional uint32 rank = 11; * @return whether the rank field is set */ public boolean hasRank() { @@ -53,7 +53,7 @@ public final class HeroBasicTypeInfoOuterClass { } /** - * optional uint32 rank = 9; + * optional uint32 rank = 11; * @return this */ public HeroBasicTypeInfo clearRank() { @@ -63,7 +63,7 @@ public final class HeroBasicTypeInfoOuterClass { } /** - * optional uint32 rank = 9; + * optional uint32 rank = 11; * @return the rank */ public int getRank() { @@ -71,7 +71,7 @@ public final class HeroBasicTypeInfoOuterClass { } /** - * optional uint32 rank = 9; + * optional uint32 rank = 11; * @param value the rank to set * @return this */ @@ -82,7 +82,7 @@ public final class HeroBasicTypeInfoOuterClass { } /** - * optional .HeroBasicType basic_type = 3; + * optional .HeroBasicType basic_type = 2; * @return whether the basicType field is set */ public boolean hasBasicType() { @@ -90,7 +90,7 @@ public final class HeroBasicTypeInfoOuterClass { } /** - * optional .HeroBasicType basic_type = 3; + * optional .HeroBasicType basic_type = 2; * @return this */ public HeroBasicTypeInfo clearBasicType() { @@ -100,7 +100,7 @@ public final class HeroBasicTypeInfoOuterClass { } /** - * optional .HeroBasicType basic_type = 3; + * optional .HeroBasicType basic_type = 2; * @return the basicType */ public HeroBasicTypeOuterClass.HeroBasicType getBasicType() { @@ -133,7 +133,7 @@ public final class HeroBasicTypeInfoOuterClass { } /** - * optional .HeroBasicType basic_type = 3; + * optional .HeroBasicType basic_type = 2; * @param value the basicType to set * @return this */ @@ -144,7 +144,7 @@ public final class HeroBasicTypeInfoOuterClass { } /** - * repeated .AvatarSkillTree skill_tree_list = 1; + * repeated .AvatarSkillTree skill_tree_list = 12; * @return whether the skillTreeList field is set */ public boolean hasSkillTreeList() { @@ -152,7 +152,7 @@ public final class HeroBasicTypeInfoOuterClass { } /** - * repeated .AvatarSkillTree skill_tree_list = 1; + * repeated .AvatarSkillTree skill_tree_list = 12; * @return this */ public HeroBasicTypeInfo clearSkillTreeList() { @@ -162,7 +162,7 @@ public final class HeroBasicTypeInfoOuterClass { } /** - * repeated .AvatarSkillTree skill_tree_list = 1; + * repeated .AvatarSkillTree skill_tree_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. @@ -176,7 +176,7 @@ public final class HeroBasicTypeInfoOuterClass { } /** - * repeated .AvatarSkillTree skill_tree_list = 1; + * repeated .AvatarSkillTree skill_tree_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 @@ -190,7 +190,7 @@ public final class HeroBasicTypeInfoOuterClass { } /** - * repeated .AvatarSkillTree skill_tree_list = 1; + * repeated .AvatarSkillTree skill_tree_list = 12; * @param value the skillTreeList to add * @return this */ @@ -202,7 +202,7 @@ public final class HeroBasicTypeInfoOuterClass { } /** - * repeated .AvatarSkillTree skill_tree_list = 1; + * repeated .AvatarSkillTree skill_tree_list = 12; * @param values the skillTreeList to add * @return this */ @@ -285,16 +285,16 @@ public final class HeroBasicTypeInfoOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 72); + output.writeRawByte((byte) 88); output.writeUInt32NoTag(rank); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 16); output.writeEnumNoTag(basicType); } if ((bitField0_ & 0x00000004) != 0) { for (int i = 0; i < skillTreeList.length(); i++) { - output.writeRawByte((byte) 10); + output.writeRawByte((byte) 98); output.writeMessageNoTag(skillTreeList.get(i)); } } @@ -322,16 +322,16 @@ public final class HeroBasicTypeInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 72: { + case 88: { // rank rank = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 24) { + if (tag != 16) { break; } } - case 24: { + case 16: { // basicType final int value = input.readInt32(); if (HeroBasicTypeOuterClass.HeroBasicType.forNumber(value) != null) { @@ -339,11 +339,11 @@ public final class HeroBasicTypeInfoOuterClass { bitField0_ |= 0x00000002; } tag = input.readTag(); - if (tag != 10) { + if (tag != 98) { break; } } - case 10: { + case 98: { // skillTreeList tag = input.readRepeatedMessage(skillTreeList, tag); bitField0_ |= 0x00000004; diff --git a/src/generated/main/emu/lunarcore/proto/CommonRogueUpdateScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/InteractChargerCsReqOuterClass.java similarity index 50% rename from src/generated/main/emu/lunarcore/proto/CommonRogueUpdateScNotifyOuterClass.java rename to src/generated/main/emu/lunarcore/proto/InteractChargerCsReqOuterClass.java index 8a79146..ab212f7 100644 --- a/src/generated/main/emu/lunarcore/proto/CommonRogueUpdateScNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/InteractChargerCsReqOuterClass.java @@ -11,82 +11,82 @@ import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; -public final class CommonRogueUpdateScNotifyOuterClass { +public final class InteractChargerCsReqOuterClass { /** - * Protobuf type {@code CommonRogueUpdateScNotify} + * Protobuf type {@code InteractChargerCsReq} */ - public static final class CommonRogueUpdateScNotify extends ProtoMessage implements Cloneable { + public static final class InteractChargerCsReq extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** *
-     * CJFJFKJICGK NALLCHLAJPN = 10;
+     *  obf: GLOGIAFNKHA
      * 
* - * optional .RogueUpdate rogue_update = 15; + * optional .ChargerInfo charger_info = 8; */ - private final RogueUpdateOuterClass.RogueUpdate rogueUpdate = RogueUpdateOuterClass.RogueUpdate.newInstance(); + private final ChargerInfoOuterClass.ChargerInfo chargerInfo = ChargerInfoOuterClass.ChargerInfo.newInstance(); - private CommonRogueUpdateScNotify() { + private InteractChargerCsReq() { } /** - * @return a new empty instance of {@code CommonRogueUpdateScNotify} + * @return a new empty instance of {@code InteractChargerCsReq} */ - public static CommonRogueUpdateScNotify newInstance() { - return new CommonRogueUpdateScNotify(); + public static InteractChargerCsReq newInstance() { + return new InteractChargerCsReq(); } /** *
-     * CJFJFKJICGK NALLCHLAJPN = 10;
+     *  obf: GLOGIAFNKHA
      * 
* - * optional .RogueUpdate rogue_update = 15; - * @return whether the rogueUpdate field is set + * optional .ChargerInfo charger_info = 8; + * @return whether the chargerInfo field is set */ - public boolean hasRogueUpdate() { + public boolean hasChargerInfo() { return (bitField0_ & 0x00000001) != 0; } /** *
-     * CJFJFKJICGK NALLCHLAJPN = 10;
+     *  obf: GLOGIAFNKHA
      * 
* - * optional .RogueUpdate rogue_update = 15; + * optional .ChargerInfo charger_info = 8; * @return this */ - public CommonRogueUpdateScNotify clearRogueUpdate() { + public InteractChargerCsReq clearChargerInfo() { bitField0_ &= ~0x00000001; - rogueUpdate.clear(); + chargerInfo.clear(); return this; } /** *
-     * CJFJFKJICGK NALLCHLAJPN = 10;
+     *  obf: GLOGIAFNKHA
      * 
* - * optional .RogueUpdate rogue_update = 15; + * optional .ChargerInfo charger_info = 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 #getMutableRogueUpdate()} if you want to modify it. + * Use {@link #getMutableChargerInfo()} if you want to modify it. * * @return internal storage object for reading */ - public RogueUpdateOuterClass.RogueUpdate getRogueUpdate() { - return rogueUpdate; + public ChargerInfoOuterClass.ChargerInfo getChargerInfo() { + return chargerInfo; } /** *
-     * CJFJFKJICGK NALLCHLAJPN = 10;
+     *  obf: GLOGIAFNKHA
      * 
* - * optional .RogueUpdate rogue_update = 15; + * optional .ChargerInfo charger_info = 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 @@ -94,67 +94,67 @@ public final class CommonRogueUpdateScNotifyOuterClass { * * @return internal storage object for modifications */ - public RogueUpdateOuterClass.RogueUpdate getMutableRogueUpdate() { + public ChargerInfoOuterClass.ChargerInfo getMutableChargerInfo() { bitField0_ |= 0x00000001; - return rogueUpdate; + return chargerInfo; } /** *
-     * CJFJFKJICGK NALLCHLAJPN = 10;
+     *  obf: GLOGIAFNKHA
      * 
* - * optional .RogueUpdate rogue_update = 15; - * @param value the rogueUpdate to set + * optional .ChargerInfo charger_info = 8; + * @param value the chargerInfo to set * @return this */ - public CommonRogueUpdateScNotify setRogueUpdate(final RogueUpdateOuterClass.RogueUpdate value) { + public InteractChargerCsReq setChargerInfo(final ChargerInfoOuterClass.ChargerInfo value) { bitField0_ |= 0x00000001; - rogueUpdate.copyFrom(value); + chargerInfo.copyFrom(value); return this; } @Override - public CommonRogueUpdateScNotify copyFrom(final CommonRogueUpdateScNotify other) { + public InteractChargerCsReq copyFrom(final InteractChargerCsReq other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - rogueUpdate.copyFrom(other.rogueUpdate); + chargerInfo.copyFrom(other.chargerInfo); } return this; } @Override - public CommonRogueUpdateScNotify mergeFrom(final CommonRogueUpdateScNotify other) { + public InteractChargerCsReq mergeFrom(final InteractChargerCsReq other) { if (other.isEmpty()) { return this; } cachedSize = -1; - if (other.hasRogueUpdate()) { - getMutableRogueUpdate().mergeFrom(other.rogueUpdate); + if (other.hasChargerInfo()) { + getMutableChargerInfo().mergeFrom(other.chargerInfo); } return this; } @Override - public CommonRogueUpdateScNotify clear() { + public InteractChargerCsReq clear() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - rogueUpdate.clear(); + chargerInfo.clear(); return this; } @Override - public CommonRogueUpdateScNotify clearQuick() { + public InteractChargerCsReq clearQuick() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - rogueUpdate.clearQuick(); + chargerInfo.clearQuick(); return this; } @@ -163,19 +163,19 @@ public final class CommonRogueUpdateScNotifyOuterClass { if (o == this) { return true; } - if (!(o instanceof CommonRogueUpdateScNotify)) { + if (!(o instanceof InteractChargerCsReq)) { return false; } - CommonRogueUpdateScNotify other = (CommonRogueUpdateScNotify) o; + InteractChargerCsReq other = (InteractChargerCsReq) o; return bitField0_ == other.bitField0_ - && (!hasRogueUpdate() || rogueUpdate.equals(other.rogueUpdate)); + && (!hasChargerInfo() || chargerInfo.equals(other.chargerInfo)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 122); - output.writeMessageNoTag(rogueUpdate); + output.writeRawByte((byte) 66); + output.writeMessageNoTag(chargerInfo); } } @@ -183,21 +183,21 @@ public final class CommonRogueUpdateScNotifyOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(rogueUpdate); + size += 1 + ProtoSink.computeMessageSizeNoTag(chargerInfo); } return size; } @Override @SuppressWarnings("fallthrough") - public CommonRogueUpdateScNotify mergeFrom(final ProtoSource input) throws IOException { + public InteractChargerCsReq mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { switch (tag) { - case 122: { - // rogueUpdate - input.readMessage(rogueUpdate); + case 66: { + // chargerInfo + input.readMessage(chargerInfo); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 0) { @@ -222,23 +222,23 @@ public final class CommonRogueUpdateScNotifyOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeMessage(FieldNames.rogueUpdate, rogueUpdate); + output.writeMessage(FieldNames.chargerInfo, chargerInfo); } output.endObject(); } @Override - public CommonRogueUpdateScNotify mergeFrom(final JsonSource input) throws IOException { + public InteractChargerCsReq mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -782477501: - case 1952403150: { - if (input.isAtField(FieldNames.rogueUpdate)) { + case 1038073356: + case 2135678991: { + if (input.isAtField(FieldNames.chargerInfo)) { if (!input.trySkipNullValue()) { - input.readMessage(rogueUpdate); + input.readMessage(chargerInfo); bitField0_ |= 0x00000001; } } else { @@ -257,8 +257,8 @@ public final class CommonRogueUpdateScNotifyOuterClass { } @Override - public CommonRogueUpdateScNotify clone() { - return new CommonRogueUpdateScNotify().copyFrom(this); + public InteractChargerCsReq clone() { + return new InteractChargerCsReq().copyFrom(this); } @Override @@ -266,32 +266,32 @@ public final class CommonRogueUpdateScNotifyOuterClass { return ((bitField0_) == 0); } - public static CommonRogueUpdateScNotify parseFrom(final byte[] data) throws + public static InteractChargerCsReq parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new CommonRogueUpdateScNotify(), data).checkInitialized(); + return ProtoMessage.mergeFrom(new InteractChargerCsReq(), data).checkInitialized(); } - public static CommonRogueUpdateScNotify parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new CommonRogueUpdateScNotify(), input).checkInitialized(); + public static InteractChargerCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new InteractChargerCsReq(), input).checkInitialized(); } - public static CommonRogueUpdateScNotify parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new CommonRogueUpdateScNotify(), input).checkInitialized(); + public static InteractChargerCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new InteractChargerCsReq(), input).checkInitialized(); } /** - * @return factory for creating CommonRogueUpdateScNotify messages + * @return factory for creating InteractChargerCsReq messages */ - public static MessageFactory getFactory() { - return CommonRogueUpdateScNotifyFactory.INSTANCE; + public static MessageFactory getFactory() { + return InteractChargerCsReqFactory.INSTANCE; } - private enum CommonRogueUpdateScNotifyFactory implements MessageFactory { + private enum InteractChargerCsReqFactory implements MessageFactory { INSTANCE; @Override - public CommonRogueUpdateScNotify create() { - return CommonRogueUpdateScNotify.newInstance(); + public InteractChargerCsReq create() { + return InteractChargerCsReq.newInstance(); } } @@ -299,7 +299,7 @@ public final class CommonRogueUpdateScNotifyOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName rogueUpdate = FieldName.forField("rogueUpdate", "rogue_update"); + static final FieldName chargerInfo = FieldName.forField("chargerInfo", "charger_info"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/InteractChargerScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/InteractChargerScRspOuterClass.java new file mode 100644 index 0000000..42b9075 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/InteractChargerScRspOuterClass.java @@ -0,0 +1,810 @@ +// 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 InteractChargerScRspOuterClass { + /** + * Protobuf type {@code InteractChargerScRsp} + */ + public static final class InteractChargerScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 12; + */ + private int retcode; + + /** + *
+     *  obf: MIAGCEIOPJH
+     * 
+ * + * optional .InteractChargerScRsp.ECKNFHCDJFH OEKHAFALOFB = 6; + */ + private final ECKNFHCDJFH oEKHAFALOFB = ECKNFHCDJFH.newInstance(); + + /** + * optional .ChargerInfo charger_info = 13; + */ + private final ChargerInfoOuterClass.ChargerInfo chargerInfo = ChargerInfoOuterClass.ChargerInfo.newInstance(); + + private InteractChargerScRsp() { + } + + /** + * @return a new empty instance of {@code InteractChargerScRsp} + */ + public static InteractChargerScRsp newInstance() { + return new InteractChargerScRsp(); + } + + /** + * optional uint32 retcode = 12; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 12; + * @return this + */ + public InteractChargerScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 12; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 12; + * @param value the retcode to set + * @return this + */ + public InteractChargerScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + *
+     *  obf: MIAGCEIOPJH
+     * 
+ * + * optional .InteractChargerScRsp.ECKNFHCDJFH OEKHAFALOFB = 6; + * @return whether the oEKHAFALOFB field is set + */ + public boolean hasOEKHAFALOFB() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + *
+     *  obf: MIAGCEIOPJH
+     * 
+ * + * optional .InteractChargerScRsp.ECKNFHCDJFH OEKHAFALOFB = 6; + * @return this + */ + public InteractChargerScRsp clearOEKHAFALOFB() { + bitField0_ &= ~0x00000002; + oEKHAFALOFB.clear(); + return this; + } + + /** + *
+     *  obf: MIAGCEIOPJH
+     * 
+ * + * optional .InteractChargerScRsp.ECKNFHCDJFH OEKHAFALOFB = 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 #getMutableOEKHAFALOFB()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ECKNFHCDJFH getOEKHAFALOFB() { + return oEKHAFALOFB; + } + + /** + *
+     *  obf: MIAGCEIOPJH
+     * 
+ * + * optional .InteractChargerScRsp.ECKNFHCDJFH OEKHAFALOFB = 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 + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public ECKNFHCDJFH getMutableOEKHAFALOFB() { + bitField0_ |= 0x00000002; + return oEKHAFALOFB; + } + + /** + *
+     *  obf: MIAGCEIOPJH
+     * 
+ * + * optional .InteractChargerScRsp.ECKNFHCDJFH OEKHAFALOFB = 6; + * @param value the oEKHAFALOFB to set + * @return this + */ + public InteractChargerScRsp setOEKHAFALOFB(final ECKNFHCDJFH value) { + bitField0_ |= 0x00000002; + oEKHAFALOFB.copyFrom(value); + return this; + } + + /** + * optional .ChargerInfo charger_info = 13; + * @return whether the chargerInfo field is set + */ + public boolean hasChargerInfo() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .ChargerInfo charger_info = 13; + * @return this + */ + public InteractChargerScRsp clearChargerInfo() { + bitField0_ &= ~0x00000004; + chargerInfo.clear(); + return this; + } + + /** + * optional .ChargerInfo charger_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. + * + * Use {@link #getMutableChargerInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChargerInfoOuterClass.ChargerInfo getChargerInfo() { + return chargerInfo; + } + + /** + * optional .ChargerInfo charger_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 + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public ChargerInfoOuterClass.ChargerInfo getMutableChargerInfo() { + bitField0_ |= 0x00000004; + return chargerInfo; + } + + /** + * optional .ChargerInfo charger_info = 13; + * @param value the chargerInfo to set + * @return this + */ + public InteractChargerScRsp setChargerInfo(final ChargerInfoOuterClass.ChargerInfo value) { + bitField0_ |= 0x00000004; + chargerInfo.copyFrom(value); + return this; + } + + @Override + public InteractChargerScRsp copyFrom(final InteractChargerScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + oEKHAFALOFB.copyFrom(other.oEKHAFALOFB); + chargerInfo.copyFrom(other.chargerInfo); + } + return this; + } + + @Override + public InteractChargerScRsp mergeFrom(final InteractChargerScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasOEKHAFALOFB()) { + getMutableOEKHAFALOFB().mergeFrom(other.oEKHAFALOFB); + } + if (other.hasChargerInfo()) { + getMutableChargerInfo().mergeFrom(other.chargerInfo); + } + return this; + } + + @Override + public InteractChargerScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + oEKHAFALOFB.clear(); + chargerInfo.clear(); + return this; + } + + @Override + public InteractChargerScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + oEKHAFALOFB.clearQuick(); + chargerInfo.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof InteractChargerScRsp)) { + return false; + } + InteractChargerScRsp other = (InteractChargerScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasOEKHAFALOFB() || oEKHAFALOFB.equals(other.oEKHAFALOFB)) + && (!hasChargerInfo() || chargerInfo.equals(other.chargerInfo)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 50); + output.writeMessageNoTag(oEKHAFALOFB); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 106); + output.writeMessageNoTag(chargerInfo); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(oEKHAFALOFB); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(chargerInfo); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public InteractChargerScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 96: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 50) { + break; + } + } + case 50: { + // oEKHAFALOFB + input.readMessage(oEKHAFALOFB); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 106) { + break; + } + } + case 106: { + // chargerInfo + input.readMessage(chargerInfo); + 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.retcode, retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.oEKHAFALOFB, oEKHAFALOFB); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.chargerInfo, chargerInfo); + } + output.endObject(); + } + + @Override + public InteractChargerScRsp 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 1533003560: { + if (input.isAtField(FieldNames.oEKHAFALOFB)) { + if (!input.trySkipNullValue()) { + input.readMessage(oEKHAFALOFB); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1038073356: + case 2135678991: { + if (input.isAtField(FieldNames.chargerInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(chargerInfo); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public InteractChargerScRsp clone() { + return new InteractChargerScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static InteractChargerScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new InteractChargerScRsp(), data).checkInitialized(); + } + + public static InteractChargerScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new InteractChargerScRsp(), input).checkInitialized(); + } + + public static InteractChargerScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new InteractChargerScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating InteractChargerScRsp messages + */ + public static MessageFactory getFactory() { + return InteractChargerScRspFactory.INSTANCE; + } + + /** + * Protobuf type {@code ECKNFHCDJFH} + */ + public static final class ECKNFHCDJFH extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 PJHMBIAHHBG = 3; + */ + private int pJHMBIAHHBG; + + /** + * optional uint32 CLMDBEPFDNG = 14; + */ + private int cLMDBEPFDNG; + + private ECKNFHCDJFH() { + } + + /** + * @return a new empty instance of {@code ECKNFHCDJFH} + */ + public static ECKNFHCDJFH newInstance() { + return new ECKNFHCDJFH(); + } + + /** + * optional uint32 PJHMBIAHHBG = 3; + * @return whether the pJHMBIAHHBG field is set + */ + public boolean hasPJHMBIAHHBG() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 PJHMBIAHHBG = 3; + * @return this + */ + public ECKNFHCDJFH clearPJHMBIAHHBG() { + bitField0_ &= ~0x00000001; + pJHMBIAHHBG = 0; + return this; + } + + /** + * optional uint32 PJHMBIAHHBG = 3; + * @return the pJHMBIAHHBG + */ + public int getPJHMBIAHHBG() { + return pJHMBIAHHBG; + } + + /** + * optional uint32 PJHMBIAHHBG = 3; + * @param value the pJHMBIAHHBG to set + * @return this + */ + public ECKNFHCDJFH setPJHMBIAHHBG(final int value) { + bitField0_ |= 0x00000001; + pJHMBIAHHBG = value; + return this; + } + + /** + * optional uint32 CLMDBEPFDNG = 14; + * @return whether the cLMDBEPFDNG field is set + */ + public boolean hasCLMDBEPFDNG() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 CLMDBEPFDNG = 14; + * @return this + */ + public ECKNFHCDJFH clearCLMDBEPFDNG() { + bitField0_ &= ~0x00000002; + cLMDBEPFDNG = 0; + return this; + } + + /** + * optional uint32 CLMDBEPFDNG = 14; + * @return the cLMDBEPFDNG + */ + public int getCLMDBEPFDNG() { + return cLMDBEPFDNG; + } + + /** + * optional uint32 CLMDBEPFDNG = 14; + * @param value the cLMDBEPFDNG to set + * @return this + */ + public ECKNFHCDJFH setCLMDBEPFDNG(final int value) { + bitField0_ |= 0x00000002; + cLMDBEPFDNG = value; + return this; + } + + @Override + public ECKNFHCDJFH copyFrom(final ECKNFHCDJFH other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + pJHMBIAHHBG = other.pJHMBIAHHBG; + cLMDBEPFDNG = other.cLMDBEPFDNG; + } + return this; + } + + @Override + public ECKNFHCDJFH mergeFrom(final ECKNFHCDJFH other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasPJHMBIAHHBG()) { + setPJHMBIAHHBG(other.pJHMBIAHHBG); + } + if (other.hasCLMDBEPFDNG()) { + setCLMDBEPFDNG(other.cLMDBEPFDNG); + } + return this; + } + + @Override + public ECKNFHCDJFH clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + pJHMBIAHHBG = 0; + cLMDBEPFDNG = 0; + return this; + } + + @Override + public ECKNFHCDJFH 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 ECKNFHCDJFH)) { + return false; + } + ECKNFHCDJFH other = (ECKNFHCDJFH) o; + return bitField0_ == other.bitField0_ + && (!hasPJHMBIAHHBG() || pJHMBIAHHBG == other.pJHMBIAHHBG) + && (!hasCLMDBEPFDNG() || cLMDBEPFDNG == other.cLMDBEPFDNG); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(pJHMBIAHHBG); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(cLMDBEPFDNG); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(pJHMBIAHHBG); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(cLMDBEPFDNG); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ECKNFHCDJFH mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 24: { + // pJHMBIAHHBG + pJHMBIAHHBG = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // cLMDBEPFDNG + cLMDBEPFDNG = 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.pJHMBIAHHBG, pJHMBIAHHBG); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.cLMDBEPFDNG, cLMDBEPFDNG); + } + output.endObject(); + } + + @Override + public ECKNFHCDJFH mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 978262976: { + if (input.isAtField(FieldNames.pJHMBIAHHBG)) { + if (!input.trySkipNullValue()) { + pJHMBIAHHBG = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -877688540: { + if (input.isAtField(FieldNames.cLMDBEPFDNG)) { + if (!input.trySkipNullValue()) { + cLMDBEPFDNG = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ECKNFHCDJFH clone() { + return new ECKNFHCDJFH().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ECKNFHCDJFH parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ECKNFHCDJFH(), data).checkInitialized(); + } + + public static ECKNFHCDJFH parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ECKNFHCDJFH(), input).checkInitialized(); + } + + public static ECKNFHCDJFH parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ECKNFHCDJFH(), input).checkInitialized(); + } + + /** + * @return factory for creating ECKNFHCDJFH messages + */ + public static MessageFactory getFactory() { + return ECKNFHCDJFHFactory.INSTANCE; + } + + private enum ECKNFHCDJFHFactory implements MessageFactory { + INSTANCE; + + @Override + public ECKNFHCDJFH create() { + return ECKNFHCDJFH.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName pJHMBIAHHBG = FieldName.forField("PJHMBIAHHBG"); + + static final FieldName cLMDBEPFDNG = FieldName.forField("CLMDBEPFDNG"); + } + } + + private enum InteractChargerScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public InteractChargerScRsp create() { + return InteractChargerScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName oEKHAFALOFB = FieldName.forField("OEKHAFALOFB"); + + static final FieldName chargerInfo = FieldName.forField("chargerInfo", "charger_info"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/InteractPropCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/InteractPropCsReqOuterClass.java index d6d1862..b458dca 100644 --- a/src/generated/main/emu/lunarcore/proto/InteractPropCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/InteractPropCsReqOuterClass.java @@ -19,15 +19,15 @@ public final class InteractPropCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 interact_id = 7; - */ - private int interactId; - - /** - * optional uint32 prop_entity_id = 15; + * optional uint32 prop_entity_id = 5; */ private int propEntityId; + /** + * optional uint32 interact_id = 15; + */ + private int interactId; + private InteractPropCsReq() { } @@ -39,62 +39,25 @@ public final class InteractPropCsReqOuterClass { } /** - * optional uint32 interact_id = 7; - * @return whether the interactId field is set + * optional uint32 prop_entity_id = 5; + * @return whether the propEntityId field is set */ - public boolean hasInteractId() { + public boolean hasPropEntityId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 interact_id = 7; - * @return this - */ - public InteractPropCsReq clearInteractId() { - bitField0_ &= ~0x00000001; - interactId = 0; - return this; - } - - /** - * optional uint32 interact_id = 7; - * @return the interactId - */ - public int getInteractId() { - return interactId; - } - - /** - * optional uint32 interact_id = 7; - * @param value the interactId to set - * @return this - */ - public InteractPropCsReq setInteractId(final int value) { - bitField0_ |= 0x00000001; - interactId = value; - return this; - } - - /** - * optional uint32 prop_entity_id = 15; - * @return whether the propEntityId field is set - */ - public boolean hasPropEntityId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 prop_entity_id = 15; + * optional uint32 prop_entity_id = 5; * @return this */ public InteractPropCsReq clearPropEntityId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; propEntityId = 0; return this; } /** - * optional uint32 prop_entity_id = 15; + * optional uint32 prop_entity_id = 5; * @return the propEntityId */ public int getPropEntityId() { @@ -102,23 +65,60 @@ public final class InteractPropCsReqOuterClass { } /** - * optional uint32 prop_entity_id = 15; + * optional uint32 prop_entity_id = 5; * @param value the propEntityId to set * @return this */ public InteractPropCsReq setPropEntityId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; propEntityId = value; return this; } + /** + * optional uint32 interact_id = 15; + * @return whether the interactId field is set + */ + public boolean hasInteractId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 interact_id = 15; + * @return this + */ + public InteractPropCsReq clearInteractId() { + bitField0_ &= ~0x00000002; + interactId = 0; + return this; + } + + /** + * optional uint32 interact_id = 15; + * @return the interactId + */ + public int getInteractId() { + return interactId; + } + + /** + * optional uint32 interact_id = 15; + * @param value the interactId to set + * @return this + */ + public InteractPropCsReq setInteractId(final int value) { + bitField0_ |= 0x00000002; + interactId = value; + return this; + } + @Override public InteractPropCsReq copyFrom(final InteractPropCsReq other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - interactId = other.interactId; propEntityId = other.propEntityId; + interactId = other.interactId; } return this; } @@ -129,12 +129,12 @@ public final class InteractPropCsReqOuterClass { return this; } cachedSize = -1; - if (other.hasInteractId()) { - setInteractId(other.interactId); - } if (other.hasPropEntityId()) { setPropEntityId(other.propEntityId); } + if (other.hasInteractId()) { + setInteractId(other.interactId); + } return this; } @@ -145,8 +145,8 @@ public final class InteractPropCsReqOuterClass { } cachedSize = -1; bitField0_ = 0; - interactId = 0; propEntityId = 0; + interactId = 0; return this; } @@ -170,19 +170,19 @@ public final class InteractPropCsReqOuterClass { } InteractPropCsReq other = (InteractPropCsReq) o; return bitField0_ == other.bitField0_ - && (!hasInteractId() || interactId == other.interactId) - && (!hasPropEntityId() || propEntityId == other.propEntityId); + && (!hasPropEntityId() || propEntityId == other.propEntityId) + && (!hasInteractId() || interactId == other.interactId); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 56); - output.writeUInt32NoTag(interactId); + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(propEntityId); } if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 120); - output.writeUInt32NoTag(propEntityId); + output.writeUInt32NoTag(interactId); } } @@ -190,10 +190,10 @@ public final class InteractPropCsReqOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(interactId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(propEntityId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(propEntityId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(interactId); } return size; } @@ -205,9 +205,9 @@ public final class InteractPropCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 56: { - // interactId - interactId = input.readUInt32(); + case 40: { + // propEntityId + propEntityId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 120) { @@ -215,8 +215,8 @@ public final class InteractPropCsReqOuterClass { } } case 120: { - // propEntityId - propEntityId = input.readUInt32(); + // interactId + interactId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { @@ -241,10 +241,10 @@ public final class InteractPropCsReqOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.interactId, interactId); + output.writeUInt32(FieldNames.propEntityId, propEntityId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.propEntityId, propEntityId); + output.writeUInt32(FieldNames.interactId, interactId); } output.endObject(); } @@ -256,11 +256,11 @@ public final class InteractPropCsReqOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -1603081743: - case 1844094916: { - if (input.isAtField(FieldNames.interactId)) { + case -68717343: + case -57484005: { + if (input.isAtField(FieldNames.propEntityId)) { if (!input.trySkipNullValue()) { - interactId = input.readUInt32(); + propEntityId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -268,11 +268,11 @@ public final class InteractPropCsReqOuterClass { } break; } - case -68717343: - case -57484005: { - if (input.isAtField(FieldNames.propEntityId)) { + case -1603081743: + case 1844094916: { + if (input.isAtField(FieldNames.interactId)) { if (!input.trySkipNullValue()) { - propEntityId = input.readUInt32(); + interactId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -333,9 +333,9 @@ public final class InteractPropCsReqOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName interactId = FieldName.forField("interactId", "interact_id"); - static final FieldName propEntityId = FieldName.forField("propEntityId", "prop_entity_id"); + + static final FieldName interactId = FieldName.forField("interactId", "interact_id"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/InteractPropScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/InteractPropScRspOuterClass.java index 4e2fce5..f9ecac2 100644 --- a/src/generated/main/emu/lunarcore/proto/InteractPropScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/InteractPropScRspOuterClass.java @@ -19,20 +19,20 @@ public final class InteractPropScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 prop_state = 3; + * optional uint32 prop_state = 2; */ private int propState; - /** - * optional uint32 prop_entity_id = 6; - */ - private int propEntityId; - /** * optional uint32 retcode = 7; */ private int retcode; + /** + * optional uint32 prop_entity_id = 9; + */ + private int propEntityId; + private InteractPropScRsp() { } @@ -44,7 +44,7 @@ public final class InteractPropScRspOuterClass { } /** - * optional uint32 prop_state = 3; + * optional uint32 prop_state = 2; * @return whether the propState field is set */ public boolean hasPropState() { @@ -52,7 +52,7 @@ public final class InteractPropScRspOuterClass { } /** - * optional uint32 prop_state = 3; + * optional uint32 prop_state = 2; * @return this */ public InteractPropScRsp clearPropState() { @@ -62,7 +62,7 @@ public final class InteractPropScRspOuterClass { } /** - * optional uint32 prop_state = 3; + * optional uint32 prop_state = 2; * @return the propState */ public int getPropState() { @@ -70,7 +70,7 @@ public final class InteractPropScRspOuterClass { } /** - * optional uint32 prop_state = 3; + * optional uint32 prop_state = 2; * @param value the propState to set * @return this */ @@ -80,49 +80,12 @@ public final class InteractPropScRspOuterClass { return this; } - /** - * optional uint32 prop_entity_id = 6; - * @return whether the propEntityId field is set - */ - public boolean hasPropEntityId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 prop_entity_id = 6; - * @return this - */ - public InteractPropScRsp clearPropEntityId() { - bitField0_ &= ~0x00000002; - propEntityId = 0; - return this; - } - - /** - * optional uint32 prop_entity_id = 6; - * @return the propEntityId - */ - public int getPropEntityId() { - return propEntityId; - } - - /** - * optional uint32 prop_entity_id = 6; - * @param value the propEntityId to set - * @return this - */ - public InteractPropScRsp setPropEntityId(final int value) { - bitField0_ |= 0x00000002; - propEntityId = value; - return this; - } - /** * optional uint32 retcode = 7; * @return whether the retcode field is set */ public boolean hasRetcode() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000002) != 0; } /** @@ -130,7 +93,7 @@ public final class InteractPropScRspOuterClass { * @return this */ public InteractPropScRsp clearRetcode() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; retcode = 0; return this; } @@ -149,19 +112,56 @@ public final class InteractPropScRspOuterClass { * @return this */ public InteractPropScRsp setRetcode(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; retcode = value; return this; } + /** + * optional uint32 prop_entity_id = 9; + * @return whether the propEntityId field is set + */ + public boolean hasPropEntityId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 prop_entity_id = 9; + * @return this + */ + public InteractPropScRsp clearPropEntityId() { + bitField0_ &= ~0x00000004; + propEntityId = 0; + return this; + } + + /** + * optional uint32 prop_entity_id = 9; + * @return the propEntityId + */ + public int getPropEntityId() { + return propEntityId; + } + + /** + * optional uint32 prop_entity_id = 9; + * @param value the propEntityId to set + * @return this + */ + public InteractPropScRsp setPropEntityId(final int value) { + bitField0_ |= 0x00000004; + propEntityId = value; + return this; + } + @Override public InteractPropScRsp copyFrom(final InteractPropScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; propState = other.propState; - propEntityId = other.propEntityId; retcode = other.retcode; + propEntityId = other.propEntityId; } return this; } @@ -175,12 +175,12 @@ public final class InteractPropScRspOuterClass { if (other.hasPropState()) { setPropState(other.propState); } - if (other.hasPropEntityId()) { - setPropEntityId(other.propEntityId); - } if (other.hasRetcode()) { setRetcode(other.retcode); } + if (other.hasPropEntityId()) { + setPropEntityId(other.propEntityId); + } return this; } @@ -192,8 +192,8 @@ public final class InteractPropScRspOuterClass { cachedSize = -1; bitField0_ = 0; propState = 0; - propEntityId = 0; retcode = 0; + propEntityId = 0; return this; } @@ -218,24 +218,24 @@ public final class InteractPropScRspOuterClass { InteractPropScRsp other = (InteractPropScRsp) o; return bitField0_ == other.bitField0_ && (!hasPropState() || propState == other.propState) - && (!hasPropEntityId() || propEntityId == other.propEntityId) - && (!hasRetcode() || retcode == other.retcode); + && (!hasRetcode() || retcode == other.retcode) + && (!hasPropEntityId() || propEntityId == other.propEntityId); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 16); output.writeUInt32NoTag(propState); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 48); - output.writeUInt32NoTag(propEntityId); - } - if ((bitField0_ & 0x00000004) != 0) { output.writeRawByte((byte) 56); output.writeUInt32NoTag(retcode); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(propEntityId); + } } @Override @@ -245,10 +245,10 @@ public final class InteractPropScRspOuterClass { size += 1 + ProtoSink.computeUInt32SizeNoTag(propState); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(propEntityId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(propEntityId); } return size; } @@ -260,20 +260,11 @@ public final class InteractPropScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 24: { + case 16: { // propState propState = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 48) { - break; - } - } - case 48: { - // propEntityId - propEntityId = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); if (tag != 56) { break; } @@ -281,6 +272,15 @@ public final class InteractPropScRspOuterClass { case 56: { // retcode retcode = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // propEntityId + propEntityId = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 0) { @@ -308,10 +308,10 @@ public final class InteractPropScRspOuterClass { output.writeUInt32(FieldNames.propState, propState); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.propEntityId, propEntityId); + output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.propEntityId, propEntityId); } output.endObject(); } @@ -335,11 +335,10 @@ public final class InteractPropScRspOuterClass { } 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_ |= 0x00000002; } } else { @@ -347,10 +346,11 @@ public final class InteractPropScRspOuterClass { } 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_ |= 0x00000004; } } else { @@ -413,9 +413,9 @@ public final class InteractPropScRspOuterClass { static class FieldNames { static final FieldName propState = FieldName.forField("propState", "prop_state"); - static final FieldName propEntityId = FieldName.forField("propEntityId", "prop_entity_id"); - static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName propEntityId = FieldName.forField("propEntityId", "prop_entity_id"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/ItemCostListOuterClass.java b/src/generated/main/emu/lunarcore/proto/ItemCostListOuterClass.java index fddb7dc..7baa989 100644 --- a/src/generated/main/emu/lunarcore/proto/ItemCostListOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ItemCostListOuterClass.java @@ -20,7 +20,7 @@ public final class ItemCostListOuterClass { private static final long serialVersionUID = 0L; /** - * repeated .ItemCost item_list = 9; + * repeated .ItemCost item_list = 15; */ private final RepeatedMessage itemList = RepeatedMessage.newEmptyInstance(ItemCostOuterClass.ItemCost.getFactory()); @@ -35,7 +35,7 @@ public final class ItemCostListOuterClass { } /** - * repeated .ItemCost item_list = 9; + * repeated .ItemCost item_list = 15; * @return whether the itemList field is set */ public boolean hasItemList() { @@ -43,7 +43,7 @@ public final class ItemCostListOuterClass { } /** - * repeated .ItemCost item_list = 9; + * repeated .ItemCost item_list = 15; * @return this */ public ItemCostList clearItemList() { @@ -53,7 +53,7 @@ public final class ItemCostListOuterClass { } /** - * repeated .ItemCost item_list = 9; + * repeated .ItemCost 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. @@ -67,7 +67,7 @@ public final class ItemCostListOuterClass { } /** - * repeated .ItemCost item_list = 9; + * repeated .ItemCost 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 @@ -81,7 +81,7 @@ public final class ItemCostListOuterClass { } /** - * repeated .ItemCost item_list = 9; + * repeated .ItemCost item_list = 15; * @param value the itemList to add * @return this */ @@ -92,7 +92,7 @@ public final class ItemCostListOuterClass { } /** - * repeated .ItemCost item_list = 9; + * repeated .ItemCost item_list = 15; * @param values the itemList to add * @return this */ @@ -163,7 +163,7 @@ public final class ItemCostListOuterClass { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { for (int i = 0; i < itemList.length(); i++) { - output.writeRawByte((byte) 74); + output.writeRawByte((byte) 122); output.writeMessageNoTag(itemList.get(i)); } } @@ -185,7 +185,7 @@ public final class ItemCostListOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 74: { + case 122: { // 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 f62cf1b..7e678fe 100644 --- a/src/generated/main/emu/lunarcore/proto/ItemCostOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ItemCostOuterClass.java @@ -19,19 +19,19 @@ public final class ItemCostOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 equipment_unique_id = 2; - */ - private int equipmentUniqueId; - - /** - * optional uint32 relic_unique_id = 13; + * optional uint32 relic_unique_id = 3; */ private int relicUniqueId; /** - * optional .PileItem pile_item = 6; + * optional uint32 equipment_unique_id = 13; */ - private final PileItem pileItem = PileItem.newInstance(); + private int equipmentUniqueId; + + /** + * optional .PileItem pile_item = 12; + */ + private final PileItemOuterClass.PileItem pileItem = PileItemOuterClass.PileItem.newInstance(); private ItemCost() { } @@ -44,62 +44,25 @@ public final class ItemCostOuterClass { } /** - * optional uint32 equipment_unique_id = 2; - * @return whether the equipmentUniqueId field is set + * optional uint32 relic_unique_id = 3; + * @return whether the relicUniqueId field is set */ - public boolean hasEquipmentUniqueId() { + public boolean hasRelicUniqueId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 equipment_unique_id = 2; - * @return this - */ - public ItemCost clearEquipmentUniqueId() { - bitField0_ &= ~0x00000001; - equipmentUniqueId = 0; - return this; - } - - /** - * optional uint32 equipment_unique_id = 2; - * @return the equipmentUniqueId - */ - public int getEquipmentUniqueId() { - return equipmentUniqueId; - } - - /** - * optional uint32 equipment_unique_id = 2; - * @param value the equipmentUniqueId to set - * @return this - */ - public ItemCost setEquipmentUniqueId(final int value) { - bitField0_ |= 0x00000001; - equipmentUniqueId = value; - return this; - } - - /** - * optional uint32 relic_unique_id = 13; - * @return whether the relicUniqueId field is set - */ - public boolean hasRelicUniqueId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 relic_unique_id = 13; + * optional uint32 relic_unique_id = 3; * @return this */ public ItemCost clearRelicUniqueId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; relicUniqueId = 0; return this; } /** - * optional uint32 relic_unique_id = 13; + * optional uint32 relic_unique_id = 3; * @return the relicUniqueId */ public int getRelicUniqueId() { @@ -107,18 +70,55 @@ public final class ItemCostOuterClass { } /** - * optional uint32 relic_unique_id = 13; + * optional uint32 relic_unique_id = 3; * @param value the relicUniqueId to set * @return this */ public ItemCost setRelicUniqueId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; relicUniqueId = value; return this; } /** - * optional .PileItem pile_item = 6; + * optional uint32 equipment_unique_id = 13; + * @return whether the equipmentUniqueId field is set + */ + public boolean hasEquipmentUniqueId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 equipment_unique_id = 13; + * @return this + */ + public ItemCost clearEquipmentUniqueId() { + bitField0_ &= ~0x00000002; + equipmentUniqueId = 0; + return this; + } + + /** + * optional uint32 equipment_unique_id = 13; + * @return the equipmentUniqueId + */ + public int getEquipmentUniqueId() { + return equipmentUniqueId; + } + + /** + * optional uint32 equipment_unique_id = 13; + * @param value the equipmentUniqueId to set + * @return this + */ + public ItemCost setEquipmentUniqueId(final int value) { + bitField0_ |= 0x00000002; + equipmentUniqueId = value; + return this; + } + + /** + * optional .PileItem pile_item = 12; * @return whether the pileItem field is set */ public boolean hasPileItem() { @@ -126,7 +126,7 @@ public final class ItemCostOuterClass { } /** - * optional .PileItem pile_item = 6; + * optional .PileItem pile_item = 12; * @return this */ public ItemCost clearPileItem() { @@ -136,7 +136,7 @@ public final class ItemCostOuterClass { } /** - * optional .PileItem pile_item = 6; + * optional .PileItem pile_item = 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. @@ -145,12 +145,12 @@ public final class ItemCostOuterClass { * * @return internal storage object for reading */ - public PileItem getPileItem() { + public PileItemOuterClass.PileItem getPileItem() { return pileItem; } /** - * optional .PileItem pile_item = 6; + * optional .PileItem pile_item = 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 @@ -158,17 +158,17 @@ public final class ItemCostOuterClass { * * @return internal storage object for modifications */ - public PileItem getMutablePileItem() { + public PileItemOuterClass.PileItem getMutablePileItem() { bitField0_ |= 0x00000004; return pileItem; } /** - * optional .PileItem pile_item = 6; + * optional .PileItem pile_item = 12; * @param value the pileItem to set * @return this */ - public ItemCost setPileItem(final PileItem value) { + public ItemCost setPileItem(final PileItemOuterClass.PileItem value) { bitField0_ |= 0x00000004; pileItem.copyFrom(value); return this; @@ -179,8 +179,8 @@ public final class ItemCostOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - equipmentUniqueId = other.equipmentUniqueId; relicUniqueId = other.relicUniqueId; + equipmentUniqueId = other.equipmentUniqueId; pileItem.copyFrom(other.pileItem); } return this; @@ -192,12 +192,12 @@ public final class ItemCostOuterClass { return this; } cachedSize = -1; - if (other.hasEquipmentUniqueId()) { - setEquipmentUniqueId(other.equipmentUniqueId); - } if (other.hasRelicUniqueId()) { setRelicUniqueId(other.relicUniqueId); } + if (other.hasEquipmentUniqueId()) { + setEquipmentUniqueId(other.equipmentUniqueId); + } if (other.hasPileItem()) { getMutablePileItem().mergeFrom(other.pileItem); } @@ -211,8 +211,8 @@ public final class ItemCostOuterClass { } cachedSize = -1; bitField0_ = 0; - equipmentUniqueId = 0; relicUniqueId = 0; + equipmentUniqueId = 0; pileItem.clear(); return this; } @@ -238,23 +238,23 @@ public final class ItemCostOuterClass { } ItemCost other = (ItemCost) o; return bitField0_ == other.bitField0_ - && (!hasEquipmentUniqueId() || equipmentUniqueId == other.equipmentUniqueId) && (!hasRelicUniqueId() || relicUniqueId == other.relicUniqueId) + && (!hasEquipmentUniqueId() || equipmentUniqueId == other.equipmentUniqueId) && (!hasPileItem() || pileItem.equals(other.pileItem)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(equipmentUniqueId); + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(relicUniqueId); } if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 104); - output.writeUInt32NoTag(relicUniqueId); + output.writeUInt32NoTag(equipmentUniqueId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 50); + output.writeRawByte((byte) 98); output.writeMessageNoTag(pileItem); } } @@ -263,10 +263,10 @@ public final class ItemCostOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(equipmentUniqueId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(relicUniqueId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(relicUniqueId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(equipmentUniqueId); } if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(pileItem); @@ -281,9 +281,9 @@ public final class ItemCostOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { - // equipmentUniqueId - equipmentUniqueId = input.readUInt32(); + case 24: { + // relicUniqueId + relicUniqueId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 104) { @@ -291,15 +291,15 @@ public final class ItemCostOuterClass { } } case 104: { - // relicUniqueId - relicUniqueId = input.readUInt32(); + // equipmentUniqueId + equipmentUniqueId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 50) { + if (tag != 98) { break; } } - case 50: { + case 98: { // pileItem input.readMessage(pileItem); bitField0_ |= 0x00000004; @@ -326,10 +326,10 @@ public final class ItemCostOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.equipmentUniqueId, equipmentUniqueId); + output.writeUInt32(FieldNames.relicUniqueId, relicUniqueId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.relicUniqueId, relicUniqueId); + output.writeUInt32(FieldNames.equipmentUniqueId, equipmentUniqueId); } if ((bitField0_ & 0x00000004) != 0) { output.writeMessage(FieldNames.pileItem, pileItem); @@ -344,11 +344,11 @@ public final class ItemCostOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -1867136902: - case 760467160: { - if (input.isAtField(FieldNames.equipmentUniqueId)) { + case -1966200481: + case 49648253: { + if (input.isAtField(FieldNames.relicUniqueId)) { if (!input.trySkipNullValue()) { - equipmentUniqueId = input.readUInt32(); + relicUniqueId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -356,11 +356,11 @@ public final class ItemCostOuterClass { } break; } - case -1966200481: - case 49648253: { - if (input.isAtField(FieldNames.relicUniqueId)) { + case -1867136902: + case 760467160: { + if (input.isAtField(FieldNames.equipmentUniqueId)) { if (!input.trySkipNullValue()) { - relicUniqueId = input.readUInt32(); + equipmentUniqueId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -432,337 +432,11 @@ public final class ItemCostOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName equipmentUniqueId = FieldName.forField("equipmentUniqueId", "equipment_unique_id"); - static final FieldName relicUniqueId = FieldName.forField("relicUniqueId", "relic_unique_id"); + static final FieldName equipmentUniqueId = FieldName.forField("equipmentUniqueId", "equipment_unique_id"); + static final FieldName pileItem = FieldName.forField("pileItem", "pile_item"); } } - - /** - * Protobuf type {@code PileItem} - */ - public static final class PileItem extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 item_id = 10; - */ - private int itemId; - - /** - * optional uint32 item_num = 12; - */ - private int itemNum; - - private PileItem() { - } - - /** - * @return a new empty instance of {@code PileItem} - */ - public static PileItem newInstance() { - return new PileItem(); - } - - /** - * optional uint32 item_id = 10; - * @return whether the itemId field is set - */ - public boolean hasItemId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 item_id = 10; - * @return this - */ - public PileItem clearItemId() { - bitField0_ &= ~0x00000001; - itemId = 0; - return this; - } - - /** - * optional uint32 item_id = 10; - * @return the itemId - */ - public int getItemId() { - return itemId; - } - - /** - * optional uint32 item_id = 10; - * @param value the itemId to set - * @return this - */ - public PileItem setItemId(final int value) { - bitField0_ |= 0x00000001; - itemId = value; - return this; - } - - /** - * optional uint32 item_num = 12; - * @return whether the itemNum field is set - */ - public boolean hasItemNum() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 item_num = 12; - * @return this - */ - public PileItem clearItemNum() { - bitField0_ &= ~0x00000002; - itemNum = 0; - return this; - } - - /** - * optional uint32 item_num = 12; - * @return the itemNum - */ - public int getItemNum() { - return itemNum; - } - - /** - * optional uint32 item_num = 12; - * @param value the itemNum to set - * @return this - */ - public PileItem setItemNum(final int value) { - bitField0_ |= 0x00000002; - itemNum = value; - return this; - } - - @Override - public PileItem copyFrom(final PileItem other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - itemId = other.itemId; - itemNum = other.itemNum; - } - return this; - } - - @Override - public PileItem mergeFrom(final PileItem other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasItemId()) { - setItemId(other.itemId); - } - if (other.hasItemNum()) { - setItemNum(other.itemNum); - } - return this; - } - - @Override - public PileItem clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - itemId = 0; - itemNum = 0; - return this; - } - - @Override - public PileItem 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 PileItem)) { - return false; - } - PileItem other = (PileItem) o; - return bitField0_ == other.bitField0_ - && (!hasItemId() || itemId == other.itemId) - && (!hasItemNum() || itemNum == other.itemNum); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 80); - output.writeUInt32NoTag(itemId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 96); - output.writeUInt32NoTag(itemNum); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(itemId); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(itemNum); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public PileItem mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 80: { - // itemId - itemId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 96) { - break; - } - } - case 96: { - // itemNum - itemNum = 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.itemId, itemId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.itemNum, itemNum); - } - output.endObject(); - } - - @Override - public PileItem mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -1178662002: - case 2116204999: { - if (input.isAtField(FieldNames.itemId)) { - if (!input.trySkipNullValue()) { - itemId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case 2116189043: - case 1177850970: { - if (input.isAtField(FieldNames.itemNum)) { - if (!input.trySkipNullValue()) { - itemNum = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public PileItem clone() { - return new PileItem().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static PileItem parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new PileItem(), data).checkInitialized(); - } - - public static PileItem parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new PileItem(), input).checkInitialized(); - } - - public static PileItem parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new PileItem(), input).checkInitialized(); - } - - /** - * @return factory for creating PileItem messages - */ - public static MessageFactory getFactory() { - return PileItemFactory.INSTANCE; - } - - private enum PileItemFactory implements MessageFactory { - INSTANCE; - - @Override - public PileItem create() { - return PileItem.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - 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/ItemListOuterClass.java b/src/generated/main/emu/lunarcore/proto/ItemListOuterClass.java index 578734d..09de411 100644 --- a/src/generated/main/emu/lunarcore/proto/ItemListOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ItemListOuterClass.java @@ -20,7 +20,7 @@ public final class ItemListOuterClass { private static final long serialVersionUID = 0L; /** - * repeated .Item item_list = 13; + * repeated .Item item_list = 14; */ private final RepeatedMessage itemList = RepeatedMessage.newEmptyInstance(ItemOuterClass.Item.getFactory()); @@ -35,7 +35,7 @@ public final class ItemListOuterClass { } /** - * repeated .Item item_list = 13; + * repeated .Item item_list = 14; * @return whether the itemList field is set */ public boolean hasItemList() { @@ -43,7 +43,7 @@ public final class ItemListOuterClass { } /** - * repeated .Item item_list = 13; + * repeated .Item item_list = 14; * @return this */ public ItemList clearItemList() { @@ -53,7 +53,7 @@ public final class ItemListOuterClass { } /** - * repeated .Item item_list = 13; + * repeated .Item item_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. @@ -67,7 +67,7 @@ public final class ItemListOuterClass { } /** - * repeated .Item item_list = 13; + * repeated .Item item_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 @@ -81,7 +81,7 @@ public final class ItemListOuterClass { } /** - * repeated .Item item_list = 13; + * repeated .Item item_list = 14; * @param value the itemList to add * @return this */ @@ -92,7 +92,7 @@ public final class ItemListOuterClass { } /** - * repeated .Item item_list = 13; + * repeated .Item item_list = 14; * @param values the itemList to add * @return this */ @@ -163,7 +163,7 @@ public final class ItemListOuterClass { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { for (int i = 0; i < itemList.length(); i++) { - output.writeRawByte((byte) 106); + output.writeRawByte((byte) 114); output.writeMessageNoTag(itemList.get(i)); } } @@ -185,7 +185,7 @@ public final class ItemListOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 106: { + case 114: { // 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 c56e1d6..c55300c 100644 --- a/src/generated/main/emu/lunarcore/proto/ItemOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ItemOuterClass.java @@ -19,9 +19,9 @@ public final class ItemOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 num = 4; + * optional uint32 main_affix_id = 4; */ - private int num; + private int mainAffixId; /** * optional uint32 unique_id = 5; @@ -29,30 +29,30 @@ public final class ItemOuterClass { private int uniqueId; /** - * optional uint32 level = 6; - */ - private int level; - - /** - * optional uint32 promotion = 8; - */ - private int promotion; - - /** - * optional uint32 main_affix_id = 11; - */ - private int mainAffixId; - - /** - * optional uint32 item_id = 13; + * optional uint32 item_id = 6; */ private int itemId; /** - * optional uint32 rank = 15; + * optional uint32 num = 11; + */ + private int num; + + /** + * optional uint32 level = 13; + */ + private int level; + + /** + * optional uint32 rank = 14; */ private int rank; + /** + * optional uint32 promotion = 15; + */ + private int promotion; + private Item() { } @@ -64,39 +64,39 @@ public final class ItemOuterClass { } /** - * optional uint32 num = 4; - * @return whether the num field is set + * optional uint32 main_affix_id = 4; + * @return whether the mainAffixId field is set */ - public boolean hasNum() { + public boolean hasMainAffixId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 num = 4; + * optional uint32 main_affix_id = 4; * @return this */ - public Item clearNum() { + public Item clearMainAffixId() { bitField0_ &= ~0x00000001; - num = 0; + mainAffixId = 0; return this; } /** - * optional uint32 num = 4; - * @return the num + * optional uint32 main_affix_id = 4; + * @return the mainAffixId */ - public int getNum() { - return num; + public int getMainAffixId() { + return mainAffixId; } /** - * optional uint32 num = 4; - * @param value the num to set + * optional uint32 main_affix_id = 4; + * @param value the mainAffixId to set * @return this */ - public Item setNum(final int value) { + public Item setMainAffixId(final int value) { bitField0_ |= 0x00000001; - num = value; + mainAffixId = value; return this; } @@ -138,136 +138,25 @@ public final class ItemOuterClass { } /** - * optional uint32 level = 6; - * @return whether the level field is set + * optional uint32 item_id = 6; + * @return whether the itemId field is set */ - public boolean hasLevel() { + public boolean hasItemId() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 level = 6; - * @return this - */ - public Item clearLevel() { - bitField0_ &= ~0x00000004; - level = 0; - return this; - } - - /** - * optional uint32 level = 6; - * @return the level - */ - public int getLevel() { - return level; - } - - /** - * optional uint32 level = 6; - * @param value the level to set - * @return this - */ - public Item setLevel(final int value) { - bitField0_ |= 0x00000004; - level = value; - return this; - } - - /** - * optional uint32 promotion = 8; - * @return whether the promotion field is set - */ - public boolean hasPromotion() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional uint32 promotion = 8; - * @return this - */ - public Item clearPromotion() { - bitField0_ &= ~0x00000008; - promotion = 0; - return this; - } - - /** - * optional uint32 promotion = 8; - * @return the promotion - */ - public int getPromotion() { - return promotion; - } - - /** - * optional uint32 promotion = 8; - * @param value the promotion to set - * @return this - */ - public Item setPromotion(final int value) { - bitField0_ |= 0x00000008; - promotion = value; - return this; - } - - /** - * optional uint32 main_affix_id = 11; - * @return whether the mainAffixId field is set - */ - public boolean hasMainAffixId() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - * optional uint32 main_affix_id = 11; - * @return this - */ - public Item clearMainAffixId() { - bitField0_ &= ~0x00000010; - mainAffixId = 0; - return this; - } - - /** - * optional uint32 main_affix_id = 11; - * @return the mainAffixId - */ - public int getMainAffixId() { - return mainAffixId; - } - - /** - * optional uint32 main_affix_id = 11; - * @param value the mainAffixId to set - * @return this - */ - public Item setMainAffixId(final int value) { - bitField0_ |= 0x00000010; - mainAffixId = value; - return this; - } - - /** - * optional uint32 item_id = 13; - * @return whether the itemId field is set - */ - public boolean hasItemId() { - return (bitField0_ & 0x00000020) != 0; - } - - /** - * optional uint32 item_id = 13; + * optional uint32 item_id = 6; * @return this */ public Item clearItemId() { - bitField0_ &= ~0x00000020; + bitField0_ &= ~0x00000004; itemId = 0; return this; } /** - * optional uint32 item_id = 13; + * optional uint32 item_id = 6; * @return the itemId */ public int getItemId() { @@ -275,36 +164,110 @@ public final class ItemOuterClass { } /** - * optional uint32 item_id = 13; + * optional uint32 item_id = 6; * @param value the itemId to set * @return this */ public Item setItemId(final int value) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000004; itemId = value; return this; } /** - * optional uint32 rank = 15; - * @return whether the rank field is set + * optional uint32 num = 11; + * @return whether the num field is set */ - public boolean hasRank() { - return (bitField0_ & 0x00000040) != 0; + public boolean hasNum() { + return (bitField0_ & 0x00000008) != 0; } /** - * optional uint32 rank = 15; + * optional uint32 num = 11; + * @return this + */ + public Item clearNum() { + bitField0_ &= ~0x00000008; + num = 0; + return this; + } + + /** + * optional uint32 num = 11; + * @return the num + */ + public int getNum() { + return num; + } + + /** + * optional uint32 num = 11; + * @param value the num to set + * @return this + */ + public Item setNum(final int value) { + bitField0_ |= 0x00000008; + num = value; + return this; + } + + /** + * optional uint32 level = 13; + * @return whether the level field is set + */ + public boolean hasLevel() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 level = 13; + * @return this + */ + public Item clearLevel() { + bitField0_ &= ~0x00000010; + level = 0; + return this; + } + + /** + * optional uint32 level = 13; + * @return the level + */ + public int getLevel() { + return level; + } + + /** + * optional uint32 level = 13; + * @param value the level to set + * @return this + */ + public Item setLevel(final int value) { + bitField0_ |= 0x00000010; + level = value; + return this; + } + + /** + * optional uint32 rank = 14; + * @return whether the rank field is set + */ + public boolean hasRank() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional uint32 rank = 14; * @return this */ public Item clearRank() { - bitField0_ &= ~0x00000040; + bitField0_ &= ~0x00000020; rank = 0; return this; } /** - * optional uint32 rank = 15; + * optional uint32 rank = 14; * @return the rank */ public int getRank() { @@ -312,28 +275,65 @@ public final class ItemOuterClass { } /** - * optional uint32 rank = 15; + * optional uint32 rank = 14; * @param value the rank to set * @return this */ public Item setRank(final int value) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000020; rank = value; return this; } + /** + * optional uint32 promotion = 15; + * @return whether the promotion field is set + */ + public boolean hasPromotion() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional uint32 promotion = 15; + * @return this + */ + public Item clearPromotion() { + bitField0_ &= ~0x00000040; + promotion = 0; + return this; + } + + /** + * optional uint32 promotion = 15; + * @return the promotion + */ + public int getPromotion() { + return promotion; + } + + /** + * optional uint32 promotion = 15; + * @param value the promotion to set + * @return this + */ + public Item setPromotion(final int value) { + bitField0_ |= 0x00000040; + promotion = value; + return this; + } + @Override public Item copyFrom(final Item other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - num = other.num; - uniqueId = other.uniqueId; - level = other.level; - promotion = other.promotion; mainAffixId = other.mainAffixId; + uniqueId = other.uniqueId; itemId = other.itemId; + num = other.num; + level = other.level; rank = other.rank; + promotion = other.promotion; } return this; } @@ -344,27 +344,27 @@ public final class ItemOuterClass { return this; } cachedSize = -1; - if (other.hasNum()) { - setNum(other.num); + if (other.hasMainAffixId()) { + setMainAffixId(other.mainAffixId); } 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.hasNum()) { + setNum(other.num); + } + if (other.hasLevel()) { + setLevel(other.level); + } if (other.hasRank()) { setRank(other.rank); } + if (other.hasPromotion()) { + setPromotion(other.promotion); + } return this; } @@ -375,13 +375,13 @@ public final class ItemOuterClass { } cachedSize = -1; bitField0_ = 0; - num = 0; - uniqueId = 0; - level = 0; - promotion = 0; mainAffixId = 0; + uniqueId = 0; itemId = 0; + num = 0; + level = 0; rank = 0; + promotion = 0; return this; } @@ -405,20 +405,20 @@ public final class ItemOuterClass { } Item other = (Item) o; return bitField0_ == other.bitField0_ - && (!hasNum() || num == other.num) - && (!hasUniqueId() || uniqueId == other.uniqueId) - && (!hasLevel() || level == other.level) - && (!hasPromotion() || promotion == other.promotion) && (!hasMainAffixId() || mainAffixId == other.mainAffixId) + && (!hasUniqueId() || uniqueId == other.uniqueId) && (!hasItemId() || itemId == other.itemId) - && (!hasRank() || rank == other.rank); + && (!hasNum() || num == other.num) + && (!hasLevel() || level == other.level) + && (!hasRank() || rank == other.rank) + && (!hasPromotion() || promotion == other.promotion); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { output.writeRawByte((byte) 32); - output.writeUInt32NoTag(num); + output.writeUInt32NoTag(mainAffixId); } if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 40); @@ -426,23 +426,23 @@ public final class ItemOuterClass { } if ((bitField0_ & 0x00000004) != 0) { output.writeRawByte((byte) 48); - output.writeUInt32NoTag(level); + output.writeUInt32NoTag(itemId); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 64); - output.writeUInt32NoTag(promotion); + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(num); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 88); - output.writeUInt32NoTag(mainAffixId); + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(level); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 104); - output.writeUInt32NoTag(itemId); + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(rank); } if ((bitField0_ & 0x00000040) != 0) { output.writeRawByte((byte) 120); - output.writeUInt32NoTag(rank); + output.writeUInt32NoTag(promotion); } } @@ -450,26 +450,26 @@ public final class ItemOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(num); + size += 1 + ProtoSink.computeUInt32SizeNoTag(mainAffixId); } if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(uniqueId); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(level); - } - if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(promotion); - } - if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(mainAffixId); - } - if ((bitField0_ & 0x00000020) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(itemId); } - if ((bitField0_ & 0x00000040) != 0) { + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(num); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(level); + } + if ((bitField0_ & 0x00000020) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(rank); } + if ((bitField0_ & 0x00000040) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(promotion); + } return size; } @@ -481,8 +481,8 @@ public final class ItemOuterClass { while (true) { switch (tag) { case 32: { - // num - num = input.readUInt32(); + // mainAffixId + mainAffixId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 40) { @@ -499,35 +499,35 @@ public final class ItemOuterClass { } } case 48: { - // level - level = input.readUInt32(); + // itemId + itemId = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 64) { - break; - } - } - case 64: { - // promotion - promotion = input.readUInt32(); - bitField0_ |= 0x00000008; - tag = input.readTag(); if (tag != 88) { break; } } case 88: { - // mainAffixId - mainAffixId = input.readUInt32(); - bitField0_ |= 0x00000010; + // num + num = input.readUInt32(); + bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 104) { break; } } case 104: { - // itemId - itemId = input.readUInt32(); + // level + level = input.readUInt32(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // rank + rank = input.readUInt32(); bitField0_ |= 0x00000020; tag = input.readTag(); if (tag != 120) { @@ -535,8 +535,8 @@ public final class ItemOuterClass { } } case 120: { - // rank - rank = input.readUInt32(); + // promotion + promotion = input.readUInt32(); bitField0_ |= 0x00000040; tag = input.readTag(); if (tag != 0) { @@ -561,26 +561,26 @@ public final class ItemOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.num, num); + output.writeUInt32(FieldNames.mainAffixId, mainAffixId); } if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.uniqueId, uniqueId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.level, level); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.promotion, promotion); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeUInt32(FieldNames.mainAffixId, mainAffixId); - } - if ((bitField0_ & 0x00000020) != 0) { output.writeUInt32(FieldNames.itemId, itemId); } - if ((bitField0_ & 0x00000040) != 0) { + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.num, num); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.level, level); + } + if ((bitField0_ & 0x00000020) != 0) { output.writeUInt32(FieldNames.rank, rank); } + if ((bitField0_ & 0x00000040) != 0) { + output.writeUInt32(FieldNames.promotion, promotion); + } output.endObject(); } @@ -591,10 +591,11 @@ public final class ItemOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 109446: { - if (input.isAtField(FieldNames.num)) { + case -1973876974: + case -1426712144: { + if (input.isAtField(FieldNames.mainAffixId)) { if (!input.trySkipNullValue()) { - num = input.readUInt32(); + mainAffixId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -614,10 +615,11 @@ public final class ItemOuterClass { } break; } - case 102865796: { - if (input.isAtField(FieldNames.level)) { + case -1178662002: + case 2116204999: { + if (input.isAtField(FieldNames.itemId)) { if (!input.trySkipNullValue()) { - level = input.readUInt32(); + itemId = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -625,10 +627,10 @@ public final class ItemOuterClass { } break; } - case -799212381: { - if (input.isAtField(FieldNames.promotion)) { + case 109446: { + if (input.isAtField(FieldNames.num)) { if (!input.trySkipNullValue()) { - promotion = input.readUInt32(); + num = input.readUInt32(); bitField0_ |= 0x00000008; } } else { @@ -636,11 +638,10 @@ public final class ItemOuterClass { } 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_ |= 0x00000010; } } else { @@ -648,22 +649,21 @@ public final class ItemOuterClass { } break; } - case -1178662002: - case 2116204999: { - if (input.isAtField(FieldNames.itemId)) { - if (!input.trySkipNullValue()) { - itemId = input.readUInt32(); - bitField0_ |= 0x00000020; - } - } else { - input.skipUnknownField(); - } - break; - } case 3492908: { if (input.isAtField(FieldNames.rank)) { if (!input.trySkipNullValue()) { rank = input.readUInt32(); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case -799212381: { + if (input.isAtField(FieldNames.promotion)) { + if (!input.trySkipNullValue()) { + promotion = input.readUInt32(); bitField0_ |= 0x00000040; } } else { @@ -723,19 +723,19 @@ public final class ItemOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - 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 level = FieldName.forField("level"); - - 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 num = FieldName.forField("num"); + + static final FieldName level = FieldName.forField("level"); + static final FieldName rank = FieldName.forField("rank"); + + static final FieldName promotion = FieldName.forField("promotion"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/JHAHJFNNGHIOuterClass.java b/src/generated/main/emu/lunarcore/proto/JHAHJFNNGHIOuterClass.java deleted file mode 100644 index 52ae868..0000000 --- a/src/generated/main/emu/lunarcore/proto/JHAHJFNNGHIOuterClass.java +++ /dev/null @@ -1,600 +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 JHAHJFNNGHIOuterClass { - /** - * Protobuf type {@code JHAHJFNNGHI} - */ - public static final class JHAHJFNNGHI extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - *
-     *  3
-     * 
- * - * optional uint32 JPEBPGIEGPO = 14; - */ - private int jPEBPGIEGPO; - - /** - *
-     *  9
-     * 
- * - * optional uint32 OIJBOCHMDKA = 15; - */ - private int oIJBOCHMDKA; - - /** - *
-     *  true
-     * 
- * - * optional bool CGAFFPHCNEA = 1; - */ - private boolean cGAFFPHCNEA; - - /** - * repeated uint32 maze_unlocked = 8; - */ - private final RepeatedInt mazeUnlocked = RepeatedInt.newEmptyInstance(); - - private JHAHJFNNGHI() { - } - - /** - * @return a new empty instance of {@code JHAHJFNNGHI} - */ - public static JHAHJFNNGHI newInstance() { - return new JHAHJFNNGHI(); - } - - /** - *
-     *  3
-     * 
- * - * optional uint32 JPEBPGIEGPO = 14; - * @return whether the jPEBPGIEGPO field is set - */ - public boolean hasJPEBPGIEGPO() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - *
-     *  3
-     * 
- * - * optional uint32 JPEBPGIEGPO = 14; - * @return this - */ - public JHAHJFNNGHI clearJPEBPGIEGPO() { - bitField0_ &= ~0x00000001; - jPEBPGIEGPO = 0; - return this; - } - - /** - *
-     *  3
-     * 
- * - * optional uint32 JPEBPGIEGPO = 14; - * @return the jPEBPGIEGPO - */ - public int getJPEBPGIEGPO() { - return jPEBPGIEGPO; - } - - /** - *
-     *  3
-     * 
- * - * optional uint32 JPEBPGIEGPO = 14; - * @param value the jPEBPGIEGPO to set - * @return this - */ - public JHAHJFNNGHI setJPEBPGIEGPO(final int value) { - bitField0_ |= 0x00000001; - jPEBPGIEGPO = value; - return this; - } - - /** - *
-     *  9
-     * 
- * - * optional uint32 OIJBOCHMDKA = 15; - * @return whether the oIJBOCHMDKA field is set - */ - public boolean hasOIJBOCHMDKA() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - *
-     *  9
-     * 
- * - * optional uint32 OIJBOCHMDKA = 15; - * @return this - */ - public JHAHJFNNGHI clearOIJBOCHMDKA() { - bitField0_ &= ~0x00000002; - oIJBOCHMDKA = 0; - return this; - } - - /** - *
-     *  9
-     * 
- * - * optional uint32 OIJBOCHMDKA = 15; - * @return the oIJBOCHMDKA - */ - public int getOIJBOCHMDKA() { - return oIJBOCHMDKA; - } - - /** - *
-     *  9
-     * 
- * - * optional uint32 OIJBOCHMDKA = 15; - * @param value the oIJBOCHMDKA to set - * @return this - */ - public JHAHJFNNGHI setOIJBOCHMDKA(final int value) { - bitField0_ |= 0x00000002; - oIJBOCHMDKA = value; - return this; - } - - /** - *
-     *  true
-     * 
- * - * optional bool CGAFFPHCNEA = 1; - * @return whether the cGAFFPHCNEA field is set - */ - public boolean hasCGAFFPHCNEA() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - *
-     *  true
-     * 
- * - * optional bool CGAFFPHCNEA = 1; - * @return this - */ - public JHAHJFNNGHI clearCGAFFPHCNEA() { - bitField0_ &= ~0x00000004; - cGAFFPHCNEA = false; - return this; - } - - /** - *
-     *  true
-     * 
- * - * optional bool CGAFFPHCNEA = 1; - * @return the cGAFFPHCNEA - */ - public boolean getCGAFFPHCNEA() { - return cGAFFPHCNEA; - } - - /** - *
-     *  true
-     * 
- * - * optional bool CGAFFPHCNEA = 1; - * @param value the cGAFFPHCNEA to set - * @return this - */ - public JHAHJFNNGHI setCGAFFPHCNEA(final boolean value) { - bitField0_ |= 0x00000004; - cGAFFPHCNEA = value; - return this; - } - - /** - * repeated uint32 maze_unlocked = 8; - * @return whether the mazeUnlocked field is set - */ - public boolean hasMazeUnlocked() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * repeated uint32 maze_unlocked = 8; - * @return this - */ - public JHAHJFNNGHI clearMazeUnlocked() { - bitField0_ &= ~0x00000008; - mazeUnlocked.clear(); - return this; - } - - /** - * repeated uint32 maze_unlocked = 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 #getMutableMazeUnlocked()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedInt getMazeUnlocked() { - return mazeUnlocked; - } - - /** - * repeated uint32 maze_unlocked = 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 - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedInt getMutableMazeUnlocked() { - bitField0_ |= 0x00000008; - return mazeUnlocked; - } - - /** - * repeated uint32 maze_unlocked = 8; - * @param value the mazeUnlocked to add - * @return this - */ - public JHAHJFNNGHI addMazeUnlocked(final int value) { - bitField0_ |= 0x00000008; - mazeUnlocked.add(value); - return this; - } - - /** - * repeated uint32 maze_unlocked = 8; - * @param values the mazeUnlocked to add - * @return this - */ - public JHAHJFNNGHI addAllMazeUnlocked(final int... values) { - bitField0_ |= 0x00000008; - mazeUnlocked.addAll(values); - return this; - } - - @Override - public JHAHJFNNGHI copyFrom(final JHAHJFNNGHI other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - jPEBPGIEGPO = other.jPEBPGIEGPO; - oIJBOCHMDKA = other.oIJBOCHMDKA; - cGAFFPHCNEA = other.cGAFFPHCNEA; - mazeUnlocked.copyFrom(other.mazeUnlocked); - } - return this; - } - - @Override - public JHAHJFNNGHI mergeFrom(final JHAHJFNNGHI other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasJPEBPGIEGPO()) { - setJPEBPGIEGPO(other.jPEBPGIEGPO); - } - if (other.hasOIJBOCHMDKA()) { - setOIJBOCHMDKA(other.oIJBOCHMDKA); - } - if (other.hasCGAFFPHCNEA()) { - setCGAFFPHCNEA(other.cGAFFPHCNEA); - } - if (other.hasMazeUnlocked()) { - getMutableMazeUnlocked().addAll(other.mazeUnlocked); - } - return this; - } - - @Override - public JHAHJFNNGHI clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - jPEBPGIEGPO = 0; - oIJBOCHMDKA = 0; - cGAFFPHCNEA = false; - mazeUnlocked.clear(); - return this; - } - - @Override - public JHAHJFNNGHI clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - mazeUnlocked.clear(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof JHAHJFNNGHI)) { - return false; - } - JHAHJFNNGHI other = (JHAHJFNNGHI) o; - return bitField0_ == other.bitField0_ - && (!hasJPEBPGIEGPO() || jPEBPGIEGPO == other.jPEBPGIEGPO) - && (!hasOIJBOCHMDKA() || oIJBOCHMDKA == other.oIJBOCHMDKA) - && (!hasCGAFFPHCNEA() || cGAFFPHCNEA == other.cGAFFPHCNEA) - && (!hasMazeUnlocked() || mazeUnlocked.equals(other.mazeUnlocked)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 112); - output.writeUInt32NoTag(jPEBPGIEGPO); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 120); - output.writeUInt32NoTag(oIJBOCHMDKA); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 8); - output.writeBoolNoTag(cGAFFPHCNEA); - } - if ((bitField0_ & 0x00000008) != 0) { - for (int i = 0; i < mazeUnlocked.length(); i++) { - output.writeRawByte((byte) 64); - output.writeUInt32NoTag(mazeUnlocked.array()[i]); - } - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(jPEBPGIEGPO); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(oIJBOCHMDKA); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 2; - } - if ((bitField0_ & 0x00000008) != 0) { - size += (1 * mazeUnlocked.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(mazeUnlocked); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public JHAHJFNNGHI mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 112: { - // jPEBPGIEGPO - jPEBPGIEGPO = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 120) { - break; - } - } - case 120: { - // oIJBOCHMDKA - oIJBOCHMDKA = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 8) { - break; - } - } - case 8: { - // cGAFFPHCNEA - cGAFFPHCNEA = input.readBool(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 66) { - break; - } - } - case 66: { - // mazeUnlocked [packed=true] - input.readPackedUInt32(mazeUnlocked, tag); - bitField0_ |= 0x00000008; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - case 64: { - // mazeUnlocked [packed=false] - tag = input.readRepeatedUInt32(mazeUnlocked, tag); - bitField0_ |= 0x00000008; - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.jPEBPGIEGPO, jPEBPGIEGPO); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.oIJBOCHMDKA, oIJBOCHMDKA); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeBool(FieldNames.cGAFFPHCNEA, cGAFFPHCNEA); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRepeatedUInt32(FieldNames.mazeUnlocked, mazeUnlocked); - } - output.endObject(); - } - - @Override - public JHAHJFNNGHI mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 617496720: { - if (input.isAtField(FieldNames.jPEBPGIEGPO)) { - if (!input.trySkipNullValue()) { - jPEBPGIEGPO = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case 148222799: { - if (input.isAtField(FieldNames.oIJBOCHMDKA)) { - if (!input.trySkipNullValue()) { - oIJBOCHMDKA = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case -927350692: { - if (input.isAtField(FieldNames.cGAFFPHCNEA)) { - if (!input.trySkipNullValue()) { - cGAFFPHCNEA = input.readBool(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1835898942: - case -958227613: { - if (input.isAtField(FieldNames.mazeUnlocked)) { - if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(mazeUnlocked); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public JHAHJFNNGHI clone() { - return new JHAHJFNNGHI().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static JHAHJFNNGHI parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new JHAHJFNNGHI(), data).checkInitialized(); - } - - public static JHAHJFNNGHI parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new JHAHJFNNGHI(), input).checkInitialized(); - } - - public static JHAHJFNNGHI parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new JHAHJFNNGHI(), input).checkInitialized(); - } - - /** - * @return factory for creating JHAHJFNNGHI messages - */ - public static MessageFactory getFactory() { - return JHAHJFNNGHIFactory.INSTANCE; - } - - private enum JHAHJFNNGHIFactory implements MessageFactory { - INSTANCE; - - @Override - public JHAHJFNNGHI create() { - return JHAHJFNNGHI.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName jPEBPGIEGPO = FieldName.forField("JPEBPGIEGPO"); - - static final FieldName oIJBOCHMDKA = FieldName.forField("OIJBOCHMDKA"); - - static final FieldName cGAFFPHCNEA = FieldName.forField("CGAFFPHCNEA"); - - static final FieldName mazeUnlocked = FieldName.forField("mazeUnlocked", "maze_unlocked"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/JoinLineupCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/JoinLineupCsReqOuterClass.java index cb939de..0957b1f 100644 --- a/src/generated/main/emu/lunarcore/proto/JoinLineupCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/JoinLineupCsReqOuterClass.java @@ -19,37 +19,37 @@ public final class JoinLineupCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 plane_id = 7; - */ - private int planeId; - - /** - * optional uint32 index = 8; + * optional uint32 index = 1; */ private int index; /** - * optional uint32 slot = 13; + * optional uint32 slot = 7; */ private int slot; /** - * optional uint32 base_avatar_id = 14; + * optional uint32 plane_id = 10; + */ + private int planeId; + + /** + * optional uint32 base_avatar_id = 11; */ private int baseAvatarId; /** - * optional .AvatarType avatar_type = 2; - */ - private int avatarType; - - /** - * optional .ExtraLineupType extra_lineup_type = 6; + * optional .ExtraLineupType extra_lineup_type = 3; */ private int extraLineupType; /** - * optional bool is_virtual = 9; + * optional .AvatarType avatar_type = 14; + */ + private int avatarType; + + /** + * optional bool is_virtual = 15; */ private boolean isVirtual; @@ -64,62 +64,25 @@ public final class JoinLineupCsReqOuterClass { } /** - * optional uint32 plane_id = 7; - * @return whether the planeId field is set + * optional uint32 index = 1; + * @return whether the index field is set */ - public boolean hasPlaneId() { + public boolean hasIndex() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 plane_id = 7; - * @return this - */ - public JoinLineupCsReq clearPlaneId() { - bitField0_ &= ~0x00000001; - planeId = 0; - return this; - } - - /** - * optional uint32 plane_id = 7; - * @return the planeId - */ - public int getPlaneId() { - return planeId; - } - - /** - * optional uint32 plane_id = 7; - * @param value the planeId to set - * @return this - */ - public JoinLineupCsReq setPlaneId(final int value) { - bitField0_ |= 0x00000001; - planeId = value; - return this; - } - - /** - * optional uint32 index = 8; - * @return whether the index field is set - */ - public boolean hasIndex() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 index = 8; + * optional uint32 index = 1; * @return this */ public JoinLineupCsReq clearIndex() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; index = 0; return this; } /** - * optional uint32 index = 8; + * optional uint32 index = 1; * @return the index */ public int getIndex() { @@ -127,36 +90,36 @@ public final class JoinLineupCsReqOuterClass { } /** - * optional uint32 index = 8; + * optional uint32 index = 1; * @param value the index to set * @return this */ public JoinLineupCsReq setIndex(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; index = value; return this; } /** - * optional uint32 slot = 13; + * optional uint32 slot = 7; * @return whether the slot field is set */ public boolean hasSlot() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 slot = 13; + * optional uint32 slot = 7; * @return this */ public JoinLineupCsReq clearSlot() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; slot = 0; return this; } /** - * optional uint32 slot = 13; + * optional uint32 slot = 7; * @return the slot */ public int getSlot() { @@ -164,18 +127,55 @@ public final class JoinLineupCsReqOuterClass { } /** - * optional uint32 slot = 13; + * optional uint32 slot = 7; * @param value the slot to set * @return this */ public JoinLineupCsReq setSlot(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; slot = value; return this; } /** - * optional uint32 base_avatar_id = 14; + * optional uint32 plane_id = 10; + * @return whether the planeId field is set + */ + public boolean hasPlaneId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 plane_id = 10; + * @return this + */ + public JoinLineupCsReq clearPlaneId() { + bitField0_ &= ~0x00000004; + planeId = 0; + return this; + } + + /** + * optional uint32 plane_id = 10; + * @return the planeId + */ + public int getPlaneId() { + return planeId; + } + + /** + * optional uint32 plane_id = 10; + * @param value the planeId to set + * @return this + */ + public JoinLineupCsReq setPlaneId(final int value) { + bitField0_ |= 0x00000004; + planeId = value; + return this; + } + + /** + * optional uint32 base_avatar_id = 11; * @return whether the baseAvatarId field is set */ public boolean hasBaseAvatarId() { @@ -183,7 +183,7 @@ public final class JoinLineupCsReqOuterClass { } /** - * optional uint32 base_avatar_id = 14; + * optional uint32 base_avatar_id = 11; * @return this */ public JoinLineupCsReq clearBaseAvatarId() { @@ -193,7 +193,7 @@ public final class JoinLineupCsReqOuterClass { } /** - * optional uint32 base_avatar_id = 14; + * optional uint32 base_avatar_id = 11; * @return the baseAvatarId */ public int getBaseAvatarId() { @@ -201,7 +201,7 @@ public final class JoinLineupCsReqOuterClass { } /** - * optional uint32 base_avatar_id = 14; + * optional uint32 base_avatar_id = 11; * @param value the baseAvatarId to set * @return this */ @@ -212,87 +212,25 @@ public final class JoinLineupCsReqOuterClass { } /** - * optional .AvatarType avatar_type = 2; - * @return whether the avatarType field is set + * optional .ExtraLineupType extra_lineup_type = 3; + * @return whether the extraLineupType field is set */ - public boolean hasAvatarType() { + public boolean hasExtraLineupType() { return (bitField0_ & 0x00000010) != 0; } /** - * optional .AvatarType avatar_type = 2; - * @return this - */ - public JoinLineupCsReq clearAvatarType() { - bitField0_ &= ~0x00000010; - avatarType = 0; - return this; - } - - /** - * optional .AvatarType avatar_type = 2; - * @return the avatarType - */ - public AvatarTypeOuterClass.AvatarType getAvatarType() { - return AvatarTypeOuterClass.AvatarType.forNumber(avatarType); - } - - /** - * Gets the value of the internal enum store. The result is - * equivalent to {@link JoinLineupCsReq#getAvatarType()}.getNumber(). - * - * @return numeric wire representation - */ - 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 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 setAvatarTypeValue(final int value) { - bitField0_ |= 0x00000010; - avatarType = value; - return this; - } - - /** - * optional .AvatarType avatar_type = 2; - * @param value the avatarType to set - * @return this - */ - public JoinLineupCsReq setAvatarType(final AvatarTypeOuterClass.AvatarType value) { - bitField0_ |= 0x00000010; - avatarType = value.getNumber(); - return this; - } - - /** - * optional .ExtraLineupType extra_lineup_type = 6; - * @return whether the extraLineupType field is set - */ - public boolean hasExtraLineupType() { - return (bitField0_ & 0x00000020) != 0; - } - - /** - * optional .ExtraLineupType extra_lineup_type = 6; + * optional .ExtraLineupType extra_lineup_type = 3; * @return this */ public JoinLineupCsReq clearExtraLineupType() { - bitField0_ &= ~0x00000020; + bitField0_ &= ~0x00000010; extraLineupType = 0; return this; } /** - * optional .ExtraLineupType extra_lineup_type = 6; + * optional .ExtraLineupType extra_lineup_type = 3; * @return the extraLineupType */ public ExtraLineupTypeOuterClass.ExtraLineupType getExtraLineupType() { @@ -319,25 +257,87 @@ public final class JoinLineupCsReqOuterClass { * @return this */ public JoinLineupCsReq setExtraLineupTypeValue(final int value) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; extraLineupType = value; return this; } /** - * optional .ExtraLineupType extra_lineup_type = 6; + * optional .ExtraLineupType extra_lineup_type = 3; * @param value the extraLineupType to set * @return this */ public JoinLineupCsReq setExtraLineupType( final ExtraLineupTypeOuterClass.ExtraLineupType value) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; extraLineupType = value.getNumber(); return this; } /** - * optional bool is_virtual = 9; + * optional .AvatarType avatar_type = 14; + * @return whether the avatarType field is set + */ + public boolean hasAvatarType() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional .AvatarType avatar_type = 14; + * @return this + */ + public JoinLineupCsReq clearAvatarType() { + bitField0_ &= ~0x00000020; + avatarType = 0; + return this; + } + + /** + * optional .AvatarType avatar_type = 14; + * @return the avatarType + */ + public AvatarTypeOuterClass.AvatarType getAvatarType() { + return AvatarTypeOuterClass.AvatarType.forNumber(avatarType); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link JoinLineupCsReq#getAvatarType()}.getNumber(). + * + * @return numeric wire representation + */ + 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 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 setAvatarTypeValue(final int value) { + bitField0_ |= 0x00000020; + avatarType = value; + return this; + } + + /** + * optional .AvatarType avatar_type = 14; + * @param value the avatarType to set + * @return this + */ + public JoinLineupCsReq setAvatarType(final AvatarTypeOuterClass.AvatarType value) { + bitField0_ |= 0x00000020; + avatarType = value.getNumber(); + return this; + } + + /** + * optional bool is_virtual = 15; * @return whether the isVirtual field is set */ public boolean hasIsVirtual() { @@ -345,7 +345,7 @@ public final class JoinLineupCsReqOuterClass { } /** - * optional bool is_virtual = 9; + * optional bool is_virtual = 15; * @return this */ public JoinLineupCsReq clearIsVirtual() { @@ -355,7 +355,7 @@ public final class JoinLineupCsReqOuterClass { } /** - * optional bool is_virtual = 9; + * optional bool is_virtual = 15; * @return the isVirtual */ public boolean getIsVirtual() { @@ -363,7 +363,7 @@ public final class JoinLineupCsReqOuterClass { } /** - * optional bool is_virtual = 9; + * optional bool is_virtual = 15; * @param value the isVirtual to set * @return this */ @@ -378,12 +378,12 @@ public final class JoinLineupCsReqOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - planeId = other.planeId; index = other.index; slot = other.slot; + planeId = other.planeId; baseAvatarId = other.baseAvatarId; - avatarType = other.avatarType; extraLineupType = other.extraLineupType; + avatarType = other.avatarType; isVirtual = other.isVirtual; } return this; @@ -395,24 +395,24 @@ public final class JoinLineupCsReqOuterClass { return this; } cachedSize = -1; - if (other.hasPlaneId()) { - setPlaneId(other.planeId); - } if (other.hasIndex()) { setIndex(other.index); } if (other.hasSlot()) { setSlot(other.slot); } + if (other.hasPlaneId()) { + setPlaneId(other.planeId); + } if (other.hasBaseAvatarId()) { setBaseAvatarId(other.baseAvatarId); } - if (other.hasAvatarType()) { - setAvatarTypeValue(other.avatarType); - } if (other.hasExtraLineupType()) { setExtraLineupTypeValue(other.extraLineupType); } + if (other.hasAvatarType()) { + setAvatarTypeValue(other.avatarType); + } if (other.hasIsVirtual()) { setIsVirtual(other.isVirtual); } @@ -426,12 +426,12 @@ public final class JoinLineupCsReqOuterClass { } cachedSize = -1; bitField0_ = 0; - planeId = 0; index = 0; slot = 0; + planeId = 0; baseAvatarId = 0; - avatarType = 0; extraLineupType = 0; + avatarType = 0; isVirtual = false; return this; } @@ -456,43 +456,43 @@ public final class JoinLineupCsReqOuterClass { } JoinLineupCsReq other = (JoinLineupCsReq) o; return bitField0_ == other.bitField0_ - && (!hasPlaneId() || planeId == other.planeId) && (!hasIndex() || index == other.index) && (!hasSlot() || slot == other.slot) + && (!hasPlaneId() || planeId == other.planeId) && (!hasBaseAvatarId() || baseAvatarId == other.baseAvatarId) - && (!hasAvatarType() || avatarType == other.avatarType) && (!hasExtraLineupType() || extraLineupType == other.extraLineupType) + && (!hasAvatarType() || avatarType == other.avatarType) && (!hasIsVirtual() || isVirtual == other.isVirtual); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 56); - output.writeUInt32NoTag(planeId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 8); output.writeUInt32NoTag(index); } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 104); + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 56); output.writeUInt32NoTag(slot); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(planeId); + } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 88); output.writeUInt32NoTag(baseAvatarId); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 16); - output.writeEnumNoTag(avatarType); - } - if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 24); output.writeEnumNoTag(extraLineupType); } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 112); + output.writeEnumNoTag(avatarType); + } if ((bitField0_ & 0x00000040) != 0) { - output.writeRawByte((byte) 72); + output.writeRawByte((byte) 120); output.writeBoolNoTag(isVirtual); } } @@ -501,22 +501,22 @@ public final class JoinLineupCsReqOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(planeId); - } - if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(index); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(slot); } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(planeId); + } if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); } if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeEnumSizeNoTag(avatarType); + size += 1 + ProtoSink.computeEnumSizeNoTag(extraLineupType); } if ((bitField0_ & 0x00000020) != 0) { - size += 1 + ProtoSink.computeEnumSizeNoTag(extraLineupType); + size += 1 + ProtoSink.computeEnumSizeNoTag(avatarType); } if ((bitField0_ & 0x00000040) != 0) { size += 2; @@ -531,67 +531,67 @@ public final class JoinLineupCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 56: { - // planeId - planeId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 64) { - break; - } - } - case 64: { + case 8: { // index index = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 104) { + if (tag != 56) { break; } } - case 104: { + case 56: { // slot slot = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { + // planeId + planeId = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { + // baseAvatarId + baseAvatarId = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // extraLineupType + final int value = input.readInt32(); + if (ExtraLineupTypeOuterClass.ExtraLineupType.forNumber(value) != null) { + extraLineupType = value; + bitField0_ |= 0x00000010; + } + tag = input.readTag(); if (tag != 112) { break; } } case 112: { - // baseAvatarId - baseAvatarId = input.readUInt32(); - bitField0_ |= 0x00000008; - tag = input.readTag(); - if (tag != 16) { - break; - } - } - case 16: { // avatarType final int value = input.readInt32(); if (AvatarTypeOuterClass.AvatarType.forNumber(value) != null) { avatarType = value; - bitField0_ |= 0x00000010; - } - tag = input.readTag(); - if (tag != 48) { - break; - } - } - case 48: { - // extraLineupType - final int value = input.readInt32(); - if (ExtraLineupTypeOuterClass.ExtraLineupType.forNumber(value) != null) { - extraLineupType = value; bitField0_ |= 0x00000020; } tag = input.readTag(); - if (tag != 72) { + if (tag != 120) { break; } } - case 72: { + case 120: { // isVirtual isVirtual = input.readBool(); bitField0_ |= 0x00000040; @@ -618,22 +618,22 @@ public final class JoinLineupCsReqOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.planeId, planeId); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.index, index); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.slot, slot); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.planeId, planeId); + } if ((bitField0_ & 0x00000008) != 0) { output.writeUInt32(FieldNames.baseAvatarId, baseAvatarId); } if ((bitField0_ & 0x00000010) != 0) { - output.writeEnum(FieldNames.avatarType, avatarType, AvatarTypeOuterClass.AvatarType.converter()); + output.writeEnum(FieldNames.extraLineupType, extraLineupType, ExtraLineupTypeOuterClass.ExtraLineupType.converter()); } if ((bitField0_ & 0x00000020) != 0) { - output.writeEnum(FieldNames.extraLineupType, extraLineupType, ExtraLineupTypeOuterClass.ExtraLineupType.converter()); + output.writeEnum(FieldNames.avatarType, avatarType, AvatarTypeOuterClass.AvatarType.converter()); } if ((bitField0_ & 0x00000040) != 0) { output.writeBool(FieldNames.isVirtual, isVirtual); @@ -648,23 +648,11 @@ public final class JoinLineupCsReqOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -493896553: - case 1869097438: { - if (input.isAtField(FieldNames.planeId)) { - if (!input.trySkipNullValue()) { - planeId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } case 100346066: { if (input.isAtField(FieldNames.index)) { if (!input.trySkipNullValue()) { index = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } else { input.skipUnknownField(); @@ -675,6 +663,18 @@ public final class JoinLineupCsReqOuterClass { if (input.isAtField(FieldNames.slot)) { if (!input.trySkipNullValue()) { slot = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -493896553: + case 1869097438: { + if (input.isAtField(FieldNames.planeId)) { + if (!input.trySkipNullValue()) { + planeId = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -694,13 +694,13 @@ public final class JoinLineupCsReqOuterClass { } 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_ |= 0x00000010; } else { input.skipUnknownEnumValue(); @@ -711,13 +711,13 @@ public final class JoinLineupCsReqOuterClass { } 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_ |= 0x00000020; } else { input.skipUnknownEnumValue(); @@ -793,18 +793,18 @@ public final class JoinLineupCsReqOuterClass { * 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 slot = FieldName.forField("slot"); + static final FieldName planeId = FieldName.forField("planeId", "plane_id"); + static final FieldName baseAvatarId = FieldName.forField("baseAvatarId", "base_avatar_id"); - static final FieldName avatarType = FieldName.forField("avatarType", "avatar_type"); - static final FieldName extraLineupType = FieldName.forField("extraLineupType", "extra_lineup_type"); + static final FieldName avatarType = FieldName.forField("avatarType", "avatar_type"); + static final FieldName isVirtual = FieldName.forField("isVirtual", "is_virtual"); } } diff --git a/src/generated/main/emu/lunarcore/proto/KDHBAHABJMPOuterClass.java b/src/generated/main/emu/lunarcore/proto/KDHBAHABJMPOuterClass.java deleted file mode 100644 index 254bdb1..0000000 --- a/src/generated/main/emu/lunarcore/proto/KDHBAHABJMPOuterClass.java +++ /dev/null @@ -1,598 +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 KDHBAHABJMPOuterClass { - /** - * Protobuf type {@code KDHBAHABJMP} - */ - public static final class KDHBAHABJMP extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 HFCDDCPJGAK = 2; - */ - private int hFCDDCPJGAK; - - /** - * optional uint32 KAKJHOEBIOA = 5; - */ - private int kAKJHOEBIOA; - - /** - * optional uint32 LIHAFMAOKMG = 7; - */ - private int lIHAFMAOKMG; - - /** - * optional uint32 FNNEECKAFKK = 8; - */ - private int fNNEECKAFKK; - - /** - *
-     *  HJEALCCKPAO AMMMELMOKJF = 12;
-     * 
- * - * optional bool CMJFDLMBIOK = 14; - */ - private boolean cMJFDLMBIOK; - - private KDHBAHABJMP() { - } - - /** - * @return a new empty instance of {@code KDHBAHABJMP} - */ - public static KDHBAHABJMP newInstance() { - return new KDHBAHABJMP(); - } - - /** - * optional uint32 HFCDDCPJGAK = 2; - * @return whether the hFCDDCPJGAK field is set - */ - public boolean hasHFCDDCPJGAK() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 HFCDDCPJGAK = 2; - * @return this - */ - public KDHBAHABJMP clearHFCDDCPJGAK() { - bitField0_ &= ~0x00000001; - hFCDDCPJGAK = 0; - return this; - } - - /** - * optional uint32 HFCDDCPJGAK = 2; - * @return the hFCDDCPJGAK - */ - public int getHFCDDCPJGAK() { - return hFCDDCPJGAK; - } - - /** - * optional uint32 HFCDDCPJGAK = 2; - * @param value the hFCDDCPJGAK to set - * @return this - */ - public KDHBAHABJMP setHFCDDCPJGAK(final int value) { - bitField0_ |= 0x00000001; - hFCDDCPJGAK = value; - return this; - } - - /** - * optional uint32 KAKJHOEBIOA = 5; - * @return whether the kAKJHOEBIOA field is set - */ - public boolean hasKAKJHOEBIOA() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 KAKJHOEBIOA = 5; - * @return this - */ - public KDHBAHABJMP clearKAKJHOEBIOA() { - bitField0_ &= ~0x00000002; - kAKJHOEBIOA = 0; - return this; - } - - /** - * optional uint32 KAKJHOEBIOA = 5; - * @return the kAKJHOEBIOA - */ - public int getKAKJHOEBIOA() { - return kAKJHOEBIOA; - } - - /** - * optional uint32 KAKJHOEBIOA = 5; - * @param value the kAKJHOEBIOA to set - * @return this - */ - public KDHBAHABJMP setKAKJHOEBIOA(final int value) { - bitField0_ |= 0x00000002; - kAKJHOEBIOA = value; - return this; - } - - /** - * optional uint32 LIHAFMAOKMG = 7; - * @return whether the lIHAFMAOKMG field is set - */ - public boolean hasLIHAFMAOKMG() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 LIHAFMAOKMG = 7; - * @return this - */ - public KDHBAHABJMP clearLIHAFMAOKMG() { - bitField0_ &= ~0x00000004; - lIHAFMAOKMG = 0; - return this; - } - - /** - * optional uint32 LIHAFMAOKMG = 7; - * @return the lIHAFMAOKMG - */ - public int getLIHAFMAOKMG() { - return lIHAFMAOKMG; - } - - /** - * optional uint32 LIHAFMAOKMG = 7; - * @param value the lIHAFMAOKMG to set - * @return this - */ - public KDHBAHABJMP setLIHAFMAOKMG(final int value) { - bitField0_ |= 0x00000004; - lIHAFMAOKMG = value; - return this; - } - - /** - * optional uint32 FNNEECKAFKK = 8; - * @return whether the fNNEECKAFKK field is set - */ - public boolean hasFNNEECKAFKK() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional uint32 FNNEECKAFKK = 8; - * @return this - */ - public KDHBAHABJMP clearFNNEECKAFKK() { - bitField0_ &= ~0x00000008; - fNNEECKAFKK = 0; - return this; - } - - /** - * optional uint32 FNNEECKAFKK = 8; - * @return the fNNEECKAFKK - */ - public int getFNNEECKAFKK() { - return fNNEECKAFKK; - } - - /** - * optional uint32 FNNEECKAFKK = 8; - * @param value the fNNEECKAFKK to set - * @return this - */ - public KDHBAHABJMP setFNNEECKAFKK(final int value) { - bitField0_ |= 0x00000008; - fNNEECKAFKK = value; - return this; - } - - /** - *
-     *  HJEALCCKPAO AMMMELMOKJF = 12;
-     * 
- * - * optional bool CMJFDLMBIOK = 14; - * @return whether the cMJFDLMBIOK field is set - */ - public boolean hasCMJFDLMBIOK() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - *
-     *  HJEALCCKPAO AMMMELMOKJF = 12;
-     * 
- * - * optional bool CMJFDLMBIOK = 14; - * @return this - */ - public KDHBAHABJMP clearCMJFDLMBIOK() { - bitField0_ &= ~0x00000010; - cMJFDLMBIOK = false; - return this; - } - - /** - *
-     *  HJEALCCKPAO AMMMELMOKJF = 12;
-     * 
- * - * optional bool CMJFDLMBIOK = 14; - * @return the cMJFDLMBIOK - */ - public boolean getCMJFDLMBIOK() { - return cMJFDLMBIOK; - } - - /** - *
-     *  HJEALCCKPAO AMMMELMOKJF = 12;
-     * 
- * - * optional bool CMJFDLMBIOK = 14; - * @param value the cMJFDLMBIOK to set - * @return this - */ - public KDHBAHABJMP setCMJFDLMBIOK(final boolean value) { - bitField0_ |= 0x00000010; - cMJFDLMBIOK = value; - return this; - } - - @Override - public KDHBAHABJMP copyFrom(final KDHBAHABJMP other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - hFCDDCPJGAK = other.hFCDDCPJGAK; - kAKJHOEBIOA = other.kAKJHOEBIOA; - lIHAFMAOKMG = other.lIHAFMAOKMG; - fNNEECKAFKK = other.fNNEECKAFKK; - cMJFDLMBIOK = other.cMJFDLMBIOK; - } - return this; - } - - @Override - public KDHBAHABJMP mergeFrom(final KDHBAHABJMP other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasHFCDDCPJGAK()) { - setHFCDDCPJGAK(other.hFCDDCPJGAK); - } - if (other.hasKAKJHOEBIOA()) { - setKAKJHOEBIOA(other.kAKJHOEBIOA); - } - if (other.hasLIHAFMAOKMG()) { - setLIHAFMAOKMG(other.lIHAFMAOKMG); - } - if (other.hasFNNEECKAFKK()) { - setFNNEECKAFKK(other.fNNEECKAFKK); - } - if (other.hasCMJFDLMBIOK()) { - setCMJFDLMBIOK(other.cMJFDLMBIOK); - } - return this; - } - - @Override - public KDHBAHABJMP clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - hFCDDCPJGAK = 0; - kAKJHOEBIOA = 0; - lIHAFMAOKMG = 0; - fNNEECKAFKK = 0; - cMJFDLMBIOK = false; - return this; - } - - @Override - public KDHBAHABJMP 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 KDHBAHABJMP)) { - return false; - } - KDHBAHABJMP other = (KDHBAHABJMP) o; - return bitField0_ == other.bitField0_ - && (!hasHFCDDCPJGAK() || hFCDDCPJGAK == other.hFCDDCPJGAK) - && (!hasKAKJHOEBIOA() || kAKJHOEBIOA == other.kAKJHOEBIOA) - && (!hasLIHAFMAOKMG() || lIHAFMAOKMG == other.lIHAFMAOKMG) - && (!hasFNNEECKAFKK() || fNNEECKAFKK == other.fNNEECKAFKK) - && (!hasCMJFDLMBIOK() || cMJFDLMBIOK == other.cMJFDLMBIOK); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(hFCDDCPJGAK); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 40); - output.writeUInt32NoTag(kAKJHOEBIOA); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 56); - output.writeUInt32NoTag(lIHAFMAOKMG); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 64); - output.writeUInt32NoTag(fNNEECKAFKK); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 112); - output.writeBoolNoTag(cMJFDLMBIOK); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(hFCDDCPJGAK); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(kAKJHOEBIOA); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(lIHAFMAOKMG); - } - if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(fNNEECKAFKK); - } - if ((bitField0_ & 0x00000010) != 0) { - size += 2; - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public KDHBAHABJMP mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 16: { - // hFCDDCPJGAK - hFCDDCPJGAK = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 40) { - break; - } - } - case 40: { - // kAKJHOEBIOA - kAKJHOEBIOA = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 56) { - break; - } - } - case 56: { - // lIHAFMAOKMG - lIHAFMAOKMG = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 64) { - break; - } - } - case 64: { - // fNNEECKAFKK - fNNEECKAFKK = input.readUInt32(); - bitField0_ |= 0x00000008; - tag = input.readTag(); - if (tag != 112) { - break; - } - } - case 112: { - // cMJFDLMBIOK - cMJFDLMBIOK = input.readBool(); - bitField0_ |= 0x00000010; - 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.hFCDDCPJGAK, hFCDDCPJGAK); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.kAKJHOEBIOA, kAKJHOEBIOA); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.lIHAFMAOKMG, lIHAFMAOKMG); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.fNNEECKAFKK, fNNEECKAFKK); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeBool(FieldNames.cMJFDLMBIOK, cMJFDLMBIOK); - } - output.endObject(); - } - - @Override - public KDHBAHABJMP mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -1775850855: { - if (input.isAtField(FieldNames.hFCDDCPJGAK)) { - if (!input.trySkipNullValue()) { - hFCDDCPJGAK = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -2008773982: { - if (input.isAtField(FieldNames.kAKJHOEBIOA)) { - if (!input.trySkipNullValue()) { - kAKJHOEBIOA = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case -296464422: { - if (input.isAtField(FieldNames.lIHAFMAOKMG)) { - if (!input.trySkipNullValue()) { - lIHAFMAOKMG = input.readUInt32(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case 169241555: { - if (input.isAtField(FieldNames.fNNEECKAFKK)) { - if (!input.trySkipNullValue()) { - fNNEECKAFKK = input.readUInt32(); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1216373954: { - if (input.isAtField(FieldNames.cMJFDLMBIOK)) { - if (!input.trySkipNullValue()) { - cMJFDLMBIOK = input.readBool(); - bitField0_ |= 0x00000010; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public KDHBAHABJMP clone() { - return new KDHBAHABJMP().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static KDHBAHABJMP parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new KDHBAHABJMP(), data).checkInitialized(); - } - - public static KDHBAHABJMP parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new KDHBAHABJMP(), input).checkInitialized(); - } - - public static KDHBAHABJMP parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new KDHBAHABJMP(), input).checkInitialized(); - } - - /** - * @return factory for creating KDHBAHABJMP messages - */ - public static MessageFactory getFactory() { - return KDHBAHABJMPFactory.INSTANCE; - } - - private enum KDHBAHABJMPFactory implements MessageFactory { - INSTANCE; - - @Override - public KDHBAHABJMP create() { - return KDHBAHABJMP.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName hFCDDCPJGAK = FieldName.forField("HFCDDCPJGAK"); - - static final FieldName kAKJHOEBIOA = FieldName.forField("KAKJHOEBIOA"); - - static final FieldName lIHAFMAOKMG = FieldName.forField("LIHAFMAOKMG"); - - static final FieldName fNNEECKAFKK = FieldName.forField("FNNEECKAFKK"); - - static final FieldName cMJFDLMBIOK = FieldName.forField("CMJFDLMBIOK"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/LineupAvatarOuterClass.java b/src/generated/main/emu/lunarcore/proto/LineupAvatarOuterClass.java index b323561..db290eb 100644 --- a/src/generated/main/emu/lunarcore/proto/LineupAvatarOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/LineupAvatarOuterClass.java @@ -19,32 +19,32 @@ public final class LineupAvatarOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 slot = 1; - */ - private int slot; - - /** - * optional uint32 hp = 4; - */ - private int hp; - - /** - * optional uint32 satiety = 9; - */ - private int satiety; - - /** - * optional uint32 id = 11; + * optional uint32 id = 3; */ private int id; /** - * optional .AvatarType avatar_type = 5; + * optional uint32 slot = 6; + */ + private int slot; + + /** + * optional uint32 satiety = 7; + */ + private int satiety; + + /** + * optional uint32 hp = 15; + */ + private int hp; + + /** + * optional .AvatarType avatar_type = 12; */ private int avatarType; /** - * optional .SpBarInfo sp_bar = 13; + * optional .SpBarInfo sp_bar = 9; */ private final SpBarInfoOuterClass.SpBarInfo spBar = SpBarInfoOuterClass.SpBarInfo.newInstance(); @@ -59,25 +59,62 @@ public final class LineupAvatarOuterClass { } /** - * optional uint32 slot = 1; - * @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 = 1; + * optional uint32 id = 3; + * @return this + */ + public LineupAvatar clearId() { + bitField0_ &= ~0x00000001; + id = 0; + return this; + } + + /** + * optional uint32 id = 3; + * @return the id + */ + public int getId() { + return id; + } + + /** + * optional uint32 id = 3; + * @param value the id to set + * @return this + */ + public LineupAvatar setId(final int value) { + bitField0_ |= 0x00000001; + id = value; + return this; + } + + /** + * optional uint32 slot = 6; + * @return whether the slot field is set + */ + public boolean hasSlot() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 slot = 6; * @return this */ public LineupAvatar clearSlot() { - bitField0_ &= ~0x00000001; + bitField0_ &= ~0x00000002; slot = 0; return this; } /** - * optional uint32 slot = 1; + * optional uint32 slot = 6; * @return the slot */ public int getSlot() { @@ -85,55 +122,18 @@ public final class LineupAvatarOuterClass { } /** - * optional uint32 slot = 1; + * optional uint32 slot = 6; * @param value the slot to set * @return this */ public LineupAvatar setSlot(final int value) { - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; slot = value; return this; } /** - * optional uint32 hp = 4; - * @return whether the hp field is set - */ - public boolean hasHp() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 hp = 4; - * @return this - */ - public LineupAvatar clearHp() { - bitField0_ &= ~0x00000002; - hp = 0; - return this; - } - - /** - * optional uint32 hp = 4; - * @return the hp - */ - public int getHp() { - return hp; - } - - /** - * optional uint32 hp = 4; - * @param value the hp to set - * @return this - */ - public LineupAvatar setHp(final int value) { - bitField0_ |= 0x00000002; - hp = value; - return this; - } - - /** - * optional uint32 satiety = 9; + * optional uint32 satiety = 7; * @return whether the satiety field is set */ public boolean hasSatiety() { @@ -141,7 +141,7 @@ public final class LineupAvatarOuterClass { } /** - * optional uint32 satiety = 9; + * optional uint32 satiety = 7; * @return this */ public LineupAvatar clearSatiety() { @@ -151,7 +151,7 @@ public final class LineupAvatarOuterClass { } /** - * optional uint32 satiety = 9; + * optional uint32 satiety = 7; * @return the satiety */ public int getSatiety() { @@ -159,7 +159,7 @@ public final class LineupAvatarOuterClass { } /** - * optional uint32 satiety = 9; + * optional uint32 satiety = 7; * @param value the satiety to set * @return this */ @@ -170,44 +170,44 @@ public final class LineupAvatarOuterClass { } /** - * optional uint32 id = 11; - * @return whether the id field is set + * optional uint32 hp = 15; + * @return whether the hp field is set */ - public boolean hasId() { + public boolean hasHp() { return (bitField0_ & 0x00000008) != 0; } /** - * optional uint32 id = 11; + * optional uint32 hp = 15; * @return this */ - public LineupAvatar clearId() { + public LineupAvatar clearHp() { bitField0_ &= ~0x00000008; - id = 0; + hp = 0; return this; } /** - * optional uint32 id = 11; - * @return the id + * optional uint32 hp = 15; + * @return the hp */ - public int getId() { - return id; + public int getHp() { + return hp; } /** - * optional uint32 id = 11; - * @param value the id to set + * optional uint32 hp = 15; + * @param value the hp to set * @return this */ - public LineupAvatar setId(final int value) { + public LineupAvatar setHp(final int value) { bitField0_ |= 0x00000008; - id = value; + hp = value; return this; } /** - * optional .AvatarType avatar_type = 5; + * optional .AvatarType avatar_type = 12; * @return whether the avatarType field is set */ public boolean hasAvatarType() { @@ -215,7 +215,7 @@ public final class LineupAvatarOuterClass { } /** - * optional .AvatarType avatar_type = 5; + * optional .AvatarType avatar_type = 12; * @return this */ public LineupAvatar clearAvatarType() { @@ -225,7 +225,7 @@ public final class LineupAvatarOuterClass { } /** - * optional .AvatarType avatar_type = 5; + * optional .AvatarType avatar_type = 12; * @return the avatarType */ public AvatarTypeOuterClass.AvatarType getAvatarType() { @@ -258,7 +258,7 @@ public final class LineupAvatarOuterClass { } /** - * optional .AvatarType avatar_type = 5; + * optional .AvatarType avatar_type = 12; * @param value the avatarType to set * @return this */ @@ -269,7 +269,7 @@ public final class LineupAvatarOuterClass { } /** - * optional .SpBarInfo sp_bar = 13; + * optional .SpBarInfo sp_bar = 9; * @return whether the spBar field is set */ public boolean hasSpBar() { @@ -277,7 +277,7 @@ public final class LineupAvatarOuterClass { } /** - * optional .SpBarInfo sp_bar = 13; + * optional .SpBarInfo sp_bar = 9; * @return this */ public LineupAvatar clearSpBar() { @@ -287,7 +287,7 @@ public final class LineupAvatarOuterClass { } /** - * optional .SpBarInfo sp_bar = 13; + * optional .SpBarInfo sp_bar = 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. @@ -301,7 +301,7 @@ public final class LineupAvatarOuterClass { } /** - * optional .SpBarInfo sp_bar = 13; + * optional .SpBarInfo sp_bar = 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 @@ -315,7 +315,7 @@ public final class LineupAvatarOuterClass { } /** - * optional .SpBarInfo sp_bar = 13; + * optional .SpBarInfo sp_bar = 9; * @param value the spBar to set * @return this */ @@ -330,10 +330,10 @@ public final class LineupAvatarOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - slot = other.slot; - hp = other.hp; - satiety = other.satiety; id = other.id; + slot = other.slot; + satiety = other.satiety; + hp = other.hp; avatarType = other.avatarType; spBar.copyFrom(other.spBar); } @@ -346,17 +346,17 @@ public final class LineupAvatarOuterClass { return this; } cachedSize = -1; + if (other.hasId()) { + setId(other.id); + } if (other.hasSlot()) { setSlot(other.slot); } - if (other.hasHp()) { - setHp(other.hp); - } if (other.hasSatiety()) { setSatiety(other.satiety); } - if (other.hasId()) { - setId(other.id); + if (other.hasHp()) { + setHp(other.hp); } if (other.hasAvatarType()) { setAvatarTypeValue(other.avatarType); @@ -374,10 +374,10 @@ public final class LineupAvatarOuterClass { } cachedSize = -1; bitField0_ = 0; - slot = 0; - hp = 0; - satiety = 0; id = 0; + slot = 0; + satiety = 0; + hp = 0; avatarType = 0; spBar.clear(); return this; @@ -404,10 +404,10 @@ public final class LineupAvatarOuterClass { } LineupAvatar other = (LineupAvatar) o; return bitField0_ == other.bitField0_ - && (!hasSlot() || slot == other.slot) - && (!hasHp() || hp == other.hp) - && (!hasSatiety() || satiety == other.satiety) && (!hasId() || id == other.id) + && (!hasSlot() || slot == other.slot) + && (!hasSatiety() || satiety == other.satiety) + && (!hasHp() || hp == other.hp) && (!hasAvatarType() || avatarType == other.avatarType) && (!hasSpBar() || spBar.equals(other.spBar)); } @@ -415,27 +415,27 @@ public final class LineupAvatarOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(slot); + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(id); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 32); - output.writeUInt32NoTag(hp); + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(slot); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 72); + output.writeRawByte((byte) 56); output.writeUInt32NoTag(satiety); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 88); - output.writeUInt32NoTag(id); + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(hp); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 96); output.writeEnumNoTag(avatarType); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 106); + output.writeRawByte((byte) 74); output.writeMessageNoTag(spBar); } } @@ -444,16 +444,16 @@ public final class LineupAvatarOuterClass { 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(hp); + size += 1 + ProtoSink.computeUInt32SizeNoTag(slot); } if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(satiety); } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(id); + size += 1 + ProtoSink.computeUInt32SizeNoTag(hp); } if ((bitField0_ & 0x00000010) != 0) { size += 1 + ProtoSink.computeEnumSizeNoTag(avatarType); @@ -471,43 +471,43 @@ public final class LineupAvatarOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 8: { - // slot - slot = input.readUInt32(); + case 24: { + // id + id = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 32) { + if (tag != 48) { break; } } - case 32: { - // hp - hp = input.readUInt32(); + case 48: { + // slot + slot = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 72) { + if (tag != 56) { break; } } - case 72: { + case 56: { // satiety satiety = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 88) { + if (tag != 120) { break; } } - case 88: { - // id - id = input.readUInt32(); + case 120: { + // hp + hp = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 40) { + if (tag != 96) { break; } } - case 40: { + case 96: { // avatarType final int value = input.readInt32(); if (AvatarTypeOuterClass.AvatarType.forNumber(value) != null) { @@ -515,11 +515,11 @@ public final class LineupAvatarOuterClass { bitField0_ |= 0x00000010; } tag = input.readTag(); - if (tag != 106) { + if (tag != 74) { break; } } - case 106: { + case 74: { // spBar input.readMessage(spBar); bitField0_ |= 0x00000020; @@ -546,16 +546,16 @@ public final class LineupAvatarOuterClass { 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.hp, hp); + output.writeUInt32(FieldNames.slot, slot); } if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.satiety, satiety); } if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.id, id); + output.writeUInt32(FieldNames.hp, hp); } if ((bitField0_ & 0x00000010) != 0) { output.writeEnum(FieldNames.avatarType, avatarType, AvatarTypeOuterClass.AvatarType.converter()); @@ -573,10 +573,10 @@ public final class LineupAvatarOuterClass { } 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 { @@ -584,10 +584,10 @@ public final class LineupAvatarOuterClass { } break; } - case 3336: { - if (input.isAtField(FieldNames.hp)) { + case 3533310: { + if (input.isAtField(FieldNames.slot)) { if (!input.trySkipNullValue()) { - hp = input.readUInt32(); + slot = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -606,10 +606,10 @@ public final class LineupAvatarOuterClass { } break; } - case 3355: { - if (input.isAtField(FieldNames.id)) { + case 3336: { + if (input.isAtField(FieldNames.hp)) { if (!input.trySkipNullValue()) { - id = input.readUInt32(); + hp = input.readUInt32(); bitField0_ |= 0x00000008; } } else { @@ -698,13 +698,13 @@ public final class LineupAvatarOuterClass { * 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 hp = FieldName.forField("hp"); + static final FieldName slot = FieldName.forField("slot"); static final FieldName satiety = FieldName.forField("satiety"); - static final FieldName id = FieldName.forField("id"); + static final FieldName hp = FieldName.forField("hp"); static final FieldName avatarType = FieldName.forField("avatarType", "avatar_type"); diff --git a/src/generated/main/emu/lunarcore/proto/LineupInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/LineupInfoOuterClass.java index befbead..9f2eb18 100644 --- a/src/generated/main/emu/lunarcore/proto/LineupInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/LineupInfoOuterClass.java @@ -21,47 +21,47 @@ public final class LineupInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 mp = 3; + * optional uint32 mp = 7; */ private int mp; /** - * optional uint32 plane_id = 4; - */ - private int planeId; - - /** - * optional uint32 leader_slot = 5; - */ - private int leaderSlot; - - /** - * optional uint32 index = 7; - */ - private int index; - - /** - * optional uint32 max_mp = 10; + * optional uint32 max_mp = 8; */ private int maxMp; /** - * optional .ExtraLineupType extra_lineup_type = 15; + * optional uint32 plane_id = 10; + */ + private int planeId; + + /** + * optional uint32 index = 12; + */ + private int index; + + /** + * optional uint32 leader_slot = 13; + */ + private int leaderSlot; + + /** + * optional .ExtraLineupType extra_lineup_type = 6; */ private int extraLineupType; /** - * optional bool is_virtual = 8; + * optional bool is_virtual = 2; */ private boolean isVirtual; /** - * optional string name = 6; + * optional string name = 5; */ private final Utf8String name = Utf8String.newEmptyInstance(); /** - * repeated .LineupAvatar avatar_list = 2; + * repeated .LineupAvatar avatar_list = 15; */ private final RepeatedMessage avatarList = RepeatedMessage.newEmptyInstance(LineupAvatarOuterClass.LineupAvatar.getFactory()); @@ -76,7 +76,7 @@ public final class LineupInfoOuterClass { } /** - * optional uint32 mp = 3; + * optional uint32 mp = 7; * @return whether the mp field is set */ public boolean hasMp() { @@ -84,7 +84,7 @@ public final class LineupInfoOuterClass { } /** - * optional uint32 mp = 3; + * optional uint32 mp = 7; * @return this */ public LineupInfo clearMp() { @@ -94,7 +94,7 @@ public final class LineupInfoOuterClass { } /** - * optional uint32 mp = 3; + * optional uint32 mp = 7; * @return the mp */ public int getMp() { @@ -102,7 +102,7 @@ public final class LineupInfoOuterClass { } /** - * optional uint32 mp = 3; + * optional uint32 mp = 7; * @param value the mp to set * @return this */ @@ -113,25 +113,62 @@ public final class LineupInfoOuterClass { } /** - * optional uint32 plane_id = 4; - * @return whether the planeId field is set + * optional uint32 max_mp = 8; + * @return whether the maxMp field is set */ - public boolean hasPlaneId() { + public boolean hasMaxMp() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 plane_id = 4; + * optional uint32 max_mp = 8; + * @return this + */ + public LineupInfo clearMaxMp() { + bitField0_ &= ~0x00000002; + maxMp = 0; + return this; + } + + /** + * optional uint32 max_mp = 8; + * @return the maxMp + */ + public int getMaxMp() { + return maxMp; + } + + /** + * optional uint32 max_mp = 8; + * @param value the maxMp to set + * @return this + */ + public LineupInfo setMaxMp(final int value) { + bitField0_ |= 0x00000002; + maxMp = value; + return this; + } + + /** + * optional uint32 plane_id = 10; + * @return whether the planeId field is set + */ + public boolean hasPlaneId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 plane_id = 10; * @return this */ public LineupInfo clearPlaneId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000004; planeId = 0; return this; } /** - * optional uint32 plane_id = 4; + * optional uint32 plane_id = 10; * @return the planeId */ public int getPlaneId() { @@ -139,55 +176,18 @@ public final class LineupInfoOuterClass { } /** - * optional uint32 plane_id = 4; + * optional uint32 plane_id = 10; * @param value the planeId to set * @return this */ public LineupInfo setPlaneId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; planeId = value; return this; } /** - * optional uint32 leader_slot = 5; - * @return whether the leaderSlot field is set - */ - public boolean hasLeaderSlot() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 leader_slot = 5; - * @return this - */ - public LineupInfo clearLeaderSlot() { - bitField0_ &= ~0x00000004; - leaderSlot = 0; - return this; - } - - /** - * optional uint32 leader_slot = 5; - * @return the leaderSlot - */ - public int getLeaderSlot() { - return leaderSlot; - } - - /** - * optional uint32 leader_slot = 5; - * @param value the leaderSlot to set - * @return this - */ - public LineupInfo setLeaderSlot(final int value) { - bitField0_ |= 0x00000004; - leaderSlot = value; - return this; - } - - /** - * optional uint32 index = 7; + * optional uint32 index = 12; * @return whether the index field is set */ public boolean hasIndex() { @@ -195,7 +195,7 @@ public final class LineupInfoOuterClass { } /** - * optional uint32 index = 7; + * optional uint32 index = 12; * @return this */ public LineupInfo clearIndex() { @@ -205,7 +205,7 @@ public final class LineupInfoOuterClass { } /** - * optional uint32 index = 7; + * optional uint32 index = 12; * @return the index */ public int getIndex() { @@ -213,7 +213,7 @@ public final class LineupInfoOuterClass { } /** - * optional uint32 index = 7; + * optional uint32 index = 12; * @param value the index to set * @return this */ @@ -224,44 +224,44 @@ public final class LineupInfoOuterClass { } /** - * optional uint32 max_mp = 10; - * @return whether the maxMp field is set + * optional uint32 leader_slot = 13; + * @return whether the leaderSlot field is set */ - public boolean hasMaxMp() { + public boolean hasLeaderSlot() { return (bitField0_ & 0x00000010) != 0; } /** - * optional uint32 max_mp = 10; + * optional uint32 leader_slot = 13; * @return this */ - public LineupInfo clearMaxMp() { + public LineupInfo clearLeaderSlot() { bitField0_ &= ~0x00000010; - maxMp = 0; + leaderSlot = 0; return this; } /** - * optional uint32 max_mp = 10; - * @return the maxMp + * optional uint32 leader_slot = 13; + * @return the leaderSlot */ - public int getMaxMp() { - return maxMp; + public int getLeaderSlot() { + return leaderSlot; } /** - * optional uint32 max_mp = 10; - * @param value the maxMp to set + * optional uint32 leader_slot = 13; + * @param value the leaderSlot to set * @return this */ - public LineupInfo setMaxMp(final int value) { + public LineupInfo setLeaderSlot(final int value) { bitField0_ |= 0x00000010; - maxMp = value; + leaderSlot = value; return this; } /** - * optional .ExtraLineupType extra_lineup_type = 15; + * optional .ExtraLineupType extra_lineup_type = 6; * @return whether the extraLineupType field is set */ public boolean hasExtraLineupType() { @@ -269,7 +269,7 @@ public final class LineupInfoOuterClass { } /** - * optional .ExtraLineupType extra_lineup_type = 15; + * optional .ExtraLineupType extra_lineup_type = 6; * @return this */ public LineupInfo clearExtraLineupType() { @@ -279,7 +279,7 @@ public final class LineupInfoOuterClass { } /** - * optional .ExtraLineupType extra_lineup_type = 15; + * optional .ExtraLineupType extra_lineup_type = 6; * @return the extraLineupType */ public ExtraLineupTypeOuterClass.ExtraLineupType getExtraLineupType() { @@ -312,7 +312,7 @@ public final class LineupInfoOuterClass { } /** - * optional .ExtraLineupType extra_lineup_type = 15; + * optional .ExtraLineupType extra_lineup_type = 6; * @param value the extraLineupType to set * @return this */ @@ -323,7 +323,7 @@ public final class LineupInfoOuterClass { } /** - * optional bool is_virtual = 8; + * optional bool is_virtual = 2; * @return whether the isVirtual field is set */ public boolean hasIsVirtual() { @@ -331,7 +331,7 @@ public final class LineupInfoOuterClass { } /** - * optional bool is_virtual = 8; + * optional bool is_virtual = 2; * @return this */ public LineupInfo clearIsVirtual() { @@ -341,7 +341,7 @@ public final class LineupInfoOuterClass { } /** - * optional bool is_virtual = 8; + * optional bool is_virtual = 2; * @return the isVirtual */ public boolean getIsVirtual() { @@ -349,7 +349,7 @@ public final class LineupInfoOuterClass { } /** - * optional bool is_virtual = 8; + * optional bool is_virtual = 2; * @param value the isVirtual to set * @return this */ @@ -360,7 +360,7 @@ public final class LineupInfoOuterClass { } /** - * optional string name = 6; + * optional string name = 5; * @return whether the name field is set */ public boolean hasName() { @@ -368,7 +368,7 @@ public final class LineupInfoOuterClass { } /** - * optional string name = 6; + * optional string name = 5; * @return this */ public LineupInfo clearName() { @@ -378,7 +378,7 @@ public final class LineupInfoOuterClass { } /** - * optional string name = 6; + * optional string name = 5; * @return the name */ public String getName() { @@ -386,7 +386,7 @@ public final class LineupInfoOuterClass { } /** - * optional string name = 6; + * optional string name = 5; * @return internal {@code Utf8String} representation of name for reading */ public Utf8String getNameBytes() { @@ -394,7 +394,7 @@ public final class LineupInfoOuterClass { } /** - * optional string name = 6; + * optional string name = 5; * @return internal {@code Utf8String} representation of name for modifications */ public Utf8String getMutableNameBytes() { @@ -403,7 +403,7 @@ public final class LineupInfoOuterClass { } /** - * optional string name = 6; + * optional string name = 5; * @param value the name to set * @return this */ @@ -414,7 +414,7 @@ public final class LineupInfoOuterClass { } /** - * optional string name = 6; + * optional string name = 5; * @param value the name to set * @return this */ @@ -425,7 +425,7 @@ public final class LineupInfoOuterClass { } /** - * repeated .LineupAvatar avatar_list = 2; + * repeated .LineupAvatar avatar_list = 15; * @return whether the avatarList field is set */ public boolean hasAvatarList() { @@ -433,7 +433,7 @@ public final class LineupInfoOuterClass { } /** - * repeated .LineupAvatar avatar_list = 2; + * repeated .LineupAvatar avatar_list = 15; * @return this */ public LineupInfo clearAvatarList() { @@ -443,7 +443,7 @@ public final class LineupInfoOuterClass { } /** - * repeated .LineupAvatar avatar_list = 2; + * repeated .LineupAvatar avatar_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. @@ -457,7 +457,7 @@ public final class LineupInfoOuterClass { } /** - * repeated .LineupAvatar avatar_list = 2; + * repeated .LineupAvatar avatar_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 @@ -471,7 +471,7 @@ public final class LineupInfoOuterClass { } /** - * repeated .LineupAvatar avatar_list = 2; + * repeated .LineupAvatar avatar_list = 15; * @param value the avatarList to add * @return this */ @@ -482,7 +482,7 @@ public final class LineupInfoOuterClass { } /** - * repeated .LineupAvatar avatar_list = 2; + * repeated .LineupAvatar avatar_list = 15; * @param values the avatarList to add * @return this */ @@ -498,10 +498,10 @@ public final class LineupInfoOuterClass { if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; mp = other.mp; - planeId = other.planeId; - leaderSlot = other.leaderSlot; - index = other.index; maxMp = other.maxMp; + planeId = other.planeId; + index = other.index; + leaderSlot = other.leaderSlot; extraLineupType = other.extraLineupType; isVirtual = other.isVirtual; name.copyFrom(other.name); @@ -519,17 +519,17 @@ public final class LineupInfoOuterClass { if (other.hasMp()) { setMp(other.mp); } + if (other.hasMaxMp()) { + setMaxMp(other.maxMp); + } if (other.hasPlaneId()) { setPlaneId(other.planeId); } - if (other.hasLeaderSlot()) { - setLeaderSlot(other.leaderSlot); - } if (other.hasIndex()) { setIndex(other.index); } - if (other.hasMaxMp()) { - setMaxMp(other.maxMp); + if (other.hasLeaderSlot()) { + setLeaderSlot(other.leaderSlot); } if (other.hasExtraLineupType()) { setExtraLineupTypeValue(other.extraLineupType); @@ -554,10 +554,10 @@ public final class LineupInfoOuterClass { cachedSize = -1; bitField0_ = 0; mp = 0; - planeId = 0; - leaderSlot = 0; - index = 0; maxMp = 0; + planeId = 0; + index = 0; + leaderSlot = 0; extraLineupType = 0; isVirtual = false; name.clear(); @@ -588,10 +588,10 @@ public final class LineupInfoOuterClass { LineupInfo other = (LineupInfo) o; return bitField0_ == other.bitField0_ && (!hasMp() || mp == other.mp) - && (!hasPlaneId() || planeId == other.planeId) - && (!hasLeaderSlot() || leaderSlot == other.leaderSlot) - && (!hasIndex() || index == other.index) && (!hasMaxMp() || maxMp == other.maxMp) + && (!hasPlaneId() || planeId == other.planeId) + && (!hasIndex() || index == other.index) + && (!hasLeaderSlot() || leaderSlot == other.leaderSlot) && (!hasExtraLineupType() || extraLineupType == other.extraLineupType) && (!hasIsVirtual() || isVirtual == other.isVirtual) && (!hasName() || name.equals(other.name)) @@ -601,40 +601,40 @@ public final class LineupInfoOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 56); output.writeUInt32NoTag(mp); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 32); - output.writeUInt32NoTag(planeId); + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(maxMp); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 40); - output.writeUInt32NoTag(leaderSlot); + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(planeId); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 96); output.writeUInt32NoTag(index); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 80); - output.writeUInt32NoTag(maxMp); + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(leaderSlot); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 48); output.writeEnumNoTag(extraLineupType); } if ((bitField0_ & 0x00000040) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 16); output.writeBoolNoTag(isVirtual); } if ((bitField0_ & 0x00000080) != 0) { - output.writeRawByte((byte) 50); + output.writeRawByte((byte) 42); output.writeStringNoTag(name); } if ((bitField0_ & 0x00000100) != 0) { for (int i = 0; i < avatarList.length(); i++) { - output.writeRawByte((byte) 18); + output.writeRawByte((byte) 122); output.writeMessageNoTag(avatarList.get(i)); } } @@ -647,16 +647,16 @@ public final class LineupInfoOuterClass { size += 1 + ProtoSink.computeUInt32SizeNoTag(mp); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(planeId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(maxMp); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(leaderSlot); + size += 1 + ProtoSink.computeUInt32SizeNoTag(planeId); } if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(index); } if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(maxMp); + size += 1 + ProtoSink.computeUInt32SizeNoTag(leaderSlot); } if ((bitField0_ & 0x00000020) != 0) { size += 1 + ProtoSink.computeEnumSizeNoTag(extraLineupType); @@ -680,52 +680,52 @@ public final class LineupInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 24: { + case 56: { // mp mp = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 32) { + if (tag != 64) { break; } } - case 32: { - // planeId - planeId = input.readUInt32(); + case 64: { + // maxMp + maxMp = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 40) { - break; - } - } - case 40: { - // leaderSlot - leaderSlot = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 56) { - break; - } - } - case 56: { - // index - index = input.readUInt32(); - bitField0_ |= 0x00000008; - tag = input.readTag(); if (tag != 80) { break; } } case 80: { - // maxMp - maxMp = input.readUInt32(); - bitField0_ |= 0x00000010; + // planeId + planeId = input.readUInt32(); + bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 120) { + if (tag != 96) { break; } } - case 120: { + case 96: { + // index + index = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // leaderSlot + leaderSlot = input.readUInt32(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { // extraLineupType final int value = input.readInt32(); if (ExtraLineupTypeOuterClass.ExtraLineupType.forNumber(value) != null) { @@ -733,29 +733,29 @@ public final class LineupInfoOuterClass { bitField0_ |= 0x00000020; } tag = input.readTag(); - if (tag != 64) { + if (tag != 16) { break; } } - case 64: { + case 16: { // isVirtual isVirtual = input.readBool(); bitField0_ |= 0x00000040; tag = input.readTag(); - if (tag != 50) { + if (tag != 42) { break; } } - case 50: { + case 42: { // name input.readString(name); bitField0_ |= 0x00000080; tag = input.readTag(); - if (tag != 18) { + if (tag != 122) { break; } } - case 18: { + case 122: { // avatarList tag = input.readRepeatedMessage(avatarList, tag); bitField0_ |= 0x00000100; @@ -784,16 +784,16 @@ public final class LineupInfoOuterClass { output.writeUInt32(FieldNames.mp, mp); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.planeId, planeId); + output.writeUInt32(FieldNames.maxMp, maxMp); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.leaderSlot, leaderSlot); + output.writeUInt32(FieldNames.planeId, planeId); } if ((bitField0_ & 0x00000008) != 0) { output.writeUInt32(FieldNames.index, index); } if ((bitField0_ & 0x00000010) != 0) { - output.writeUInt32(FieldNames.maxMp, maxMp); + output.writeUInt32(FieldNames.leaderSlot, leaderSlot); } if ((bitField0_ & 0x00000020) != 0) { output.writeEnum(FieldNames.extraLineupType, extraLineupType, ExtraLineupTypeOuterClass.ExtraLineupType.converter()); @@ -828,11 +828,11 @@ public final class LineupInfoOuterClass { } break; } - case -493896553: - case 1869097438: { - if (input.isAtField(FieldNames.planeId)) { + case 103671335: + case -1081138594: { + if (input.isAtField(FieldNames.maxMp)) { if (!input.trySkipNullValue()) { - planeId = input.readUInt32(); + maxMp = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -840,11 +840,11 @@ public final class LineupInfoOuterClass { } 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 { @@ -863,11 +863,11 @@ public final class LineupInfoOuterClass { } break; } - case 103671335: - case -1081138594: { - if (input.isAtField(FieldNames.maxMp)) { + case 1191442087: + case -1708713100: { + if (input.isAtField(FieldNames.leaderSlot)) { if (!input.trySkipNullValue()) { - maxMp = input.readUInt32(); + leaderSlot = input.readUInt32(); bitField0_ |= 0x00000010; } } else { @@ -981,13 +981,13 @@ public final class LineupInfoOuterClass { static class FieldNames { static final FieldName mp = FieldName.forField("mp"); - static final FieldName planeId = FieldName.forField("planeId", "plane_id"); + static final FieldName maxMp = FieldName.forField("maxMp", "max_mp"); - static final FieldName leaderSlot = FieldName.forField("leaderSlot", "leader_slot"); + static final FieldName planeId = FieldName.forField("planeId", "plane_id"); static final FieldName index = FieldName.forField("index"); - static final FieldName maxMp = FieldName.forField("maxMp", "max_mp"); + static final FieldName leaderSlot = FieldName.forField("leaderSlot", "leader_slot"); static final FieldName extraLineupType = FieldName.forField("extraLineupType", "extra_lineup_type"); diff --git a/src/generated/main/emu/lunarcore/proto/LineupSlotDataOuterClass.java b/src/generated/main/emu/lunarcore/proto/LineupSlotDataOuterClass.java index fa553b3..e981cca 100644 --- a/src/generated/main/emu/lunarcore/proto/LineupSlotDataOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/LineupSlotDataOuterClass.java @@ -19,7 +19,7 @@ public final class LineupSlotDataOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 id = 3; + * optional uint32 id = 6; */ private int id; @@ -29,7 +29,7 @@ public final class LineupSlotDataOuterClass { private int slot; /** - * optional .AvatarType avatar_type = 2; + * optional .AvatarType avatar_type = 15; */ private int avatarType; @@ -44,7 +44,7 @@ public final class LineupSlotDataOuterClass { } /** - * optional uint32 id = 3; + * optional uint32 id = 6; * @return whether the id field is set */ public boolean hasId() { @@ -52,7 +52,7 @@ public final class LineupSlotDataOuterClass { } /** - * optional uint32 id = 3; + * optional uint32 id = 6; * @return this */ public LineupSlotData clearId() { @@ -62,7 +62,7 @@ public final class LineupSlotDataOuterClass { } /** - * optional uint32 id = 3; + * optional uint32 id = 6; * @return the id */ public int getId() { @@ -70,7 +70,7 @@ public final class LineupSlotDataOuterClass { } /** - * optional uint32 id = 3; + * optional uint32 id = 6; * @param value the id to set * @return this */ @@ -118,7 +118,7 @@ public final class LineupSlotDataOuterClass { } /** - * optional .AvatarType avatar_type = 2; + * optional .AvatarType avatar_type = 15; * @return whether the avatarType field is set */ public boolean hasAvatarType() { @@ -126,7 +126,7 @@ public final class LineupSlotDataOuterClass { } /** - * optional .AvatarType avatar_type = 2; + * optional .AvatarType avatar_type = 15; * @return this */ public LineupSlotData clearAvatarType() { @@ -136,7 +136,7 @@ public final class LineupSlotDataOuterClass { } /** - * optional .AvatarType avatar_type = 2; + * optional .AvatarType avatar_type = 15; * @return the avatarType */ public AvatarTypeOuterClass.AvatarType getAvatarType() { @@ -169,7 +169,7 @@ public final class LineupSlotDataOuterClass { } /** - * optional .AvatarType avatar_type = 2; + * optional .AvatarType avatar_type = 15; * @param value the avatarType to set * @return this */ @@ -250,7 +250,7 @@ public final class LineupSlotDataOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 48); output.writeUInt32NoTag(id); } if ((bitField0_ & 0x00000002) != 0) { @@ -258,7 +258,7 @@ public final class LineupSlotDataOuterClass { output.writeUInt32NoTag(slot); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 16); + output.writeRawByte((byte) 120); output.writeEnumNoTag(avatarType); } } @@ -285,7 +285,7 @@ public final class LineupSlotDataOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 24: { + case 48: { // id id = input.readUInt32(); bitField0_ |= 0x00000001; @@ -299,11 +299,11 @@ public final class LineupSlotDataOuterClass { slot = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 16) { + if (tag != 120) { break; } } - case 16: { + case 120: { // avatarType final int value = input.readInt32(); if (AvatarTypeOuterClass.AvatarType.forNumber(value) != null) { diff --git a/src/generated/main/emu/lunarcore/proto/LockEquipmentCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/LockEquipmentCsReqOuterClass.java index 8d8519b..ce771b0 100644 --- a/src/generated/main/emu/lunarcore/proto/LockEquipmentCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/LockEquipmentCsReqOuterClass.java @@ -19,12 +19,12 @@ public final class LockEquipmentCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 equipment_unique_id = 15; + * optional uint32 equipment_unique_id = 4; */ private int equipmentUniqueId; /** - * optional bool is_protected = 8; + * optional bool is_protected = 11; */ private boolean isProtected; @@ -39,7 +39,7 @@ public final class LockEquipmentCsReqOuterClass { } /** - * optional uint32 equipment_unique_id = 15; + * optional uint32 equipment_unique_id = 4; * @return whether the equipmentUniqueId field is set */ public boolean hasEquipmentUniqueId() { @@ -47,7 +47,7 @@ public final class LockEquipmentCsReqOuterClass { } /** - * optional uint32 equipment_unique_id = 15; + * optional uint32 equipment_unique_id = 4; * @return this */ public LockEquipmentCsReq clearEquipmentUniqueId() { @@ -57,7 +57,7 @@ public final class LockEquipmentCsReqOuterClass { } /** - * optional uint32 equipment_unique_id = 15; + * optional uint32 equipment_unique_id = 4; * @return the equipmentUniqueId */ public int getEquipmentUniqueId() { @@ -65,7 +65,7 @@ public final class LockEquipmentCsReqOuterClass { } /** - * optional uint32 equipment_unique_id = 15; + * optional uint32 equipment_unique_id = 4; * @param value the equipmentUniqueId to set * @return this */ @@ -76,7 +76,7 @@ public final class LockEquipmentCsReqOuterClass { } /** - * optional bool is_protected = 8; + * optional bool is_protected = 11; * @return whether the isProtected field is set */ public boolean hasIsProtected() { @@ -84,7 +84,7 @@ public final class LockEquipmentCsReqOuterClass { } /** - * optional bool is_protected = 8; + * optional bool is_protected = 11; * @return this */ public LockEquipmentCsReq clearIsProtected() { @@ -94,7 +94,7 @@ public final class LockEquipmentCsReqOuterClass { } /** - * optional bool is_protected = 8; + * optional bool is_protected = 11; * @return the isProtected */ public boolean getIsProtected() { @@ -102,7 +102,7 @@ public final class LockEquipmentCsReqOuterClass { } /** - * optional bool is_protected = 8; + * optional bool is_protected = 11; * @param value the isProtected to set * @return this */ @@ -177,11 +177,11 @@ public final class LockEquipmentCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(equipmentUniqueId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 88); output.writeBoolNoTag(isProtected); } } @@ -205,16 +205,16 @@ public final class LockEquipmentCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 120: { + case 32: { // equipmentUniqueId equipmentUniqueId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 64) { + if (tag != 88) { break; } } - case 64: { + case 88: { // 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 da73975..7be68e1 100644 --- a/src/generated/main/emu/lunarcore/proto/LockEquipmentScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/LockEquipmentScRspOuterClass.java @@ -19,15 +19,15 @@ public final class LockEquipmentScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 6; - */ - private int retcode; - - /** - * optional uint32 equipment_unique_id = 13; + * optional uint32 equipment_unique_id = 3; */ private int equipmentUniqueId; + /** + * optional uint32 retcode = 13; + */ + private int retcode; + private LockEquipmentScRsp() { } @@ -39,62 +39,25 @@ public final class LockEquipmentScRspOuterClass { } /** - * optional uint32 retcode = 6; - * @return whether the retcode field is set + * optional uint32 equipment_unique_id = 3; + * @return whether the equipmentUniqueId field is set */ - public boolean hasRetcode() { + public boolean hasEquipmentUniqueId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 retcode = 6; - * @return this - */ - public LockEquipmentScRsp clearRetcode() { - bitField0_ &= ~0x00000001; - retcode = 0; - return this; - } - - /** - * optional uint32 retcode = 6; - * @return the retcode - */ - public int getRetcode() { - return retcode; - } - - /** - * optional uint32 retcode = 6; - * @param value the retcode to set - * @return this - */ - public LockEquipmentScRsp setRetcode(final int value) { - bitField0_ |= 0x00000001; - retcode = value; - return this; - } - - /** - * optional uint32 equipment_unique_id = 13; - * @return whether the equipmentUniqueId field is set - */ - public boolean hasEquipmentUniqueId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 equipment_unique_id = 13; + * optional uint32 equipment_unique_id = 3; * @return this */ public LockEquipmentScRsp clearEquipmentUniqueId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; equipmentUniqueId = 0; return this; } /** - * optional uint32 equipment_unique_id = 13; + * optional uint32 equipment_unique_id = 3; * @return the equipmentUniqueId */ public int getEquipmentUniqueId() { @@ -102,23 +65,60 @@ public final class LockEquipmentScRspOuterClass { } /** - * optional uint32 equipment_unique_id = 13; + * optional uint32 equipment_unique_id = 3; * @param value the equipmentUniqueId to set * @return this */ public LockEquipmentScRsp setEquipmentUniqueId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; equipmentUniqueId = value; return this; } + /** + * optional uint32 retcode = 13; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 retcode = 13; + * @return this + */ + public LockEquipmentScRsp clearRetcode() { + bitField0_ &= ~0x00000002; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 13; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 13; + * @param value the retcode to set + * @return this + */ + public LockEquipmentScRsp setRetcode(final int value) { + bitField0_ |= 0x00000002; + retcode = value; + return this; + } + @Override public LockEquipmentScRsp copyFrom(final LockEquipmentScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - retcode = other.retcode; equipmentUniqueId = other.equipmentUniqueId; + retcode = other.retcode; } return this; } @@ -129,12 +129,12 @@ public final class LockEquipmentScRspOuterClass { return this; } cachedSize = -1; - if (other.hasRetcode()) { - setRetcode(other.retcode); - } if (other.hasEquipmentUniqueId()) { setEquipmentUniqueId(other.equipmentUniqueId); } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } return this; } @@ -145,8 +145,8 @@ public final class LockEquipmentScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - retcode = 0; equipmentUniqueId = 0; + retcode = 0; return this; } @@ -170,19 +170,19 @@ public final class LockEquipmentScRspOuterClass { } LockEquipmentScRsp other = (LockEquipmentScRsp) o; return bitField0_ == other.bitField0_ - && (!hasRetcode() || retcode == other.retcode) - && (!hasEquipmentUniqueId() || equipmentUniqueId == other.equipmentUniqueId); + && (!hasEquipmentUniqueId() || equipmentUniqueId == other.equipmentUniqueId) + && (!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.writeRawByte((byte) 24); + output.writeUInt32NoTag(equipmentUniqueId); } if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 104); - output.writeUInt32NoTag(equipmentUniqueId); + output.writeUInt32NoTag(retcode); } } @@ -190,10 +190,10 @@ public final class LockEquipmentScRspOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(equipmentUniqueId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(equipmentUniqueId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } return size; } @@ -205,9 +205,9 @@ public final class LockEquipmentScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 48: { - // retcode - retcode = input.readUInt32(); + case 24: { + // equipmentUniqueId + equipmentUniqueId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 104) { @@ -215,8 +215,8 @@ public final class LockEquipmentScRspOuterClass { } } case 104: { - // equipmentUniqueId - equipmentUniqueId = input.readUInt32(); + // retcode + retcode = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { @@ -241,10 +241,10 @@ public final class LockEquipmentScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.equipmentUniqueId, equipmentUniqueId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.equipmentUniqueId, equipmentUniqueId); + output.writeUInt32(FieldNames.retcode, retcode); } output.endObject(); } @@ -256,10 +256,11 @@ public final class LockEquipmentScRspOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { + case -1867136902: + case 760467160: { + if (input.isAtField(FieldNames.equipmentUniqueId)) { if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); + equipmentUniqueId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -267,11 +268,10 @@ public final class LockEquipmentScRspOuterClass { } break; } - case -1867136902: - case 760467160: { - if (input.isAtField(FieldNames.equipmentUniqueId)) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { - equipmentUniqueId = input.readUInt32(); + retcode = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -332,9 +332,9 @@ public final class LockEquipmentScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName retcode = FieldName.forField("retcode"); - static final FieldName equipmentUniqueId = FieldName.forField("equipmentUniqueId", "equipment_unique_id"); + + static final FieldName retcode = FieldName.forField("retcode"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/LockRelicCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/LockRelicCsReqOuterClass.java index b64419c..5994778 100644 --- a/src/generated/main/emu/lunarcore/proto/LockRelicCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/LockRelicCsReqOuterClass.java @@ -19,12 +19,12 @@ public final class LockRelicCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 relic_unique_id = 14; + * optional uint32 relic_unique_id = 1; */ private int relicUniqueId; /** - * optional bool is_protected = 1; + * optional bool is_protected = 10; */ private boolean isProtected; @@ -39,7 +39,7 @@ public final class LockRelicCsReqOuterClass { } /** - * optional uint32 relic_unique_id = 14; + * optional uint32 relic_unique_id = 1; * @return whether the relicUniqueId field is set */ public boolean hasRelicUniqueId() { @@ -47,7 +47,7 @@ public final class LockRelicCsReqOuterClass { } /** - * optional uint32 relic_unique_id = 14; + * optional uint32 relic_unique_id = 1; * @return this */ public LockRelicCsReq clearRelicUniqueId() { @@ -57,7 +57,7 @@ public final class LockRelicCsReqOuterClass { } /** - * optional uint32 relic_unique_id = 14; + * optional uint32 relic_unique_id = 1; * @return the relicUniqueId */ public int getRelicUniqueId() { @@ -65,7 +65,7 @@ public final class LockRelicCsReqOuterClass { } /** - * optional uint32 relic_unique_id = 14; + * optional uint32 relic_unique_id = 1; * @param value the relicUniqueId to set * @return this */ @@ -76,7 +76,7 @@ public final class LockRelicCsReqOuterClass { } /** - * optional bool is_protected = 1; + * optional bool is_protected = 10; * @return whether the isProtected field is set */ public boolean hasIsProtected() { @@ -84,7 +84,7 @@ public final class LockRelicCsReqOuterClass { } /** - * optional bool is_protected = 1; + * optional bool is_protected = 10; * @return this */ public LockRelicCsReq clearIsProtected() { @@ -94,7 +94,7 @@ public final class LockRelicCsReqOuterClass { } /** - * optional bool is_protected = 1; + * optional bool is_protected = 10; * @return the isProtected */ public boolean getIsProtected() { @@ -102,7 +102,7 @@ public final class LockRelicCsReqOuterClass { } /** - * optional bool is_protected = 1; + * optional bool is_protected = 10; * @param value the isProtected to set * @return this */ @@ -177,11 +177,11 @@ public final class LockRelicCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 8); output.writeUInt32NoTag(relicUniqueId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 8); + output.writeRawByte((byte) 80); output.writeBoolNoTag(isProtected); } } @@ -205,16 +205,16 @@ public final class LockRelicCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 112: { + case 8: { // relicUniqueId relicUniqueId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 8) { + if (tag != 80) { break; } } - case 8: { + case 80: { // 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 db43e7e..8b168ea 100644 --- a/src/generated/main/emu/lunarcore/proto/LockRelicScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/LockRelicScRspOuterClass.java @@ -19,15 +19,15 @@ public final class LockRelicScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 2; - */ - private int retcode; - - /** - * optional uint32 relic_unique_id = 3; + * optional uint32 relic_unique_id = 4; */ private int relicUniqueId; + /** + * optional uint32 retcode = 7; + */ + private int retcode; + private LockRelicScRsp() { } @@ -39,62 +39,25 @@ public final class LockRelicScRspOuterClass { } /** - * optional uint32 retcode = 2; - * @return whether the retcode field is set + * optional uint32 relic_unique_id = 4; + * @return whether the relicUniqueId field is set */ - public boolean hasRetcode() { + public boolean hasRelicUniqueId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 retcode = 2; - * @return this - */ - public LockRelicScRsp 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 LockRelicScRsp setRetcode(final int value) { - bitField0_ |= 0x00000001; - retcode = value; - return this; - } - - /** - * optional uint32 relic_unique_id = 3; - * @return whether the relicUniqueId field is set - */ - public boolean hasRelicUniqueId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 relic_unique_id = 3; + * optional uint32 relic_unique_id = 4; * @return this */ public LockRelicScRsp clearRelicUniqueId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; relicUniqueId = 0; return this; } /** - * optional uint32 relic_unique_id = 3; + * optional uint32 relic_unique_id = 4; * @return the relicUniqueId */ public int getRelicUniqueId() { @@ -102,23 +65,60 @@ public final class LockRelicScRspOuterClass { } /** - * optional uint32 relic_unique_id = 3; + * optional uint32 relic_unique_id = 4; * @param value the relicUniqueId to set * @return this */ public LockRelicScRsp setRelicUniqueId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; relicUniqueId = value; return this; } + /** + * optional uint32 retcode = 7; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 retcode = 7; + * @return this + */ + public LockRelicScRsp clearRetcode() { + bitField0_ &= ~0x00000002; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 7; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 7; + * @param value the retcode to set + * @return this + */ + public LockRelicScRsp setRetcode(final int value) { + bitField0_ |= 0x00000002; + retcode = value; + return this; + } + @Override public LockRelicScRsp copyFrom(final LockRelicScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - retcode = other.retcode; relicUniqueId = other.relicUniqueId; + retcode = other.retcode; } return this; } @@ -129,12 +129,12 @@ public final class LockRelicScRspOuterClass { return this; } cachedSize = -1; - if (other.hasRetcode()) { - setRetcode(other.retcode); - } if (other.hasRelicUniqueId()) { setRelicUniqueId(other.relicUniqueId); } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } return this; } @@ -145,8 +145,8 @@ public final class LockRelicScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - retcode = 0; relicUniqueId = 0; + retcode = 0; return this; } @@ -170,19 +170,19 @@ public final class LockRelicScRspOuterClass { } LockRelicScRsp other = (LockRelicScRsp) o; return bitField0_ == other.bitField0_ - && (!hasRetcode() || retcode == other.retcode) - && (!hasRelicUniqueId() || relicUniqueId == other.relicUniqueId); + && (!hasRelicUniqueId() || relicUniqueId == other.relicUniqueId) + && (!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) 32); + output.writeUInt32NoTag(relicUniqueId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(relicUniqueId); + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(retcode); } } @@ -190,10 +190,10 @@ public final class LockRelicScRspOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(relicUniqueId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(relicUniqueId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } return size; } @@ -205,18 +205,18 @@ public final class LockRelicScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { - // retcode - retcode = input.readUInt32(); + case 32: { + // relicUniqueId + relicUniqueId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 24) { + if (tag != 56) { break; } } - case 24: { - // relicUniqueId - relicUniqueId = input.readUInt32(); + case 56: { + // retcode + retcode = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { @@ -241,10 +241,10 @@ public final class LockRelicScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.relicUniqueId, relicUniqueId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.relicUniqueId, relicUniqueId); + output.writeUInt32(FieldNames.retcode, retcode); } output.endObject(); } @@ -256,10 +256,11 @@ public final class LockRelicScRspOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - 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_ |= 0x00000001; } } else { @@ -267,11 +268,10 @@ public final class LockRelicScRspOuterClass { } break; } - 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_ |= 0x00000002; } } else { @@ -332,9 +332,9 @@ public final class LockRelicScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName retcode = FieldName.forField("retcode"); - static final FieldName relicUniqueId = FieldName.forField("relicUniqueId", "relic_unique_id"); + + static final FieldName retcode = FieldName.forField("retcode"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/MECNPEEJJDEOuterClass.java b/src/generated/main/emu/lunarcore/proto/MECNPEEJJDEOuterClass.java index 424019b..5a4b7c5 100644 --- a/src/generated/main/emu/lunarcore/proto/MECNPEEJJDEOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/MECNPEEJJDEOuterClass.java @@ -20,7 +20,7 @@ public final class MECNPEEJJDEOuterClass { /** *
-     * LJABGHIILFI DHJPHJOBLLB = 7;
+     *  idk
      * 
* * optional uint32 GLFDHAJPJDF = 3; @@ -39,7 +39,7 @@ public final class MECNPEEJJDEOuterClass { /** *
-     * LJABGHIILFI DHJPHJOBLLB = 7;
+     *  idk
      * 
* * optional uint32 GLFDHAJPJDF = 3; @@ -51,7 +51,7 @@ public final class MECNPEEJJDEOuterClass { /** *
-     * LJABGHIILFI DHJPHJOBLLB = 7;
+     *  idk
      * 
* * optional uint32 GLFDHAJPJDF = 3; @@ -65,7 +65,7 @@ public final class MECNPEEJJDEOuterClass { /** *
-     * LJABGHIILFI DHJPHJOBLLB = 7;
+     *  idk
      * 
* * optional uint32 GLFDHAJPJDF = 3; @@ -77,7 +77,7 @@ public final class MECNPEEJJDEOuterClass { /** *
-     * LJABGHIILFI DHJPHJOBLLB = 7;
+     *  idk
      * 
* * optional uint32 GLFDHAJPJDF = 3; diff --git a/src/generated/main/emu/lunarcore/proto/MEMPJPLINCNOuterClass.java b/src/generated/main/emu/lunarcore/proto/MEMPJPLINCNOuterClass.java deleted file mode 100644 index 7bcaed2..0000000 --- a/src/generated/main/emu/lunarcore/proto/MEMPJPLINCNOuterClass.java +++ /dev/null @@ -1,480 +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 MEMPJPLINCNOuterClass { - /** - * Protobuf type {@code MEMPJPLINCN} - */ - public static final class MEMPJPLINCN extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 HFHKBMGBJAN = 15; - */ - private int hFHKBMGBJAN; - - /** - * optional .ItemList NHCHCBBLKBK = 6; - */ - private final ItemListOuterClass.ItemList nHCHCBBLKBK = ItemListOuterClass.ItemList.newInstance(); - - /** - * repeated uint32 BLGIMDCNDHJ = 5; - */ - private final RepeatedInt bLGIMDCNDHJ = RepeatedInt.newEmptyInstance(); - - private MEMPJPLINCN() { - } - - /** - * @return a new empty instance of {@code MEMPJPLINCN} - */ - public static MEMPJPLINCN newInstance() { - return new MEMPJPLINCN(); - } - - /** - * optional uint32 HFHKBMGBJAN = 15; - * @return whether the hFHKBMGBJAN field is set - */ - public boolean hasHFHKBMGBJAN() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 HFHKBMGBJAN = 15; - * @return this - */ - public MEMPJPLINCN clearHFHKBMGBJAN() { - bitField0_ &= ~0x00000001; - hFHKBMGBJAN = 0; - return this; - } - - /** - * optional uint32 HFHKBMGBJAN = 15; - * @return the hFHKBMGBJAN - */ - public int getHFHKBMGBJAN() { - return hFHKBMGBJAN; - } - - /** - * optional uint32 HFHKBMGBJAN = 15; - * @param value the hFHKBMGBJAN to set - * @return this - */ - public MEMPJPLINCN setHFHKBMGBJAN(final int value) { - bitField0_ |= 0x00000001; - hFHKBMGBJAN = value; - return this; - } - - /** - * optional .ItemList NHCHCBBLKBK = 6; - * @return whether the nHCHCBBLKBK field is set - */ - public boolean hasNHCHCBBLKBK() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional .ItemList NHCHCBBLKBK = 6; - * @return this - */ - public MEMPJPLINCN clearNHCHCBBLKBK() { - bitField0_ &= ~0x00000002; - nHCHCBBLKBK.clear(); - return this; - } - - /** - * optional .ItemList NHCHCBBLKBK = 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 #getMutableNHCHCBBLKBK()} if you want to modify it. - * - * @return internal storage object for reading - */ - public ItemListOuterClass.ItemList getNHCHCBBLKBK() { - return nHCHCBBLKBK; - } - - /** - * optional .ItemList NHCHCBBLKBK = 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 - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public ItemListOuterClass.ItemList getMutableNHCHCBBLKBK() { - bitField0_ |= 0x00000002; - return nHCHCBBLKBK; - } - - /** - * optional .ItemList NHCHCBBLKBK = 6; - * @param value the nHCHCBBLKBK to set - * @return this - */ - public MEMPJPLINCN setNHCHCBBLKBK(final ItemListOuterClass.ItemList value) { - bitField0_ |= 0x00000002; - nHCHCBBLKBK.copyFrom(value); - return this; - } - - /** - * repeated uint32 BLGIMDCNDHJ = 5; - * @return whether the bLGIMDCNDHJ field is set - */ - public boolean hasBLGIMDCNDHJ() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * repeated uint32 BLGIMDCNDHJ = 5; - * @return this - */ - public MEMPJPLINCN clearBLGIMDCNDHJ() { - bitField0_ &= ~0x00000004; - bLGIMDCNDHJ.clear(); - return this; - } - - /** - * repeated uint32 BLGIMDCNDHJ = 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 #getMutableBLGIMDCNDHJ()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedInt getBLGIMDCNDHJ() { - return bLGIMDCNDHJ; - } - - /** - * repeated uint32 BLGIMDCNDHJ = 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 getMutableBLGIMDCNDHJ() { - bitField0_ |= 0x00000004; - return bLGIMDCNDHJ; - } - - /** - * repeated uint32 BLGIMDCNDHJ = 5; - * @param value the bLGIMDCNDHJ to add - * @return this - */ - public MEMPJPLINCN addBLGIMDCNDHJ(final int value) { - bitField0_ |= 0x00000004; - bLGIMDCNDHJ.add(value); - return this; - } - - /** - * repeated uint32 BLGIMDCNDHJ = 5; - * @param values the bLGIMDCNDHJ to add - * @return this - */ - public MEMPJPLINCN addAllBLGIMDCNDHJ(final int... values) { - bitField0_ |= 0x00000004; - bLGIMDCNDHJ.addAll(values); - return this; - } - - @Override - public MEMPJPLINCN copyFrom(final MEMPJPLINCN other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - hFHKBMGBJAN = other.hFHKBMGBJAN; - nHCHCBBLKBK.copyFrom(other.nHCHCBBLKBK); - bLGIMDCNDHJ.copyFrom(other.bLGIMDCNDHJ); - } - return this; - } - - @Override - public MEMPJPLINCN mergeFrom(final MEMPJPLINCN other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasHFHKBMGBJAN()) { - setHFHKBMGBJAN(other.hFHKBMGBJAN); - } - if (other.hasNHCHCBBLKBK()) { - getMutableNHCHCBBLKBK().mergeFrom(other.nHCHCBBLKBK); - } - if (other.hasBLGIMDCNDHJ()) { - getMutableBLGIMDCNDHJ().addAll(other.bLGIMDCNDHJ); - } - return this; - } - - @Override - public MEMPJPLINCN clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - hFHKBMGBJAN = 0; - nHCHCBBLKBK.clear(); - bLGIMDCNDHJ.clear(); - return this; - } - - @Override - public MEMPJPLINCN clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - nHCHCBBLKBK.clearQuick(); - bLGIMDCNDHJ.clear(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof MEMPJPLINCN)) { - return false; - } - MEMPJPLINCN other = (MEMPJPLINCN) o; - return bitField0_ == other.bitField0_ - && (!hasHFHKBMGBJAN() || hFHKBMGBJAN == other.hFHKBMGBJAN) - && (!hasNHCHCBBLKBK() || nHCHCBBLKBK.equals(other.nHCHCBBLKBK)) - && (!hasBLGIMDCNDHJ() || bLGIMDCNDHJ.equals(other.bLGIMDCNDHJ)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 120); - output.writeUInt32NoTag(hFHKBMGBJAN); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 50); - output.writeMessageNoTag(nHCHCBBLKBK); - } - if ((bitField0_ & 0x00000004) != 0) { - for (int i = 0; i < bLGIMDCNDHJ.length(); i++) { - output.writeRawByte((byte) 40); - output.writeUInt32NoTag(bLGIMDCNDHJ.array()[i]); - } - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(hFHKBMGBJAN); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(nHCHCBBLKBK); - } - if ((bitField0_ & 0x00000004) != 0) { - size += (1 * bLGIMDCNDHJ.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(bLGIMDCNDHJ); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public MEMPJPLINCN mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 120: { - // hFHKBMGBJAN - hFHKBMGBJAN = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 50) { - break; - } - } - case 50: { - // nHCHCBBLKBK - input.readMessage(nHCHCBBLKBK); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 42) { - break; - } - } - case 42: { - // bLGIMDCNDHJ [packed=true] - input.readPackedUInt32(bLGIMDCNDHJ, tag); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - case 40: { - // bLGIMDCNDHJ [packed=false] - tag = input.readRepeatedUInt32(bLGIMDCNDHJ, tag); - bitField0_ |= 0x00000004; - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.hFHKBMGBJAN, hFHKBMGBJAN); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeMessage(FieldNames.nHCHCBBLKBK, nHCHCBBLKBK); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRepeatedUInt32(FieldNames.bLGIMDCNDHJ, bLGIMDCNDHJ); - } - output.endObject(); - } - - @Override - public MEMPJPLINCN mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -110713808: { - if (input.isAtField(FieldNames.hFHKBMGBJAN)) { - if (!input.trySkipNullValue()) { - hFHKBMGBJAN = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1681591244: { - if (input.isAtField(FieldNames.nHCHCBBLKBK)) { - if (!input.trySkipNullValue()) { - input.readMessage(nHCHCBBLKBK); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case 135413912: { - if (input.isAtField(FieldNames.bLGIMDCNDHJ)) { - if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(bLGIMDCNDHJ); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public MEMPJPLINCN clone() { - return new MEMPJPLINCN().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static MEMPJPLINCN parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new MEMPJPLINCN(), data).checkInitialized(); - } - - public static MEMPJPLINCN parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new MEMPJPLINCN(), input).checkInitialized(); - } - - public static MEMPJPLINCN parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new MEMPJPLINCN(), input).checkInitialized(); - } - - /** - * @return factory for creating MEMPJPLINCN messages - */ - public static MessageFactory getFactory() { - return MEMPJPLINCNFactory.INSTANCE; - } - - private enum MEMPJPLINCNFactory implements MessageFactory { - INSTANCE; - - @Override - public MEMPJPLINCN create() { - return MEMPJPLINCN.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName hFHKBMGBJAN = FieldName.forField("HFHKBMGBJAN"); - - static final FieldName nHCHCBBLKBK = FieldName.forField("NHCHCBBLKBK"); - - static final FieldName bLGIMDCNDHJ = FieldName.forField("BLGIMDCNDHJ"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/MarkReadMailCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/MarkReadMailCsReqOuterClass.java index f5061bb..2cb1cf3 100644 --- a/src/generated/main/emu/lunarcore/proto/MarkReadMailCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/MarkReadMailCsReqOuterClass.java @@ -19,7 +19,7 @@ public final class MarkReadMailCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 id = 14; + * optional uint32 id = 6; */ private int id; @@ -34,7 +34,7 @@ public final class MarkReadMailCsReqOuterClass { } /** - * optional uint32 id = 14; + * optional uint32 id = 6; * @return whether the id field is set */ public boolean hasId() { @@ -42,7 +42,7 @@ public final class MarkReadMailCsReqOuterClass { } /** - * optional uint32 id = 14; + * optional uint32 id = 6; * @return this */ public MarkReadMailCsReq clearId() { @@ -52,7 +52,7 @@ public final class MarkReadMailCsReqOuterClass { } /** - * optional uint32 id = 14; + * optional uint32 id = 6; * @return the id */ public int getId() { @@ -60,7 +60,7 @@ public final class MarkReadMailCsReqOuterClass { } /** - * optional uint32 id = 14; + * optional uint32 id = 6; * @param value the id to set * @return this */ @@ -129,7 +129,7 @@ public final class MarkReadMailCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 48); output.writeUInt32NoTag(id); } } @@ -150,7 +150,7 @@ public final class MarkReadMailCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 112: { + case 48: { // 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 896b737..db6c884 100644 --- a/src/generated/main/emu/lunarcore/proto/MarkReadMailScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/MarkReadMailScRspOuterClass.java @@ -19,7 +19,7 @@ public final class MarkReadMailScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 1; + * optional uint32 retcode = 3; */ private int retcode; @@ -39,7 +39,7 @@ public final class MarkReadMailScRspOuterClass { } /** - * optional uint32 retcode = 1; + * optional uint32 retcode = 3; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -47,7 +47,7 @@ public final class MarkReadMailScRspOuterClass { } /** - * optional uint32 retcode = 1; + * optional uint32 retcode = 3; * @return this */ public MarkReadMailScRsp clearRetcode() { @@ -57,7 +57,7 @@ public final class MarkReadMailScRspOuterClass { } /** - * optional uint32 retcode = 1; + * optional uint32 retcode = 3; * @return the retcode */ public int getRetcode() { @@ -65,7 +65,7 @@ public final class MarkReadMailScRspOuterClass { } /** - * optional uint32 retcode = 1; + * optional uint32 retcode = 3; * @param value the retcode to set * @return this */ @@ -177,7 +177,7 @@ public final class MarkReadMailScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); + output.writeRawByte((byte) 24); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { @@ -205,7 +205,7 @@ public final class MarkReadMailScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 8: { + case 24: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/MaterialOuterClass.java b/src/generated/main/emu/lunarcore/proto/MaterialOuterClass.java index 2be0044..653c231 100644 --- a/src/generated/main/emu/lunarcore/proto/MaterialOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/MaterialOuterClass.java @@ -19,15 +19,15 @@ public final class MaterialOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 tid = 8; - */ - private int tid; - - /** - * optional uint32 num = 15; + * optional uint32 num = 4; */ private int num; + /** + * optional uint32 tid = 10; + */ + private int tid; + private Material() { } @@ -39,62 +39,25 @@ public final class MaterialOuterClass { } /** - * optional uint32 tid = 8; - * @return whether the tid field is set + * optional uint32 num = 4; + * @return whether the num field is set */ - public boolean hasTid() { + public boolean hasNum() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 tid = 8; - * @return this - */ - public Material clearTid() { - bitField0_ &= ~0x00000001; - tid = 0; - return this; - } - - /** - * optional uint32 tid = 8; - * @return the tid - */ - public int getTid() { - return tid; - } - - /** - * optional uint32 tid = 8; - * @param value the tid to set - * @return this - */ - public Material setTid(final int value) { - bitField0_ |= 0x00000001; - tid = value; - return this; - } - - /** - * optional uint32 num = 15; - * @return whether the num field is set - */ - public boolean hasNum() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 num = 15; + * optional uint32 num = 4; * @return this */ public Material clearNum() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; num = 0; return this; } /** - * optional uint32 num = 15; + * optional uint32 num = 4; * @return the num */ public int getNum() { @@ -102,23 +65,60 @@ public final class MaterialOuterClass { } /** - * optional uint32 num = 15; + * optional uint32 num = 4; * @param value the num to set * @return this */ public Material setNum(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; num = value; return this; } + /** + * optional uint32 tid = 10; + * @return whether the tid field is set + */ + public boolean hasTid() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 tid = 10; + * @return this + */ + public Material clearTid() { + bitField0_ &= ~0x00000002; + tid = 0; + return this; + } + + /** + * optional uint32 tid = 10; + * @return the tid + */ + public int getTid() { + return tid; + } + + /** + * optional uint32 tid = 10; + * @param value the tid to set + * @return this + */ + public Material setTid(final int value) { + bitField0_ |= 0x00000002; + tid = value; + return this; + } + @Override public Material copyFrom(final Material other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - tid = other.tid; num = other.num; + tid = other.tid; } return this; } @@ -129,12 +129,12 @@ public final class MaterialOuterClass { return this; } cachedSize = -1; - if (other.hasTid()) { - setTid(other.tid); - } if (other.hasNum()) { setNum(other.num); } + if (other.hasTid()) { + setTid(other.tid); + } return this; } @@ -145,8 +145,8 @@ public final class MaterialOuterClass { } cachedSize = -1; bitField0_ = 0; - tid = 0; num = 0; + tid = 0; return this; } @@ -170,19 +170,19 @@ public final class MaterialOuterClass { } Material other = (Material) o; return bitField0_ == other.bitField0_ - && (!hasTid() || tid == other.tid) - && (!hasNum() || num == other.num); + && (!hasNum() || num == other.num) + && (!hasTid() || tid == other.tid); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 64); - output.writeUInt32NoTag(tid); + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(num); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 120); - output.writeUInt32NoTag(num); + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(tid); } } @@ -190,10 +190,10 @@ public final class MaterialOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(tid); + size += 1 + ProtoSink.computeUInt32SizeNoTag(num); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(num); + size += 1 + ProtoSink.computeUInt32SizeNoTag(tid); } return size; } @@ -205,18 +205,18 @@ public final class MaterialOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 64: { - // tid - tid = input.readUInt32(); + case 32: { + // num + num = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 120) { + if (tag != 80) { break; } } - case 120: { - // num - num = input.readUInt32(); + case 80: { + // tid + tid = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { @@ -241,10 +241,10 @@ public final class MaterialOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.tid, tid); + output.writeUInt32(FieldNames.num, num); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.num, num); + output.writeUInt32(FieldNames.tid, tid); } output.endObject(); } @@ -256,10 +256,10 @@ public final class MaterialOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 114831: { - if (input.isAtField(FieldNames.tid)) { + case 109446: { + if (input.isAtField(FieldNames.num)) { if (!input.trySkipNullValue()) { - tid = input.readUInt32(); + num = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -267,10 +267,10 @@ public final class MaterialOuterClass { } break; } - case 109446: { - if (input.isAtField(FieldNames.num)) { + case 114831: { + if (input.isAtField(FieldNames.tid)) { if (!input.trySkipNullValue()) { - num = input.readUInt32(); + tid = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -330,9 +330,9 @@ public final class MaterialOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName tid = FieldName.forField("tid"); - static final FieldName num = FieldName.forField("num"); + + static final FieldName tid = FieldName.forField("tid"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/MazeMapDataOuterClass.java b/src/generated/main/emu/lunarcore/proto/MazeMapDataOuterClass.java index 00ad7a8..72b4d2e 100644 --- a/src/generated/main/emu/lunarcore/proto/MazeMapDataOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/MazeMapDataOuterClass.java @@ -21,45 +21,45 @@ public final class MazeMapDataOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 1; */ private int retcode; /** - * optional uint32 cur_map_entry_id = 10; - */ - private int curMapEntryId; - - /** - * optional uint32 entry_id = 13; + * optional uint32 entry_id = 7; */ private int entryId; /** - * repeated uint32 lighten_section_list = 2; + * optional uint32 cur_map_entry_id = 8; */ - private final RepeatedInt lightenSectionList = RepeatedInt.newEmptyInstance(); + private int curMapEntryId; /** - * repeated uint32 unlocked_teleport_list = 7; + * repeated uint32 unlocked_teleport_list = 5; */ private final RepeatedInt unlockedTeleportList = RepeatedInt.newEmptyInstance(); /** - * repeated .MazeGroup maze_group_list = 1; + * repeated uint32 lighten_section_list = 9; + */ + private final RepeatedInt lightenSectionList = RepeatedInt.newEmptyInstance(); + + /** + * repeated .MazeChest unlocked_chest_list = 2; + */ + private final RepeatedMessage unlockedChestList = RepeatedMessage.newEmptyInstance(MazeChestOuterClass.MazeChest.getFactory()); + + /** + * repeated .MazeGroup maze_group_list = 12; */ private final RepeatedMessage mazeGroupList = RepeatedMessage.newEmptyInstance(MazeGroupOuterClass.MazeGroup.getFactory()); /** - * repeated .MazeProp maze_prop_list = 4; + * repeated .MazeProp maze_prop_list = 14; */ private final RepeatedMessage mazePropList = RepeatedMessage.newEmptyInstance(MazePropOuterClass.MazeProp.getFactory()); - /** - * repeated .MazeChest unlocked_chest_list = 11; - */ - private final RepeatedMessage unlockedChestList = RepeatedMessage.newEmptyInstance(MazeChestOuterClass.MazeChest.getFactory()); - private MazeMapData() { } @@ -71,7 +71,7 @@ public final class MazeMapDataOuterClass { } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 1; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -79,7 +79,7 @@ public final class MazeMapDataOuterClass { } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 1; * @return this */ public MazeMapData clearRetcode() { @@ -89,7 +89,7 @@ public final class MazeMapDataOuterClass { } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 1; * @return the retcode */ public int getRetcode() { @@ -97,7 +97,7 @@ public final class MazeMapDataOuterClass { } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 1; * @param value the retcode to set * @return this */ @@ -108,62 +108,25 @@ public final class MazeMapDataOuterClass { } /** - * optional uint32 cur_map_entry_id = 10; - * @return whether the curMapEntryId field is set + * optional uint32 entry_id = 7; + * @return whether the entryId field is set */ - public boolean hasCurMapEntryId() { + public boolean hasEntryId() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 cur_map_entry_id = 10; - * @return this - */ - public MazeMapData clearCurMapEntryId() { - bitField0_ &= ~0x00000002; - curMapEntryId = 0; - return this; - } - - /** - * optional uint32 cur_map_entry_id = 10; - * @return the curMapEntryId - */ - public int getCurMapEntryId() { - return curMapEntryId; - } - - /** - * optional uint32 cur_map_entry_id = 10; - * @param value the curMapEntryId to set - * @return this - */ - public MazeMapData setCurMapEntryId(final int value) { - bitField0_ |= 0x00000002; - curMapEntryId = value; - return this; - } - - /** - * optional uint32 entry_id = 13; - * @return whether the entryId field is set - */ - public boolean hasEntryId() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 entry_id = 13; + * optional uint32 entry_id = 7; * @return this */ public MazeMapData clearEntryId() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; entryId = 0; return this; } /** - * optional uint32 entry_id = 13; + * optional uint32 entry_id = 7; * @return the entryId */ public int getEntryId() { @@ -171,104 +134,73 @@ public final class MazeMapDataOuterClass { } /** - * optional uint32 entry_id = 13; + * optional uint32 entry_id = 7; * @param value the entryId to set * @return this */ public MazeMapData setEntryId(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; entryId = value; return this; } /** - * repeated uint32 lighten_section_list = 2; - * @return whether the lightenSectionList field is set + * optional uint32 cur_map_entry_id = 8; + * @return whether the curMapEntryId field is set */ - public boolean hasLightenSectionList() { + public boolean hasCurMapEntryId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 cur_map_entry_id = 8; + * @return this + */ + public MazeMapData clearCurMapEntryId() { + bitField0_ &= ~0x00000004; + curMapEntryId = 0; + return this; + } + + /** + * optional uint32 cur_map_entry_id = 8; + * @return the curMapEntryId + */ + public int getCurMapEntryId() { + return curMapEntryId; + } + + /** + * optional uint32 cur_map_entry_id = 8; + * @param value the curMapEntryId to set + * @return this + */ + public MazeMapData setCurMapEntryId(final int value) { + bitField0_ |= 0x00000004; + curMapEntryId = value; + return this; + } + + /** + * repeated uint32 unlocked_teleport_list = 5; + * @return whether the unlockedTeleportList field is set + */ + public boolean hasUnlockedTeleportList() { return (bitField0_ & 0x00000008) != 0; } /** - * repeated uint32 lighten_section_list = 2; - * @return this - */ - public MazeMapData clearLightenSectionList() { - bitField0_ &= ~0x00000008; - lightenSectionList.clear(); - return this; - } - - /** - * repeated uint32 lighten_section_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 #getMutableLightenSectionList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedInt getLightenSectionList() { - return lightenSectionList; - } - - /** - * repeated uint32 lighten_section_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 - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedInt getMutableLightenSectionList() { - bitField0_ |= 0x00000008; - return lightenSectionList; - } - - /** - * repeated uint32 lighten_section_list = 2; - * @param value the lightenSectionList to add - * @return this - */ - public MazeMapData addLightenSectionList(final int value) { - bitField0_ |= 0x00000008; - lightenSectionList.add(value); - return this; - } - - /** - * repeated uint32 lighten_section_list = 2; - * @param values the lightenSectionList to add - * @return this - */ - public MazeMapData addAllLightenSectionList(final int... values) { - bitField0_ |= 0x00000008; - lightenSectionList.addAll(values); - return this; - } - - /** - * repeated uint32 unlocked_teleport_list = 7; - * @return whether the unlockedTeleportList field is set - */ - public boolean hasUnlockedTeleportList() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - * repeated uint32 unlocked_teleport_list = 7; + * repeated uint32 unlocked_teleport_list = 5; * @return this */ public MazeMapData clearUnlockedTeleportList() { - bitField0_ &= ~0x00000010; + bitField0_ &= ~0x00000008; unlockedTeleportList.clear(); return this; } /** - * repeated uint32 unlocked_teleport_list = 7; + * 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. @@ -282,7 +214,7 @@ public final class MazeMapDataOuterClass { } /** - * repeated uint32 unlocked_teleport_list = 7; + * 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 @@ -291,188 +223,120 @@ public final class MazeMapDataOuterClass { * @return internal storage object for modifications */ public RepeatedInt getMutableUnlockedTeleportList() { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; return unlockedTeleportList; } /** - * repeated uint32 unlocked_teleport_list = 7; + * repeated uint32 unlocked_teleport_list = 5; * @param value the unlockedTeleportList to add * @return this */ public MazeMapData addUnlockedTeleportList(final int value) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; unlockedTeleportList.add(value); return this; } /** - * repeated uint32 unlocked_teleport_list = 7; + * repeated uint32 unlocked_teleport_list = 5; * @param values the unlockedTeleportList to add * @return this */ public MazeMapData addAllUnlockedTeleportList(final int... values) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; unlockedTeleportList.addAll(values); return this; } /** - * repeated .MazeGroup maze_group_list = 1; - * @return whether the mazeGroupList field is set + * repeated uint32 lighten_section_list = 9; + * @return whether the lightenSectionList field is set */ - public boolean hasMazeGroupList() { + public boolean hasLightenSectionList() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * repeated uint32 lighten_section_list = 9; + * @return this + */ + public MazeMapData clearLightenSectionList() { + bitField0_ &= ~0x00000010; + lightenSectionList.clear(); + return this; + } + + /** + * repeated uint32 lighten_section_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 #getMutableLightenSectionList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getLightenSectionList() { + return lightenSectionList; + } + + /** + * repeated uint32 lighten_section_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 + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedInt getMutableLightenSectionList() { + bitField0_ |= 0x00000010; + return lightenSectionList; + } + + /** + * repeated uint32 lighten_section_list = 9; + * @param value the lightenSectionList to add + * @return this + */ + public MazeMapData addLightenSectionList(final int value) { + bitField0_ |= 0x00000010; + lightenSectionList.add(value); + return this; + } + + /** + * repeated uint32 lighten_section_list = 9; + * @param values the lightenSectionList to add + * @return this + */ + public MazeMapData addAllLightenSectionList(final int... values) { + bitField0_ |= 0x00000010; + lightenSectionList.addAll(values); + return this; + } + + /** + * repeated .MazeChest unlocked_chest_list = 2; + * @return whether the unlockedChestList field is set + */ + public boolean hasUnlockedChestList() { return (bitField0_ & 0x00000020) != 0; } /** - * repeated .MazeGroup maze_group_list = 1; - * @return this - */ - public MazeMapData clearMazeGroupList() { - bitField0_ &= ~0x00000020; - mazeGroupList.clear(); - return this; - } - - /** - * 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 #getMutableMazeGroupList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getMazeGroupList() { - return mazeGroupList; - } - - /** - * 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 - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableMazeGroupList() { - bitField0_ |= 0x00000020; - return mazeGroupList; - } - - /** - * repeated .MazeGroup maze_group_list = 1; - * @param value the mazeGroupList to add - * @return this - */ - public MazeMapData addMazeGroupList(final MazeGroupOuterClass.MazeGroup value) { - bitField0_ |= 0x00000020; - mazeGroupList.add(value); - return this; - } - - /** - * repeated .MazeGroup maze_group_list = 1; - * @param values the mazeGroupList to add - * @return this - */ - public MazeMapData addAllMazeGroupList(final MazeGroupOuterClass.MazeGroup... values) { - bitField0_ |= 0x00000020; - mazeGroupList.addAll(values); - return this; - } - - /** - * repeated .MazeProp maze_prop_list = 4; - * @return whether the mazePropList field is set - */ - public boolean hasMazePropList() { - return (bitField0_ & 0x00000040) != 0; - } - - /** - * repeated .MazeProp maze_prop_list = 4; - * @return this - */ - public MazeMapData clearMazePropList() { - bitField0_ &= ~0x00000040; - mazePropList.clear(); - return this; - } - - /** - * 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 #getMutableMazePropList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getMazePropList() { - return mazePropList; - } - - /** - * 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 - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableMazePropList() { - bitField0_ |= 0x00000040; - return mazePropList; - } - - /** - * repeated .MazeProp maze_prop_list = 4; - * @param value the mazePropList to add - * @return this - */ - public MazeMapData addMazePropList(final MazePropOuterClass.MazeProp value) { - bitField0_ |= 0x00000040; - mazePropList.add(value); - return this; - } - - /** - * repeated .MazeProp maze_prop_list = 4; - * @param values the mazePropList to add - * @return this - */ - public MazeMapData addAllMazePropList(final MazePropOuterClass.MazeProp... values) { - bitField0_ |= 0x00000040; - mazePropList.addAll(values); - return this; - } - - /** - * repeated .MazeChest unlocked_chest_list = 11; - * @return whether the unlockedChestList field is set - */ - public boolean hasUnlockedChestList() { - return (bitField0_ & 0x00000080) != 0; - } - - /** - * repeated .MazeChest unlocked_chest_list = 11; + * repeated .MazeChest unlocked_chest_list = 2; * @return this */ public MazeMapData clearUnlockedChestList() { - bitField0_ &= ~0x00000080; + bitField0_ &= ~0x00000020; unlockedChestList.clear(); return this; } /** - * repeated .MazeChest unlocked_chest_list = 11; + * repeated .MazeChest unlocked_chest_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. @@ -486,7 +350,7 @@ public final class MazeMapDataOuterClass { } /** - * repeated .MazeChest unlocked_chest_list = 11; + * repeated .MazeChest unlocked_chest_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 @@ -495,45 +359,181 @@ public final class MazeMapDataOuterClass { * @return internal storage object for modifications */ public RepeatedMessage getMutableUnlockedChestList() { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000020; return unlockedChestList; } /** - * repeated .MazeChest unlocked_chest_list = 11; + * repeated .MazeChest unlocked_chest_list = 2; * @param value the unlockedChestList to add * @return this */ public MazeMapData addUnlockedChestList(final MazeChestOuterClass.MazeChest value) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000020; unlockedChestList.add(value); return this; } /** - * repeated .MazeChest unlocked_chest_list = 11; + * repeated .MazeChest unlocked_chest_list = 2; * @param values the unlockedChestList to add * @return this */ public MazeMapData addAllUnlockedChestList(final MazeChestOuterClass.MazeChest... values) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000020; unlockedChestList.addAll(values); return this; } + /** + * repeated .MazeGroup maze_group_list = 12; + * @return whether the mazeGroupList field is set + */ + public boolean hasMazeGroupList() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * repeated .MazeGroup maze_group_list = 12; + * @return this + */ + public MazeMapData clearMazeGroupList() { + bitField0_ &= ~0x00000040; + mazeGroupList.clear(); + return this; + } + + /** + * repeated .MazeGroup maze_group_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. + * + * Use {@link #getMutableMazeGroupList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getMazeGroupList() { + return mazeGroupList; + } + + /** + * repeated .MazeGroup maze_group_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 + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableMazeGroupList() { + bitField0_ |= 0x00000040; + return mazeGroupList; + } + + /** + * repeated .MazeGroup maze_group_list = 12; + * @param value the mazeGroupList to add + * @return this + */ + public MazeMapData addMazeGroupList(final MazeGroupOuterClass.MazeGroup value) { + bitField0_ |= 0x00000040; + mazeGroupList.add(value); + return this; + } + + /** + * repeated .MazeGroup maze_group_list = 12; + * @param values the mazeGroupList to add + * @return this + */ + public MazeMapData addAllMazeGroupList(final MazeGroupOuterClass.MazeGroup... values) { + bitField0_ |= 0x00000040; + mazeGroupList.addAll(values); + return this; + } + + /** + * repeated .MazeProp maze_prop_list = 14; + * @return whether the mazePropList field is set + */ + public boolean hasMazePropList() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * repeated .MazeProp maze_prop_list = 14; + * @return this + */ + public MazeMapData clearMazePropList() { + bitField0_ &= ~0x00000080; + mazePropList.clear(); + return this; + } + + /** + * repeated .MazeProp maze_prop_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 #getMutableMazePropList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getMazePropList() { + return mazePropList; + } + + /** + * repeated .MazeProp maze_prop_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 getMutableMazePropList() { + bitField0_ |= 0x00000080; + return mazePropList; + } + + /** + * repeated .MazeProp maze_prop_list = 14; + * @param value the mazePropList to add + * @return this + */ + public MazeMapData addMazePropList(final MazePropOuterClass.MazeProp value) { + bitField0_ |= 0x00000080; + mazePropList.add(value); + return this; + } + + /** + * repeated .MazeProp maze_prop_list = 14; + * @param values the mazePropList to add + * @return this + */ + public MazeMapData addAllMazePropList(final MazePropOuterClass.MazeProp... values) { + bitField0_ |= 0x00000080; + mazePropList.addAll(values); + return this; + } + @Override public MazeMapData copyFrom(final MazeMapData other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; retcode = other.retcode; - curMapEntryId = other.curMapEntryId; entryId = other.entryId; - lightenSectionList.copyFrom(other.lightenSectionList); + curMapEntryId = other.curMapEntryId; unlockedTeleportList.copyFrom(other.unlockedTeleportList); + lightenSectionList.copyFrom(other.lightenSectionList); + unlockedChestList.copyFrom(other.unlockedChestList); mazeGroupList.copyFrom(other.mazeGroupList); mazePropList.copyFrom(other.mazePropList); - unlockedChestList.copyFrom(other.unlockedChestList); } return this; } @@ -547,17 +547,20 @@ public final class MazeMapDataOuterClass { if (other.hasRetcode()) { setRetcode(other.retcode); } + if (other.hasEntryId()) { + setEntryId(other.entryId); + } if (other.hasCurMapEntryId()) { setCurMapEntryId(other.curMapEntryId); } - if (other.hasEntryId()) { - setEntryId(other.entryId); + if (other.hasUnlockedTeleportList()) { + getMutableUnlockedTeleportList().addAll(other.unlockedTeleportList); } if (other.hasLightenSectionList()) { getMutableLightenSectionList().addAll(other.lightenSectionList); } - if (other.hasUnlockedTeleportList()) { - getMutableUnlockedTeleportList().addAll(other.unlockedTeleportList); + if (other.hasUnlockedChestList()) { + getMutableUnlockedChestList().addAll(other.unlockedChestList); } if (other.hasMazeGroupList()) { getMutableMazeGroupList().addAll(other.mazeGroupList); @@ -565,9 +568,6 @@ public final class MazeMapDataOuterClass { if (other.hasMazePropList()) { getMutableMazePropList().addAll(other.mazePropList); } - if (other.hasUnlockedChestList()) { - getMutableUnlockedChestList().addAll(other.unlockedChestList); - } return this; } @@ -579,13 +579,13 @@ public final class MazeMapDataOuterClass { cachedSize = -1; bitField0_ = 0; retcode = 0; - curMapEntryId = 0; entryId = 0; - lightenSectionList.clear(); + curMapEntryId = 0; unlockedTeleportList.clear(); + lightenSectionList.clear(); + unlockedChestList.clear(); mazeGroupList.clear(); mazePropList.clear(); - unlockedChestList.clear(); return this; } @@ -596,11 +596,11 @@ public final class MazeMapDataOuterClass { } cachedSize = -1; bitField0_ = 0; - lightenSectionList.clear(); unlockedTeleportList.clear(); + lightenSectionList.clear(); + unlockedChestList.clearQuick(); mazeGroupList.clearQuick(); mazePropList.clearQuick(); - unlockedChestList.clearQuick(); return this; } @@ -615,57 +615,57 @@ public final class MazeMapDataOuterClass { MazeMapData other = (MazeMapData) o; return bitField0_ == other.bitField0_ && (!hasRetcode() || retcode == other.retcode) - && (!hasCurMapEntryId() || curMapEntryId == other.curMapEntryId) && (!hasEntryId() || entryId == other.entryId) - && (!hasLightenSectionList() || lightenSectionList.equals(other.lightenSectionList)) + && (!hasCurMapEntryId() || curMapEntryId == other.curMapEntryId) && (!hasUnlockedTeleportList() || unlockedTeleportList.equals(other.unlockedTeleportList)) + && (!hasLightenSectionList() || lightenSectionList.equals(other.lightenSectionList)) + && (!hasUnlockedChestList() || unlockedChestList.equals(other.unlockedChestList)) && (!hasMazeGroupList() || mazeGroupList.equals(other.mazeGroupList)) - && (!hasMazePropList() || mazePropList.equals(other.mazePropList)) - && (!hasUnlockedChestList() || unlockedChestList.equals(other.unlockedChestList)); + && (!hasMazePropList() || mazePropList.equals(other.mazePropList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 8); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 80); - output.writeUInt32NoTag(curMapEntryId); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 56); output.writeUInt32NoTag(entryId); } - if ((bitField0_ & 0x00000008) != 0) { - for (int i = 0; i < lightenSectionList.length(); i++) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(lightenSectionList.array()[i]); - } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(curMapEntryId); } - if ((bitField0_ & 0x00000010) != 0) { + if ((bitField0_ & 0x00000008) != 0) { for (int i = 0; i < unlockedTeleportList.length(); i++) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 40); output.writeUInt32NoTag(unlockedTeleportList.array()[i]); } } + if ((bitField0_ & 0x00000010) != 0) { + for (int i = 0; i < lightenSectionList.length(); i++) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(lightenSectionList.array()[i]); + } + } if ((bitField0_ & 0x00000020) != 0) { - for (int i = 0; i < mazeGroupList.length(); i++) { - output.writeRawByte((byte) 10); - output.writeMessageNoTag(mazeGroupList.get(i)); + for (int i = 0; i < unlockedChestList.length(); i++) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(unlockedChestList.get(i)); } } if ((bitField0_ & 0x00000040) != 0) { - for (int i = 0; i < mazePropList.length(); i++) { - output.writeRawByte((byte) 34); - output.writeMessageNoTag(mazePropList.get(i)); + for (int i = 0; i < mazeGroupList.length(); i++) { + output.writeRawByte((byte) 98); + output.writeMessageNoTag(mazeGroupList.get(i)); } } if ((bitField0_ & 0x00000080) != 0) { - for (int i = 0; i < unlockedChestList.length(); i++) { - output.writeRawByte((byte) 90); - output.writeMessageNoTag(unlockedChestList.get(i)); + for (int i = 0; i < mazePropList.length(); i++) { + output.writeRawByte((byte) 114); + output.writeMessageNoTag(mazePropList.get(i)); } } } @@ -677,25 +677,25 @@ public final class MazeMapDataOuterClass { size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(curMapEntryId); - } - if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(entryId); } - if ((bitField0_ & 0x00000008) != 0) { - size += (1 * lightenSectionList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(lightenSectionList); + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(curMapEntryId); } - if ((bitField0_ & 0x00000010) != 0) { + if ((bitField0_ & 0x00000008) != 0) { size += (1 * unlockedTeleportList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(unlockedTeleportList); } + if ((bitField0_ & 0x00000010) != 0) { + size += (1 * lightenSectionList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(lightenSectionList); + } 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); } return size; } @@ -707,70 +707,70 @@ public final class MazeMapDataOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 40: { + case 8: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 80) { + if (tag != 56) { break; } } - case 80: { - // curMapEntryId - curMapEntryId = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 104) { - break; - } - } - case 104: { + case 56: { // entryId entryId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 64) { + break; + } + } + case 64: { + // curMapEntryId + curMapEntryId = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); + if (tag != 42) { + break; + } + } + case 42: { + // unlockedTeleportList [packed=true] + input.readPackedUInt32(unlockedTeleportList, tag); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 74) { + break; + } + } + case 74: { + // lightenSectionList [packed=true] + input.readPackedUInt32(lightenSectionList, tag); + bitField0_ |= 0x00000010; + tag = input.readTag(); if (tag != 18) { break; } } case 18: { - // lightenSectionList [packed=true] - input.readPackedUInt32(lightenSectionList, tag); - bitField0_ |= 0x00000008; - tag = input.readTag(); - if (tag != 58) { - break; - } - } - case 58: { - // unlockedTeleportList [packed=true] - input.readPackedUInt32(unlockedTeleportList, tag); - bitField0_ |= 0x00000010; - tag = input.readTag(); - if (tag != 10) { - break; - } - } - case 10: { - // mazeGroupList - tag = input.readRepeatedMessage(mazeGroupList, tag); - bitField0_ |= 0x00000020; - if (tag != 34) { - break; - } - } - case 34: { - // mazePropList - tag = input.readRepeatedMessage(mazePropList, tag); - bitField0_ |= 0x00000040; - if (tag != 90) { - break; - } - } - case 90: { // unlockedChestList tag = input.readRepeatedMessage(unlockedChestList, tag); + bitField0_ |= 0x00000020; + if (tag != 98) { + break; + } + } + case 98: { + // mazeGroupList + tag = input.readRepeatedMessage(mazeGroupList, tag); + bitField0_ |= 0x00000040; + if (tag != 114) { + break; + } + } + case 114: { + // mazePropList + tag = input.readRepeatedMessage(mazePropList, tag); bitField0_ |= 0x00000080; if (tag != 0) { break; @@ -786,15 +786,15 @@ public final class MazeMapDataOuterClass { tag = input.readTag(); break; } - case 16: { - // lightenSectionList [packed=false] - tag = input.readRepeatedUInt32(lightenSectionList, tag); + case 40: { + // unlockedTeleportList [packed=false] + tag = input.readRepeatedUInt32(unlockedTeleportList, tag); bitField0_ |= 0x00000008; break; } - case 56: { - // unlockedTeleportList [packed=false] - tag = input.readRepeatedUInt32(unlockedTeleportList, tag); + case 72: { + // lightenSectionList [packed=false] + tag = input.readRepeatedUInt32(lightenSectionList, tag); bitField0_ |= 0x00000010; break; } @@ -809,25 +809,25 @@ public final class MazeMapDataOuterClass { output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.curMapEntryId, curMapEntryId); - } - if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.entryId, entryId); } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRepeatedUInt32(FieldNames.lightenSectionList, lightenSectionList); + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.curMapEntryId, curMapEntryId); } - if ((bitField0_ & 0x00000010) != 0) { + if ((bitField0_ & 0x00000008) != 0) { output.writeRepeatedUInt32(FieldNames.unlockedTeleportList, unlockedTeleportList); } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRepeatedUInt32(FieldNames.lightenSectionList, lightenSectionList); + } 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); } output.endObject(); } @@ -850,11 +850,11 @@ public final class MazeMapDataOuterClass { } break; } - case 764919441: - case 2115673898: { - if (input.isAtField(FieldNames.curMapEntryId)) { + case -1591558867: + case -2093663224: { + if (input.isAtField(FieldNames.entryId)) { if (!input.trySkipNullValue()) { - curMapEntryId = input.readUInt32(); + entryId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -862,11 +862,11 @@ public final class MazeMapDataOuterClass { } break; } - case -1591558867: - case -2093663224: { - if (input.isAtField(FieldNames.entryId)) { + case 764919441: + case 2115673898: { + if (input.isAtField(FieldNames.curMapEntryId)) { if (!input.trySkipNullValue()) { - entryId = input.readUInt32(); + curMapEntryId = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -874,23 +874,23 @@ public final class MazeMapDataOuterClass { } break; } - case -1942343836: - case 1328850360: { - if (input.isAtField(FieldNames.lightenSectionList)) { - if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(lightenSectionList); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } case 856936684: case -10753834: { if (input.isAtField(FieldNames.unlockedTeleportList)) { if (!input.trySkipNullValue()) { input.readRepeatedUInt32(unlockedTeleportList); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1942343836: + case 1328850360: { + if (input.isAtField(FieldNames.lightenSectionList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(lightenSectionList); bitField0_ |= 0x00000010; } } else { @@ -898,35 +898,35 @@ public final class MazeMapDataOuterClass { } break; } - case -317054274: - case 407435998: { - if (input.isAtField(FieldNames.mazeGroupList)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(mazeGroupList); - bitField0_ |= 0x00000020; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1676123008: - case 1875839866: { - if (input.isAtField(FieldNames.mazePropList)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(mazePropList); - bitField0_ |= 0x00000040; - } - } else { - input.skipUnknownField(); - } - break; - } case -337762404: case 231688696: { if (input.isAtField(FieldNames.unlockedChestList)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(unlockedChestList); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case -317054274: + case 407435998: { + if (input.isAtField(FieldNames.mazeGroupList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(mazeGroupList); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1676123008: + case 1875839866: { + if (input.isAtField(FieldNames.mazePropList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(mazePropList); bitField0_ |= 0x00000080; } } else { @@ -988,19 +988,19 @@ public final class MazeMapDataOuterClass { static class FieldNames { static final FieldName retcode = FieldName.forField("retcode"); + static final FieldName entryId = FieldName.forField("entryId", "entry_id"); + static final FieldName curMapEntryId = FieldName.forField("curMapEntryId", "cur_map_entry_id"); - static final FieldName entryId = FieldName.forField("entryId", "entry_id"); + static final FieldName unlockedTeleportList = FieldName.forField("unlockedTeleportList", "unlocked_teleport_list"); static final FieldName lightenSectionList = FieldName.forField("lightenSectionList", "lighten_section_list"); - 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 214bacd..2672e70 100644 --- a/src/generated/main/emu/lunarcore/proto/MazePropOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/MazePropOuterClass.java @@ -18,21 +18,21 @@ public final class MazePropOuterClass { public static final class MazeProp extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; - /** - * optional uint32 group_id = 1; - */ - private int groupId; - /** * optional uint32 config_id = 8; */ private int configId; /** - * optional uint32 state = 11; + * optional uint32 state = 14; */ private int state; + /** + * optional uint32 group_id = 15; + */ + private int groupId; + private MazeProp() { } @@ -43,49 +43,12 @@ public final class MazePropOuterClass { return new MazeProp(); } - /** - * 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 MazeProp 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 MazeProp setGroupId(final int value) { - bitField0_ |= 0x00000001; - groupId = value; - return this; - } - /** * optional uint32 config_id = 8; * @return whether the configId field is set */ public boolean hasConfigId() { - return (bitField0_ & 0x00000002) != 0; + return (bitField0_ & 0x00000001) != 0; } /** @@ -93,7 +56,7 @@ public final class MazePropOuterClass { * @return this */ public MazeProp clearConfigId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; configId = 0; return this; } @@ -112,31 +75,31 @@ public final class MazePropOuterClass { * @return this */ public MazeProp setConfigId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; configId = value; return this; } /** - * optional uint32 state = 11; + * optional uint32 state = 14; * @return whether the state field is set */ public boolean hasState() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 state = 11; + * optional uint32 state = 14; * @return this */ public MazeProp clearState() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; state = 0; return this; } /** - * optional uint32 state = 11; + * optional uint32 state = 14; * @return the state */ public int getState() { @@ -144,24 +107,61 @@ public final class MazePropOuterClass { } /** - * optional uint32 state = 11; + * optional uint32 state = 14; * @param value the state to set * @return this */ public MazeProp setState(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; state = value; return this; } + /** + * optional uint32 group_id = 15; + * @return whether the groupId field is set + */ + public boolean hasGroupId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 group_id = 15; + * @return this + */ + public MazeProp clearGroupId() { + bitField0_ &= ~0x00000004; + groupId = 0; + return this; + } + + /** + * optional uint32 group_id = 15; + * @return the groupId + */ + public int getGroupId() { + return groupId; + } + + /** + * optional uint32 group_id = 15; + * @param value the groupId to set + * @return this + */ + public MazeProp setGroupId(final int value) { + bitField0_ |= 0x00000004; + groupId = value; + return this; + } + @Override public MazeProp copyFrom(final MazeProp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - groupId = other.groupId; configId = other.configId; state = other.state; + groupId = other.groupId; } return this; } @@ -172,15 +172,15 @@ public final class MazePropOuterClass { return this; } cachedSize = -1; - if (other.hasGroupId()) { - setGroupId(other.groupId); - } if (other.hasConfigId()) { setConfigId(other.configId); } if (other.hasState()) { setState(other.state); } + if (other.hasGroupId()) { + setGroupId(other.groupId); + } return this; } @@ -191,9 +191,9 @@ public final class MazePropOuterClass { } cachedSize = -1; bitField0_ = 0; - groupId = 0; configId = 0; state = 0; + groupId = 0; return this; } @@ -217,39 +217,39 @@ public final class MazePropOuterClass { } MazeProp other = (MazeProp) o; return bitField0_ == other.bitField0_ - && (!hasGroupId() || groupId == other.groupId) && (!hasConfigId() || configId == other.configId) - && (!hasState() || state == other.state); + && (!hasState() || state == other.state) + && (!hasGroupId() || groupId == other.groupId); } @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(configId); } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 88); + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 112); output.writeUInt32NoTag(state); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(groupId); + } } @Override protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); - } - if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(configId); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(state); } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); + } return size; } @@ -260,27 +260,27 @@ public final class MazePropOuterClass { 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: { // configId configId = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 88) { + if (tag != 112) { break; } } - case 88: { + case 112: { // state state = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // groupId + groupId = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 0) { @@ -305,14 +305,14 @@ public final class MazePropOuterClass { 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.configId, configId); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.state, state); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.groupId, groupId); + } output.endObject(); } @@ -323,24 +323,12 @@ public final class MazePropOuterClass { } 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 -580140035: case -804450504: { if (input.isAtField(FieldNames.configId)) { if (!input.trySkipNullValue()) { configId = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } else { input.skipUnknownField(); @@ -351,6 +339,18 @@ public final class MazePropOuterClass { if (input.isAtField(FieldNames.state)) { if (!input.trySkipNullValue()) { state = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 293428218: + case 506361563: { + if (input.isAtField(FieldNames.groupId)) { + if (!input.trySkipNullValue()) { + groupId = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -410,11 +410,11 @@ public final class MazePropOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - 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"); + + static final FieldName groupId = FieldName.forField("groupId", "group_id"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/MissionOuterClass.java b/src/generated/main/emu/lunarcore/proto/MissionOuterClass.java index 2c55599..bcc45df 100644 --- a/src/generated/main/emu/lunarcore/proto/MissionOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/MissionOuterClass.java @@ -19,17 +19,17 @@ public final class MissionOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 progress = 14; + * optional uint32 progress = 4; */ private int progress; /** - * optional uint32 id = 15; + * optional uint32 id = 14; */ private int id; /** - * optional .MissionStatus status = 11; + * optional .MissionStatus status = 8; */ private int status; @@ -44,7 +44,7 @@ public final class MissionOuterClass { } /** - * optional uint32 progress = 14; + * optional uint32 progress = 4; * @return whether the progress field is set */ public boolean hasProgress() { @@ -52,7 +52,7 @@ public final class MissionOuterClass { } /** - * optional uint32 progress = 14; + * optional uint32 progress = 4; * @return this */ public Mission clearProgress() { @@ -62,7 +62,7 @@ public final class MissionOuterClass { } /** - * optional uint32 progress = 14; + * optional uint32 progress = 4; * @return the progress */ public int getProgress() { @@ -70,7 +70,7 @@ public final class MissionOuterClass { } /** - * optional uint32 progress = 14; + * optional uint32 progress = 4; * @param value the progress to set * @return this */ @@ -81,7 +81,7 @@ public final class MissionOuterClass { } /** - * optional uint32 id = 15; + * optional uint32 id = 14; * @return whether the id field is set */ public boolean hasId() { @@ -89,7 +89,7 @@ public final class MissionOuterClass { } /** - * optional uint32 id = 15; + * optional uint32 id = 14; * @return this */ public Mission clearId() { @@ -99,7 +99,7 @@ public final class MissionOuterClass { } /** - * optional uint32 id = 15; + * optional uint32 id = 14; * @return the id */ public int getId() { @@ -107,7 +107,7 @@ public final class MissionOuterClass { } /** - * optional uint32 id = 15; + * optional uint32 id = 14; * @param value the id to set * @return this */ @@ -118,7 +118,7 @@ public final class MissionOuterClass { } /** - * optional .MissionStatus status = 11; + * optional .MissionStatus status = 8; * @return whether the status field is set */ public boolean hasStatus() { @@ -126,7 +126,7 @@ public final class MissionOuterClass { } /** - * optional .MissionStatus status = 11; + * optional .MissionStatus status = 8; * @return this */ public Mission clearStatus() { @@ -136,7 +136,7 @@ public final class MissionOuterClass { } /** - * optional .MissionStatus status = 11; + * optional .MissionStatus status = 8; * @return the status */ public MissionStatusOuterClass.MissionStatus getStatus() { @@ -169,7 +169,7 @@ public final class MissionOuterClass { } /** - * optional .MissionStatus status = 11; + * optional .MissionStatus status = 8; * @param value the status to set * @return this */ @@ -250,15 +250,15 @@ public final class MissionOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(progress); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 112); output.writeUInt32NoTag(id); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 64); output.writeEnumNoTag(status); } } @@ -285,25 +285,25 @@ public final class MissionOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 112: { + case 32: { // progress progress = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 120) { + if (tag != 112) { break; } } - case 120: { + case 112: { // id id = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 88) { + if (tag != 64) { break; } } - case 88: { + case 64: { // status final int value = input.readInt32(); if (MissionStatusOuterClass.MissionStatus.forNumber(value) != null) { diff --git a/src/generated/main/emu/lunarcore/proto/MonsterArchiveOuterClass.java b/src/generated/main/emu/lunarcore/proto/MonsterArchiveOuterClass.java index 6f9dea1..960da9f 100644 --- a/src/generated/main/emu/lunarcore/proto/MonsterArchiveOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/MonsterArchiveOuterClass.java @@ -19,12 +19,12 @@ public final class MonsterArchiveOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 monster_id = 8; + * optional uint32 monster_id = 1; */ private int monsterId; /** - * optional uint32 num = 14; + * optional uint32 num = 13; */ private int num; @@ -39,7 +39,7 @@ public final class MonsterArchiveOuterClass { } /** - * optional uint32 monster_id = 8; + * optional uint32 monster_id = 1; * @return whether the monsterId field is set */ public boolean hasMonsterId() { @@ -47,7 +47,7 @@ public final class MonsterArchiveOuterClass { } /** - * optional uint32 monster_id = 8; + * optional uint32 monster_id = 1; * @return this */ public MonsterArchive clearMonsterId() { @@ -57,7 +57,7 @@ public final class MonsterArchiveOuterClass { } /** - * optional uint32 monster_id = 8; + * optional uint32 monster_id = 1; * @return the monsterId */ public int getMonsterId() { @@ -65,7 +65,7 @@ public final class MonsterArchiveOuterClass { } /** - * optional uint32 monster_id = 8; + * optional uint32 monster_id = 1; * @param value the monsterId to set * @return this */ @@ -76,7 +76,7 @@ public final class MonsterArchiveOuterClass { } /** - * optional uint32 num = 14; + * optional uint32 num = 13; * @return whether the num field is set */ public boolean hasNum() { @@ -84,7 +84,7 @@ public final class MonsterArchiveOuterClass { } /** - * optional uint32 num = 14; + * optional uint32 num = 13; * @return this */ public MonsterArchive clearNum() { @@ -94,7 +94,7 @@ public final class MonsterArchiveOuterClass { } /** - * optional uint32 num = 14; + * optional uint32 num = 13; * @return the num */ public int getNum() { @@ -102,7 +102,7 @@ public final class MonsterArchiveOuterClass { } /** - * optional uint32 num = 14; + * optional uint32 num = 13; * @param value the num to set * @return this */ @@ -177,11 +177,11 @@ public final class MonsterArchiveOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 8); output.writeUInt32NoTag(monsterId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 104); output.writeUInt32NoTag(num); } } @@ -205,16 +205,16 @@ public final class MonsterArchiveOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 64: { + case 8: { // monsterId monsterId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 112) { + if (tag != 104) { break; } } - case 112: { + case 104: { // num num = input.readUInt32(); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/MotionInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/MotionInfoOuterClass.java index 115aa8c..0cff53a 100644 --- a/src/generated/main/emu/lunarcore/proto/MotionInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/MotionInfoOuterClass.java @@ -24,7 +24,7 @@ public final class MotionInfoOuterClass { private final VectorOuterClass.Vector rot = VectorOuterClass.Vector.newInstance(); /** - * optional .Vector pos = 12; + * optional .Vector pos = 13; */ private final VectorOuterClass.Vector pos = VectorOuterClass.Vector.newInstance(); @@ -96,7 +96,7 @@ public final class MotionInfoOuterClass { } /** - * optional .Vector pos = 12; + * optional .Vector pos = 13; * @return whether the pos field is set */ public boolean hasPos() { @@ -104,7 +104,7 @@ public final class MotionInfoOuterClass { } /** - * optional .Vector pos = 12; + * optional .Vector pos = 13; * @return this */ public MotionInfo clearPos() { @@ -114,7 +114,7 @@ public final class MotionInfoOuterClass { } /** - * optional .Vector pos = 12; + * optional .Vector pos = 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. @@ -128,7 +128,7 @@ public final class MotionInfoOuterClass { } /** - * optional .Vector pos = 12; + * optional .Vector pos = 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 @@ -142,7 +142,7 @@ public final class MotionInfoOuterClass { } /** - * optional .Vector pos = 12; + * optional .Vector pos = 13; * @param value the pos to set * @return this */ @@ -223,7 +223,7 @@ public final class MotionInfoOuterClass { output.writeMessageNoTag(rot); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 98); + output.writeRawByte((byte) 106); output.writeMessageNoTag(pos); } } @@ -252,11 +252,11 @@ public final class MotionInfoOuterClass { input.readMessage(rot); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 98) { + if (tag != 106) { break; } } - case 98: { + case 106: { // pos input.readMessage(pos); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/NewMailScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/NewMailScNotifyOuterClass.java index a577993..d8888d0 100644 --- a/src/generated/main/emu/lunarcore/proto/NewMailScNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/NewMailScNotifyOuterClass.java @@ -20,7 +20,7 @@ public final class NewMailScNotifyOuterClass { private static final long serialVersionUID = 0L; /** - * repeated uint32 mail_id_list = 10; + * repeated uint32 mail_id_list = 1; */ private final RepeatedInt mailIdList = RepeatedInt.newEmptyInstance(); @@ -35,7 +35,7 @@ public final class NewMailScNotifyOuterClass { } /** - * repeated uint32 mail_id_list = 10; + * repeated uint32 mail_id_list = 1; * @return whether the mailIdList field is set */ public boolean hasMailIdList() { @@ -43,7 +43,7 @@ public final class NewMailScNotifyOuterClass { } /** - * repeated uint32 mail_id_list = 10; + * repeated uint32 mail_id_list = 1; * @return this */ public NewMailScNotify clearMailIdList() { @@ -53,7 +53,7 @@ public final class NewMailScNotifyOuterClass { } /** - * repeated uint32 mail_id_list = 10; + * repeated uint32 mail_id_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 final class NewMailScNotifyOuterClass { } /** - * repeated uint32 mail_id_list = 10; + * repeated uint32 mail_id_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 final class NewMailScNotifyOuterClass { } /** - * repeated uint32 mail_id_list = 10; + * repeated uint32 mail_id_list = 1; * @param value the mailIdList to add * @return this */ @@ -92,7 +92,7 @@ public final class NewMailScNotifyOuterClass { } /** - * repeated uint32 mail_id_list = 10; + * repeated uint32 mail_id_list = 1; * @param values the mailIdList to add * @return this */ @@ -163,7 +163,7 @@ public final class NewMailScNotifyOuterClass { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { for (int i = 0; i < mailIdList.length(); i++) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 8); output.writeUInt32NoTag(mailIdList.array()[i]); } } @@ -185,7 +185,7 @@ public final class NewMailScNotifyOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 82: { + case 10: { // mailIdList [packed=true] input.readPackedUInt32(mailIdList, tag); bitField0_ |= 0x00000001; @@ -204,7 +204,7 @@ public final class NewMailScNotifyOuterClass { tag = input.readTag(); break; } - case 80: { + case 8: { // mailIdList [packed=false] tag = input.readRepeatedUInt32(mailIdList, tag); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/NpcExtraInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/NpcExtraInfoOuterClass.java index 23c0576..047ab3a 100644 --- a/src/generated/main/emu/lunarcore/proto/NpcExtraInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/NpcExtraInfoOuterClass.java @@ -19,7 +19,7 @@ public final class NpcExtraInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional .NpcRogueInfo rogue_info = 14; + * optional .NpcRogueInfo rogue_info = 8; */ private final NpcRogueInfoOuterClass.NpcRogueInfo rogueInfo = NpcRogueInfoOuterClass.NpcRogueInfo.newInstance(); @@ -34,7 +34,7 @@ public final class NpcExtraInfoOuterClass { } /** - * optional .NpcRogueInfo rogue_info = 14; + * optional .NpcRogueInfo rogue_info = 8; * @return whether the rogueInfo field is set */ public boolean hasRogueInfo() { @@ -42,7 +42,7 @@ public final class NpcExtraInfoOuterClass { } /** - * optional .NpcRogueInfo rogue_info = 14; + * optional .NpcRogueInfo rogue_info = 8; * @return this */ public NpcExtraInfo clearRogueInfo() { @@ -52,7 +52,7 @@ public final class NpcExtraInfoOuterClass { } /** - * optional .NpcRogueInfo rogue_info = 14; + * optional .NpcRogueInfo rogue_info = 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 final class NpcExtraInfoOuterClass { } /** - * optional .NpcRogueInfo rogue_info = 14; + * optional .NpcRogueInfo rogue_info = 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 final class NpcExtraInfoOuterClass { } /** - * optional .NpcRogueInfo rogue_info = 14; + * optional .NpcRogueInfo rogue_info = 8; * @param value the rogueInfo to set * @return this */ @@ -150,7 +150,7 @@ public final class NpcExtraInfoOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 114); + output.writeRawByte((byte) 66); output.writeMessageNoTag(rogueInfo); } } @@ -171,7 +171,7 @@ public final class NpcExtraInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 114: { + case 66: { // rogueInfo input.readMessage(rogueInfo); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/NpcTalkInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/NpcTalkInfoOuterClass.java index f513059..cc2db5a 100644 --- a/src/generated/main/emu/lunarcore/proto/NpcTalkInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/NpcTalkInfoOuterClass.java @@ -19,7 +19,7 @@ public final class NpcTalkInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 npc_talk_id = 4; + * optional uint32 npc_talk_id = 3; */ private int npcTalkId; @@ -34,7 +34,7 @@ public final class NpcTalkInfoOuterClass { } /** - * optional uint32 npc_talk_id = 4; + * optional uint32 npc_talk_id = 3; * @return whether the npcTalkId field is set */ public boolean hasNpcTalkId() { @@ -42,7 +42,7 @@ public final class NpcTalkInfoOuterClass { } /** - * optional uint32 npc_talk_id = 4; + * optional uint32 npc_talk_id = 3; * @return this */ public NpcTalkInfo clearNpcTalkId() { @@ -52,7 +52,7 @@ public final class NpcTalkInfoOuterClass { } /** - * optional uint32 npc_talk_id = 4; + * optional uint32 npc_talk_id = 3; * @return the npcTalkId */ public int getNpcTalkId() { @@ -60,7 +60,7 @@ public final class NpcTalkInfoOuterClass { } /** - * optional uint32 npc_talk_id = 4; + * optional uint32 npc_talk_id = 3; * @param value the npcTalkId to set * @return this */ @@ -129,7 +129,7 @@ public final class NpcTalkInfoOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 32); + output.writeRawByte((byte) 24); output.writeUInt32NoTag(npcTalkId); } } @@ -150,7 +150,7 @@ public final class NpcTalkInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 32: { + case 24: { // npcTalkId npcTalkId = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/OONJMMOMFHLOuterClass.java b/src/generated/main/emu/lunarcore/proto/OONJMMOMFHLOuterClass.java deleted file mode 100644 index e5c1a18..0000000 --- a/src/generated/main/emu/lunarcore/proto/OONJMMOMFHLOuterClass.java +++ /dev/null @@ -1,292 +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 OONJMMOMFHLOuterClass { - /** - * Protobuf type {@code OONJMMOMFHL} - */ - public static final class OONJMMOMFHL extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * repeated .KDHBAHABJMP AMEONEDBMDL = 7; - */ - private final RepeatedMessage aMEONEDBMDL = RepeatedMessage.newEmptyInstance(KDHBAHABJMPOuterClass.KDHBAHABJMP.getFactory()); - - private OONJMMOMFHL() { - } - - /** - * @return a new empty instance of {@code OONJMMOMFHL} - */ - public static OONJMMOMFHL newInstance() { - return new OONJMMOMFHL(); - } - - /** - * repeated .KDHBAHABJMP AMEONEDBMDL = 7; - * @return whether the aMEONEDBMDL field is set - */ - public boolean hasAMEONEDBMDL() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * repeated .KDHBAHABJMP AMEONEDBMDL = 7; - * @return this - */ - public OONJMMOMFHL clearAMEONEDBMDL() { - bitField0_ &= ~0x00000001; - aMEONEDBMDL.clear(); - return this; - } - - /** - * repeated .KDHBAHABJMP AMEONEDBMDL = 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 #getMutableAMEONEDBMDL()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getAMEONEDBMDL() { - return aMEONEDBMDL; - } - - /** - * repeated .KDHBAHABJMP AMEONEDBMDL = 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 - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableAMEONEDBMDL() { - bitField0_ |= 0x00000001; - return aMEONEDBMDL; - } - - /** - * repeated .KDHBAHABJMP AMEONEDBMDL = 7; - * @param value the aMEONEDBMDL to add - * @return this - */ - public OONJMMOMFHL addAMEONEDBMDL(final KDHBAHABJMPOuterClass.KDHBAHABJMP value) { - bitField0_ |= 0x00000001; - aMEONEDBMDL.add(value); - return this; - } - - /** - * repeated .KDHBAHABJMP AMEONEDBMDL = 7; - * @param values the aMEONEDBMDL to add - * @return this - */ - public OONJMMOMFHL addAllAMEONEDBMDL(final KDHBAHABJMPOuterClass.KDHBAHABJMP... values) { - bitField0_ |= 0x00000001; - aMEONEDBMDL.addAll(values); - return this; - } - - @Override - public OONJMMOMFHL copyFrom(final OONJMMOMFHL other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - aMEONEDBMDL.copyFrom(other.aMEONEDBMDL); - } - return this; - } - - @Override - public OONJMMOMFHL mergeFrom(final OONJMMOMFHL other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasAMEONEDBMDL()) { - getMutableAMEONEDBMDL().addAll(other.aMEONEDBMDL); - } - return this; - } - - @Override - public OONJMMOMFHL clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - aMEONEDBMDL.clear(); - return this; - } - - @Override - public OONJMMOMFHL clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - aMEONEDBMDL.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof OONJMMOMFHL)) { - return false; - } - OONJMMOMFHL other = (OONJMMOMFHL) o; - return bitField0_ == other.bitField0_ - && (!hasAMEONEDBMDL() || aMEONEDBMDL.equals(other.aMEONEDBMDL)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - for (int i = 0; i < aMEONEDBMDL.length(); i++) { - output.writeRawByte((byte) 58); - output.writeMessageNoTag(aMEONEDBMDL.get(i)); - } - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += (1 * aMEONEDBMDL.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(aMEONEDBMDL); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public OONJMMOMFHL mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 58: { - // aMEONEDBMDL - tag = input.readRepeatedMessage(aMEONEDBMDL, tag); - bitField0_ |= 0x00000001; - 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.writeRepeatedMessage(FieldNames.aMEONEDBMDL, aMEONEDBMDL); - } - output.endObject(); - } - - @Override - public OONJMMOMFHL mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -455539094: { - if (input.isAtField(FieldNames.aMEONEDBMDL)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(aMEONEDBMDL); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public OONJMMOMFHL clone() { - return new OONJMMOMFHL().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static OONJMMOMFHL parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new OONJMMOMFHL(), data).checkInitialized(); - } - - public static OONJMMOMFHL parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new OONJMMOMFHL(), input).checkInitialized(); - } - - public static OONJMMOMFHL parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new OONJMMOMFHL(), input).checkInitialized(); - } - - /** - * @return factory for creating OONJMMOMFHL messages - */ - public static MessageFactory getFactory() { - return OONJMMOMFHLFactory.INSTANCE; - } - - private enum OONJMMOMFHLFactory implements MessageFactory { - INSTANCE; - - @Override - public OONJMMOMFHL create() { - return OONJMMOMFHL.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName aMEONEDBMDL = FieldName.forField("AMEONEDBMDL"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/PVEBattleResultCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/PVEBattleResultCsReqOuterClass.java index 4da1fdd..1e375b4 100644 --- a/src/generated/main/emu/lunarcore/proto/PVEBattleResultCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/PVEBattleResultCsReqOuterClass.java @@ -21,19 +21,19 @@ public final class PVEBattleResultCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 stage_id = 2; + * optional uint32 client_res_version = 2; */ - private int stageId; + private int clientResVersion; /** - * optional uint32 battle_id = 10; + * optional uint32 battle_id = 3; */ private int battleId; /** - * optional uint32 client_res_version = 12; + * optional uint32 stage_id = 11; */ - private int clientResVersion; + private int stageId; /** * optional uint32 cost_time = 14; @@ -41,27 +41,27 @@ public final class PVEBattleResultCsReqOuterClass { private int costTime; /** - * optional .BattleEndStatus end_status = 11; + * optional .BattleEndStatus end_status = 12; */ private int endStatus; /** - * optional bool is_ai_consider_ultra_skill = 13; + * optional bool is_ai_consider_ultra_skill = 15; */ private boolean isAiConsiderUltraSkill; /** - * optional .BattleStatistics stt = 1; + * optional .BattleStatistics stt = 8; */ private final BattleStatisticsOuterClass.BattleStatistics stt = BattleStatisticsOuterClass.BattleStatistics.newInstance(); /** - * optional bytes turn_snapshot_hash = 3; + * optional bytes turn_snapshot_hash = 13; */ private final RepeatedByte turnSnapshotHash = RepeatedByte.newEmptyInstance(); /** - * repeated .BattleOp op_list = 4; + * repeated .BattleOp op_list = 1; */ private final RepeatedMessage opList = RepeatedMessage.newEmptyInstance(BattleOpOuterClass.BattleOp.getFactory()); @@ -76,44 +76,44 @@ public final class PVEBattleResultCsReqOuterClass { } /** - * optional uint32 stage_id = 2; - * @return whether the stageId field is set + * optional uint32 client_res_version = 2; + * @return whether the clientResVersion field is set */ - public boolean hasStageId() { + public boolean hasClientResVersion() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 stage_id = 2; + * optional uint32 client_res_version = 2; * @return this */ - public PVEBattleResultCsReq clearStageId() { + public PVEBattleResultCsReq clearClientResVersion() { bitField0_ &= ~0x00000001; - stageId = 0; + clientResVersion = 0; return this; } /** - * optional uint32 stage_id = 2; - * @return the stageId + * optional uint32 client_res_version = 2; + * @return the clientResVersion */ - public int getStageId() { - return stageId; + public int getClientResVersion() { + return clientResVersion; } /** - * optional uint32 stage_id = 2; - * @param value the stageId to set + * optional uint32 client_res_version = 2; + * @param value the clientResVersion to set * @return this */ - public PVEBattleResultCsReq setStageId(final int value) { + public PVEBattleResultCsReq setClientResVersion(final int value) { bitField0_ |= 0x00000001; - stageId = value; + clientResVersion = value; return this; } /** - * optional uint32 battle_id = 10; + * optional uint32 battle_id = 3; * @return whether the battleId field is set */ public boolean hasBattleId() { @@ -121,7 +121,7 @@ public final class PVEBattleResultCsReqOuterClass { } /** - * optional uint32 battle_id = 10; + * optional uint32 battle_id = 3; * @return this */ public PVEBattleResultCsReq clearBattleId() { @@ -131,7 +131,7 @@ public final class PVEBattleResultCsReqOuterClass { } /** - * optional uint32 battle_id = 10; + * optional uint32 battle_id = 3; * @return the battleId */ public int getBattleId() { @@ -139,7 +139,7 @@ public final class PVEBattleResultCsReqOuterClass { } /** - * optional uint32 battle_id = 10; + * optional uint32 battle_id = 3; * @param value the battleId to set * @return this */ @@ -150,39 +150,39 @@ public final class PVEBattleResultCsReqOuterClass { } /** - * optional uint32 client_res_version = 12; - * @return whether the clientResVersion field is set + * optional uint32 stage_id = 11; + * @return whether the stageId field is set */ - public boolean hasClientResVersion() { + public boolean hasStageId() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 client_res_version = 12; + * optional uint32 stage_id = 11; * @return this */ - public PVEBattleResultCsReq clearClientResVersion() { + public PVEBattleResultCsReq clearStageId() { bitField0_ &= ~0x00000004; - clientResVersion = 0; + stageId = 0; return this; } /** - * optional uint32 client_res_version = 12; - * @return the clientResVersion + * optional uint32 stage_id = 11; + * @return the stageId */ - public int getClientResVersion() { - return clientResVersion; + public int getStageId() { + return stageId; } /** - * optional uint32 client_res_version = 12; - * @param value the clientResVersion to set + * optional uint32 stage_id = 11; + * @param value the stageId to set * @return this */ - public PVEBattleResultCsReq setClientResVersion(final int value) { + public PVEBattleResultCsReq setStageId(final int value) { bitField0_ |= 0x00000004; - clientResVersion = value; + stageId = value; return this; } @@ -224,7 +224,7 @@ public final class PVEBattleResultCsReqOuterClass { } /** - * optional .BattleEndStatus end_status = 11; + * optional .BattleEndStatus end_status = 12; * @return whether the endStatus field is set */ public boolean hasEndStatus() { @@ -232,7 +232,7 @@ public final class PVEBattleResultCsReqOuterClass { } /** - * optional .BattleEndStatus end_status = 11; + * optional .BattleEndStatus end_status = 12; * @return this */ public PVEBattleResultCsReq clearEndStatus() { @@ -242,7 +242,7 @@ public final class PVEBattleResultCsReqOuterClass { } /** - * optional .BattleEndStatus end_status = 11; + * optional .BattleEndStatus end_status = 12; * @return the endStatus */ public BattleEndStatusOuterClass.BattleEndStatus getEndStatus() { @@ -275,7 +275,7 @@ public final class PVEBattleResultCsReqOuterClass { } /** - * optional .BattleEndStatus end_status = 11; + * optional .BattleEndStatus end_status = 12; * @param value the endStatus to set * @return this */ @@ -287,7 +287,7 @@ public final class PVEBattleResultCsReqOuterClass { } /** - * optional bool is_ai_consider_ultra_skill = 13; + * optional bool is_ai_consider_ultra_skill = 15; * @return whether the isAiConsiderUltraSkill field is set */ public boolean hasIsAiConsiderUltraSkill() { @@ -295,7 +295,7 @@ public final class PVEBattleResultCsReqOuterClass { } /** - * optional bool is_ai_consider_ultra_skill = 13; + * optional bool is_ai_consider_ultra_skill = 15; * @return this */ public PVEBattleResultCsReq clearIsAiConsiderUltraSkill() { @@ -305,7 +305,7 @@ public final class PVEBattleResultCsReqOuterClass { } /** - * optional bool is_ai_consider_ultra_skill = 13; + * optional bool is_ai_consider_ultra_skill = 15; * @return the isAiConsiderUltraSkill */ public boolean getIsAiConsiderUltraSkill() { @@ -313,7 +313,7 @@ public final class PVEBattleResultCsReqOuterClass { } /** - * optional bool is_ai_consider_ultra_skill = 13; + * optional bool is_ai_consider_ultra_skill = 15; * @param value the isAiConsiderUltraSkill to set * @return this */ @@ -324,7 +324,7 @@ public final class PVEBattleResultCsReqOuterClass { } /** - * optional .BattleStatistics stt = 1; + * optional .BattleStatistics stt = 8; * @return whether the stt field is set */ public boolean hasStt() { @@ -332,7 +332,7 @@ public final class PVEBattleResultCsReqOuterClass { } /** - * optional .BattleStatistics stt = 1; + * optional .BattleStatistics stt = 8; * @return this */ public PVEBattleResultCsReq clearStt() { @@ -342,7 +342,7 @@ public final class PVEBattleResultCsReqOuterClass { } /** - * optional .BattleStatistics stt = 1; + * optional .BattleStatistics stt = 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. @@ -356,7 +356,7 @@ public final class PVEBattleResultCsReqOuterClass { } /** - * optional .BattleStatistics stt = 1; + * optional .BattleStatistics stt = 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 @@ -370,7 +370,7 @@ public final class PVEBattleResultCsReqOuterClass { } /** - * optional .BattleStatistics stt = 1; + * optional .BattleStatistics stt = 8; * @param value the stt to set * @return this */ @@ -381,7 +381,7 @@ public final class PVEBattleResultCsReqOuterClass { } /** - * optional bytes turn_snapshot_hash = 3; + * optional bytes turn_snapshot_hash = 13; * @return whether the turnSnapshotHash field is set */ public boolean hasTurnSnapshotHash() { @@ -389,7 +389,7 @@ public final class PVEBattleResultCsReqOuterClass { } /** - * optional bytes turn_snapshot_hash = 3; + * optional bytes turn_snapshot_hash = 13; * @return this */ public PVEBattleResultCsReq clearTurnSnapshotHash() { @@ -399,7 +399,7 @@ public final class PVEBattleResultCsReqOuterClass { } /** - * optional bytes turn_snapshot_hash = 3; + * optional bytes turn_snapshot_hash = 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. @@ -413,7 +413,7 @@ public final class PVEBattleResultCsReqOuterClass { } /** - * optional bytes turn_snapshot_hash = 3; + * optional bytes turn_snapshot_hash = 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 @@ -427,7 +427,7 @@ public final class PVEBattleResultCsReqOuterClass { } /** - * optional bytes turn_snapshot_hash = 3; + * optional bytes turn_snapshot_hash = 13; * @param value the turnSnapshotHash to add * @return this */ @@ -438,7 +438,7 @@ public final class PVEBattleResultCsReqOuterClass { } /** - * optional bytes turn_snapshot_hash = 3; + * optional bytes turn_snapshot_hash = 13; * @param values the turnSnapshotHash to add * @return this */ @@ -449,7 +449,7 @@ public final class PVEBattleResultCsReqOuterClass { } /** - * optional bytes turn_snapshot_hash = 3; + * optional bytes turn_snapshot_hash = 13; * @param values the turnSnapshotHash to set * @return this */ @@ -460,7 +460,7 @@ public final class PVEBattleResultCsReqOuterClass { } /** - * repeated .BattleOp op_list = 4; + * repeated .BattleOp op_list = 1; * @return whether the opList field is set */ public boolean hasOpList() { @@ -468,7 +468,7 @@ public final class PVEBattleResultCsReqOuterClass { } /** - * repeated .BattleOp op_list = 4; + * repeated .BattleOp op_list = 1; * @return this */ public PVEBattleResultCsReq clearOpList() { @@ -478,7 +478,7 @@ public final class PVEBattleResultCsReqOuterClass { } /** - * repeated .BattleOp op_list = 4; + * repeated .BattleOp op_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. @@ -492,7 +492,7 @@ public final class PVEBattleResultCsReqOuterClass { } /** - * repeated .BattleOp op_list = 4; + * repeated .BattleOp op_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 @@ -506,7 +506,7 @@ public final class PVEBattleResultCsReqOuterClass { } /** - * repeated .BattleOp op_list = 4; + * repeated .BattleOp op_list = 1; * @param value the opList to add * @return this */ @@ -517,7 +517,7 @@ public final class PVEBattleResultCsReqOuterClass { } /** - * repeated .BattleOp op_list = 4; + * repeated .BattleOp op_list = 1; * @param values the opList to add * @return this */ @@ -532,9 +532,9 @@ public final class PVEBattleResultCsReqOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - stageId = other.stageId; - battleId = other.battleId; clientResVersion = other.clientResVersion; + battleId = other.battleId; + stageId = other.stageId; costTime = other.costTime; endStatus = other.endStatus; isAiConsiderUltraSkill = other.isAiConsiderUltraSkill; @@ -551,14 +551,14 @@ public final class PVEBattleResultCsReqOuterClass { return this; } cachedSize = -1; - if (other.hasStageId()) { - setStageId(other.stageId); + if (other.hasClientResVersion()) { + setClientResVersion(other.clientResVersion); } if (other.hasBattleId()) { setBattleId(other.battleId); } - if (other.hasClientResVersion()) { - setClientResVersion(other.clientResVersion); + if (other.hasStageId()) { + setStageId(other.stageId); } if (other.hasCostTime()) { setCostTime(other.costTime); @@ -588,9 +588,9 @@ public final class PVEBattleResultCsReqOuterClass { } cachedSize = -1; bitField0_ = 0; - stageId = 0; - battleId = 0; clientResVersion = 0; + battleId = 0; + stageId = 0; costTime = 0; endStatus = 0; isAiConsiderUltraSkill = false; @@ -623,9 +623,9 @@ public final class PVEBattleResultCsReqOuterClass { } PVEBattleResultCsReq other = (PVEBattleResultCsReq) o; return bitField0_ == other.bitField0_ - && (!hasStageId() || stageId == other.stageId) - && (!hasBattleId() || battleId == other.battleId) && (!hasClientResVersion() || clientResVersion == other.clientResVersion) + && (!hasBattleId() || battleId == other.battleId) + && (!hasStageId() || stageId == other.stageId) && (!hasCostTime() || costTime == other.costTime) && (!hasEndStatus() || endStatus == other.endStatus) && (!hasIsAiConsiderUltraSkill() || isAiConsiderUltraSkill == other.isAiConsiderUltraSkill) @@ -638,39 +638,39 @@ public final class PVEBattleResultCsReqOuterClass { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { output.writeRawByte((byte) 16); - output.writeUInt32NoTag(stageId); + output.writeUInt32NoTag(clientResVersion); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 24); output.writeUInt32NoTag(battleId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 96); - output.writeUInt32NoTag(clientResVersion); + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(stageId); } if ((bitField0_ & 0x00000008) != 0) { output.writeRawByte((byte) 112); output.writeUInt32NoTag(costTime); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 96); output.writeEnumNoTag(endStatus); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 120); output.writeBoolNoTag(isAiConsiderUltraSkill); } if ((bitField0_ & 0x00000040) != 0) { - output.writeRawByte((byte) 10); + output.writeRawByte((byte) 66); output.writeMessageNoTag(stt); } if ((bitField0_ & 0x00000080) != 0) { - output.writeRawByte((byte) 26); + output.writeRawByte((byte) 106); output.writeBytesNoTag(turnSnapshotHash); } if ((bitField0_ & 0x00000100) != 0) { for (int i = 0; i < opList.length(); i++) { - output.writeRawByte((byte) 34); + output.writeRawByte((byte) 10); output.writeMessageNoTag(opList.get(i)); } } @@ -680,13 +680,13 @@ public final class PVEBattleResultCsReqOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(stageId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(clientResVersion); } if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(battleId); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(clientResVersion); + size += 1 + ProtoSink.computeUInt32SizeNoTag(stageId); } if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(costTime); @@ -717,26 +717,26 @@ public final class PVEBattleResultCsReqOuterClass { while (true) { switch (tag) { case 16: { - // stageId - stageId = input.readUInt32(); + // clientResVersion + clientResVersion = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 80) { + if (tag != 24) { break; } } - case 80: { + case 24: { // battleId battleId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 96) { + if (tag != 88) { break; } } - case 96: { - // clientResVersion - clientResVersion = input.readUInt32(); + case 88: { + // stageId + stageId = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 112) { @@ -748,11 +748,11 @@ public final class PVEBattleResultCsReqOuterClass { costTime = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 88) { + if (tag != 96) { break; } } - case 88: { + case 96: { // endStatus final int value = input.readInt32(); if (BattleEndStatusOuterClass.BattleEndStatus.forNumber(value) != null) { @@ -760,38 +760,38 @@ public final class PVEBattleResultCsReqOuterClass { bitField0_ |= 0x00000010; } tag = input.readTag(); - if (tag != 104) { + if (tag != 120) { break; } } - case 104: { + case 120: { // isAiConsiderUltraSkill isAiConsiderUltraSkill = input.readBool(); bitField0_ |= 0x00000020; tag = input.readTag(); + if (tag != 66) { + break; + } + } + case 66: { + // stt + input.readMessage(stt); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 106) { + break; + } + } + case 106: { + // turnSnapshotHash + input.readBytes(turnSnapshotHash); + bitField0_ |= 0x00000080; + tag = input.readTag(); if (tag != 10) { break; } } case 10: { - // stt - input.readMessage(stt); - bitField0_ |= 0x00000040; - tag = input.readTag(); - if (tag != 26) { - break; - } - } - case 26: { - // turnSnapshotHash - input.readBytes(turnSnapshotHash); - bitField0_ |= 0x00000080; - tag = input.readTag(); - if (tag != 34) { - break; - } - } - case 34: { // opList tag = input.readRepeatedMessage(opList, tag); bitField0_ |= 0x00000100; @@ -817,13 +817,13 @@ public final class PVEBattleResultCsReqOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.stageId, stageId); + output.writeUInt32(FieldNames.clientResVersion, clientResVersion); } if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.battleId, battleId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.clientResVersion, clientResVersion); + output.writeUInt32(FieldNames.stageId, stageId); } if ((bitField0_ & 0x00000008) != 0) { output.writeUInt32(FieldNames.costTime, costTime); @@ -853,11 +853,11 @@ public final class PVEBattleResultCsReqOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - 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_ |= 0x00000001; } } else { @@ -877,11 +877,11 @@ public final class PVEBattleResultCsReqOuterClass { } break; } - case -2005674429: - case -349907515: { - if (input.isAtField(FieldNames.clientResVersion)) { + case -1897528135: + case 1306191356: { + if (input.isAtField(FieldNames.stageId)) { if (!input.trySkipNullValue()) { - clientResVersion = input.readUInt32(); + stageId = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -1018,11 +1018,11 @@ public final class PVEBattleResultCsReqOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName stageId = FieldName.forField("stageId", "stage_id"); + static final FieldName clientResVersion = FieldName.forField("clientResVersion", "client_res_version"); static final FieldName battleId = FieldName.forField("battleId", "battle_id"); - static final FieldName clientResVersion = FieldName.forField("clientResVersion", "client_res_version"); + static final FieldName stageId = FieldName.forField("stageId", "stage_id"); static final FieldName costTime = FieldName.forField("costTime", "cost_time"); diff --git a/src/generated/main/emu/lunarcore/proto/PVEBattleResultScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/PVEBattleResultScRspOuterClass.java index 9888a89..7f95a8a 100644 --- a/src/generated/main/emu/lunarcore/proto/PVEBattleResultScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/PVEBattleResultScRspOuterClass.java @@ -21,42 +21,42 @@ public final class PVEBattleResultScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 mismatch_turn_count = 2; - */ - private int mismatchTurnCount; - - /** - * optional uint32 retcode = 3; - */ - private int retcode; - - /** - * optional uint32 battle_id = 10; - */ - private int battleId; - - /** - * optional uint32 event_id = 12; - */ - private int eventId; - - /** - * optional uint32 stage_id = 15; + * optional uint32 stage_id = 1; */ private int stageId; /** - * optional .BattleEndStatus end_status = 5; + * optional uint32 event_id = 4; + */ + private int eventId; + + /** + * optional uint32 retcode = 5; + */ + private int retcode; + + /** + * optional uint32 battle_id = 6; + */ + private int battleId; + + /** + * optional uint32 mismatch_turn_count = 15; + */ + private int mismatchTurnCount; + + /** + * optional .BattleEndStatus end_status = 7; */ private int endStatus; /** - * optional bool check_identical = 1; + * optional bool check_identical = 12; */ private boolean checkIdentical; /** - * optional .ItemList drop_data = 8; + * optional .ItemList drop_data = 2; */ private final ItemListOuterClass.ItemList dropData = ItemListOuterClass.ItemList.newInstance(); @@ -66,27 +66,27 @@ public final class PVEBattleResultScRspOuterClass { private final ItemListOuterClass.ItemList unk1 = ItemListOuterClass.ItemList.newInstance(); /** - * optional .ItemList unk2 = 14; + * optional .ItemList unk2 = 13; */ private final ItemListOuterClass.ItemList unk2 = ItemListOuterClass.ItemList.newInstance(); /** - * optional .ItemList unk3 = 743; + * optional .ItemList unk3 = 524; */ private final ItemListOuterClass.ItemList unk3 = ItemListOuterClass.ItemList.newInstance(); /** - * optional string bin_version = 11; - */ - private final Utf8String binVersion = Utf8String.newEmptyInstance(); - - /** - * optional string res_version = 13; + * optional string res_version = 3; */ private final Utf8String resVersion = Utf8String.newEmptyInstance(); /** - * repeated .BattleAvatar battle_avatar_list = 4; + * optional string bin_version = 14; + */ + private final Utf8String binVersion = Utf8String.newEmptyInstance(); + + /** + * repeated .BattleAvatar battle_avatar_list = 8; */ private final RepeatedMessage battleAvatarList = RepeatedMessage.newEmptyInstance(BattleAvatarOuterClass.BattleAvatar.getFactory()); @@ -101,173 +101,25 @@ public final class PVEBattleResultScRspOuterClass { } /** - * optional uint32 mismatch_turn_count = 2; - * @return whether the mismatchTurnCount field is set + * optional uint32 stage_id = 1; + * @return whether the stageId field is set */ - public boolean hasMismatchTurnCount() { + public boolean hasStageId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 mismatch_turn_count = 2; - * @return this - */ - public PVEBattleResultScRsp clearMismatchTurnCount() { - bitField0_ &= ~0x00000001; - mismatchTurnCount = 0; - return this; - } - - /** - * optional uint32 mismatch_turn_count = 2; - * @return the mismatchTurnCount - */ - public int getMismatchTurnCount() { - return mismatchTurnCount; - } - - /** - * optional uint32 mismatch_turn_count = 2; - * @param value the mismatchTurnCount to set - * @return this - */ - public PVEBattleResultScRsp setMismatchTurnCount(final int value) { - bitField0_ |= 0x00000001; - mismatchTurnCount = value; - return this; - } - - /** - * optional uint32 retcode = 3; - * @return whether the retcode field is set - */ - public boolean hasRetcode() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 retcode = 3; - * @return this - */ - public PVEBattleResultScRsp clearRetcode() { - bitField0_ &= ~0x00000002; - retcode = 0; - return this; - } - - /** - * optional uint32 retcode = 3; - * @return the retcode - */ - public int getRetcode() { - return retcode; - } - - /** - * optional uint32 retcode = 3; - * @param value the retcode to set - * @return this - */ - public PVEBattleResultScRsp setRetcode(final int value) { - bitField0_ |= 0x00000002; - retcode = value; - return this; - } - - /** - * optional uint32 battle_id = 10; - * @return whether the battleId field is set - */ - public boolean hasBattleId() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 battle_id = 10; - * @return this - */ - public PVEBattleResultScRsp clearBattleId() { - bitField0_ &= ~0x00000004; - battleId = 0; - return this; - } - - /** - * optional uint32 battle_id = 10; - * @return the battleId - */ - public int getBattleId() { - return battleId; - } - - /** - * optional uint32 battle_id = 10; - * @param value the battleId to set - * @return this - */ - public PVEBattleResultScRsp setBattleId(final int value) { - bitField0_ |= 0x00000004; - battleId = value; - return this; - } - - /** - * optional uint32 event_id = 12; - * @return whether the eventId field is set - */ - public boolean hasEventId() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional uint32 event_id = 12; - * @return this - */ - public PVEBattleResultScRsp clearEventId() { - bitField0_ &= ~0x00000008; - eventId = 0; - return this; - } - - /** - * optional uint32 event_id = 12; - * @return the eventId - */ - public int getEventId() { - return eventId; - } - - /** - * optional uint32 event_id = 12; - * @param value the eventId to set - * @return this - */ - public PVEBattleResultScRsp setEventId(final int value) { - bitField0_ |= 0x00000008; - eventId = value; - return this; - } - - /** - * optional uint32 stage_id = 15; - * @return whether the stageId field is set - */ - public boolean hasStageId() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - * optional uint32 stage_id = 15; + * optional uint32 stage_id = 1; * @return this */ public PVEBattleResultScRsp clearStageId() { - bitField0_ &= ~0x00000010; + bitField0_ &= ~0x00000001; stageId = 0; return this; } /** - * optional uint32 stage_id = 15; + * optional uint32 stage_id = 1; * @return the stageId */ public int getStageId() { @@ -275,18 +127,166 @@ public final class PVEBattleResultScRspOuterClass { } /** - * optional uint32 stage_id = 15; + * optional uint32 stage_id = 1; * @param value the stageId to set * @return this */ public PVEBattleResultScRsp setStageId(final int value) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000001; stageId = value; return this; } /** - * optional .BattleEndStatus end_status = 5; + * optional uint32 event_id = 4; + * @return whether the eventId field is set + */ + public boolean hasEventId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 event_id = 4; + * @return this + */ + public PVEBattleResultScRsp clearEventId() { + bitField0_ &= ~0x00000002; + eventId = 0; + return this; + } + + /** + * optional uint32 event_id = 4; + * @return the eventId + */ + public int getEventId() { + return eventId; + } + + /** + * optional uint32 event_id = 4; + * @param value the eventId to set + * @return this + */ + public PVEBattleResultScRsp setEventId(final int value) { + bitField0_ |= 0x00000002; + eventId = value; + return this; + } + + /** + * optional uint32 retcode = 5; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 retcode = 5; + * @return this + */ + public PVEBattleResultScRsp clearRetcode() { + bitField0_ &= ~0x00000004; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 5; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 5; + * @param value the retcode to set + * @return this + */ + public PVEBattleResultScRsp setRetcode(final int value) { + bitField0_ |= 0x00000004; + retcode = value; + return this; + } + + /** + * optional uint32 battle_id = 6; + * @return whether the battleId field is set + */ + public boolean hasBattleId() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 battle_id = 6; + * @return this + */ + public PVEBattleResultScRsp clearBattleId() { + bitField0_ &= ~0x00000008; + battleId = 0; + return this; + } + + /** + * optional uint32 battle_id = 6; + * @return the battleId + */ + public int getBattleId() { + return battleId; + } + + /** + * optional uint32 battle_id = 6; + * @param value the battleId to set + * @return this + */ + public PVEBattleResultScRsp setBattleId(final int value) { + bitField0_ |= 0x00000008; + battleId = value; + return this; + } + + /** + * optional uint32 mismatch_turn_count = 15; + * @return whether the mismatchTurnCount field is set + */ + public boolean hasMismatchTurnCount() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 mismatch_turn_count = 15; + * @return this + */ + public PVEBattleResultScRsp clearMismatchTurnCount() { + bitField0_ &= ~0x00000010; + mismatchTurnCount = 0; + return this; + } + + /** + * optional uint32 mismatch_turn_count = 15; + * @return the mismatchTurnCount + */ + public int getMismatchTurnCount() { + return mismatchTurnCount; + } + + /** + * optional uint32 mismatch_turn_count = 15; + * @param value the mismatchTurnCount to set + * @return this + */ + public PVEBattleResultScRsp setMismatchTurnCount(final int value) { + bitField0_ |= 0x00000010; + mismatchTurnCount = value; + return this; + } + + /** + * optional .BattleEndStatus end_status = 7; * @return whether the endStatus field is set */ public boolean hasEndStatus() { @@ -294,7 +294,7 @@ public final class PVEBattleResultScRspOuterClass { } /** - * optional .BattleEndStatus end_status = 5; + * optional .BattleEndStatus end_status = 7; * @return this */ public PVEBattleResultScRsp clearEndStatus() { @@ -304,7 +304,7 @@ public final class PVEBattleResultScRspOuterClass { } /** - * optional .BattleEndStatus end_status = 5; + * optional .BattleEndStatus end_status = 7; * @return the endStatus */ public BattleEndStatusOuterClass.BattleEndStatus getEndStatus() { @@ -337,7 +337,7 @@ public final class PVEBattleResultScRspOuterClass { } /** - * optional .BattleEndStatus end_status = 5; + * optional .BattleEndStatus end_status = 7; * @param value the endStatus to set * @return this */ @@ -349,7 +349,7 @@ public final class PVEBattleResultScRspOuterClass { } /** - * optional bool check_identical = 1; + * optional bool check_identical = 12; * @return whether the checkIdentical field is set */ public boolean hasCheckIdentical() { @@ -357,7 +357,7 @@ public final class PVEBattleResultScRspOuterClass { } /** - * optional bool check_identical = 1; + * optional bool check_identical = 12; * @return this */ public PVEBattleResultScRsp clearCheckIdentical() { @@ -367,7 +367,7 @@ public final class PVEBattleResultScRspOuterClass { } /** - * optional bool check_identical = 1; + * optional bool check_identical = 12; * @return the checkIdentical */ public boolean getCheckIdentical() { @@ -375,7 +375,7 @@ public final class PVEBattleResultScRspOuterClass { } /** - * optional bool check_identical = 1; + * optional bool check_identical = 12; * @param value the checkIdentical to set * @return this */ @@ -386,7 +386,7 @@ public final class PVEBattleResultScRspOuterClass { } /** - * optional .ItemList drop_data = 8; + * optional .ItemList drop_data = 2; * @return whether the dropData field is set */ public boolean hasDropData() { @@ -394,7 +394,7 @@ public final class PVEBattleResultScRspOuterClass { } /** - * optional .ItemList drop_data = 8; + * optional .ItemList drop_data = 2; * @return this */ public PVEBattleResultScRsp clearDropData() { @@ -404,7 +404,7 @@ public final class PVEBattleResultScRspOuterClass { } /** - * optional .ItemList drop_data = 8; + * optional .ItemList drop_data = 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. @@ -418,7 +418,7 @@ public final class PVEBattleResultScRspOuterClass { } /** - * optional .ItemList drop_data = 8; + * optional .ItemList drop_data = 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 @@ -432,7 +432,7 @@ public final class PVEBattleResultScRspOuterClass { } /** - * optional .ItemList drop_data = 8; + * optional .ItemList drop_data = 2; * @param value the dropData to set * @return this */ @@ -500,7 +500,7 @@ public final class PVEBattleResultScRspOuterClass { } /** - * optional .ItemList unk2 = 14; + * optional .ItemList unk2 = 13; * @return whether the unk2 field is set */ public boolean hasUnk2() { @@ -508,7 +508,7 @@ public final class PVEBattleResultScRspOuterClass { } /** - * optional .ItemList unk2 = 14; + * optional .ItemList unk2 = 13; * @return this */ public PVEBattleResultScRsp clearUnk2() { @@ -518,7 +518,7 @@ public final class PVEBattleResultScRspOuterClass { } /** - * optional .ItemList unk2 = 14; + * optional .ItemList unk2 = 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. @@ -532,7 +532,7 @@ public final class PVEBattleResultScRspOuterClass { } /** - * optional .ItemList unk2 = 14; + * optional .ItemList unk2 = 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 @@ -546,7 +546,7 @@ public final class PVEBattleResultScRspOuterClass { } /** - * optional .ItemList unk2 = 14; + * optional .ItemList unk2 = 13; * @param value the unk2 to set * @return this */ @@ -557,7 +557,7 @@ public final class PVEBattleResultScRspOuterClass { } /** - * optional .ItemList unk3 = 743; + * optional .ItemList unk3 = 524; * @return whether the unk3 field is set */ public boolean hasUnk3() { @@ -565,7 +565,7 @@ public final class PVEBattleResultScRspOuterClass { } /** - * optional .ItemList unk3 = 743; + * optional .ItemList unk3 = 524; * @return this */ public PVEBattleResultScRsp clearUnk3() { @@ -575,7 +575,7 @@ public final class PVEBattleResultScRspOuterClass { } /** - * optional .ItemList unk3 = 743; + * optional .ItemList unk3 = 524; * * 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. @@ -589,7 +589,7 @@ public final class PVEBattleResultScRspOuterClass { } /** - * optional .ItemList unk3 = 743; + * optional .ItemList unk3 = 524; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -603,7 +603,7 @@ public final class PVEBattleResultScRspOuterClass { } /** - * optional .ItemList unk3 = 743; + * optional .ItemList unk3 = 524; * @param value the unk3 to set * @return this */ @@ -614,90 +614,25 @@ public final class PVEBattleResultScRspOuterClass { } /** - * optional string bin_version = 11; - * @return whether the binVersion field is set + * optional string res_version = 3; + * @return whether the resVersion field is set */ - public boolean hasBinVersion() { + public boolean hasResVersion() { return (bitField0_ & 0x00000800) != 0; } /** - * optional string bin_version = 11; - * @return this - */ - public PVEBattleResultScRsp clearBinVersion() { - bitField0_ &= ~0x00000800; - binVersion.clear(); - return this; - } - - /** - * optional string bin_version = 11; - * @return the binVersion - */ - public String getBinVersion() { - return binVersion.getString(); - } - - /** - * optional string bin_version = 11; - * @return internal {@code Utf8String} representation of binVersion for reading - */ - public Utf8String getBinVersionBytes() { - return this.binVersion; - } - - /** - * optional string bin_version = 11; - * @return internal {@code Utf8String} representation of binVersion for modifications - */ - public Utf8String getMutableBinVersionBytes() { - bitField0_ |= 0x00000800; - return this.binVersion; - } - - /** - * optional string bin_version = 11; - * @param value the binVersion to set - * @return this - */ - public PVEBattleResultScRsp setBinVersion(final CharSequence value) { - bitField0_ |= 0x00000800; - binVersion.copyFrom(value); - return this; - } - - /** - * optional string bin_version = 11; - * @param value the binVersion to set - * @return this - */ - public PVEBattleResultScRsp setBinVersion(final Utf8String value) { - bitField0_ |= 0x00000800; - binVersion.copyFrom(value); - return this; - } - - /** - * optional string res_version = 13; - * @return whether the resVersion field is set - */ - public boolean hasResVersion() { - return (bitField0_ & 0x00001000) != 0; - } - - /** - * optional string res_version = 13; + * optional string res_version = 3; * @return this */ public PVEBattleResultScRsp clearResVersion() { - bitField0_ &= ~0x00001000; + bitField0_ &= ~0x00000800; resVersion.clear(); return this; } /** - * optional string res_version = 13; + * optional string res_version = 3; * @return the resVersion */ public String getResVersion() { @@ -705,7 +640,7 @@ public final class PVEBattleResultScRspOuterClass { } /** - * optional string res_version = 13; + * optional string res_version = 3; * @return internal {@code Utf8String} representation of resVersion for reading */ public Utf8String getResVersionBytes() { @@ -713,38 +648,103 @@ public final class PVEBattleResultScRspOuterClass { } /** - * optional string res_version = 13; + * optional string res_version = 3; * @return internal {@code Utf8String} representation of resVersion for modifications */ public Utf8String getMutableResVersionBytes() { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00000800; return this.resVersion; } /** - * optional string res_version = 13; + * optional string res_version = 3; * @param value the resVersion to set * @return this */ public PVEBattleResultScRsp setResVersion(final CharSequence value) { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00000800; resVersion.copyFrom(value); return this; } /** - * optional string res_version = 13; + * optional string res_version = 3; * @param value the resVersion to set * @return this */ public PVEBattleResultScRsp setResVersion(final Utf8String value) { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00000800; resVersion.copyFrom(value); return this; } /** - * repeated .BattleAvatar battle_avatar_list = 4; + * optional string bin_version = 14; + * @return whether the binVersion field is set + */ + public boolean hasBinVersion() { + return (bitField0_ & 0x00001000) != 0; + } + + /** + * optional string bin_version = 14; + * @return this + */ + public PVEBattleResultScRsp clearBinVersion() { + bitField0_ &= ~0x00001000; + binVersion.clear(); + return this; + } + + /** + * optional string bin_version = 14; + * @return the binVersion + */ + public String getBinVersion() { + return binVersion.getString(); + } + + /** + * optional string bin_version = 14; + * @return internal {@code Utf8String} representation of binVersion for reading + */ + public Utf8String getBinVersionBytes() { + return this.binVersion; + } + + /** + * optional string bin_version = 14; + * @return internal {@code Utf8String} representation of binVersion for modifications + */ + public Utf8String getMutableBinVersionBytes() { + bitField0_ |= 0x00001000; + return this.binVersion; + } + + /** + * optional string bin_version = 14; + * @param value the binVersion to set + * @return this + */ + public PVEBattleResultScRsp setBinVersion(final CharSequence value) { + bitField0_ |= 0x00001000; + binVersion.copyFrom(value); + return this; + } + + /** + * optional string bin_version = 14; + * @param value the binVersion to set + * @return this + */ + public PVEBattleResultScRsp setBinVersion(final Utf8String value) { + bitField0_ |= 0x00001000; + binVersion.copyFrom(value); + return this; + } + + /** + * repeated .BattleAvatar battle_avatar_list = 8; * @return whether the battleAvatarList field is set */ public boolean hasBattleAvatarList() { @@ -752,7 +752,7 @@ public final class PVEBattleResultScRspOuterClass { } /** - * repeated .BattleAvatar battle_avatar_list = 4; + * repeated .BattleAvatar battle_avatar_list = 8; * @return this */ public PVEBattleResultScRsp clearBattleAvatarList() { @@ -762,7 +762,7 @@ public final class PVEBattleResultScRspOuterClass { } /** - * repeated .BattleAvatar battle_avatar_list = 4; + * 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. @@ -776,7 +776,7 @@ public final class PVEBattleResultScRspOuterClass { } /** - * repeated .BattleAvatar battle_avatar_list = 4; + * 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 @@ -790,7 +790,7 @@ public final class PVEBattleResultScRspOuterClass { } /** - * repeated .BattleAvatar battle_avatar_list = 4; + * repeated .BattleAvatar battle_avatar_list = 8; * @param value the battleAvatarList to add * @return this */ @@ -802,7 +802,7 @@ public final class PVEBattleResultScRspOuterClass { } /** - * repeated .BattleAvatar battle_avatar_list = 4; + * repeated .BattleAvatar battle_avatar_list = 8; * @param values the battleAvatarList to add * @return this */ @@ -818,19 +818,19 @@ public final class PVEBattleResultScRspOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - mismatchTurnCount = other.mismatchTurnCount; + stageId = other.stageId; + eventId = other.eventId; 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); unk2.copyFrom(other.unk2); unk3.copyFrom(other.unk3); - binVersion.copyFrom(other.binVersion); resVersion.copyFrom(other.resVersion); + binVersion.copyFrom(other.binVersion); battleAvatarList.copyFrom(other.battleAvatarList); } return this; @@ -842,8 +842,11 @@ public final class PVEBattleResultScRspOuterClass { return this; } cachedSize = -1; - if (other.hasMismatchTurnCount()) { - setMismatchTurnCount(other.mismatchTurnCount); + if (other.hasStageId()) { + setStageId(other.stageId); + } + if (other.hasEventId()) { + setEventId(other.eventId); } if (other.hasRetcode()) { setRetcode(other.retcode); @@ -851,11 +854,8 @@ public final class PVEBattleResultScRspOuterClass { 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); @@ -875,12 +875,12 @@ public final class PVEBattleResultScRspOuterClass { if (other.hasUnk3()) { getMutableUnk3().mergeFrom(other.unk3); } - if (other.hasBinVersion()) { - getMutableBinVersionBytes().copyFrom(other.binVersion); - } if (other.hasResVersion()) { getMutableResVersionBytes().copyFrom(other.resVersion); } + if (other.hasBinVersion()) { + getMutableBinVersionBytes().copyFrom(other.binVersion); + } if (other.hasBattleAvatarList()) { getMutableBattleAvatarList().addAll(other.battleAvatarList); } @@ -894,19 +894,19 @@ public final class PVEBattleResultScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - mismatchTurnCount = 0; + stageId = 0; + eventId = 0; retcode = 0; battleId = 0; - eventId = 0; - stageId = 0; + mismatchTurnCount = 0; endStatus = 0; checkIdentical = false; dropData.clear(); unk1.clear(); unk2.clear(); unk3.clear(); - binVersion.clear(); resVersion.clear(); + binVersion.clear(); battleAvatarList.clear(); return this; } @@ -922,8 +922,8 @@ public final class PVEBattleResultScRspOuterClass { unk1.clearQuick(); unk2.clearQuick(); unk3.clearQuick(); - binVersion.clear(); resVersion.clear(); + binVersion.clear(); battleAvatarList.clearQuick(); return this; } @@ -938,54 +938,54 @@ public final class PVEBattleResultScRspOuterClass { } PVEBattleResultScRsp other = (PVEBattleResultScRsp) o; return bitField0_ == other.bitField0_ - && (!hasMismatchTurnCount() || mismatchTurnCount == other.mismatchTurnCount) + && (!hasStageId() || stageId == other.stageId) + && (!hasEventId() || eventId == other.eventId) && (!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)) && (!hasUnk2() || unk2.equals(other.unk2)) && (!hasUnk3() || unk3.equals(other.unk3)) - && (!hasBinVersion() || binVersion.equals(other.binVersion)) && (!hasResVersion() || resVersion.equals(other.resVersion)) + && (!hasBinVersion() || binVersion.equals(other.binVersion)) && (!hasBattleAvatarList() || battleAvatarList.equals(other.battleAvatarList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(mismatchTurnCount); + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(stageId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(retcode); + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(eventId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 80); - output.writeUInt32NoTag(battleId); + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 96); - output.writeUInt32NoTag(eventId); + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(battleId); } if ((bitField0_ & 0x00000010) != 0) { output.writeRawByte((byte) 120); - output.writeUInt32NoTag(stageId); + output.writeUInt32NoTag(mismatchTurnCount); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 56); output.writeEnumNoTag(endStatus); } if ((bitField0_ & 0x00000040) != 0) { - output.writeRawByte((byte) 8); + output.writeRawByte((byte) 96); output.writeBoolNoTag(checkIdentical); } if ((bitField0_ & 0x00000080) != 0) { - output.writeRawByte((byte) 66); + output.writeRawByte((byte) 18); output.writeMessageNoTag(dropData); } if ((bitField0_ & 0x00000100) != 0) { @@ -993,24 +993,24 @@ public final class PVEBattleResultScRspOuterClass { output.writeMessageNoTag(unk1); } if ((bitField0_ & 0x00000200) != 0) { - output.writeRawByte((byte) 114); + output.writeRawByte((byte) 106); output.writeMessageNoTag(unk2); } if ((bitField0_ & 0x00000400) != 0) { - output.writeRawLittleEndian16((short) 11962); + output.writeRawLittleEndian16((short) 8418); output.writeMessageNoTag(unk3); } if ((bitField0_ & 0x00000800) != 0) { - output.writeRawByte((byte) 90); - output.writeStringNoTag(binVersion); + output.writeRawByte((byte) 26); + output.writeStringNoTag(resVersion); } if ((bitField0_ & 0x00001000) != 0) { - output.writeRawByte((byte) 106); - output.writeStringNoTag(resVersion); + output.writeRawByte((byte) 114); + output.writeStringNoTag(binVersion); } if ((bitField0_ & 0x00002000) != 0) { for (int i = 0; i < battleAvatarList.length(); i++) { - output.writeRawByte((byte) 34); + output.writeRawByte((byte) 66); output.writeMessageNoTag(battleAvatarList.get(i)); } } @@ -1020,19 +1020,19 @@ public final class PVEBattleResultScRspOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(mismatchTurnCount); + size += 1 + ProtoSink.computeUInt32SizeNoTag(stageId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(battleId); - } - if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(eventId); } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(battleId); + } if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(stageId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(mismatchTurnCount); } if ((bitField0_ & 0x00000020) != 0) { size += 1 + ProtoSink.computeEnumSizeNoTag(endStatus); @@ -1053,10 +1053,10 @@ public final class PVEBattleResultScRspOuterClass { size += 2 + ProtoSink.computeMessageSizeNoTag(unk3); } if ((bitField0_ & 0x00000800) != 0) { - size += 1 + ProtoSink.computeStringSizeNoTag(binVersion); + size += 1 + ProtoSink.computeStringSizeNoTag(resVersion); } if ((bitField0_ & 0x00001000) != 0) { - size += 1 + ProtoSink.computeStringSizeNoTag(resVersion); + size += 1 + ProtoSink.computeStringSizeNoTag(binVersion); } if ((bitField0_ & 0x00002000) != 0) { size += (1 * battleAvatarList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(battleAvatarList); @@ -1071,36 +1071,36 @@ public final class PVEBattleResultScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { - // mismatchTurnCount - mismatchTurnCount = input.readUInt32(); + case 8: { + // stageId + stageId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 24) { + if (tag != 32) { break; } } - case 24: { - // retcode - retcode = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 80) { - break; - } - } - case 80: { - // battleId - battleId = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 96) { - break; - } - } - case 96: { + case 32: { // eventId eventId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // battleId + battleId = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 120) { @@ -1108,15 +1108,15 @@ public final class PVEBattleResultScRspOuterClass { } } case 120: { - // stageId - stageId = input.readUInt32(); + // mismatchTurnCount + mismatchTurnCount = input.readUInt32(); bitField0_ |= 0x00000010; tag = input.readTag(); - if (tag != 40) { + if (tag != 56) { break; } } - case 40: { + case 56: { // endStatus final int value = input.readInt32(); if (BattleEndStatusOuterClass.BattleEndStatus.forNumber(value) != null) { @@ -1124,20 +1124,20 @@ public final class PVEBattleResultScRspOuterClass { bitField0_ |= 0x00000020; } tag = input.readTag(); - if (tag != 8) { + if (tag != 96) { break; } } - case 8: { + case 96: { // checkIdentical checkIdentical = input.readBool(); bitField0_ |= 0x00000040; tag = input.readTag(); - if (tag != 66) { + if (tag != 18) { break; } } - case 66: { + case 18: { // dropData input.readMessage(dropData); bitField0_ |= 0x00000080; @@ -1151,47 +1151,47 @@ public final class PVEBattleResultScRspOuterClass { input.readMessage(unk1); bitField0_ |= 0x00000100; tag = input.readTag(); - if (tag != 114) { - break; - } - } - case 114: { - // unk2 - input.readMessage(unk2); - bitField0_ |= 0x00000200; - tag = input.readTag(); - if (tag != 5946) { - break; - } - } - case 5946: { - // unk3 - input.readMessage(unk3); - bitField0_ |= 0x00000400; - tag = input.readTag(); - if (tag != 90) { - break; - } - } - case 90: { - // binVersion - input.readString(binVersion); - bitField0_ |= 0x00000800; - tag = input.readTag(); if (tag != 106) { break; } } case 106: { - // resVersion - input.readString(resVersion); - bitField0_ |= 0x00001000; + // unk2 + input.readMessage(unk2); + bitField0_ |= 0x00000200; tag = input.readTag(); - if (tag != 34) { + if (tag != 4194) { break; } } - case 34: { + case 4194: { + // unk3 + input.readMessage(unk3); + bitField0_ |= 0x00000400; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // resVersion + input.readString(resVersion); + bitField0_ |= 0x00000800; + tag = input.readTag(); + if (tag != 114) { + break; + } + } + case 114: { + // binVersion + input.readString(binVersion); + bitField0_ |= 0x00001000; + tag = input.readTag(); + if (tag != 66) { + break; + } + } + case 66: { // battleAvatarList tag = input.readRepeatedMessage(battleAvatarList, tag); bitField0_ |= 0x00002000; @@ -1217,19 +1217,19 @@ public final class PVEBattleResultScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.mismatchTurnCount, mismatchTurnCount); + output.writeUInt32(FieldNames.stageId, stageId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.battleId, battleId); - } - if ((bitField0_ & 0x00000008) != 0) { output.writeUInt32(FieldNames.eventId, eventId); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.battleId, battleId); + } if ((bitField0_ & 0x00000010) != 0) { - output.writeUInt32(FieldNames.stageId, stageId); + output.writeUInt32(FieldNames.mismatchTurnCount, mismatchTurnCount); } if ((bitField0_ & 0x00000020) != 0) { output.writeEnum(FieldNames.endStatus, endStatus, BattleEndStatusOuterClass.BattleEndStatus.converter()); @@ -1250,10 +1250,10 @@ public final class PVEBattleResultScRspOuterClass { output.writeMessage(FieldNames.unk3, unk3); } if ((bitField0_ & 0x00000800) != 0) { - output.writeString(FieldNames.binVersion, binVersion); + output.writeString(FieldNames.resVersion, resVersion); } if ((bitField0_ & 0x00001000) != 0) { - output.writeString(FieldNames.resVersion, resVersion); + output.writeString(FieldNames.binVersion, binVersion); } if ((bitField0_ & 0x00002000) != 0) { output.writeRepeatedMessage(FieldNames.battleAvatarList, battleAvatarList); @@ -1268,11 +1268,11 @@ public final class PVEBattleResultScRspOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - 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_ |= 0x00000001; } } else { @@ -1280,34 +1280,34 @@ public final class PVEBattleResultScRspOuterClass { } break; } - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { - if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1678308365: - case -487930366: { - if (input.isAtField(FieldNames.battleId)) { - if (!input.trySkipNullValue()) { - battleId = input.readUInt32(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } case -1376502443: case 278118624: { if (input.isAtField(FieldNames.eventId)) { if (!input.trySkipNullValue()) { eventId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1678308365: + case -487930366: { + if (input.isAtField(FieldNames.battleId)) { + if (!input.trySkipNullValue()) { + battleId = input.readUInt32(); bitField0_ |= 0x00000008; } } else { @@ -1315,11 +1315,11 @@ public final class PVEBattleResultScRspOuterClass { } break; } - case -1897528135: - case 1306191356: { - if (input.isAtField(FieldNames.stageId)) { + case -2096079772: + case -1800906274: { + if (input.isAtField(FieldNames.mismatchTurnCount)) { if (!input.trySkipNullValue()) { - stageId = input.readUInt32(); + mismatchTurnCount = input.readUInt32(); bitField0_ |= 0x00000010; } } else { @@ -1401,11 +1401,11 @@ public final class PVEBattleResultScRspOuterClass { } break; } - case 1864225233: - case -2003285600: { - if (input.isAtField(FieldNames.binVersion)) { + case 1778976792: + case -351019975: { + if (input.isAtField(FieldNames.resVersion)) { if (!input.trySkipNullValue()) { - input.readString(binVersion); + input.readString(resVersion); bitField0_ |= 0x00000800; } } else { @@ -1413,11 +1413,11 @@ public final class PVEBattleResultScRspOuterClass { } break; } - case 1778976792: - case -351019975: { - if (input.isAtField(FieldNames.resVersion)) { + case 1864225233: + case -2003285600: { + if (input.isAtField(FieldNames.binVersion)) { if (!input.trySkipNullValue()) { - input.readString(resVersion); + input.readString(binVersion); bitField0_ |= 0x00001000; } } else { @@ -1490,15 +1490,15 @@ public final class PVEBattleResultScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName mismatchTurnCount = FieldName.forField("mismatchTurnCount", "mismatch_turn_count"); + static final FieldName stageId = FieldName.forField("stageId", "stage_id"); + + static final FieldName eventId = FieldName.forField("eventId", "event_id"); static final FieldName retcode = FieldName.forField("retcode"); static final FieldName battleId = FieldName.forField("battleId", "battle_id"); - static final FieldName eventId = FieldName.forField("eventId", "event_id"); - - static final FieldName stageId = FieldName.forField("stageId", "stage_id"); + static final FieldName mismatchTurnCount = FieldName.forField("mismatchTurnCount", "mismatch_turn_count"); static final FieldName endStatus = FieldName.forField("endStatus", "end_status"); @@ -1512,10 +1512,10 @@ public final class PVEBattleResultScRspOuterClass { 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"); + static final FieldName binVersion = FieldName.forField("binVersion", "bin_version"); + static final FieldName battleAvatarList = FieldName.forField("battleAvatarList", "battle_avatar_list"); } } diff --git a/src/generated/main/emu/lunarcore/proto/PileItemOuterClass.java b/src/generated/main/emu/lunarcore/proto/PileItemOuterClass.java index 6e13223..f3a609c 100644 --- a/src/generated/main/emu/lunarcore/proto/PileItemOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/PileItemOuterClass.java @@ -19,12 +19,12 @@ public final class PileItemOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 item_id = 10; + * optional uint32 item_id = 4; */ private int itemId; /** - * optional uint32 item_num = 12; + * optional uint32 item_num = 14; */ private int itemNum; @@ -39,7 +39,7 @@ public final class PileItemOuterClass { } /** - * optional uint32 item_id = 10; + * optional uint32 item_id = 4; * @return whether the itemId field is set */ public boolean hasItemId() { @@ -47,7 +47,7 @@ public final class PileItemOuterClass { } /** - * optional uint32 item_id = 10; + * optional uint32 item_id = 4; * @return this */ public PileItem clearItemId() { @@ -57,7 +57,7 @@ public final class PileItemOuterClass { } /** - * optional uint32 item_id = 10; + * optional uint32 item_id = 4; * @return the itemId */ public int getItemId() { @@ -65,7 +65,7 @@ public final class PileItemOuterClass { } /** - * optional uint32 item_id = 10; + * optional uint32 item_id = 4; * @param value the itemId to set * @return this */ @@ -76,7 +76,7 @@ public final class PileItemOuterClass { } /** - * optional uint32 item_num = 12; + * optional uint32 item_num = 14; * @return whether the itemNum field is set */ public boolean hasItemNum() { @@ -84,7 +84,7 @@ public final class PileItemOuterClass { } /** - * optional uint32 item_num = 12; + * optional uint32 item_num = 14; * @return this */ public PileItem clearItemNum() { @@ -94,7 +94,7 @@ public final class PileItemOuterClass { } /** - * optional uint32 item_num = 12; + * optional uint32 item_num = 14; * @return the itemNum */ public int getItemNum() { @@ -102,7 +102,7 @@ public final class PileItemOuterClass { } /** - * optional uint32 item_num = 12; + * optional uint32 item_num = 14; * @param value the itemNum to set * @return this */ @@ -177,11 +177,11 @@ public final class PileItemOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(itemId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 112); output.writeUInt32NoTag(itemNum); } } @@ -205,16 +205,16 @@ public final class PileItemOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 80: { + case 32: { // itemId itemId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 96) { + if (tag != 112) { break; } } - case 96: { + case 112: { // itemNum itemNum = input.readUInt32(); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/PlayBackGroundMusicCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/PlayBackGroundMusicCsReqOuterClass.java index e66278a..6f4a342 100644 --- a/src/generated/main/emu/lunarcore/proto/PlayBackGroundMusicCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/PlayBackGroundMusicCsReqOuterClass.java @@ -19,7 +19,7 @@ public final class PlayBackGroundMusicCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 play_music_id = 9; + * optional uint32 play_music_id = 10; */ private int playMusicId; @@ -34,7 +34,7 @@ public final class PlayBackGroundMusicCsReqOuterClass { } /** - * optional uint32 play_music_id = 9; + * optional uint32 play_music_id = 10; * @return whether the playMusicId field is set */ public boolean hasPlayMusicId() { @@ -42,7 +42,7 @@ public final class PlayBackGroundMusicCsReqOuterClass { } /** - * optional uint32 play_music_id = 9; + * optional uint32 play_music_id = 10; * @return this */ public PlayBackGroundMusicCsReq clearPlayMusicId() { @@ -52,7 +52,7 @@ public final class PlayBackGroundMusicCsReqOuterClass { } /** - * optional uint32 play_music_id = 9; + * optional uint32 play_music_id = 10; * @return the playMusicId */ public int getPlayMusicId() { @@ -60,7 +60,7 @@ public final class PlayBackGroundMusicCsReqOuterClass { } /** - * optional uint32 play_music_id = 9; + * optional uint32 play_music_id = 10; * @param value the playMusicId to set * @return this */ @@ -129,7 +129,7 @@ public final class PlayBackGroundMusicCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 72); + output.writeRawByte((byte) 80); output.writeUInt32NoTag(playMusicId); } } @@ -150,7 +150,7 @@ public final class PlayBackGroundMusicCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 72: { + case 80: { // 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 be2ca25..39a9309 100644 --- a/src/generated/main/emu/lunarcore/proto/PlayBackGroundMusicScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/PlayBackGroundMusicScRspOuterClass.java @@ -19,17 +19,17 @@ public final class PlayBackGroundMusicScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 playing_id = 6; + * optional uint32 playing_id = 4; */ private int playingId; /** - * optional uint32 play_music_id = 9; + * optional uint32 play_music_id = 6; */ private int playMusicId; /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 15; */ private int retcode; @@ -44,7 +44,7 @@ public final class PlayBackGroundMusicScRspOuterClass { } /** - * optional uint32 playing_id = 6; + * optional uint32 playing_id = 4; * @return whether the playingId field is set */ public boolean hasPlayingId() { @@ -52,7 +52,7 @@ public final class PlayBackGroundMusicScRspOuterClass { } /** - * optional uint32 playing_id = 6; + * optional uint32 playing_id = 4; * @return this */ public PlayBackGroundMusicScRsp clearPlayingId() { @@ -62,7 +62,7 @@ public final class PlayBackGroundMusicScRspOuterClass { } /** - * optional uint32 playing_id = 6; + * optional uint32 playing_id = 4; * @return the playingId */ public int getPlayingId() { @@ -70,7 +70,7 @@ public final class PlayBackGroundMusicScRspOuterClass { } /** - * optional uint32 playing_id = 6; + * optional uint32 playing_id = 4; * @param value the playingId to set * @return this */ @@ -81,7 +81,7 @@ public final class PlayBackGroundMusicScRspOuterClass { } /** - * optional uint32 play_music_id = 9; + * optional uint32 play_music_id = 6; * @return whether the playMusicId field is set */ public boolean hasPlayMusicId() { @@ -89,7 +89,7 @@ public final class PlayBackGroundMusicScRspOuterClass { } /** - * optional uint32 play_music_id = 9; + * optional uint32 play_music_id = 6; * @return this */ public PlayBackGroundMusicScRsp clearPlayMusicId() { @@ -99,7 +99,7 @@ public final class PlayBackGroundMusicScRspOuterClass { } /** - * optional uint32 play_music_id = 9; + * optional uint32 play_music_id = 6; * @return the playMusicId */ public int getPlayMusicId() { @@ -107,7 +107,7 @@ public final class PlayBackGroundMusicScRspOuterClass { } /** - * optional uint32 play_music_id = 9; + * optional uint32 play_music_id = 6; * @param value the playMusicId to set * @return this */ @@ -118,7 +118,7 @@ public final class PlayBackGroundMusicScRspOuterClass { } /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 15; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -126,7 +126,7 @@ public final class PlayBackGroundMusicScRspOuterClass { } /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 15; * @return this */ public PlayBackGroundMusicScRsp clearRetcode() { @@ -136,7 +136,7 @@ public final class PlayBackGroundMusicScRspOuterClass { } /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 15; * @return the retcode */ public int getRetcode() { @@ -144,7 +144,7 @@ public final class PlayBackGroundMusicScRspOuterClass { } /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 15; * @param value the retcode to set * @return this */ @@ -225,15 +225,15 @@ public final class PlayBackGroundMusicScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(playingId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 72); + output.writeRawByte((byte) 48); output.writeUInt32NoTag(playMusicId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 120); output.writeUInt32NoTag(retcode); } } @@ -260,25 +260,25 @@ public final class PlayBackGroundMusicScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 48: { + case 32: { // playingId playingId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 72) { + if (tag != 48) { break; } } - case 72: { + case 48: { // playMusicId playMusicId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 80) { + if (tag != 120) { break; } } - case 80: { + case 120: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000004; diff --git a/src/generated/main/emu/lunarcore/proto/PlayerGetTokenCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/PlayerGetTokenCsReqOuterClass.java index 09d9137..4ece489 100644 --- a/src/generated/main/emu/lunarcore/proto/PlayerGetTokenCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/PlayerGetTokenCsReqOuterClass.java @@ -20,17 +20,17 @@ public final class PlayerGetTokenCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 platform_type = 11; + * optional uint32 platform_type = 7; */ private int platformType; /** - * optional string token = 4; + * optional string token = 11; */ private final Utf8String token = Utf8String.newEmptyInstance(); /** - * optional string account_uid = 7; + * optional string account_uid = 14; */ private final Utf8String accountUid = Utf8String.newEmptyInstance(); @@ -45,7 +45,7 @@ public final class PlayerGetTokenCsReqOuterClass { } /** - * optional uint32 platform_type = 11; + * optional uint32 platform_type = 7; * @return whether the platformType field is set */ public boolean hasPlatformType() { @@ -53,7 +53,7 @@ public final class PlayerGetTokenCsReqOuterClass { } /** - * optional uint32 platform_type = 11; + * optional uint32 platform_type = 7; * @return this */ public PlayerGetTokenCsReq clearPlatformType() { @@ -63,7 +63,7 @@ public final class PlayerGetTokenCsReqOuterClass { } /** - * optional uint32 platform_type = 11; + * optional uint32 platform_type = 7; * @return the platformType */ public int getPlatformType() { @@ -71,7 +71,7 @@ public final class PlayerGetTokenCsReqOuterClass { } /** - * optional uint32 platform_type = 11; + * optional uint32 platform_type = 7; * @param value the platformType to set * @return this */ @@ -82,7 +82,7 @@ public final class PlayerGetTokenCsReqOuterClass { } /** - * optional string token = 4; + * optional string token = 11; * @return whether the token field is set */ public boolean hasToken() { @@ -90,7 +90,7 @@ public final class PlayerGetTokenCsReqOuterClass { } /** - * optional string token = 4; + * optional string token = 11; * @return this */ public PlayerGetTokenCsReq clearToken() { @@ -100,7 +100,7 @@ public final class PlayerGetTokenCsReqOuterClass { } /** - * optional string token = 4; + * optional string token = 11; * @return the token */ public String getToken() { @@ -108,7 +108,7 @@ public final class PlayerGetTokenCsReqOuterClass { } /** - * optional string token = 4; + * optional string token = 11; * @return internal {@code Utf8String} representation of token for reading */ public Utf8String getTokenBytes() { @@ -116,7 +116,7 @@ public final class PlayerGetTokenCsReqOuterClass { } /** - * optional string token = 4; + * optional string token = 11; * @return internal {@code Utf8String} representation of token for modifications */ public Utf8String getMutableTokenBytes() { @@ -125,7 +125,7 @@ public final class PlayerGetTokenCsReqOuterClass { } /** - * optional string token = 4; + * optional string token = 11; * @param value the token to set * @return this */ @@ -136,7 +136,7 @@ public final class PlayerGetTokenCsReqOuterClass { } /** - * optional string token = 4; + * optional string token = 11; * @param value the token to set * @return this */ @@ -147,7 +147,7 @@ public final class PlayerGetTokenCsReqOuterClass { } /** - * optional string account_uid = 7; + * optional string account_uid = 14; * @return whether the accountUid field is set */ public boolean hasAccountUid() { @@ -155,7 +155,7 @@ public final class PlayerGetTokenCsReqOuterClass { } /** - * optional string account_uid = 7; + * optional string account_uid = 14; * @return this */ public PlayerGetTokenCsReq clearAccountUid() { @@ -165,7 +165,7 @@ public final class PlayerGetTokenCsReqOuterClass { } /** - * optional string account_uid = 7; + * optional string account_uid = 14; * @return the accountUid */ public String getAccountUid() { @@ -173,7 +173,7 @@ public final class PlayerGetTokenCsReqOuterClass { } /** - * optional string account_uid = 7; + * optional string account_uid = 14; * @return internal {@code Utf8String} representation of accountUid for reading */ public Utf8String getAccountUidBytes() { @@ -181,7 +181,7 @@ public final class PlayerGetTokenCsReqOuterClass { } /** - * optional string account_uid = 7; + * optional string account_uid = 14; * @return internal {@code Utf8String} representation of accountUid for modifications */ public Utf8String getMutableAccountUidBytes() { @@ -190,7 +190,7 @@ public final class PlayerGetTokenCsReqOuterClass { } /** - * optional string account_uid = 7; + * optional string account_uid = 14; * @param value the accountUid to set * @return this */ @@ -201,7 +201,7 @@ public final class PlayerGetTokenCsReqOuterClass { } /** - * optional string account_uid = 7; + * optional string account_uid = 14; * @param value the accountUid to set * @return this */ @@ -284,15 +284,15 @@ public final class PlayerGetTokenCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 56); output.writeUInt32NoTag(platformType); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 34); + output.writeRawByte((byte) 90); output.writeStringNoTag(token); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 58); + output.writeRawByte((byte) 114); output.writeStringNoTag(accountUid); } } @@ -319,25 +319,25 @@ public final class PlayerGetTokenCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 88: { + case 56: { // platformType platformType = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 34) { + if (tag != 90) { break; } } - case 34: { + case 90: { // token input.readString(token); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 58) { + if (tag != 114) { break; } } - case 58: { + case 114: { // accountUid input.readString(accountUid); bitField0_ |= 0x00000004; diff --git a/src/generated/main/emu/lunarcore/proto/PlayerGetTokenScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/PlayerGetTokenScRspOuterClass.java index e20fb39..60262e4 100644 --- a/src/generated/main/emu/lunarcore/proto/PlayerGetTokenScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/PlayerGetTokenScRspOuterClass.java @@ -20,27 +20,27 @@ public final class PlayerGetTokenScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint64 secret_key_seed = 11; + * optional uint64 secret_key_seed = 10; */ private long secretKeySeed; /** - * optional uint32 uid = 8; - */ - private int uid; - - /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 1; */ private int retcode; /** - * optional .BlackInfo black_info = 12; + * optional uint32 uid = 3; + */ + private int uid; + + /** + * optional .BlackInfo black_info = 7; */ private final BlackInfoOuterClass.BlackInfo blackInfo = BlackInfoOuterClass.BlackInfo.newInstance(); /** - * optional string msg = 14; + * optional string msg = 8; */ private final Utf8String msg = Utf8String.newEmptyInstance(); @@ -55,7 +55,7 @@ public final class PlayerGetTokenScRspOuterClass { } /** - * optional uint64 secret_key_seed = 11; + * optional uint64 secret_key_seed = 10; * @return whether the secretKeySeed field is set */ public boolean hasSecretKeySeed() { @@ -63,7 +63,7 @@ public final class PlayerGetTokenScRspOuterClass { } /** - * optional uint64 secret_key_seed = 11; + * optional uint64 secret_key_seed = 10; * @return this */ public PlayerGetTokenScRsp clearSecretKeySeed() { @@ -73,7 +73,7 @@ public final class PlayerGetTokenScRspOuterClass { } /** - * optional uint64 secret_key_seed = 11; + * optional uint64 secret_key_seed = 10; * @return the secretKeySeed */ public long getSecretKeySeed() { @@ -81,7 +81,7 @@ public final class PlayerGetTokenScRspOuterClass { } /** - * optional uint64 secret_key_seed = 11; + * optional uint64 secret_key_seed = 10; * @param value the secretKeySeed to set * @return this */ @@ -92,62 +92,25 @@ public final class PlayerGetTokenScRspOuterClass { } /** - * optional uint32 uid = 8; - * @return whether the uid field is set + * optional uint32 retcode = 1; + * @return whether the retcode field is set */ - public boolean hasUid() { + public boolean hasRetcode() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 uid = 8; - * @return this - */ - public PlayerGetTokenScRsp clearUid() { - bitField0_ &= ~0x00000002; - uid = 0; - return this; - } - - /** - * optional uint32 uid = 8; - * @return the uid - */ - public int getUid() { - return uid; - } - - /** - * optional uint32 uid = 8; - * @param value the uid to set - * @return this - */ - public PlayerGetTokenScRsp setUid(final int value) { - bitField0_ |= 0x00000002; - uid = value; - return this; - } - - /** - * optional uint32 retcode = 13; - * @return whether the retcode field is set - */ - public boolean hasRetcode() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 1; * @return this */ public PlayerGetTokenScRsp clearRetcode() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; retcode = 0; return this; } /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 1; * @return the retcode */ public int getRetcode() { @@ -155,18 +118,55 @@ public final class PlayerGetTokenScRspOuterClass { } /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 1; * @param value the retcode to set * @return this */ public PlayerGetTokenScRsp setRetcode(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; retcode = value; return this; } /** - * optional .BlackInfo black_info = 12; + * optional uint32 uid = 3; + * @return whether the uid field is set + */ + public boolean hasUid() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 uid = 3; + * @return this + */ + public PlayerGetTokenScRsp clearUid() { + bitField0_ &= ~0x00000004; + uid = 0; + return this; + } + + /** + * optional uint32 uid = 3; + * @return the uid + */ + public int getUid() { + return uid; + } + + /** + * optional uint32 uid = 3; + * @param value the uid to set + * @return this + */ + public PlayerGetTokenScRsp setUid(final int value) { + bitField0_ |= 0x00000004; + uid = value; + return this; + } + + /** + * optional .BlackInfo black_info = 7; * @return whether the blackInfo field is set */ public boolean hasBlackInfo() { @@ -174,7 +174,7 @@ public final class PlayerGetTokenScRspOuterClass { } /** - * optional .BlackInfo black_info = 12; + * optional .BlackInfo black_info = 7; * @return this */ public PlayerGetTokenScRsp clearBlackInfo() { @@ -184,7 +184,7 @@ public final class PlayerGetTokenScRspOuterClass { } /** - * optional .BlackInfo black_info = 12; + * optional .BlackInfo black_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. @@ -198,7 +198,7 @@ public final class PlayerGetTokenScRspOuterClass { } /** - * optional .BlackInfo black_info = 12; + * optional .BlackInfo black_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 @@ -212,7 +212,7 @@ public final class PlayerGetTokenScRspOuterClass { } /** - * optional .BlackInfo black_info = 12; + * optional .BlackInfo black_info = 7; * @param value the blackInfo to set * @return this */ @@ -223,7 +223,7 @@ public final class PlayerGetTokenScRspOuterClass { } /** - * optional string msg = 14; + * optional string msg = 8; * @return whether the msg field is set */ public boolean hasMsg() { @@ -231,7 +231,7 @@ public final class PlayerGetTokenScRspOuterClass { } /** - * optional string msg = 14; + * optional string msg = 8; * @return this */ public PlayerGetTokenScRsp clearMsg() { @@ -241,7 +241,7 @@ public final class PlayerGetTokenScRspOuterClass { } /** - * optional string msg = 14; + * optional string msg = 8; * @return the msg */ public String getMsg() { @@ -249,7 +249,7 @@ public final class PlayerGetTokenScRspOuterClass { } /** - * optional string msg = 14; + * optional string msg = 8; * @return internal {@code Utf8String} representation of msg for reading */ public Utf8String getMsgBytes() { @@ -257,7 +257,7 @@ public final class PlayerGetTokenScRspOuterClass { } /** - * optional string msg = 14; + * optional string msg = 8; * @return internal {@code Utf8String} representation of msg for modifications */ public Utf8String getMutableMsgBytes() { @@ -266,7 +266,7 @@ public final class PlayerGetTokenScRspOuterClass { } /** - * optional string msg = 14; + * optional string msg = 8; * @param value the msg to set * @return this */ @@ -277,7 +277,7 @@ public final class PlayerGetTokenScRspOuterClass { } /** - * optional string msg = 14; + * optional string msg = 8; * @param value the msg to set * @return this */ @@ -293,8 +293,8 @@ public final class PlayerGetTokenScRspOuterClass { if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; secretKeySeed = other.secretKeySeed; - uid = other.uid; retcode = other.retcode; + uid = other.uid; blackInfo.copyFrom(other.blackInfo); msg.copyFrom(other.msg); } @@ -310,12 +310,12 @@ public final class PlayerGetTokenScRspOuterClass { if (other.hasSecretKeySeed()) { setSecretKeySeed(other.secretKeySeed); } - if (other.hasUid()) { - setUid(other.uid); - } if (other.hasRetcode()) { setRetcode(other.retcode); } + if (other.hasUid()) { + setUid(other.uid); + } if (other.hasBlackInfo()) { getMutableBlackInfo().mergeFrom(other.blackInfo); } @@ -333,8 +333,8 @@ public final class PlayerGetTokenScRspOuterClass { cachedSize = -1; bitField0_ = 0; secretKeySeed = 0L; - uid = 0; retcode = 0; + uid = 0; blackInfo.clear(); msg.clear(); return this; @@ -363,8 +363,8 @@ public final class PlayerGetTokenScRspOuterClass { PlayerGetTokenScRsp other = (PlayerGetTokenScRsp) o; return bitField0_ == other.bitField0_ && (!hasSecretKeySeed() || secretKeySeed == other.secretKeySeed) - && (!hasUid() || uid == other.uid) && (!hasRetcode() || retcode == other.retcode) + && (!hasUid() || uid == other.uid) && (!hasBlackInfo() || blackInfo.equals(other.blackInfo)) && (!hasMsg() || msg.equals(other.msg)); } @@ -372,23 +372,23 @@ public final class PlayerGetTokenScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 80); output.writeUInt64NoTag(secretKeySeed); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 64); - output.writeUInt32NoTag(uid); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 8); output.writeUInt32NoTag(retcode); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(uid); + } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 98); + output.writeRawByte((byte) 58); output.writeMessageNoTag(blackInfo); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 114); + output.writeRawByte((byte) 66); output.writeStringNoTag(msg); } } @@ -400,10 +400,10 @@ public final class PlayerGetTokenScRspOuterClass { size += 1 + ProtoSink.computeUInt64SizeNoTag(secretKeySeed); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(uid); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(uid); } if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(blackInfo); @@ -421,43 +421,43 @@ public final class PlayerGetTokenScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 88: { + case 80: { // secretKeySeed secretKeySeed = input.readUInt64(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 64) { + if (tag != 8) { break; } } - case 64: { - // uid - uid = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 104) { - break; - } - } - case 104: { + case 8: { // retcode retcode = input.readUInt32(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 98) { + if (tag != 24) { break; } } - case 98: { + case 24: { + // uid + uid = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 58) { + break; + } + } + case 58: { // blackInfo input.readMessage(blackInfo); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 114) { + if (tag != 66) { break; } } - case 114: { + case 66: { // msg input.readString(msg); bitField0_ |= 0x00000010; @@ -487,10 +487,10 @@ public final class PlayerGetTokenScRspOuterClass { output.writeUInt64(FieldNames.secretKeySeed, secretKeySeed); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.uid, uid); + output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.uid, uid); } if ((bitField0_ & 0x00000008) != 0) { output.writeMessage(FieldNames.blackInfo, blackInfo); @@ -520,10 +520,10 @@ public final class PlayerGetTokenScRspOuterClass { } 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_ |= 0x00000002; } } else { @@ -531,10 +531,10 @@ public final class PlayerGetTokenScRspOuterClass { } 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_ |= 0x00000004; } } else { @@ -620,10 +620,10 @@ public final class PlayerGetTokenScRspOuterClass { static class FieldNames { static final FieldName secretKeySeed = FieldName.forField("secretKeySeed", "secret_key_seed"); - static final FieldName uid = FieldName.forField("uid"); - static final FieldName retcode = FieldName.forField("retcode"); + static final FieldName uid = FieldName.forField("uid"); + 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 4fb8337..d150009 100644 --- a/src/generated/main/emu/lunarcore/proto/PlayerHeartbeatCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/PlayerHeartbeatCsReqOuterClass.java @@ -19,7 +19,7 @@ public final class PlayerHeartbeatCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint64 client_time_ms = 12; + * optional uint64 client_time_ms = 4; */ private long clientTimeMs; @@ -34,7 +34,7 @@ public final class PlayerHeartbeatCsReqOuterClass { } /** - * optional uint64 client_time_ms = 12; + * optional uint64 client_time_ms = 4; * @return whether the clientTimeMs field is set */ public boolean hasClientTimeMs() { @@ -42,7 +42,7 @@ public final class PlayerHeartbeatCsReqOuterClass { } /** - * optional uint64 client_time_ms = 12; + * optional uint64 client_time_ms = 4; * @return this */ public PlayerHeartbeatCsReq clearClientTimeMs() { @@ -52,7 +52,7 @@ public final class PlayerHeartbeatCsReqOuterClass { } /** - * optional uint64 client_time_ms = 12; + * optional uint64 client_time_ms = 4; * @return the clientTimeMs */ public long getClientTimeMs() { @@ -60,7 +60,7 @@ public final class PlayerHeartbeatCsReqOuterClass { } /** - * optional uint64 client_time_ms = 12; + * optional uint64 client_time_ms = 4; * @param value the clientTimeMs to set * @return this */ @@ -129,7 +129,7 @@ public final class PlayerHeartbeatCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 32); output.writeUInt64NoTag(clientTimeMs); } } @@ -150,7 +150,7 @@ public final class PlayerHeartbeatCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 96: { + case 32: { // clientTimeMs clientTimeMs = input.readUInt64(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/PlayerHeartbeatScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/PlayerHeartbeatScRspOuterClass.java index 5243c70..1d1707f 100644 --- a/src/generated/main/emu/lunarcore/proto/PlayerHeartbeatScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/PlayerHeartbeatScRspOuterClass.java @@ -19,21 +19,17 @@ public final class PlayerHeartbeatScRspOuterClass { private static final long serialVersionUID = 0L; /** - *
-     * ClientDownloadData download_data = 13;
-     * 
- * - * optional uint64 server_time_ms = 6; + * optional uint64 server_time_ms = 11; */ private long serverTimeMs; /** - * optional uint64 client_time_ms = 8; + * optional uint64 client_time_ms = 13; */ private long clientTimeMs; /** - * optional uint32 retcode = 4; + * optional uint32 retcode = 1; */ private int retcode; @@ -48,11 +44,7 @@ public final class PlayerHeartbeatScRspOuterClass { } /** - *
-     * ClientDownloadData download_data = 13;
-     * 
- * - * optional uint64 server_time_ms = 6; + * optional uint64 server_time_ms = 11; * @return whether the serverTimeMs field is set */ public boolean hasServerTimeMs() { @@ -60,11 +52,7 @@ public final class PlayerHeartbeatScRspOuterClass { } /** - *
-     * ClientDownloadData download_data = 13;
-     * 
- * - * optional uint64 server_time_ms = 6; + * optional uint64 server_time_ms = 11; * @return this */ public PlayerHeartbeatScRsp clearServerTimeMs() { @@ -74,11 +62,7 @@ public final class PlayerHeartbeatScRspOuterClass { } /** - *
-     * ClientDownloadData download_data = 13;
-     * 
- * - * optional uint64 server_time_ms = 6; + * optional uint64 server_time_ms = 11; * @return the serverTimeMs */ public long getServerTimeMs() { @@ -86,11 +70,7 @@ public final class PlayerHeartbeatScRspOuterClass { } /** - *
-     * ClientDownloadData download_data = 13;
-     * 
- * - * optional uint64 server_time_ms = 6; + * optional uint64 server_time_ms = 11; * @param value the serverTimeMs to set * @return this */ @@ -101,7 +81,7 @@ public final class PlayerHeartbeatScRspOuterClass { } /** - * optional uint64 client_time_ms = 8; + * optional uint64 client_time_ms = 13; * @return whether the clientTimeMs field is set */ public boolean hasClientTimeMs() { @@ -109,7 +89,7 @@ public final class PlayerHeartbeatScRspOuterClass { } /** - * optional uint64 client_time_ms = 8; + * optional uint64 client_time_ms = 13; * @return this */ public PlayerHeartbeatScRsp clearClientTimeMs() { @@ -119,7 +99,7 @@ public final class PlayerHeartbeatScRspOuterClass { } /** - * optional uint64 client_time_ms = 8; + * optional uint64 client_time_ms = 13; * @return the clientTimeMs */ public long getClientTimeMs() { @@ -127,7 +107,7 @@ public final class PlayerHeartbeatScRspOuterClass { } /** - * optional uint64 client_time_ms = 8; + * optional uint64 client_time_ms = 13; * @param value the clientTimeMs to set * @return this */ @@ -138,7 +118,7 @@ public final class PlayerHeartbeatScRspOuterClass { } /** - * optional uint32 retcode = 4; + * optional uint32 retcode = 1; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -146,7 +126,7 @@ public final class PlayerHeartbeatScRspOuterClass { } /** - * optional uint32 retcode = 4; + * optional uint32 retcode = 1; * @return this */ public PlayerHeartbeatScRsp clearRetcode() { @@ -156,7 +136,7 @@ public final class PlayerHeartbeatScRspOuterClass { } /** - * optional uint32 retcode = 4; + * optional uint32 retcode = 1; * @return the retcode */ public int getRetcode() { @@ -164,7 +144,7 @@ public final class PlayerHeartbeatScRspOuterClass { } /** - * optional uint32 retcode = 4; + * optional uint32 retcode = 1; * @param value the retcode to set * @return this */ @@ -245,15 +225,15 @@ public final class PlayerHeartbeatScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 88); output.writeUInt64NoTag(serverTimeMs); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 104); output.writeUInt64NoTag(clientTimeMs); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 32); + output.writeRawByte((byte) 8); output.writeUInt32NoTag(retcode); } } @@ -280,25 +260,25 @@ public final class PlayerHeartbeatScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 48: { + case 88: { // serverTimeMs serverTimeMs = input.readUInt64(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 64) { + if (tag != 104) { break; } } - case 64: { + case 104: { // clientTimeMs clientTimeMs = input.readUInt64(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 32) { + if (tag != 8) { break; } } - case 32: { + case 8: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000004; diff --git a/src/generated/main/emu/lunarcore/proto/PlayerLoginScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/PlayerLoginScRspOuterClass.java index 589f9ee..09ab536 100644 --- a/src/generated/main/emu/lunarcore/proto/PlayerLoginScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/PlayerLoginScRspOuterClass.java @@ -19,32 +19,32 @@ public final class PlayerLoginScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint64 server_timestamp_ms = 8; + * optional uint64 server_timestamp_ms = 4; */ private long serverTimestampMs; /** - * optional uint64 login_random = 14; + * optional uint64 login_random = 13; */ private long loginRandom; /** - * optional uint32 stamina = 7; - */ - private int stamina; - - /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 2; */ private int retcode; /** - * optional sint32 cur_timezone = 1; + * optional uint32 stamina = 15; + */ + private int stamina; + + /** + * optional sint32 cur_timezone = 7; */ private int curTimezone; /** - * optional .PlayerBasicInfo basic_info = 11; + * optional .PlayerBasicInfo basic_info = 6; */ private final PlayerBasicInfoOuterClass.PlayerBasicInfo basicInfo = PlayerBasicInfoOuterClass.PlayerBasicInfo.newInstance(); @@ -59,7 +59,7 @@ public final class PlayerLoginScRspOuterClass { } /** - * optional uint64 server_timestamp_ms = 8; + * optional uint64 server_timestamp_ms = 4; * @return whether the serverTimestampMs field is set */ public boolean hasServerTimestampMs() { @@ -67,7 +67,7 @@ public final class PlayerLoginScRspOuterClass { } /** - * optional uint64 server_timestamp_ms = 8; + * optional uint64 server_timestamp_ms = 4; * @return this */ public PlayerLoginScRsp clearServerTimestampMs() { @@ -77,7 +77,7 @@ public final class PlayerLoginScRspOuterClass { } /** - * optional uint64 server_timestamp_ms = 8; + * optional uint64 server_timestamp_ms = 4; * @return the serverTimestampMs */ public long getServerTimestampMs() { @@ -85,7 +85,7 @@ public final class PlayerLoginScRspOuterClass { } /** - * optional uint64 server_timestamp_ms = 8; + * optional uint64 server_timestamp_ms = 4; * @param value the serverTimestampMs to set * @return this */ @@ -96,7 +96,7 @@ public final class PlayerLoginScRspOuterClass { } /** - * optional uint64 login_random = 14; + * optional uint64 login_random = 13; * @return whether the loginRandom field is set */ public boolean hasLoginRandom() { @@ -104,7 +104,7 @@ public final class PlayerLoginScRspOuterClass { } /** - * optional uint64 login_random = 14; + * optional uint64 login_random = 13; * @return this */ public PlayerLoginScRsp clearLoginRandom() { @@ -114,7 +114,7 @@ public final class PlayerLoginScRspOuterClass { } /** - * optional uint64 login_random = 14; + * optional uint64 login_random = 13; * @return the loginRandom */ public long getLoginRandom() { @@ -122,7 +122,7 @@ public final class PlayerLoginScRspOuterClass { } /** - * optional uint64 login_random = 14; + * optional uint64 login_random = 13; * @param value the loginRandom to set * @return this */ @@ -133,62 +133,25 @@ public final class PlayerLoginScRspOuterClass { } /** - * optional uint32 stamina = 7; - * @return whether the stamina field is set + * optional uint32 retcode = 2; + * @return whether the retcode field is set */ - public boolean hasStamina() { + public boolean hasRetcode() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 stamina = 7; - * @return this - */ - public PlayerLoginScRsp clearStamina() { - bitField0_ &= ~0x00000004; - stamina = 0; - return this; - } - - /** - * optional uint32 stamina = 7; - * @return the stamina - */ - public int getStamina() { - return stamina; - } - - /** - * optional uint32 stamina = 7; - * @param value the stamina to set - * @return this - */ - public PlayerLoginScRsp setStamina(final int value) { - bitField0_ |= 0x00000004; - stamina = value; - return this; - } - - /** - * optional uint32 retcode = 13; - * @return whether the retcode field is set - */ - public boolean hasRetcode() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 2; * @return this */ public PlayerLoginScRsp clearRetcode() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000004; retcode = 0; return this; } /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 2; * @return the retcode */ public int getRetcode() { @@ -196,18 +159,55 @@ public final class PlayerLoginScRspOuterClass { } /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 2; * @param value the retcode to set * @return this */ public PlayerLoginScRsp setRetcode(final int value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; retcode = value; return this; } /** - * optional sint32 cur_timezone = 1; + * optional uint32 stamina = 15; + * @return whether the stamina field is set + */ + public boolean hasStamina() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 stamina = 15; + * @return this + */ + public PlayerLoginScRsp clearStamina() { + bitField0_ &= ~0x00000008; + stamina = 0; + return this; + } + + /** + * optional uint32 stamina = 15; + * @return the stamina + */ + public int getStamina() { + return stamina; + } + + /** + * optional uint32 stamina = 15; + * @param value the stamina to set + * @return this + */ + public PlayerLoginScRsp setStamina(final int value) { + bitField0_ |= 0x00000008; + stamina = value; + return this; + } + + /** + * optional sint32 cur_timezone = 7; * @return whether the curTimezone field is set */ public boolean hasCurTimezone() { @@ -215,7 +215,7 @@ public final class PlayerLoginScRspOuterClass { } /** - * optional sint32 cur_timezone = 1; + * optional sint32 cur_timezone = 7; * @return this */ public PlayerLoginScRsp clearCurTimezone() { @@ -225,7 +225,7 @@ public final class PlayerLoginScRspOuterClass { } /** - * optional sint32 cur_timezone = 1; + * optional sint32 cur_timezone = 7; * @return the curTimezone */ public int getCurTimezone() { @@ -233,7 +233,7 @@ public final class PlayerLoginScRspOuterClass { } /** - * optional sint32 cur_timezone = 1; + * optional sint32 cur_timezone = 7; * @param value the curTimezone to set * @return this */ @@ -244,7 +244,7 @@ public final class PlayerLoginScRspOuterClass { } /** - * optional .PlayerBasicInfo basic_info = 11; + * optional .PlayerBasicInfo basic_info = 6; * @return whether the basicInfo field is set */ public boolean hasBasicInfo() { @@ -252,7 +252,7 @@ public final class PlayerLoginScRspOuterClass { } /** - * optional .PlayerBasicInfo basic_info = 11; + * optional .PlayerBasicInfo basic_info = 6; * @return this */ public PlayerLoginScRsp clearBasicInfo() { @@ -262,7 +262,7 @@ public final class PlayerLoginScRspOuterClass { } /** - * optional .PlayerBasicInfo basic_info = 11; + * 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. @@ -276,7 +276,7 @@ public final class PlayerLoginScRspOuterClass { } /** - * optional .PlayerBasicInfo basic_info = 11; + * 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 @@ -290,7 +290,7 @@ public final class PlayerLoginScRspOuterClass { } /** - * optional .PlayerBasicInfo basic_info = 11; + * optional .PlayerBasicInfo basic_info = 6; * @param value the basicInfo to set * @return this */ @@ -307,8 +307,8 @@ public final class PlayerLoginScRspOuterClass { bitField0_ = other.bitField0_; serverTimestampMs = other.serverTimestampMs; loginRandom = other.loginRandom; - stamina = other.stamina; retcode = other.retcode; + stamina = other.stamina; curTimezone = other.curTimezone; basicInfo.copyFrom(other.basicInfo); } @@ -327,12 +327,12 @@ public final class PlayerLoginScRspOuterClass { if (other.hasLoginRandom()) { setLoginRandom(other.loginRandom); } - if (other.hasStamina()) { - setStamina(other.stamina); - } if (other.hasRetcode()) { setRetcode(other.retcode); } + if (other.hasStamina()) { + setStamina(other.stamina); + } if (other.hasCurTimezone()) { setCurTimezone(other.curTimezone); } @@ -351,8 +351,8 @@ public final class PlayerLoginScRspOuterClass { bitField0_ = 0; serverTimestampMs = 0L; loginRandom = 0L; - stamina = 0; retcode = 0; + stamina = 0; curTimezone = 0; basicInfo.clear(); return this; @@ -381,8 +381,8 @@ public final class PlayerLoginScRspOuterClass { return bitField0_ == other.bitField0_ && (!hasServerTimestampMs() || serverTimestampMs == other.serverTimestampMs) && (!hasLoginRandom() || loginRandom == other.loginRandom) - && (!hasStamina() || stamina == other.stamina) && (!hasRetcode() || retcode == other.retcode) + && (!hasStamina() || stamina == other.stamina) && (!hasCurTimezone() || curTimezone == other.curTimezone) && (!hasBasicInfo() || basicInfo.equals(other.basicInfo)); } @@ -390,27 +390,27 @@ public final class PlayerLoginScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 32); output.writeUInt64NoTag(serverTimestampMs); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 104); output.writeUInt64NoTag(loginRandom); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 56); - output.writeUInt32NoTag(stamina); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 16); output.writeUInt32NoTag(retcode); } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(stamina); + } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 8); + output.writeRawByte((byte) 56); output.writeSInt32NoTag(curTimezone); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 90); + output.writeRawByte((byte) 50); output.writeMessageNoTag(basicInfo); } } @@ -425,10 +425,10 @@ public final class PlayerLoginScRspOuterClass { size += 1 + ProtoSink.computeUInt64SizeNoTag(loginRandom); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(stamina); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(stamina); } if ((bitField0_ & 0x00000010) != 0) { size += 1 + ProtoSink.computeSInt32SizeNoTag(curTimezone); @@ -446,52 +446,52 @@ public final class PlayerLoginScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 64: { + case 32: { // serverTimestampMs serverTimestampMs = input.readUInt64(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 112) { - break; - } - } - case 112: { - // loginRandom - loginRandom = input.readUInt64(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 56) { - break; - } - } - case 56: { - // stamina - stamina = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); if (tag != 104) { break; } } case 104: { - // retcode - retcode = input.readUInt32(); - bitField0_ |= 0x00000008; + // loginRandom + loginRandom = input.readUInt64(); + bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 8) { + if (tag != 16) { break; } } - case 8: { + case 16: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // stamina + stamina = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { // curTimezone curTimezone = input.readSInt32(); bitField0_ |= 0x00000010; tag = input.readTag(); - if (tag != 90) { + if (tag != 50) { break; } } - case 90: { + case 50: { // basicInfo input.readMessage(basicInfo); bitField0_ |= 0x00000020; @@ -524,10 +524,10 @@ public final class PlayerLoginScRspOuterClass { output.writeUInt64(FieldNames.loginRandom, loginRandom); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.stamina, stamina); + output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.stamina, stamina); } if ((bitField0_ & 0x00000010) != 0) { output.writeSInt32(FieldNames.curTimezone, curTimezone); @@ -569,10 +569,10 @@ public final class PlayerLoginScRspOuterClass { } 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_ |= 0x00000004; } } else { @@ -580,10 +580,10 @@ public final class PlayerLoginScRspOuterClass { } 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_ |= 0x00000008; } } else { @@ -672,10 +672,10 @@ public final class PlayerLoginScRspOuterClass { 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 stamina = FieldName.forField("stamina"); + 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 cdda8e2..256d796 100644 --- a/src/generated/main/emu/lunarcore/proto/PlayerSyncScNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/PlayerSyncScNotifyOuterClass.java @@ -21,50 +21,50 @@ public final class PlayerSyncScNotifyOuterClass { private static final long serialVersionUID = 0L; /** - * optional .AvatarSync avatar_sync = 1; + * optional .AvatarSync avatar_sync = 3; */ private final AvatarSyncOuterClass.AvatarSync avatarSync = AvatarSyncOuterClass.AvatarSync.newInstance(); /** - * optional .PlayerBasicInfo basic_info = 6; + * optional .PlayerBasicInfo basic_info = 4; */ private final PlayerBasicInfoOuterClass.PlayerBasicInfo basicInfo = PlayerBasicInfoOuterClass.PlayerBasicInfo.newInstance(); /** - * optional .BoardDataSync board_data_sync = 2034; + * optional .BoardDataSync board_data_sync = 1627; */ private final BoardDataSyncOuterClass.BoardDataSync boardDataSync = BoardDataSyncOuterClass.BoardDataSync.newInstance(); /** - * repeated uint32 del_equipment_list = 10; - */ - private final RepeatedInt delEquipmentList = RepeatedInt.newEmptyInstance(); - - /** - * repeated uint32 del_relic_list = 14; + * repeated uint32 del_relic_list = 8; */ private final RepeatedInt delRelicList = RepeatedInt.newEmptyInstance(); /** - * repeated .Relic relic_list = 2; + * repeated uint32 del_equipment_list = 13; + */ + private final RepeatedInt delEquipmentList = RepeatedInt.newEmptyInstance(); + + /** + * repeated .Relic relic_list = 1; */ private final RepeatedMessage relicList = RepeatedMessage.newEmptyInstance(RelicOuterClass.Relic.getFactory()); /** - * repeated .Equipment equipment_list = 5; + * repeated .Equipment equipment_list = 6; */ private final RepeatedMessage equipmentList = RepeatedMessage.newEmptyInstance(EquipmentOuterClass.Equipment.getFactory()); /** - * repeated .Material material_list = 11; - */ - private final RepeatedMessage materialList = RepeatedMessage.newEmptyInstance(MaterialOuterClass.Material.getFactory()); - - /** - * repeated .HeroBasicTypeInfo basic_type_info_list = 15; + * repeated .HeroBasicTypeInfo basic_type_info_list = 11; */ private final RepeatedMessage basicTypeInfoList = RepeatedMessage.newEmptyInstance(HeroBasicTypeInfoOuterClass.HeroBasicTypeInfo.getFactory()); + /** + * repeated .Material material_list = 15; + */ + private final RepeatedMessage materialList = RepeatedMessage.newEmptyInstance(MaterialOuterClass.Material.getFactory()); + private PlayerSyncScNotify() { } @@ -76,7 +76,7 @@ public final class PlayerSyncScNotifyOuterClass { } /** - * optional .AvatarSync avatar_sync = 1; + * optional .AvatarSync avatar_sync = 3; * @return whether the avatarSync field is set */ public boolean hasAvatarSync() { @@ -84,7 +84,7 @@ public final class PlayerSyncScNotifyOuterClass { } /** - * optional .AvatarSync avatar_sync = 1; + * optional .AvatarSync avatar_sync = 3; * @return this */ public PlayerSyncScNotify clearAvatarSync() { @@ -94,7 +94,7 @@ public final class PlayerSyncScNotifyOuterClass { } /** - * optional .AvatarSync avatar_sync = 1; + * optional .AvatarSync avatar_sync = 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 final class PlayerSyncScNotifyOuterClass { } /** - * optional .AvatarSync avatar_sync = 1; + * optional .AvatarSync avatar_sync = 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 final class PlayerSyncScNotifyOuterClass { } /** - * optional .AvatarSync avatar_sync = 1; + * optional .AvatarSync avatar_sync = 3; * @param value the avatarSync to set * @return this */ @@ -133,7 +133,7 @@ public final class PlayerSyncScNotifyOuterClass { } /** - * optional .PlayerBasicInfo basic_info = 6; + * optional .PlayerBasicInfo basic_info = 4; * @return whether the basicInfo field is set */ public boolean hasBasicInfo() { @@ -141,7 +141,7 @@ public final class PlayerSyncScNotifyOuterClass { } /** - * optional .PlayerBasicInfo basic_info = 6; + * optional .PlayerBasicInfo basic_info = 4; * @return this */ public PlayerSyncScNotify clearBasicInfo() { @@ -151,7 +151,7 @@ public final class PlayerSyncScNotifyOuterClass { } /** - * optional .PlayerBasicInfo basic_info = 6; + * optional .PlayerBasicInfo basic_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. @@ -165,7 +165,7 @@ public final class PlayerSyncScNotifyOuterClass { } /** - * optional .PlayerBasicInfo basic_info = 6; + * optional .PlayerBasicInfo basic_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 @@ -179,7 +179,7 @@ public final class PlayerSyncScNotifyOuterClass { } /** - * optional .PlayerBasicInfo basic_info = 6; + * optional .PlayerBasicInfo basic_info = 4; * @param value the basicInfo to set * @return this */ @@ -190,7 +190,7 @@ public final class PlayerSyncScNotifyOuterClass { } /** - * optional .BoardDataSync board_data_sync = 2034; + * optional .BoardDataSync board_data_sync = 1627; * @return whether the boardDataSync field is set */ public boolean hasBoardDataSync() { @@ -198,7 +198,7 @@ public final class PlayerSyncScNotifyOuterClass { } /** - * optional .BoardDataSync board_data_sync = 2034; + * optional .BoardDataSync board_data_sync = 1627; * @return this */ public PlayerSyncScNotify clearBoardDataSync() { @@ -208,7 +208,7 @@ public final class PlayerSyncScNotifyOuterClass { } /** - * optional .BoardDataSync board_data_sync = 2034; + * optional .BoardDataSync board_data_sync = 1627; * * 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 final class PlayerSyncScNotifyOuterClass { } /** - * optional .BoardDataSync board_data_sync = 2034; + * optional .BoardDataSync board_data_sync = 1627; * * 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 final class PlayerSyncScNotifyOuterClass { } /** - * optional .BoardDataSync board_data_sync = 2034; + * optional .BoardDataSync board_data_sync = 1627; * @param value the boardDataSync to set * @return this */ @@ -247,93 +247,25 @@ public final class PlayerSyncScNotifyOuterClass { } /** - * repeated uint32 del_equipment_list = 10; - * @return whether the delEquipmentList field is set + * repeated uint32 del_relic_list = 8; + * @return whether the delRelicList field is set */ - public boolean hasDelEquipmentList() { + public boolean hasDelRelicList() { return (bitField0_ & 0x00000008) != 0; } /** - * repeated uint32 del_equipment_list = 10; - * @return this - */ - public PlayerSyncScNotify clearDelEquipmentList() { - bitField0_ &= ~0x00000008; - delEquipmentList.clear(); - return this; - } - - /** - * 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. - * - * Use {@link #getMutableDelEquipmentList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedInt getDelEquipmentList() { - return delEquipmentList; - } - - /** - * 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 - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedInt getMutableDelEquipmentList() { - bitField0_ |= 0x00000008; - return delEquipmentList; - } - - /** - * repeated uint32 del_equipment_list = 10; - * @param value the delEquipmentList to add - * @return this - */ - public PlayerSyncScNotify addDelEquipmentList(final int value) { - bitField0_ |= 0x00000008; - delEquipmentList.add(value); - return this; - } - - /** - * repeated uint32 del_equipment_list = 10; - * @param values the delEquipmentList to add - * @return this - */ - public PlayerSyncScNotify addAllDelEquipmentList(final int... values) { - bitField0_ |= 0x00000008; - delEquipmentList.addAll(values); - return this; - } - - /** - * repeated uint32 del_relic_list = 14; - * @return whether the delRelicList field is set - */ - public boolean hasDelRelicList() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - * repeated uint32 del_relic_list = 14; + * repeated uint32 del_relic_list = 8; * @return this */ public PlayerSyncScNotify clearDelRelicList() { - bitField0_ &= ~0x00000010; + bitField0_ &= ~0x00000008; delRelicList.clear(); return this; } /** - * repeated uint32 del_relic_list = 14; + * repeated uint32 del_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. @@ -347,7 +279,7 @@ public final class PlayerSyncScNotifyOuterClass { } /** - * repeated uint32 del_relic_list = 14; + * repeated uint32 del_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 @@ -356,34 +288,102 @@ public final class PlayerSyncScNotifyOuterClass { * @return internal storage object for modifications */ public RepeatedInt getMutableDelRelicList() { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; return delRelicList; } /** - * repeated uint32 del_relic_list = 14; + * repeated uint32 del_relic_list = 8; * @param value the delRelicList to add * @return this */ public PlayerSyncScNotify addDelRelicList(final int value) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; delRelicList.add(value); return this; } /** - * repeated uint32 del_relic_list = 14; + * repeated uint32 del_relic_list = 8; * @param values the delRelicList to add * @return this */ public PlayerSyncScNotify addAllDelRelicList(final int... values) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; delRelicList.addAll(values); return this; } /** - * repeated .Relic relic_list = 2; + * repeated uint32 del_equipment_list = 13; + * @return whether the delEquipmentList field is set + */ + public boolean hasDelEquipmentList() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * repeated uint32 del_equipment_list = 13; + * @return this + */ + public PlayerSyncScNotify clearDelEquipmentList() { + bitField0_ &= ~0x00000010; + delEquipmentList.clear(); + return this; + } + + /** + * repeated uint32 del_equipment_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 #getMutableDelEquipmentList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getDelEquipmentList() { + return delEquipmentList; + } + + /** + * repeated uint32 del_equipment_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 getMutableDelEquipmentList() { + bitField0_ |= 0x00000010; + return delEquipmentList; + } + + /** + * repeated uint32 del_equipment_list = 13; + * @param value the delEquipmentList to add + * @return this + */ + public PlayerSyncScNotify addDelEquipmentList(final int value) { + bitField0_ |= 0x00000010; + delEquipmentList.add(value); + return this; + } + + /** + * repeated uint32 del_equipment_list = 13; + * @param values the delEquipmentList to add + * @return this + */ + public PlayerSyncScNotify addAllDelEquipmentList(final int... values) { + bitField0_ |= 0x00000010; + delEquipmentList.addAll(values); + return this; + } + + /** + * repeated .Relic relic_list = 1; * @return whether the relicList field is set */ public boolean hasRelicList() { @@ -391,7 +391,7 @@ public final class PlayerSyncScNotifyOuterClass { } /** - * repeated .Relic relic_list = 2; + * repeated .Relic relic_list = 1; * @return this */ public PlayerSyncScNotify clearRelicList() { @@ -401,7 +401,7 @@ public final class PlayerSyncScNotifyOuterClass { } /** - * repeated .Relic relic_list = 2; + * repeated .Relic relic_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. @@ -415,7 +415,7 @@ public final class PlayerSyncScNotifyOuterClass { } /** - * repeated .Relic relic_list = 2; + * repeated .Relic relic_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 @@ -429,7 +429,7 @@ public final class PlayerSyncScNotifyOuterClass { } /** - * repeated .Relic relic_list = 2; + * repeated .Relic relic_list = 1; * @param value the relicList to add * @return this */ @@ -440,7 +440,7 @@ public final class PlayerSyncScNotifyOuterClass { } /** - * repeated .Relic relic_list = 2; + * repeated .Relic relic_list = 1; * @param values the relicList to add * @return this */ @@ -451,7 +451,7 @@ public final class PlayerSyncScNotifyOuterClass { } /** - * repeated .Equipment equipment_list = 5; + * repeated .Equipment equipment_list = 6; * @return whether the equipmentList field is set */ public boolean hasEquipmentList() { @@ -459,7 +459,7 @@ public final class PlayerSyncScNotifyOuterClass { } /** - * repeated .Equipment equipment_list = 5; + * repeated .Equipment equipment_list = 6; * @return this */ public PlayerSyncScNotify clearEquipmentList() { @@ -469,7 +469,7 @@ public final class PlayerSyncScNotifyOuterClass { } /** - * repeated .Equipment equipment_list = 5; + * repeated .Equipment equipment_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. @@ -483,7 +483,7 @@ public final class PlayerSyncScNotifyOuterClass { } /** - * repeated .Equipment equipment_list = 5; + * repeated .Equipment equipment_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 @@ -497,7 +497,7 @@ public final class PlayerSyncScNotifyOuterClass { } /** - * repeated .Equipment equipment_list = 5; + * repeated .Equipment equipment_list = 6; * @param value the equipmentList to add * @return this */ @@ -508,7 +508,7 @@ public final class PlayerSyncScNotifyOuterClass { } /** - * repeated .Equipment equipment_list = 5; + * repeated .Equipment equipment_list = 6; * @param values the equipmentList to add * @return this */ @@ -519,93 +519,25 @@ public final class PlayerSyncScNotifyOuterClass { } /** - * repeated .Material material_list = 11; - * @return whether the materialList field is set + * repeated .HeroBasicTypeInfo basic_type_info_list = 11; + * @return whether the basicTypeInfoList field is set */ - public boolean hasMaterialList() { + public boolean hasBasicTypeInfoList() { return (bitField0_ & 0x00000080) != 0; } /** - * repeated .Material material_list = 11; - * @return this - */ - public PlayerSyncScNotify clearMaterialList() { - bitField0_ &= ~0x00000080; - materialList.clear(); - return this; - } - - /** - * 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 #getMutableMaterialList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getMaterialList() { - return materialList; - } - - /** - * 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 - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableMaterialList() { - bitField0_ |= 0x00000080; - return materialList; - } - - /** - * repeated .Material material_list = 11; - * @param value the materialList to add - * @return this - */ - public PlayerSyncScNotify addMaterialList(final MaterialOuterClass.Material value) { - bitField0_ |= 0x00000080; - materialList.add(value); - return this; - } - - /** - * repeated .Material material_list = 11; - * @param values the materialList to add - * @return this - */ - public PlayerSyncScNotify addAllMaterialList(final MaterialOuterClass.Material... values) { - bitField0_ |= 0x00000080; - materialList.addAll(values); - return this; - } - - /** - * repeated .HeroBasicTypeInfo basic_type_info_list = 15; - * @return whether the basicTypeInfoList field is set - */ - public boolean hasBasicTypeInfoList() { - return (bitField0_ & 0x00000100) != 0; - } - - /** - * repeated .HeroBasicTypeInfo basic_type_info_list = 15; + * repeated .HeroBasicTypeInfo basic_type_info_list = 11; * @return this */ public PlayerSyncScNotify clearBasicTypeInfoList() { - bitField0_ &= ~0x00000100; + bitField0_ &= ~0x00000080; basicTypeInfoList.clear(); return this; } /** - * repeated .HeroBasicTypeInfo basic_type_info_list = 15; + * repeated .HeroBasicTypeInfo basic_type_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. @@ -619,7 +551,7 @@ public final class PlayerSyncScNotifyOuterClass { } /** - * repeated .HeroBasicTypeInfo basic_type_info_list = 15; + * repeated .HeroBasicTypeInfo basic_type_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 @@ -629,34 +561,102 @@ public final class PlayerSyncScNotifyOuterClass { */ public RepeatedMessage getMutableBasicTypeInfoList( ) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000080; return basicTypeInfoList; } /** - * repeated .HeroBasicTypeInfo basic_type_info_list = 15; + * repeated .HeroBasicTypeInfo basic_type_info_list = 11; * @param value the basicTypeInfoList to add * @return this */ public PlayerSyncScNotify addBasicTypeInfoList( final HeroBasicTypeInfoOuterClass.HeroBasicTypeInfo value) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000080; basicTypeInfoList.add(value); return this; } /** - * repeated .HeroBasicTypeInfo basic_type_info_list = 15; + * repeated .HeroBasicTypeInfo basic_type_info_list = 11; * @param values the basicTypeInfoList to add * @return this */ public PlayerSyncScNotify addAllBasicTypeInfoList( final HeroBasicTypeInfoOuterClass.HeroBasicTypeInfo... values) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000080; basicTypeInfoList.addAll(values); return this; } + /** + * repeated .Material material_list = 15; + * @return whether the materialList field is set + */ + public boolean hasMaterialList() { + return (bitField0_ & 0x00000100) != 0; + } + + /** + * repeated .Material material_list = 15; + * @return this + */ + public PlayerSyncScNotify clearMaterialList() { + bitField0_ &= ~0x00000100; + materialList.clear(); + return this; + } + + /** + * repeated .Material material_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 #getMutableMaterialList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getMaterialList() { + return materialList; + } + + /** + * repeated .Material material_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 + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableMaterialList() { + bitField0_ |= 0x00000100; + return materialList; + } + + /** + * repeated .Material material_list = 15; + * @param value the materialList to add + * @return this + */ + public PlayerSyncScNotify addMaterialList(final MaterialOuterClass.Material value) { + bitField0_ |= 0x00000100; + materialList.add(value); + return this; + } + + /** + * repeated .Material material_list = 15; + * @param values the materialList to add + * @return this + */ + public PlayerSyncScNotify addAllMaterialList(final MaterialOuterClass.Material... values) { + bitField0_ |= 0x00000100; + materialList.addAll(values); + return this; + } + @Override public PlayerSyncScNotify copyFrom(final PlayerSyncScNotify other) { cachedSize = other.cachedSize; @@ -665,12 +665,12 @@ public final class PlayerSyncScNotifyOuterClass { avatarSync.copyFrom(other.avatarSync); basicInfo.copyFrom(other.basicInfo); boardDataSync.copyFrom(other.boardDataSync); - delEquipmentList.copyFrom(other.delEquipmentList); delRelicList.copyFrom(other.delRelicList); + delEquipmentList.copyFrom(other.delEquipmentList); relicList.copyFrom(other.relicList); equipmentList.copyFrom(other.equipmentList); - materialList.copyFrom(other.materialList); basicTypeInfoList.copyFrom(other.basicTypeInfoList); + materialList.copyFrom(other.materialList); } return this; } @@ -690,24 +690,24 @@ public final class PlayerSyncScNotifyOuterClass { if (other.hasBoardDataSync()) { getMutableBoardDataSync().mergeFrom(other.boardDataSync); } - if (other.hasDelEquipmentList()) { - getMutableDelEquipmentList().addAll(other.delEquipmentList); - } if (other.hasDelRelicList()) { getMutableDelRelicList().addAll(other.delRelicList); } + if (other.hasDelEquipmentList()) { + getMutableDelEquipmentList().addAll(other.delEquipmentList); + } 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); } + if (other.hasMaterialList()) { + getMutableMaterialList().addAll(other.materialList); + } return this; } @@ -721,12 +721,12 @@ public final class PlayerSyncScNotifyOuterClass { avatarSync.clear(); basicInfo.clear(); boardDataSync.clear(); - delEquipmentList.clear(); delRelicList.clear(); + delEquipmentList.clear(); relicList.clear(); equipmentList.clear(); - materialList.clear(); basicTypeInfoList.clear(); + materialList.clear(); return this; } @@ -740,12 +740,12 @@ public final class PlayerSyncScNotifyOuterClass { avatarSync.clearQuick(); basicInfo.clearQuick(); boardDataSync.clearQuick(); - delEquipmentList.clear(); delRelicList.clear(); + delEquipmentList.clear(); relicList.clearQuick(); equipmentList.clearQuick(); - materialList.clearQuick(); basicTypeInfoList.clearQuick(); + materialList.clearQuick(); return this; } @@ -762,62 +762,62 @@ public final class PlayerSyncScNotifyOuterClass { && (!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)) + && (!hasDelEquipmentList() || delEquipmentList.equals(other.delEquipmentList)) && (!hasRelicList() || relicList.equals(other.relicList)) && (!hasEquipmentList() || equipmentList.equals(other.equipmentList)) - && (!hasMaterialList() || materialList.equals(other.materialList)) - && (!hasBasicTypeInfoList() || basicTypeInfoList.equals(other.basicTypeInfoList)); + && (!hasBasicTypeInfoList() || basicTypeInfoList.equals(other.basicTypeInfoList)) + && (!hasMaterialList() || materialList.equals(other.materialList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 10); + output.writeRawByte((byte) 26); output.writeMessageNoTag(avatarSync); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 50); + output.writeRawByte((byte) 34); output.writeMessageNoTag(basicInfo); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawLittleEndian16((short) 32658); + output.writeRawLittleEndian16((short) 26074); output.writeMessageNoTag(boardDataSync); } if ((bitField0_ & 0x00000008) != 0) { - for (int i = 0; i < delEquipmentList.length(); i++) { - output.writeRawByte((byte) 80); - output.writeUInt32NoTag(delEquipmentList.array()[i]); + for (int i = 0; i < delRelicList.length(); i++) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(delRelicList.array()[i]); } } if ((bitField0_ & 0x00000010) != 0) { - for (int i = 0; i < delRelicList.length(); i++) { - output.writeRawByte((byte) 112); - output.writeUInt32NoTag(delRelicList.array()[i]); + for (int i = 0; i < delEquipmentList.length(); i++) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(delEquipmentList.array()[i]); } } if ((bitField0_ & 0x00000020) != 0) { for (int i = 0; i < relicList.length(); i++) { - output.writeRawByte((byte) 18); + output.writeRawByte((byte) 10); output.writeMessageNoTag(relicList.get(i)); } } if ((bitField0_ & 0x00000040) != 0) { for (int i = 0; i < equipmentList.length(); i++) { - output.writeRawByte((byte) 42); + output.writeRawByte((byte) 50); output.writeMessageNoTag(equipmentList.get(i)); } } if ((bitField0_ & 0x00000080) != 0) { - for (int i = 0; i < materialList.length(); i++) { + for (int i = 0; i < basicTypeInfoList.length(); i++) { output.writeRawByte((byte) 90); - output.writeMessageNoTag(materialList.get(i)); + output.writeMessageNoTag(basicTypeInfoList.get(i)); } } if ((bitField0_ & 0x00000100) != 0) { - for (int i = 0; i < basicTypeInfoList.length(); i++) { + for (int i = 0; i < materialList.length(); i++) { output.writeRawByte((byte) 122); - output.writeMessageNoTag(basicTypeInfoList.get(i)); + output.writeMessageNoTag(materialList.get(i)); } } } @@ -835,10 +835,10 @@ public final class PlayerSyncScNotifyOuterClass { size += 2 + ProtoSink.computeMessageSizeNoTag(boardDataSync); } if ((bitField0_ & 0x00000008) != 0) { - size += (1 * delEquipmentList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(delEquipmentList); + size += (1 * delRelicList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(delRelicList); } if ((bitField0_ & 0x00000010) != 0) { - size += (1 * delRelicList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(delRelicList); + size += (1 * delEquipmentList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(delEquipmentList); } if ((bitField0_ & 0x00000020) != 0) { size += (1 * relicList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(relicList); @@ -847,10 +847,10 @@ public final class PlayerSyncScNotifyOuterClass { size += (1 * equipmentList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(equipmentList); } if ((bitField0_ & 0x00000080) != 0) { - size += (1 * materialList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(materialList); + size += (1 * basicTypeInfoList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(basicTypeInfoList); } if ((bitField0_ & 0x00000100) != 0) { - size += (1 * basicTypeInfoList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(basicTypeInfoList); + size += (1 * materialList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(materialList); } return size; } @@ -862,60 +862,60 @@ public final class PlayerSyncScNotifyOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 10: { + case 26: { // avatarSync input.readMessage(avatarSync); bitField0_ |= 0x00000001; tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // basicInfo + input.readMessage(basicInfo); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 13018) { + break; + } + } + case 13018: { + // boardDataSync + input.readMessage(boardDataSync); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 66) { + break; + } + } + case 66: { + // delRelicList [packed=true] + input.readPackedUInt32(delRelicList, tag); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 106) { + break; + } + } + case 106: { + // delEquipmentList [packed=true] + input.readPackedUInt32(delEquipmentList, tag); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // relicList + tag = input.readRepeatedMessage(relicList, tag); + bitField0_ |= 0x00000020; if (tag != 50) { break; } } case 50: { - // basicInfo - input.readMessage(basicInfo); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 16274) { - break; - } - } - case 16274: { - // boardDataSync - input.readMessage(boardDataSync); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 82) { - break; - } - } - case 82: { - // delEquipmentList [packed=true] - input.readPackedUInt32(delEquipmentList, tag); - bitField0_ |= 0x00000008; - tag = input.readTag(); - if (tag != 114) { - break; - } - } - case 114: { - // delRelicList [packed=true] - input.readPackedUInt32(delRelicList, tag); - bitField0_ |= 0x00000010; - tag = input.readTag(); - if (tag != 18) { - break; - } - } - case 18: { - // relicList - tag = input.readRepeatedMessage(relicList, tag); - bitField0_ |= 0x00000020; - if (tag != 42) { - break; - } - } - case 42: { // equipmentList tag = input.readRepeatedMessage(equipmentList, tag); bitField0_ |= 0x00000040; @@ -924,16 +924,16 @@ public final class PlayerSyncScNotifyOuterClass { } } case 90: { - // materialList - tag = input.readRepeatedMessage(materialList, tag); + // basicTypeInfoList + tag = input.readRepeatedMessage(basicTypeInfoList, tag); bitField0_ |= 0x00000080; if (tag != 122) { break; } } case 122: { - // basicTypeInfoList - tag = input.readRepeatedMessage(basicTypeInfoList, tag); + // materialList + tag = input.readRepeatedMessage(materialList, tag); bitField0_ |= 0x00000100; if (tag != 0) { break; @@ -949,15 +949,15 @@ public final class PlayerSyncScNotifyOuterClass { tag = input.readTag(); break; } - case 80: { - // delEquipmentList [packed=false] - tag = input.readRepeatedUInt32(delEquipmentList, tag); + case 64: { + // delRelicList [packed=false] + tag = input.readRepeatedUInt32(delRelicList, tag); bitField0_ |= 0x00000008; break; } - case 112: { - // delRelicList [packed=false] - tag = input.readRepeatedUInt32(delRelicList, tag); + case 104: { + // delEquipmentList [packed=false] + tag = input.readRepeatedUInt32(delEquipmentList, tag); bitField0_ |= 0x00000010; break; } @@ -978,10 +978,10 @@ public final class PlayerSyncScNotifyOuterClass { output.writeMessage(FieldNames.boardDataSync, boardDataSync); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRepeatedUInt32(FieldNames.delEquipmentList, delEquipmentList); + output.writeRepeatedUInt32(FieldNames.delRelicList, delRelicList); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRepeatedUInt32(FieldNames.delRelicList, delRelicList); + output.writeRepeatedUInt32(FieldNames.delEquipmentList, delEquipmentList); } if ((bitField0_ & 0x00000020) != 0) { output.writeRepeatedMessage(FieldNames.relicList, relicList); @@ -990,10 +990,10 @@ public final class PlayerSyncScNotifyOuterClass { output.writeRepeatedMessage(FieldNames.equipmentList, equipmentList); } if ((bitField0_ & 0x00000080) != 0) { - output.writeRepeatedMessage(FieldNames.materialList, materialList); + output.writeRepeatedMessage(FieldNames.basicTypeInfoList, basicTypeInfoList); } if ((bitField0_ & 0x00000100) != 0) { - output.writeRepeatedMessage(FieldNames.basicTypeInfoList, basicTypeInfoList); + output.writeRepeatedMessage(FieldNames.materialList, materialList); } output.endObject(); } @@ -1041,11 +1041,11 @@ public final class PlayerSyncScNotifyOuterClass { } break; } - case -2124519167: - case -1682718877: { - if (input.isAtField(FieldNames.delEquipmentList)) { + case 1380069094: + case 1336083102: { + if (input.isAtField(FieldNames.delRelicList)) { if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(delEquipmentList); + input.readRepeatedUInt32(delRelicList); bitField0_ |= 0x00000008; } } else { @@ -1053,11 +1053,11 @@ public final class PlayerSyncScNotifyOuterClass { } break; } - case 1380069094: - case 1336083102: { - if (input.isAtField(FieldNames.delRelicList)) { + case -2124519167: + case -1682718877: { + if (input.isAtField(FieldNames.delEquipmentList)) { if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(delRelicList); + input.readRepeatedUInt32(delEquipmentList); bitField0_ |= 0x00000010; } } else { @@ -1089,11 +1089,11 @@ public final class PlayerSyncScNotifyOuterClass { } break; } - case -2115854747: - case -1149360970: { - if (input.isAtField(FieldNames.materialList)) { + case -344592620: + case -1315699973: { + if (input.isAtField(FieldNames.basicTypeInfoList)) { if (!input.trySkipNullValue()) { - input.readRepeatedMessage(materialList); + input.readRepeatedMessage(basicTypeInfoList); bitField0_ |= 0x00000080; } } else { @@ -1101,11 +1101,11 @@ public final class PlayerSyncScNotifyOuterClass { } break; } - case -344592620: - case -1315699973: { - if (input.isAtField(FieldNames.basicTypeInfoList)) { + case -2115854747: + case -1149360970: { + if (input.isAtField(FieldNames.materialList)) { if (!input.trySkipNullValue()) { - input.readRepeatedMessage(basicTypeInfoList); + input.readRepeatedMessage(materialList); bitField0_ |= 0x00000100; } } else { @@ -1172,17 +1172,17 @@ public final class PlayerSyncScNotifyOuterClass { 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 delEquipmentList = FieldName.forField("delEquipmentList", "del_equipment_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"); + + static final FieldName materialList = FieldName.forField("materialList", "material_list"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/PromoteAvatarCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/PromoteAvatarCsReqOuterClass.java index a7b17e7..67753a6 100644 --- a/src/generated/main/emu/lunarcore/proto/PromoteAvatarCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/PromoteAvatarCsReqOuterClass.java @@ -20,12 +20,12 @@ public final class PromoteAvatarCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 base_avatar_id = 14; + * optional uint32 base_avatar_id = 7; */ private int baseAvatarId; /** - * repeated .ItemCost item_list = 7; + * repeated .ItemCost item_list = 13; */ private final RepeatedMessage itemList = RepeatedMessage.newEmptyInstance(ItemCostOuterClass.ItemCost.getFactory()); @@ -40,7 +40,7 @@ public final class PromoteAvatarCsReqOuterClass { } /** - * optional uint32 base_avatar_id = 14; + * optional uint32 base_avatar_id = 7; * @return whether the baseAvatarId field is set */ public boolean hasBaseAvatarId() { @@ -48,7 +48,7 @@ public final class PromoteAvatarCsReqOuterClass { } /** - * optional uint32 base_avatar_id = 14; + * optional uint32 base_avatar_id = 7; * @return this */ public PromoteAvatarCsReq clearBaseAvatarId() { @@ -58,7 +58,7 @@ public final class PromoteAvatarCsReqOuterClass { } /** - * optional uint32 base_avatar_id = 14; + * optional uint32 base_avatar_id = 7; * @return the baseAvatarId */ public int getBaseAvatarId() { @@ -66,7 +66,7 @@ public final class PromoteAvatarCsReqOuterClass { } /** - * optional uint32 base_avatar_id = 14; + * optional uint32 base_avatar_id = 7; * @param value the baseAvatarId to set * @return this */ @@ -77,7 +77,7 @@ public final class PromoteAvatarCsReqOuterClass { } /** - * repeated .ItemCost item_list = 7; + * repeated .ItemCost item_list = 13; * @return whether the itemList field is set */ public boolean hasItemList() { @@ -85,7 +85,7 @@ public final class PromoteAvatarCsReqOuterClass { } /** - * repeated .ItemCost item_list = 7; + * repeated .ItemCost item_list = 13; * @return this */ public PromoteAvatarCsReq clearItemList() { @@ -95,7 +95,7 @@ public final class PromoteAvatarCsReqOuterClass { } /** - * repeated .ItemCost item_list = 7; + * repeated .ItemCost 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. @@ -109,7 +109,7 @@ public final class PromoteAvatarCsReqOuterClass { } /** - * repeated .ItemCost item_list = 7; + * repeated .ItemCost 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 @@ -123,7 +123,7 @@ public final class PromoteAvatarCsReqOuterClass { } /** - * repeated .ItemCost item_list = 7; + * repeated .ItemCost item_list = 13; * @param value the itemList to add * @return this */ @@ -134,7 +134,7 @@ public final class PromoteAvatarCsReqOuterClass { } /** - * repeated .ItemCost item_list = 7; + * repeated .ItemCost item_list = 13; * @param values the itemList to add * @return this */ @@ -210,12 +210,12 @@ public final class PromoteAvatarCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 56); output.writeUInt32NoTag(baseAvatarId); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < itemList.length(); i++) { - output.writeRawByte((byte) 58); + output.writeRawByte((byte) 106); output.writeMessageNoTag(itemList.get(i)); } } @@ -240,16 +240,16 @@ public final class PromoteAvatarCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 112: { + case 56: { // baseAvatarId baseAvatarId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 58) { + if (tag != 106) { break; } } - case 58: { + case 106: { // 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 33a9692..421c83c 100644 --- a/src/generated/main/emu/lunarcore/proto/PromoteEquipmentCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/PromoteEquipmentCsReqOuterClass.java @@ -19,12 +19,12 @@ public final class PromoteEquipmentCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 equipment_unique_id = 7; + * optional uint32 equipment_unique_id = 13; */ private int equipmentUniqueId; /** - * optional .ItemCostList item_cost_list = 2; + * optional .ItemCostList item_cost_list = 12; */ private final ItemCostListOuterClass.ItemCostList itemCostList = ItemCostListOuterClass.ItemCostList.newInstance(); @@ -39,7 +39,7 @@ public final class PromoteEquipmentCsReqOuterClass { } /** - * optional uint32 equipment_unique_id = 7; + * optional uint32 equipment_unique_id = 13; * @return whether the equipmentUniqueId field is set */ public boolean hasEquipmentUniqueId() { @@ -47,7 +47,7 @@ public final class PromoteEquipmentCsReqOuterClass { } /** - * optional uint32 equipment_unique_id = 7; + * optional uint32 equipment_unique_id = 13; * @return this */ public PromoteEquipmentCsReq clearEquipmentUniqueId() { @@ -57,7 +57,7 @@ public final class PromoteEquipmentCsReqOuterClass { } /** - * optional uint32 equipment_unique_id = 7; + * optional uint32 equipment_unique_id = 13; * @return the equipmentUniqueId */ public int getEquipmentUniqueId() { @@ -65,7 +65,7 @@ public final class PromoteEquipmentCsReqOuterClass { } /** - * optional uint32 equipment_unique_id = 7; + * optional uint32 equipment_unique_id = 13; * @param value the equipmentUniqueId to set * @return this */ @@ -76,7 +76,7 @@ public final class PromoteEquipmentCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 2; + * optional .ItemCostList item_cost_list = 12; * @return whether the itemCostList field is set */ public boolean hasItemCostList() { @@ -84,7 +84,7 @@ public final class PromoteEquipmentCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 2; + * optional .ItemCostList item_cost_list = 12; * @return this */ public PromoteEquipmentCsReq clearItemCostList() { @@ -94,7 +94,7 @@ public final class PromoteEquipmentCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 2; + * optional .ItemCostList item_cost_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. @@ -108,7 +108,7 @@ public final class PromoteEquipmentCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 2; + * optional .ItemCostList item_cost_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 @@ -122,7 +122,7 @@ public final class PromoteEquipmentCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 2; + * optional .ItemCostList item_cost_list = 12; * @param value the itemCostList to set * @return this */ @@ -198,11 +198,11 @@ public final class PromoteEquipmentCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 104); output.writeUInt32NoTag(equipmentUniqueId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 18); + output.writeRawByte((byte) 98); output.writeMessageNoTag(itemCostList); } } @@ -226,16 +226,16 @@ public final class PromoteEquipmentCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 56: { + case 104: { // equipmentUniqueId equipmentUniqueId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 18) { + if (tag != 98) { break; } } - case 18: { + case 98: { // 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 2d551d0..8a824ae 100644 --- a/src/generated/main/emu/lunarcore/proto/PropExtraInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/PropExtraInfoOuterClass.java @@ -19,16 +19,7 @@ public final class PropExtraInfoOuterClass { private static final long serialVersionUID = 0L; /** - *
-     * CIJCHJHMFPM chess_rogue_info = 7;
-     * 
- * - * optional .PropAeonInfo aeon_info = 3; - */ - private final PropAeonInfoOuterClass.PropAeonInfo aeonInfo = PropAeonInfoOuterClass.PropAeonInfo.newInstance(); - - /** - * optional .PropRogueInfo rogue_info = 11; + * optional .PropRogueInfo rogue_info = 2; */ private final PropRogueInfoOuterClass.PropRogueInfo rogueInfo = PropRogueInfoOuterClass.PropRogueInfo.newInstance(); @@ -43,102 +34,25 @@ public final class PropExtraInfoOuterClass { } /** - *
-     * CIJCHJHMFPM chess_rogue_info = 7;
-     * 
- * - * optional .PropAeonInfo aeon_info = 3; - * @return whether the aeonInfo field is set + * optional .PropRogueInfo rogue_info = 2; + * @return whether the rogueInfo field is set */ - public boolean hasAeonInfo() { + public boolean hasRogueInfo() { return (bitField0_ & 0x00000001) != 0; } /** - *
-     * CIJCHJHMFPM chess_rogue_info = 7;
-     * 
- * - * optional .PropAeonInfo aeon_info = 3; - * @return this - */ - public PropExtraInfo clearAeonInfo() { - bitField0_ &= ~0x00000001; - aeonInfo.clear(); - return this; - } - - /** - *
-     * CIJCHJHMFPM chess_rogue_info = 7;
-     * 
- * - * optional .PropAeonInfo aeon_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 #getMutableAeonInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public PropAeonInfoOuterClass.PropAeonInfo getAeonInfo() { - return aeonInfo; - } - - /** - *
-     * CIJCHJHMFPM chess_rogue_info = 7;
-     * 
- * - * optional .PropAeonInfo aeon_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 - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public PropAeonInfoOuterClass.PropAeonInfo getMutableAeonInfo() { - bitField0_ |= 0x00000001; - return aeonInfo; - } - - /** - *
-     * CIJCHJHMFPM chess_rogue_info = 7;
-     * 
- * - * optional .PropAeonInfo aeon_info = 3; - * @param value the aeonInfo to set - * @return this - */ - public PropExtraInfo setAeonInfo(final PropAeonInfoOuterClass.PropAeonInfo value) { - bitField0_ |= 0x00000001; - aeonInfo.copyFrom(value); - return this; - } - - /** - * optional .PropRogueInfo rogue_info = 11; - * @return whether the rogueInfo field is set - */ - public boolean hasRogueInfo() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional .PropRogueInfo rogue_info = 11; + * optional .PropRogueInfo rogue_info = 2; * @return this */ public PropExtraInfo clearRogueInfo() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; rogueInfo.clear(); return this; } /** - * optional .PropRogueInfo rogue_info = 11; + * optional .PropRogueInfo rogue_info = 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. @@ -152,7 +66,7 @@ public final class PropExtraInfoOuterClass { } /** - * optional .PropRogueInfo rogue_info = 11; + * optional .PropRogueInfo rogue_info = 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 @@ -161,17 +75,17 @@ public final class PropExtraInfoOuterClass { * @return internal storage object for modifications */ public PropRogueInfoOuterClass.PropRogueInfo getMutableRogueInfo() { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; return rogueInfo; } /** - * optional .PropRogueInfo rogue_info = 11; + * optional .PropRogueInfo rogue_info = 2; * @param value the rogueInfo to set * @return this */ public PropExtraInfo setRogueInfo(final PropRogueInfoOuterClass.PropRogueInfo value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; rogueInfo.copyFrom(value); return this; } @@ -181,7 +95,6 @@ public final class PropExtraInfoOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - aeonInfo.copyFrom(other.aeonInfo); rogueInfo.copyFrom(other.rogueInfo); } return this; @@ -193,9 +106,6 @@ public final class PropExtraInfoOuterClass { return this; } cachedSize = -1; - if (other.hasAeonInfo()) { - getMutableAeonInfo().mergeFrom(other.aeonInfo); - } if (other.hasRogueInfo()) { getMutableRogueInfo().mergeFrom(other.rogueInfo); } @@ -209,7 +119,6 @@ public final class PropExtraInfoOuterClass { } cachedSize = -1; bitField0_ = 0; - aeonInfo.clear(); rogueInfo.clear(); return this; } @@ -221,7 +130,6 @@ public final class PropExtraInfoOuterClass { } cachedSize = -1; bitField0_ = 0; - aeonInfo.clearQuick(); rogueInfo.clearQuick(); return this; } @@ -236,18 +144,13 @@ public final class PropExtraInfoOuterClass { } PropExtraInfo other = (PropExtraInfo) o; return bitField0_ == other.bitField0_ - && (!hasAeonInfo() || aeonInfo.equals(other.aeonInfo)) && (!hasRogueInfo() || rogueInfo.equals(other.rogueInfo)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 26); - output.writeMessageNoTag(aeonInfo); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 90); + output.writeRawByte((byte) 18); output.writeMessageNoTag(rogueInfo); } } @@ -256,9 +159,6 @@ public final class PropExtraInfoOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(aeonInfo); - } - if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(rogueInfo); } return size; @@ -271,19 +171,10 @@ public final class PropExtraInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 26: { - // aeonInfo - input.readMessage(aeonInfo); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 90) { - break; - } - } - case 90: { + case 18: { // rogueInfo input.readMessage(rogueInfo); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 0) { break; @@ -307,9 +198,6 @@ public final class PropExtraInfoOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeMessage(FieldNames.aeonInfo, aeonInfo); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeMessage(FieldNames.rogueInfo, rogueInfo); } output.endObject(); @@ -322,24 +210,12 @@ public final class PropExtraInfoOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -20823983: - case -625367446: { - if (input.isAtField(FieldNames.aeonInfo)) { - if (!input.trySkipNullValue()) { - input.readMessage(aeonInfo); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } case 655808936: case -1124583437: { if (input.isAtField(FieldNames.rogueInfo)) { if (!input.trySkipNullValue()) { input.readMessage(rogueInfo); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } else { input.skipUnknownField(); @@ -398,8 +274,6 @@ public final class PropExtraInfoOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName aeonInfo = FieldName.forField("aeonInfo", "aeon_info"); - static final FieldName rogueInfo = FieldName.forField("rogueInfo", "rogue_info"); } } diff --git a/src/generated/main/emu/lunarcore/proto/QuestOuterClass.java b/src/generated/main/emu/lunarcore/proto/QuestOuterClass.java index 32ebc87..cd140dc 100644 --- a/src/generated/main/emu/lunarcore/proto/QuestOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/QuestOuterClass.java @@ -20,29 +20,29 @@ public final class QuestOuterClass { private static final long serialVersionUID = 0L; /** - * optional int64 finish_time = 12; + * optional int64 finish_time = 4; */ private long finishTime; /** - * optional uint32 progress = 8; - */ - private int progress; - - /** - * optional uint32 id = 11; + * optional uint32 id = 5; */ private int id; + /** + * optional uint32 progress = 6; + */ + private int progress; + /** * optional .QuestStatus status = 13; */ private int status; /** - * repeated uint32 taken_achievement_level_list = 3; + * repeated uint32 IOIPJKJIHJB = 15; */ - private final RepeatedInt takenAchievementLevelList = RepeatedInt.newEmptyInstance(); + private final RepeatedInt iOIPJKJIHJB = RepeatedInt.newEmptyInstance(); private Quest() { } @@ -55,7 +55,7 @@ public final class QuestOuterClass { } /** - * optional int64 finish_time = 12; + * optional int64 finish_time = 4; * @return whether the finishTime field is set */ public boolean hasFinishTime() { @@ -63,7 +63,7 @@ public final class QuestOuterClass { } /** - * optional int64 finish_time = 12; + * optional int64 finish_time = 4; * @return this */ public Quest clearFinishTime() { @@ -73,7 +73,7 @@ public final class QuestOuterClass { } /** - * optional int64 finish_time = 12; + * optional int64 finish_time = 4; * @return the finishTime */ public long getFinishTime() { @@ -81,7 +81,7 @@ public final class QuestOuterClass { } /** - * optional int64 finish_time = 12; + * optional int64 finish_time = 4; * @param value the finishTime to set * @return this */ @@ -92,62 +92,25 @@ public final class QuestOuterClass { } /** - * optional uint32 progress = 8; - * @return whether the progress field is set + * optional uint32 id = 5; + * @return whether the id field is set */ - public boolean hasProgress() { + public boolean hasId() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 progress = 8; - * @return this - */ - public Quest clearProgress() { - bitField0_ &= ~0x00000002; - progress = 0; - return this; - } - - /** - * optional uint32 progress = 8; - * @return the progress - */ - public int getProgress() { - return progress; - } - - /** - * optional uint32 progress = 8; - * @param value the progress to set - * @return this - */ - public Quest setProgress(final int value) { - bitField0_ |= 0x00000002; - progress = value; - return this; - } - - /** - * optional uint32 id = 11; - * @return whether the id field is set - */ - public boolean hasId() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 id = 11; + * optional uint32 id = 5; * @return this */ public Quest clearId() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; id = 0; return this; } /** - * optional uint32 id = 11; + * optional uint32 id = 5; * @return the id */ public int getId() { @@ -155,16 +118,53 @@ public final class QuestOuterClass { } /** - * optional uint32 id = 11; + * optional uint32 id = 5; * @param value the id to set * @return this */ public Quest setId(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; id = value; return this; } + /** + * optional uint32 progress = 6; + * @return whether the progress field is set + */ + public boolean hasProgress() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 progress = 6; + * @return this + */ + public Quest clearProgress() { + bitField0_ &= ~0x00000004; + progress = 0; + return this; + } + + /** + * optional uint32 progress = 6; + * @return the progress + */ + public int getProgress() { + return progress; + } + + /** + * optional uint32 progress = 6; + * @param value the progress to set + * @return this + */ + public Quest setProgress(final int value) { + bitField0_ |= 0x00000004; + progress = value; + return this; + } + /** * optional .QuestStatus status = 13; * @return whether the status field is set @@ -228,39 +228,39 @@ public final class QuestOuterClass { } /** - * repeated uint32 taken_achievement_level_list = 3; - * @return whether the takenAchievementLevelList field is set + * repeated uint32 IOIPJKJIHJB = 15; + * @return whether the iOIPJKJIHJB field is set */ - public boolean hasTakenAchievementLevelList() { + public boolean hasIOIPJKJIHJB() { return (bitField0_ & 0x00000010) != 0; } /** - * repeated uint32 taken_achievement_level_list = 3; + * repeated uint32 IOIPJKJIHJB = 15; * @return this */ - public Quest clearTakenAchievementLevelList() { + public Quest clearIOIPJKJIHJB() { bitField0_ &= ~0x00000010; - takenAchievementLevelList.clear(); + iOIPJKJIHJB.clear(); return this; } /** - * repeated uint32 taken_achievement_level_list = 3; + * repeated uint32 IOIPJKJIHJB = 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 #getMutableTakenAchievementLevelList()} if you want to modify it. + * Use {@link #getMutableIOIPJKJIHJB()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedInt getTakenAchievementLevelList() { - return takenAchievementLevelList; + public RepeatedInt getIOIPJKJIHJB() { + return iOIPJKJIHJB; } /** - * repeated uint32 taken_achievement_level_list = 3; + * repeated uint32 IOIPJKJIHJB = 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 @@ -268,30 +268,30 @@ public final class QuestOuterClass { * * @return internal storage object for modifications */ - public RepeatedInt getMutableTakenAchievementLevelList() { + public RepeatedInt getMutableIOIPJKJIHJB() { bitField0_ |= 0x00000010; - return takenAchievementLevelList; + return iOIPJKJIHJB; } /** - * repeated uint32 taken_achievement_level_list = 3; - * @param value the takenAchievementLevelList to add + * repeated uint32 IOIPJKJIHJB = 15; + * @param value the iOIPJKJIHJB to add * @return this */ - public Quest addTakenAchievementLevelList(final int value) { + public Quest addIOIPJKJIHJB(final int value) { bitField0_ |= 0x00000010; - takenAchievementLevelList.add(value); + iOIPJKJIHJB.add(value); return this; } /** - * repeated uint32 taken_achievement_level_list = 3; - * @param values the takenAchievementLevelList to add + * repeated uint32 IOIPJKJIHJB = 15; + * @param values the iOIPJKJIHJB to add * @return this */ - public Quest addAllTakenAchievementLevelList(final int... values) { + public Quest addAllIOIPJKJIHJB(final int... values) { bitField0_ |= 0x00000010; - takenAchievementLevelList.addAll(values); + iOIPJKJIHJB.addAll(values); return this; } @@ -301,10 +301,10 @@ public final class QuestOuterClass { if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; finishTime = other.finishTime; - progress = other.progress; id = other.id; + progress = other.progress; status = other.status; - takenAchievementLevelList.copyFrom(other.takenAchievementLevelList); + iOIPJKJIHJB.copyFrom(other.iOIPJKJIHJB); } return this; } @@ -318,17 +318,17 @@ public final class QuestOuterClass { if (other.hasFinishTime()) { setFinishTime(other.finishTime); } - if (other.hasProgress()) { - setProgress(other.progress); - } if (other.hasId()) { setId(other.id); } + if (other.hasProgress()) { + setProgress(other.progress); + } if (other.hasStatus()) { setStatusValue(other.status); } - if (other.hasTakenAchievementLevelList()) { - getMutableTakenAchievementLevelList().addAll(other.takenAchievementLevelList); + if (other.hasIOIPJKJIHJB()) { + getMutableIOIPJKJIHJB().addAll(other.iOIPJKJIHJB); } return this; } @@ -341,10 +341,10 @@ public final class QuestOuterClass { cachedSize = -1; bitField0_ = 0; finishTime = 0L; - progress = 0; id = 0; + progress = 0; status = 0; - takenAchievementLevelList.clear(); + iOIPJKJIHJB.clear(); return this; } @@ -355,7 +355,7 @@ public final class QuestOuterClass { } cachedSize = -1; bitField0_ = 0; - takenAchievementLevelList.clear(); + iOIPJKJIHJB.clear(); return this; } @@ -370,34 +370,34 @@ public final class QuestOuterClass { Quest other = (Quest) o; return bitField0_ == other.bitField0_ && (!hasFinishTime() || finishTime == other.finishTime) - && (!hasProgress() || progress == other.progress) && (!hasId() || id == other.id) + && (!hasProgress() || progress == other.progress) && (!hasStatus() || status == other.status) - && (!hasTakenAchievementLevelList() || takenAchievementLevelList.equals(other.takenAchievementLevelList)); + && (!hasIOIPJKJIHJB() || iOIPJKJIHJB.equals(other.iOIPJKJIHJB)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 32); output.writeInt64NoTag(finishTime); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 64); - output.writeUInt32NoTag(progress); + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(id); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 88); - output.writeUInt32NoTag(id); + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(progress); } if ((bitField0_ & 0x00000008) != 0) { output.writeRawByte((byte) 104); output.writeEnumNoTag(status); } if ((bitField0_ & 0x00000010) != 0) { - for (int i = 0; i < takenAchievementLevelList.length(); i++) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(takenAchievementLevelList.array()[i]); + for (int i = 0; i < iOIPJKJIHJB.length(); i++) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(iOIPJKJIHJB.array()[i]); } } } @@ -409,16 +409,16 @@ public final class QuestOuterClass { size += 1 + ProtoSink.computeInt64SizeNoTag(finishTime); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(progress); + size += 1 + ProtoSink.computeUInt32SizeNoTag(id); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(id); + size += 1 + ProtoSink.computeUInt32SizeNoTag(progress); } if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeEnumSizeNoTag(status); } if ((bitField0_ & 0x00000010) != 0) { - size += (1 * takenAchievementLevelList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(takenAchievementLevelList); + size += (1 * iOIPJKJIHJB.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(iOIPJKJIHJB); } return size; } @@ -430,27 +430,27 @@ public final class QuestOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 96: { + case 32: { // finishTime finishTime = input.readInt64(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 64) { + if (tag != 40) { break; } } - case 64: { - // progress - progress = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 88) { - break; - } - } - case 88: { + case 40: { // id id = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // progress + progress = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 104) { @@ -465,13 +465,13 @@ public final class QuestOuterClass { bitField0_ |= 0x00000008; } tag = input.readTag(); - if (tag != 26) { + if (tag != 122) { break; } } - case 26: { - // takenAchievementLevelList [packed=true] - input.readPackedUInt32(takenAchievementLevelList, tag); + case 122: { + // iOIPJKJIHJB [packed=true] + input.readPackedUInt32(iOIPJKJIHJB, tag); bitField0_ |= 0x00000010; tag = input.readTag(); if (tag != 0) { @@ -488,9 +488,9 @@ public final class QuestOuterClass { tag = input.readTag(); break; } - case 24: { - // takenAchievementLevelList [packed=false] - tag = input.readRepeatedUInt32(takenAchievementLevelList, tag); + case 120: { + // iOIPJKJIHJB [packed=false] + tag = input.readRepeatedUInt32(iOIPJKJIHJB, tag); bitField0_ |= 0x00000010; break; } @@ -505,16 +505,16 @@ public final class QuestOuterClass { output.writeInt64(FieldNames.finishTime, finishTime); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.progress, progress); + output.writeUInt32(FieldNames.id, id); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.id, id); + output.writeUInt32(FieldNames.progress, progress); } if ((bitField0_ & 0x00000008) != 0) { output.writeEnum(FieldNames.status, status, QuestStatusOuterClass.QuestStatus.converter()); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRepeatedUInt32(FieldNames.takenAchievementLevelList, takenAchievementLevelList); + output.writeRepeatedUInt32(FieldNames.iOIPJKJIHJB, iOIPJKJIHJB); } output.endObject(); } @@ -538,10 +538,10 @@ public final class QuestOuterClass { } 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 { @@ -549,10 +549,10 @@ public final class QuestOuterClass { } break; } - case 3355: { - if (input.isAtField(FieldNames.id)) { + case -1001078227: { + if (input.isAtField(FieldNames.progress)) { if (!input.trySkipNullValue()) { - id = input.readUInt32(); + progress = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -576,11 +576,10 @@ public final class QuestOuterClass { } break; } - case 149879610: - case 1076639233: { - if (input.isAtField(FieldNames.takenAchievementLevelList)) { + case 1686124499: { + if (input.isAtField(FieldNames.iOIPJKJIHJB)) { if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(takenAchievementLevelList); + input.readRepeatedUInt32(iOIPJKJIHJB); bitField0_ |= 0x00000010; } } else { @@ -642,13 +641,13 @@ public final class QuestOuterClass { static class FieldNames { static final FieldName finishTime = FieldName.forField("finishTime", "finish_time"); - static final FieldName progress = FieldName.forField("progress"); - static final FieldName id = FieldName.forField("id"); + static final FieldName progress = FieldName.forField("progress"); + static final FieldName status = FieldName.forField("status"); - static final FieldName takenAchievementLevelList = FieldName.forField("takenAchievementLevelList", "taken_achievement_level_list"); + static final FieldName iOIPJKJIHJB = FieldName.forField("IOIPJKJIHJB"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/QuitLineupCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/QuitLineupCsReqOuterClass.java index 8689403..2634329 100644 --- a/src/generated/main/emu/lunarcore/proto/QuitLineupCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/QuitLineupCsReqOuterClass.java @@ -19,32 +19,32 @@ public final class QuitLineupCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 index = 1; - */ - private int index; - - /** - * optional uint32 plane_id = 5; - */ - private int planeId; - - /** - * optional uint32 base_avatar_id = 7; + * optional uint32 base_avatar_id = 2; */ private int baseAvatarId; /** - * optional .AvatarType avatar_type = 6; + * optional uint32 plane_id = 7; + */ + private int planeId; + + /** + * optional uint32 index = 13; + */ + private int index; + + /** + * optional .AvatarType avatar_type = 8; */ private int avatarType; /** - * optional .ExtraLineupType extra_lineup_type = 8; + * optional .ExtraLineupType extra_lineup_type = 14; */ private int extraLineupType; /** - * optional bool is_virtual = 2; + * optional bool is_virtual = 5; */ private boolean isVirtual; @@ -59,44 +59,44 @@ public final class QuitLineupCsReqOuterClass { } /** - * optional uint32 index = 1; - * @return whether the index field is set + * optional uint32 base_avatar_id = 2; + * @return whether the baseAvatarId field is set */ - public boolean hasIndex() { + public boolean hasBaseAvatarId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 index = 1; + * optional uint32 base_avatar_id = 2; * @return this */ - public QuitLineupCsReq clearIndex() { + public QuitLineupCsReq clearBaseAvatarId() { bitField0_ &= ~0x00000001; - index = 0; + baseAvatarId = 0; return this; } /** - * optional uint32 index = 1; - * @return the index + * optional uint32 base_avatar_id = 2; + * @return the baseAvatarId */ - public int getIndex() { - return index; + public int getBaseAvatarId() { + return baseAvatarId; } /** - * optional uint32 index = 1; - * @param value the index to set + * optional uint32 base_avatar_id = 2; + * @param value the baseAvatarId to set * @return this */ - public QuitLineupCsReq setIndex(final int value) { + public QuitLineupCsReq setBaseAvatarId(final int value) { bitField0_ |= 0x00000001; - index = value; + baseAvatarId = value; return this; } /** - * optional uint32 plane_id = 5; + * optional uint32 plane_id = 7; * @return whether the planeId field is set */ public boolean hasPlaneId() { @@ -104,7 +104,7 @@ public final class QuitLineupCsReqOuterClass { } /** - * optional uint32 plane_id = 5; + * optional uint32 plane_id = 7; * @return this */ public QuitLineupCsReq clearPlaneId() { @@ -114,7 +114,7 @@ public final class QuitLineupCsReqOuterClass { } /** - * optional uint32 plane_id = 5; + * optional uint32 plane_id = 7; * @return the planeId */ public int getPlaneId() { @@ -122,7 +122,7 @@ public final class QuitLineupCsReqOuterClass { } /** - * optional uint32 plane_id = 5; + * optional uint32 plane_id = 7; * @param value the planeId to set * @return this */ @@ -133,44 +133,44 @@ public final class QuitLineupCsReqOuterClass { } /** - * optional uint32 base_avatar_id = 7; - * @return whether the baseAvatarId field is set + * optional uint32 index = 13; + * @return whether the index field is set */ - public boolean hasBaseAvatarId() { + public boolean hasIndex() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 base_avatar_id = 7; + * optional uint32 index = 13; * @return this */ - public QuitLineupCsReq clearBaseAvatarId() { + public QuitLineupCsReq clearIndex() { bitField0_ &= ~0x00000004; - baseAvatarId = 0; + index = 0; return this; } /** - * optional uint32 base_avatar_id = 7; - * @return the baseAvatarId + * optional uint32 index = 13; + * @return the index */ - public int getBaseAvatarId() { - return baseAvatarId; + public int getIndex() { + return index; } /** - * optional uint32 base_avatar_id = 7; - * @param value the baseAvatarId to set + * optional uint32 index = 13; + * @param value the index to set * @return this */ - public QuitLineupCsReq setBaseAvatarId(final int value) { + public QuitLineupCsReq setIndex(final int value) { bitField0_ |= 0x00000004; - baseAvatarId = value; + index = value; return this; } /** - * optional .AvatarType avatar_type = 6; + * optional .AvatarType avatar_type = 8; * @return whether the avatarType field is set */ public boolean hasAvatarType() { @@ -178,7 +178,7 @@ public final class QuitLineupCsReqOuterClass { } /** - * optional .AvatarType avatar_type = 6; + * optional .AvatarType avatar_type = 8; * @return this */ public QuitLineupCsReq clearAvatarType() { @@ -188,7 +188,7 @@ public final class QuitLineupCsReqOuterClass { } /** - * optional .AvatarType avatar_type = 6; + * optional .AvatarType avatar_type = 8; * @return the avatarType */ public AvatarTypeOuterClass.AvatarType getAvatarType() { @@ -221,7 +221,7 @@ public final class QuitLineupCsReqOuterClass { } /** - * optional .AvatarType avatar_type = 6; + * optional .AvatarType avatar_type = 8; * @param value the avatarType to set * @return this */ @@ -232,7 +232,7 @@ public final class QuitLineupCsReqOuterClass { } /** - * optional .ExtraLineupType extra_lineup_type = 8; + * optional .ExtraLineupType extra_lineup_type = 14; * @return whether the extraLineupType field is set */ public boolean hasExtraLineupType() { @@ -240,7 +240,7 @@ public final class QuitLineupCsReqOuterClass { } /** - * optional .ExtraLineupType extra_lineup_type = 8; + * optional .ExtraLineupType extra_lineup_type = 14; * @return this */ public QuitLineupCsReq clearExtraLineupType() { @@ -250,7 +250,7 @@ public final class QuitLineupCsReqOuterClass { } /** - * optional .ExtraLineupType extra_lineup_type = 8; + * optional .ExtraLineupType extra_lineup_type = 14; * @return the extraLineupType */ public ExtraLineupTypeOuterClass.ExtraLineupType getExtraLineupType() { @@ -283,7 +283,7 @@ public final class QuitLineupCsReqOuterClass { } /** - * optional .ExtraLineupType extra_lineup_type = 8; + * optional .ExtraLineupType extra_lineup_type = 14; * @param value the extraLineupType to set * @return this */ @@ -295,7 +295,7 @@ public final class QuitLineupCsReqOuterClass { } /** - * optional bool is_virtual = 2; + * optional bool is_virtual = 5; * @return whether the isVirtual field is set */ public boolean hasIsVirtual() { @@ -303,7 +303,7 @@ public final class QuitLineupCsReqOuterClass { } /** - * optional bool is_virtual = 2; + * optional bool is_virtual = 5; * @return this */ public QuitLineupCsReq clearIsVirtual() { @@ -313,7 +313,7 @@ public final class QuitLineupCsReqOuterClass { } /** - * optional bool is_virtual = 2; + * optional bool is_virtual = 5; * @return the isVirtual */ public boolean getIsVirtual() { @@ -321,7 +321,7 @@ public final class QuitLineupCsReqOuterClass { } /** - * optional bool is_virtual = 2; + * optional bool is_virtual = 5; * @param value the isVirtual to set * @return this */ @@ -336,9 +336,9 @@ public final class QuitLineupCsReqOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - index = other.index; - planeId = other.planeId; baseAvatarId = other.baseAvatarId; + planeId = other.planeId; + index = other.index; avatarType = other.avatarType; extraLineupType = other.extraLineupType; isVirtual = other.isVirtual; @@ -352,14 +352,14 @@ public final class QuitLineupCsReqOuterClass { return this; } cachedSize = -1; - if (other.hasIndex()) { - setIndex(other.index); + if (other.hasBaseAvatarId()) { + setBaseAvatarId(other.baseAvatarId); } if (other.hasPlaneId()) { setPlaneId(other.planeId); } - if (other.hasBaseAvatarId()) { - setBaseAvatarId(other.baseAvatarId); + if (other.hasIndex()) { + setIndex(other.index); } if (other.hasAvatarType()) { setAvatarTypeValue(other.avatarType); @@ -380,9 +380,9 @@ public final class QuitLineupCsReqOuterClass { } cachedSize = -1; bitField0_ = 0; - index = 0; - planeId = 0; baseAvatarId = 0; + planeId = 0; + index = 0; avatarType = 0; extraLineupType = 0; isVirtual = false; @@ -409,9 +409,9 @@ public final class QuitLineupCsReqOuterClass { } QuitLineupCsReq other = (QuitLineupCsReq) o; return bitField0_ == other.bitField0_ - && (!hasIndex() || index == other.index) - && (!hasPlaneId() || planeId == other.planeId) && (!hasBaseAvatarId() || baseAvatarId == other.baseAvatarId) + && (!hasPlaneId() || planeId == other.planeId) + && (!hasIndex() || index == other.index) && (!hasAvatarType() || avatarType == other.avatarType) && (!hasExtraLineupType() || extraLineupType == other.extraLineupType) && (!hasIsVirtual() || isVirtual == other.isVirtual); @@ -420,27 +420,27 @@ public final class QuitLineupCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(index); + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(baseAvatarId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 56); output.writeUInt32NoTag(planeId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 56); - output.writeUInt32NoTag(baseAvatarId); + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(index); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 64); output.writeEnumNoTag(avatarType); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 112); output.writeEnumNoTag(extraLineupType); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 16); + output.writeRawByte((byte) 40); output.writeBoolNoTag(isVirtual); } } @@ -449,13 +449,13 @@ public final class QuitLineupCsReqOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(index); + size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); } if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(planeId); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(index); } if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeEnumSizeNoTag(avatarType); @@ -476,34 +476,34 @@ public final class QuitLineupCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 8: { - // index - index = input.readUInt32(); + case 16: { + // baseAvatarId + baseAvatarId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 40) { - break; - } - } - case 40: { - // planeId - planeId = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); if (tag != 56) { break; } } case 56: { - // baseAvatarId - baseAvatarId = input.readUInt32(); - bitField0_ |= 0x00000004; + // planeId + planeId = input.readUInt32(); + bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 48) { + if (tag != 104) { break; } } - case 48: { + case 104: { + // index + index = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 64) { + break; + } + } + case 64: { // avatarType final int value = input.readInt32(); if (AvatarTypeOuterClass.AvatarType.forNumber(value) != null) { @@ -511,11 +511,11 @@ public final class QuitLineupCsReqOuterClass { bitField0_ |= 0x00000008; } tag = input.readTag(); - if (tag != 64) { + if (tag != 112) { break; } } - case 64: { + case 112: { // extraLineupType final int value = input.readInt32(); if (ExtraLineupTypeOuterClass.ExtraLineupType.forNumber(value) != null) { @@ -523,11 +523,11 @@ public final class QuitLineupCsReqOuterClass { bitField0_ |= 0x00000010; } tag = input.readTag(); - if (tag != 16) { + if (tag != 40) { break; } } - case 16: { + case 40: { // isVirtual isVirtual = input.readBool(); bitField0_ |= 0x00000020; @@ -554,13 +554,13 @@ public final class QuitLineupCsReqOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.index, index); + output.writeUInt32(FieldNames.baseAvatarId, baseAvatarId); } if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.planeId, planeId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.baseAvatarId, baseAvatarId); + output.writeUInt32(FieldNames.index, index); } if ((bitField0_ & 0x00000008) != 0) { output.writeEnum(FieldNames.avatarType, avatarType, AvatarTypeOuterClass.AvatarType.converter()); @@ -581,10 +581,11 @@ public final class QuitLineupCsReqOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 100346066: { - if (input.isAtField(FieldNames.index)) { + case 118022725: + case -1756826157: { + if (input.isAtField(FieldNames.baseAvatarId)) { if (!input.trySkipNullValue()) { - index = input.readUInt32(); + baseAvatarId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -604,11 +605,10 @@ public final class QuitLineupCsReqOuterClass { } break; } - case 118022725: - case -1756826157: { - if (input.isAtField(FieldNames.baseAvatarId)) { + case 100346066: { + if (input.isAtField(FieldNames.index)) { if (!input.trySkipNullValue()) { - baseAvatarId = input.readUInt32(); + index = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -715,11 +715,11 @@ public final class QuitLineupCsReqOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName index = FieldName.forField("index"); + static final FieldName baseAvatarId = FieldName.forField("baseAvatarId", "base_avatar_id"); static final FieldName planeId = FieldName.forField("planeId", "plane_id"); - static final FieldName baseAvatarId = FieldName.forField("baseAvatarId", "base_avatar_id"); + static final FieldName index = FieldName.forField("index"); static final FieldName avatarType = FieldName.forField("avatarType", "avatar_type"); diff --git a/src/generated/main/emu/lunarcore/proto/RankUpAvatarCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/RankUpAvatarCsReqOuterClass.java index 4f4d6d7..1255872 100644 --- a/src/generated/main/emu/lunarcore/proto/RankUpAvatarCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RankUpAvatarCsReqOuterClass.java @@ -19,12 +19,12 @@ public final class RankUpAvatarCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 rank = 6; + * optional uint32 rank = 10; */ private int rank; /** - * optional uint32 base_avatar_id = 10; + * optional uint32 base_avatar_id = 15; */ private int baseAvatarId; @@ -44,7 +44,7 @@ public final class RankUpAvatarCsReqOuterClass { } /** - * optional uint32 rank = 6; + * optional uint32 rank = 10; * @return whether the rank field is set */ public boolean hasRank() { @@ -52,7 +52,7 @@ public final class RankUpAvatarCsReqOuterClass { } /** - * optional uint32 rank = 6; + * optional uint32 rank = 10; * @return this */ public RankUpAvatarCsReq clearRank() { @@ -62,7 +62,7 @@ public final class RankUpAvatarCsReqOuterClass { } /** - * optional uint32 rank = 6; + * optional uint32 rank = 10; * @return the rank */ public int getRank() { @@ -70,7 +70,7 @@ public final class RankUpAvatarCsReqOuterClass { } /** - * optional uint32 rank = 6; + * optional uint32 rank = 10; * @param value the rank to set * @return this */ @@ -81,7 +81,7 @@ public final class RankUpAvatarCsReqOuterClass { } /** - * optional uint32 base_avatar_id = 10; + * optional uint32 base_avatar_id = 15; * @return whether the baseAvatarId field is set */ public boolean hasBaseAvatarId() { @@ -89,7 +89,7 @@ public final class RankUpAvatarCsReqOuterClass { } /** - * optional uint32 base_avatar_id = 10; + * optional uint32 base_avatar_id = 15; * @return this */ public RankUpAvatarCsReq clearBaseAvatarId() { @@ -99,7 +99,7 @@ public final class RankUpAvatarCsReqOuterClass { } /** - * optional uint32 base_avatar_id = 10; + * optional uint32 base_avatar_id = 15; * @return the baseAvatarId */ public int getBaseAvatarId() { @@ -107,7 +107,7 @@ public final class RankUpAvatarCsReqOuterClass { } /** - * optional uint32 base_avatar_id = 10; + * optional uint32 base_avatar_id = 15; * @param value the baseAvatarId to set * @return this */ @@ -246,11 +246,11 @@ public final class RankUpAvatarCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 80); output.writeUInt32NoTag(rank); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 120); output.writeUInt32NoTag(baseAvatarId); } if ((bitField0_ & 0x00000004) != 0) { @@ -281,16 +281,16 @@ public final class RankUpAvatarCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 48: { + case 80: { // rank rank = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 80) { + if (tag != 120) { break; } } - case 80: { + case 120: { // baseAvatarId baseAvatarId = input.readUInt32(); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/RankUpEquipmentCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/RankUpEquipmentCsReqOuterClass.java index 5d70ff7..e174410 100644 --- a/src/generated/main/emu/lunarcore/proto/RankUpEquipmentCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RankUpEquipmentCsReqOuterClass.java @@ -19,12 +19,12 @@ public final class RankUpEquipmentCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 equipment_unique_id = 1; + * optional uint32 equipment_unique_id = 10; */ private int equipmentUniqueId; /** - * optional .ItemCostList item_cost_list = 9; + * optional .ItemCostList item_cost_list = 4; */ private final ItemCostListOuterClass.ItemCostList itemCostList = ItemCostListOuterClass.ItemCostList.newInstance(); @@ -39,7 +39,7 @@ public final class RankUpEquipmentCsReqOuterClass { } /** - * optional uint32 equipment_unique_id = 1; + * optional uint32 equipment_unique_id = 10; * @return whether the equipmentUniqueId field is set */ public boolean hasEquipmentUniqueId() { @@ -47,7 +47,7 @@ public final class RankUpEquipmentCsReqOuterClass { } /** - * optional uint32 equipment_unique_id = 1; + * optional uint32 equipment_unique_id = 10; * @return this */ public RankUpEquipmentCsReq clearEquipmentUniqueId() { @@ -57,7 +57,7 @@ public final class RankUpEquipmentCsReqOuterClass { } /** - * optional uint32 equipment_unique_id = 1; + * optional uint32 equipment_unique_id = 10; * @return the equipmentUniqueId */ public int getEquipmentUniqueId() { @@ -65,7 +65,7 @@ public final class RankUpEquipmentCsReqOuterClass { } /** - * optional uint32 equipment_unique_id = 1; + * optional uint32 equipment_unique_id = 10; * @param value the equipmentUniqueId to set * @return this */ @@ -76,7 +76,7 @@ public final class RankUpEquipmentCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 9; + * optional .ItemCostList item_cost_list = 4; * @return whether the itemCostList field is set */ public boolean hasItemCostList() { @@ -84,7 +84,7 @@ public final class RankUpEquipmentCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 9; + * optional .ItemCostList item_cost_list = 4; * @return this */ public RankUpEquipmentCsReq clearItemCostList() { @@ -94,7 +94,7 @@ public final class RankUpEquipmentCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 9; + * 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. @@ -108,7 +108,7 @@ public final class RankUpEquipmentCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 9; + * 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 @@ -122,7 +122,7 @@ public final class RankUpEquipmentCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 9; + * optional .ItemCostList item_cost_list = 4; * @param value the itemCostList to set * @return this */ @@ -198,11 +198,11 @@ public final class RankUpEquipmentCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); + output.writeRawByte((byte) 80); output.writeUInt32NoTag(equipmentUniqueId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 74); + output.writeRawByte((byte) 34); output.writeMessageNoTag(itemCostList); } } @@ -226,16 +226,16 @@ public final class RankUpEquipmentCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 8: { + case 80: { // equipmentUniqueId equipmentUniqueId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 74) { + if (tag != 34) { break; } } - case 74: { + case 34: { // 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 c2077b7..48ba932 100644 --- a/src/generated/main/emu/lunarcore/proto/ReEnterLastElementStageCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ReEnterLastElementStageCsReqOuterClass.java @@ -19,7 +19,7 @@ public final class ReEnterLastElementStageCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 stage_id = 4; + * optional uint32 stage_id = 12; */ private int stageId; @@ -34,7 +34,7 @@ public final class ReEnterLastElementStageCsReqOuterClass { } /** - * optional uint32 stage_id = 4; + * optional uint32 stage_id = 12; * @return whether the stageId field is set */ public boolean hasStageId() { @@ -42,7 +42,7 @@ public final class ReEnterLastElementStageCsReqOuterClass { } /** - * optional uint32 stage_id = 4; + * optional uint32 stage_id = 12; * @return this */ public ReEnterLastElementStageCsReq clearStageId() { @@ -52,7 +52,7 @@ public final class ReEnterLastElementStageCsReqOuterClass { } /** - * optional uint32 stage_id = 4; + * optional uint32 stage_id = 12; * @return the stageId */ public int getStageId() { @@ -60,7 +60,7 @@ public final class ReEnterLastElementStageCsReqOuterClass { } /** - * optional uint32 stage_id = 4; + * optional uint32 stage_id = 12; * @param value the stageId to set * @return this */ @@ -129,7 +129,7 @@ public final class ReEnterLastElementStageCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 32); + output.writeRawByte((byte) 96); output.writeUInt32NoTag(stageId); } } @@ -150,7 +150,7 @@ public final class ReEnterLastElementStageCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 32: { + case 96: { // 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 13154b6..be41224 100644 --- a/src/generated/main/emu/lunarcore/proto/ReEnterLastElementStageScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ReEnterLastElementStageScRspOuterClass.java @@ -19,17 +19,17 @@ public final class ReEnterLastElementStageScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 3; - */ - private int retcode; - - /** - * optional uint32 stage_id = 10; + * optional uint32 stage_id = 3; */ private int stageId; /** - * optional .SceneBattleInfo battle_info = 15; + * optional uint32 retcode = 7; + */ + private int retcode; + + /** + * optional .SceneBattleInfo battle_info = 11; */ private final SceneBattleInfoOuterClass.SceneBattleInfo battleInfo = SceneBattleInfoOuterClass.SceneBattleInfo.newInstance(); @@ -44,62 +44,25 @@ public final class ReEnterLastElementStageScRspOuterClass { } /** - * optional uint32 retcode = 3; - * @return whether the retcode field is set + * optional uint32 stage_id = 3; + * @return whether the stageId field is set */ - public boolean hasRetcode() { + public boolean hasStageId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 retcode = 3; - * @return this - */ - public ReEnterLastElementStageScRsp clearRetcode() { - bitField0_ &= ~0x00000001; - retcode = 0; - return this; - } - - /** - * optional uint32 retcode = 3; - * @return the retcode - */ - public int getRetcode() { - return retcode; - } - - /** - * optional uint32 retcode = 3; - * @param value the retcode to set - * @return this - */ - public ReEnterLastElementStageScRsp setRetcode(final int value) { - bitField0_ |= 0x00000001; - retcode = value; - return this; - } - - /** - * optional uint32 stage_id = 10; - * @return whether the stageId field is set - */ - public boolean hasStageId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 stage_id = 10; + * optional uint32 stage_id = 3; * @return this */ public ReEnterLastElementStageScRsp clearStageId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; stageId = 0; return this; } /** - * optional uint32 stage_id = 10; + * optional uint32 stage_id = 3; * @return the stageId */ public int getStageId() { @@ -107,18 +70,55 @@ public final class ReEnterLastElementStageScRspOuterClass { } /** - * optional uint32 stage_id = 10; + * optional uint32 stage_id = 3; * @param value the stageId to set * @return this */ public ReEnterLastElementStageScRsp setStageId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; stageId = value; return this; } /** - * optional .SceneBattleInfo battle_info = 15; + * optional uint32 retcode = 7; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 retcode = 7; + * @return this + */ + public ReEnterLastElementStageScRsp clearRetcode() { + bitField0_ &= ~0x00000002; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 7; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 7; + * @param value the retcode to set + * @return this + */ + public ReEnterLastElementStageScRsp setRetcode(final int value) { + bitField0_ |= 0x00000002; + retcode = value; + return this; + } + + /** + * optional .SceneBattleInfo battle_info = 11; * @return whether the battleInfo field is set */ public boolean hasBattleInfo() { @@ -126,7 +126,7 @@ public final class ReEnterLastElementStageScRspOuterClass { } /** - * optional .SceneBattleInfo battle_info = 15; + * optional .SceneBattleInfo battle_info = 11; * @return this */ public ReEnterLastElementStageScRsp clearBattleInfo() { @@ -136,7 +136,7 @@ public final class ReEnterLastElementStageScRspOuterClass { } /** - * optional .SceneBattleInfo battle_info = 15; + * 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 final class ReEnterLastElementStageScRspOuterClass { } /** - * optional .SceneBattleInfo battle_info = 15; + * 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 final class ReEnterLastElementStageScRspOuterClass { } /** - * optional .SceneBattleInfo battle_info = 15; + * optional .SceneBattleInfo battle_info = 11; * @param value the battleInfo to set * @return this */ @@ -180,8 +180,8 @@ public final class ReEnterLastElementStageScRspOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - retcode = other.retcode; stageId = other.stageId; + retcode = other.retcode; battleInfo.copyFrom(other.battleInfo); } return this; @@ -193,12 +193,12 @@ public final class ReEnterLastElementStageScRspOuterClass { return this; } cachedSize = -1; - if (other.hasRetcode()) { - setRetcode(other.retcode); - } if (other.hasStageId()) { setStageId(other.stageId); } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } if (other.hasBattleInfo()) { getMutableBattleInfo().mergeFrom(other.battleInfo); } @@ -212,8 +212,8 @@ public final class ReEnterLastElementStageScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - retcode = 0; stageId = 0; + retcode = 0; battleInfo.clear(); return this; } @@ -239,8 +239,8 @@ public final class ReEnterLastElementStageScRspOuterClass { } ReEnterLastElementStageScRsp other = (ReEnterLastElementStageScRsp) o; return bitField0_ == other.bitField0_ - && (!hasRetcode() || retcode == other.retcode) && (!hasStageId() || stageId == other.stageId) + && (!hasRetcode() || retcode == other.retcode) && (!hasBattleInfo() || battleInfo.equals(other.battleInfo)); } @@ -248,14 +248,14 @@ public final class ReEnterLastElementStageScRspOuterClass { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { output.writeRawByte((byte) 24); - output.writeUInt32NoTag(retcode); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 80); output.writeUInt32NoTag(stageId); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(retcode); + } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 122); + output.writeRawByte((byte) 90); output.writeMessageNoTag(battleInfo); } } @@ -264,10 +264,10 @@ public final class ReEnterLastElementStageScRspOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(stageId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(stageId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(battleInfo); @@ -283,24 +283,24 @@ public final class ReEnterLastElementStageScRspOuterClass { while (true) { switch (tag) { case 24: { - // retcode - retcode = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 80) { - break; - } - } - case 80: { // stageId stageId = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 122) { + if (tag != 56) { break; } } - case 122: { + case 56: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 90) { + break; + } + } + case 90: { // battleInfo input.readMessage(battleInfo); bitField0_ |= 0x00000004; @@ -327,10 +327,10 @@ public final class ReEnterLastElementStageScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.stageId, stageId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.stageId, stageId); + output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000004) != 0) { output.writeMessage(FieldNames.battleInfo, battleInfo); @@ -345,10 +345,11 @@ public final class ReEnterLastElementStageScRspOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - 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_ |= 0x00000001; } } else { @@ -356,11 +357,10 @@ public final class ReEnterLastElementStageScRspOuterClass { } break; } - 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_ |= 0x00000002; } } else { @@ -435,10 +435,10 @@ public final class ReEnterLastElementStageScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName retcode = FieldName.forField("retcode"); - static final FieldName stageId = FieldName.forField("stageId", "stage_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/RefreshTriggerByClientCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/RefreshTriggerByClientCsReqOuterClass.java index 1e681b6..fcea762 100644 --- a/src/generated/main/emu/lunarcore/proto/RefreshTriggerByClientCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RefreshTriggerByClientCsReqOuterClass.java @@ -21,7 +21,7 @@ public final class RefreshTriggerByClientCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 trigger_entity_id = 4; + * optional uint32 trigger_entity_id = 14; */ private int triggerEntityId; @@ -31,12 +31,12 @@ public final class RefreshTriggerByClientCsReqOuterClass { private final MotionInfoOuterClass.MotionInfo triggerMotion = MotionInfoOuterClass.MotionInfo.newInstance(); /** - * optional string trigger_name = 3; + * optional string trigger_name = 4; */ private final Utf8String triggerName = Utf8String.newEmptyInstance(); /** - * repeated uint32 trigger_target_id_list = 12; + * repeated uint32 trigger_target_id_list = 15; */ private final RepeatedInt triggerTargetIdList = RepeatedInt.newEmptyInstance(); @@ -51,7 +51,7 @@ public final class RefreshTriggerByClientCsReqOuterClass { } /** - * optional uint32 trigger_entity_id = 4; + * optional uint32 trigger_entity_id = 14; * @return whether the triggerEntityId field is set */ public boolean hasTriggerEntityId() { @@ -59,7 +59,7 @@ public final class RefreshTriggerByClientCsReqOuterClass { } /** - * optional uint32 trigger_entity_id = 4; + * optional uint32 trigger_entity_id = 14; * @return this */ public RefreshTriggerByClientCsReq clearTriggerEntityId() { @@ -69,7 +69,7 @@ public final class RefreshTriggerByClientCsReqOuterClass { } /** - * optional uint32 trigger_entity_id = 4; + * optional uint32 trigger_entity_id = 14; * @return the triggerEntityId */ public int getTriggerEntityId() { @@ -77,7 +77,7 @@ public final class RefreshTriggerByClientCsReqOuterClass { } /** - * optional uint32 trigger_entity_id = 4; + * optional uint32 trigger_entity_id = 14; * @param value the triggerEntityId to set * @return this */ @@ -146,7 +146,7 @@ public final class RefreshTriggerByClientCsReqOuterClass { } /** - * optional string trigger_name = 3; + * optional string trigger_name = 4; * @return whether the triggerName field is set */ public boolean hasTriggerName() { @@ -154,7 +154,7 @@ public final class RefreshTriggerByClientCsReqOuterClass { } /** - * optional string trigger_name = 3; + * optional string trigger_name = 4; * @return this */ public RefreshTriggerByClientCsReq clearTriggerName() { @@ -164,7 +164,7 @@ public final class RefreshTriggerByClientCsReqOuterClass { } /** - * optional string trigger_name = 3; + * optional string trigger_name = 4; * @return the triggerName */ public String getTriggerName() { @@ -172,7 +172,7 @@ public final class RefreshTriggerByClientCsReqOuterClass { } /** - * optional string trigger_name = 3; + * optional string trigger_name = 4; * @return internal {@code Utf8String} representation of triggerName for reading */ public Utf8String getTriggerNameBytes() { @@ -180,7 +180,7 @@ public final class RefreshTriggerByClientCsReqOuterClass { } /** - * optional string trigger_name = 3; + * optional string trigger_name = 4; * @return internal {@code Utf8String} representation of triggerName for modifications */ public Utf8String getMutableTriggerNameBytes() { @@ -189,7 +189,7 @@ public final class RefreshTriggerByClientCsReqOuterClass { } /** - * optional string trigger_name = 3; + * optional string trigger_name = 4; * @param value the triggerName to set * @return this */ @@ -200,7 +200,7 @@ public final class RefreshTriggerByClientCsReqOuterClass { } /** - * optional string trigger_name = 3; + * optional string trigger_name = 4; * @param value the triggerName to set * @return this */ @@ -211,7 +211,7 @@ public final class RefreshTriggerByClientCsReqOuterClass { } /** - * repeated uint32 trigger_target_id_list = 12; + * repeated uint32 trigger_target_id_list = 15; * @return whether the triggerTargetIdList field is set */ public boolean hasTriggerTargetIdList() { @@ -219,7 +219,7 @@ public final class RefreshTriggerByClientCsReqOuterClass { } /** - * repeated uint32 trigger_target_id_list = 12; + * repeated uint32 trigger_target_id_list = 15; * @return this */ public RefreshTriggerByClientCsReq clearTriggerTargetIdList() { @@ -229,7 +229,7 @@ public final class RefreshTriggerByClientCsReqOuterClass { } /** - * repeated uint32 trigger_target_id_list = 12; + * 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. @@ -243,7 +243,7 @@ public final class RefreshTriggerByClientCsReqOuterClass { } /** - * repeated uint32 trigger_target_id_list = 12; + * 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 @@ -257,7 +257,7 @@ public final class RefreshTriggerByClientCsReqOuterClass { } /** - * repeated uint32 trigger_target_id_list = 12; + * repeated uint32 trigger_target_id_list = 15; * @param value the triggerTargetIdList to add * @return this */ @@ -268,7 +268,7 @@ public final class RefreshTriggerByClientCsReqOuterClass { } /** - * repeated uint32 trigger_target_id_list = 12; + * repeated uint32 trigger_target_id_list = 15; * @param values the triggerTargetIdList to add * @return this */ @@ -358,7 +358,7 @@ public final class RefreshTriggerByClientCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 32); + output.writeRawByte((byte) 112); output.writeUInt32NoTag(triggerEntityId); } if ((bitField0_ & 0x00000002) != 0) { @@ -366,12 +366,12 @@ public final class RefreshTriggerByClientCsReqOuterClass { output.writeMessageNoTag(triggerMotion); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 26); + output.writeRawByte((byte) 34); output.writeStringNoTag(triggerName); } if ((bitField0_ & 0x00000008) != 0) { for (int i = 0; i < triggerTargetIdList.length(); i++) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 120); output.writeUInt32NoTag(triggerTargetIdList.array()[i]); } } @@ -402,7 +402,7 @@ public final class RefreshTriggerByClientCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 32: { + case 112: { // triggerEntityId triggerEntityId = input.readUInt32(); bitField0_ |= 0x00000001; @@ -416,20 +416,20 @@ public final class RefreshTriggerByClientCsReqOuterClass { input.readMessage(triggerMotion); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 26) { + if (tag != 34) { break; } } - case 26: { + case 34: { // triggerName input.readString(triggerName); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 98) { + if (tag != 122) { break; } } - case 98: { + case 122: { // triggerTargetIdList [packed=true] input.readPackedUInt32(triggerTargetIdList, tag); bitField0_ |= 0x00000008; @@ -448,7 +448,7 @@ public final class RefreshTriggerByClientCsReqOuterClass { tag = input.readTag(); break; } - case 96: { + case 120: { // 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 8d9b98f..a2f6025 100644 --- a/src/generated/main/emu/lunarcore/proto/RefreshTriggerByClientScNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RefreshTriggerByClientScNotifyOuterClass.java @@ -21,17 +21,17 @@ public final class RefreshTriggerByClientScNotifyOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 trigger_entity_id = 4; + * optional uint32 trigger_entity_id = 7; */ private int triggerEntityId; /** - * optional string trigger_name = 14; + * optional string trigger_name = 1; */ private final Utf8String triggerName = Utf8String.newEmptyInstance(); /** - * repeated uint32 trigger_target_id_list = 15; + * repeated uint32 trigger_target_id_list = 5; */ private final RepeatedInt triggerTargetIdList = RepeatedInt.newEmptyInstance(); @@ -46,7 +46,7 @@ public final class RefreshTriggerByClientScNotifyOuterClass { } /** - * optional uint32 trigger_entity_id = 4; + * optional uint32 trigger_entity_id = 7; * @return whether the triggerEntityId field is set */ public boolean hasTriggerEntityId() { @@ -54,7 +54,7 @@ public final class RefreshTriggerByClientScNotifyOuterClass { } /** - * optional uint32 trigger_entity_id = 4; + * optional uint32 trigger_entity_id = 7; * @return this */ public RefreshTriggerByClientScNotify clearTriggerEntityId() { @@ -64,7 +64,7 @@ public final class RefreshTriggerByClientScNotifyOuterClass { } /** - * optional uint32 trigger_entity_id = 4; + * optional uint32 trigger_entity_id = 7; * @return the triggerEntityId */ public int getTriggerEntityId() { @@ -72,7 +72,7 @@ public final class RefreshTriggerByClientScNotifyOuterClass { } /** - * optional uint32 trigger_entity_id = 4; + * optional uint32 trigger_entity_id = 7; * @param value the triggerEntityId to set * @return this */ @@ -83,7 +83,7 @@ public final class RefreshTriggerByClientScNotifyOuterClass { } /** - * optional string trigger_name = 14; + * optional string trigger_name = 1; * @return whether the triggerName field is set */ public boolean hasTriggerName() { @@ -91,7 +91,7 @@ public final class RefreshTriggerByClientScNotifyOuterClass { } /** - * optional string trigger_name = 14; + * optional string trigger_name = 1; * @return this */ public RefreshTriggerByClientScNotify clearTriggerName() { @@ -101,7 +101,7 @@ public final class RefreshTriggerByClientScNotifyOuterClass { } /** - * optional string trigger_name = 14; + * optional string trigger_name = 1; * @return the triggerName */ public String getTriggerName() { @@ -109,7 +109,7 @@ public final class RefreshTriggerByClientScNotifyOuterClass { } /** - * optional string trigger_name = 14; + * optional string trigger_name = 1; * @return internal {@code Utf8String} representation of triggerName for reading */ public Utf8String getTriggerNameBytes() { @@ -117,7 +117,7 @@ public final class RefreshTriggerByClientScNotifyOuterClass { } /** - * optional string trigger_name = 14; + * optional string trigger_name = 1; * @return internal {@code Utf8String} representation of triggerName for modifications */ public Utf8String getMutableTriggerNameBytes() { @@ -126,7 +126,7 @@ public final class RefreshTriggerByClientScNotifyOuterClass { } /** - * optional string trigger_name = 14; + * optional string trigger_name = 1; * @param value the triggerName to set * @return this */ @@ -137,7 +137,7 @@ public final class RefreshTriggerByClientScNotifyOuterClass { } /** - * optional string trigger_name = 14; + * optional string trigger_name = 1; * @param value the triggerName to set * @return this */ @@ -148,7 +148,7 @@ public final class RefreshTriggerByClientScNotifyOuterClass { } /** - * repeated uint32 trigger_target_id_list = 15; + * repeated uint32 trigger_target_id_list = 5; * @return whether the triggerTargetIdList field is set */ public boolean hasTriggerTargetIdList() { @@ -156,7 +156,7 @@ public final class RefreshTriggerByClientScNotifyOuterClass { } /** - * repeated uint32 trigger_target_id_list = 15; + * repeated uint32 trigger_target_id_list = 5; * @return this */ public RefreshTriggerByClientScNotify clearTriggerTargetIdList() { @@ -166,7 +166,7 @@ public final class RefreshTriggerByClientScNotifyOuterClass { } /** - * repeated uint32 trigger_target_id_list = 15; + * repeated uint32 trigger_target_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. @@ -180,7 +180,7 @@ public final class RefreshTriggerByClientScNotifyOuterClass { } /** - * repeated uint32 trigger_target_id_list = 15; + * repeated uint32 trigger_target_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 @@ -194,7 +194,7 @@ public final class RefreshTriggerByClientScNotifyOuterClass { } /** - * repeated uint32 trigger_target_id_list = 15; + * repeated uint32 trigger_target_id_list = 5; * @param value the triggerTargetIdList to add * @return this */ @@ -205,7 +205,7 @@ public final class RefreshTriggerByClientScNotifyOuterClass { } /** - * repeated uint32 trigger_target_id_list = 15; + * repeated uint32 trigger_target_id_list = 5; * @param values the triggerTargetIdList to add * @return this */ @@ -288,16 +288,16 @@ public final class RefreshTriggerByClientScNotifyOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 32); + output.writeRawByte((byte) 56); output.writeUInt32NoTag(triggerEntityId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 114); + output.writeRawByte((byte) 10); output.writeStringNoTag(triggerName); } if ((bitField0_ & 0x00000004) != 0) { for (int i = 0; i < triggerTargetIdList.length(); i++) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 40); output.writeUInt32NoTag(triggerTargetIdList.array()[i]); } } @@ -325,25 +325,25 @@ public final class RefreshTriggerByClientScNotifyOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 32: { + case 56: { // triggerEntityId triggerEntityId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 114) { + if (tag != 10) { break; } } - case 114: { + case 10: { // triggerName input.readString(triggerName); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 122) { + if (tag != 42) { break; } } - case 122: { + case 42: { // triggerTargetIdList [packed=true] input.readPackedUInt32(triggerTargetIdList, tag); bitField0_ |= 0x00000004; @@ -362,7 +362,7 @@ public final class RefreshTriggerByClientScNotifyOuterClass { tag = input.readTag(); break; } - case 120: { + case 40: { // 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 303d185..5015395 100644 --- a/src/generated/main/emu/lunarcore/proto/RefreshTriggerByClientScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RefreshTriggerByClientScRspOuterClass.java @@ -20,22 +20,22 @@ public final class RefreshTriggerByClientScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 10; - */ - private int retcode; - - /** - * optional uint32 trigger_entity_id = 13; + * optional uint32 trigger_entity_id = 5; */ private int triggerEntityId; /** - * optional bool refresh_trigger = 8; + * optional uint32 retcode = 6; + */ + private int retcode; + + /** + * optional bool refresh_trigger = 11; */ private boolean refreshTrigger; /** - * optional string trigger_name = 12; + * optional string trigger_name = 9; */ private final Utf8String triggerName = Utf8String.newEmptyInstance(); @@ -50,62 +50,25 @@ public final class RefreshTriggerByClientScRspOuterClass { } /** - * optional uint32 retcode = 10; - * @return whether the retcode field is set + * optional uint32 trigger_entity_id = 5; + * @return whether the triggerEntityId field is set */ - public boolean hasRetcode() { + public boolean hasTriggerEntityId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 retcode = 10; - * @return this - */ - public RefreshTriggerByClientScRsp clearRetcode() { - bitField0_ &= ~0x00000001; - retcode = 0; - return this; - } - - /** - * optional uint32 retcode = 10; - * @return the retcode - */ - public int getRetcode() { - return retcode; - } - - /** - * optional uint32 retcode = 10; - * @param value the retcode to set - * @return this - */ - public RefreshTriggerByClientScRsp setRetcode(final int value) { - bitField0_ |= 0x00000001; - retcode = value; - return this; - } - - /** - * optional uint32 trigger_entity_id = 13; - * @return whether the triggerEntityId field is set - */ - public boolean hasTriggerEntityId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 trigger_entity_id = 13; + * optional uint32 trigger_entity_id = 5; * @return this */ public RefreshTriggerByClientScRsp clearTriggerEntityId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; triggerEntityId = 0; return this; } /** - * optional uint32 trigger_entity_id = 13; + * optional uint32 trigger_entity_id = 5; * @return the triggerEntityId */ public int getTriggerEntityId() { @@ -113,18 +76,55 @@ public final class RefreshTriggerByClientScRspOuterClass { } /** - * optional uint32 trigger_entity_id = 13; + * optional uint32 trigger_entity_id = 5; * @param value the triggerEntityId to set * @return this */ public RefreshTriggerByClientScRsp setTriggerEntityId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; triggerEntityId = value; return this; } /** - * optional bool refresh_trigger = 8; + * optional uint32 retcode = 6; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 retcode = 6; + * @return this + */ + public RefreshTriggerByClientScRsp clearRetcode() { + bitField0_ &= ~0x00000002; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 6; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 6; + * @param value the retcode to set + * @return this + */ + public RefreshTriggerByClientScRsp setRetcode(final int value) { + bitField0_ |= 0x00000002; + retcode = value; + return this; + } + + /** + * optional bool refresh_trigger = 11; * @return whether the refreshTrigger field is set */ public boolean hasRefreshTrigger() { @@ -132,7 +132,7 @@ public final class RefreshTriggerByClientScRspOuterClass { } /** - * optional bool refresh_trigger = 8; + * optional bool refresh_trigger = 11; * @return this */ public RefreshTriggerByClientScRsp clearRefreshTrigger() { @@ -142,7 +142,7 @@ public final class RefreshTriggerByClientScRspOuterClass { } /** - * optional bool refresh_trigger = 8; + * optional bool refresh_trigger = 11; * @return the refreshTrigger */ public boolean getRefreshTrigger() { @@ -150,7 +150,7 @@ public final class RefreshTriggerByClientScRspOuterClass { } /** - * optional bool refresh_trigger = 8; + * optional bool refresh_trigger = 11; * @param value the refreshTrigger to set * @return this */ @@ -161,7 +161,7 @@ public final class RefreshTriggerByClientScRspOuterClass { } /** - * optional string trigger_name = 12; + * optional string trigger_name = 9; * @return whether the triggerName field is set */ public boolean hasTriggerName() { @@ -169,7 +169,7 @@ public final class RefreshTriggerByClientScRspOuterClass { } /** - * optional string trigger_name = 12; + * optional string trigger_name = 9; * @return this */ public RefreshTriggerByClientScRsp clearTriggerName() { @@ -179,7 +179,7 @@ public final class RefreshTriggerByClientScRspOuterClass { } /** - * optional string trigger_name = 12; + * optional string trigger_name = 9; * @return the triggerName */ public String getTriggerName() { @@ -187,7 +187,7 @@ public final class RefreshTriggerByClientScRspOuterClass { } /** - * optional string trigger_name = 12; + * optional string trigger_name = 9; * @return internal {@code Utf8String} representation of triggerName for reading */ public Utf8String getTriggerNameBytes() { @@ -195,7 +195,7 @@ public final class RefreshTriggerByClientScRspOuterClass { } /** - * optional string trigger_name = 12; + * optional string trigger_name = 9; * @return internal {@code Utf8String} representation of triggerName for modifications */ public Utf8String getMutableTriggerNameBytes() { @@ -204,7 +204,7 @@ public final class RefreshTriggerByClientScRspOuterClass { } /** - * optional string trigger_name = 12; + * optional string trigger_name = 9; * @param value the triggerName to set * @return this */ @@ -215,7 +215,7 @@ public final class RefreshTriggerByClientScRspOuterClass { } /** - * optional string trigger_name = 12; + * optional string trigger_name = 9; * @param value the triggerName to set * @return this */ @@ -230,8 +230,8 @@ public final class RefreshTriggerByClientScRspOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - retcode = other.retcode; triggerEntityId = other.triggerEntityId; + retcode = other.retcode; refreshTrigger = other.refreshTrigger; triggerName.copyFrom(other.triggerName); } @@ -244,12 +244,12 @@ public final class RefreshTriggerByClientScRspOuterClass { return this; } cachedSize = -1; - if (other.hasRetcode()) { - setRetcode(other.retcode); - } if (other.hasTriggerEntityId()) { setTriggerEntityId(other.triggerEntityId); } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } if (other.hasRefreshTrigger()) { setRefreshTrigger(other.refreshTrigger); } @@ -266,8 +266,8 @@ public final class RefreshTriggerByClientScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - retcode = 0; triggerEntityId = 0; + retcode = 0; refreshTrigger = false; triggerName.clear(); return this; @@ -294,8 +294,8 @@ public final class RefreshTriggerByClientScRspOuterClass { } RefreshTriggerByClientScRsp other = (RefreshTriggerByClientScRsp) o; return bitField0_ == other.bitField0_ - && (!hasRetcode() || retcode == other.retcode) && (!hasTriggerEntityId() || triggerEntityId == other.triggerEntityId) + && (!hasRetcode() || retcode == other.retcode) && (!hasRefreshTrigger() || refreshTrigger == other.refreshTrigger) && (!hasTriggerName() || triggerName.equals(other.triggerName)); } @@ -303,19 +303,19 @@ public final class RefreshTriggerByClientScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 80); - output.writeUInt32NoTag(retcode); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 40); output.writeUInt32NoTag(triggerEntityId); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(retcode); + } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 88); output.writeBoolNoTag(refreshTrigger); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 98); + output.writeRawByte((byte) 74); output.writeStringNoTag(triggerName); } } @@ -324,10 +324,10 @@ public final class RefreshTriggerByClientScRspOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(triggerEntityId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(triggerEntityId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000004) != 0) { size += 2; @@ -345,34 +345,34 @@ public final class RefreshTriggerByClientScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 80: { - // retcode - retcode = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 104) { - break; - } - } - case 104: { + case 40: { // triggerEntityId triggerEntityId = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 64) { + if (tag != 48) { break; } } - case 64: { + case 48: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { // refreshTrigger refreshTrigger = input.readBool(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 98) { + if (tag != 74) { break; } } - case 98: { + case 74: { // triggerName input.readString(triggerName); bitField0_ |= 0x00000008; @@ -399,10 +399,10 @@ public final class RefreshTriggerByClientScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.triggerEntityId, triggerEntityId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.triggerEntityId, triggerEntityId); + output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000004) != 0) { output.writeBool(FieldNames.refreshTrigger, refreshTrigger); @@ -420,10 +420,11 @@ public final class RefreshTriggerByClientScRspOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - 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_ |= 0x00000001; } } else { @@ -431,11 +432,10 @@ public final class RefreshTriggerByClientScRspOuterClass { } break; } - 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_ |= 0x00000002; } } else { @@ -521,10 +521,10 @@ public final class RefreshTriggerByClientScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName retcode = FieldName.forField("retcode"); - static final FieldName triggerEntityId = FieldName.forField("triggerEntityId", "trigger_entity_id"); + static final FieldName retcode = FieldName.forField("retcode"); + 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/RelicArchiveOuterClass.java b/src/generated/main/emu/lunarcore/proto/RelicArchiveOuterClass.java index f6a392e..a59c059 100644 --- a/src/generated/main/emu/lunarcore/proto/RelicArchiveOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RelicArchiveOuterClass.java @@ -24,7 +24,7 @@ public final class RelicArchiveOuterClass { private int slot; /** - * optional uint32 relic_id = 12; + * optional uint32 relic_id = 7; */ private int relicId; @@ -76,7 +76,7 @@ public final class RelicArchiveOuterClass { } /** - * optional uint32 relic_id = 12; + * optional uint32 relic_id = 7; * @return whether the relicId field is set */ public boolean hasRelicId() { @@ -84,7 +84,7 @@ public final class RelicArchiveOuterClass { } /** - * optional uint32 relic_id = 12; + * optional uint32 relic_id = 7; * @return this */ public RelicArchive clearRelicId() { @@ -94,7 +94,7 @@ public final class RelicArchiveOuterClass { } /** - * optional uint32 relic_id = 12; + * optional uint32 relic_id = 7; * @return the relicId */ public int getRelicId() { @@ -102,7 +102,7 @@ public final class RelicArchiveOuterClass { } /** - * optional uint32 relic_id = 12; + * optional uint32 relic_id = 7; * @param value the relicId to set * @return this */ @@ -181,7 +181,7 @@ public final class RelicArchiveOuterClass { output.writeUInt32NoTag(slot); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 56); output.writeUInt32NoTag(relicId); } } @@ -210,11 +210,11 @@ public final class RelicArchiveOuterClass { slot = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 96) { + if (tag != 56) { break; } } - case 96: { + case 56: { // relicId relicId = input.readUInt32(); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/RelicOuterClass.java b/src/generated/main/emu/lunarcore/proto/RelicOuterClass.java index 307d5ed..0024c3a 100644 --- a/src/generated/main/emu/lunarcore/proto/RelicOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RelicOuterClass.java @@ -20,42 +20,42 @@ public final class RelicOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 exp = 3; - */ - private int exp; - - /** - * optional uint32 main_affix_id = 4; - */ - private int mainAffixId; - - /** - * optional uint32 base_avatar_id = 5; - */ - private int baseAvatarId; - - /** - * optional uint32 unique_id = 9; - */ - private int uniqueId; - - /** - * optional uint32 tid = 12; + * optional uint32 tid = 2; */ private int tid; /** - * optional uint32 level = 15; + * optional uint32 level = 3; */ private int level; /** - * optional bool is_protected = 13; + * optional uint32 unique_id = 5; + */ + private int uniqueId; + + /** + * optional uint32 base_avatar_id = 7; + */ + private int baseAvatarId; + + /** + * optional uint32 exp = 10; + */ + private int exp; + + /** + * optional uint32 main_affix_id = 14; + */ + private int mainAffixId; + + /** + * optional bool is_protected = 11; */ private boolean isProtected; /** - * repeated .RelicAffix sub_affix_list = 10; + * repeated .RelicAffix sub_affix_list = 8; */ private final RepeatedMessage subAffixList = RepeatedMessage.newEmptyInstance(RelicAffixOuterClass.RelicAffix.getFactory()); @@ -70,173 +70,25 @@ public final class RelicOuterClass { } /** - * optional uint32 exp = 3; - * @return whether the exp field is set + * optional uint32 tid = 2; + * @return whether the tid field is set */ - public boolean hasExp() { + public boolean hasTid() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 exp = 3; - * @return this - */ - public Relic clearExp() { - bitField0_ &= ~0x00000001; - exp = 0; - return this; - } - - /** - * optional uint32 exp = 3; - * @return the exp - */ - public int getExp() { - return exp; - } - - /** - * optional uint32 exp = 3; - * @param value the exp to set - * @return this - */ - public Relic setExp(final int value) { - bitField0_ |= 0x00000001; - exp = value; - return this; - } - - /** - * optional uint32 main_affix_id = 4; - * @return whether the mainAffixId field is set - */ - public boolean hasMainAffixId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 main_affix_id = 4; - * @return this - */ - public Relic clearMainAffixId() { - bitField0_ &= ~0x00000002; - mainAffixId = 0; - return this; - } - - /** - * optional uint32 main_affix_id = 4; - * @return the mainAffixId - */ - public int getMainAffixId() { - return mainAffixId; - } - - /** - * optional uint32 main_affix_id = 4; - * @param value the mainAffixId to set - * @return this - */ - public Relic setMainAffixId(final int value) { - bitField0_ |= 0x00000002; - mainAffixId = value; - return this; - } - - /** - * optional uint32 base_avatar_id = 5; - * @return whether the baseAvatarId field is set - */ - public boolean hasBaseAvatarId() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 base_avatar_id = 5; - * @return this - */ - public Relic clearBaseAvatarId() { - bitField0_ &= ~0x00000004; - baseAvatarId = 0; - return this; - } - - /** - * optional uint32 base_avatar_id = 5; - * @return the baseAvatarId - */ - public int getBaseAvatarId() { - return baseAvatarId; - } - - /** - * optional uint32 base_avatar_id = 5; - * @param value the baseAvatarId to set - * @return this - */ - public Relic setBaseAvatarId(final int value) { - bitField0_ |= 0x00000004; - baseAvatarId = value; - return this; - } - - /** - * optional uint32 unique_id = 9; - * @return whether the uniqueId field is set - */ - public boolean hasUniqueId() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional uint32 unique_id = 9; - * @return this - */ - public Relic clearUniqueId() { - bitField0_ &= ~0x00000008; - uniqueId = 0; - return this; - } - - /** - * optional uint32 unique_id = 9; - * @return the uniqueId - */ - public int getUniqueId() { - return uniqueId; - } - - /** - * optional uint32 unique_id = 9; - * @param value the uniqueId to set - * @return this - */ - public Relic setUniqueId(final int value) { - bitField0_ |= 0x00000008; - uniqueId = value; - return this; - } - - /** - * optional uint32 tid = 12; - * @return whether the tid field is set - */ - public boolean hasTid() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - * optional uint32 tid = 12; + * optional uint32 tid = 2; * @return this */ public Relic clearTid() { - bitField0_ &= ~0x00000010; + bitField0_ &= ~0x00000001; tid = 0; return this; } /** - * optional uint32 tid = 12; + * optional uint32 tid = 2; * @return the tid */ public int getTid() { @@ -244,36 +96,36 @@ public final class RelicOuterClass { } /** - * optional uint32 tid = 12; + * optional uint32 tid = 2; * @param value the tid to set * @return this */ public Relic setTid(final int value) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000001; tid = value; return this; } /** - * optional uint32 level = 15; + * optional uint32 level = 3; * @return whether the level field is set */ public boolean hasLevel() { - return (bitField0_ & 0x00000020) != 0; + return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 level = 15; + * optional uint32 level = 3; * @return this */ public Relic clearLevel() { - bitField0_ &= ~0x00000020; + bitField0_ &= ~0x00000002; level = 0; return this; } /** - * optional uint32 level = 15; + * optional uint32 level = 3; * @return the level */ public int getLevel() { @@ -281,18 +133,166 @@ public final class RelicOuterClass { } /** - * optional uint32 level = 15; + * optional uint32 level = 3; * @param value the level to set * @return this */ public Relic setLevel(final int value) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000002; level = value; return this; } /** - * optional bool is_protected = 13; + * optional uint32 unique_id = 5; + * @return whether the uniqueId field is set + */ + public boolean hasUniqueId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 unique_id = 5; + * @return this + */ + public Relic clearUniqueId() { + bitField0_ &= ~0x00000004; + uniqueId = 0; + return this; + } + + /** + * optional uint32 unique_id = 5; + * @return the uniqueId + */ + public int getUniqueId() { + return uniqueId; + } + + /** + * optional uint32 unique_id = 5; + * @param value the uniqueId to set + * @return this + */ + public Relic setUniqueId(final int value) { + bitField0_ |= 0x00000004; + uniqueId = value; + return this; + } + + /** + * optional uint32 base_avatar_id = 7; + * @return whether the baseAvatarId field is set + */ + public boolean hasBaseAvatarId() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 base_avatar_id = 7; + * @return this + */ + public Relic clearBaseAvatarId() { + bitField0_ &= ~0x00000008; + baseAvatarId = 0; + return this; + } + + /** + * optional uint32 base_avatar_id = 7; + * @return the baseAvatarId + */ + public int getBaseAvatarId() { + return baseAvatarId; + } + + /** + * optional uint32 base_avatar_id = 7; + * @param value the baseAvatarId to set + * @return this + */ + public Relic setBaseAvatarId(final int value) { + bitField0_ |= 0x00000008; + baseAvatarId = value; + return this; + } + + /** + * optional uint32 exp = 10; + * @return whether the exp field is set + */ + public boolean hasExp() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 exp = 10; + * @return this + */ + public Relic clearExp() { + bitField0_ &= ~0x00000010; + exp = 0; + return this; + } + + /** + * optional uint32 exp = 10; + * @return the exp + */ + public int getExp() { + return exp; + } + + /** + * optional uint32 exp = 10; + * @param value the exp to set + * @return this + */ + public Relic setExp(final int value) { + bitField0_ |= 0x00000010; + exp = value; + return this; + } + + /** + * optional uint32 main_affix_id = 14; + * @return whether the mainAffixId field is set + */ + public boolean hasMainAffixId() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional uint32 main_affix_id = 14; + * @return this + */ + public Relic clearMainAffixId() { + bitField0_ &= ~0x00000020; + mainAffixId = 0; + return this; + } + + /** + * optional uint32 main_affix_id = 14; + * @return the mainAffixId + */ + public int getMainAffixId() { + return mainAffixId; + } + + /** + * optional uint32 main_affix_id = 14; + * @param value the mainAffixId to set + * @return this + */ + public Relic setMainAffixId(final int value) { + bitField0_ |= 0x00000020; + mainAffixId = value; + return this; + } + + /** + * optional bool is_protected = 11; * @return whether the isProtected field is set */ public boolean hasIsProtected() { @@ -300,7 +300,7 @@ public final class RelicOuterClass { } /** - * optional bool is_protected = 13; + * optional bool is_protected = 11; * @return this */ public Relic clearIsProtected() { @@ -310,7 +310,7 @@ public final class RelicOuterClass { } /** - * optional bool is_protected = 13; + * optional bool is_protected = 11; * @return the isProtected */ public boolean getIsProtected() { @@ -318,7 +318,7 @@ public final class RelicOuterClass { } /** - * optional bool is_protected = 13; + * optional bool is_protected = 11; * @param value the isProtected to set * @return this */ @@ -329,7 +329,7 @@ public final class RelicOuterClass { } /** - * repeated .RelicAffix sub_affix_list = 10; + * repeated .RelicAffix sub_affix_list = 8; * @return whether the subAffixList field is set */ public boolean hasSubAffixList() { @@ -337,7 +337,7 @@ public final class RelicOuterClass { } /** - * repeated .RelicAffix sub_affix_list = 10; + * repeated .RelicAffix sub_affix_list = 8; * @return this */ public Relic clearSubAffixList() { @@ -347,7 +347,7 @@ public final class RelicOuterClass { } /** - * repeated .RelicAffix sub_affix_list = 10; + * repeated .RelicAffix sub_affix_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. @@ -361,7 +361,7 @@ public final class RelicOuterClass { } /** - * repeated .RelicAffix sub_affix_list = 10; + * repeated .RelicAffix sub_affix_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 @@ -375,7 +375,7 @@ public final class RelicOuterClass { } /** - * repeated .RelicAffix sub_affix_list = 10; + * repeated .RelicAffix sub_affix_list = 8; * @param value the subAffixList to add * @return this */ @@ -386,7 +386,7 @@ public final class RelicOuterClass { } /** - * repeated .RelicAffix sub_affix_list = 10; + * repeated .RelicAffix sub_affix_list = 8; * @param values the subAffixList to add * @return this */ @@ -401,12 +401,12 @@ public final class RelicOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - exp = other.exp; - mainAffixId = other.mainAffixId; - baseAvatarId = other.baseAvatarId; - uniqueId = other.uniqueId; tid = other.tid; level = other.level; + uniqueId = other.uniqueId; + baseAvatarId = other.baseAvatarId; + exp = other.exp; + mainAffixId = other.mainAffixId; isProtected = other.isProtected; subAffixList.copyFrom(other.subAffixList); } @@ -419,24 +419,24 @@ public final class RelicOuterClass { return this; } cachedSize = -1; - if (other.hasExp()) { - setExp(other.exp); - } - if (other.hasMainAffixId()) { - setMainAffixId(other.mainAffixId); - } - if (other.hasBaseAvatarId()) { - setBaseAvatarId(other.baseAvatarId); - } - if (other.hasUniqueId()) { - setUniqueId(other.uniqueId); - } if (other.hasTid()) { setTid(other.tid); } if (other.hasLevel()) { setLevel(other.level); } + if (other.hasUniqueId()) { + setUniqueId(other.uniqueId); + } + if (other.hasBaseAvatarId()) { + setBaseAvatarId(other.baseAvatarId); + } + if (other.hasExp()) { + setExp(other.exp); + } + if (other.hasMainAffixId()) { + setMainAffixId(other.mainAffixId); + } if (other.hasIsProtected()) { setIsProtected(other.isProtected); } @@ -453,12 +453,12 @@ public final class RelicOuterClass { } cachedSize = -1; bitField0_ = 0; - exp = 0; - mainAffixId = 0; - baseAvatarId = 0; - uniqueId = 0; tid = 0; level = 0; + uniqueId = 0; + baseAvatarId = 0; + exp = 0; + mainAffixId = 0; isProtected = false; subAffixList.clear(); return this; @@ -485,12 +485,12 @@ public final class RelicOuterClass { } Relic other = (Relic) o; return bitField0_ == other.bitField0_ - && (!hasExp() || exp == other.exp) - && (!hasMainAffixId() || mainAffixId == other.mainAffixId) - && (!hasBaseAvatarId() || baseAvatarId == other.baseAvatarId) - && (!hasUniqueId() || uniqueId == other.uniqueId) && (!hasTid() || tid == other.tid) && (!hasLevel() || level == other.level) + && (!hasUniqueId() || uniqueId == other.uniqueId) + && (!hasBaseAvatarId() || baseAvatarId == other.baseAvatarId) + && (!hasExp() || exp == other.exp) + && (!hasMainAffixId() || mainAffixId == other.mainAffixId) && (!hasIsProtected() || isProtected == other.isProtected) && (!hasSubAffixList() || subAffixList.equals(other.subAffixList)); } @@ -498,36 +498,36 @@ public final class RelicOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(exp); + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(tid); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 32); - output.writeUInt32NoTag(mainAffixId); + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(level); } if ((bitField0_ & 0x00000004) != 0) { output.writeRawByte((byte) 40); - output.writeUInt32NoTag(baseAvatarId); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 72); output.writeUInt32NoTag(uniqueId); } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(baseAvatarId); + } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 96); - output.writeUInt32NoTag(tid); + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(exp); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 120); - output.writeUInt32NoTag(level); + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(mainAffixId); } if ((bitField0_ & 0x00000040) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 88); output.writeBoolNoTag(isProtected); } if ((bitField0_ & 0x00000080) != 0) { for (int i = 0; i < subAffixList.length(); i++) { - output.writeRawByte((byte) 82); + output.writeRawByte((byte) 66); output.writeMessageNoTag(subAffixList.get(i)); } } @@ -537,23 +537,23 @@ public final class RelicOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(exp); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(mainAffixId); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); - } - if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(uniqueId); - } - if ((bitField0_ & 0x00000010) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(tid); } - if ((bitField0_ & 0x00000020) != 0) { + if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(level); } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(uniqueId); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(exp); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(mainAffixId); + } if ((bitField0_ & 0x00000040) != 0) { size += 2; } @@ -570,18 +570,18 @@ public final class RelicOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 24: { - // exp - exp = input.readUInt32(); + case 16: { + // tid + tid = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 32) { + if (tag != 24) { break; } } - case 32: { - // mainAffixId - mainAffixId = input.readUInt32(); + case 24: { + // level + level = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 40) { @@ -589,51 +589,51 @@ public final class RelicOuterClass { } } case 40: { - // baseAvatarId - baseAvatarId = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 72) { - break; - } - } - case 72: { // uniqueId uniqueId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // baseAvatarId + baseAvatarId = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 96) { + if (tag != 80) { break; } } - case 96: { - // tid - tid = input.readUInt32(); + case 80: { + // exp + exp = input.readUInt32(); bitField0_ |= 0x00000010; tag = input.readTag(); - if (tag != 120) { + if (tag != 112) { break; } } - case 120: { - // level - level = input.readUInt32(); + case 112: { + // mainAffixId + mainAffixId = input.readUInt32(); bitField0_ |= 0x00000020; tag = input.readTag(); - if (tag != 104) { + if (tag != 88) { break; } } - case 104: { + case 88: { // isProtected isProtected = input.readBool(); bitField0_ |= 0x00000040; tag = input.readTag(); - if (tag != 82) { + if (tag != 66) { break; } } - case 82: { + case 66: { // subAffixList tag = input.readRepeatedMessage(subAffixList, tag); bitField0_ |= 0x00000080; @@ -659,23 +659,23 @@ public final class RelicOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.exp, exp); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.mainAffixId, mainAffixId); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.baseAvatarId, baseAvatarId); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.uniqueId, uniqueId); - } - if ((bitField0_ & 0x00000010) != 0) { output.writeUInt32(FieldNames.tid, tid); } - if ((bitField0_ & 0x00000020) != 0) { + if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.level, level); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.uniqueId, uniqueId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.baseAvatarId, baseAvatarId); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.exp, exp); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeUInt32(FieldNames.mainAffixId, mainAffixId); + } if ((bitField0_ & 0x00000040) != 0) { output.writeBool(FieldNames.isProtected, isProtected); } @@ -692,10 +692,10 @@ public final class RelicOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 100893: { - if (input.isAtField(FieldNames.exp)) { + case 114831: { + if (input.isAtField(FieldNames.tid)) { if (!input.trySkipNullValue()) { - exp = input.readUInt32(); + tid = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -703,11 +703,10 @@ public final class RelicOuterClass { } 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_ |= 0x00000002; } } else { @@ -715,23 +714,23 @@ public final class RelicOuterClass { } break; } - case 118022725: - case -1756826157: { - if (input.isAtField(FieldNames.baseAvatarId)) { - if (!input.trySkipNullValue()) { - baseAvatarId = input.readUInt32(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } case -294460212: case -538310583: { if (input.isAtField(FieldNames.uniqueId)) { if (!input.trySkipNullValue()) { uniqueId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 118022725: + case -1756826157: { + if (input.isAtField(FieldNames.baseAvatarId)) { + if (!input.trySkipNullValue()) { + baseAvatarId = input.readUInt32(); bitField0_ |= 0x00000008; } } else { @@ -739,10 +738,10 @@ public final class RelicOuterClass { } break; } - case 114831: { - if (input.isAtField(FieldNames.tid)) { + case 100893: { + if (input.isAtField(FieldNames.exp)) { if (!input.trySkipNullValue()) { - tid = input.readUInt32(); + exp = input.readUInt32(); bitField0_ |= 0x00000010; } } else { @@ -750,10 +749,11 @@ public final class RelicOuterClass { } break; } - case 102865796: { - if (input.isAtField(FieldNames.level)) { + case -1973876974: + case -1426712144: { + if (input.isAtField(FieldNames.mainAffixId)) { if (!input.trySkipNullValue()) { - level = input.readUInt32(); + mainAffixId = input.readUInt32(); bitField0_ |= 0x00000020; } } else { @@ -837,18 +837,18 @@ public final class RelicOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName exp = FieldName.forField("exp"); - - static final FieldName mainAffixId = FieldName.forField("mainAffixId", "main_affix_id"); - - static final FieldName baseAvatarId = FieldName.forField("baseAvatarId", "base_avatar_id"); - - 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 uniqueId = FieldName.forField("uniqueId", "unique_id"); + + static final FieldName baseAvatarId = FieldName.forField("baseAvatarId", "base_avatar_id"); + + static final FieldName exp = FieldName.forField("exp"); + + static final FieldName mainAffixId = FieldName.forField("mainAffixId", "main_affix_id"); + static final FieldName isProtected = FieldName.forField("isProtected", "is_protected"); static final FieldName subAffixList = FieldName.forField("subAffixList", "sub_affix_list"); diff --git a/src/generated/main/emu/lunarcore/proto/RelicParamOuterClass.java b/src/generated/main/emu/lunarcore/proto/RelicParamOuterClass.java index 5bbbbf6..c2a496a 100644 --- a/src/generated/main/emu/lunarcore/proto/RelicParamOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RelicParamOuterClass.java @@ -19,12 +19,12 @@ public final class RelicParamOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 slot = 3; + * optional uint32 slot = 8; */ private int slot; /** - * optional uint32 relic_unique_id = 15; + * optional uint32 relic_unique_id = 13; */ private int relicUniqueId; @@ -39,7 +39,7 @@ public final class RelicParamOuterClass { } /** - * optional uint32 slot = 3; + * optional uint32 slot = 8; * @return whether the slot field is set */ public boolean hasSlot() { @@ -47,7 +47,7 @@ public final class RelicParamOuterClass { } /** - * optional uint32 slot = 3; + * optional uint32 slot = 8; * @return this */ public RelicParam clearSlot() { @@ -57,7 +57,7 @@ public final class RelicParamOuterClass { } /** - * optional uint32 slot = 3; + * optional uint32 slot = 8; * @return the slot */ public int getSlot() { @@ -65,7 +65,7 @@ public final class RelicParamOuterClass { } /** - * optional uint32 slot = 3; + * optional uint32 slot = 8; * @param value the slot to set * @return this */ @@ -76,7 +76,7 @@ public final class RelicParamOuterClass { } /** - * optional uint32 relic_unique_id = 15; + * optional uint32 relic_unique_id = 13; * @return whether the relicUniqueId field is set */ public boolean hasRelicUniqueId() { @@ -84,7 +84,7 @@ public final class RelicParamOuterClass { } /** - * optional uint32 relic_unique_id = 15; + * optional uint32 relic_unique_id = 13; * @return this */ public RelicParam clearRelicUniqueId() { @@ -94,7 +94,7 @@ public final class RelicParamOuterClass { } /** - * optional uint32 relic_unique_id = 15; + * optional uint32 relic_unique_id = 13; * @return the relicUniqueId */ public int getRelicUniqueId() { @@ -102,7 +102,7 @@ public final class RelicParamOuterClass { } /** - * optional uint32 relic_unique_id = 15; + * optional uint32 relic_unique_id = 13; * @param value the relicUniqueId to set * @return this */ @@ -177,11 +177,11 @@ public final class RelicParamOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 64); output.writeUInt32NoTag(slot); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 104); output.writeUInt32NoTag(relicUniqueId); } } @@ -205,16 +205,16 @@ public final class RelicParamOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 24: { + case 64: { // slot slot = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 120) { + if (tag != 104) { break; } } - case 120: { + case 104: { // 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 b24b0ac..84635cf 100644 --- a/src/generated/main/emu/lunarcore/proto/ReplaceLineupCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ReplaceLineupCsReqOuterClass.java @@ -20,32 +20,32 @@ public final class ReplaceLineupCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 index = 9; + * optional uint32 plane_id = 3; + */ + private int planeId; + + /** + * optional uint32 index = 7; */ private int index; /** - * optional uint32 leader_slot = 10; + * optional uint32 leader_slot = 14; */ private int leaderSlot; - /** - * optional uint32 plane_id = 12; - */ - private int planeId; - /** * optional .ExtraLineupType extra_lineup_type = 4; */ private int extraLineupType; /** - * optional bool is_virtual = 5; + * optional bool is_virtual = 8; */ private boolean isVirtual; /** - * repeated .LineupSlotData slots = 11; + * repeated .LineupSlotData slots = 1; */ private final RepeatedMessage slots = RepeatedMessage.newEmptyInstance(LineupSlotDataOuterClass.LineupSlotData.getFactory()); @@ -60,99 +60,25 @@ public final class ReplaceLineupCsReqOuterClass { } /** - * optional uint32 index = 9; - * @return whether the index field is set + * optional uint32 plane_id = 3; + * @return whether the planeId field is set */ - public boolean hasIndex() { + public boolean hasPlaneId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 index = 9; - * @return this - */ - public ReplaceLineupCsReq clearIndex() { - bitField0_ &= ~0x00000001; - index = 0; - return this; - } - - /** - * optional uint32 index = 9; - * @return the index - */ - public int getIndex() { - return index; - } - - /** - * optional uint32 index = 9; - * @param value the index to set - * @return this - */ - public ReplaceLineupCsReq setIndex(final int value) { - bitField0_ |= 0x00000001; - index = value; - return this; - } - - /** - * optional uint32 leader_slot = 10; - * @return whether the leaderSlot field is set - */ - public boolean hasLeaderSlot() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 leader_slot = 10; - * @return this - */ - public ReplaceLineupCsReq clearLeaderSlot() { - bitField0_ &= ~0x00000002; - leaderSlot = 0; - return this; - } - - /** - * optional uint32 leader_slot = 10; - * @return the leaderSlot - */ - public int getLeaderSlot() { - return leaderSlot; - } - - /** - * optional uint32 leader_slot = 10; - * @param value the leaderSlot to set - * @return this - */ - public ReplaceLineupCsReq setLeaderSlot(final int value) { - bitField0_ |= 0x00000002; - leaderSlot = value; - return this; - } - - /** - * optional uint32 plane_id = 12; - * @return whether the planeId field is set - */ - public boolean hasPlaneId() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 plane_id = 12; + * optional uint32 plane_id = 3; * @return this */ public ReplaceLineupCsReq clearPlaneId() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000001; planeId = 0; return this; } /** - * optional uint32 plane_id = 12; + * optional uint32 plane_id = 3; * @return the planeId */ public int getPlaneId() { @@ -160,16 +86,90 @@ public final class ReplaceLineupCsReqOuterClass { } /** - * optional uint32 plane_id = 12; + * optional uint32 plane_id = 3; * @param value the planeId to set * @return this */ public ReplaceLineupCsReq setPlaneId(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; planeId = value; return this; } + /** + * optional uint32 index = 7; + * @return whether the index field is set + */ + public boolean hasIndex() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 index = 7; + * @return this + */ + public ReplaceLineupCsReq clearIndex() { + bitField0_ &= ~0x00000002; + index = 0; + return this; + } + + /** + * optional uint32 index = 7; + * @return the index + */ + public int getIndex() { + return index; + } + + /** + * optional uint32 index = 7; + * @param value the index to set + * @return this + */ + public ReplaceLineupCsReq setIndex(final int value) { + bitField0_ |= 0x00000002; + index = value; + return this; + } + + /** + * optional uint32 leader_slot = 14; + * @return whether the leaderSlot field is set + */ + public boolean hasLeaderSlot() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 leader_slot = 14; + * @return this + */ + public ReplaceLineupCsReq clearLeaderSlot() { + bitField0_ &= ~0x00000004; + leaderSlot = 0; + return this; + } + + /** + * optional uint32 leader_slot = 14; + * @return the leaderSlot + */ + public int getLeaderSlot() { + return leaderSlot; + } + + /** + * optional uint32 leader_slot = 14; + * @param value the leaderSlot to set + * @return this + */ + public ReplaceLineupCsReq setLeaderSlot(final int value) { + bitField0_ |= 0x00000004; + leaderSlot = value; + return this; + } + /** * optional .ExtraLineupType extra_lineup_type = 4; * @return whether the extraLineupType field is set @@ -234,7 +234,7 @@ public final class ReplaceLineupCsReqOuterClass { } /** - * optional bool is_virtual = 5; + * optional bool is_virtual = 8; * @return whether the isVirtual field is set */ public boolean hasIsVirtual() { @@ -242,7 +242,7 @@ public final class ReplaceLineupCsReqOuterClass { } /** - * optional bool is_virtual = 5; + * optional bool is_virtual = 8; * @return this */ public ReplaceLineupCsReq clearIsVirtual() { @@ -252,7 +252,7 @@ public final class ReplaceLineupCsReqOuterClass { } /** - * optional bool is_virtual = 5; + * optional bool is_virtual = 8; * @return the isVirtual */ public boolean getIsVirtual() { @@ -260,7 +260,7 @@ public final class ReplaceLineupCsReqOuterClass { } /** - * optional bool is_virtual = 5; + * optional bool is_virtual = 8; * @param value the isVirtual to set * @return this */ @@ -271,7 +271,7 @@ public final class ReplaceLineupCsReqOuterClass { } /** - * repeated .LineupSlotData slots = 11; + * repeated .LineupSlotData slots = 1; * @return whether the slots field is set */ public boolean hasSlots() { @@ -279,7 +279,7 @@ public final class ReplaceLineupCsReqOuterClass { } /** - * repeated .LineupSlotData slots = 11; + * repeated .LineupSlotData slots = 1; * @return this */ public ReplaceLineupCsReq clearSlots() { @@ -289,7 +289,7 @@ public final class ReplaceLineupCsReqOuterClass { } /** - * repeated .LineupSlotData slots = 11; + * repeated .LineupSlotData slots = 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. @@ -303,7 +303,7 @@ public final class ReplaceLineupCsReqOuterClass { } /** - * repeated .LineupSlotData slots = 11; + * repeated .LineupSlotData slots = 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 @@ -317,7 +317,7 @@ public final class ReplaceLineupCsReqOuterClass { } /** - * repeated .LineupSlotData slots = 11; + * repeated .LineupSlotData slots = 1; * @param value the slots to add * @return this */ @@ -328,7 +328,7 @@ public final class ReplaceLineupCsReqOuterClass { } /** - * repeated .LineupSlotData slots = 11; + * repeated .LineupSlotData slots = 1; * @param values the slots to add * @return this */ @@ -343,9 +343,9 @@ public final class ReplaceLineupCsReqOuterClass { 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 final class ReplaceLineupCsReqOuterClass { 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 final class ReplaceLineupCsReqOuterClass { } cachedSize = -1; bitField0_ = 0; + planeId = 0; index = 0; leaderSlot = 0; - planeId = 0; extraLineupType = 0; isVirtual = false; slots.clear(); @@ -417,9 +417,9 @@ public final class ReplaceLineupCsReqOuterClass { } 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 final class ReplaceLineupCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 72); - output.writeUInt32NoTag(index); + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(planeId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 80); - output.writeUInt32NoTag(leaderSlot); + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(index); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 96); - output.writeUInt32NoTag(planeId); + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(leaderSlot); } if ((bitField0_ & 0x00000008) != 0) { output.writeRawByte((byte) 32); output.writeEnumNoTag(extraLineupType); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 64); output.writeBoolNoTag(isVirtual); } if ((bitField0_ & 0x00000020) != 0) { for (int i = 0; i < slots.length(); i++) { - output.writeRawByte((byte) 90); + output.writeRawByte((byte) 10); output.writeMessageNoTag(slots.get(i)); } } @@ -459,13 +459,13 @@ public final class ReplaceLineupCsReqOuterClass { 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(leaderSlot); + size += 1 + ProtoSink.computeUInt32SizeNoTag(index); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(planeId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(leaderSlot); } if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeEnumSizeNoTag(extraLineupType); @@ -486,27 +486,27 @@ public final class ReplaceLineupCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 72: { - // index - index = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 80) { - break; - } - } - case 80: { - // leaderSlot - leaderSlot = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 96) { - break; - } - } - case 96: { + case 24: { // planeId planeId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // index + index = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // leaderSlot + leaderSlot = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 32) { @@ -521,20 +521,20 @@ public final class ReplaceLineupCsReqOuterClass { bitField0_ |= 0x00000008; } tag = input.readTag(); - if (tag != 40) { + if (tag != 64) { break; } } - case 40: { + case 64: { // isVirtual isVirtual = input.readBool(); bitField0_ |= 0x00000010; tag = input.readTag(); - if (tag != 90) { + if (tag != 10) { break; } } - case 90: { + case 10: { // slots tag = input.readRepeatedMessage(slots, tag); bitField0_ |= 0x00000020; @@ -560,13 +560,13 @@ public final class ReplaceLineupCsReqOuterClass { 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.leaderSlot, leaderSlot); + output.writeUInt32(FieldNames.index, index); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.planeId, planeId); + output.writeUInt32(FieldNames.leaderSlot, leaderSlot); } if ((bitField0_ & 0x00000008) != 0) { output.writeEnum(FieldNames.extraLineupType, extraLineupType, ExtraLineupTypeOuterClass.ExtraLineupType.converter()); @@ -587,11 +587,23 @@ public final class ReplaceLineupCsReqOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { + case -493896553: + case 1869097438: { + if (input.isAtField(FieldNames.planeId)) { + if (!input.trySkipNullValue()) { + planeId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } case 100346066: { if (input.isAtField(FieldNames.index)) { if (!input.trySkipNullValue()) { index = input.readUInt32(); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } else { input.skipUnknownField(); @@ -603,18 +615,6 @@ public final class ReplaceLineupCsReqOuterClass { if (input.isAtField(FieldNames.leaderSlot)) { if (!input.trySkipNullValue()) { leaderSlot = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case -493896553: - case 1869097438: { - if (input.isAtField(FieldNames.planeId)) { - if (!input.trySkipNullValue()) { - planeId = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -715,12 +715,12 @@ public final class ReplaceLineupCsReqOuterClass { * 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 e476f3f..4b55217 100644 --- a/src/generated/main/emu/lunarcore/proto/ReserveStaminaExchangeCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ReserveStaminaExchangeCsReqOuterClass.java @@ -19,7 +19,7 @@ public final class ReserveStaminaExchangeCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 num = 7; + * optional uint32 num = 15; */ private int num; @@ -34,7 +34,7 @@ public final class ReserveStaminaExchangeCsReqOuterClass { } /** - * optional uint32 num = 7; + * optional uint32 num = 15; * @return whether the num field is set */ public boolean hasNum() { @@ -42,7 +42,7 @@ public final class ReserveStaminaExchangeCsReqOuterClass { } /** - * optional uint32 num = 7; + * optional uint32 num = 15; * @return this */ public ReserveStaminaExchangeCsReq clearNum() { @@ -52,7 +52,7 @@ public final class ReserveStaminaExchangeCsReqOuterClass { } /** - * optional uint32 num = 7; + * optional uint32 num = 15; * @return the num */ public int getNum() { @@ -60,7 +60,7 @@ public final class ReserveStaminaExchangeCsReqOuterClass { } /** - * optional uint32 num = 7; + * optional uint32 num = 15; * @param value the num to set * @return this */ @@ -129,7 +129,7 @@ public final class ReserveStaminaExchangeCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 120); output.writeUInt32NoTag(num); } } @@ -150,7 +150,7 @@ public final class ReserveStaminaExchangeCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 56: { + case 120: { // 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 0a5cdfd..b6dbb48 100644 --- a/src/generated/main/emu/lunarcore/proto/ReserveStaminaExchangeScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ReserveStaminaExchangeScRspOuterClass.java @@ -19,12 +19,12 @@ public final class ReserveStaminaExchangeScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 3; + * optional uint32 retcode = 5; */ private int retcode; /** - * optional uint32 num = 4; + * optional uint32 num = 9; */ private int num; @@ -39,7 +39,7 @@ public final class ReserveStaminaExchangeScRspOuterClass { } /** - * optional uint32 retcode = 3; + * optional uint32 retcode = 5; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -47,7 +47,7 @@ public final class ReserveStaminaExchangeScRspOuterClass { } /** - * optional uint32 retcode = 3; + * optional uint32 retcode = 5; * @return this */ public ReserveStaminaExchangeScRsp clearRetcode() { @@ -57,7 +57,7 @@ public final class ReserveStaminaExchangeScRspOuterClass { } /** - * optional uint32 retcode = 3; + * optional uint32 retcode = 5; * @return the retcode */ public int getRetcode() { @@ -65,7 +65,7 @@ public final class ReserveStaminaExchangeScRspOuterClass { } /** - * optional uint32 retcode = 3; + * optional uint32 retcode = 5; * @param value the retcode to set * @return this */ @@ -76,7 +76,7 @@ public final class ReserveStaminaExchangeScRspOuterClass { } /** - * optional uint32 num = 4; + * optional uint32 num = 9; * @return whether the num field is set */ public boolean hasNum() { @@ -84,7 +84,7 @@ public final class ReserveStaminaExchangeScRspOuterClass { } /** - * optional uint32 num = 4; + * optional uint32 num = 9; * @return this */ public ReserveStaminaExchangeScRsp clearNum() { @@ -94,7 +94,7 @@ public final class ReserveStaminaExchangeScRspOuterClass { } /** - * optional uint32 num = 4; + * optional uint32 num = 9; * @return the num */ public int getNum() { @@ -102,7 +102,7 @@ public final class ReserveStaminaExchangeScRspOuterClass { } /** - * optional uint32 num = 4; + * optional uint32 num = 9; * @param value the num to set * @return this */ @@ -177,11 +177,11 @@ public final class ReserveStaminaExchangeScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 40); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 32); + output.writeRawByte((byte) 72); output.writeUInt32NoTag(num); } } @@ -205,16 +205,16 @@ public final class ReserveStaminaExchangeScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 24: { + case 40: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 32) { + if (tag != 72) { break; } } - case 32: { + case 72: { // num num = input.readUInt32(); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/RevcMsgScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/RevcMsgScNotifyOuterClass.java index d870983..e23ba6b 100644 --- a/src/generated/main/emu/lunarcore/proto/RevcMsgScNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RevcMsgScNotifyOuterClass.java @@ -20,9 +20,9 @@ public final class RevcMsgScNotifyOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 emote = 2; + * optional uint32 from_uid = 4; */ - private int emote; + private int fromUid; /** * optional uint32 to_uid = 11; @@ -30,22 +30,22 @@ public final class RevcMsgScNotifyOuterClass { private int toUid; /** - * optional uint32 from_uid = 15; + * optional uint32 emote = 14; */ - private int fromUid; + private int emote; /** - * optional .ChatType chat_type = 1; + * optional .ChatType chat_type = 13; */ private int chatType; /** - * optional .MsgType msg_type = 12; + * optional .MsgType msg_type = 15; */ private int msgType; /** - * optional string text = 4; + * optional string text = 8; */ private final Utf8String text = Utf8String.newEmptyInstance(); @@ -60,39 +60,39 @@ public final class RevcMsgScNotifyOuterClass { } /** - * optional uint32 emote = 2; - * @return whether the emote field is set + * optional uint32 from_uid = 4; + * @return whether the fromUid field is set */ - public boolean hasEmote() { + public boolean hasFromUid() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 emote = 2; + * optional uint32 from_uid = 4; * @return this */ - public RevcMsgScNotify clearEmote() { + public RevcMsgScNotify clearFromUid() { bitField0_ &= ~0x00000001; - emote = 0; + fromUid = 0; return this; } /** - * optional uint32 emote = 2; - * @return the emote + * optional uint32 from_uid = 4; + * @return the fromUid */ - public int getEmote() { - return emote; + public int getFromUid() { + return fromUid; } /** - * optional uint32 emote = 2; - * @param value the emote to set + * optional uint32 from_uid = 4; + * @param value the fromUid to set * @return this */ - public RevcMsgScNotify setEmote(final int value) { + public RevcMsgScNotify setFromUid(final int value) { bitField0_ |= 0x00000001; - emote = value; + fromUid = value; return this; } @@ -134,44 +134,44 @@ public final class RevcMsgScNotifyOuterClass { } /** - * optional uint32 from_uid = 15; - * @return whether the fromUid field is set + * optional uint32 emote = 14; + * @return whether the emote field is set */ - public boolean hasFromUid() { + public boolean hasEmote() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 from_uid = 15; + * optional uint32 emote = 14; * @return this */ - public RevcMsgScNotify clearFromUid() { + public RevcMsgScNotify clearEmote() { bitField0_ &= ~0x00000004; - fromUid = 0; + emote = 0; return this; } /** - * optional uint32 from_uid = 15; - * @return the fromUid + * optional uint32 emote = 14; + * @return the emote */ - public int getFromUid() { - return fromUid; + public int getEmote() { + return emote; } /** - * optional uint32 from_uid = 15; - * @param value the fromUid to set + * optional uint32 emote = 14; + * @param value the emote to set * @return this */ - public RevcMsgScNotify setFromUid(final int value) { + public RevcMsgScNotify setEmote(final int value) { bitField0_ |= 0x00000004; - fromUid = value; + emote = value; return this; } /** - * optional .ChatType chat_type = 1; + * optional .ChatType chat_type = 13; * @return whether the chatType field is set */ public boolean hasChatType() { @@ -179,7 +179,7 @@ public final class RevcMsgScNotifyOuterClass { } /** - * optional .ChatType chat_type = 1; + * optional .ChatType chat_type = 13; * @return this */ public RevcMsgScNotify clearChatType() { @@ -189,7 +189,7 @@ public final class RevcMsgScNotifyOuterClass { } /** - * optional .ChatType chat_type = 1; + * optional .ChatType chat_type = 13; * @return the chatType */ public ChatTypeOuterClass.ChatType getChatType() { @@ -222,7 +222,7 @@ public final class RevcMsgScNotifyOuterClass { } /** - * optional .ChatType chat_type = 1; + * optional .ChatType chat_type = 13; * @param value the chatType to set * @return this */ @@ -233,7 +233,7 @@ public final class RevcMsgScNotifyOuterClass { } /** - * optional .MsgType msg_type = 12; + * optional .MsgType msg_type = 15; * @return whether the msgType field is set */ public boolean hasMsgType() { @@ -241,7 +241,7 @@ public final class RevcMsgScNotifyOuterClass { } /** - * optional .MsgType msg_type = 12; + * optional .MsgType msg_type = 15; * @return this */ public RevcMsgScNotify clearMsgType() { @@ -251,7 +251,7 @@ public final class RevcMsgScNotifyOuterClass { } /** - * optional .MsgType msg_type = 12; + * optional .MsgType msg_type = 15; * @return the msgType */ public MsgTypeOuterClass.MsgType getMsgType() { @@ -284,7 +284,7 @@ public final class RevcMsgScNotifyOuterClass { } /** - * optional .MsgType msg_type = 12; + * optional .MsgType msg_type = 15; * @param value the msgType to set * @return this */ @@ -295,7 +295,7 @@ public final class RevcMsgScNotifyOuterClass { } /** - * optional string text = 4; + * optional string text = 8; * @return whether the text field is set */ public boolean hasText() { @@ -303,7 +303,7 @@ public final class RevcMsgScNotifyOuterClass { } /** - * optional string text = 4; + * optional string text = 8; * @return this */ public RevcMsgScNotify clearText() { @@ -313,7 +313,7 @@ public final class RevcMsgScNotifyOuterClass { } /** - * optional string text = 4; + * optional string text = 8; * @return the text */ public String getText() { @@ -321,7 +321,7 @@ public final class RevcMsgScNotifyOuterClass { } /** - * optional string text = 4; + * optional string text = 8; * @return internal {@code Utf8String} representation of text for reading */ public Utf8String getTextBytes() { @@ -329,7 +329,7 @@ public final class RevcMsgScNotifyOuterClass { } /** - * optional string text = 4; + * optional string text = 8; * @return internal {@code Utf8String} representation of text for modifications */ public Utf8String getMutableTextBytes() { @@ -338,7 +338,7 @@ public final class RevcMsgScNotifyOuterClass { } /** - * optional string text = 4; + * optional string text = 8; * @param value the text to set * @return this */ @@ -349,7 +349,7 @@ public final class RevcMsgScNotifyOuterClass { } /** - * optional string text = 4; + * optional string text = 8; * @param value the text to set * @return this */ @@ -364,9 +364,9 @@ public final class RevcMsgScNotifyOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - emote = other.emote; - toUid = other.toUid; fromUid = other.fromUid; + toUid = other.toUid; + emote = other.emote; chatType = other.chatType; msgType = other.msgType; text.copyFrom(other.text); @@ -380,14 +380,14 @@ public final class RevcMsgScNotifyOuterClass { return this; } cachedSize = -1; - if (other.hasEmote()) { - setEmote(other.emote); + if (other.hasFromUid()) { + setFromUid(other.fromUid); } if (other.hasToUid()) { setToUid(other.toUid); } - if (other.hasFromUid()) { - setFromUid(other.fromUid); + if (other.hasEmote()) { + setEmote(other.emote); } if (other.hasChatType()) { setChatTypeValue(other.chatType); @@ -408,9 +408,9 @@ public final class RevcMsgScNotifyOuterClass { } cachedSize = -1; bitField0_ = 0; - emote = 0; - toUid = 0; fromUid = 0; + toUid = 0; + emote = 0; chatType = 0; msgType = 0; text.clear(); @@ -438,9 +438,9 @@ public final class RevcMsgScNotifyOuterClass { } RevcMsgScNotify other = (RevcMsgScNotify) o; return bitField0_ == other.bitField0_ - && (!hasEmote() || emote == other.emote) - && (!hasToUid() || toUid == other.toUid) && (!hasFromUid() || fromUid == other.fromUid) + && (!hasToUid() || toUid == other.toUid) + && (!hasEmote() || emote == other.emote) && (!hasChatType() || chatType == other.chatType) && (!hasMsgType() || msgType == other.msgType) && (!hasText() || text.equals(other.text)); @@ -449,27 +449,27 @@ public final class RevcMsgScNotifyOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(emote); + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(fromUid); } if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 88); output.writeUInt32NoTag(toUid); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 120); - output.writeUInt32NoTag(fromUid); + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(emote); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 8); + output.writeRawByte((byte) 104); output.writeEnumNoTag(chatType); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 120); output.writeEnumNoTag(msgType); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 34); + output.writeRawByte((byte) 66); output.writeStringNoTag(text); } } @@ -478,13 +478,13 @@ public final class RevcMsgScNotifyOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(emote); + size += 1 + ProtoSink.computeUInt32SizeNoTag(fromUid); } if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(toUid); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(fromUid); + size += 1 + ProtoSink.computeUInt32SizeNoTag(emote); } if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeEnumSizeNoTag(chatType); @@ -505,9 +505,9 @@ public final class RevcMsgScNotifyOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { - // emote - emote = input.readUInt32(); + case 32: { + // fromUid + fromUid = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 88) { @@ -519,20 +519,20 @@ public final class RevcMsgScNotifyOuterClass { toUid = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 120) { + if (tag != 112) { break; } } - case 120: { - // fromUid - fromUid = input.readUInt32(); + case 112: { + // emote + emote = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 8) { + if (tag != 104) { break; } } - case 8: { + case 104: { // chatType final int value = input.readInt32(); if (ChatTypeOuterClass.ChatType.forNumber(value) != null) { @@ -540,11 +540,11 @@ public final class RevcMsgScNotifyOuterClass { bitField0_ |= 0x00000008; } tag = input.readTag(); - if (tag != 96) { + if (tag != 120) { break; } } - case 96: { + case 120: { // msgType final int value = input.readInt32(); if (MsgTypeOuterClass.MsgType.forNumber(value) != null) { @@ -552,11 +552,11 @@ public final class RevcMsgScNotifyOuterClass { bitField0_ |= 0x00000010; } tag = input.readTag(); - if (tag != 34) { + if (tag != 66) { break; } } - case 34: { + case 66: { // text input.readString(text); bitField0_ |= 0x00000020; @@ -583,13 +583,13 @@ public final class RevcMsgScNotifyOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.emote, emote); + output.writeUInt32(FieldNames.fromUid, fromUid); } if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.toUid, toUid); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.fromUid, fromUid); + output.writeUInt32(FieldNames.emote, emote); } if ((bitField0_ & 0x00000008) != 0) { output.writeEnum(FieldNames.chatType, chatType, ChatTypeOuterClass.ChatType.converter()); @@ -610,10 +610,11 @@ public final class RevcMsgScNotifyOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - 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_ |= 0x00000001; } } else { @@ -633,11 +634,10 @@ public final class RevcMsgScNotifyOuterClass { } break; } - case -594338746: - case -1244322245: { - if (input.isAtField(FieldNames.fromUid)) { + case 96633208: { + if (input.isAtField(FieldNames.emote)) { if (!input.trySkipNullValue()) { - fromUid = input.readUInt32(); + emote = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -743,11 +743,11 @@ public final class RevcMsgScNotifyOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName emote = FieldName.forField("emote"); + static final FieldName fromUid = FieldName.forField("fromUid", "from_uid"); static final FieldName toUid = FieldName.forField("toUid", "to_uid"); - static final FieldName fromUid = FieldName.forField("fromUid", "from_uid"); + static final FieldName emote = FieldName.forField("emote"); static final FieldName chatType = FieldName.forField("chatType", "chat_type"); diff --git a/src/generated/main/emu/lunarcore/proto/RogueAeonInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueAeonInfoOuterClass.java index 082e04b..a3d683e 100644 --- a/src/generated/main/emu/lunarcore/proto/RogueAeonInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RogueAeonInfoOuterClass.java @@ -20,16 +20,28 @@ public final class RogueAeonInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 unlock_aeon_enhance_num = 14; + *
+     *  3
+     * 
+ * + * optional uint32 JPEBPGIEGPO = 14; */ - private int unlockAeonEnhanceNum; + private int jPEBPGIEGPO; /** + *
+     *  9
+     * 
+ * * optional uint32 unlock_aeon_num = 15; */ private int unlockAeonNum; /** + *
+     *  guess
+     * 
+ * * optional bool is_unlocked = 1; */ private boolean isUnlocked; @@ -50,43 +62,63 @@ public final class RogueAeonInfoOuterClass { } /** - * optional uint32 unlock_aeon_enhance_num = 14; - * @return whether the unlockAeonEnhanceNum field is set + *
+     *  3
+     * 
+ * + * optional uint32 JPEBPGIEGPO = 14; + * @return whether the jPEBPGIEGPO field is set */ - public boolean hasUnlockAeonEnhanceNum() { + public boolean hasJPEBPGIEGPO() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 unlock_aeon_enhance_num = 14; + *
+     *  3
+     * 
+ * + * optional uint32 JPEBPGIEGPO = 14; * @return this */ - public RogueAeonInfo clearUnlockAeonEnhanceNum() { + public RogueAeonInfo clearJPEBPGIEGPO() { bitField0_ &= ~0x00000001; - unlockAeonEnhanceNum = 0; + jPEBPGIEGPO = 0; return this; } /** - * optional uint32 unlock_aeon_enhance_num = 14; - * @return the unlockAeonEnhanceNum + *
+     *  3
+     * 
+ * + * optional uint32 JPEBPGIEGPO = 14; + * @return the jPEBPGIEGPO */ - public int getUnlockAeonEnhanceNum() { - return unlockAeonEnhanceNum; + public int getJPEBPGIEGPO() { + return jPEBPGIEGPO; } /** - * optional uint32 unlock_aeon_enhance_num = 14; - * @param value the unlockAeonEnhanceNum to set + *
+     *  3
+     * 
+ * + * optional uint32 JPEBPGIEGPO = 14; + * @param value the jPEBPGIEGPO to set * @return this */ - public RogueAeonInfo setUnlockAeonEnhanceNum(final int value) { + public RogueAeonInfo setJPEBPGIEGPO(final int value) { bitField0_ |= 0x00000001; - unlockAeonEnhanceNum = value; + jPEBPGIEGPO = value; return this; } /** + *
+     *  9
+     * 
+ * * optional uint32 unlock_aeon_num = 15; * @return whether the unlockAeonNum field is set */ @@ -95,6 +127,10 @@ public final class RogueAeonInfoOuterClass { } /** + *
+     *  9
+     * 
+ * * optional uint32 unlock_aeon_num = 15; * @return this */ @@ -105,6 +141,10 @@ public final class RogueAeonInfoOuterClass { } /** + *
+     *  9
+     * 
+ * * optional uint32 unlock_aeon_num = 15; * @return the unlockAeonNum */ @@ -113,6 +153,10 @@ public final class RogueAeonInfoOuterClass { } /** + *
+     *  9
+     * 
+ * * optional uint32 unlock_aeon_num = 15; * @param value the unlockAeonNum to set * @return this @@ -124,6 +168,10 @@ public final class RogueAeonInfoOuterClass { } /** + *
+     *  guess
+     * 
+ * * optional bool is_unlocked = 1; * @return whether the isUnlocked field is set */ @@ -132,6 +180,10 @@ public final class RogueAeonInfoOuterClass { } /** + *
+     *  guess
+     * 
+ * * optional bool is_unlocked = 1; * @return this */ @@ -142,6 +194,10 @@ public final class RogueAeonInfoOuterClass { } /** + *
+     *  guess
+     * 
+ * * optional bool is_unlocked = 1; * @return the isUnlocked */ @@ -150,6 +206,10 @@ public final class RogueAeonInfoOuterClass { } /** + *
+     *  guess
+     * 
+ * * optional bool is_unlocked = 1; * @param value the isUnlocked to set * @return this @@ -233,7 +293,7 @@ public final class RogueAeonInfoOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - unlockAeonEnhanceNum = other.unlockAeonEnhanceNum; + jPEBPGIEGPO = other.jPEBPGIEGPO; unlockAeonNum = other.unlockAeonNum; isUnlocked = other.isUnlocked; aeonIdList.copyFrom(other.aeonIdList); @@ -247,8 +307,8 @@ public final class RogueAeonInfoOuterClass { return this; } cachedSize = -1; - if (other.hasUnlockAeonEnhanceNum()) { - setUnlockAeonEnhanceNum(other.unlockAeonEnhanceNum); + if (other.hasJPEBPGIEGPO()) { + setJPEBPGIEGPO(other.jPEBPGIEGPO); } if (other.hasUnlockAeonNum()) { setUnlockAeonNum(other.unlockAeonNum); @@ -269,7 +329,7 @@ public final class RogueAeonInfoOuterClass { } cachedSize = -1; bitField0_ = 0; - unlockAeonEnhanceNum = 0; + jPEBPGIEGPO = 0; unlockAeonNum = 0; isUnlocked = false; aeonIdList.clear(); @@ -297,7 +357,7 @@ public final class RogueAeonInfoOuterClass { } RogueAeonInfo other = (RogueAeonInfo) o; return bitField0_ == other.bitField0_ - && (!hasUnlockAeonEnhanceNum() || unlockAeonEnhanceNum == other.unlockAeonEnhanceNum) + && (!hasJPEBPGIEGPO() || jPEBPGIEGPO == other.jPEBPGIEGPO) && (!hasUnlockAeonNum() || unlockAeonNum == other.unlockAeonNum) && (!hasIsUnlocked() || isUnlocked == other.isUnlocked) && (!hasAeonIdList() || aeonIdList.equals(other.aeonIdList)); @@ -307,7 +367,7 @@ public final class RogueAeonInfoOuterClass { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { output.writeRawByte((byte) 112); - output.writeUInt32NoTag(unlockAeonEnhanceNum); + output.writeUInt32NoTag(jPEBPGIEGPO); } if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 120); @@ -329,7 +389,7 @@ public final class RogueAeonInfoOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(unlockAeonEnhanceNum); + size += 1 + ProtoSink.computeUInt32SizeNoTag(jPEBPGIEGPO); } if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(unlockAeonNum); @@ -351,8 +411,8 @@ public final class RogueAeonInfoOuterClass { while (true) { switch (tag) { case 112: { - // unlockAeonEnhanceNum - unlockAeonEnhanceNum = input.readUInt32(); + // jPEBPGIEGPO + jPEBPGIEGPO = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 120) { @@ -410,7 +470,7 @@ public final class RogueAeonInfoOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.unlockAeonEnhanceNum, unlockAeonEnhanceNum); + output.writeUInt32(FieldNames.jPEBPGIEGPO, jPEBPGIEGPO); } if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.unlockAeonNum, unlockAeonNum); @@ -431,11 +491,10 @@ public final class RogueAeonInfoOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1040991167: - case 7773396: { - if (input.isAtField(FieldNames.unlockAeonEnhanceNum)) { + case 617496720: { + if (input.isAtField(FieldNames.jPEBPGIEGPO)) { if (!input.trySkipNullValue()) { - unlockAeonEnhanceNum = input.readUInt32(); + jPEBPGIEGPO = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -531,7 +590,7 @@ public final class RogueAeonInfoOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName unlockAeonEnhanceNum = FieldName.forField("unlockAeonEnhanceNum", "unlock_aeon_enhance_num"); + static final FieldName jPEBPGIEGPO = FieldName.forField("JPEBPGIEGPO"); static final FieldName unlockAeonNum = FieldName.forField("unlockAeonNum", "unlock_aeon_num"); diff --git a/src/generated/main/emu/lunarcore/proto/RogueAeonOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueAeonOuterClass.java index a820c3b..df162e3 100644 --- a/src/generated/main/emu/lunarcore/proto/RogueAeonOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RogueAeonOuterClass.java @@ -18,20 +18,19 @@ public final class RogueAeonOuterClass { public static final class RogueAeon extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; - /** - * optional uint32 aeon_enhance_buff_num = 7; - */ - private int aeonEnhanceBuffNum; - /** * optional uint32 aeon_id = 10; */ private int aeonId; /** - * optional bool is_unlock_aeon = 12; + *
+     * uint32 aeon_id = 7;  
+     * 
+ * + * optional bool is_unlock_enhance_buff = 12; */ - private boolean isUnlockAeon; + private boolean isUnlockEnhanceBuff; private RogueAeon() { } @@ -43,49 +42,12 @@ public final class RogueAeonOuterClass { return new RogueAeon(); } - /** - * optional uint32 aeon_enhance_buff_num = 7; - * @return whether the aeonEnhanceBuffNum field is set - */ - public boolean hasAeonEnhanceBuffNum() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 aeon_enhance_buff_num = 7; - * @return this - */ - public RogueAeon clearAeonEnhanceBuffNum() { - bitField0_ &= ~0x00000001; - aeonEnhanceBuffNum = 0; - return this; - } - - /** - * optional uint32 aeon_enhance_buff_num = 7; - * @return the aeonEnhanceBuffNum - */ - public int getAeonEnhanceBuffNum() { - return aeonEnhanceBuffNum; - } - - /** - * optional uint32 aeon_enhance_buff_num = 7; - * @param value the aeonEnhanceBuffNum to set - * @return this - */ - public RogueAeon setAeonEnhanceBuffNum(final int value) { - bitField0_ |= 0x00000001; - aeonEnhanceBuffNum = value; - return this; - } - /** * optional uint32 aeon_id = 10; * @return whether the aeonId field is set */ public boolean hasAeonId() { - return (bitField0_ & 0x00000002) != 0; + return (bitField0_ & 0x00000001) != 0; } /** @@ -93,7 +55,7 @@ public final class RogueAeonOuterClass { * @return this */ public RogueAeon clearAeonId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; aeonId = 0; return this; } @@ -112,45 +74,61 @@ public final class RogueAeonOuterClass { * @return this */ public RogueAeon setAeonId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; aeonId = value; return this; } /** - * optional bool is_unlock_aeon = 12; - * @return whether the isUnlockAeon field is set + *
+     * uint32 aeon_id = 7;  
+     * 
+ * + * optional bool is_unlock_enhance_buff = 12; + * @return whether the isUnlockEnhanceBuff field is set */ - public boolean hasIsUnlockAeon() { - return (bitField0_ & 0x00000004) != 0; + public boolean hasIsUnlockEnhanceBuff() { + return (bitField0_ & 0x00000002) != 0; } /** - * optional bool is_unlock_aeon = 12; + *
+     * uint32 aeon_id = 7;  
+     * 
+ * + * optional bool is_unlock_enhance_buff = 12; * @return this */ - public RogueAeon clearIsUnlockAeon() { - bitField0_ &= ~0x00000004; - isUnlockAeon = false; + public RogueAeon clearIsUnlockEnhanceBuff() { + bitField0_ &= ~0x00000002; + isUnlockEnhanceBuff = false; return this; } /** - * optional bool is_unlock_aeon = 12; - * @return the isUnlockAeon + *
+     * uint32 aeon_id = 7;  
+     * 
+ * + * optional bool is_unlock_enhance_buff = 12; + * @return the isUnlockEnhanceBuff */ - public boolean getIsUnlockAeon() { - return isUnlockAeon; + public boolean getIsUnlockEnhanceBuff() { + return isUnlockEnhanceBuff; } /** - * optional bool is_unlock_aeon = 12; - * @param value the isUnlockAeon to set + *
+     * uint32 aeon_id = 7;  
+     * 
+ * + * optional bool is_unlock_enhance_buff = 12; + * @param value the isUnlockEnhanceBuff to set * @return this */ - public RogueAeon setIsUnlockAeon(final boolean value) { - bitField0_ |= 0x00000004; - isUnlockAeon = value; + public RogueAeon setIsUnlockEnhanceBuff(final boolean value) { + bitField0_ |= 0x00000002; + isUnlockEnhanceBuff = value; return this; } @@ -159,9 +137,8 @@ public final class RogueAeonOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - aeonEnhanceBuffNum = other.aeonEnhanceBuffNum; aeonId = other.aeonId; - isUnlockAeon = other.isUnlockAeon; + isUnlockEnhanceBuff = other.isUnlockEnhanceBuff; } return this; } @@ -172,14 +149,11 @@ public final class RogueAeonOuterClass { return this; } cachedSize = -1; - if (other.hasAeonEnhanceBuffNum()) { - setAeonEnhanceBuffNum(other.aeonEnhanceBuffNum); - } if (other.hasAeonId()) { setAeonId(other.aeonId); } - if (other.hasIsUnlockAeon()) { - setIsUnlockAeon(other.isUnlockAeon); + if (other.hasIsUnlockEnhanceBuff()) { + setIsUnlockEnhanceBuff(other.isUnlockEnhanceBuff); } return this; } @@ -191,9 +165,8 @@ public final class RogueAeonOuterClass { } cachedSize = -1; bitField0_ = 0; - aeonEnhanceBuffNum = 0; aeonId = 0; - isUnlockAeon = false; + isUnlockEnhanceBuff = false; return this; } @@ -217,24 +190,19 @@ public final class RogueAeonOuterClass { } RogueAeon other = (RogueAeon) o; return bitField0_ == other.bitField0_ - && (!hasAeonEnhanceBuffNum() || aeonEnhanceBuffNum == other.aeonEnhanceBuffNum) && (!hasAeonId() || aeonId == other.aeonId) - && (!hasIsUnlockAeon() || isUnlockAeon == other.isUnlockAeon); + && (!hasIsUnlockEnhanceBuff() || isUnlockEnhanceBuff == other.isUnlockEnhanceBuff); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 56); - output.writeUInt32NoTag(aeonEnhanceBuffNum); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 80); output.writeUInt32NoTag(aeonId); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 96); - output.writeBoolNoTag(isUnlockAeon); + output.writeBoolNoTag(isUnlockEnhanceBuff); } } @@ -242,12 +210,9 @@ public final class RogueAeonOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(aeonEnhanceBuffNum); - } - if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(aeonId); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { size += 2; } return size; @@ -260,28 +225,19 @@ public final class RogueAeonOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 56: { - // aeonEnhanceBuffNum - aeonEnhanceBuffNum = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 80) { - break; - } - } case 80: { // aeonId aeonId = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 96) { break; } } case 96: { - // isUnlockAeon - isUnlockAeon = input.readBool(); - bitField0_ |= 0x00000004; + // isUnlockEnhanceBuff + isUnlockEnhanceBuff = input.readBool(); + bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { break; @@ -305,13 +261,10 @@ public final class RogueAeonOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.aeonEnhanceBuffNum, aeonEnhanceBuffNum); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.aeonId, aeonId); } - if ((bitField0_ & 0x00000004) != 0) { - output.writeBool(FieldNames.isUnlockAeon, isUnlockAeon); + if ((bitField0_ & 0x00000002) != 0) { + output.writeBool(FieldNames.isUnlockEnhanceBuff, isUnlockEnhanceBuff); } output.endObject(); } @@ -323,11 +276,11 @@ public final class RogueAeonOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1533321096: - case 1717887943: { - if (input.isAtField(FieldNames.aeonEnhanceBuffNum)) { + case -1421249154: + case -1109029417: { + if (input.isAtField(FieldNames.aeonId)) { if (!input.trySkipNullValue()) { - aeonEnhanceBuffNum = input.readUInt32(); + aeonId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -335,11 +288,11 @@ public final class RogueAeonOuterClass { } break; } - case -1421249154: - case -1109029417: { - if (input.isAtField(FieldNames.aeonId)) { + case -1006386637: + case -118645302: { + if (input.isAtField(FieldNames.isUnlockEnhanceBuff)) { if (!input.trySkipNullValue()) { - aeonId = input.readUInt32(); + isUnlockEnhanceBuff = input.readBool(); bitField0_ |= 0x00000002; } } else { @@ -347,18 +300,6 @@ public final class RogueAeonOuterClass { } break; } - case 1311289137: - case 1885168009: { - if (input.isAtField(FieldNames.isUnlockAeon)) { - if (!input.trySkipNullValue()) { - isUnlockAeon = input.readBool(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } default: { input.skipUnknownField(); break; @@ -411,11 +352,9 @@ public final class RogueAeonOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName aeonEnhanceBuffNum = FieldName.forField("aeonEnhanceBuffNum", "aeon_enhance_buff_num"); - static final FieldName aeonId = FieldName.forField("aeonId", "aeon_id"); - static final FieldName isUnlockAeon = FieldName.forField("isUnlockAeon", "is_unlock_aeon"); + static final FieldName isUnlockEnhanceBuff = FieldName.forField("isUnlockEnhanceBuff", "is_unlock_enhance_buff"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/RogueCommonPendingActionOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueCommonPendingActionOuterClass.java index e43b36f..c0d9548 100644 --- a/src/generated/main/emu/lunarcore/proto/RogueCommonPendingActionOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RogueCommonPendingActionOuterClass.java @@ -19,9 +19,13 @@ public final class RogueCommonPendingActionOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 action_unique_id = 3; + *
+     *  idk
+     * 
+ * + * optional uint32 GLFDHAJPJDF = 3; */ - private int actionUniqueId; + private int gLFDHAJPJDF; /** * optional .RogueAction rogue_action = 7; @@ -39,39 +43,55 @@ public final class RogueCommonPendingActionOuterClass { } /** - * optional uint32 action_unique_id = 3; - * @return whether the actionUniqueId field is set + *
+     *  idk
+     * 
+ * + * optional uint32 GLFDHAJPJDF = 3; + * @return whether the gLFDHAJPJDF field is set */ - public boolean hasActionUniqueId() { + public boolean hasGLFDHAJPJDF() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 action_unique_id = 3; + *
+     *  idk
+     * 
+ * + * optional uint32 GLFDHAJPJDF = 3; * @return this */ - public RogueCommonPendingAction clearActionUniqueId() { + public RogueCommonPendingAction clearGLFDHAJPJDF() { bitField0_ &= ~0x00000001; - actionUniqueId = 0; + gLFDHAJPJDF = 0; return this; } /** - * optional uint32 action_unique_id = 3; - * @return the actionUniqueId + *
+     *  idk
+     * 
+ * + * optional uint32 GLFDHAJPJDF = 3; + * @return the gLFDHAJPJDF */ - public int getActionUniqueId() { - return actionUniqueId; + public int getGLFDHAJPJDF() { + return gLFDHAJPJDF; } /** - * optional uint32 action_unique_id = 3; - * @param value the actionUniqueId to set + *
+     *  idk
+     * 
+ * + * optional uint32 GLFDHAJPJDF = 3; + * @param value the gLFDHAJPJDF to set * @return this */ - public RogueCommonPendingAction setActionUniqueId(final int value) { + public RogueCommonPendingAction setGLFDHAJPJDF(final int value) { bitField0_ |= 0x00000001; - actionUniqueId = value; + gLFDHAJPJDF = value; return this; } @@ -137,7 +157,7 @@ public final class RogueCommonPendingActionOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - actionUniqueId = other.actionUniqueId; + gLFDHAJPJDF = other.gLFDHAJPJDF; rogueAction.copyFrom(other.rogueAction); } return this; @@ -149,8 +169,8 @@ public final class RogueCommonPendingActionOuterClass { return this; } cachedSize = -1; - if (other.hasActionUniqueId()) { - setActionUniqueId(other.actionUniqueId); + if (other.hasGLFDHAJPJDF()) { + setGLFDHAJPJDF(other.gLFDHAJPJDF); } if (other.hasRogueAction()) { getMutableRogueAction().mergeFrom(other.rogueAction); @@ -165,7 +185,7 @@ public final class RogueCommonPendingActionOuterClass { } cachedSize = -1; bitField0_ = 0; - actionUniqueId = 0; + gLFDHAJPJDF = 0; rogueAction.clear(); return this; } @@ -191,7 +211,7 @@ public final class RogueCommonPendingActionOuterClass { } RogueCommonPendingAction other = (RogueCommonPendingAction) o; return bitField0_ == other.bitField0_ - && (!hasActionUniqueId() || actionUniqueId == other.actionUniqueId) + && (!hasGLFDHAJPJDF() || gLFDHAJPJDF == other.gLFDHAJPJDF) && (!hasRogueAction() || rogueAction.equals(other.rogueAction)); } @@ -199,7 +219,7 @@ public final class RogueCommonPendingActionOuterClass { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { output.writeRawByte((byte) 24); - output.writeUInt32NoTag(actionUniqueId); + output.writeUInt32NoTag(gLFDHAJPJDF); } if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 58); @@ -211,7 +231,7 @@ public final class RogueCommonPendingActionOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(actionUniqueId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(gLFDHAJPJDF); } if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(rogueAction); @@ -227,8 +247,8 @@ public final class RogueCommonPendingActionOuterClass { while (true) { switch (tag) { case 24: { - // actionUniqueId - actionUniqueId = input.readUInt32(); + // gLFDHAJPJDF + gLFDHAJPJDF = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 58) { @@ -262,7 +282,7 @@ public final class RogueCommonPendingActionOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.actionUniqueId, actionUniqueId); + output.writeUInt32(FieldNames.gLFDHAJPJDF, gLFDHAJPJDF); } if ((bitField0_ & 0x00000002) != 0) { output.writeMessage(FieldNames.rogueAction, rogueAction); @@ -277,11 +297,10 @@ public final class RogueCommonPendingActionOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -208785118: - case 1003664768: { - if (input.isAtField(FieldNames.actionUniqueId)) { + case 1202020394: { + if (input.isAtField(FieldNames.gLFDHAJPJDF)) { if (!input.trySkipNullValue()) { - actionUniqueId = input.readUInt32(); + gLFDHAJPJDF = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -354,7 +373,7 @@ public final class RogueCommonPendingActionOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName actionUniqueId = FieldName.forField("actionUniqueId", "action_unique_id"); + static final FieldName gLFDHAJPJDF = FieldName.forField("GLFDHAJPJDF"); static final FieldName rogueAction = FieldName.forField("rogueAction", "rogue_action"); } diff --git a/src/generated/main/emu/lunarcore/proto/RogueDialogueEventOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueDialogueEventOuterClass.java index 4843188..7685a4d 100644 --- a/src/generated/main/emu/lunarcore/proto/RogueDialogueEventOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RogueDialogueEventOuterClass.java @@ -26,9 +26,9 @@ public final class RogueDialogueEventOuterClass { private int npcId; /** - * optional uint32 event_unique_id = 6; + * optional uint32 GBMDBBBMBEJ = 6; */ - private int eventUniqueId; + private int gBMDBBBMBEJ; /** * optional uint32 INJPFALMDHJ = 7; @@ -98,39 +98,39 @@ public final class RogueDialogueEventOuterClass { } /** - * optional uint32 event_unique_id = 6; - * @return whether the eventUniqueId field is set + * optional uint32 GBMDBBBMBEJ = 6; + * @return whether the gBMDBBBMBEJ field is set */ - public boolean hasEventUniqueId() { + public boolean hasGBMDBBBMBEJ() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 event_unique_id = 6; + * optional uint32 GBMDBBBMBEJ = 6; * @return this */ - public RogueDialogueEvent clearEventUniqueId() { + public RogueDialogueEvent clearGBMDBBBMBEJ() { bitField0_ &= ~0x00000002; - eventUniqueId = 0; + gBMDBBBMBEJ = 0; return this; } /** - * optional uint32 event_unique_id = 6; - * @return the eventUniqueId + * optional uint32 GBMDBBBMBEJ = 6; + * @return the gBMDBBBMBEJ */ - public int getEventUniqueId() { - return eventUniqueId; + public int getGBMDBBBMBEJ() { + return gBMDBBBMBEJ; } /** - * optional uint32 event_unique_id = 6; - * @param value the eventUniqueId to set + * optional uint32 GBMDBBBMBEJ = 6; + * @param value the gBMDBBBMBEJ to set * @return this */ - public RogueDialogueEvent setEventUniqueId(final int value) { + public RogueDialogueEvent setGBMDBBBMBEJ(final int value) { bitField0_ |= 0x00000002; - eventUniqueId = value; + gBMDBBBMBEJ = value; return this; } @@ -354,7 +354,7 @@ public final class RogueDialogueEventOuterClass { if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; npcId = other.npcId; - eventUniqueId = other.eventUniqueId; + gBMDBBBMBEJ = other.gBMDBBBMBEJ; iNJPFALMDHJ = other.iNJPFALMDHJ; gameModeType = other.gameModeType; selectEventId.copyFrom(other.selectEventId); @@ -372,8 +372,8 @@ public final class RogueDialogueEventOuterClass { if (other.hasNpcId()) { setNpcId(other.npcId); } - if (other.hasEventUniqueId()) { - setEventUniqueId(other.eventUniqueId); + if (other.hasGBMDBBBMBEJ()) { + setGBMDBBBMBEJ(other.gBMDBBBMBEJ); } if (other.hasINJPFALMDHJ()) { setINJPFALMDHJ(other.iNJPFALMDHJ); @@ -398,7 +398,7 @@ public final class RogueDialogueEventOuterClass { cachedSize = -1; bitField0_ = 0; npcId = 0; - eventUniqueId = 0; + gBMDBBBMBEJ = 0; iNJPFALMDHJ = 0; gameModeType = 0; selectEventId.clear(); @@ -429,7 +429,7 @@ public final class RogueDialogueEventOuterClass { RogueDialogueEvent other = (RogueDialogueEvent) o; return bitField0_ == other.bitField0_ && (!hasNpcId() || npcId == other.npcId) - && (!hasEventUniqueId() || eventUniqueId == other.eventUniqueId) + && (!hasGBMDBBBMBEJ() || gBMDBBBMBEJ == other.gBMDBBBMBEJ) && (!hasINJPFALMDHJ() || iNJPFALMDHJ == other.iNJPFALMDHJ) && (!hasGameModeType() || gameModeType == other.gameModeType) && (!hasSelectEventId() || selectEventId.equals(other.selectEventId)) @@ -444,7 +444,7 @@ public final class RogueDialogueEventOuterClass { } if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 48); - output.writeUInt32NoTag(eventUniqueId); + output.writeUInt32NoTag(gBMDBBBMBEJ); } if ((bitField0_ & 0x00000004) != 0) { output.writeRawByte((byte) 56); @@ -475,7 +475,7 @@ public final class RogueDialogueEventOuterClass { size += 1 + ProtoSink.computeUInt32SizeNoTag(npcId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(eventUniqueId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(gBMDBBBMBEJ); } if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(iNJPFALMDHJ); @@ -509,8 +509,8 @@ public final class RogueDialogueEventOuterClass { } } case 48: { - // eventUniqueId - eventUniqueId = input.readUInt32(); + // gBMDBBBMBEJ + gBMDBBBMBEJ = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 56) { @@ -579,7 +579,7 @@ public final class RogueDialogueEventOuterClass { output.writeUInt32(FieldNames.npcId, npcId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.eventUniqueId, eventUniqueId); + output.writeUInt32(FieldNames.gBMDBBBMBEJ, gBMDBBBMBEJ); } if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.iNJPFALMDHJ, iNJPFALMDHJ); @@ -615,11 +615,10 @@ public final class RogueDialogueEventOuterClass { } break; } - case 2091680134: - case -157385500: { - if (input.isAtField(FieldNames.eventUniqueId)) { + case -1904002038: { + if (input.isAtField(FieldNames.gBMDBBBMBEJ)) { if (!input.trySkipNullValue()) { - eventUniqueId = input.readUInt32(); + gBMDBBBMBEJ = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -729,7 +728,7 @@ public final class RogueDialogueEventOuterClass { static class FieldNames { static final FieldName npcId = FieldName.forField("npcId", "npc_id"); - static final FieldName eventUniqueId = FieldName.forField("eventUniqueId", "event_unique_id"); + static final FieldName gBMDBBBMBEJ = FieldName.forField("GBMDBBBMBEJ"); static final FieldName iNJPFALMDHJ = FieldName.forField("INJPFALMDHJ"); diff --git a/src/generated/main/emu/lunarcore/proto/RogueRoomInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueRoomInfoOuterClass.java deleted file mode 100644 index b418ef0..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueRoomInfoOuterClass.java +++ /dev/null @@ -1,494 +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 RogueRoomInfoOuterClass { - /** - * Protobuf type {@code RogueRoomInfo} - */ - public static final class RogueRoomInfo extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 site_id = 12; - */ - private int siteId; - - /** - *
-     * uint32 BNKNFOGGPMG = 6;
-     * 
- * - * optional uint32 room_id = 15; - */ - private int roomId; - - /** - *
-     * IOLBGHALAHK MHIHFPAFLDO = 8;
-     * 
- * - * optional .RogueRoomStatus room_status = 13; - */ - private int roomStatus; - - private RogueRoomInfo() { - } - - /** - * @return a new empty instance of {@code RogueRoomInfo} - */ - public static RogueRoomInfo newInstance() { - return new RogueRoomInfo(); - } - - /** - * optional uint32 site_id = 12; - * @return whether the siteId field is set - */ - public boolean hasSiteId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 site_id = 12; - * @return this - */ - public RogueRoomInfo clearSiteId() { - bitField0_ &= ~0x00000001; - siteId = 0; - return this; - } - - /** - * optional uint32 site_id = 12; - * @return the siteId - */ - public int getSiteId() { - return siteId; - } - - /** - * optional uint32 site_id = 12; - * @param value the siteId to set - * @return this - */ - public RogueRoomInfo setSiteId(final int value) { - bitField0_ |= 0x00000001; - siteId = value; - return this; - } - - /** - *
-     * uint32 BNKNFOGGPMG = 6;
-     * 
- * - * optional uint32 room_id = 15; - * @return whether the roomId field is set - */ - public boolean hasRoomId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - *
-     * uint32 BNKNFOGGPMG = 6;
-     * 
- * - * optional uint32 room_id = 15; - * @return this - */ - public RogueRoomInfo clearRoomId() { - bitField0_ &= ~0x00000002; - roomId = 0; - return this; - } - - /** - *
-     * uint32 BNKNFOGGPMG = 6;
-     * 
- * - * optional uint32 room_id = 15; - * @return the roomId - */ - public int getRoomId() { - return roomId; - } - - /** - *
-     * uint32 BNKNFOGGPMG = 6;
-     * 
- * - * optional uint32 room_id = 15; - * @param value the roomId to set - * @return this - */ - public RogueRoomInfo setRoomId(final int value) { - bitField0_ |= 0x00000002; - roomId = value; - return this; - } - - /** - *
-     * IOLBGHALAHK MHIHFPAFLDO = 8;
-     * 
- * - * optional .RogueRoomStatus room_status = 13; - * @return whether the roomStatus field is set - */ - public boolean hasRoomStatus() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - *
-     * IOLBGHALAHK MHIHFPAFLDO = 8;
-     * 
- * - * optional .RogueRoomStatus room_status = 13; - * @return this - */ - public RogueRoomInfo clearRoomStatus() { - bitField0_ &= ~0x00000004; - roomStatus = 0; - return this; - } - - /** - *
-     * IOLBGHALAHK MHIHFPAFLDO = 8;
-     * 
- * - * optional .RogueRoomStatus room_status = 13; - * @return the roomStatus - */ - public RogueRoomStatusOuterClass.RogueRoomStatus getRoomStatus() { - return RogueRoomStatusOuterClass.RogueRoomStatus.forNumber(roomStatus); - } - - /** - * Gets the value of the internal enum store. The result is - * equivalent to {@link RogueRoomInfo#getRoomStatus()}.getNumber(). - * - * @return numeric wire representation - */ - public int getRoomStatusValue() { - return roomStatus; - } - - /** - * 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 RogueRoomStatusOuterClass.RogueRoomStatus}. Setting an invalid value - * can cause {@link RogueRoomInfo#getRoomStatus()} to return null - * - * @param value the numeric wire value to set - * @return this - */ - public RogueRoomInfo setRoomStatusValue(final int value) { - bitField0_ |= 0x00000004; - roomStatus = value; - return this; - } - - /** - *
-     * IOLBGHALAHK MHIHFPAFLDO = 8;
-     * 
- * - * optional .RogueRoomStatus room_status = 13; - * @param value the roomStatus to set - * @return this - */ - public RogueRoomInfo setRoomStatus(final RogueRoomStatusOuterClass.RogueRoomStatus value) { - bitField0_ |= 0x00000004; - roomStatus = value.getNumber(); - return this; - } - - @Override - public RogueRoomInfo copyFrom(final RogueRoomInfo other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - siteId = other.siteId; - roomId = other.roomId; - roomStatus = other.roomStatus; - } - return this; - } - - @Override - public RogueRoomInfo mergeFrom(final RogueRoomInfo other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasSiteId()) { - setSiteId(other.siteId); - } - if (other.hasRoomId()) { - setRoomId(other.roomId); - } - if (other.hasRoomStatus()) { - setRoomStatusValue(other.roomStatus); - } - return this; - } - - @Override - public RogueRoomInfo clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - siteId = 0; - roomId = 0; - roomStatus = 0; - return this; - } - - @Override - public RogueRoomInfo 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 RogueRoomInfo)) { - return false; - } - RogueRoomInfo other = (RogueRoomInfo) o; - return bitField0_ == other.bitField0_ - && (!hasSiteId() || siteId == other.siteId) - && (!hasRoomId() || roomId == other.roomId) - && (!hasRoomStatus() || roomStatus == other.roomStatus); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 96); - output.writeUInt32NoTag(siteId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 120); - output.writeUInt32NoTag(roomId); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 104); - output.writeEnumNoTag(roomStatus); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(siteId); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(roomId); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeEnumSizeNoTag(roomStatus); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public RogueRoomInfo mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 96: { - // siteId - siteId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 120) { - break; - } - } - case 120: { - // roomId - roomId = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 104) { - break; - } - } - case 104: { - // roomStatus - final int value = input.readInt32(); - if (RogueRoomStatusOuterClass.RogueRoomStatus.forNumber(value) != null) { - roomStatus = value; - 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.siteId, siteId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.roomId, roomId); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeEnum(FieldNames.roomStatus, roomStatus, RogueRoomStatusOuterClass.RogueRoomStatus.converter()); - } - output.endObject(); - } - - @Override - public RogueRoomInfo mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -902090046: - case 2100001043: { - if (input.isAtField(FieldNames.siteId)) { - if (!input.trySkipNullValue()) { - siteId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -925319338: - case 1379892991: { - if (input.isAtField(FieldNames.roomId)) { - if (!input.trySkipNullValue()) { - roomId = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case 926739629: - case 712617942: { - if (input.isAtField(FieldNames.roomStatus)) { - if (!input.trySkipNullValue()) { - final RogueRoomStatusOuterClass.RogueRoomStatus value = input.readEnum(RogueRoomStatusOuterClass.RogueRoomStatus.converter()); - if (value != null) { - roomStatus = value.getNumber(); - bitField0_ |= 0x00000004; - } else { - input.skipUnknownEnumValue(); - } - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public RogueRoomInfo clone() { - return new RogueRoomInfo().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static RogueRoomInfo parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueRoomInfo(), data).checkInitialized(); - } - - public static RogueRoomInfo parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueRoomInfo(), input).checkInitialized(); - } - - public static RogueRoomInfo parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueRoomInfo(), input).checkInitialized(); - } - - /** - * @return factory for creating RogueRoomInfo messages - */ - public static MessageFactory getFactory() { - return RogueRoomInfoFactory.INSTANCE; - } - - private enum RogueRoomInfoFactory implements MessageFactory { - INSTANCE; - - @Override - public RogueRoomInfo create() { - return RogueRoomInfo.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName siteId = FieldName.forField("siteId", "site_id"); - - static final FieldName roomId = FieldName.forField("roomId", "room_id"); - - static final FieldName roomStatus = FieldName.forField("roomStatus", "room_status"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueUpdateOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueUpdateOuterClass.java deleted file mode 100644 index 0a34703..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueUpdateOuterClass.java +++ /dev/null @@ -1,421 +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 RogueUpdateOuterClass { - /** - * Protobuf type {@code RogueUpdate} - */ - public static final class RogueUpdate extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 last_common_area_id = 7; - */ - private int lastCommonAreaId; - - /** - * optional uint32 last_rogue_type_id = 8; - */ - private int lastRogueTypeId; - - /** - * optional uint32 rogue_type_id = 12; - */ - private int rogueTypeId; - - private RogueUpdate() { - } - - /** - * @return a new empty instance of {@code RogueUpdate} - */ - public static RogueUpdate newInstance() { - return new RogueUpdate(); - } - - /** - * optional uint32 last_common_area_id = 7; - * @return whether the lastCommonAreaId field is set - */ - public boolean hasLastCommonAreaId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 last_common_area_id = 7; - * @return this - */ - public RogueUpdate clearLastCommonAreaId() { - bitField0_ &= ~0x00000001; - lastCommonAreaId = 0; - return this; - } - - /** - * optional uint32 last_common_area_id = 7; - * @return the lastCommonAreaId - */ - public int getLastCommonAreaId() { - return lastCommonAreaId; - } - - /** - * optional uint32 last_common_area_id = 7; - * @param value the lastCommonAreaId to set - * @return this - */ - public RogueUpdate setLastCommonAreaId(final int value) { - bitField0_ |= 0x00000001; - lastCommonAreaId = value; - return this; - } - - /** - * optional uint32 last_rogue_type_id = 8; - * @return whether the lastRogueTypeId field is set - */ - public boolean hasLastRogueTypeId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 last_rogue_type_id = 8; - * @return this - */ - public RogueUpdate clearLastRogueTypeId() { - bitField0_ &= ~0x00000002; - lastRogueTypeId = 0; - return this; - } - - /** - * optional uint32 last_rogue_type_id = 8; - * @return the lastRogueTypeId - */ - public int getLastRogueTypeId() { - return lastRogueTypeId; - } - - /** - * optional uint32 last_rogue_type_id = 8; - * @param value the lastRogueTypeId to set - * @return this - */ - public RogueUpdate setLastRogueTypeId(final int value) { - bitField0_ |= 0x00000002; - lastRogueTypeId = value; - return this; - } - - /** - * optional uint32 rogue_type_id = 12; - * @return whether the rogueTypeId field is set - */ - public boolean hasRogueTypeId() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 rogue_type_id = 12; - * @return this - */ - public RogueUpdate clearRogueTypeId() { - bitField0_ &= ~0x00000004; - rogueTypeId = 0; - return this; - } - - /** - * optional uint32 rogue_type_id = 12; - * @return the rogueTypeId - */ - public int getRogueTypeId() { - return rogueTypeId; - } - - /** - * optional uint32 rogue_type_id = 12; - * @param value the rogueTypeId to set - * @return this - */ - public RogueUpdate setRogueTypeId(final int value) { - bitField0_ |= 0x00000004; - rogueTypeId = value; - return this; - } - - @Override - public RogueUpdate copyFrom(final RogueUpdate other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - lastCommonAreaId = other.lastCommonAreaId; - lastRogueTypeId = other.lastRogueTypeId; - rogueTypeId = other.rogueTypeId; - } - return this; - } - - @Override - public RogueUpdate mergeFrom(final RogueUpdate other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasLastCommonAreaId()) { - setLastCommonAreaId(other.lastCommonAreaId); - } - if (other.hasLastRogueTypeId()) { - setLastRogueTypeId(other.lastRogueTypeId); - } - if (other.hasRogueTypeId()) { - setRogueTypeId(other.rogueTypeId); - } - return this; - } - - @Override - public RogueUpdate clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - lastCommonAreaId = 0; - lastRogueTypeId = 0; - rogueTypeId = 0; - return this; - } - - @Override - public RogueUpdate 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 RogueUpdate)) { - return false; - } - RogueUpdate other = (RogueUpdate) o; - return bitField0_ == other.bitField0_ - && (!hasLastCommonAreaId() || lastCommonAreaId == other.lastCommonAreaId) - && (!hasLastRogueTypeId() || lastRogueTypeId == other.lastRogueTypeId) - && (!hasRogueTypeId() || rogueTypeId == other.rogueTypeId); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 56); - output.writeUInt32NoTag(lastCommonAreaId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 64); - output.writeUInt32NoTag(lastRogueTypeId); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 96); - output.writeUInt32NoTag(rogueTypeId); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(lastCommonAreaId); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(lastRogueTypeId); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(rogueTypeId); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public RogueUpdate mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 56: { - // lastCommonAreaId - lastCommonAreaId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 64) { - break; - } - } - case 64: { - // lastRogueTypeId - lastRogueTypeId = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 96) { - break; - } - } - case 96: { - // rogueTypeId - rogueTypeId = input.readUInt32(); - 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.lastCommonAreaId, lastCommonAreaId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.lastRogueTypeId, lastRogueTypeId); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.rogueTypeId, rogueTypeId); - } - output.endObject(); - } - - @Override - public RogueUpdate mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -1313973751: - case 2061831298: { - if (input.isAtField(FieldNames.lastCommonAreaId)) { - if (!input.trySkipNullValue()) { - lastCommonAreaId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1384811513: - case 1305719026: { - if (input.isAtField(FieldNames.lastRogueTypeId)) { - if (!input.trySkipNullValue()) { - lastRogueTypeId = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case -802434961: - case -223704357: { - if (input.isAtField(FieldNames.rogueTypeId)) { - if (!input.trySkipNullValue()) { - rogueTypeId = input.readUInt32(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public RogueUpdate clone() { - return new RogueUpdate().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static RogueUpdate parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueUpdate(), data).checkInitialized(); - } - - public static RogueUpdate parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueUpdate(), input).checkInitialized(); - } - - public static RogueUpdate parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueUpdate(), input).checkInitialized(); - } - - /** - * @return factory for creating RogueUpdate messages - */ - public static MessageFactory getFactory() { - return RogueUpdateFactory.INSTANCE; - } - - private enum RogueUpdateFactory implements MessageFactory { - INSTANCE; - - @Override - public RogueUpdate create() { - return RogueUpdate.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName lastCommonAreaId = FieldName.forField("lastCommonAreaId", "last_common_area_id"); - - static final FieldName lastRogueTypeId = FieldName.forField("lastRogueTypeId", "last_rogue_type_id"); - - static final FieldName rogueTypeId = FieldName.forField("rogueTypeId", "rogue_type_id"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RotateMapCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/RotateMapCsReqOuterClass.java new file mode 100644 index 0000000..a4e4d46 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RotateMapCsReqOuterClass.java @@ -0,0 +1,1395 @@ +// 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.ProtoUtil; + +public final class RotateMapCsReqOuterClass { + /** + * Protobuf type {@code RotateMapCsReq} + */ + public static final class RotateMapCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 unk_int = 8; + */ + private int unkInt; + + /** + * optional uint32 group_id = 11; + */ + private int groupId; + + /** + * optional .MotionInfo motion = 2; + */ + private final MotionInfoOuterClass.MotionInfo motion = MotionInfoOuterClass.MotionInfo.newInstance(); + + /** + * optional .RotateMapCsReq.LHBLGBPKEAL rogue_map = 9; + */ + private final LHBLGBPKEAL rogueMap = LHBLGBPKEAL.newInstance(); + + private RotateMapCsReq() { + } + + /** + * @return a new empty instance of {@code RotateMapCsReq} + */ + public static RotateMapCsReq newInstance() { + return new RotateMapCsReq(); + } + + /** + * optional uint32 unk_int = 8; + * @return whether the unkInt field is set + */ + public boolean hasUnkInt() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 unk_int = 8; + * @return this + */ + public RotateMapCsReq clearUnkInt() { + bitField0_ &= ~0x00000001; + unkInt = 0; + return this; + } + + /** + * optional uint32 unk_int = 8; + * @return the unkInt + */ + public int getUnkInt() { + return unkInt; + } + + /** + * optional uint32 unk_int = 8; + * @param value the unkInt to set + * @return this + */ + public RotateMapCsReq setUnkInt(final int value) { + bitField0_ |= 0x00000001; + unkInt = value; + return this; + } + + /** + * optional uint32 group_id = 11; + * @return whether the groupId field is set + */ + public boolean hasGroupId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 group_id = 11; + * @return this + */ + public RotateMapCsReq clearGroupId() { + bitField0_ &= ~0x00000002; + groupId = 0; + return this; + } + + /** + * optional uint32 group_id = 11; + * @return the groupId + */ + public int getGroupId() { + return groupId; + } + + /** + * optional uint32 group_id = 11; + * @param value the groupId to set + * @return this + */ + public RotateMapCsReq setGroupId(final int value) { + bitField0_ |= 0x00000002; + groupId = value; + return this; + } + + /** + * optional .MotionInfo motion = 2; + * @return whether the motion field is set + */ + public boolean hasMotion() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .MotionInfo motion = 2; + * @return this + */ + public RotateMapCsReq clearMotion() { + bitField0_ &= ~0x00000004; + motion.clear(); + return this; + } + + /** + * optional .MotionInfo motion = 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 #getMutableMotion()} if you want to modify it. + * + * @return internal storage object for reading + */ + public MotionInfoOuterClass.MotionInfo getMotion() { + return motion; + } + + /** + * optional .MotionInfo motion = 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 + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public MotionInfoOuterClass.MotionInfo getMutableMotion() { + bitField0_ |= 0x00000004; + return motion; + } + + /** + * optional .MotionInfo motion = 2; + * @param value the motion to set + * @return this + */ + public RotateMapCsReq setMotion(final MotionInfoOuterClass.MotionInfo value) { + bitField0_ |= 0x00000004; + motion.copyFrom(value); + return this; + } + + /** + * optional .RotateMapCsReq.LHBLGBPKEAL rogue_map = 9; + * @return whether the rogueMap field is set + */ + public boolean hasRogueMap() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .RotateMapCsReq.LHBLGBPKEAL rogue_map = 9; + * @return this + */ + public RotateMapCsReq clearRogueMap() { + bitField0_ &= ~0x00000008; + rogueMap.clear(); + return this; + } + + /** + * optional .RotateMapCsReq.LHBLGBPKEAL rogue_map = 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 #getMutableRogueMap()} if you want to modify it. + * + * @return internal storage object for reading + */ + public LHBLGBPKEAL getRogueMap() { + return rogueMap; + } + + /** + * optional .RotateMapCsReq.LHBLGBPKEAL rogue_map = 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 + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public LHBLGBPKEAL getMutableRogueMap() { + bitField0_ |= 0x00000008; + return rogueMap; + } + + /** + * optional .RotateMapCsReq.LHBLGBPKEAL rogue_map = 9; + * @param value the rogueMap to set + * @return this + */ + public RotateMapCsReq setRogueMap(final LHBLGBPKEAL value) { + bitField0_ |= 0x00000008; + rogueMap.copyFrom(value); + return this; + } + + @Override + public RotateMapCsReq copyFrom(final RotateMapCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + unkInt = other.unkInt; + groupId = other.groupId; + motion.copyFrom(other.motion); + rogueMap.copyFrom(other.rogueMap); + } + return this; + } + + @Override + public RotateMapCsReq mergeFrom(final RotateMapCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasUnkInt()) { + setUnkInt(other.unkInt); + } + if (other.hasGroupId()) { + setGroupId(other.groupId); + } + if (other.hasMotion()) { + getMutableMotion().mergeFrom(other.motion); + } + if (other.hasRogueMap()) { + getMutableRogueMap().mergeFrom(other.rogueMap); + } + return this; + } + + @Override + public RotateMapCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + unkInt = 0; + groupId = 0; + motion.clear(); + rogueMap.clear(); + return this; + } + + @Override + public RotateMapCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + motion.clearQuick(); + rogueMap.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RotateMapCsReq)) { + return false; + } + RotateMapCsReq other = (RotateMapCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasUnkInt() || unkInt == other.unkInt) + && (!hasGroupId() || groupId == other.groupId) + && (!hasMotion() || motion.equals(other.motion)) + && (!hasRogueMap() || rogueMap.equals(other.rogueMap)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(unkInt); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(groupId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(motion); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 74); + output.writeMessageNoTag(rogueMap); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(unkInt); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(motion); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(rogueMap); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RotateMapCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 64: { + // unkInt + unkInt = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { + // groupId + groupId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // motion + input.readMessage(motion); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 74) { + break; + } + } + case 74: { + // rogueMap + input.readMessage(rogueMap); + bitField0_ |= 0x00000008; + 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.unkInt, unkInt); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.groupId, groupId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.motion, motion); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeMessage(FieldNames.rogueMap, rogueMap); + } + output.endObject(); + } + + @Override + public RotateMapCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -840508003: + case -285293790: { + if (input.isAtField(FieldNames.unkInt)) { + if (!input.trySkipNullValue()) { + unkInt = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 293428218: + case 506361563: { + if (input.isAtField(FieldNames.groupId)) { + if (!input.trySkipNullValue()) { + groupId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1068318794: { + if (input.isAtField(FieldNames.motion)) { + if (!input.trySkipNullValue()) { + input.readMessage(motion); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -394483422: + case 656463223: { + if (input.isAtField(FieldNames.rogueMap)) { + if (!input.trySkipNullValue()) { + input.readMessage(rogueMap); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RotateMapCsReq clone() { + return new RotateMapCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RotateMapCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RotateMapCsReq(), data).checkInitialized(); + } + + public static RotateMapCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RotateMapCsReq(), input).checkInitialized(); + } + + public static RotateMapCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RotateMapCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating RotateMapCsReq messages + */ + public static MessageFactory getFactory() { + return RotateMapCsReqFactory.INSTANCE; + } + + /** + * Protobuf type {@code ICOFBBCMENF} + */ + public static final class ICOFBBCMENF extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional float FAAFKIAENEO = 2; + */ + private float fAAFKIAENEO; + + /** + * optional float y = 3; + */ + private float y; + + /** + * optional float z = 4; + */ + private float z; + + /** + * optional float x = 15; + */ + private float x; + + private ICOFBBCMENF() { + } + + /** + * @return a new empty instance of {@code ICOFBBCMENF} + */ + public static ICOFBBCMENF newInstance() { + return new ICOFBBCMENF(); + } + + /** + * optional float FAAFKIAENEO = 2; + * @return whether the fAAFKIAENEO field is set + */ + public boolean hasFAAFKIAENEO() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional float FAAFKIAENEO = 2; + * @return this + */ + public ICOFBBCMENF clearFAAFKIAENEO() { + bitField0_ &= ~0x00000001; + fAAFKIAENEO = 0F; + return this; + } + + /** + * optional float FAAFKIAENEO = 2; + * @return the fAAFKIAENEO + */ + public float getFAAFKIAENEO() { + return fAAFKIAENEO; + } + + /** + * optional float FAAFKIAENEO = 2; + * @param value the fAAFKIAENEO to set + * @return this + */ + public ICOFBBCMENF setFAAFKIAENEO(final float value) { + bitField0_ |= 0x00000001; + fAAFKIAENEO = value; + return this; + } + + /** + * optional float y = 3; + * @return whether the y field is set + */ + public boolean hasY() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional float y = 3; + * @return this + */ + public ICOFBBCMENF clearY() { + bitField0_ &= ~0x00000002; + y = 0F; + return this; + } + + /** + * optional float y = 3; + * @return the y + */ + public float getY() { + return y; + } + + /** + * optional float y = 3; + * @param value the y to set + * @return this + */ + public ICOFBBCMENF setY(final float value) { + bitField0_ |= 0x00000002; + y = value; + return this; + } + + /** + * optional float z = 4; + * @return whether the z field is set + */ + public boolean hasZ() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional float z = 4; + * @return this + */ + public ICOFBBCMENF clearZ() { + bitField0_ &= ~0x00000004; + z = 0F; + return this; + } + + /** + * optional float z = 4; + * @return the z + */ + public float getZ() { + return z; + } + + /** + * optional float z = 4; + * @param value the z to set + * @return this + */ + public ICOFBBCMENF setZ(final float value) { + bitField0_ |= 0x00000004; + z = value; + return this; + } + + /** + * optional float x = 15; + * @return whether the x field is set + */ + public boolean hasX() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional float x = 15; + * @return this + */ + public ICOFBBCMENF clearX() { + bitField0_ &= ~0x00000008; + x = 0F; + return this; + } + + /** + * optional float x = 15; + * @return the x + */ + public float getX() { + return x; + } + + /** + * optional float x = 15; + * @param value the x to set + * @return this + */ + public ICOFBBCMENF setX(final float value) { + bitField0_ |= 0x00000008; + x = value; + return this; + } + + @Override + public ICOFBBCMENF copyFrom(final ICOFBBCMENF other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + fAAFKIAENEO = other.fAAFKIAENEO; + y = other.y; + z = other.z; + x = other.x; + } + return this; + } + + @Override + public ICOFBBCMENF mergeFrom(final ICOFBBCMENF other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasFAAFKIAENEO()) { + setFAAFKIAENEO(other.fAAFKIAENEO); + } + if (other.hasY()) { + setY(other.y); + } + if (other.hasZ()) { + setZ(other.z); + } + if (other.hasX()) { + setX(other.x); + } + return this; + } + + @Override + public ICOFBBCMENF clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + fAAFKIAENEO = 0F; + y = 0F; + z = 0F; + x = 0F; + return this; + } + + @Override + public ICOFBBCMENF 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 ICOFBBCMENF)) { + return false; + } + ICOFBBCMENF other = (ICOFBBCMENF) o; + return bitField0_ == other.bitField0_ + && (!hasFAAFKIAENEO() || ProtoUtil.isEqual(fAAFKIAENEO, other.fAAFKIAENEO)) + && (!hasY() || ProtoUtil.isEqual(y, other.y)) + && (!hasZ() || ProtoUtil.isEqual(z, other.z)) + && (!hasX() || ProtoUtil.isEqual(x, other.x)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 21); + output.writeFloatNoTag(fAAFKIAENEO); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 29); + output.writeFloatNoTag(y); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 37); + output.writeFloatNoTag(z); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 125); + output.writeFloatNoTag(x); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 5; + } + if ((bitField0_ & 0x00000002) != 0) { + size += 5; + } + if ((bitField0_ & 0x00000004) != 0) { + size += 5; + } + if ((bitField0_ & 0x00000008) != 0) { + size += 5; + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ICOFBBCMENF mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 21: { + // fAAFKIAENEO + fAAFKIAENEO = input.readFloat(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 29) { + break; + } + } + case 29: { + // y + y = input.readFloat(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 37) { + break; + } + } + case 37: { + // z + z = input.readFloat(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 125) { + break; + } + } + case 125: { + // x + x = input.readFloat(); + bitField0_ |= 0x00000008; + 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.writeFloat(FieldNames.fAAFKIAENEO, fAAFKIAENEO); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeFloat(FieldNames.y, y); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeFloat(FieldNames.z, z); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeFloat(FieldNames.x, x); + } + output.endObject(); + } + + @Override + public ICOFBBCMENF mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -908414442: { + if (input.isAtField(FieldNames.fAAFKIAENEO)) { + if (!input.trySkipNullValue()) { + fAAFKIAENEO = input.readFloat(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 121: { + if (input.isAtField(FieldNames.y)) { + if (!input.trySkipNullValue()) { + y = input.readFloat(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 122: { + if (input.isAtField(FieldNames.z)) { + if (!input.trySkipNullValue()) { + z = input.readFloat(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 120: { + if (input.isAtField(FieldNames.x)) { + if (!input.trySkipNullValue()) { + x = input.readFloat(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ICOFBBCMENF clone() { + return new ICOFBBCMENF().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ICOFBBCMENF parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ICOFBBCMENF(), data).checkInitialized(); + } + + public static ICOFBBCMENF parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ICOFBBCMENF(), input).checkInitialized(); + } + + public static ICOFBBCMENF parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ICOFBBCMENF(), input).checkInitialized(); + } + + /** + * @return factory for creating ICOFBBCMENF messages + */ + public static MessageFactory getFactory() { + return ICOFBBCMENFFactory.INSTANCE; + } + + private enum ICOFBBCMENFFactory implements MessageFactory { + INSTANCE; + + @Override + public ICOFBBCMENF create() { + return ICOFBBCMENF.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName fAAFKIAENEO = FieldName.forField("FAAFKIAENEO"); + + static final FieldName y = FieldName.forField("y"); + + static final FieldName z = FieldName.forField("z"); + + static final FieldName x = FieldName.forField("x"); + } + } + + /** + * Protobuf type {@code LHBLGBPKEAL} + */ + public static final class LHBLGBPKEAL extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .RotateMapCsReq.ICOFBBCMENF JBCABOABIDI = 9; + */ + private final ICOFBBCMENF jBCABOABIDI = ICOFBBCMENF.newInstance(); + + /** + * optional .Vector IENLJAFIBOL = 15; + */ + private final VectorOuterClass.Vector iENLJAFIBOL = VectorOuterClass.Vector.newInstance(); + + private LHBLGBPKEAL() { + } + + /** + * @return a new empty instance of {@code LHBLGBPKEAL} + */ + public static LHBLGBPKEAL newInstance() { + return new LHBLGBPKEAL(); + } + + /** + * optional .RotateMapCsReq.ICOFBBCMENF JBCABOABIDI = 9; + * @return whether the jBCABOABIDI field is set + */ + public boolean hasJBCABOABIDI() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .RotateMapCsReq.ICOFBBCMENF JBCABOABIDI = 9; + * @return this + */ + public LHBLGBPKEAL clearJBCABOABIDI() { + bitField0_ &= ~0x00000001; + jBCABOABIDI.clear(); + return this; + } + + /** + * optional .RotateMapCsReq.ICOFBBCMENF JBCABOABIDI = 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 #getMutableJBCABOABIDI()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ICOFBBCMENF getJBCABOABIDI() { + return jBCABOABIDI; + } + + /** + * optional .RotateMapCsReq.ICOFBBCMENF JBCABOABIDI = 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 + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public ICOFBBCMENF getMutableJBCABOABIDI() { + bitField0_ |= 0x00000001; + return jBCABOABIDI; + } + + /** + * optional .RotateMapCsReq.ICOFBBCMENF JBCABOABIDI = 9; + * @param value the jBCABOABIDI to set + * @return this + */ + public LHBLGBPKEAL setJBCABOABIDI(final ICOFBBCMENF value) { + bitField0_ |= 0x00000001; + jBCABOABIDI.copyFrom(value); + return this; + } + + /** + * optional .Vector IENLJAFIBOL = 15; + * @return whether the iENLJAFIBOL field is set + */ + public boolean hasIENLJAFIBOL() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .Vector IENLJAFIBOL = 15; + * @return this + */ + public LHBLGBPKEAL clearIENLJAFIBOL() { + bitField0_ &= ~0x00000002; + iENLJAFIBOL.clear(); + return this; + } + + /** + * optional .Vector IENLJAFIBOL = 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 #getMutableIENLJAFIBOL()} if you want to modify it. + * + * @return internal storage object for reading + */ + public VectorOuterClass.Vector getIENLJAFIBOL() { + return iENLJAFIBOL; + } + + /** + * optional .Vector IENLJAFIBOL = 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 VectorOuterClass.Vector getMutableIENLJAFIBOL() { + bitField0_ |= 0x00000002; + return iENLJAFIBOL; + } + + /** + * optional .Vector IENLJAFIBOL = 15; + * @param value the iENLJAFIBOL to set + * @return this + */ + public LHBLGBPKEAL setIENLJAFIBOL(final VectorOuterClass.Vector value) { + bitField0_ |= 0x00000002; + iENLJAFIBOL.copyFrom(value); + return this; + } + + @Override + public LHBLGBPKEAL copyFrom(final LHBLGBPKEAL other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + jBCABOABIDI.copyFrom(other.jBCABOABIDI); + iENLJAFIBOL.copyFrom(other.iENLJAFIBOL); + } + return this; + } + + @Override + public LHBLGBPKEAL mergeFrom(final LHBLGBPKEAL other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasJBCABOABIDI()) { + getMutableJBCABOABIDI().mergeFrom(other.jBCABOABIDI); + } + if (other.hasIENLJAFIBOL()) { + getMutableIENLJAFIBOL().mergeFrom(other.iENLJAFIBOL); + } + return this; + } + + @Override + public LHBLGBPKEAL clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + jBCABOABIDI.clear(); + iENLJAFIBOL.clear(); + return this; + } + + @Override + public LHBLGBPKEAL clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + jBCABOABIDI.clearQuick(); + iENLJAFIBOL.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof LHBLGBPKEAL)) { + return false; + } + LHBLGBPKEAL other = (LHBLGBPKEAL) o; + return bitField0_ == other.bitField0_ + && (!hasJBCABOABIDI() || jBCABOABIDI.equals(other.jBCABOABIDI)) + && (!hasIENLJAFIBOL() || iENLJAFIBOL.equals(other.iENLJAFIBOL)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 74); + output.writeMessageNoTag(jBCABOABIDI); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 122); + output.writeMessageNoTag(iENLJAFIBOL); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(jBCABOABIDI); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(iENLJAFIBOL); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public LHBLGBPKEAL mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 74: { + // jBCABOABIDI + input.readMessage(jBCABOABIDI); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 122) { + break; + } + } + case 122: { + // iENLJAFIBOL + input.readMessage(iENLJAFIBOL); + 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.writeMessage(FieldNames.jBCABOABIDI, jBCABOABIDI); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.iENLJAFIBOL, iENLJAFIBOL); + } + output.endObject(); + } + + @Override + public LHBLGBPKEAL mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1627224650: { + if (input.isAtField(FieldNames.jBCABOABIDI)) { + if (!input.trySkipNullValue()) { + input.readMessage(jBCABOABIDI); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 237656587: { + if (input.isAtField(FieldNames.iENLJAFIBOL)) { + if (!input.trySkipNullValue()) { + input.readMessage(iENLJAFIBOL); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public LHBLGBPKEAL clone() { + return new LHBLGBPKEAL().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static LHBLGBPKEAL parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new LHBLGBPKEAL(), data).checkInitialized(); + } + + public static LHBLGBPKEAL parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new LHBLGBPKEAL(), input).checkInitialized(); + } + + public static LHBLGBPKEAL parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new LHBLGBPKEAL(), input).checkInitialized(); + } + + /** + * @return factory for creating LHBLGBPKEAL messages + */ + public static MessageFactory getFactory() { + return LHBLGBPKEALFactory.INSTANCE; + } + + private enum LHBLGBPKEALFactory implements MessageFactory { + INSTANCE; + + @Override + public LHBLGBPKEAL create() { + return LHBLGBPKEAL.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName jBCABOABIDI = FieldName.forField("JBCABOABIDI"); + + static final FieldName iENLJAFIBOL = FieldName.forField("IENLJAFIBOL"); + } + } + + private enum RotateMapCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public RotateMapCsReq create() { + return RotateMapCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName unkInt = FieldName.forField("unkInt", "unk_int"); + + static final FieldName groupId = FieldName.forField("groupId", "group_id"); + + static final FieldName motion = FieldName.forField("motion"); + + static final FieldName rogueMap = FieldName.forField("rogueMap", "rogue_map"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RotateMapScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/RotateMapScRspOuterClass.java new file mode 100644 index 0000000..321a0bf --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RotateMapScRspOuterClass.java @@ -0,0 +1,441 @@ +// 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 RotateMapScRspOuterClass { + /** + * Protobuf type {@code RotateMapScRsp} + */ + public static final class RotateMapScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 1; + */ + private int retcode; + + /** + * optional uint32 client_pos_version = 14; + */ + private int clientPosVersion; + + /** + * optional .MotionInfo motion = 13; + */ + private final MotionInfoOuterClass.MotionInfo motion = MotionInfoOuterClass.MotionInfo.newInstance(); + + private RotateMapScRsp() { + } + + /** + * @return a new empty instance of {@code RotateMapScRsp} + */ + public static RotateMapScRsp newInstance() { + return new RotateMapScRsp(); + } + + /** + * optional uint32 retcode = 1; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 1; + * @return this + */ + public RotateMapScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 1; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 1; + * @param value the retcode to set + * @return this + */ + public RotateMapScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * optional uint32 client_pos_version = 14; + * @return whether the clientPosVersion field is set + */ + public boolean hasClientPosVersion() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 client_pos_version = 14; + * @return this + */ + public RotateMapScRsp clearClientPosVersion() { + bitField0_ &= ~0x00000002; + clientPosVersion = 0; + return this; + } + + /** + * optional uint32 client_pos_version = 14; + * @return the clientPosVersion + */ + public int getClientPosVersion() { + return clientPosVersion; + } + + /** + * optional uint32 client_pos_version = 14; + * @param value the clientPosVersion to set + * @return this + */ + public RotateMapScRsp setClientPosVersion(final int value) { + bitField0_ |= 0x00000002; + clientPosVersion = value; + return this; + } + + /** + * optional .MotionInfo motion = 13; + * @return whether the motion field is set + */ + public boolean hasMotion() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .MotionInfo motion = 13; + * @return this + */ + public RotateMapScRsp clearMotion() { + bitField0_ &= ~0x00000004; + motion.clear(); + return this; + } + + /** + * 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 #getMutableMotion()} if you want to modify it. + * + * @return internal storage object for reading + */ + public MotionInfoOuterClass.MotionInfo getMotion() { + return motion; + } + + /** + * 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 + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public MotionInfoOuterClass.MotionInfo getMutableMotion() { + bitField0_ |= 0x00000004; + return motion; + } + + /** + * optional .MotionInfo motion = 13; + * @param value the motion to set + * @return this + */ + public RotateMapScRsp setMotion(final MotionInfoOuterClass.MotionInfo value) { + bitField0_ |= 0x00000004; + motion.copyFrom(value); + return this; + } + + @Override + public RotateMapScRsp copyFrom(final RotateMapScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + clientPosVersion = other.clientPosVersion; + motion.copyFrom(other.motion); + } + return this; + } + + @Override + public RotateMapScRsp mergeFrom(final RotateMapScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasClientPosVersion()) { + setClientPosVersion(other.clientPosVersion); + } + if (other.hasMotion()) { + getMutableMotion().mergeFrom(other.motion); + } + return this; + } + + @Override + public RotateMapScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + clientPosVersion = 0; + motion.clear(); + return this; + } + + @Override + public RotateMapScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + motion.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RotateMapScRsp)) { + return false; + } + RotateMapScRsp other = (RotateMapScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!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(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(clientPosVersion); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 106); + output.writeMessageNoTag(motion); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(clientPosVersion); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(motion); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RotateMapScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // clientPosVersion + clientPosVersion = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 106) { + break; + } + } + case 106: { + // motion + input.readMessage(motion); + 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.retcode, retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.clientPosVersion, clientPosVersion); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.motion, motion); + } + output.endObject(); + } + + @Override + public RotateMapScRsp 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 1787644431: + case 1278860153: { + if (input.isAtField(FieldNames.clientPosVersion)) { + if (!input.trySkipNullValue()) { + clientPosVersion = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1068318794: { + if (input.isAtField(FieldNames.motion)) { + if (!input.trySkipNullValue()) { + input.readMessage(motion); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RotateMapScRsp clone() { + return new RotateMapScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RotateMapScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RotateMapScRsp(), data).checkInitialized(); + } + + public static RotateMapScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RotateMapScRsp(), input).checkInitialized(); + } + + public static RotateMapScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RotateMapScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating RotateMapScRsp messages + */ + public static MessageFactory getFactory() { + return RotateMapScRspFactory.INSTANCE; + } + + private enum RotateMapScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public RotateMapScRsp create() { + return RotateMapScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + 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/RotaterDataOuterClass.java b/src/generated/main/emu/lunarcore/proto/RotaterDataOuterClass.java new file mode 100644 index 0000000..079e0d7 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RotaterDataOuterClass.java @@ -0,0 +1,420 @@ +// 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.ProtoUtil; + +public final class RotaterDataOuterClass { + /** + * Protobuf type {@code RotaterData} + */ + public static final class RotaterData extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional float GNECDPPELLO = 8; + */ + private float gNECDPPELLO; + + /** + * optional uint32 group_id = 3; + */ + private int groupId; + + /** + * optional uint32 BPFADJDEGHP = 5; + */ + private int bPFADJDEGHP; + + private RotaterData() { + } + + /** + * @return a new empty instance of {@code RotaterData} + */ + public static RotaterData newInstance() { + return new RotaterData(); + } + + /** + * optional float GNECDPPELLO = 8; + * @return whether the gNECDPPELLO field is set + */ + public boolean hasGNECDPPELLO() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional float GNECDPPELLO = 8; + * @return this + */ + public RotaterData clearGNECDPPELLO() { + bitField0_ &= ~0x00000001; + gNECDPPELLO = 0F; + return this; + } + + /** + * optional float GNECDPPELLO = 8; + * @return the gNECDPPELLO + */ + public float getGNECDPPELLO() { + return gNECDPPELLO; + } + + /** + * optional float GNECDPPELLO = 8; + * @param value the gNECDPPELLO to set + * @return this + */ + public RotaterData setGNECDPPELLO(final float value) { + bitField0_ |= 0x00000001; + gNECDPPELLO = value; + return this; + } + + /** + * optional uint32 group_id = 3; + * @return whether the groupId field is set + */ + public boolean hasGroupId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 group_id = 3; + * @return this + */ + public RotaterData clearGroupId() { + bitField0_ &= ~0x00000002; + groupId = 0; + return this; + } + + /** + * optional uint32 group_id = 3; + * @return the groupId + */ + public int getGroupId() { + return groupId; + } + + /** + * optional uint32 group_id = 3; + * @param value the groupId to set + * @return this + */ + public RotaterData setGroupId(final int value) { + bitField0_ |= 0x00000002; + groupId = value; + return this; + } + + /** + * optional uint32 BPFADJDEGHP = 5; + * @return whether the bPFADJDEGHP field is set + */ + public boolean hasBPFADJDEGHP() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 BPFADJDEGHP = 5; + * @return this + */ + public RotaterData clearBPFADJDEGHP() { + bitField0_ &= ~0x00000004; + bPFADJDEGHP = 0; + return this; + } + + /** + * optional uint32 BPFADJDEGHP = 5; + * @return the bPFADJDEGHP + */ + public int getBPFADJDEGHP() { + return bPFADJDEGHP; + } + + /** + * optional uint32 BPFADJDEGHP = 5; + * @param value the bPFADJDEGHP to set + * @return this + */ + public RotaterData setBPFADJDEGHP(final int value) { + bitField0_ |= 0x00000004; + bPFADJDEGHP = value; + return this; + } + + @Override + public RotaterData copyFrom(final RotaterData other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + gNECDPPELLO = other.gNECDPPELLO; + groupId = other.groupId; + bPFADJDEGHP = other.bPFADJDEGHP; + } + return this; + } + + @Override + public RotaterData mergeFrom(final RotaterData other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasGNECDPPELLO()) { + setGNECDPPELLO(other.gNECDPPELLO); + } + if (other.hasGroupId()) { + setGroupId(other.groupId); + } + if (other.hasBPFADJDEGHP()) { + setBPFADJDEGHP(other.bPFADJDEGHP); + } + return this; + } + + @Override + public RotaterData clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + gNECDPPELLO = 0F; + groupId = 0; + bPFADJDEGHP = 0; + return this; + } + + @Override + public RotaterData 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 RotaterData)) { + return false; + } + RotaterData other = (RotaterData) o; + return bitField0_ == other.bitField0_ + && (!hasGNECDPPELLO() || ProtoUtil.isEqual(gNECDPPELLO, other.gNECDPPELLO)) + && (!hasGroupId() || groupId == other.groupId) + && (!hasBPFADJDEGHP() || bPFADJDEGHP == other.bPFADJDEGHP); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 69); + output.writeFloatNoTag(gNECDPPELLO); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(groupId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(bPFADJDEGHP); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 5; + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(bPFADJDEGHP); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RotaterData mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 69: { + // gNECDPPELLO + gNECDPPELLO = input.readFloat(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // groupId + groupId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // bPFADJDEGHP + bPFADJDEGHP = input.readUInt32(); + 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.writeFloat(FieldNames.gNECDPPELLO, gNECDPPELLO); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.groupId, groupId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.bPFADJDEGHP, bPFADJDEGHP); + } + output.endObject(); + } + + @Override + public RotaterData mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 2053242953: { + if (input.isAtField(FieldNames.gNECDPPELLO)) { + if (!input.trySkipNullValue()) { + gNECDPPELLO = input.readFloat(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 293428218: + case 506361563: { + if (input.isAtField(FieldNames.groupId)) { + if (!input.trySkipNullValue()) { + groupId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 874068223: { + if (input.isAtField(FieldNames.bPFADJDEGHP)) { + if (!input.trySkipNullValue()) { + bPFADJDEGHP = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RotaterData clone() { + return new RotaterData().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RotaterData parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RotaterData(), data).checkInitialized(); + } + + public static RotaterData parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RotaterData(), input).checkInitialized(); + } + + public static RotaterData parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RotaterData(), input).checkInitialized(); + } + + /** + * @return factory for creating RotaterData messages + */ + public static MessageFactory getFactory() { + return RotaterDataFactory.INSTANCE; + } + + private enum RotaterDataFactory implements MessageFactory { + INSTANCE; + + @Override + public RotaterData create() { + return RotaterData.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName gNECDPPELLO = FieldName.forField("GNECDPPELLO"); + + static final FieldName groupId = FieldName.forField("groupId", "group_id"); + + static final FieldName bPFADJDEGHP = FieldName.forField("BPFADJDEGHP"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SceneActorInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneActorInfoOuterClass.java index 6caa0e9..7264446 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneActorInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneActorInfoOuterClass.java @@ -19,22 +19,22 @@ public final class SceneActorInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 map_layer = 4; - */ - private int mapLayer; - - /** - * optional uint32 base_avatar_id = 7; - */ - private int baseAvatarId; - - /** - * optional uint32 uid = 10; + * optional uint32 uid = 7; */ private int uid; /** - * optional .AvatarType avatar_type = 8; + * optional uint32 map_layer = 12; + */ + private int mapLayer; + + /** + * optional uint32 base_avatar_id = 14; + */ + private int baseAvatarId; + + /** + * optional .AvatarType avatar_type = 13; */ private int avatarType; @@ -49,99 +49,25 @@ public final class SceneActorInfoOuterClass { } /** - * optional uint32 map_layer = 4; - * @return whether the mapLayer field is set + * optional uint32 uid = 7; + * @return whether the uid field is set */ - public boolean hasMapLayer() { + public boolean hasUid() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 map_layer = 4; - * @return this - */ - public SceneActorInfo clearMapLayer() { - bitField0_ &= ~0x00000001; - mapLayer = 0; - return this; - } - - /** - * optional uint32 map_layer = 4; - * @return the mapLayer - */ - public int getMapLayer() { - return mapLayer; - } - - /** - * optional uint32 map_layer = 4; - * @param value the mapLayer to set - * @return this - */ - public SceneActorInfo setMapLayer(final int value) { - bitField0_ |= 0x00000001; - mapLayer = value; - return this; - } - - /** - * optional uint32 base_avatar_id = 7; - * @return whether the baseAvatarId field is set - */ - public boolean hasBaseAvatarId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 base_avatar_id = 7; - * @return this - */ - public SceneActorInfo clearBaseAvatarId() { - bitField0_ &= ~0x00000002; - baseAvatarId = 0; - return this; - } - - /** - * optional uint32 base_avatar_id = 7; - * @return the baseAvatarId - */ - public int getBaseAvatarId() { - return baseAvatarId; - } - - /** - * optional uint32 base_avatar_id = 7; - * @param value the baseAvatarId to set - * @return this - */ - public SceneActorInfo setBaseAvatarId(final int value) { - bitField0_ |= 0x00000002; - baseAvatarId = value; - return this; - } - - /** - * optional uint32 uid = 10; - * @return whether the uid field is set - */ - public boolean hasUid() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 uid = 10; + * optional uint32 uid = 7; * @return this */ public SceneActorInfo clearUid() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000001; uid = 0; return this; } /** - * optional uint32 uid = 10; + * optional uint32 uid = 7; * @return the uid */ public int getUid() { @@ -149,18 +75,92 @@ public final class SceneActorInfoOuterClass { } /** - * optional uint32 uid = 10; + * optional uint32 uid = 7; * @param value the uid to set * @return this */ public SceneActorInfo setUid(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; uid = value; return this; } /** - * optional .AvatarType avatar_type = 8; + * optional uint32 map_layer = 12; + * @return whether the mapLayer field is set + */ + public boolean hasMapLayer() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 map_layer = 12; + * @return this + */ + public SceneActorInfo clearMapLayer() { + bitField0_ &= ~0x00000002; + mapLayer = 0; + return this; + } + + /** + * optional uint32 map_layer = 12; + * @return the mapLayer + */ + public int getMapLayer() { + return mapLayer; + } + + /** + * optional uint32 map_layer = 12; + * @param value the mapLayer to set + * @return this + */ + public SceneActorInfo setMapLayer(final int value) { + bitField0_ |= 0x00000002; + mapLayer = value; + return this; + } + + /** + * optional uint32 base_avatar_id = 14; + * @return whether the baseAvatarId field is set + */ + public boolean hasBaseAvatarId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 base_avatar_id = 14; + * @return this + */ + public SceneActorInfo clearBaseAvatarId() { + bitField0_ &= ~0x00000004; + baseAvatarId = 0; + return this; + } + + /** + * optional uint32 base_avatar_id = 14; + * @return the baseAvatarId + */ + public int getBaseAvatarId() { + return baseAvatarId; + } + + /** + * optional uint32 base_avatar_id = 14; + * @param value the baseAvatarId to set + * @return this + */ + public SceneActorInfo setBaseAvatarId(final int value) { + bitField0_ |= 0x00000004; + baseAvatarId = value; + return this; + } + + /** + * optional .AvatarType avatar_type = 13; * @return whether the avatarType field is set */ public boolean hasAvatarType() { @@ -168,7 +168,7 @@ public final class SceneActorInfoOuterClass { } /** - * optional .AvatarType avatar_type = 8; + * optional .AvatarType avatar_type = 13; * @return this */ public SceneActorInfo clearAvatarType() { @@ -178,7 +178,7 @@ public final class SceneActorInfoOuterClass { } /** - * optional .AvatarType avatar_type = 8; + * optional .AvatarType avatar_type = 13; * @return the avatarType */ public AvatarTypeOuterClass.AvatarType getAvatarType() { @@ -211,7 +211,7 @@ public final class SceneActorInfoOuterClass { } /** - * optional .AvatarType avatar_type = 8; + * optional .AvatarType avatar_type = 13; * @param value the avatarType to set * @return this */ @@ -226,9 +226,9 @@ public final class SceneActorInfoOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; + uid = other.uid; mapLayer = other.mapLayer; baseAvatarId = other.baseAvatarId; - uid = other.uid; avatarType = other.avatarType; } return this; @@ -240,15 +240,15 @@ public final class SceneActorInfoOuterClass { return this; } cachedSize = -1; + if (other.hasUid()) { + setUid(other.uid); + } if (other.hasMapLayer()) { setMapLayer(other.mapLayer); } if (other.hasBaseAvatarId()) { setBaseAvatarId(other.baseAvatarId); } - if (other.hasUid()) { - setUid(other.uid); - } if (other.hasAvatarType()) { setAvatarTypeValue(other.avatarType); } @@ -262,9 +262,9 @@ public final class SceneActorInfoOuterClass { } cachedSize = -1; bitField0_ = 0; + uid = 0; mapLayer = 0; baseAvatarId = 0; - uid = 0; avatarType = 0; return this; } @@ -289,28 +289,28 @@ public final class SceneActorInfoOuterClass { } SceneActorInfo other = (SceneActorInfo) o; return bitField0_ == other.bitField0_ + && (!hasUid() || uid == other.uid) && (!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) 32); - output.writeUInt32NoTag(mapLayer); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 56); - output.writeUInt32NoTag(baseAvatarId); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 80); output.writeUInt32NoTag(uid); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(mapLayer); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(baseAvatarId); + } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 104); output.writeEnumNoTag(avatarType); } } @@ -319,13 +319,13 @@ public final class SceneActorInfoOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(mapLayer); + size += 1 + ProtoSink.computeUInt32SizeNoTag(uid); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(mapLayer); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(uid); + size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); } if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeEnumSizeNoTag(avatarType); @@ -340,34 +340,34 @@ public final class SceneActorInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 32: { - // mapLayer - mapLayer = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 56) { - break; - } - } case 56: { - // baseAvatarId - baseAvatarId = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 80) { - break; - } - } - case 80: { // uid uid = input.readUInt32(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 64) { + if (tag != 96) { break; } } - case 64: { + case 96: { + // mapLayer + mapLayer = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // baseAvatarId + baseAvatarId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { // avatarType final int value = input.readInt32(); if (AvatarTypeOuterClass.AvatarType.forNumber(value) != null) { @@ -397,13 +397,13 @@ public final class SceneActorInfoOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.mapLayer, mapLayer); + output.writeUInt32(FieldNames.uid, uid); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.baseAvatarId, baseAvatarId); + output.writeUInt32(FieldNames.mapLayer, mapLayer); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.uid, uid); + output.writeUInt32(FieldNames.baseAvatarId, baseAvatarId); } if ((bitField0_ & 0x00000008) != 0) { output.writeEnum(FieldNames.avatarType, avatarType, AvatarTypeOuterClass.AvatarType.converter()); @@ -418,12 +418,23 @@ public final class SceneActorInfoOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { + case 115792: { + if (input.isAtField(FieldNames.uid)) { + if (!input.trySkipNullValue()) { + uid = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } case 160971093: case 1248553134: { if (input.isAtField(FieldNames.mapLayer)) { if (!input.trySkipNullValue()) { mapLayer = input.readUInt32(); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } else { input.skipUnknownField(); @@ -435,17 +446,6 @@ public final class SceneActorInfoOuterClass { if (input.isAtField(FieldNames.baseAvatarId)) { if (!input.trySkipNullValue()) { baseAvatarId = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case 115792: { - if (input.isAtField(FieldNames.uid)) { - if (!input.trySkipNullValue()) { - uid = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -523,12 +523,12 @@ public final class SceneActorInfoOuterClass { * 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 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 96c2aa7..b3bfddb 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneBattleInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneBattleInfoOuterClass.java @@ -20,74 +20,55 @@ public final class SceneBattleInfoOuterClass { private static final long serialVersionUID = 0L; /** - *
-     * AHJODGJDJGA LMAPJDNAEKC = 450;
-     * 
- * - * optional uint32 battle_id = 1; - */ - private int battleId; - - /** - * optional uint32 stage_id = 7; - */ - private int stageId; - - /** - * optional uint32 GCNHGANFJKF = 9; - */ - private int gCNHGANFJKF; - - /** - * optional uint32 rounds_limit = 11; + * optional uint32 rounds_limit = 3; */ private int roundsLimit; /** - * optional uint32 logic_random_seed = 13; - */ - private int logicRandomSeed; - - /** - * optional uint32 world_level = 15; + * optional uint32 world_level = 8; */ private int worldLevel; /** - * optional bool CHELNDDEKPB = 10; + * optional uint32 battle_id = 9; */ - private boolean cHELNDDEKPB; + private int battleId; /** - * optional .BattleMechanismBar mechanism_bar_info = 12; + * optional uint32 logic_random_seed = 12; */ - private final BattleMechanismBarOuterClass.BattleMechanismBar mechanismBarInfo = BattleMechanismBarOuterClass.BattleMechanismBar.newInstance(); + private int logicRandomSeed; /** - * repeated .SceneMonsterWave monster_wave_list = 2; + * optional uint32 stage_id = 15; + */ + private int stageId; + + /** + * repeated .SceneMonsterWave monster_wave_list = 1; */ private final RepeatedMessage monsterWaveList = RepeatedMessage.newEmptyInstance(SceneMonsterWaveOuterClass.SceneMonsterWave.getFactory()); /** - * repeated .BattleBuff buff_list = 3; - */ - private final RepeatedMessage buffList = RepeatedMessage.newEmptyInstance(BattleBuffOuterClass.BattleBuff.getFactory()); - - /** - * repeated .BattleAvatar battle_avatar_list = 8; + * repeated .BattleAvatar battle_avatar_list = 7; */ private final RepeatedMessage battleAvatarList = RepeatedMessage.newEmptyInstance(BattleAvatarOuterClass.BattleAvatar.getFactory()); /** - * repeated .BattleEventBattleInfo event_battle_info_list = 77; + * repeated .BattleBuff buff_list = 11; */ - private final RepeatedMessage eventBattleInfoList = RepeatedMessage.newEmptyInstance(BattleEventBattleInfoOuterClass.BattleEventBattleInfo.getFactory()); + private final RepeatedMessage buffList = RepeatedMessage.newEmptyInstance(BattleBuffOuterClass.BattleBuff.getFactory()); /** - * repeated .SceneBattleInfo.BattleTargetInfoEntry battle_target_info = 1857; + * repeated .SceneBattleInfo.BattleTargetInfoEntry battle_target_info = 136; */ private final RepeatedMessage battleTargetInfo = RepeatedMessage.newEmptyInstance(BattleTargetInfoEntry.getFactory()); + /** + * repeated .BattleEventBattleInfo event_battle_info_list = 1367; + */ + private final RepeatedMessage eventBattleInfoList = RepeatedMessage.newEmptyInstance(BattleEventBattleInfoOuterClass.BattleEventBattleInfo.getFactory()); + private SceneBattleInfo() { } @@ -99,152 +80,25 @@ public final class SceneBattleInfoOuterClass { } /** - *
-     * AHJODGJDJGA LMAPJDNAEKC = 450;
-     * 
- * - * optional uint32 battle_id = 1; - * @return whether the battleId field is set + * optional uint32 rounds_limit = 3; + * @return whether the roundsLimit field is set */ - public boolean hasBattleId() { + public boolean hasRoundsLimit() { return (bitField0_ & 0x00000001) != 0; } /** - *
-     * AHJODGJDJGA LMAPJDNAEKC = 450;
-     * 
- * - * optional uint32 battle_id = 1; - * @return this - */ - public SceneBattleInfo clearBattleId() { - bitField0_ &= ~0x00000001; - battleId = 0; - return this; - } - - /** - *
-     * AHJODGJDJGA LMAPJDNAEKC = 450;
-     * 
- * - * optional uint32 battle_id = 1; - * @return the battleId - */ - public int getBattleId() { - return battleId; - } - - /** - *
-     * AHJODGJDJGA LMAPJDNAEKC = 450;
-     * 
- * - * optional uint32 battle_id = 1; - * @param value the battleId to set - * @return this - */ - public SceneBattleInfo setBattleId(final int value) { - bitField0_ |= 0x00000001; - battleId = value; - return this; - } - - /** - * optional uint32 stage_id = 7; - * @return whether the stageId field is set - */ - public boolean hasStageId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 stage_id = 7; - * @return this - */ - public SceneBattleInfo clearStageId() { - bitField0_ &= ~0x00000002; - stageId = 0; - return this; - } - - /** - * optional uint32 stage_id = 7; - * @return the stageId - */ - public int getStageId() { - return stageId; - } - - /** - * optional uint32 stage_id = 7; - * @param value the stageId to set - * @return this - */ - public SceneBattleInfo setStageId(final int value) { - bitField0_ |= 0x00000002; - stageId = value; - return this; - } - - /** - * optional uint32 GCNHGANFJKF = 9; - * @return whether the gCNHGANFJKF field is set - */ - public boolean hasGCNHGANFJKF() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 GCNHGANFJKF = 9; - * @return this - */ - public SceneBattleInfo clearGCNHGANFJKF() { - bitField0_ &= ~0x00000004; - gCNHGANFJKF = 0; - return this; - } - - /** - * optional uint32 GCNHGANFJKF = 9; - * @return the gCNHGANFJKF - */ - public int getGCNHGANFJKF() { - return gCNHGANFJKF; - } - - /** - * optional uint32 GCNHGANFJKF = 9; - * @param value the gCNHGANFJKF to set - * @return this - */ - public SceneBattleInfo setGCNHGANFJKF(final int value) { - bitField0_ |= 0x00000004; - gCNHGANFJKF = value; - return this; - } - - /** - * optional uint32 rounds_limit = 11; - * @return whether the roundsLimit field is set - */ - public boolean hasRoundsLimit() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional uint32 rounds_limit = 11; + * optional uint32 rounds_limit = 3; * @return this */ public SceneBattleInfo clearRoundsLimit() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000001; roundsLimit = 0; return this; } /** - * optional uint32 rounds_limit = 11; + * optional uint32 rounds_limit = 3; * @return the roundsLimit */ public int getRoundsLimit() { @@ -252,73 +106,36 @@ public final class SceneBattleInfoOuterClass { } /** - * optional uint32 rounds_limit = 11; + * optional uint32 rounds_limit = 3; * @param value the roundsLimit to set * @return this */ public SceneBattleInfo setRoundsLimit(final int value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000001; roundsLimit = value; return this; } /** - * optional uint32 logic_random_seed = 13; - * @return whether the logicRandomSeed field is set - */ - public boolean hasLogicRandomSeed() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - * optional uint32 logic_random_seed = 13; - * @return this - */ - public SceneBattleInfo clearLogicRandomSeed() { - bitField0_ &= ~0x00000010; - logicRandomSeed = 0; - return this; - } - - /** - * optional uint32 logic_random_seed = 13; - * @return the logicRandomSeed - */ - public int getLogicRandomSeed() { - return logicRandomSeed; - } - - /** - * optional uint32 logic_random_seed = 13; - * @param value the logicRandomSeed to set - * @return this - */ - public SceneBattleInfo setLogicRandomSeed(final int value) { - bitField0_ |= 0x00000010; - logicRandomSeed = value; - return this; - } - - /** - * optional uint32 world_level = 15; + * optional uint32 world_level = 8; * @return whether the worldLevel field is set */ public boolean hasWorldLevel() { - return (bitField0_ & 0x00000020) != 0; + return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 world_level = 15; + * optional uint32 world_level = 8; * @return this */ public SceneBattleInfo clearWorldLevel() { - bitField0_ &= ~0x00000020; + bitField0_ &= ~0x00000002; worldLevel = 0; return this; } /** - * optional uint32 world_level = 15; + * optional uint32 world_level = 8; * @return the worldLevel */ public int getWorldLevel() { @@ -326,131 +143,147 @@ public final class SceneBattleInfoOuterClass { } /** - * optional uint32 world_level = 15; + * optional uint32 world_level = 8; * @param value the worldLevel to set * @return this */ public SceneBattleInfo setWorldLevel(final int value) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000002; worldLevel = value; return this; } /** - * optional bool CHELNDDEKPB = 10; - * @return whether the cHELNDDEKPB field is set + * optional uint32 battle_id = 9; + * @return whether the battleId field is set */ - public boolean hasCHELNDDEKPB() { - return (bitField0_ & 0x00000040) != 0; + public boolean hasBattleId() { + return (bitField0_ & 0x00000004) != 0; } /** - * optional bool CHELNDDEKPB = 10; + * optional uint32 battle_id = 9; * @return this */ - public SceneBattleInfo clearCHELNDDEKPB() { - bitField0_ &= ~0x00000040; - cHELNDDEKPB = false; + public SceneBattleInfo clearBattleId() { + bitField0_ &= ~0x00000004; + battleId = 0; return this; } /** - * optional bool CHELNDDEKPB = 10; - * @return the cHELNDDEKPB + * optional uint32 battle_id = 9; + * @return the battleId */ - public boolean getCHELNDDEKPB() { - return cHELNDDEKPB; + public int getBattleId() { + return battleId; } /** - * optional bool CHELNDDEKPB = 10; - * @param value the cHELNDDEKPB to set + * optional uint32 battle_id = 9; + * @param value the battleId to set * @return this */ - public SceneBattleInfo setCHELNDDEKPB(final boolean value) { - bitField0_ |= 0x00000040; - cHELNDDEKPB = value; + public SceneBattleInfo setBattleId(final int value) { + bitField0_ |= 0x00000004; + battleId = value; return this; } /** - * optional .BattleMechanismBar mechanism_bar_info = 12; - * @return whether the mechanismBarInfo field is set + * optional uint32 logic_random_seed = 12; + * @return whether the logicRandomSeed field is set */ - public boolean hasMechanismBarInfo() { - return (bitField0_ & 0x00000080) != 0; + public boolean hasLogicRandomSeed() { + return (bitField0_ & 0x00000008) != 0; } /** - * optional .BattleMechanismBar mechanism_bar_info = 12; + * optional uint32 logic_random_seed = 12; * @return this */ - public SceneBattleInfo clearMechanismBarInfo() { - bitField0_ &= ~0x00000080; - mechanismBarInfo.clear(); + public SceneBattleInfo clearLogicRandomSeed() { + bitField0_ &= ~0x00000008; + logicRandomSeed = 0; return this; } /** - * optional .BattleMechanismBar mechanism_bar_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. - * - * Use {@link #getMutableMechanismBarInfo()} if you want to modify it. - * - * @return internal storage object for reading + * optional uint32 logic_random_seed = 12; + * @return the logicRandomSeed */ - public BattleMechanismBarOuterClass.BattleMechanismBar getMechanismBarInfo() { - return mechanismBarInfo; + public int getLogicRandomSeed() { + return logicRandomSeed; } /** - * optional .BattleMechanismBar mechanism_bar_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 - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public BattleMechanismBarOuterClass.BattleMechanismBar getMutableMechanismBarInfo() { - bitField0_ |= 0x00000080; - return mechanismBarInfo; - } - - /** - * optional .BattleMechanismBar mechanism_bar_info = 12; - * @param value the mechanismBarInfo to set + * optional uint32 logic_random_seed = 12; + * @param value the logicRandomSeed to set * @return this */ - public SceneBattleInfo setMechanismBarInfo( - final BattleMechanismBarOuterClass.BattleMechanismBar value) { - bitField0_ |= 0x00000080; - mechanismBarInfo.copyFrom(value); + public SceneBattleInfo setLogicRandomSeed(final int value) { + bitField0_ |= 0x00000008; + logicRandomSeed = value; return this; } /** - * repeated .SceneMonsterWave monster_wave_list = 2; + * optional uint32 stage_id = 15; + * @return whether the stageId field is set + */ + public boolean hasStageId() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 stage_id = 15; + * @return this + */ + public SceneBattleInfo clearStageId() { + bitField0_ &= ~0x00000010; + stageId = 0; + return this; + } + + /** + * optional uint32 stage_id = 15; + * @return the stageId + */ + public int getStageId() { + return stageId; + } + + /** + * optional uint32 stage_id = 15; + * @param value the stageId to set + * @return this + */ + public SceneBattleInfo setStageId(final int value) { + bitField0_ |= 0x00000010; + stageId = value; + return this; + } + + /** + * repeated .SceneMonsterWave monster_wave_list = 1; * @return whether the monsterWaveList field is set */ public boolean hasMonsterWaveList() { - return (bitField0_ & 0x00000100) != 0; + return (bitField0_ & 0x00000020) != 0; } /** - * repeated .SceneMonsterWave monster_wave_list = 2; + * repeated .SceneMonsterWave monster_wave_list = 1; * @return this */ public SceneBattleInfo clearMonsterWaveList() { - bitField0_ &= ~0x00000100; + bitField0_ &= ~0x00000020; monsterWaveList.clear(); return this; } /** - * repeated .SceneMonsterWave monster_wave_list = 2; + * repeated .SceneMonsterWave monster_wave_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. @@ -464,7 +297,7 @@ public final class SceneBattleInfoOuterClass { } /** - * repeated .SceneMonsterWave monster_wave_list = 2; + * repeated .SceneMonsterWave monster_wave_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 @@ -474,122 +307,54 @@ public final class SceneBattleInfoOuterClass { */ public RepeatedMessage getMutableMonsterWaveList( ) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000020; return monsterWaveList; } /** - * repeated .SceneMonsterWave monster_wave_list = 2; + * repeated .SceneMonsterWave monster_wave_list = 1; * @param value the monsterWaveList to add * @return this */ public SceneBattleInfo addMonsterWaveList( final SceneMonsterWaveOuterClass.SceneMonsterWave value) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000020; monsterWaveList.add(value); return this; } /** - * repeated .SceneMonsterWave monster_wave_list = 2; + * repeated .SceneMonsterWave monster_wave_list = 1; * @param values the monsterWaveList to add * @return this */ public SceneBattleInfo addAllMonsterWaveList( final SceneMonsterWaveOuterClass.SceneMonsterWave... values) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000020; monsterWaveList.addAll(values); return this; } /** - * repeated .BattleBuff buff_list = 3; - * @return whether the buffList field is set - */ - public boolean hasBuffList() { - return (bitField0_ & 0x00000200) != 0; - } - - /** - * repeated .BattleBuff buff_list = 3; - * @return this - */ - public SceneBattleInfo clearBuffList() { - bitField0_ &= ~0x00000200; - buffList.clear(); - return this; - } - - /** - * 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 #getMutableBuffList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getBuffList() { - return buffList; - } - - /** - * 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 - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableBuffList() { - bitField0_ |= 0x00000200; - return buffList; - } - - /** - * repeated .BattleBuff buff_list = 3; - * @param value the buffList to add - * @return this - */ - public SceneBattleInfo addBuffList(final BattleBuffOuterClass.BattleBuff value) { - bitField0_ |= 0x00000200; - buffList.add(value); - return this; - } - - /** - * repeated .BattleBuff buff_list = 3; - * @param values the buffList to add - * @return this - */ - public SceneBattleInfo addAllBuffList(final BattleBuffOuterClass.BattleBuff... values) { - bitField0_ |= 0x00000200; - buffList.addAll(values); - return this; - } - - /** - * repeated .BattleAvatar battle_avatar_list = 8; + * repeated .BattleAvatar battle_avatar_list = 7; * @return whether the battleAvatarList field is set */ public boolean hasBattleAvatarList() { - return (bitField0_ & 0x00000400) != 0; + return (bitField0_ & 0x00000040) != 0; } /** - * repeated .BattleAvatar battle_avatar_list = 8; + * repeated .BattleAvatar battle_avatar_list = 7; * @return this */ public SceneBattleInfo clearBattleAvatarList() { - bitField0_ &= ~0x00000400; + bitField0_ &= ~0x00000040; battleAvatarList.clear(); return this; } /** - * repeated .BattleAvatar battle_avatar_list = 8; + * repeated .BattleAvatar battle_avatar_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. @@ -603,7 +368,7 @@ public final class SceneBattleInfoOuterClass { } /** - * repeated .BattleAvatar battle_avatar_list = 8; + * repeated .BattleAvatar battle_avatar_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 @@ -612,53 +377,189 @@ public final class SceneBattleInfoOuterClass { * @return internal storage object for modifications */ public RepeatedMessage getMutableBattleAvatarList() { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000040; return battleAvatarList; } /** - * repeated .BattleAvatar battle_avatar_list = 8; + * repeated .BattleAvatar battle_avatar_list = 7; * @param value the battleAvatarList to add * @return this */ public SceneBattleInfo addBattleAvatarList(final BattleAvatarOuterClass.BattleAvatar value) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000040; battleAvatarList.add(value); return this; } /** - * repeated .BattleAvatar battle_avatar_list = 8; + * repeated .BattleAvatar battle_avatar_list = 7; * @param values the battleAvatarList to add * @return this */ public SceneBattleInfo addAllBattleAvatarList( final BattleAvatarOuterClass.BattleAvatar... values) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000040; battleAvatarList.addAll(values); return this; } /** - * repeated .BattleEventBattleInfo event_battle_info_list = 77; - * @return whether the eventBattleInfoList field is set + * repeated .BattleBuff buff_list = 11; + * @return whether the buffList field is set */ - public boolean hasEventBattleInfoList() { - return (bitField0_ & 0x00000800) != 0; + public boolean hasBuffList() { + return (bitField0_ & 0x00000080) != 0; } /** - * repeated .BattleEventBattleInfo event_battle_info_list = 77; + * repeated .BattleBuff buff_list = 11; + * @return this + */ + public SceneBattleInfo clearBuffList() { + bitField0_ &= ~0x00000080; + buffList.clear(); + return this; + } + + /** + * repeated .BattleBuff buff_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 #getMutableBuffList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getBuffList() { + return buffList; + } + + /** + * repeated .BattleBuff buff_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 + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableBuffList() { + bitField0_ |= 0x00000080; + return buffList; + } + + /** + * repeated .BattleBuff buff_list = 11; + * @param value the buffList to add + * @return this + */ + public SceneBattleInfo addBuffList(final BattleBuffOuterClass.BattleBuff value) { + bitField0_ |= 0x00000080; + buffList.add(value); + return this; + } + + /** + * repeated .BattleBuff buff_list = 11; + * @param values the buffList to add + * @return this + */ + public SceneBattleInfo addAllBuffList(final BattleBuffOuterClass.BattleBuff... values) { + bitField0_ |= 0x00000080; + buffList.addAll(values); + return this; + } + + /** + * repeated .SceneBattleInfo.BattleTargetInfoEntry battle_target_info = 136; + * @return whether the battleTargetInfo field is set + */ + public boolean hasBattleTargetInfo() { + return (bitField0_ & 0x00000100) != 0; + } + + /** + * repeated .SceneBattleInfo.BattleTargetInfoEntry battle_target_info = 136; + * @return this + */ + public SceneBattleInfo clearBattleTargetInfo() { + bitField0_ &= ~0x00000100; + battleTargetInfo.clear(); + return this; + } + + /** + * repeated .SceneBattleInfo.BattleTargetInfoEntry battle_target_info = 136; + * + * 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 #getMutableBattleTargetInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getBattleTargetInfo() { + return battleTargetInfo; + } + + /** + * repeated .SceneBattleInfo.BattleTargetInfoEntry battle_target_info = 136; + * + * 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 getMutableBattleTargetInfo() { + bitField0_ |= 0x00000100; + return battleTargetInfo; + } + + /** + * repeated .SceneBattleInfo.BattleTargetInfoEntry battle_target_info = 136; + * @param value the battleTargetInfo to add + * @return this + */ + public SceneBattleInfo addBattleTargetInfo(final BattleTargetInfoEntry value) { + bitField0_ |= 0x00000100; + battleTargetInfo.add(value); + return this; + } + + /** + * repeated .SceneBattleInfo.BattleTargetInfoEntry battle_target_info = 136; + * @param values the battleTargetInfo to add + * @return this + */ + public SceneBattleInfo addAllBattleTargetInfo(final BattleTargetInfoEntry... values) { + bitField0_ |= 0x00000100; + battleTargetInfo.addAll(values); + return this; + } + + /** + * repeated .BattleEventBattleInfo event_battle_info_list = 1367; + * @return whether the eventBattleInfoList field is set + */ + public boolean hasEventBattleInfoList() { + return (bitField0_ & 0x00000200) != 0; + } + + /** + * repeated .BattleEventBattleInfo event_battle_info_list = 1367; * @return this */ public SceneBattleInfo clearEventBattleInfoList() { - bitField0_ &= ~0x00000800; + bitField0_ &= ~0x00000200; eventBattleInfoList.clear(); return this; } /** - * repeated .BattleEventBattleInfo event_battle_info_list = 77; + * repeated .BattleEventBattleInfo event_battle_info_list = 1367; * * 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. @@ -673,7 +574,7 @@ public final class SceneBattleInfoOuterClass { } /** - * repeated .BattleEventBattleInfo event_battle_info_list = 77; + * repeated .BattleEventBattleInfo event_battle_info_list = 1367; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -683,120 +584,49 @@ public final class SceneBattleInfoOuterClass { */ public RepeatedMessage getMutableEventBattleInfoList( ) { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00000200; return eventBattleInfoList; } /** - * repeated .BattleEventBattleInfo event_battle_info_list = 77; + * repeated .BattleEventBattleInfo event_battle_info_list = 1367; * @param value the eventBattleInfoList to add * @return this */ public SceneBattleInfo addEventBattleInfoList( final BattleEventBattleInfoOuterClass.BattleEventBattleInfo value) { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00000200; eventBattleInfoList.add(value); return this; } /** - * repeated .BattleEventBattleInfo event_battle_info_list = 77; + * repeated .BattleEventBattleInfo event_battle_info_list = 1367; * @param values the eventBattleInfoList to add * @return this */ public SceneBattleInfo addAllEventBattleInfoList( final BattleEventBattleInfoOuterClass.BattleEventBattleInfo... values) { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00000200; eventBattleInfoList.addAll(values); return this; } - /** - * repeated .SceneBattleInfo.BattleTargetInfoEntry battle_target_info = 1857; - * @return whether the battleTargetInfo field is set - */ - public boolean hasBattleTargetInfo() { - return (bitField0_ & 0x00001000) != 0; - } - - /** - * repeated .SceneBattleInfo.BattleTargetInfoEntry battle_target_info = 1857; - * @return this - */ - public SceneBattleInfo clearBattleTargetInfo() { - bitField0_ &= ~0x00001000; - battleTargetInfo.clear(); - return this; - } - - /** - * repeated .SceneBattleInfo.BattleTargetInfoEntry battle_target_info = 1857; - * - * 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 #getMutableBattleTargetInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getBattleTargetInfo() { - return battleTargetInfo; - } - - /** - * repeated .SceneBattleInfo.BattleTargetInfoEntry battle_target_info = 1857; - * - * 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 getMutableBattleTargetInfo() { - bitField0_ |= 0x00001000; - return battleTargetInfo; - } - - /** - * repeated .SceneBattleInfo.BattleTargetInfoEntry battle_target_info = 1857; - * @param value the battleTargetInfo to add - * @return this - */ - public SceneBattleInfo addBattleTargetInfo(final BattleTargetInfoEntry value) { - bitField0_ |= 0x00001000; - battleTargetInfo.add(value); - return this; - } - - /** - * repeated .SceneBattleInfo.BattleTargetInfoEntry battle_target_info = 1857; - * @param values the battleTargetInfo to add - * @return this - */ - public SceneBattleInfo addAllBattleTargetInfo(final BattleTargetInfoEntry... values) { - bitField0_ |= 0x00001000; - battleTargetInfo.addAll(values); - return this; - } - @Override public SceneBattleInfo copyFrom(final SceneBattleInfo other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - battleId = other.battleId; - stageId = other.stageId; - gCNHGANFJKF = other.gCNHGANFJKF; roundsLimit = other.roundsLimit; - logicRandomSeed = other.logicRandomSeed; worldLevel = other.worldLevel; - cHELNDDEKPB = other.cHELNDDEKPB; - mechanismBarInfo.copyFrom(other.mechanismBarInfo); + battleId = other.battleId; + logicRandomSeed = other.logicRandomSeed; + stageId = other.stageId; monsterWaveList.copyFrom(other.monsterWaveList); - buffList.copyFrom(other.buffList); battleAvatarList.copyFrom(other.battleAvatarList); - eventBattleInfoList.copyFrom(other.eventBattleInfoList); + buffList.copyFrom(other.buffList); battleTargetInfo.copyFrom(other.battleTargetInfo); + eventBattleInfoList.copyFrom(other.eventBattleInfoList); } return this; } @@ -807,45 +637,36 @@ public final class SceneBattleInfoOuterClass { return this; } cachedSize = -1; - if (other.hasBattleId()) { - setBattleId(other.battleId); - } - if (other.hasStageId()) { - setStageId(other.stageId); - } - if (other.hasGCNHGANFJKF()) { - setGCNHGANFJKF(other.gCNHGANFJKF); - } if (other.hasRoundsLimit()) { setRoundsLimit(other.roundsLimit); } - if (other.hasLogicRandomSeed()) { - setLogicRandomSeed(other.logicRandomSeed); - } if (other.hasWorldLevel()) { setWorldLevel(other.worldLevel); } - if (other.hasCHELNDDEKPB()) { - setCHELNDDEKPB(other.cHELNDDEKPB); + if (other.hasBattleId()) { + setBattleId(other.battleId); } - if (other.hasMechanismBarInfo()) { - getMutableMechanismBarInfo().mergeFrom(other.mechanismBarInfo); + if (other.hasLogicRandomSeed()) { + setLogicRandomSeed(other.logicRandomSeed); + } + if (other.hasStageId()) { + setStageId(other.stageId); } if (other.hasMonsterWaveList()) { getMutableMonsterWaveList().addAll(other.monsterWaveList); } - if (other.hasBuffList()) { - getMutableBuffList().addAll(other.buffList); - } if (other.hasBattleAvatarList()) { getMutableBattleAvatarList().addAll(other.battleAvatarList); } - if (other.hasEventBattleInfoList()) { - getMutableEventBattleInfoList().addAll(other.eventBattleInfoList); + if (other.hasBuffList()) { + getMutableBuffList().addAll(other.buffList); } if (other.hasBattleTargetInfo()) { getMutableBattleTargetInfo().addAll(other.battleTargetInfo); } + if (other.hasEventBattleInfoList()) { + getMutableEventBattleInfoList().addAll(other.eventBattleInfoList); + } return this; } @@ -856,19 +677,16 @@ public final class SceneBattleInfoOuterClass { } cachedSize = -1; bitField0_ = 0; - battleId = 0; - stageId = 0; - gCNHGANFJKF = 0; roundsLimit = 0; - logicRandomSeed = 0; worldLevel = 0; - cHELNDDEKPB = false; - mechanismBarInfo.clear(); + battleId = 0; + logicRandomSeed = 0; + stageId = 0; monsterWaveList.clear(); - buffList.clear(); battleAvatarList.clear(); - eventBattleInfoList.clear(); + buffList.clear(); battleTargetInfo.clear(); + eventBattleInfoList.clear(); return this; } @@ -879,12 +697,11 @@ public final class SceneBattleInfoOuterClass { } cachedSize = -1; bitField0_ = 0; - mechanismBarInfo.clearQuick(); monsterWaveList.clearQuick(); - buffList.clearQuick(); battleAvatarList.clearQuick(); - eventBattleInfoList.clearQuick(); + buffList.clearQuick(); battleTargetInfo.clearQuick(); + eventBattleInfoList.clearQuick(); return this; } @@ -898,129 +715,105 @@ public final class SceneBattleInfoOuterClass { } SceneBattleInfo other = (SceneBattleInfo) o; return bitField0_ == other.bitField0_ - && (!hasBattleId() || battleId == other.battleId) - && (!hasStageId() || stageId == other.stageId) - && (!hasGCNHGANFJKF() || gCNHGANFJKF == other.gCNHGANFJKF) && (!hasRoundsLimit() || roundsLimit == other.roundsLimit) - && (!hasLogicRandomSeed() || logicRandomSeed == other.logicRandomSeed) && (!hasWorldLevel() || worldLevel == other.worldLevel) - && (!hasCHELNDDEKPB() || cHELNDDEKPB == other.cHELNDDEKPB) - && (!hasMechanismBarInfo() || mechanismBarInfo.equals(other.mechanismBarInfo)) + && (!hasBattleId() || battleId == other.battleId) + && (!hasLogicRandomSeed() || logicRandomSeed == other.logicRandomSeed) + && (!hasStageId() || stageId == other.stageId) && (!hasMonsterWaveList() || monsterWaveList.equals(other.monsterWaveList)) - && (!hasBuffList() || buffList.equals(other.buffList)) && (!hasBattleAvatarList() || battleAvatarList.equals(other.battleAvatarList)) - && (!hasEventBattleInfoList() || eventBattleInfoList.equals(other.eventBattleInfoList)) - && (!hasBattleTargetInfo() || battleTargetInfo.equals(other.battleTargetInfo)); + && (!hasBuffList() || buffList.equals(other.buffList)) + && (!hasBattleTargetInfo() || battleTargetInfo.equals(other.battleTargetInfo)) + && (!hasEventBattleInfoList() || eventBattleInfoList.equals(other.eventBattleInfoList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(battleId); + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(roundsLimit); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 56); - output.writeUInt32NoTag(stageId); + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(worldLevel); } if ((bitField0_ & 0x00000004) != 0) { output.writeRawByte((byte) 72); - output.writeUInt32NoTag(gCNHGANFJKF); + output.writeUInt32NoTag(battleId); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 88); - output.writeUInt32NoTag(roundsLimit); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 96); output.writeUInt32NoTag(logicRandomSeed); } - if ((bitField0_ & 0x00000020) != 0) { + if ((bitField0_ & 0x00000010) != 0) { output.writeRawByte((byte) 120); - output.writeUInt32NoTag(worldLevel); + output.writeUInt32NoTag(stageId); } - if ((bitField0_ & 0x00000040) != 0) { - output.writeRawByte((byte) 80); - output.writeBoolNoTag(cHELNDDEKPB); - } - if ((bitField0_ & 0x00000080) != 0) { - output.writeRawByte((byte) 98); - output.writeMessageNoTag(mechanismBarInfo); - } - if ((bitField0_ & 0x00000100) != 0) { + if ((bitField0_ & 0x00000020) != 0) { for (int i = 0; i < monsterWaveList.length(); i++) { - output.writeRawByte((byte) 18); + output.writeRawByte((byte) 10); output.writeMessageNoTag(monsterWaveList.get(i)); } } - if ((bitField0_ & 0x00000200) != 0) { - for (int i = 0; i < buffList.length(); i++) { - output.writeRawByte((byte) 26); - output.writeMessageNoTag(buffList.get(i)); - } - } - if ((bitField0_ & 0x00000400) != 0) { + if ((bitField0_ & 0x00000040) != 0) { for (int i = 0; i < battleAvatarList.length(); i++) { - output.writeRawByte((byte) 66); + output.writeRawByte((byte) 58); output.writeMessageNoTag(battleAvatarList.get(i)); } } - if ((bitField0_ & 0x00000800) != 0) { - for (int i = 0; i < eventBattleInfoList.length(); i++) { - output.writeRawLittleEndian16((short) 1258); - output.writeMessageNoTag(eventBattleInfoList.get(i)); + if ((bitField0_ & 0x00000080) != 0) { + for (int i = 0; i < buffList.length(); i++) { + output.writeRawByte((byte) 90); + output.writeMessageNoTag(buffList.get(i)); } } - if ((bitField0_ & 0x00001000) != 0) { + if ((bitField0_ & 0x00000100) != 0) { for (int i = 0; i < battleTargetInfo.length(); i++) { - output.writeRawLittleEndian16((short) 29834); + output.writeRawLittleEndian16((short) 2242); output.writeMessageNoTag(battleTargetInfo.get(i)); } } + if ((bitField0_ & 0x00000200) != 0) { + for (int i = 0; i < eventBattleInfoList.length(); i++) { + output.writeRawLittleEndian16((short) 21946); + output.writeMessageNoTag(eventBattleInfoList.get(i)); + } + } } @Override protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(battleId); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(stageId); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(gCNHGANFJKF); - } - if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(roundsLimit); } - if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(logicRandomSeed); - } - if ((bitField0_ & 0x00000020) != 0) { + if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(worldLevel); } - if ((bitField0_ & 0x00000040) != 0) { - size += 2; + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(battleId); } - if ((bitField0_ & 0x00000080) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(mechanismBarInfo); + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(logicRandomSeed); } - if ((bitField0_ & 0x00000100) != 0) { + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(stageId); + } + if ((bitField0_ & 0x00000020) != 0) { size += (1 * monsterWaveList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(monsterWaveList); } - if ((bitField0_ & 0x00000200) != 0) { - size += (1 * buffList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(buffList); - } - if ((bitField0_ & 0x00000400) != 0) { + if ((bitField0_ & 0x00000040) != 0) { size += (1 * battleAvatarList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(battleAvatarList); } - if ((bitField0_ & 0x00000800) != 0) { - size += (2 * eventBattleInfoList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(eventBattleInfoList); + if ((bitField0_ & 0x00000080) != 0) { + size += (1 * buffList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(buffList); } - if ((bitField0_ & 0x00001000) != 0) { + if ((bitField0_ & 0x00000100) != 0) { size += (2 * battleTargetInfo.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(battleTargetInfo); } + if ((bitField0_ & 0x00000200) != 0) { + size += (2 * eventBattleInfoList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(eventBattleInfoList); + } return size; } @@ -1031,18 +824,18 @@ public final class SceneBattleInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 8: { - // battleId - battleId = input.readUInt32(); + case 24: { + // roundsLimit + roundsLimit = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 56) { + if (tag != 64) { break; } } - case 56: { - // stageId - stageId = input.readUInt32(); + case 64: { + // worldLevel + worldLevel = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 72) { @@ -1050,95 +843,68 @@ public final class SceneBattleInfoOuterClass { } } case 72: { - // gCNHGANFJKF - gCNHGANFJKF = input.readUInt32(); + // battleId + battleId = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 88) { + if (tag != 96) { break; } } - case 88: { - // roundsLimit - roundsLimit = input.readUInt32(); - bitField0_ |= 0x00000008; - tag = input.readTag(); - if (tag != 104) { - break; - } - } - case 104: { + case 96: { // logicRandomSeed logicRandomSeed = input.readUInt32(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 120) { break; } } case 120: { - // worldLevel - worldLevel = input.readUInt32(); - bitField0_ |= 0x00000020; + // stageId + stageId = input.readUInt32(); + bitField0_ |= 0x00000010; tag = input.readTag(); - if (tag != 80) { + if (tag != 10) { break; } } - case 80: { - // cHELNDDEKPB - cHELNDDEKPB = input.readBool(); - bitField0_ |= 0x00000040; - tag = input.readTag(); - if (tag != 98) { - break; - } - } - case 98: { - // mechanismBarInfo - input.readMessage(mechanismBarInfo); - bitField0_ |= 0x00000080; - tag = input.readTag(); - if (tag != 18) { - break; - } - } - case 18: { + case 10: { // monsterWaveList tag = input.readRepeatedMessage(monsterWaveList, tag); - bitField0_ |= 0x00000100; - if (tag != 26) { + bitField0_ |= 0x00000020; + if (tag != 58) { break; } } - case 26: { - // buffList - tag = input.readRepeatedMessage(buffList, tag); - bitField0_ |= 0x00000200; - if (tag != 66) { - break; - } - } - case 66: { + case 58: { // battleAvatarList tag = input.readRepeatedMessage(battleAvatarList, tag); - bitField0_ |= 0x00000400; - if (tag != 618) { + bitField0_ |= 0x00000040; + if (tag != 90) { break; } } - case 618: { - // eventBattleInfoList - tag = input.readRepeatedMessage(eventBattleInfoList, tag); - bitField0_ |= 0x00000800; - if (tag != 14858) { + case 90: { + // buffList + tag = input.readRepeatedMessage(buffList, tag); + bitField0_ |= 0x00000080; + if (tag != 1090) { break; } } - case 14858: { + case 1090: { // battleTargetInfo tag = input.readRepeatedMessage(battleTargetInfo, tag); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00000100; + if (tag != 10938) { + break; + } + } + case 10938: { + // eventBattleInfoList + tag = input.readRepeatedMessage(eventBattleInfoList, tag); + bitField0_ |= 0x00000200; if (tag != 0) { break; } @@ -1161,44 +927,35 @@ public final class SceneBattleInfoOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.battleId, battleId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.stageId, stageId); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.gCNHGANFJKF, gCNHGANFJKF); - } - if ((bitField0_ & 0x00000008) != 0) { output.writeUInt32(FieldNames.roundsLimit, roundsLimit); } - if ((bitField0_ & 0x00000010) != 0) { - output.writeUInt32(FieldNames.logicRandomSeed, logicRandomSeed); - } - if ((bitField0_ & 0x00000020) != 0) { + if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.worldLevel, worldLevel); } - if ((bitField0_ & 0x00000040) != 0) { - output.writeBool(FieldNames.cHELNDDEKPB, cHELNDDEKPB); + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.battleId, battleId); } - if ((bitField0_ & 0x00000080) != 0) { - output.writeMessage(FieldNames.mechanismBarInfo, mechanismBarInfo); + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.logicRandomSeed, logicRandomSeed); } - if ((bitField0_ & 0x00000100) != 0) { + if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.stageId, stageId); + } + if ((bitField0_ & 0x00000020) != 0) { output.writeRepeatedMessage(FieldNames.monsterWaveList, monsterWaveList); } - if ((bitField0_ & 0x00000200) != 0) { - output.writeRepeatedMessage(FieldNames.buffList, buffList); - } - if ((bitField0_ & 0x00000400) != 0) { + if ((bitField0_ & 0x00000040) != 0) { output.writeRepeatedMessage(FieldNames.battleAvatarList, battleAvatarList); } - if ((bitField0_ & 0x00000800) != 0) { - output.writeRepeatedMessage(FieldNames.eventBattleInfoList, eventBattleInfoList); + if ((bitField0_ & 0x00000080) != 0) { + output.writeRepeatedMessage(FieldNames.buffList, buffList); } - if ((bitField0_ & 0x00001000) != 0) { + if ((bitField0_ & 0x00000100) != 0) { output.writeRepeatedMessage(FieldNames.battleTargetInfo, battleTargetInfo); } + if ((bitField0_ & 0x00000200) != 0) { + output.writeRepeatedMessage(FieldNames.eventBattleInfoList, eventBattleInfoList); + } output.endObject(); } @@ -1209,59 +966,12 @@ public final class SceneBattleInfoOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -1678308365: - case -487930366: { - if (input.isAtField(FieldNames.battleId)) { - if (!input.trySkipNullValue()) { - battleId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1897528135: - case 1306191356: { - if (input.isAtField(FieldNames.stageId)) { - if (!input.trySkipNullValue()) { - stageId = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1106892419: { - if (input.isAtField(FieldNames.gCNHGANFJKF)) { - if (!input.trySkipNullValue()) { - gCNHGANFJKF = input.readUInt32(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } case 306477590: case 1457479585: { if (input.isAtField(FieldNames.roundsLimit)) { if (!input.trySkipNullValue()) { roundsLimit = input.readUInt32(); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } - case 141999058: - case -1894951668: { - if (input.isAtField(FieldNames.logicRandomSeed)) { - if (!input.trySkipNullValue()) { - logicRandomSeed = input.readUInt32(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000001; } } else { input.skipUnknownField(); @@ -1273,30 +983,43 @@ public final class SceneBattleInfoOuterClass { if (input.isAtField(FieldNames.worldLevel)) { if (!input.trySkipNullValue()) { worldLevel = input.readUInt32(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000002; } } else { input.skipUnknownField(); } break; } - case 266087962: { - if (input.isAtField(FieldNames.cHELNDDEKPB)) { + case -1678308365: + case -487930366: { + if (input.isAtField(FieldNames.battleId)) { if (!input.trySkipNullValue()) { - cHELNDDEKPB = input.readBool(); - bitField0_ |= 0x00000040; + battleId = input.readUInt32(); + bitField0_ |= 0x00000004; } } else { input.skipUnknownField(); } break; } - case -129465912: - case -39078016: { - if (input.isAtField(FieldNames.mechanismBarInfo)) { + case 141999058: + case -1894951668: { + if (input.isAtField(FieldNames.logicRandomSeed)) { if (!input.trySkipNullValue()) { - input.readMessage(mechanismBarInfo); - bitField0_ |= 0x00000080; + logicRandomSeed = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1897528135: + case 1306191356: { + if (input.isAtField(FieldNames.stageId)) { + if (!input.trySkipNullValue()) { + stageId = input.readUInt32(); + bitField0_ |= 0x00000010; } } else { input.skipUnknownField(); @@ -1308,19 +1031,7 @@ public final class SceneBattleInfoOuterClass { if (input.isAtField(FieldNames.monsterWaveList)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(monsterWaveList); - bitField0_ |= 0x00000100; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1522789487: - case 55792906: { - if (input.isAtField(FieldNames.buffList)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(buffList); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000020; } } else { input.skipUnknownField(); @@ -1332,19 +1043,19 @@ public final class SceneBattleInfoOuterClass { if (input.isAtField(FieldNames.battleAvatarList)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(battleAvatarList); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000040; } } else { input.skipUnknownField(); } break; } - case 1643489406: - case 1679998413: { - if (input.isAtField(FieldNames.eventBattleInfoList)) { + case -1522789487: + case 55792906: { + if (input.isAtField(FieldNames.buffList)) { if (!input.trySkipNullValue()) { - input.readRepeatedMessage(eventBattleInfoList); - bitField0_ |= 0x00000800; + input.readRepeatedMessage(buffList); + bitField0_ |= 0x00000080; } } else { input.skipUnknownField(); @@ -1356,7 +1067,19 @@ public final class SceneBattleInfoOuterClass { if (input.isAtField(FieldNames.battleTargetInfo)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(battleTargetInfo); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00000100; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1643489406: + case 1679998413: { + if (input.isAtField(FieldNames.eventBattleInfoList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(eventBattleInfoList); + bitField0_ |= 0x00000200; } } else { input.skipUnknownField(); @@ -1763,31 +1486,25 @@ public final class SceneBattleInfoOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName battleId = FieldName.forField("battleId", "battle_id"); - - static final FieldName stageId = FieldName.forField("stageId", "stage_id"); - - static final FieldName gCNHGANFJKF = FieldName.forField("GCNHGANFJKF"); - static final FieldName roundsLimit = FieldName.forField("roundsLimit", "rounds_limit"); - static final FieldName logicRandomSeed = FieldName.forField("logicRandomSeed", "logic_random_seed"); - static final FieldName worldLevel = FieldName.forField("worldLevel", "world_level"); - static final FieldName cHELNDDEKPB = FieldName.forField("CHELNDDEKPB"); + static final FieldName battleId = FieldName.forField("battleId", "battle_id"); - static final FieldName mechanismBarInfo = FieldName.forField("mechanismBarInfo", "mechanism_bar_info"); + static final FieldName logicRandomSeed = FieldName.forField("logicRandomSeed", "logic_random_seed"); + + static final FieldName stageId = FieldName.forField("stageId", "stage_id"); static final FieldName monsterWaveList = FieldName.forField("monsterWaveList", "monster_wave_list"); - static final FieldName buffList = FieldName.forField("buffList", "buff_list"); - static final FieldName battleAvatarList = FieldName.forField("battleAvatarList", "battle_avatar_list"); - static final FieldName eventBattleInfoList = FieldName.forField("eventBattleInfoList", "event_battle_info_list"); + static final FieldName buffList = FieldName.forField("buffList", "buff_list"); static final FieldName battleTargetInfo = FieldName.forField("battleTargetInfo", "battle_target_info"); + + 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 1b0b9c6..a6b5334 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneCastSkillCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneCastSkillCsReqOuterClass.java @@ -19,33 +19,33 @@ public final class SceneCastSkillCsReqOuterClass { public static final class SceneCastSkillCsReq extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; + /** + * optional uint32 caster_id = 1; + */ + private int casterId; + + /** + * optional uint32 skill_index = 6; + */ + private int skillIndex; + /** * optional uint32 attacked_group_id = 8; */ private int attackedGroupId; /** - * optional uint32 caster_id = 11; - */ - private int casterId; - - /** - * optional uint32 skill_index = 15; - */ - private int skillIndex; - - /** - * optional .MotionInfo target_motion = 7; + * optional .MotionInfo target_motion = 15; */ private final MotionInfoOuterClass.MotionInfo targetMotion = MotionInfoOuterClass.MotionInfo.newInstance(); /** - * repeated uint32 hit_target_entity_id_list = 2; + * repeated uint32 hit_target_entity_id_list = 13; */ private final RepeatedInt hitTargetEntityIdList = RepeatedInt.newEmptyInstance(); /** - * repeated uint32 assist_monster_entity_id_list = 13; + * repeated uint32 assist_monster_entity_id_list = 14; */ private final RepeatedInt assistMonsterEntityIdList = RepeatedInt.newEmptyInstance(); @@ -59,12 +59,86 @@ public final class SceneCastSkillCsReqOuterClass { return new SceneCastSkillCsReq(); } + /** + * optional uint32 caster_id = 1; + * @return whether the casterId field is set + */ + public boolean hasCasterId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 caster_id = 1; + * @return this + */ + public SceneCastSkillCsReq clearCasterId() { + bitField0_ &= ~0x00000001; + casterId = 0; + return this; + } + + /** + * optional uint32 caster_id = 1; + * @return the casterId + */ + public int getCasterId() { + return casterId; + } + + /** + * optional uint32 caster_id = 1; + * @param value the casterId to set + * @return this + */ + public SceneCastSkillCsReq setCasterId(final int value) { + bitField0_ |= 0x00000001; + casterId = value; + return this; + } + + /** + * optional uint32 skill_index = 6; + * @return whether the skillIndex field is set + */ + public boolean hasSkillIndex() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 skill_index = 6; + * @return this + */ + public SceneCastSkillCsReq clearSkillIndex() { + bitField0_ &= ~0x00000002; + skillIndex = 0; + return this; + } + + /** + * optional uint32 skill_index = 6; + * @return the skillIndex + */ + public int getSkillIndex() { + return skillIndex; + } + + /** + * optional uint32 skill_index = 6; + * @param value the skillIndex to set + * @return this + */ + public SceneCastSkillCsReq setSkillIndex(final int value) { + bitField0_ |= 0x00000002; + skillIndex = value; + return this; + } + /** * optional uint32 attacked_group_id = 8; * @return whether the attackedGroupId field is set */ public boolean hasAttackedGroupId() { - return (bitField0_ & 0x00000001) != 0; + return (bitField0_ & 0x00000004) != 0; } /** @@ -72,7 +146,7 @@ public final class SceneCastSkillCsReqOuterClass { * @return this */ public SceneCastSkillCsReq clearAttackedGroupId() { - bitField0_ &= ~0x00000001; + bitField0_ &= ~0x00000004; attackedGroupId = 0; return this; } @@ -91,87 +165,13 @@ public final class SceneCastSkillCsReqOuterClass { * @return this */ public SceneCastSkillCsReq setAttackedGroupId(final int value) { - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; attackedGroupId = value; return this; } /** - * optional uint32 caster_id = 11; - * @return whether the casterId field is set - */ - public boolean hasCasterId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 caster_id = 11; - * @return this - */ - public SceneCastSkillCsReq clearCasterId() { - bitField0_ &= ~0x00000002; - casterId = 0; - return this; - } - - /** - * optional uint32 caster_id = 11; - * @return the casterId - */ - public int getCasterId() { - return casterId; - } - - /** - * optional uint32 caster_id = 11; - * @param value the casterId to set - * @return this - */ - public SceneCastSkillCsReq setCasterId(final int value) { - bitField0_ |= 0x00000002; - casterId = value; - return this; - } - - /** - * optional uint32 skill_index = 15; - * @return whether the skillIndex field is set - */ - public boolean hasSkillIndex() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 skill_index = 15; - * @return this - */ - public SceneCastSkillCsReq clearSkillIndex() { - bitField0_ &= ~0x00000004; - skillIndex = 0; - return this; - } - - /** - * optional uint32 skill_index = 15; - * @return the skillIndex - */ - public int getSkillIndex() { - return skillIndex; - } - - /** - * optional uint32 skill_index = 15; - * @param value the skillIndex to set - * @return this - */ - public SceneCastSkillCsReq setSkillIndex(final int value) { - bitField0_ |= 0x00000004; - skillIndex = value; - return this; - } - - /** - * optional .MotionInfo target_motion = 7; + * optional .MotionInfo target_motion = 15; * @return whether the targetMotion field is set */ public boolean hasTargetMotion() { @@ -179,7 +179,7 @@ public final class SceneCastSkillCsReqOuterClass { } /** - * optional .MotionInfo target_motion = 7; + * optional .MotionInfo target_motion = 15; * @return this */ public SceneCastSkillCsReq clearTargetMotion() { @@ -189,7 +189,7 @@ public final class SceneCastSkillCsReqOuterClass { } /** - * optional .MotionInfo target_motion = 7; + * optional .MotionInfo target_motion = 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. @@ -203,7 +203,7 @@ public final class SceneCastSkillCsReqOuterClass { } /** - * optional .MotionInfo target_motion = 7; + * optional .MotionInfo target_motion = 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 @@ -217,7 +217,7 @@ public final class SceneCastSkillCsReqOuterClass { } /** - * optional .MotionInfo target_motion = 7; + * optional .MotionInfo target_motion = 15; * @param value the targetMotion to set * @return this */ @@ -228,7 +228,7 @@ public final class SceneCastSkillCsReqOuterClass { } /** - * repeated uint32 hit_target_entity_id_list = 2; + * repeated uint32 hit_target_entity_id_list = 13; * @return whether the hitTargetEntityIdList field is set */ public boolean hasHitTargetEntityIdList() { @@ -236,7 +236,7 @@ public final class SceneCastSkillCsReqOuterClass { } /** - * repeated uint32 hit_target_entity_id_list = 2; + * repeated uint32 hit_target_entity_id_list = 13; * @return this */ public SceneCastSkillCsReq clearHitTargetEntityIdList() { @@ -246,7 +246,7 @@ public final class SceneCastSkillCsReqOuterClass { } /** - * repeated uint32 hit_target_entity_id_list = 2; + * repeated uint32 hit_target_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. @@ -260,7 +260,7 @@ public final class SceneCastSkillCsReqOuterClass { } /** - * repeated uint32 hit_target_entity_id_list = 2; + * repeated uint32 hit_target_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 @@ -274,7 +274,7 @@ public final class SceneCastSkillCsReqOuterClass { } /** - * repeated uint32 hit_target_entity_id_list = 2; + * repeated uint32 hit_target_entity_id_list = 13; * @param value the hitTargetEntityIdList to add * @return this */ @@ -285,7 +285,7 @@ public final class SceneCastSkillCsReqOuterClass { } /** - * repeated uint32 hit_target_entity_id_list = 2; + * repeated uint32 hit_target_entity_id_list = 13; * @param values the hitTargetEntityIdList to add * @return this */ @@ -296,7 +296,7 @@ public final class SceneCastSkillCsReqOuterClass { } /** - * repeated uint32 assist_monster_entity_id_list = 13; + * repeated uint32 assist_monster_entity_id_list = 14; * @return whether the assistMonsterEntityIdList field is set */ public boolean hasAssistMonsterEntityIdList() { @@ -304,7 +304,7 @@ public final class SceneCastSkillCsReqOuterClass { } /** - * repeated uint32 assist_monster_entity_id_list = 13; + * repeated uint32 assist_monster_entity_id_list = 14; * @return this */ public SceneCastSkillCsReq clearAssistMonsterEntityIdList() { @@ -314,7 +314,7 @@ public final class SceneCastSkillCsReqOuterClass { } /** - * repeated uint32 assist_monster_entity_id_list = 13; + * repeated uint32 assist_monster_entity_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. @@ -328,7 +328,7 @@ public final class SceneCastSkillCsReqOuterClass { } /** - * repeated uint32 assist_monster_entity_id_list = 13; + * repeated uint32 assist_monster_entity_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 @@ -342,7 +342,7 @@ public final class SceneCastSkillCsReqOuterClass { } /** - * repeated uint32 assist_monster_entity_id_list = 13; + * repeated uint32 assist_monster_entity_id_list = 14; * @param value the assistMonsterEntityIdList to add * @return this */ @@ -353,7 +353,7 @@ public final class SceneCastSkillCsReqOuterClass { } /** - * repeated uint32 assist_monster_entity_id_list = 13; + * repeated uint32 assist_monster_entity_id_list = 14; * @param values the assistMonsterEntityIdList to add * @return this */ @@ -368,9 +368,9 @@ public final class SceneCastSkillCsReqOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - attackedGroupId = other.attackedGroupId; casterId = other.casterId; skillIndex = other.skillIndex; + attackedGroupId = other.attackedGroupId; targetMotion.copyFrom(other.targetMotion); hitTargetEntityIdList.copyFrom(other.hitTargetEntityIdList); assistMonsterEntityIdList.copyFrom(other.assistMonsterEntityIdList); @@ -384,15 +384,15 @@ public final class SceneCastSkillCsReqOuterClass { return this; } cachedSize = -1; - if (other.hasAttackedGroupId()) { - setAttackedGroupId(other.attackedGroupId); - } if (other.hasCasterId()) { setCasterId(other.casterId); } if (other.hasSkillIndex()) { setSkillIndex(other.skillIndex); } + if (other.hasAttackedGroupId()) { + setAttackedGroupId(other.attackedGroupId); + } if (other.hasTargetMotion()) { getMutableTargetMotion().mergeFrom(other.targetMotion); } @@ -412,9 +412,9 @@ public final class SceneCastSkillCsReqOuterClass { } cachedSize = -1; bitField0_ = 0; - attackedGroupId = 0; casterId = 0; skillIndex = 0; + attackedGroupId = 0; targetMotion.clear(); hitTargetEntityIdList.clear(); assistMonsterEntityIdList.clear(); @@ -444,9 +444,9 @@ public final class SceneCastSkillCsReqOuterClass { } SceneCastSkillCsReq other = (SceneCastSkillCsReq) o; return bitField0_ == other.bitField0_ - && (!hasAttackedGroupId() || attackedGroupId == other.attackedGroupId) && (!hasCasterId() || casterId == other.casterId) && (!hasSkillIndex() || skillIndex == other.skillIndex) + && (!hasAttackedGroupId() || attackedGroupId == other.attackedGroupId) && (!hasTargetMotion() || targetMotion.equals(other.targetMotion)) && (!hasHitTargetEntityIdList() || hitTargetEntityIdList.equals(other.hitTargetEntityIdList)) && (!hasAssistMonsterEntityIdList() || assistMonsterEntityIdList.equals(other.assistMonsterEntityIdList)); @@ -455,30 +455,30 @@ public final class SceneCastSkillCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(casterId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(skillIndex); + } + if ((bitField0_ & 0x00000004) != 0) { output.writeRawByte((byte) 64); output.writeUInt32NoTag(attackedGroupId); } - if ((bitField0_ & 0x00000002) != 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) 58); + output.writeRawByte((byte) 122); output.writeMessageNoTag(targetMotion); } if ((bitField0_ & 0x00000010) != 0) { for (int i = 0; i < hitTargetEntityIdList.length(); i++) { - output.writeRawByte((byte) 16); + output.writeRawByte((byte) 104); output.writeUInt32NoTag(hitTargetEntityIdList.array()[i]); } } if ((bitField0_ & 0x00000020) != 0) { for (int i = 0; i < assistMonsterEntityIdList.length(); i++) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 112); output.writeUInt32NoTag(assistMonsterEntityIdList.array()[i]); } } @@ -488,14 +488,14 @@ public final class SceneCastSkillCsReqOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(attackedGroupId); - } - if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(casterId); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(skillIndex); } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(attackedGroupId); + } if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(targetMotion); } @@ -515,52 +515,52 @@ public final class SceneCastSkillCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { + case 8: { + // casterId + casterId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // skillIndex + skillIndex = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 64) { + break; + } + } case 64: { // attackedGroupId attackedGroupId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 88) { - break; - } - } - case 88: { - // casterId - casterId = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 120) { - break; - } - } - case 120: { - // skillIndex - skillIndex = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 58) { + if (tag != 122) { break; } } - case 58: { + case 122: { // targetMotion input.readMessage(targetMotion); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 18) { - break; - } - } - case 18: { - // hitTargetEntityIdList [packed=true] - input.readPackedUInt32(hitTargetEntityIdList, tag); - bitField0_ |= 0x00000010; - tag = input.readTag(); if (tag != 106) { break; } } case 106: { + // hitTargetEntityIdList [packed=true] + input.readPackedUInt32(hitTargetEntityIdList, tag); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 114) { + break; + } + } + case 114: { // assistMonsterEntityIdList [packed=true] input.readPackedUInt32(assistMonsterEntityIdList, tag); bitField0_ |= 0x00000020; @@ -579,13 +579,13 @@ public final class SceneCastSkillCsReqOuterClass { tag = input.readTag(); break; } - case 16: { + case 104: { // hitTargetEntityIdList [packed=false] tag = input.readRepeatedUInt32(hitTargetEntityIdList, tag); bitField0_ |= 0x00000010; break; } - case 104: { + case 112: { // assistMonsterEntityIdList [packed=false] tag = input.readRepeatedUInt32(assistMonsterEntityIdList, tag); bitField0_ |= 0x00000020; @@ -599,14 +599,14 @@ public final class SceneCastSkillCsReqOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.attackedGroupId, attackedGroupId); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.casterId, casterId); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.skillIndex, skillIndex); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.attackedGroupId, attackedGroupId); + } if ((bitField0_ & 0x00000008) != 0) { output.writeMessage(FieldNames.targetMotion, targetMotion); } @@ -626,24 +626,12 @@ public final class SceneCastSkillCsReqOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -1725961965: - case -715836621: { - if (input.isAtField(FieldNames.attackedGroupId)) { - if (!input.trySkipNullValue()) { - attackedGroupId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } case 35676775: case 1106001422: { if (input.isAtField(FieldNames.casterId)) { if (!input.trySkipNullValue()) { casterId = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } else { input.skipUnknownField(); @@ -655,6 +643,18 @@ public final class SceneCastSkillCsReqOuterClass { if (input.isAtField(FieldNames.skillIndex)) { if (!input.trySkipNullValue()) { skillIndex = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1725961965: + case -715836621: { + if (input.isAtField(FieldNames.attackedGroupId)) { + if (!input.trySkipNullValue()) { + attackedGroupId = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -751,12 +751,12 @@ public final class SceneCastSkillCsReqOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName attackedGroupId = FieldName.forField("attackedGroupId", "attacked_group_id"); - static final FieldName casterId = FieldName.forField("casterId", "caster_id"); static final FieldName skillIndex = FieldName.forField("skillIndex", "skill_index"); + static final FieldName attackedGroupId = FieldName.forField("attackedGroupId", "attacked_group_id"); + static final FieldName targetMotion = FieldName.forField("targetMotion", "target_motion"); static final FieldName hitTargetEntityIdList = FieldName.forField("hitTargetEntityIdList", "hit_target_entity_id_list"); diff --git a/src/generated/main/emu/lunarcore/proto/SceneCastSkillMpUpdateScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneCastSkillMpUpdateScNotifyOuterClass.java index 5eb153f..884fd67 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneCastSkillMpUpdateScNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneCastSkillMpUpdateScNotifyOuterClass.java @@ -19,12 +19,12 @@ public final class SceneCastSkillMpUpdateScNotifyOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 attacked_group_id = 4; + * optional uint32 attacked_group_id = 8; */ private int attackedGroupId; /** - * optional uint32 mp = 6; + * optional uint32 mp = 13; */ private int mp; @@ -39,7 +39,7 @@ public final class SceneCastSkillMpUpdateScNotifyOuterClass { } /** - * optional uint32 attacked_group_id = 4; + * optional uint32 attacked_group_id = 8; * @return whether the attackedGroupId field is set */ public boolean hasAttackedGroupId() { @@ -47,7 +47,7 @@ public final class SceneCastSkillMpUpdateScNotifyOuterClass { } /** - * optional uint32 attacked_group_id = 4; + * optional uint32 attacked_group_id = 8; * @return this */ public SceneCastSkillMpUpdateScNotify clearAttackedGroupId() { @@ -57,7 +57,7 @@ public final class SceneCastSkillMpUpdateScNotifyOuterClass { } /** - * optional uint32 attacked_group_id = 4; + * optional uint32 attacked_group_id = 8; * @return the attackedGroupId */ public int getAttackedGroupId() { @@ -65,7 +65,7 @@ public final class SceneCastSkillMpUpdateScNotifyOuterClass { } /** - * optional uint32 attacked_group_id = 4; + * optional uint32 attacked_group_id = 8; * @param value the attackedGroupId to set * @return this */ @@ -76,7 +76,7 @@ public final class SceneCastSkillMpUpdateScNotifyOuterClass { } /** - * optional uint32 mp = 6; + * optional uint32 mp = 13; * @return whether the mp field is set */ public boolean hasMp() { @@ -84,7 +84,7 @@ public final class SceneCastSkillMpUpdateScNotifyOuterClass { } /** - * optional uint32 mp = 6; + * optional uint32 mp = 13; * @return this */ public SceneCastSkillMpUpdateScNotify clearMp() { @@ -94,7 +94,7 @@ public final class SceneCastSkillMpUpdateScNotifyOuterClass { } /** - * optional uint32 mp = 6; + * optional uint32 mp = 13; * @return the mp */ public int getMp() { @@ -102,7 +102,7 @@ public final class SceneCastSkillMpUpdateScNotifyOuterClass { } /** - * optional uint32 mp = 6; + * optional uint32 mp = 13; * @param value the mp to set * @return this */ @@ -177,11 +177,11 @@ public final class SceneCastSkillMpUpdateScNotifyOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 32); + output.writeRawByte((byte) 64); output.writeUInt32NoTag(attackedGroupId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 104); output.writeUInt32NoTag(mp); } } @@ -205,16 +205,16 @@ public final class SceneCastSkillMpUpdateScNotifyOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 32: { + case 64: { // attackedGroupId attackedGroupId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 48) { + if (tag != 104) { break; } } - case 48: { + case 104: { // mp mp = input.readUInt32(); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/SceneCastSkillScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneCastSkillScRspOuterClass.java index c61a9e9..244f561 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneCastSkillScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneCastSkillScRspOuterClass.java @@ -19,17 +19,17 @@ public final class SceneCastSkillScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 attacked_group_id = 5; + * optional uint32 attacked_group_id = 6; */ private int attackedGroupId; /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 12; */ private int retcode; /** - * optional .SceneBattleInfo battle_info = 11; + * optional .SceneBattleInfo battle_info = 5; */ private final SceneBattleInfoOuterClass.SceneBattleInfo battleInfo = SceneBattleInfoOuterClass.SceneBattleInfo.newInstance(); @@ -44,7 +44,7 @@ public final class SceneCastSkillScRspOuterClass { } /** - * optional uint32 attacked_group_id = 5; + * optional uint32 attacked_group_id = 6; * @return whether the attackedGroupId field is set */ public boolean hasAttackedGroupId() { @@ -52,7 +52,7 @@ public final class SceneCastSkillScRspOuterClass { } /** - * optional uint32 attacked_group_id = 5; + * optional uint32 attacked_group_id = 6; * @return this */ public SceneCastSkillScRsp clearAttackedGroupId() { @@ -62,7 +62,7 @@ public final class SceneCastSkillScRspOuterClass { } /** - * optional uint32 attacked_group_id = 5; + * optional uint32 attacked_group_id = 6; * @return the attackedGroupId */ public int getAttackedGroupId() { @@ -70,7 +70,7 @@ public final class SceneCastSkillScRspOuterClass { } /** - * optional uint32 attacked_group_id = 5; + * optional uint32 attacked_group_id = 6; * @param value the attackedGroupId to set * @return this */ @@ -81,7 +81,7 @@ public final class SceneCastSkillScRspOuterClass { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 12; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -89,7 +89,7 @@ public final class SceneCastSkillScRspOuterClass { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 12; * @return this */ public SceneCastSkillScRsp clearRetcode() { @@ -99,7 +99,7 @@ public final class SceneCastSkillScRspOuterClass { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 12; * @return the retcode */ public int getRetcode() { @@ -107,7 +107,7 @@ public final class SceneCastSkillScRspOuterClass { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 12; * @param value the retcode to set * @return this */ @@ -118,7 +118,7 @@ public final class SceneCastSkillScRspOuterClass { } /** - * optional .SceneBattleInfo battle_info = 11; + * optional .SceneBattleInfo battle_info = 5; * @return whether the battleInfo field is set */ public boolean hasBattleInfo() { @@ -126,7 +126,7 @@ public final class SceneCastSkillScRspOuterClass { } /** - * optional .SceneBattleInfo battle_info = 11; + * optional .SceneBattleInfo battle_info = 5; * @return this */ public SceneCastSkillScRsp clearBattleInfo() { @@ -136,7 +136,7 @@ public final class SceneCastSkillScRspOuterClass { } /** - * optional .SceneBattleInfo battle_info = 11; + * optional .SceneBattleInfo battle_info = 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. @@ -150,7 +150,7 @@ public final class SceneCastSkillScRspOuterClass { } /** - * optional .SceneBattleInfo battle_info = 11; + * optional .SceneBattleInfo battle_info = 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 @@ -164,7 +164,7 @@ public final class SceneCastSkillScRspOuterClass { } /** - * optional .SceneBattleInfo battle_info = 11; + * optional .SceneBattleInfo battle_info = 5; * @param value the battleInfo to set * @return this */ @@ -247,15 +247,15 @@ public final class SceneCastSkillScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 48); output.writeUInt32NoTag(attackedGroupId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 96); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 90); + output.writeRawByte((byte) 42); output.writeMessageNoTag(battleInfo); } } @@ -282,25 +282,25 @@ public final class SceneCastSkillScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 40: { + case 48: { // attackedGroupId attackedGroupId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 120) { + if (tag != 96) { break; } } - case 120: { + case 96: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 90) { + if (tag != 42) { break; } } - case 90: { + case 42: { // battleInfo input.readMessage(battleInfo); bitField0_ |= 0x00000004; diff --git a/src/generated/main/emu/lunarcore/proto/SceneEntityGroupInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneEntityGroupInfoOuterClass.java index 0db8135..5d2eed9 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneEntityGroupInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneEntityGroupInfoOuterClass.java @@ -20,17 +20,17 @@ public final class SceneEntityGroupInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 state = 1; + * optional uint32 state = 6; */ private int state; /** - * optional uint32 group_id = 4; + * optional uint32 group_id = 10; */ private int groupId; /** - * repeated .SceneEntityInfo entity_list = 5; + * repeated .SceneEntityInfo entity_list = 2; */ private final RepeatedMessage entityList = RepeatedMessage.newEmptyInstance(SceneEntityInfoOuterClass.SceneEntityInfo.getFactory()); @@ -45,7 +45,7 @@ public final class SceneEntityGroupInfoOuterClass { } /** - * optional uint32 state = 1; + * optional uint32 state = 6; * @return whether the state field is set */ public boolean hasState() { @@ -53,7 +53,7 @@ public final class SceneEntityGroupInfoOuterClass { } /** - * optional uint32 state = 1; + * optional uint32 state = 6; * @return this */ public SceneEntityGroupInfo clearState() { @@ -63,7 +63,7 @@ public final class SceneEntityGroupInfoOuterClass { } /** - * optional uint32 state = 1; + * optional uint32 state = 6; * @return the state */ public int getState() { @@ -71,7 +71,7 @@ public final class SceneEntityGroupInfoOuterClass { } /** - * optional uint32 state = 1; + * optional uint32 state = 6; * @param value the state to set * @return this */ @@ -82,7 +82,7 @@ public final class SceneEntityGroupInfoOuterClass { } /** - * optional uint32 group_id = 4; + * optional uint32 group_id = 10; * @return whether the groupId field is set */ public boolean hasGroupId() { @@ -90,7 +90,7 @@ public final class SceneEntityGroupInfoOuterClass { } /** - * optional uint32 group_id = 4; + * optional uint32 group_id = 10; * @return this */ public SceneEntityGroupInfo clearGroupId() { @@ -100,7 +100,7 @@ public final class SceneEntityGroupInfoOuterClass { } /** - * optional uint32 group_id = 4; + * optional uint32 group_id = 10; * @return the groupId */ public int getGroupId() { @@ -108,7 +108,7 @@ public final class SceneEntityGroupInfoOuterClass { } /** - * optional uint32 group_id = 4; + * optional uint32 group_id = 10; * @param value the groupId to set * @return this */ @@ -119,7 +119,7 @@ public final class SceneEntityGroupInfoOuterClass { } /** - * repeated .SceneEntityInfo entity_list = 5; + * repeated .SceneEntityInfo entity_list = 2; * @return whether the entityList field is set */ public boolean hasEntityList() { @@ -127,7 +127,7 @@ public final class SceneEntityGroupInfoOuterClass { } /** - * repeated .SceneEntityInfo entity_list = 5; + * repeated .SceneEntityInfo entity_list = 2; * @return this */ public SceneEntityGroupInfo clearEntityList() { @@ -137,7 +137,7 @@ public final class SceneEntityGroupInfoOuterClass { } /** - * repeated .SceneEntityInfo entity_list = 5; + * 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. @@ -151,7 +151,7 @@ public final class SceneEntityGroupInfoOuterClass { } /** - * repeated .SceneEntityInfo entity_list = 5; + * 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 @@ -165,7 +165,7 @@ public final class SceneEntityGroupInfoOuterClass { } /** - * repeated .SceneEntityInfo entity_list = 5; + * repeated .SceneEntityInfo entity_list = 2; * @param value the entityList to add * @return this */ @@ -177,7 +177,7 @@ public final class SceneEntityGroupInfoOuterClass { } /** - * repeated .SceneEntityInfo entity_list = 5; + * repeated .SceneEntityInfo entity_list = 2; * @param values the entityList to add * @return this */ @@ -260,16 +260,16 @@ public final class SceneEntityGroupInfoOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); + output.writeRawByte((byte) 48); output.writeUInt32NoTag(state); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 32); + output.writeRawByte((byte) 80); output.writeUInt32NoTag(groupId); } if ((bitField0_ & 0x00000004) != 0) { for (int i = 0; i < entityList.length(); i++) { - output.writeRawByte((byte) 42); + output.writeRawByte((byte) 18); output.writeMessageNoTag(entityList.get(i)); } } @@ -297,25 +297,25 @@ public final class SceneEntityGroupInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 8: { + case 48: { // state state = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 32) { + if (tag != 80) { break; } } - case 32: { + case 80: { // groupId groupId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 42) { + if (tag != 18) { break; } } - case 42: { + case 18: { // 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 8f326f5..911a08e 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneEntityInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneEntityInfoOuterClass.java @@ -19,24 +19,19 @@ public final class SceneEntityInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 entity_id = 1; - */ - private int entityId; - - /** - * optional uint32 group_id = 3; - */ - private int groupId; - - /** - * optional uint32 inst_id = 15; + * optional uint32 inst_id = 4; */ private int instId; /** - * optional .SceneSummonUnitInfo summon_unit = 4; + * optional uint32 entity_id = 6; */ - private final SceneSummonUnitInfoOuterClass.SceneSummonUnitInfo summonUnit = SceneSummonUnitInfoOuterClass.SceneSummonUnitInfo.newInstance(); + private int entityId; + + /** + * optional uint32 group_id = 11; + */ + private int groupId; /** * optional .ScenePropInfo prop = 5; @@ -44,25 +39,30 @@ public final class SceneEntityInfoOuterClass { private final ScenePropInfoOuterClass.ScenePropInfo prop = ScenePropInfoOuterClass.ScenePropInfo.newInstance(); /** - * optional .SceneActorInfo actor = 9; - */ - private final SceneActorInfoOuterClass.SceneActorInfo actor = SceneActorInfoOuterClass.SceneActorInfo.newInstance(); - - /** - * optional .SceneNpcInfo npc = 12; - */ - private final SceneNpcInfoOuterClass.SceneNpcInfo npc = SceneNpcInfoOuterClass.SceneNpcInfo.newInstance(); - - /** - * optional .MotionInfo motion = 13; + * optional .MotionInfo motion = 8; */ private final MotionInfoOuterClass.MotionInfo motion = MotionInfoOuterClass.MotionInfo.newInstance(); /** - * optional .SceneNpcMonsterInfo npc_monster = 14; + * optional .SceneNpcMonsterInfo npc_monster = 9; */ private final SceneNpcMonsterInfoOuterClass.SceneNpcMonsterInfo npcMonster = SceneNpcMonsterInfoOuterClass.SceneNpcMonsterInfo.newInstance(); + /** + * optional .SceneSummonUnitInfo summon_unit = 12; + */ + private final SceneSummonUnitInfoOuterClass.SceneSummonUnitInfo summonUnit = SceneSummonUnitInfoOuterClass.SceneSummonUnitInfo.newInstance(); + + /** + * optional .SceneActorInfo actor = 13; + */ + private final SceneActorInfoOuterClass.SceneActorInfo actor = SceneActorInfoOuterClass.SceneActorInfo.newInstance(); + + /** + * optional .SceneNpcInfo npc = 14; + */ + private final SceneNpcInfoOuterClass.SceneNpcInfo npc = SceneNpcInfoOuterClass.SceneNpcInfo.newInstance(); + private SceneEntityInfo() { } @@ -74,99 +74,25 @@ public final class SceneEntityInfoOuterClass { } /** - * optional uint32 entity_id = 1; - * @return whether the entityId field is set + * optional uint32 inst_id = 4; + * @return whether the instId field is set */ - public boolean hasEntityId() { + public boolean hasInstId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 entity_id = 1; - * @return this - */ - public SceneEntityInfo clearEntityId() { - bitField0_ &= ~0x00000001; - entityId = 0; - return this; - } - - /** - * optional uint32 entity_id = 1; - * @return the entityId - */ - public int getEntityId() { - return entityId; - } - - /** - * 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 = 3; - * @return whether the groupId field is set - */ - public boolean hasGroupId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 group_id = 3; - * @return this - */ - public SceneEntityInfo clearGroupId() { - bitField0_ &= ~0x00000002; - groupId = 0; - return this; - } - - /** - * optional uint32 group_id = 3; - * @return the groupId - */ - public int getGroupId() { - return groupId; - } - - /** - * optional uint32 group_id = 3; - * @param value the groupId to set - * @return this - */ - public SceneEntityInfo setGroupId(final int value) { - bitField0_ |= 0x00000002; - groupId = value; - return this; - } - - /** - * optional uint32 inst_id = 15; - * @return whether the instId field is set - */ - public boolean hasInstId() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 inst_id = 15; + * optional uint32 inst_id = 4; * @return this */ public SceneEntityInfo clearInstId() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000001; instId = 0; return this; } /** - * optional uint32 inst_id = 15; + * optional uint32 inst_id = 4; * @return the instId */ public int getInstId() { @@ -174,71 +100,87 @@ public final class SceneEntityInfoOuterClass { } /** - * optional uint32 inst_id = 15; + * optional uint32 inst_id = 4; * @param value the instId to set * @return this */ public SceneEntityInfo setInstId(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; instId = value; return this; } /** - * optional .SceneSummonUnitInfo summon_unit = 4; - * @return whether the summonUnit field is set + * optional uint32 entity_id = 6; + * @return whether the entityId field is set */ - public boolean hasSummonUnit() { - return (bitField0_ & 0x00000008) != 0; + public boolean hasEntityId() { + return (bitField0_ & 0x00000002) != 0; } /** - * optional .SceneSummonUnitInfo summon_unit = 4; + * optional uint32 entity_id = 6; * @return this */ - public SceneEntityInfo clearSummonUnit() { - bitField0_ &= ~0x00000008; - summonUnit.clear(); + public SceneEntityInfo clearEntityId() { + bitField0_ &= ~0x00000002; + entityId = 0; return this; } /** - * 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 + * optional uint32 entity_id = 6; + * @return the entityId */ - public SceneSummonUnitInfoOuterClass.SceneSummonUnitInfo getSummonUnit() { - return summonUnit; + public int getEntityId() { + return entityId; } /** - * 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 + * optional uint32 entity_id = 6; + * @param value the entityId to set * @return this */ - public SceneEntityInfo setSummonUnit( - final SceneSummonUnitInfoOuterClass.SceneSummonUnitInfo value) { - bitField0_ |= 0x00000008; - summonUnit.copyFrom(value); + public SceneEntityInfo setEntityId(final int value) { + bitField0_ |= 0x00000002; + entityId = value; + return this; + } + + /** + * optional uint32 group_id = 11; + * @return whether the groupId field is set + */ + public boolean hasGroupId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 group_id = 11; + * @return this + */ + public SceneEntityInfo clearGroupId() { + bitField0_ &= ~0x00000004; + groupId = 0; + return this; + } + + /** + * optional uint32 group_id = 11; + * @return the groupId + */ + public int getGroupId() { + return groupId; + } + + /** + * optional uint32 group_id = 11; + * @param value the groupId to set + * @return this + */ + public SceneEntityInfo setGroupId(final int value) { + bitField0_ |= 0x00000004; + groupId = value; return this; } @@ -247,7 +189,7 @@ public final class SceneEntityInfoOuterClass { * @return whether the prop field is set */ public boolean hasProp() { - return (bitField0_ & 0x00000010) != 0; + return (bitField0_ & 0x00000008) != 0; } /** @@ -255,7 +197,7 @@ public final class SceneEntityInfoOuterClass { * @return this */ public SceneEntityInfo clearProp() { - bitField0_ &= ~0x00000010; + bitField0_ &= ~0x00000008; prop.clear(); return this; } @@ -284,7 +226,7 @@ public final class SceneEntityInfoOuterClass { * @return internal storage object for modifications */ public ScenePropInfoOuterClass.ScenePropInfo getMutableProp() { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; return prop; } @@ -294,145 +236,31 @@ public final class SceneEntityInfoOuterClass { * @return this */ public SceneEntityInfo setProp(final ScenePropInfoOuterClass.ScenePropInfo value) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; prop.copyFrom(value); return this; } /** - * optional .SceneActorInfo actor = 9; - * @return whether the actor field is set - */ - public boolean hasActor() { - return (bitField0_ & 0x00000020) != 0; - } - - /** - * optional .SceneActorInfo actor = 9; - * @return this - */ - public SceneEntityInfo clearActor() { - bitField0_ &= ~0x00000020; - actor.clear(); - return this; - } - - /** - * 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 #getMutableActor()} if you want to modify it. - * - * @return internal storage object for reading - */ - public SceneActorInfoOuterClass.SceneActorInfo getActor() { - return actor; - } - - /** - * 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 - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public SceneActorInfoOuterClass.SceneActorInfo getMutableActor() { - bitField0_ |= 0x00000020; - return actor; - } - - /** - * optional .SceneActorInfo actor = 9; - * @param value the actor to set - * @return this - */ - public SceneEntityInfo setActor(final SceneActorInfoOuterClass.SceneActorInfo value) { - bitField0_ |= 0x00000020; - actor.copyFrom(value); - return this; - } - - /** - * optional .SceneNpcInfo npc = 12; - * @return whether the npc field is set - */ - public boolean hasNpc() { - return (bitField0_ & 0x00000040) != 0; - } - - /** - * optional .SceneNpcInfo npc = 12; - * @return this - */ - public SceneEntityInfo clearNpc() { - bitField0_ &= ~0x00000040; - npc.clear(); - return this; - } - - /** - * 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 #getMutableNpc()} if you want to modify it. - * - * @return internal storage object for reading - */ - public SceneNpcInfoOuterClass.SceneNpcInfo getNpc() { - return npc; - } - - /** - * 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 - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public SceneNpcInfoOuterClass.SceneNpcInfo getMutableNpc() { - bitField0_ |= 0x00000040; - return npc; - } - - /** - * optional .SceneNpcInfo npc = 12; - * @param value the npc to set - * @return this - */ - public SceneEntityInfo setNpc(final SceneNpcInfoOuterClass.SceneNpcInfo value) { - bitField0_ |= 0x00000040; - npc.copyFrom(value); - return this; - } - - /** - * optional .MotionInfo motion = 13; + * optional .MotionInfo motion = 8; * @return whether the motion field is set */ public boolean hasMotion() { - return (bitField0_ & 0x00000080) != 0; + return (bitField0_ & 0x00000010) != 0; } /** - * optional .MotionInfo motion = 13; + * optional .MotionInfo motion = 8; * @return this */ public SceneEntityInfo clearMotion() { - bitField0_ &= ~0x00000080; + bitField0_ &= ~0x00000010; motion.clear(); return this; } /** - * optional .MotionInfo motion = 13; + * optional .MotionInfo motion = 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. @@ -446,7 +274,7 @@ public final class SceneEntityInfoOuterClass { } /** - * optional .MotionInfo motion = 13; + * optional .MotionInfo motion = 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 @@ -455,41 +283,41 @@ public final class SceneEntityInfoOuterClass { * @return internal storage object for modifications */ public MotionInfoOuterClass.MotionInfo getMutableMotion() { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000010; return motion; } /** - * optional .MotionInfo motion = 13; + * optional .MotionInfo motion = 8; * @param value the motion to set * @return this */ public SceneEntityInfo setMotion(final MotionInfoOuterClass.MotionInfo value) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000010; motion.copyFrom(value); return this; } /** - * optional .SceneNpcMonsterInfo npc_monster = 14; + * optional .SceneNpcMonsterInfo npc_monster = 9; * @return whether the npcMonster field is set */ public boolean hasNpcMonster() { - return (bitField0_ & 0x00000100) != 0; + return (bitField0_ & 0x00000020) != 0; } /** - * optional .SceneNpcMonsterInfo npc_monster = 14; + * optional .SceneNpcMonsterInfo npc_monster = 9; * @return this */ public SceneEntityInfo clearNpcMonster() { - bitField0_ &= ~0x00000100; + bitField0_ &= ~0x00000020; npcMonster.clear(); return this; } /** - * optional .SceneNpcMonsterInfo npc_monster = 14; + * optional .SceneNpcMonsterInfo npc_monster = 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. @@ -503,7 +331,7 @@ public final class SceneEntityInfoOuterClass { } /** - * optional .SceneNpcMonsterInfo npc_monster = 14; + * optional .SceneNpcMonsterInfo npc_monster = 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 @@ -512,36 +340,208 @@ public final class SceneEntityInfoOuterClass { * @return internal storage object for modifications */ public SceneNpcMonsterInfoOuterClass.SceneNpcMonsterInfo getMutableNpcMonster() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000020; return npcMonster; } /** - * optional .SceneNpcMonsterInfo npc_monster = 14; + * optional .SceneNpcMonsterInfo npc_monster = 9; * @param value the npcMonster to set * @return this */ public SceneEntityInfo setNpcMonster( final SceneNpcMonsterInfoOuterClass.SceneNpcMonsterInfo value) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000020; npcMonster.copyFrom(value); return this; } + /** + * optional .SceneSummonUnitInfo summon_unit = 12; + * @return whether the summonUnit field is set + */ + public boolean hasSummonUnit() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional .SceneSummonUnitInfo summon_unit = 12; + * @return this + */ + public SceneEntityInfo clearSummonUnit() { + bitField0_ &= ~0x00000040; + summonUnit.clear(); + return this; + } + + /** + * optional .SceneSummonUnitInfo summon_unit = 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 #getMutableSummonUnit()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SceneSummonUnitInfoOuterClass.SceneSummonUnitInfo getSummonUnit() { + return summonUnit; + } + + /** + * optional .SceneSummonUnitInfo summon_unit = 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 + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public SceneSummonUnitInfoOuterClass.SceneSummonUnitInfo getMutableSummonUnit() { + bitField0_ |= 0x00000040; + return summonUnit; + } + + /** + * optional .SceneSummonUnitInfo summon_unit = 12; + * @param value the summonUnit to set + * @return this + */ + public SceneEntityInfo setSummonUnit( + final SceneSummonUnitInfoOuterClass.SceneSummonUnitInfo value) { + bitField0_ |= 0x00000040; + summonUnit.copyFrom(value); + return this; + } + + /** + * optional .SceneActorInfo actor = 13; + * @return whether the actor field is set + */ + public boolean hasActor() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * optional .SceneActorInfo actor = 13; + * @return this + */ + public SceneEntityInfo clearActor() { + bitField0_ &= ~0x00000080; + actor.clear(); + return this; + } + + /** + * optional .SceneActorInfo actor = 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 #getMutableActor()} 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() { + bitField0_ |= 0x00000080; + return actor; + } + + /** + * optional .SceneActorInfo actor = 13; + * @param value the actor to set + * @return this + */ + public SceneEntityInfo setActor(final SceneActorInfoOuterClass.SceneActorInfo value) { + bitField0_ |= 0x00000080; + actor.copyFrom(value); + return this; + } + + /** + * optional .SceneNpcInfo npc = 14; + * @return whether the npc field is set + */ + public boolean hasNpc() { + return (bitField0_ & 0x00000100) != 0; + } + + /** + * optional .SceneNpcInfo npc = 14; + * @return this + */ + public SceneEntityInfo clearNpc() { + bitField0_ &= ~0x00000100; + npc.clear(); + return this; + } + + /** + * optional .SceneNpcInfo npc = 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 #getMutableNpc()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SceneNpcInfoOuterClass.SceneNpcInfo getNpc() { + return npc; + } + + /** + * optional .SceneNpcInfo npc = 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 SceneNpcInfoOuterClass.SceneNpcInfo getMutableNpc() { + bitField0_ |= 0x00000100; + return npc; + } + + /** + * optional .SceneNpcInfo npc = 14; + * @param value the npc to set + * @return this + */ + public SceneEntityInfo setNpc(final SceneNpcInfoOuterClass.SceneNpcInfo value) { + bitField0_ |= 0x00000100; + npc.copyFrom(value); + return this; + } + @Override public SceneEntityInfo copyFrom(final SceneEntityInfo other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; + instId = other.instId; entityId = other.entityId; groupId = other.groupId; - instId = other.instId; - summonUnit.copyFrom(other.summonUnit); prop.copyFrom(other.prop); - actor.copyFrom(other.actor); - npc.copyFrom(other.npc); motion.copyFrom(other.motion); npcMonster.copyFrom(other.npcMonster); + summonUnit.copyFrom(other.summonUnit); + actor.copyFrom(other.actor); + npc.copyFrom(other.npc); } return this; } @@ -552,33 +552,33 @@ public final class SceneEntityInfoOuterClass { return this; } cachedSize = -1; + if (other.hasInstId()) { + setInstId(other.instId); + } if (other.hasEntityId()) { setEntityId(other.entityId); } if (other.hasGroupId()) { setGroupId(other.groupId); } - if (other.hasInstId()) { - setInstId(other.instId); - } - if (other.hasSummonUnit()) { - getMutableSummonUnit().mergeFrom(other.summonUnit); - } if (other.hasProp()) { getMutableProp().mergeFrom(other.prop); } - if (other.hasActor()) { - getMutableActor().mergeFrom(other.actor); - } - if (other.hasNpc()) { - getMutableNpc().mergeFrom(other.npc); - } if (other.hasMotion()) { getMutableMotion().mergeFrom(other.motion); } if (other.hasNpcMonster()) { getMutableNpcMonster().mergeFrom(other.npcMonster); } + if (other.hasSummonUnit()) { + getMutableSummonUnit().mergeFrom(other.summonUnit); + } + if (other.hasActor()) { + getMutableActor().mergeFrom(other.actor); + } + if (other.hasNpc()) { + getMutableNpc().mergeFrom(other.npc); + } return this; } @@ -589,15 +589,15 @@ public final class SceneEntityInfoOuterClass { } cachedSize = -1; bitField0_ = 0; + instId = 0; entityId = 0; groupId = 0; - instId = 0; - summonUnit.clear(); prop.clear(); - actor.clear(); - npc.clear(); motion.clear(); npcMonster.clear(); + summonUnit.clear(); + actor.clear(); + npc.clear(); return this; } @@ -608,12 +608,12 @@ public final class SceneEntityInfoOuterClass { } cachedSize = -1; bitField0_ = 0; - summonUnit.clearQuick(); prop.clearQuick(); - actor.clearQuick(); - npc.clearQuick(); motion.clearQuick(); npcMonster.clearQuick(); + summonUnit.clearQuick(); + actor.clearQuick(); + npc.clearQuick(); return this; } @@ -627,54 +627,54 @@ public final class SceneEntityInfoOuterClass { } SceneEntityInfo other = (SceneEntityInfo) o; return bitField0_ == other.bitField0_ + && (!hasInstId() || instId == other.instId) && (!hasEntityId() || entityId == other.entityId) && (!hasGroupId() || groupId == other.groupId) - && (!hasInstId() || instId == other.instId) - && (!hasSummonUnit() || summonUnit.equals(other.summonUnit)) && (!hasProp() || prop.equals(other.prop)) - && (!hasActor() || actor.equals(other.actor)) - && (!hasNpc() || npc.equals(other.npc)) && (!hasMotion() || motion.equals(other.motion)) - && (!hasNpcMonster() || npcMonster.equals(other.npcMonster)); + && (!hasNpcMonster() || npcMonster.equals(other.npcMonster)) + && (!hasSummonUnit() || summonUnit.equals(other.summonUnit)) + && (!hasActor() || actor.equals(other.actor)) + && (!hasNpc() || npc.equals(other.npc)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(entityId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(groupId); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(instId); } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 34); - output.writeMessageNoTag(summonUnit); + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(entityId); } - if ((bitField0_ & 0x00000010) != 0) { + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(groupId); + } + if ((bitField0_ & 0x00000008) != 0) { output.writeRawByte((byte) 42); output.writeMessageNoTag(prop); } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 66); + output.writeMessageNoTag(motion); + } if ((bitField0_ & 0x00000020) != 0) { output.writeRawByte((byte) 74); - output.writeMessageNoTag(actor); + output.writeMessageNoTag(npcMonster); } if ((bitField0_ & 0x00000040) != 0) { output.writeRawByte((byte) 98); - output.writeMessageNoTag(npc); + output.writeMessageNoTag(summonUnit); } if ((bitField0_ & 0x00000080) != 0) { output.writeRawByte((byte) 106); - output.writeMessageNoTag(motion); + output.writeMessageNoTag(actor); } if ((bitField0_ & 0x00000100) != 0) { output.writeRawByte((byte) 114); - output.writeMessageNoTag(npcMonster); + output.writeMessageNoTag(npc); } } @@ -682,32 +682,32 @@ public final class SceneEntityInfoOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(entityId); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); - } - if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(instId); } - if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(summonUnit); + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(entityId); } - if ((bitField0_ & 0x00000010) != 0) { + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); + } + if ((bitField0_ & 0x00000008) != 0) { 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) { + if ((bitField0_ & 0x00000010) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(motion); } - if ((bitField0_ & 0x00000100) != 0) { + if ((bitField0_ & 0x00000020) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(npcMonster); } + if ((bitField0_ & 0x00000040) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(summonUnit); + } + if ((bitField0_ & 0x00000080) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(actor); + } + if ((bitField0_ & 0x00000100) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(npc); + } return size; } @@ -718,37 +718,28 @@ public final class SceneEntityInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 8: { - // entityId - entityId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 24) { - break; - } - } - case 24: { - // groupId - groupId = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 120) { - break; - } - } - case 120: { + case 32: { // instId instId = input.readUInt32(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 34) { + if (tag != 48) { break; } } - case 34: { - // summonUnit - input.readMessage(summonUnit); - bitField0_ |= 0x00000008; + case 48: { + // entityId + entityId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { + // groupId + groupId = input.readUInt32(); + bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 42) { break; @@ -757,6 +748,15 @@ public final class SceneEntityInfoOuterClass { case 42: { // prop input.readMessage(prop); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 66) { + break; + } + } + case 66: { + // motion + input.readMessage(motion); bitField0_ |= 0x00000010; tag = input.readTag(); if (tag != 74) { @@ -764,8 +764,8 @@ public final class SceneEntityInfoOuterClass { } } case 74: { - // actor - input.readMessage(actor); + // npcMonster + input.readMessage(npcMonster); bitField0_ |= 0x00000020; tag = input.readTag(); if (tag != 98) { @@ -773,8 +773,8 @@ public final class SceneEntityInfoOuterClass { } } case 98: { - // npc - input.readMessage(npc); + // summonUnit + input.readMessage(summonUnit); bitField0_ |= 0x00000040; tag = input.readTag(); if (tag != 106) { @@ -782,8 +782,8 @@ public final class SceneEntityInfoOuterClass { } } case 106: { - // motion - input.readMessage(motion); + // actor + input.readMessage(actor); bitField0_ |= 0x00000080; tag = input.readTag(); if (tag != 114) { @@ -791,8 +791,8 @@ public final class SceneEntityInfoOuterClass { } } case 114: { - // npcMonster - input.readMessage(npcMonster); + // npc + input.readMessage(npc); bitField0_ |= 0x00000100; tag = input.readTag(); if (tag != 0) { @@ -817,32 +817,32 @@ public final class SceneEntityInfoOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.entityId, entityId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.groupId, groupId); - } - if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.instId, instId); } - if ((bitField0_ & 0x00000008) != 0) { - output.writeMessage(FieldNames.summonUnit, summonUnit); + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.entityId, entityId); } - if ((bitField0_ & 0x00000010) != 0) { + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.groupId, groupId); + } + if ((bitField0_ & 0x00000008) != 0) { 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) { + if ((bitField0_ & 0x00000010) != 0) { output.writeMessage(FieldNames.motion, motion); } - if ((bitField0_ & 0x00000100) != 0) { + if ((bitField0_ & 0x00000020) != 0) { output.writeMessage(FieldNames.npcMonster, npcMonster); } + if ((bitField0_ & 0x00000040) != 0) { + output.writeMessage(FieldNames.summonUnit, summonUnit); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeMessage(FieldNames.actor, actor); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeMessage(FieldNames.npc, npc); + } output.endObject(); } @@ -853,12 +853,24 @@ public final class SceneEntityInfoOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { + case -1183779327: + case 1957567924: { + if (input.isAtField(FieldNames.instId)) { + if (!input.trySkipNullValue()) { + instId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } case -2102099874: case -740565257: { if (input.isAtField(FieldNames.entityId)) { if (!input.trySkipNullValue()) { entityId = input.readUInt32(); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } else { input.skipUnknownField(); @@ -870,18 +882,6 @@ public final class SceneEntityInfoOuterClass { if (input.isAtField(FieldNames.groupId)) { if (!input.trySkipNullValue()) { groupId = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1183779327: - case 1957567924: { - if (input.isAtField(FieldNames.instId)) { - if (!input.trySkipNullValue()) { - instId = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -889,45 +889,11 @@ public final class SceneEntityInfoOuterClass { } break; } - case 80492037: - case -1790265822: { - if (input.isAtField(FieldNames.summonUnit)) { - if (!input.trySkipNullValue()) { - input.readMessage(summonUnit); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } case 3449699: { if (input.isAtField(FieldNames.prop)) { if (!input.trySkipNullValue()) { input.readMessage(prop); - bitField0_ |= 0x00000010; - } - } else { - input.skipUnknownField(); - } - break; - } - case 92645877: { - if (input.isAtField(FieldNames.actor)) { - if (!input.trySkipNullValue()) { - input.readMessage(actor); - bitField0_ |= 0x00000020; - } - } else { - input.skipUnknownField(); - } - break; - } - case 109281: { - if (input.isAtField(FieldNames.npc)) { - if (!input.trySkipNullValue()) { - input.readMessage(npc); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000008; } } else { input.skipUnknownField(); @@ -938,7 +904,7 @@ public final class SceneEntityInfoOuterClass { if (input.isAtField(FieldNames.motion)) { if (!input.trySkipNullValue()) { input.readMessage(motion); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000010; } } else { input.skipUnknownField(); @@ -950,6 +916,40 @@ public final class SceneEntityInfoOuterClass { if (input.isAtField(FieldNames.npcMonster)) { if (!input.trySkipNullValue()) { input.readMessage(npcMonster); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case 80492037: + case -1790265822: { + if (input.isAtField(FieldNames.summonUnit)) { + if (!input.trySkipNullValue()) { + input.readMessage(summonUnit); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + case 92645877: { + if (input.isAtField(FieldNames.actor)) { + if (!input.trySkipNullValue()) { + input.readMessage(actor); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + case 109281: { + if (input.isAtField(FieldNames.npc)) { + if (!input.trySkipNullValue()) { + input.readMessage(npc); bitField0_ |= 0x00000100; } } else { @@ -1010,23 +1010,23 @@ public final class SceneEntityInfoOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { + static final FieldName instId = FieldName.forField("instId", "inst_id"); + static final FieldName entityId = FieldName.forField("entityId", "entity_id"); static final FieldName groupId = FieldName.forField("groupId", "group_id"); - static final FieldName instId = FieldName.forField("instId", "inst_id"); - - 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 npc = FieldName.forField("npc"); - static final FieldName motion = FieldName.forField("motion"); static final FieldName npcMonster = FieldName.forField("npcMonster", "npc_monster"); + + static final FieldName summonUnit = FieldName.forField("summonUnit", "summon_unit"); + + static final FieldName actor = FieldName.forField("actor"); + + static final FieldName npc = FieldName.forField("npc"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/SceneEntityMoveCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneEntityMoveCsReqOuterClass.java index 450134e..33c446a 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneEntityMoveCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneEntityMoveCsReqOuterClass.java @@ -20,12 +20,12 @@ public final class SceneEntityMoveCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 entry_id = 11; + * optional uint32 entry_id = 8; */ private int entryId; /** - * repeated .EntityMotion entity_motion_list = 8; + * repeated .EntityMotion entity_motion_list = 7; */ private final RepeatedMessage entityMotionList = RepeatedMessage.newEmptyInstance(EntityMotionOuterClass.EntityMotion.getFactory()); @@ -40,7 +40,7 @@ public final class SceneEntityMoveCsReqOuterClass { } /** - * optional uint32 entry_id = 11; + * optional uint32 entry_id = 8; * @return whether the entryId field is set */ public boolean hasEntryId() { @@ -48,7 +48,7 @@ public final class SceneEntityMoveCsReqOuterClass { } /** - * optional uint32 entry_id = 11; + * optional uint32 entry_id = 8; * @return this */ public SceneEntityMoveCsReq clearEntryId() { @@ -58,7 +58,7 @@ public final class SceneEntityMoveCsReqOuterClass { } /** - * optional uint32 entry_id = 11; + * optional uint32 entry_id = 8; * @return the entryId */ public int getEntryId() { @@ -66,7 +66,7 @@ public final class SceneEntityMoveCsReqOuterClass { } /** - * optional uint32 entry_id = 11; + * optional uint32 entry_id = 8; * @param value the entryId to set * @return this */ @@ -77,7 +77,7 @@ public final class SceneEntityMoveCsReqOuterClass { } /** - * repeated .EntityMotion entity_motion_list = 8; + * repeated .EntityMotion entity_motion_list = 7; * @return whether the entityMotionList field is set */ public boolean hasEntityMotionList() { @@ -85,7 +85,7 @@ public final class SceneEntityMoveCsReqOuterClass { } /** - * repeated .EntityMotion entity_motion_list = 8; + * repeated .EntityMotion entity_motion_list = 7; * @return this */ public SceneEntityMoveCsReq clearEntityMotionList() { @@ -95,7 +95,7 @@ public final class SceneEntityMoveCsReqOuterClass { } /** - * repeated .EntityMotion entity_motion_list = 8; + * repeated .EntityMotion entity_motion_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 final class SceneEntityMoveCsReqOuterClass { } /** - * repeated .EntityMotion entity_motion_list = 8; + * repeated .EntityMotion entity_motion_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 final class SceneEntityMoveCsReqOuterClass { } /** - * repeated .EntityMotion entity_motion_list = 8; + * repeated .EntityMotion entity_motion_list = 7; * @param value the entityMotionList to add * @return this */ @@ -135,7 +135,7 @@ public final class SceneEntityMoveCsReqOuterClass { } /** - * repeated .EntityMotion entity_motion_list = 8; + * repeated .EntityMotion entity_motion_list = 7; * @param values the entityMotionList to add * @return this */ @@ -212,12 +212,12 @@ public final class SceneEntityMoveCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 64); output.writeUInt32NoTag(entryId); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < entityMotionList.length(); i++) { - output.writeRawByte((byte) 66); + output.writeRawByte((byte) 58); output.writeMessageNoTag(entityMotionList.get(i)); } } @@ -242,16 +242,16 @@ public final class SceneEntityMoveCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 88: { + case 64: { // entryId entryId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 66) { + if (tag != 58) { break; } } - case 66: { + case 58: { // 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 ae57ced..dfa4626 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneEntityMoveScNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneEntityMoveScNotifyOuterClass.java @@ -19,22 +19,22 @@ public final class SceneEntityMoveScNotifyOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 client_pos_version = 5; - */ - private int clientPosVersion; - - /** - * optional uint32 entity_id = 8; - */ - private int entityId; - - /** - * optional uint32 entry_id = 11; + * optional uint32 entry_id = 10; */ private int entryId; /** - * optional .MotionInfo motion = 12; + * optional uint32 entity_id = 11; + */ + private int entityId; + + /** + * optional uint32 client_pos_version = 13; + */ + private int clientPosVersion; + + /** + * optional .MotionInfo motion = 8; */ private final MotionInfoOuterClass.MotionInfo motion = MotionInfoOuterClass.MotionInfo.newInstance(); @@ -49,44 +49,44 @@ public final class SceneEntityMoveScNotifyOuterClass { } /** - * optional uint32 client_pos_version = 5; - * @return whether the clientPosVersion field is set + * optional uint32 entry_id = 10; + * @return whether the entryId field is set */ - public boolean hasClientPosVersion() { + public boolean hasEntryId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 client_pos_version = 5; + * optional uint32 entry_id = 10; * @return this */ - public SceneEntityMoveScNotify clearClientPosVersion() { + public SceneEntityMoveScNotify clearEntryId() { bitField0_ &= ~0x00000001; - clientPosVersion = 0; + entryId = 0; return this; } /** - * optional uint32 client_pos_version = 5; - * @return the clientPosVersion + * optional uint32 entry_id = 10; + * @return the entryId */ - public int getClientPosVersion() { - return clientPosVersion; + public int getEntryId() { + return entryId; } /** - * optional uint32 client_pos_version = 5; - * @param value the clientPosVersion to set + * optional uint32 entry_id = 10; + * @param value the entryId to set * @return this */ - public SceneEntityMoveScNotify setClientPosVersion(final int value) { + public SceneEntityMoveScNotify setEntryId(final int value) { bitField0_ |= 0x00000001; - clientPosVersion = value; + entryId = value; return this; } /** - * optional uint32 entity_id = 8; + * optional uint32 entity_id = 11; * @return whether the entityId field is set */ public boolean hasEntityId() { @@ -94,7 +94,7 @@ public final class SceneEntityMoveScNotifyOuterClass { } /** - * optional uint32 entity_id = 8; + * optional uint32 entity_id = 11; * @return this */ public SceneEntityMoveScNotify clearEntityId() { @@ -104,7 +104,7 @@ public final class SceneEntityMoveScNotifyOuterClass { } /** - * optional uint32 entity_id = 8; + * optional uint32 entity_id = 11; * @return the entityId */ public int getEntityId() { @@ -112,7 +112,7 @@ public final class SceneEntityMoveScNotifyOuterClass { } /** - * optional uint32 entity_id = 8; + * optional uint32 entity_id = 11; * @param value the entityId to set * @return this */ @@ -123,44 +123,44 @@ public final class SceneEntityMoveScNotifyOuterClass { } /** - * optional uint32 entry_id = 11; - * @return whether the entryId field is set + * optional uint32 client_pos_version = 13; + * @return whether the clientPosVersion field is set */ - public boolean hasEntryId() { + public boolean hasClientPosVersion() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 entry_id = 11; + * optional uint32 client_pos_version = 13; * @return this */ - public SceneEntityMoveScNotify clearEntryId() { + public SceneEntityMoveScNotify clearClientPosVersion() { bitField0_ &= ~0x00000004; - entryId = 0; + clientPosVersion = 0; return this; } /** - * optional uint32 entry_id = 11; - * @return the entryId + * optional uint32 client_pos_version = 13; + * @return the clientPosVersion */ - public int getEntryId() { - return entryId; + public int getClientPosVersion() { + return clientPosVersion; } /** - * optional uint32 entry_id = 11; - * @param value the entryId to set + * optional uint32 client_pos_version = 13; + * @param value the clientPosVersion to set * @return this */ - public SceneEntityMoveScNotify setEntryId(final int value) { + public SceneEntityMoveScNotify setClientPosVersion(final int value) { bitField0_ |= 0x00000004; - entryId = value; + clientPosVersion = value; return this; } /** - * optional .MotionInfo motion = 12; + * optional .MotionInfo motion = 8; * @return whether the motion field is set */ public boolean hasMotion() { @@ -168,7 +168,7 @@ public final class SceneEntityMoveScNotifyOuterClass { } /** - * optional .MotionInfo motion = 12; + * optional .MotionInfo motion = 8; * @return this */ public SceneEntityMoveScNotify clearMotion() { @@ -178,7 +178,7 @@ public final class SceneEntityMoveScNotifyOuterClass { } /** - * optional .MotionInfo motion = 12; + * optional .MotionInfo motion = 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 final class SceneEntityMoveScNotifyOuterClass { } /** - * optional .MotionInfo motion = 12; + * optional .MotionInfo motion = 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 final class SceneEntityMoveScNotifyOuterClass { } /** - * optional .MotionInfo motion = 12; + * optional .MotionInfo motion = 8; * @param value the motion to set * @return this */ @@ -221,9 +221,9 @@ public final class SceneEntityMoveScNotifyOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - clientPosVersion = other.clientPosVersion; - entityId = other.entityId; entryId = other.entryId; + entityId = other.entityId; + clientPosVersion = other.clientPosVersion; motion.copyFrom(other.motion); } return this; @@ -235,14 +235,14 @@ public final class SceneEntityMoveScNotifyOuterClass { return this; } cachedSize = -1; - if (other.hasClientPosVersion()) { - setClientPosVersion(other.clientPosVersion); + if (other.hasEntryId()) { + setEntryId(other.entryId); } 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 final class SceneEntityMoveScNotifyOuterClass { } cachedSize = -1; bitField0_ = 0; - clientPosVersion = 0; - entityId = 0; entryId = 0; + entityId = 0; + clientPosVersion = 0; motion.clear(); return this; } @@ -285,28 +285,28 @@ public final class SceneEntityMoveScNotifyOuterClass { } SceneEntityMoveScNotify other = (SceneEntityMoveScNotify) o; return bitField0_ == other.bitField0_ - && (!hasClientPosVersion() || clientPosVersion == other.clientPosVersion) - && (!hasEntityId() || entityId == other.entityId) && (!hasEntryId() || entryId == other.entryId) + && (!hasEntityId() || entityId == other.entityId) + && (!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) 40); - output.writeUInt32NoTag(clientPosVersion); + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(entryId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 88); output.writeUInt32NoTag(entityId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 88); - output.writeUInt32NoTag(entryId); + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(clientPosVersion); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 98); + output.writeRawByte((byte) 66); output.writeMessageNoTag(motion); } } @@ -315,13 +315,13 @@ public final class SceneEntityMoveScNotifyOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(clientPosVersion); + size += 1 + ProtoSink.computeUInt32SizeNoTag(entryId); } if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(entityId); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(entryId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(clientPosVersion); } if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(motion); @@ -336,34 +336,34 @@ public final class SceneEntityMoveScNotifyOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 40: { - // clientPosVersion - clientPosVersion = input.readUInt32(); + case 80: { + // entryId + entryId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 64) { - break; - } - } - case 64: { - // entityId - entityId = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); if (tag != 88) { break; } } case 88: { - // entryId - entryId = input.readUInt32(); - bitField0_ |= 0x00000004; + // entityId + entityId = input.readUInt32(); + bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 98) { + if (tag != 104) { break; } } - case 98: { + case 104: { + // clientPosVersion + clientPosVersion = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 66) { + break; + } + } + case 66: { // motion input.readMessage(motion); bitField0_ |= 0x00000008; @@ -390,13 +390,13 @@ public final class SceneEntityMoveScNotifyOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.clientPosVersion, clientPosVersion); + output.writeUInt32(FieldNames.entryId, entryId); } if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.entityId, entityId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.entryId, entryId); + output.writeUInt32(FieldNames.clientPosVersion, clientPosVersion); } if ((bitField0_ & 0x00000008) != 0) { output.writeMessage(FieldNames.motion, motion); @@ -411,11 +411,11 @@ public final class SceneEntityMoveScNotifyOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - 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_ |= 0x00000001; } } else { @@ -435,11 +435,11 @@ public final class SceneEntityMoveScNotifyOuterClass { } 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_ |= 0x00000004; } } else { @@ -511,11 +511,11 @@ public final class SceneEntityMoveScNotifyOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName clientPosVersion = FieldName.forField("clientPosVersion", "client_pos_version"); + static final FieldName entryId = FieldName.forField("entryId", "entry_id"); 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 7e3c0db..76e3a66 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneEntityRefreshInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneEntityRefreshInfoOuterClass.java @@ -19,7 +19,7 @@ public final class SceneEntityRefreshInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 del_entity = 8; + * optional uint32 del_entity = 7; */ private int delEntity; @@ -39,7 +39,7 @@ public final class SceneEntityRefreshInfoOuterClass { } /** - * optional uint32 del_entity = 8; + * optional uint32 del_entity = 7; * @return whether the delEntity field is set */ public boolean hasDelEntity() { @@ -47,7 +47,7 @@ public final class SceneEntityRefreshInfoOuterClass { } /** - * optional uint32 del_entity = 8; + * optional uint32 del_entity = 7; * @return this */ public SceneEntityRefreshInfo clearDelEntity() { @@ -57,7 +57,7 @@ public final class SceneEntityRefreshInfoOuterClass { } /** - * optional uint32 del_entity = 8; + * optional uint32 del_entity = 7; * @return the delEntity */ public int getDelEntity() { @@ -65,7 +65,7 @@ public final class SceneEntityRefreshInfoOuterClass { } /** - * optional uint32 del_entity = 8; + * optional uint32 del_entity = 7; * @param value the delEntity to set * @return this */ @@ -199,7 +199,7 @@ public final class SceneEntityRefreshInfoOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 56); output.writeUInt32NoTag(delEntity); } if ((bitField0_ & 0x00000002) != 0) { @@ -227,7 +227,7 @@ public final class SceneEntityRefreshInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 64: { + case 56: { // delEntity delEntity = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/SceneEntityTeleportCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneEntityTeleportCsReqOuterClass.java new file mode 100644 index 0000000..7fa0046 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SceneEntityTeleportCsReqOuterClass.java @@ -0,0 +1,363 @@ +// 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 SceneEntityTeleportCsReqOuterClass { + /** + * Protobuf type {@code SceneEntityTeleportCsReq} + */ + public static final class SceneEntityTeleportCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 entry_id = 2; + */ + private int entryId; + + /** + * optional .EntityMotion entity_motion = 8; + */ + private final EntityMotionOuterClass.EntityMotion entityMotion = EntityMotionOuterClass.EntityMotion.newInstance(); + + private SceneEntityTeleportCsReq() { + } + + /** + * @return a new empty instance of {@code SceneEntityTeleportCsReq} + */ + public static SceneEntityTeleportCsReq newInstance() { + return new SceneEntityTeleportCsReq(); + } + + /** + * optional uint32 entry_id = 2; + * @return whether the entryId field is set + */ + public boolean hasEntryId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 entry_id = 2; + * @return this + */ + public SceneEntityTeleportCsReq clearEntryId() { + bitField0_ &= ~0x00000001; + entryId = 0; + return this; + } + + /** + * optional uint32 entry_id = 2; + * @return the entryId + */ + public int getEntryId() { + return entryId; + } + + /** + * optional uint32 entry_id = 2; + * @param value the entryId to set + * @return this + */ + public SceneEntityTeleportCsReq setEntryId(final int value) { + bitField0_ |= 0x00000001; + entryId = value; + return this; + } + + /** + * optional .EntityMotion entity_motion = 8; + * @return whether the entityMotion field is set + */ + public boolean hasEntityMotion() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .EntityMotion entity_motion = 8; + * @return this + */ + public SceneEntityTeleportCsReq clearEntityMotion() { + bitField0_ &= ~0x00000002; + entityMotion.clear(); + return this; + } + + /** + * optional .EntityMotion entity_motion = 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 #getMutableEntityMotion()} if you want to modify it. + * + * @return internal storage object for reading + */ + public EntityMotionOuterClass.EntityMotion getEntityMotion() { + return entityMotion; + } + + /** + * optional .EntityMotion entity_motion = 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 + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public EntityMotionOuterClass.EntityMotion getMutableEntityMotion() { + bitField0_ |= 0x00000002; + return entityMotion; + } + + /** + * optional .EntityMotion entity_motion = 8; + * @param value the entityMotion to set + * @return this + */ + public SceneEntityTeleportCsReq setEntityMotion( + final EntityMotionOuterClass.EntityMotion value) { + bitField0_ |= 0x00000002; + entityMotion.copyFrom(value); + return this; + } + + @Override + public SceneEntityTeleportCsReq copyFrom(final SceneEntityTeleportCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + entryId = other.entryId; + entityMotion.copyFrom(other.entityMotion); + } + return this; + } + + @Override + public SceneEntityTeleportCsReq mergeFrom(final SceneEntityTeleportCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasEntryId()) { + setEntryId(other.entryId); + } + if (other.hasEntityMotion()) { + getMutableEntityMotion().mergeFrom(other.entityMotion); + } + return this; + } + + @Override + public SceneEntityTeleportCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + entryId = 0; + entityMotion.clear(); + return this; + } + + @Override + public SceneEntityTeleportCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + entityMotion.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SceneEntityTeleportCsReq)) { + return false; + } + SceneEntityTeleportCsReq other = (SceneEntityTeleportCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasEntryId() || entryId == other.entryId) + && (!hasEntityMotion() || entityMotion.equals(other.entityMotion)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(entryId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 66); + output.writeMessageNoTag(entityMotion); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(entryId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(entityMotion); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SceneEntityTeleportCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // entryId + entryId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 66) { + break; + } + } + case 66: { + // entityMotion + input.readMessage(entityMotion); + 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.entryId, entryId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.entityMotion, entityMotion); + } + output.endObject(); + } + + @Override + public SceneEntityTeleportCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1591558867: + case -2093663224: { + if (input.isAtField(FieldNames.entryId)) { + if (!input.trySkipNullValue()) { + entryId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 558225785: + case -1141226606: { + if (input.isAtField(FieldNames.entityMotion)) { + if (!input.trySkipNullValue()) { + input.readMessage(entityMotion); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SceneEntityTeleportCsReq clone() { + return new SceneEntityTeleportCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SceneEntityTeleportCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SceneEntityTeleportCsReq(), data).checkInitialized(); + } + + public static SceneEntityTeleportCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SceneEntityTeleportCsReq(), input).checkInitialized(); + } + + public static SceneEntityTeleportCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SceneEntityTeleportCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating SceneEntityTeleportCsReq messages + */ + public static MessageFactory getFactory() { + return SceneEntityTeleportCsReqFactory.INSTANCE; + } + + private enum SceneEntityTeleportCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public SceneEntityTeleportCsReq create() { + return SceneEntityTeleportCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName entryId = FieldName.forField("entryId", "entry_id"); + + static final FieldName entityMotion = FieldName.forField("entityMotion", "entity_motion"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SceneEntityTeleportScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneEntityTeleportScRspOuterClass.java new file mode 100644 index 0000000..af9f989 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SceneEntityTeleportScRspOuterClass.java @@ -0,0 +1,443 @@ +// 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 SceneEntityTeleportScRspOuterClass { + /** + * Protobuf type {@code SceneEntityTeleportScRsp} + */ + public static final class SceneEntityTeleportScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 client_pos_version = 6; + */ + private int clientPosVersion; + + /** + * optional uint32 retcode = 15; + */ + private int retcode; + + /** + * optional .EntityMotion entity_motion = 13; + */ + private final EntityMotionOuterClass.EntityMotion entityMotion = EntityMotionOuterClass.EntityMotion.newInstance(); + + private SceneEntityTeleportScRsp() { + } + + /** + * @return a new empty instance of {@code SceneEntityTeleportScRsp} + */ + public static SceneEntityTeleportScRsp newInstance() { + return new SceneEntityTeleportScRsp(); + } + + /** + * optional uint32 client_pos_version = 6; + * @return whether the clientPosVersion field is set + */ + public boolean hasClientPosVersion() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 client_pos_version = 6; + * @return this + */ + public SceneEntityTeleportScRsp clearClientPosVersion() { + bitField0_ &= ~0x00000001; + clientPosVersion = 0; + return this; + } + + /** + * optional uint32 client_pos_version = 6; + * @return the clientPosVersion + */ + public int getClientPosVersion() { + return clientPosVersion; + } + + /** + * optional uint32 client_pos_version = 6; + * @param value the clientPosVersion to set + * @return this + */ + public SceneEntityTeleportScRsp setClientPosVersion(final int value) { + bitField0_ |= 0x00000001; + clientPosVersion = value; + return this; + } + + /** + * optional uint32 retcode = 15; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 retcode = 15; + * @return this + */ + public SceneEntityTeleportScRsp clearRetcode() { + bitField0_ &= ~0x00000002; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 15; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 15; + * @param value the retcode to set + * @return this + */ + public SceneEntityTeleportScRsp setRetcode(final int value) { + bitField0_ |= 0x00000002; + retcode = value; + return this; + } + + /** + * optional .EntityMotion entity_motion = 13; + * @return whether the entityMotion field is set + */ + public boolean hasEntityMotion() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .EntityMotion entity_motion = 13; + * @return this + */ + public SceneEntityTeleportScRsp clearEntityMotion() { + bitField0_ &= ~0x00000004; + entityMotion.clear(); + return this; + } + + /** + * optional .EntityMotion entity_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 #getMutableEntityMotion()} if you want to modify it. + * + * @return internal storage object for reading + */ + public EntityMotionOuterClass.EntityMotion getEntityMotion() { + return entityMotion; + } + + /** + * optional .EntityMotion entity_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 + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public EntityMotionOuterClass.EntityMotion getMutableEntityMotion() { + bitField0_ |= 0x00000004; + return entityMotion; + } + + /** + * optional .EntityMotion entity_motion = 13; + * @param value the entityMotion to set + * @return this + */ + public SceneEntityTeleportScRsp setEntityMotion( + final EntityMotionOuterClass.EntityMotion value) { + bitField0_ |= 0x00000004; + entityMotion.copyFrom(value); + return this; + } + + @Override + public SceneEntityTeleportScRsp copyFrom(final SceneEntityTeleportScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + clientPosVersion = other.clientPosVersion; + retcode = other.retcode; + entityMotion.copyFrom(other.entityMotion); + } + return this; + } + + @Override + public SceneEntityTeleportScRsp mergeFrom(final SceneEntityTeleportScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasClientPosVersion()) { + setClientPosVersion(other.clientPosVersion); + } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasEntityMotion()) { + getMutableEntityMotion().mergeFrom(other.entityMotion); + } + return this; + } + + @Override + public SceneEntityTeleportScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + clientPosVersion = 0; + retcode = 0; + entityMotion.clear(); + return this; + } + + @Override + public SceneEntityTeleportScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + entityMotion.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SceneEntityTeleportScRsp)) { + return false; + } + SceneEntityTeleportScRsp other = (SceneEntityTeleportScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasClientPosVersion() || clientPosVersion == other.clientPosVersion) + && (!hasRetcode() || retcode == other.retcode) + && (!hasEntityMotion() || entityMotion.equals(other.entityMotion)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(clientPosVersion); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 106); + output.writeMessageNoTag(entityMotion); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(clientPosVersion); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(entityMotion); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SceneEntityTeleportScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 48: { + // clientPosVersion + clientPosVersion = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 106) { + break; + } + } + case 106: { + // entityMotion + input.readMessage(entityMotion); + 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.clientPosVersion, clientPosVersion); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.entityMotion, entityMotion); + } + output.endObject(); + } + + @Override + public SceneEntityTeleportScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1787644431: + case 1278860153: { + if (input.isAtField(FieldNames.clientPosVersion)) { + if (!input.trySkipNullValue()) { + clientPosVersion = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 558225785: + case -1141226606: { + if (input.isAtField(FieldNames.entityMotion)) { + if (!input.trySkipNullValue()) { + input.readMessage(entityMotion); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SceneEntityTeleportScRsp clone() { + return new SceneEntityTeleportScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SceneEntityTeleportScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SceneEntityTeleportScRsp(), data).checkInitialized(); + } + + public static SceneEntityTeleportScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SceneEntityTeleportScRsp(), input).checkInitialized(); + } + + public static SceneEntityTeleportScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SceneEntityTeleportScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating SceneEntityTeleportScRsp messages + */ + public static MessageFactory getFactory() { + return SceneEntityTeleportScRspFactory.INSTANCE; + } + + private enum SceneEntityTeleportScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public SceneEntityTeleportScRsp create() { + return SceneEntityTeleportScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName clientPosVersion = FieldName.forField("clientPosVersion", "client_pos_version"); + + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName entityMotion = FieldName.forField("entityMotion", "entity_motion"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SceneGroupRefreshInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneGroupRefreshInfoOuterClass.java index 0b9eded..be92e08 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneGroupRefreshInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneGroupRefreshInfoOuterClass.java @@ -20,17 +20,17 @@ public final class SceneGroupRefreshInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 group_id = 4; - */ - private int groupId; - - /** - * optional uint32 state = 5; + * optional uint32 state = 3; */ private int state; /** - * repeated .SceneEntityRefreshInfo refresh_entity = 7; + * optional uint32 group_id = 12; + */ + private int groupId; + + /** + * repeated .SceneEntityRefreshInfo refresh_entity = 14; */ private final RepeatedMessage refreshEntity = RepeatedMessage.newEmptyInstance(SceneEntityRefreshInfoOuterClass.SceneEntityRefreshInfo.getFactory()); @@ -45,62 +45,25 @@ public final class SceneGroupRefreshInfoOuterClass { } /** - * optional uint32 group_id = 4; - * @return whether the groupId field is set + * optional uint32 state = 3; + * @return whether the state field is set */ - public boolean hasGroupId() { + public boolean hasState() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 group_id = 4; - * @return this - */ - public SceneGroupRefreshInfo clearGroupId() { - bitField0_ &= ~0x00000001; - groupId = 0; - return this; - } - - /** - * optional uint32 group_id = 4; - * @return the groupId - */ - public int getGroupId() { - return groupId; - } - - /** - * optional uint32 group_id = 4; - * @param value the groupId to set - * @return this - */ - public SceneGroupRefreshInfo setGroupId(final int value) { - bitField0_ |= 0x00000001; - groupId = value; - return this; - } - - /** - * optional uint32 state = 5; - * @return whether the state field is set - */ - public boolean hasState() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 state = 5; + * optional uint32 state = 3; * @return this */ public SceneGroupRefreshInfo clearState() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; state = 0; return this; } /** - * optional uint32 state = 5; + * optional uint32 state = 3; * @return the state */ public int getState() { @@ -108,18 +71,55 @@ public final class SceneGroupRefreshInfoOuterClass { } /** - * optional uint32 state = 5; + * optional uint32 state = 3; * @param value the state to set * @return this */ public SceneGroupRefreshInfo setState(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; state = value; return this; } /** - * repeated .SceneEntityRefreshInfo refresh_entity = 7; + * optional uint32 group_id = 12; + * @return whether the groupId field is set + */ + public boolean hasGroupId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 group_id = 12; + * @return this + */ + public SceneGroupRefreshInfo clearGroupId() { + bitField0_ &= ~0x00000002; + groupId = 0; + return this; + } + + /** + * optional uint32 group_id = 12; + * @return the groupId + */ + public int getGroupId() { + return groupId; + } + + /** + * optional uint32 group_id = 12; + * @param value the groupId to set + * @return this + */ + public SceneGroupRefreshInfo setGroupId(final int value) { + bitField0_ |= 0x00000002; + groupId = value; + return this; + } + + /** + * repeated .SceneEntityRefreshInfo refresh_entity = 14; * @return whether the refreshEntity field is set */ public boolean hasRefreshEntity() { @@ -127,7 +127,7 @@ public final class SceneGroupRefreshInfoOuterClass { } /** - * repeated .SceneEntityRefreshInfo refresh_entity = 7; + * repeated .SceneEntityRefreshInfo refresh_entity = 14; * @return this */ public SceneGroupRefreshInfo clearRefreshEntity() { @@ -137,7 +137,7 @@ public final class SceneGroupRefreshInfoOuterClass { } /** - * repeated .SceneEntityRefreshInfo refresh_entity = 7; + * repeated .SceneEntityRefreshInfo refresh_entity = 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. @@ -152,7 +152,7 @@ public final class SceneGroupRefreshInfoOuterClass { } /** - * repeated .SceneEntityRefreshInfo refresh_entity = 7; + * repeated .SceneEntityRefreshInfo refresh_entity = 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 @@ -167,7 +167,7 @@ public final class SceneGroupRefreshInfoOuterClass { } /** - * repeated .SceneEntityRefreshInfo refresh_entity = 7; + * repeated .SceneEntityRefreshInfo refresh_entity = 14; * @param value the refreshEntity to add * @return this */ @@ -179,7 +179,7 @@ public final class SceneGroupRefreshInfoOuterClass { } /** - * repeated .SceneEntityRefreshInfo refresh_entity = 7; + * repeated .SceneEntityRefreshInfo refresh_entity = 14; * @param values the refreshEntity to add * @return this */ @@ -195,8 +195,8 @@ public final class SceneGroupRefreshInfoOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - groupId = other.groupId; state = other.state; + groupId = other.groupId; refreshEntity.copyFrom(other.refreshEntity); } return this; @@ -208,12 +208,12 @@ public final class SceneGroupRefreshInfoOuterClass { return this; } cachedSize = -1; - if (other.hasGroupId()) { - setGroupId(other.groupId); - } if (other.hasState()) { setState(other.state); } + if (other.hasGroupId()) { + setGroupId(other.groupId); + } if (other.hasRefreshEntity()) { getMutableRefreshEntity().addAll(other.refreshEntity); } @@ -227,8 +227,8 @@ public final class SceneGroupRefreshInfoOuterClass { } cachedSize = -1; bitField0_ = 0; - groupId = 0; state = 0; + groupId = 0; refreshEntity.clear(); return this; } @@ -254,24 +254,24 @@ public final class SceneGroupRefreshInfoOuterClass { } SceneGroupRefreshInfo other = (SceneGroupRefreshInfo) o; return bitField0_ == other.bitField0_ - && (!hasGroupId() || groupId == other.groupId) && (!hasState() || state == other.state) + && (!hasGroupId() || groupId == other.groupId) && (!hasRefreshEntity() || refreshEntity.equals(other.refreshEntity)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 32); - output.writeUInt32NoTag(groupId); + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(state); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 40); - output.writeUInt32NoTag(state); + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(groupId); } if ((bitField0_ & 0x00000004) != 0) { for (int i = 0; i < refreshEntity.length(); i++) { - output.writeRawByte((byte) 58); + output.writeRawByte((byte) 114); output.writeMessageNoTag(refreshEntity.get(i)); } } @@ -281,10 +281,10 @@ public final class SceneGroupRefreshInfoOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(state); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(state); + size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); } if ((bitField0_ & 0x00000004) != 0) { size += (1 * refreshEntity.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(refreshEntity); @@ -299,25 +299,25 @@ public final class SceneGroupRefreshInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 32: { - // groupId - groupId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 40) { - break; - } - } - case 40: { + case 24: { // state state = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 58) { + if (tag != 96) { break; } } - case 58: { + case 96: { + // groupId + groupId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 114) { + break; + } + } + case 114: { // refreshEntity tag = input.readRepeatedMessage(refreshEntity, tag); bitField0_ |= 0x00000004; @@ -343,10 +343,10 @@ public final class SceneGroupRefreshInfoOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.groupId, groupId); + output.writeUInt32(FieldNames.state, state); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.state, state); + output.writeUInt32(FieldNames.groupId, groupId); } if ((bitField0_ & 0x00000004) != 0) { output.writeRepeatedMessage(FieldNames.refreshEntity, refreshEntity); @@ -361,11 +361,10 @@ public final class SceneGroupRefreshInfoOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 293428218: - case 506361563: { - if (input.isAtField(FieldNames.groupId)) { + case 109757585: { + if (input.isAtField(FieldNames.state)) { if (!input.trySkipNullValue()) { - groupId = input.readUInt32(); + state = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -373,10 +372,11 @@ public final class SceneGroupRefreshInfoOuterClass { } break; } - 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_ |= 0x00000002; } } else { @@ -449,10 +449,10 @@ public final class SceneGroupRefreshInfoOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName groupId = FieldName.forField("groupId", "group_id"); - static final FieldName state = FieldName.forField("state"); + static final FieldName groupId = FieldName.forField("groupId", "group_id"); + static final FieldName refreshEntity = FieldName.forField("refreshEntity", "refresh_entity"); } } diff --git a/src/generated/main/emu/lunarcore/proto/SceneGroupRefreshScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneGroupRefreshScNotifyOuterClass.java index c4811ba..647c93a 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneGroupRefreshScNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneGroupRefreshScNotifyOuterClass.java @@ -20,7 +20,7 @@ public final class SceneGroupRefreshScNotifyOuterClass { private static final long serialVersionUID = 0L; /** - * repeated .SceneGroupRefreshInfo group_refresh_info = 13; + * repeated .SceneGroupRefreshInfo group_refresh_info = 5; */ private final RepeatedMessage groupRefreshInfo = RepeatedMessage.newEmptyInstance(SceneGroupRefreshInfoOuterClass.SceneGroupRefreshInfo.getFactory()); @@ -35,7 +35,7 @@ public final class SceneGroupRefreshScNotifyOuterClass { } /** - * repeated .SceneGroupRefreshInfo group_refresh_info = 13; + * repeated .SceneGroupRefreshInfo group_refresh_info = 5; * @return whether the groupRefreshInfo field is set */ public boolean hasGroupRefreshInfo() { @@ -43,7 +43,7 @@ public final class SceneGroupRefreshScNotifyOuterClass { } /** - * repeated .SceneGroupRefreshInfo group_refresh_info = 13; + * repeated .SceneGroupRefreshInfo group_refresh_info = 5; * @return this */ public SceneGroupRefreshScNotify clearGroupRefreshInfo() { @@ -53,7 +53,7 @@ public final class SceneGroupRefreshScNotifyOuterClass { } /** - * repeated .SceneGroupRefreshInfo group_refresh_info = 13; + * repeated .SceneGroupRefreshInfo group_refresh_info = 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. @@ -68,7 +68,7 @@ public final class SceneGroupRefreshScNotifyOuterClass { } /** - * repeated .SceneGroupRefreshInfo group_refresh_info = 13; + * repeated .SceneGroupRefreshInfo group_refresh_info = 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 @@ -83,7 +83,7 @@ public final class SceneGroupRefreshScNotifyOuterClass { } /** - * repeated .SceneGroupRefreshInfo group_refresh_info = 13; + * repeated .SceneGroupRefreshInfo group_refresh_info = 5; * @param value the groupRefreshInfo to add * @return this */ @@ -95,7 +95,7 @@ public final class SceneGroupRefreshScNotifyOuterClass { } /** - * repeated .SceneGroupRefreshInfo group_refresh_info = 13; + * repeated .SceneGroupRefreshInfo group_refresh_info = 5; * @param values the groupRefreshInfo to add * @return this */ @@ -167,7 +167,7 @@ public final class SceneGroupRefreshScNotifyOuterClass { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { for (int i = 0; i < groupRefreshInfo.length(); i++) { - output.writeRawByte((byte) 106); + output.writeRawByte((byte) 42); output.writeMessageNoTag(groupRefreshInfo.get(i)); } } @@ -189,7 +189,7 @@ public final class SceneGroupRefreshScNotifyOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 106: { + case 42: { // 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 5046f33..975c0d3 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneGroupStateOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneGroupStateOuterClass.java @@ -19,17 +19,17 @@ public final class SceneGroupStateOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 group_id = 12; - */ - private int groupId; - - /** - * optional uint32 state = 13; + * optional uint32 state = 11; */ private int state; /** - * optional bool is_default = 9; + * optional uint32 group_id = 15; + */ + private int groupId; + + /** + * optional bool is_default = 7; */ private boolean isDefault; @@ -44,62 +44,25 @@ public final class SceneGroupStateOuterClass { } /** - * optional uint32 group_id = 12; - * @return whether the groupId field is set + * optional uint32 state = 11; + * @return whether the state field is set */ - public boolean hasGroupId() { + public boolean hasState() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 group_id = 12; - * @return this - */ - public SceneGroupState clearGroupId() { - bitField0_ &= ~0x00000001; - groupId = 0; - return this; - } - - /** - * optional uint32 group_id = 12; - * @return the groupId - */ - public int getGroupId() { - return groupId; - } - - /** - * optional uint32 group_id = 12; - * @param value the groupId to set - * @return this - */ - public SceneGroupState setGroupId(final int value) { - bitField0_ |= 0x00000001; - groupId = value; - return this; - } - - /** - * optional uint32 state = 13; - * @return whether the state field is set - */ - public boolean hasState() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 state = 13; + * optional uint32 state = 11; * @return this */ public SceneGroupState clearState() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; state = 0; return this; } /** - * optional uint32 state = 13; + * optional uint32 state = 11; * @return the state */ public int getState() { @@ -107,18 +70,55 @@ public final class SceneGroupStateOuterClass { } /** - * optional uint32 state = 13; + * optional uint32 state = 11; * @param value the state to set * @return this */ public SceneGroupState setState(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; state = value; return this; } /** - * optional bool is_default = 9; + * optional uint32 group_id = 15; + * @return whether the groupId field is set + */ + public boolean hasGroupId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 group_id = 15; + * @return this + */ + public SceneGroupState clearGroupId() { + bitField0_ &= ~0x00000002; + groupId = 0; + return this; + } + + /** + * optional uint32 group_id = 15; + * @return the groupId + */ + public int getGroupId() { + return groupId; + } + + /** + * optional uint32 group_id = 15; + * @param value the groupId to set + * @return this + */ + public SceneGroupState setGroupId(final int value) { + bitField0_ |= 0x00000002; + groupId = value; + return this; + } + + /** + * optional bool is_default = 7; * @return whether the isDefault field is set */ public boolean hasIsDefault() { @@ -126,7 +126,7 @@ public final class SceneGroupStateOuterClass { } /** - * optional bool is_default = 9; + * optional bool is_default = 7; * @return this */ public SceneGroupState clearIsDefault() { @@ -136,7 +136,7 @@ public final class SceneGroupStateOuterClass { } /** - * optional bool is_default = 9; + * optional bool is_default = 7; * @return the isDefault */ public boolean getIsDefault() { @@ -144,7 +144,7 @@ public final class SceneGroupStateOuterClass { } /** - * optional bool is_default = 9; + * optional bool is_default = 7; * @param value the isDefault to set * @return this */ @@ -159,8 +159,8 @@ public final class SceneGroupStateOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - groupId = other.groupId; state = other.state; + groupId = other.groupId; isDefault = other.isDefault; } return this; @@ -172,12 +172,12 @@ public final class SceneGroupStateOuterClass { return this; } cachedSize = -1; - if (other.hasGroupId()) { - setGroupId(other.groupId); - } if (other.hasState()) { setState(other.state); } + if (other.hasGroupId()) { + setGroupId(other.groupId); + } if (other.hasIsDefault()) { setIsDefault(other.isDefault); } @@ -191,8 +191,8 @@ public final class SceneGroupStateOuterClass { } cachedSize = -1; bitField0_ = 0; - groupId = 0; state = 0; + groupId = 0; isDefault = false; return this; } @@ -217,23 +217,23 @@ public final class SceneGroupStateOuterClass { } SceneGroupState other = (SceneGroupState) o; return bitField0_ == other.bitField0_ - && (!hasGroupId() || groupId == other.groupId) && (!hasState() || state == other.state) + && (!hasGroupId() || groupId == other.groupId) && (!hasIsDefault() || isDefault == other.isDefault); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 96); - output.writeUInt32NoTag(groupId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 88); output.writeUInt32NoTag(state); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(groupId); + } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 72); + output.writeRawByte((byte) 56); output.writeBoolNoTag(isDefault); } } @@ -242,10 +242,10 @@ public final class SceneGroupStateOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(state); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(state); + size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); } if ((bitField0_ & 0x00000004) != 0) { size += 2; @@ -260,25 +260,25 @@ public final class SceneGroupStateOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 96: { - // groupId - groupId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 104) { - break; - } - } - case 104: { + case 88: { // state state = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 72) { + if (tag != 120) { break; } } - case 72: { + case 120: { + // groupId + groupId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { // isDefault isDefault = input.readBool(); bitField0_ |= 0x00000004; @@ -305,10 +305,10 @@ public final class SceneGroupStateOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.groupId, groupId); + output.writeUInt32(FieldNames.state, state); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.state, state); + output.writeUInt32(FieldNames.groupId, groupId); } if ((bitField0_ & 0x00000004) != 0) { output.writeBool(FieldNames.isDefault, isDefault); @@ -323,11 +323,10 @@ public final class SceneGroupStateOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 293428218: - case 506361563: { - if (input.isAtField(FieldNames.groupId)) { + case 109757585: { + if (input.isAtField(FieldNames.state)) { if (!input.trySkipNullValue()) { - groupId = input.readUInt32(); + state = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -335,10 +334,11 @@ public final class SceneGroupStateOuterClass { } break; } - 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_ |= 0x00000002; } } else { @@ -411,10 +411,10 @@ public final class SceneGroupStateOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName groupId = FieldName.forField("groupId", "group_id"); - static final FieldName state = FieldName.forField("state"); + static final FieldName groupId = FieldName.forField("groupId", "group_id"); + static final FieldName isDefault = FieldName.forField("isDefault", "is_default"); } } diff --git a/src/generated/main/emu/lunarcore/proto/SceneInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneInfoOuterClass.java index 0bdd7f0..abbf705 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneInfoOuterClass.java @@ -20,63 +20,63 @@ public final class SceneInfoOuterClass { public static final class SceneInfo extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; + /** + * optional uint32 leader_entity_id = 2; + */ + private int leaderEntityId; + /** * optional uint32 floor_id = 3; */ private int floorId; /** - * optional uint32 entry_id = 5; - */ - private int entryId; - - /** - * optional uint32 plane_id = 8; - */ - private int planeId; - - /** - * optional uint32 game_mode_type = 9; - */ - private int gameModeType; - - /** - * optional uint32 world_id = 11; + * optional uint32 world_id = 5; */ private int worldId; /** - * optional uint32 leader_entity_id = 14; - */ - private int leaderEntityId; - - /** - * optional uint32 client_pos_version = 15; + * optional uint32 client_pos_version = 7; */ private int clientPosVersion; /** - * repeated uint32 group_id_list = 7; + * optional uint32 entry_id = 11; + */ + private int entryId; + + /** + * optional uint32 plane_id = 13; + */ + private int planeId; + + /** + * optional uint32 game_mode_type = 15; + */ + private int gameModeType; + + /** + * repeated uint32 group_id_list = 4; */ private final RepeatedInt groupIdList = RepeatedInt.newEmptyInstance(); /** - * repeated uint32 lighten_section_list = 10; + * repeated uint32 lighten_section_list = 9; */ private final RepeatedInt lightenSectionList = RepeatedInt.newEmptyInstance(); /** - * repeated .SceneEntityInfo entity_list = 2; + * repeated .SceneEntityInfo entity_list = 1; */ private final RepeatedMessage entityList = RepeatedMessage.newEmptyInstance(SceneEntityInfoOuterClass.SceneEntityInfo.getFactory()); /** - * repeated .SceneGroupState group_state_list = 1654; + * repeated .SceneGroupState group_state_list = 347; */ private final RepeatedMessage groupStateList = RepeatedMessage.newEmptyInstance(SceneGroupStateOuterClass.SceneGroupState.getFactory()); /** - * repeated .SceneEntityGroupInfo entity_group_list = 1740; + * repeated .SceneEntityGroupInfo entity_group_list = 1538; */ private final RepeatedMessage entityGroupList = RepeatedMessage.newEmptyInstance(SceneEntityGroupInfoOuterClass.SceneEntityGroupInfo.getFactory()); @@ -90,12 +90,49 @@ public final class SceneInfoOuterClass { return new SceneInfo(); } + /** + * optional uint32 leader_entity_id = 2; + * @return whether the leaderEntityId field is set + */ + public boolean hasLeaderEntityId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 leader_entity_id = 2; + * @return this + */ + public SceneInfo clearLeaderEntityId() { + bitField0_ &= ~0x00000001; + leaderEntityId = 0; + return this; + } + + /** + * optional uint32 leader_entity_id = 2; + * @return the leaderEntityId + */ + public int getLeaderEntityId() { + return leaderEntityId; + } + + /** + * optional uint32 leader_entity_id = 2; + * @param value the leaderEntityId to set + * @return this + */ + public SceneInfo setLeaderEntityId(final int value) { + bitField0_ |= 0x00000001; + leaderEntityId = value; + return this; + } + /** * optional uint32 floor_id = 3; * @return whether the floorId field is set */ public boolean hasFloorId() { - return (bitField0_ & 0x00000001) != 0; + return (bitField0_ & 0x00000002) != 0; } /** @@ -103,7 +140,7 @@ public final class SceneInfoOuterClass { * @return this */ public SceneInfo clearFloorId() { - bitField0_ &= ~0x00000001; + bitField0_ &= ~0x00000002; floorId = 0; return this; } @@ -122,142 +159,31 @@ public final class SceneInfoOuterClass { * @return this */ public SceneInfo setFloorId(final int value) { - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; floorId = value; return this; } /** - * optional uint32 entry_id = 5; - * @return whether the entryId field is set + * optional uint32 world_id = 5; + * @return whether the worldId field is set */ - public boolean hasEntryId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 entry_id = 5; - * @return this - */ - public SceneInfo clearEntryId() { - bitField0_ &= ~0x00000002; - entryId = 0; - return this; - } - - /** - * optional uint32 entry_id = 5; - * @return the entryId - */ - public int getEntryId() { - return entryId; - } - - /** - * optional uint32 entry_id = 5; - * @param value the entryId to set - * @return this - */ - public SceneInfo setEntryId(final int value) { - bitField0_ |= 0x00000002; - entryId = value; - return this; - } - - /** - * optional uint32 plane_id = 8; - * @return whether the planeId field is set - */ - public boolean hasPlaneId() { + public boolean hasWorldId() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 plane_id = 8; - * @return this - */ - public SceneInfo clearPlaneId() { - bitField0_ &= ~0x00000004; - planeId = 0; - return this; - } - - /** - * optional uint32 plane_id = 8; - * @return the planeId - */ - public int getPlaneId() { - return planeId; - } - - /** - * optional uint32 plane_id = 8; - * @param value the planeId to set - * @return this - */ - public SceneInfo setPlaneId(final int value) { - bitField0_ |= 0x00000004; - planeId = value; - return this; - } - - /** - * optional uint32 game_mode_type = 9; - * @return whether the gameModeType field is set - */ - public boolean hasGameModeType() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional uint32 game_mode_type = 9; - * @return this - */ - public SceneInfo clearGameModeType() { - bitField0_ &= ~0x00000008; - gameModeType = 0; - return this; - } - - /** - * optional uint32 game_mode_type = 9; - * @return the gameModeType - */ - public int getGameModeType() { - return gameModeType; - } - - /** - * optional uint32 game_mode_type = 9; - * @param value the gameModeType to set - * @return this - */ - public SceneInfo setGameModeType(final int value) { - bitField0_ |= 0x00000008; - gameModeType = value; - return this; - } - - /** - * optional uint32 world_id = 11; - * @return whether the worldId field is set - */ - public boolean hasWorldId() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - * optional uint32 world_id = 11; + * optional uint32 world_id = 5; * @return this */ public SceneInfo clearWorldId() { - bitField0_ &= ~0x00000010; + bitField0_ &= ~0x00000004; worldId = 0; return this; } /** - * optional uint32 world_id = 11; + * optional uint32 world_id = 5; * @return the worldId */ public int getWorldId() { @@ -265,73 +191,36 @@ public final class SceneInfoOuterClass { } /** - * optional uint32 world_id = 11; + * optional uint32 world_id = 5; * @param value the worldId to set * @return this */ public SceneInfo setWorldId(final int value) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000004; worldId = value; return this; } /** - * optional uint32 leader_entity_id = 14; - * @return whether the leaderEntityId field is set - */ - public boolean hasLeaderEntityId() { - return (bitField0_ & 0x00000020) != 0; - } - - /** - * optional uint32 leader_entity_id = 14; - * @return this - */ - public SceneInfo clearLeaderEntityId() { - bitField0_ &= ~0x00000020; - leaderEntityId = 0; - return this; - } - - /** - * optional uint32 leader_entity_id = 14; - * @return the leaderEntityId - */ - public int getLeaderEntityId() { - return leaderEntityId; - } - - /** - * optional uint32 leader_entity_id = 14; - * @param value the leaderEntityId to set - * @return this - */ - public SceneInfo setLeaderEntityId(final int value) { - bitField0_ |= 0x00000020; - leaderEntityId = value; - return this; - } - - /** - * optional uint32 client_pos_version = 15; + * optional uint32 client_pos_version = 7; * @return whether the clientPosVersion field is set */ public boolean hasClientPosVersion() { - return (bitField0_ & 0x00000040) != 0; + return (bitField0_ & 0x00000008) != 0; } /** - * optional uint32 client_pos_version = 15; + * optional uint32 client_pos_version = 7; * @return this */ public SceneInfo clearClientPosVersion() { - bitField0_ &= ~0x00000040; + bitField0_ &= ~0x00000008; clientPosVersion = 0; return this; } /** - * optional uint32 client_pos_version = 15; + * optional uint32 client_pos_version = 7; * @return the clientPosVersion */ public int getClientPosVersion() { @@ -339,18 +228,129 @@ public final class SceneInfoOuterClass { } /** - * optional uint32 client_pos_version = 15; + * optional uint32 client_pos_version = 7; * @param value the clientPosVersion to set * @return this */ public SceneInfo setClientPosVersion(final int value) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000008; clientPosVersion = value; return this; } /** - * repeated uint32 group_id_list = 7; + * optional uint32 entry_id = 11; + * @return whether the entryId field is set + */ + public boolean hasEntryId() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 entry_id = 11; + * @return this + */ + public SceneInfo clearEntryId() { + bitField0_ &= ~0x00000010; + entryId = 0; + return this; + } + + /** + * optional uint32 entry_id = 11; + * @return the entryId + */ + public int getEntryId() { + return entryId; + } + + /** + * optional uint32 entry_id = 11; + * @param value the entryId to set + * @return this + */ + public SceneInfo setEntryId(final int value) { + bitField0_ |= 0x00000010; + entryId = value; + return this; + } + + /** + * optional uint32 plane_id = 13; + * @return whether the planeId field is set + */ + public boolean hasPlaneId() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional uint32 plane_id = 13; + * @return this + */ + public SceneInfo clearPlaneId() { + bitField0_ &= ~0x00000020; + planeId = 0; + return this; + } + + /** + * optional uint32 plane_id = 13; + * @return the planeId + */ + public int getPlaneId() { + return planeId; + } + + /** + * optional uint32 plane_id = 13; + * @param value the planeId to set + * @return this + */ + public SceneInfo setPlaneId(final int value) { + bitField0_ |= 0x00000020; + planeId = value; + return this; + } + + /** + * optional uint32 game_mode_type = 15; + * @return whether the gameModeType field is set + */ + public boolean hasGameModeType() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional uint32 game_mode_type = 15; + * @return this + */ + public SceneInfo clearGameModeType() { + bitField0_ &= ~0x00000040; + gameModeType = 0; + return this; + } + + /** + * optional uint32 game_mode_type = 15; + * @return the gameModeType + */ + public int getGameModeType() { + return gameModeType; + } + + /** + * optional uint32 game_mode_type = 15; + * @param value the gameModeType to set + * @return this + */ + public SceneInfo setGameModeType(final int value) { + bitField0_ |= 0x00000040; + gameModeType = value; + return this; + } + + /** + * repeated uint32 group_id_list = 4; * @return whether the groupIdList field is set */ public boolean hasGroupIdList() { @@ -358,7 +358,7 @@ public final class SceneInfoOuterClass { } /** - * repeated uint32 group_id_list = 7; + * repeated uint32 group_id_list = 4; * @return this */ public SceneInfo clearGroupIdList() { @@ -368,7 +368,7 @@ public final class SceneInfoOuterClass { } /** - * repeated uint32 group_id_list = 7; + * repeated uint32 group_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. @@ -382,7 +382,7 @@ public final class SceneInfoOuterClass { } /** - * repeated uint32 group_id_list = 7; + * repeated uint32 group_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 @@ -396,7 +396,7 @@ public final class SceneInfoOuterClass { } /** - * repeated uint32 group_id_list = 7; + * repeated uint32 group_id_list = 4; * @param value the groupIdList to add * @return this */ @@ -407,7 +407,7 @@ public final class SceneInfoOuterClass { } /** - * repeated uint32 group_id_list = 7; + * repeated uint32 group_id_list = 4; * @param values the groupIdList to add * @return this */ @@ -418,7 +418,7 @@ public final class SceneInfoOuterClass { } /** - * repeated uint32 lighten_section_list = 10; + * repeated uint32 lighten_section_list = 9; * @return whether the lightenSectionList field is set */ public boolean hasLightenSectionList() { @@ -426,7 +426,7 @@ public final class SceneInfoOuterClass { } /** - * repeated uint32 lighten_section_list = 10; + * repeated uint32 lighten_section_list = 9; * @return this */ public SceneInfo clearLightenSectionList() { @@ -436,7 +436,7 @@ public final class SceneInfoOuterClass { } /** - * repeated uint32 lighten_section_list = 10; + * repeated uint32 lighten_section_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. @@ -450,7 +450,7 @@ public final class SceneInfoOuterClass { } /** - * repeated uint32 lighten_section_list = 10; + * repeated uint32 lighten_section_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 @@ -464,7 +464,7 @@ public final class SceneInfoOuterClass { } /** - * repeated uint32 lighten_section_list = 10; + * repeated uint32 lighten_section_list = 9; * @param value the lightenSectionList to add * @return this */ @@ -475,7 +475,7 @@ public final class SceneInfoOuterClass { } /** - * repeated uint32 lighten_section_list = 10; + * repeated uint32 lighten_section_list = 9; * @param values the lightenSectionList to add * @return this */ @@ -486,7 +486,7 @@ public final class SceneInfoOuterClass { } /** - * repeated .SceneEntityInfo entity_list = 2; + * repeated .SceneEntityInfo entity_list = 1; * @return whether the entityList field is set */ public boolean hasEntityList() { @@ -494,7 +494,7 @@ public final class SceneInfoOuterClass { } /** - * repeated .SceneEntityInfo entity_list = 2; + * repeated .SceneEntityInfo entity_list = 1; * @return this */ public SceneInfo clearEntityList() { @@ -504,7 +504,7 @@ public final class SceneInfoOuterClass { } /** - * repeated .SceneEntityInfo entity_list = 2; + * repeated .SceneEntityInfo entity_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. @@ -518,7 +518,7 @@ public final class SceneInfoOuterClass { } /** - * repeated .SceneEntityInfo entity_list = 2; + * repeated .SceneEntityInfo entity_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 @@ -532,7 +532,7 @@ public final class SceneInfoOuterClass { } /** - * repeated .SceneEntityInfo entity_list = 2; + * repeated .SceneEntityInfo entity_list = 1; * @param value the entityList to add * @return this */ @@ -543,7 +543,7 @@ public final class SceneInfoOuterClass { } /** - * repeated .SceneEntityInfo entity_list = 2; + * repeated .SceneEntityInfo entity_list = 1; * @param values the entityList to add * @return this */ @@ -554,7 +554,7 @@ public final class SceneInfoOuterClass { } /** - * repeated .SceneGroupState group_state_list = 1654; + * repeated .SceneGroupState group_state_list = 347; * @return whether the groupStateList field is set */ public boolean hasGroupStateList() { @@ -562,7 +562,7 @@ public final class SceneInfoOuterClass { } /** - * repeated .SceneGroupState group_state_list = 1654; + * repeated .SceneGroupState group_state_list = 347; * @return this */ public SceneInfo clearGroupStateList() { @@ -572,7 +572,7 @@ public final class SceneInfoOuterClass { } /** - * repeated .SceneGroupState group_state_list = 1654; + * repeated .SceneGroupState group_state_list = 347; * * 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. @@ -586,7 +586,7 @@ public final class SceneInfoOuterClass { } /** - * repeated .SceneGroupState group_state_list = 1654; + * repeated .SceneGroupState group_state_list = 347; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -600,7 +600,7 @@ public final class SceneInfoOuterClass { } /** - * repeated .SceneGroupState group_state_list = 1654; + * repeated .SceneGroupState group_state_list = 347; * @param value the groupStateList to add * @return this */ @@ -611,7 +611,7 @@ public final class SceneInfoOuterClass { } /** - * repeated .SceneGroupState group_state_list = 1654; + * repeated .SceneGroupState group_state_list = 347; * @param values the groupStateList to add * @return this */ @@ -623,7 +623,7 @@ public final class SceneInfoOuterClass { } /** - * repeated .SceneEntityGroupInfo entity_group_list = 1740; + * repeated .SceneEntityGroupInfo entity_group_list = 1538; * @return whether the entityGroupList field is set */ public boolean hasEntityGroupList() { @@ -631,7 +631,7 @@ public final class SceneInfoOuterClass { } /** - * repeated .SceneEntityGroupInfo entity_group_list = 1740; + * repeated .SceneEntityGroupInfo entity_group_list = 1538; * @return this */ public SceneInfo clearEntityGroupList() { @@ -641,7 +641,7 @@ public final class SceneInfoOuterClass { } /** - * repeated .SceneEntityGroupInfo entity_group_list = 1740; + * repeated .SceneEntityGroupInfo entity_group_list = 1538; * * 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. @@ -656,7 +656,7 @@ public final class SceneInfoOuterClass { } /** - * repeated .SceneEntityGroupInfo entity_group_list = 1740; + * repeated .SceneEntityGroupInfo entity_group_list = 1538; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -671,7 +671,7 @@ public final class SceneInfoOuterClass { } /** - * repeated .SceneEntityGroupInfo entity_group_list = 1740; + * repeated .SceneEntityGroupInfo entity_group_list = 1538; * @param value the entityGroupList to add * @return this */ @@ -683,7 +683,7 @@ public final class SceneInfoOuterClass { } /** - * repeated .SceneEntityGroupInfo entity_group_list = 1740; + * repeated .SceneEntityGroupInfo entity_group_list = 1538; * @param values the entityGroupList to add * @return this */ @@ -699,13 +699,13 @@ public final class SceneInfoOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; + leaderEntityId = other.leaderEntityId; floorId = other.floorId; + worldId = other.worldId; + clientPosVersion = other.clientPosVersion; entryId = other.entryId; planeId = other.planeId; gameModeType = other.gameModeType; - worldId = other.worldId; - leaderEntityId = other.leaderEntityId; - clientPosVersion = other.clientPosVersion; groupIdList.copyFrom(other.groupIdList); lightenSectionList.copyFrom(other.lightenSectionList); entityList.copyFrom(other.entityList); @@ -721,9 +721,18 @@ public final class SceneInfoOuterClass { return this; } cachedSize = -1; + if (other.hasLeaderEntityId()) { + setLeaderEntityId(other.leaderEntityId); + } if (other.hasFloorId()) { setFloorId(other.floorId); } + if (other.hasWorldId()) { + setWorldId(other.worldId); + } + if (other.hasClientPosVersion()) { + setClientPosVersion(other.clientPosVersion); + } if (other.hasEntryId()) { setEntryId(other.entryId); } @@ -733,15 +742,6 @@ public final class SceneInfoOuterClass { if (other.hasGameModeType()) { setGameModeType(other.gameModeType); } - if (other.hasWorldId()) { - setWorldId(other.worldId); - } - if (other.hasLeaderEntityId()) { - setLeaderEntityId(other.leaderEntityId); - } - if (other.hasClientPosVersion()) { - setClientPosVersion(other.clientPosVersion); - } if (other.hasGroupIdList()) { getMutableGroupIdList().addAll(other.groupIdList); } @@ -767,13 +767,13 @@ public final class SceneInfoOuterClass { } cachedSize = -1; bitField0_ = 0; + leaderEntityId = 0; floorId = 0; + worldId = 0; + clientPosVersion = 0; entryId = 0; planeId = 0; gameModeType = 0; - worldId = 0; - leaderEntityId = 0; - clientPosVersion = 0; groupIdList.clear(); lightenSectionList.clear(); entityList.clear(); @@ -807,13 +807,13 @@ public final class SceneInfoOuterClass { } SceneInfo other = (SceneInfo) o; return bitField0_ == other.bitField0_ + && (!hasLeaderEntityId() || leaderEntityId == other.leaderEntityId) && (!hasFloorId() || floorId == other.floorId) + && (!hasWorldId() || worldId == other.worldId) + && (!hasClientPosVersion() || clientPosVersion == other.clientPosVersion) && (!hasEntryId() || entryId == other.entryId) && (!hasPlaneId() || planeId == other.planeId) && (!hasGameModeType() || gameModeType == other.gameModeType) - && (!hasWorldId() || worldId == other.worldId) - && (!hasLeaderEntityId() || leaderEntityId == other.leaderEntityId) - && (!hasClientPosVersion() || clientPosVersion == other.clientPosVersion) && (!hasGroupIdList() || groupIdList.equals(other.groupIdList)) && (!hasLightenSectionList() || lightenSectionList.equals(other.lightenSectionList)) && (!hasEntityList() || entityList.equals(other.entityList)) @@ -824,60 +824,60 @@ public final class SceneInfoOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(leaderEntityId); + } + if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 24); output.writeUInt32NoTag(floorId); } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 40); - output.writeUInt32NoTag(entryId); - } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 64); - output.writeUInt32NoTag(planeId); + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(worldId); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 72); - output.writeUInt32NoTag(gameModeType); + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(clientPosVersion); } if ((bitField0_ & 0x00000010) != 0) { output.writeRawByte((byte) 88); - output.writeUInt32NoTag(worldId); + output.writeUInt32NoTag(entryId); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 112); - output.writeUInt32NoTag(leaderEntityId); + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(planeId); } if ((bitField0_ & 0x00000040) != 0) { output.writeRawByte((byte) 120); - output.writeUInt32NoTag(clientPosVersion); + output.writeUInt32NoTag(gameModeType); } if ((bitField0_ & 0x00000080) != 0) { for (int i = 0; i < groupIdList.length(); i++) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(groupIdList.array()[i]); } } if ((bitField0_ & 0x00000100) != 0) { for (int i = 0; i < lightenSectionList.length(); i++) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 72); output.writeUInt32NoTag(lightenSectionList.array()[i]); } } if ((bitField0_ & 0x00000200) != 0) { for (int i = 0; i < entityList.length(); i++) { - output.writeRawByte((byte) 18); + output.writeRawByte((byte) 10); output.writeMessageNoTag(entityList.get(i)); } } if ((bitField0_ & 0x00000400) != 0) { for (int i = 0; i < groupStateList.length(); i++) { - output.writeRawLittleEndian16((short) 26546); + output.writeRawLittleEndian16((short) 5594); output.writeMessageNoTag(groupStateList.get(i)); } } if ((bitField0_ & 0x00000800) != 0) { for (int i = 0; i < entityGroupList.length(); i++) { - output.writeRawLittleEndian16((short) 27874); + output.writeRawLittleEndian16((short) 24722); output.writeMessageNoTag(entityGroupList.get(i)); } } @@ -887,26 +887,26 @@ public final class SceneInfoOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(floorId); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(entryId); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(planeId); - } - if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(gameModeType); - } - if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(worldId); - } - if ((bitField0_ & 0x00000020) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(leaderEntityId); } - if ((bitField0_ & 0x00000040) != 0) { + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(floorId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(worldId); + } + if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(clientPosVersion); } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(entryId); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(planeId); + } + if ((bitField0_ & 0x00000040) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(gameModeType); + } if ((bitField0_ & 0x00000080) != 0) { size += (1 * groupIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(groupIdList); } @@ -932,36 +932,36 @@ public final class SceneInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { + case 16: { + // leaderEntityId + leaderEntityId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 24) { + break; + } + } case 24: { // floorId floorId = input.readUInt32(); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 40) { break; } } case 40: { - // entryId - entryId = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 64) { - break; - } - } - case 64: { - // planeId - planeId = input.readUInt32(); + // worldId + worldId = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 72) { + if (tag != 56) { break; } } - case 72: { - // gameModeType - gameModeType = input.readUInt32(); + case 56: { + // clientPosVersion + clientPosVersion = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 88) { @@ -969,17 +969,17 @@ public final class SceneInfoOuterClass { } } case 88: { - // worldId - worldId = input.readUInt32(); + // entryId + entryId = input.readUInt32(); bitField0_ |= 0x00000010; tag = input.readTag(); - if (tag != 112) { + if (tag != 104) { break; } } - case 112: { - // leaderEntityId - leaderEntityId = input.readUInt32(); + case 104: { + // planeId + planeId = input.readUInt32(); bitField0_ |= 0x00000020; tag = input.readTag(); if (tag != 120) { @@ -987,49 +987,49 @@ public final class SceneInfoOuterClass { } } case 120: { - // clientPosVersion - clientPosVersion = input.readUInt32(); + // gameModeType + gameModeType = input.readUInt32(); bitField0_ |= 0x00000040; tag = input.readTag(); - if (tag != 58) { + if (tag != 34) { break; } } - case 58: { + case 34: { // groupIdList [packed=true] input.readPackedUInt32(groupIdList, tag); bitField0_ |= 0x00000080; tag = input.readTag(); - if (tag != 82) { + if (tag != 74) { break; } } - case 82: { + case 74: { // lightenSectionList [packed=true] input.readPackedUInt32(lightenSectionList, tag); bitField0_ |= 0x00000100; tag = input.readTag(); - if (tag != 18) { + if (tag != 10) { break; } } - case 18: { + case 10: { // entityList tag = input.readRepeatedMessage(entityList, tag); bitField0_ |= 0x00000200; - if (tag != 13234) { + if (tag != 2778) { break; } } - case 13234: { + case 2778: { // groupStateList tag = input.readRepeatedMessage(groupStateList, tag); bitField0_ |= 0x00000400; - if (tag != 13922) { + if (tag != 12306) { break; } } - case 13922: { + case 12306: { // entityGroupList tag = input.readRepeatedMessage(entityGroupList, tag); bitField0_ |= 0x00000800; @@ -1047,13 +1047,13 @@ public final class SceneInfoOuterClass { tag = input.readTag(); break; } - case 56: { + case 32: { // groupIdList [packed=false] tag = input.readRepeatedUInt32(groupIdList, tag); bitField0_ |= 0x00000080; break; } - case 80: { + case 72: { // lightenSectionList [packed=false] tag = input.readRepeatedUInt32(lightenSectionList, tag); bitField0_ |= 0x00000100; @@ -1067,26 +1067,26 @@ public final class SceneInfoOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.floorId, floorId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.entryId, entryId); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.planeId, planeId); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.gameModeType, gameModeType); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeUInt32(FieldNames.worldId, worldId); - } - if ((bitField0_ & 0x00000020) != 0) { output.writeUInt32(FieldNames.leaderEntityId, leaderEntityId); } - if ((bitField0_ & 0x00000040) != 0) { + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.floorId, floorId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.worldId, worldId); + } + if ((bitField0_ & 0x00000008) != 0) { output.writeUInt32(FieldNames.clientPosVersion, clientPosVersion); } + if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.entryId, entryId); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeUInt32(FieldNames.planeId, planeId); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeUInt32(FieldNames.gameModeType, gameModeType); + } if ((bitField0_ & 0x00000080) != 0) { output.writeRepeatedUInt32(FieldNames.groupIdList, groupIdList); } @@ -1112,11 +1112,11 @@ public final class SceneInfoOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -766027193: - case 2022982190: { - if (input.isAtField(FieldNames.floorId)) { + case 1693061255: + case 794634049: { + if (input.isAtField(FieldNames.leaderEntityId)) { if (!input.trySkipNullValue()) { - floorId = input.readUInt32(); + leaderEntityId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -1124,11 +1124,11 @@ public final class SceneInfoOuterClass { } break; } - case -1591558867: - case -2093663224: { - if (input.isAtField(FieldNames.entryId)) { + case -766027193: + case 2022982190: { + if (input.isAtField(FieldNames.floorId)) { if (!input.trySkipNullValue()) { - entryId = input.readUInt32(); + floorId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -1136,48 +1136,12 @@ public final class SceneInfoOuterClass { } break; } - case -493896553: - case 1869097438: { - if (input.isAtField(FieldNames.planeId)) { - if (!input.trySkipNullValue()) { - planeId = input.readUInt32(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case -464498289: - case 1937775689: { - if (input.isAtField(FieldNames.gameModeType)) { - if (!input.trySkipNullValue()) { - gameModeType = input.readUInt32(); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } case 1525188685: case 36230376: { if (input.isAtField(FieldNames.worldId)) { if (!input.trySkipNullValue()) { worldId = input.readUInt32(); - bitField0_ |= 0x00000010; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1693061255: - case 794634049: { - if (input.isAtField(FieldNames.leaderEntityId)) { - if (!input.trySkipNullValue()) { - leaderEntityId = input.readUInt32(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000004; } } else { input.skipUnknownField(); @@ -1189,6 +1153,42 @@ public final class SceneInfoOuterClass { if (input.isAtField(FieldNames.clientPosVersion)) { if (!input.trySkipNullValue()) { clientPosVersion = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1591558867: + case -2093663224: { + if (input.isAtField(FieldNames.entryId)) { + if (!input.trySkipNullValue()) { + entryId = input.readUInt32(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case -493896553: + case 1869097438: { + if (input.isAtField(FieldNames.planeId)) { + if (!input.trySkipNullValue()) { + planeId = input.readUInt32(); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case -464498289: + case 1937775689: { + if (input.isAtField(FieldNames.gameModeType)) { + if (!input.trySkipNullValue()) { + gameModeType = input.readUInt32(); bitField0_ |= 0x00000040; } } else { @@ -1308,20 +1308,20 @@ public final class SceneInfoOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { + static final FieldName leaderEntityId = FieldName.forField("leaderEntityId", "leader_entity_id"); + static final FieldName floorId = FieldName.forField("floorId", "floor_id"); + static final FieldName worldId = FieldName.forField("worldId", "world_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 worldId = FieldName.forField("worldId", "world_id"); - - static final FieldName leaderEntityId = FieldName.forField("leaderEntityId", "leader_entity_id"); - - static final FieldName clientPosVersion = FieldName.forField("clientPosVersion", "client_pos_version"); - static final FieldName groupIdList = FieldName.forField("groupIdList", "group_id_list"); static final FieldName lightenSectionList = FieldName.forField("lightenSectionList", "lighten_section_list"); diff --git a/src/generated/main/emu/lunarcore/proto/SceneMonsterOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneMonsterOuterClass.java index 83d12cf..fd8b348 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneMonsterOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneMonsterOuterClass.java @@ -19,19 +19,19 @@ public final class SceneMonsterOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 monster_id = 4; + * optional uint32 cur_hp = 2; */ - private int monsterId; + private int curHp; /** - * optional uint32 max_hp = 6; + * optional uint32 max_hp = 14; */ private int maxHp; /** - * optional uint32 cur_hp = 14; + * optional uint32 monster_id = 15; */ - private int curHp; + private int monsterId; private SceneMonster() { } @@ -44,44 +44,44 @@ public final class SceneMonsterOuterClass { } /** - * optional uint32 monster_id = 4; - * @return whether the monsterId field is set + * optional uint32 cur_hp = 2; + * @return whether the curHp field is set */ - public boolean hasMonsterId() { + public boolean hasCurHp() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 monster_id = 4; + * optional uint32 cur_hp = 2; * @return this */ - public SceneMonster clearMonsterId() { + public SceneMonster clearCurHp() { bitField0_ &= ~0x00000001; - monsterId = 0; + curHp = 0; return this; } /** - * optional uint32 monster_id = 4; - * @return the monsterId + * optional uint32 cur_hp = 2; + * @return the curHp */ - public int getMonsterId() { - return monsterId; + public int getCurHp() { + return curHp; } /** - * optional uint32 monster_id = 4; - * @param value the monsterId to set + * optional uint32 cur_hp = 2; + * @param value the curHp to set * @return this */ - public SceneMonster setMonsterId(final int value) { + public SceneMonster setCurHp(final int value) { bitField0_ |= 0x00000001; - monsterId = value; + curHp = value; return this; } /** - * optional uint32 max_hp = 6; + * optional uint32 max_hp = 14; * @return whether the maxHp field is set */ public boolean hasMaxHp() { @@ -89,7 +89,7 @@ public final class SceneMonsterOuterClass { } /** - * optional uint32 max_hp = 6; + * optional uint32 max_hp = 14; * @return this */ public SceneMonster clearMaxHp() { @@ -99,7 +99,7 @@ public final class SceneMonsterOuterClass { } /** - * optional uint32 max_hp = 6; + * optional uint32 max_hp = 14; * @return the maxHp */ public int getMaxHp() { @@ -107,7 +107,7 @@ public final class SceneMonsterOuterClass { } /** - * optional uint32 max_hp = 6; + * optional uint32 max_hp = 14; * @param value the maxHp to set * @return this */ @@ -118,39 +118,39 @@ public final class SceneMonsterOuterClass { } /** - * optional uint32 cur_hp = 14; - * @return whether the curHp field is set + * optional uint32 monster_id = 15; + * @return whether the monsterId field is set */ - public boolean hasCurHp() { + public boolean hasMonsterId() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 cur_hp = 14; + * optional uint32 monster_id = 15; * @return this */ - public SceneMonster clearCurHp() { + public SceneMonster clearMonsterId() { bitField0_ &= ~0x00000004; - curHp = 0; + monsterId = 0; return this; } /** - * optional uint32 cur_hp = 14; - * @return the curHp + * optional uint32 monster_id = 15; + * @return the monsterId */ - public int getCurHp() { - return curHp; + public int getMonsterId() { + return monsterId; } /** - * optional uint32 cur_hp = 14; - * @param value the curHp to set + * optional uint32 monster_id = 15; + * @param value the monsterId to set * @return this */ - public SceneMonster setCurHp(final int value) { + public SceneMonster setMonsterId(final int value) { bitField0_ |= 0x00000004; - curHp = value; + monsterId = value; return this; } @@ -159,9 +159,9 @@ public final class SceneMonsterOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - monsterId = other.monsterId; - maxHp = other.maxHp; curHp = other.curHp; + maxHp = other.maxHp; + monsterId = other.monsterId; } return this; } @@ -172,14 +172,14 @@ public final class SceneMonsterOuterClass { return this; } cachedSize = -1; - if (other.hasMonsterId()) { - setMonsterId(other.monsterId); + if (other.hasCurHp()) { + setCurHp(other.curHp); } if (other.hasMaxHp()) { setMaxHp(other.maxHp); } - if (other.hasCurHp()) { - setCurHp(other.curHp); + if (other.hasMonsterId()) { + setMonsterId(other.monsterId); } return this; } @@ -191,9 +191,9 @@ public final class SceneMonsterOuterClass { } cachedSize = -1; bitField0_ = 0; - monsterId = 0; - maxHp = 0; curHp = 0; + maxHp = 0; + monsterId = 0; return this; } @@ -217,24 +217,24 @@ public final class SceneMonsterOuterClass { } SceneMonster other = (SceneMonster) o; return bitField0_ == other.bitField0_ - && (!hasMonsterId() || monsterId == other.monsterId) + && (!hasCurHp() || curHp == other.curHp) && (!hasMaxHp() || maxHp == other.maxHp) - && (!hasCurHp() || curHp == other.curHp); + && (!hasMonsterId() || monsterId == other.monsterId); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 32); - output.writeUInt32NoTag(monsterId); + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(curHp); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 112); output.writeUInt32NoTag(maxHp); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 112); - output.writeUInt32NoTag(curHp); + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(monsterId); } } @@ -242,13 +242,13 @@ public final class SceneMonsterOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(monsterId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(curHp); } if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(maxHp); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(curHp); + size += 1 + ProtoSink.computeUInt32SizeNoTag(monsterId); } return size; } @@ -260,27 +260,27 @@ public final class SceneMonsterOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 32: { - // monsterId - monsterId = input.readUInt32(); + case 16: { + // curHp + curHp = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 48) { - break; - } - } - case 48: { - // maxHp - maxHp = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); if (tag != 112) { break; } } case 112: { - // curHp - curHp = input.readUInt32(); + // maxHp + maxHp = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // monsterId + monsterId = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 0) { @@ -305,13 +305,13 @@ public final class SceneMonsterOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.monsterId, monsterId); + output.writeUInt32(FieldNames.curHp, curHp); } if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.maxHp, maxHp); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.curHp, curHp); + output.writeUInt32(FieldNames.monsterId, monsterId); } output.endObject(); } @@ -323,11 +323,11 @@ public final class SceneMonsterOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -1316830571: - case 2127946656: { - if (input.isAtField(FieldNames.monsterId)) { + case 95026024: + case -1349138585: { + if (input.isAtField(FieldNames.curHp)) { if (!input.trySkipNullValue()) { - monsterId = input.readUInt32(); + curHp = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -347,11 +347,11 @@ public final class SceneMonsterOuterClass { } break; } - 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_ |= 0x00000004; } } else { @@ -411,11 +411,11 @@ public final class SceneMonsterOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName monsterId = FieldName.forField("monsterId", "monster_id"); + static final FieldName curHp = FieldName.forField("curHp", "cur_hp"); static final FieldName maxHp = FieldName.forField("maxHp", "max_hp"); - static final FieldName curHp = FieldName.forField("curHp", "cur_hp"); + static final FieldName monsterId = FieldName.forField("monsterId", "monster_id"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/SceneMonsterWaveOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneMonsterWaveOuterClass.java index 825e4e0..4cafe48 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneMonsterWaveOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneMonsterWaveOuterClass.java @@ -20,27 +20,27 @@ public final class SceneMonsterWaveOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 stage_id = 8; - */ - private int stageId; - - /** - * optional uint32 wave_id = 15; + * optional uint32 wave_id = 4; */ private int waveId; /** - * optional .SceneMonsterWaveParam wave_param = 13; + * optional uint32 stage_id = 15; + */ + private int stageId; + + /** + * optional .SceneMonsterWaveParam wave_param = 11; */ private final SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam waveParam = SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam.newInstance(); /** - * repeated .SceneMonster monster_list = 5; + * repeated .SceneMonster monster_list = 6; */ private final RepeatedMessage monsterList = RepeatedMessage.newEmptyInstance(SceneMonsterOuterClass.SceneMonster.getFactory()); /** - * repeated .ItemList drop_list = 11; + * repeated .ItemList drop_list = 12; */ private final RepeatedMessage dropList = RepeatedMessage.newEmptyInstance(ItemListOuterClass.ItemList.getFactory()); @@ -55,62 +55,25 @@ public final class SceneMonsterWaveOuterClass { } /** - * optional uint32 stage_id = 8; - * @return whether the stageId field is set + * optional uint32 wave_id = 4; + * @return whether the waveId field is set */ - public boolean hasStageId() { + public boolean hasWaveId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 stage_id = 8; - * @return this - */ - public SceneMonsterWave clearStageId() { - bitField0_ &= ~0x00000001; - stageId = 0; - return this; - } - - /** - * optional uint32 stage_id = 8; - * @return the stageId - */ - public int getStageId() { - return stageId; - } - - /** - * optional uint32 stage_id = 8; - * @param value the stageId to set - * @return this - */ - public SceneMonsterWave setStageId(final int value) { - bitField0_ |= 0x00000001; - stageId = value; - return this; - } - - /** - * optional uint32 wave_id = 15; - * @return whether the waveId field is set - */ - public boolean hasWaveId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 wave_id = 15; + * optional uint32 wave_id = 4; * @return this */ public SceneMonsterWave clearWaveId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; waveId = 0; return this; } /** - * optional uint32 wave_id = 15; + * optional uint32 wave_id = 4; * @return the waveId */ public int getWaveId() { @@ -118,18 +81,55 @@ public final class SceneMonsterWaveOuterClass { } /** - * optional uint32 wave_id = 15; + * optional uint32 wave_id = 4; * @param value the waveId to set * @return this */ public SceneMonsterWave setWaveId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; waveId = value; return this; } /** - * optional .SceneMonsterWaveParam wave_param = 13; + * optional uint32 stage_id = 15; + * @return whether the stageId field is set + */ + public boolean hasStageId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 stage_id = 15; + * @return this + */ + public SceneMonsterWave clearStageId() { + bitField0_ &= ~0x00000002; + stageId = 0; + return this; + } + + /** + * optional uint32 stage_id = 15; + * @return the stageId + */ + public int getStageId() { + return stageId; + } + + /** + * optional uint32 stage_id = 15; + * @param value the stageId to set + * @return this + */ + public SceneMonsterWave setStageId(final int value) { + bitField0_ |= 0x00000002; + stageId = value; + return this; + } + + /** + * optional .SceneMonsterWaveParam wave_param = 11; * @return whether the waveParam field is set */ public boolean hasWaveParam() { @@ -137,7 +137,7 @@ public final class SceneMonsterWaveOuterClass { } /** - * optional .SceneMonsterWaveParam wave_param = 13; + * optional .SceneMonsterWaveParam wave_param = 11; * @return this */ public SceneMonsterWave clearWaveParam() { @@ -147,7 +147,7 @@ public final class SceneMonsterWaveOuterClass { } /** - * optional .SceneMonsterWaveParam wave_param = 13; + * optional .SceneMonsterWaveParam wave_param = 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. @@ -161,7 +161,7 @@ public final class SceneMonsterWaveOuterClass { } /** - * optional .SceneMonsterWaveParam wave_param = 13; + * optional .SceneMonsterWaveParam wave_param = 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 @@ -175,7 +175,7 @@ public final class SceneMonsterWaveOuterClass { } /** - * optional .SceneMonsterWaveParam wave_param = 13; + * optional .SceneMonsterWaveParam wave_param = 11; * @param value the waveParam to set * @return this */ @@ -187,7 +187,7 @@ public final class SceneMonsterWaveOuterClass { } /** - * repeated .SceneMonster monster_list = 5; + * repeated .SceneMonster monster_list = 6; * @return whether the monsterList field is set */ public boolean hasMonsterList() { @@ -195,7 +195,7 @@ public final class SceneMonsterWaveOuterClass { } /** - * repeated .SceneMonster monster_list = 5; + * repeated .SceneMonster monster_list = 6; * @return this */ public SceneMonsterWave clearMonsterList() { @@ -205,7 +205,7 @@ public final class SceneMonsterWaveOuterClass { } /** - * repeated .SceneMonster monster_list = 5; + * repeated .SceneMonster monster_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. @@ -219,7 +219,7 @@ public final class SceneMonsterWaveOuterClass { } /** - * repeated .SceneMonster monster_list = 5; + * repeated .SceneMonster monster_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 @@ -233,7 +233,7 @@ public final class SceneMonsterWaveOuterClass { } /** - * repeated .SceneMonster monster_list = 5; + * repeated .SceneMonster monster_list = 6; * @param value the monsterList to add * @return this */ @@ -244,7 +244,7 @@ public final class SceneMonsterWaveOuterClass { } /** - * repeated .SceneMonster monster_list = 5; + * repeated .SceneMonster monster_list = 6; * @param values the monsterList to add * @return this */ @@ -255,7 +255,7 @@ public final class SceneMonsterWaveOuterClass { } /** - * repeated .ItemList drop_list = 11; + * repeated .ItemList drop_list = 12; * @return whether the dropList field is set */ public boolean hasDropList() { @@ -263,7 +263,7 @@ public final class SceneMonsterWaveOuterClass { } /** - * repeated .ItemList drop_list = 11; + * repeated .ItemList drop_list = 12; * @return this */ public SceneMonsterWave clearDropList() { @@ -273,7 +273,7 @@ public final class SceneMonsterWaveOuterClass { } /** - * repeated .ItemList drop_list = 11; + * repeated .ItemList drop_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. @@ -287,7 +287,7 @@ public final class SceneMonsterWaveOuterClass { } /** - * repeated .ItemList drop_list = 11; + * repeated .ItemList drop_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 @@ -301,7 +301,7 @@ public final class SceneMonsterWaveOuterClass { } /** - * repeated .ItemList drop_list = 11; + * repeated .ItemList drop_list = 12; * @param value the dropList to add * @return this */ @@ -312,7 +312,7 @@ public final class SceneMonsterWaveOuterClass { } /** - * repeated .ItemList drop_list = 11; + * repeated .ItemList drop_list = 12; * @param values the dropList to add * @return this */ @@ -327,8 +327,8 @@ public final class SceneMonsterWaveOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - stageId = other.stageId; waveId = other.waveId; + stageId = other.stageId; waveParam.copyFrom(other.waveParam); monsterList.copyFrom(other.monsterList); dropList.copyFrom(other.dropList); @@ -342,12 +342,12 @@ public final class SceneMonsterWaveOuterClass { return this; } cachedSize = -1; - if (other.hasStageId()) { - setStageId(other.stageId); - } if (other.hasWaveId()) { setWaveId(other.waveId); } + if (other.hasStageId()) { + setStageId(other.stageId); + } if (other.hasWaveParam()) { getMutableWaveParam().mergeFrom(other.waveParam); } @@ -367,8 +367,8 @@ public final class SceneMonsterWaveOuterClass { } cachedSize = -1; bitField0_ = 0; - stageId = 0; waveId = 0; + stageId = 0; waveParam.clear(); monsterList.clear(); dropList.clear(); @@ -398,8 +398,8 @@ public final class SceneMonsterWaveOuterClass { } SceneMonsterWave other = (SceneMonsterWave) o; return bitField0_ == other.bitField0_ - && (!hasStageId() || stageId == other.stageId) && (!hasWaveId() || waveId == other.waveId) + && (!hasStageId() || stageId == other.stageId) && (!hasWaveParam() || waveParam.equals(other.waveParam)) && (!hasMonsterList() || monsterList.equals(other.monsterList)) && (!hasDropList() || dropList.equals(other.dropList)); @@ -408,26 +408,26 @@ public final class SceneMonsterWaveOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 64); - output.writeUInt32NoTag(stageId); + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(waveId); } if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 120); - output.writeUInt32NoTag(waveId); + output.writeUInt32NoTag(stageId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 106); + output.writeRawByte((byte) 90); output.writeMessageNoTag(waveParam); } if ((bitField0_ & 0x00000008) != 0) { for (int i = 0; i < monsterList.length(); i++) { - output.writeRawByte((byte) 42); + output.writeRawByte((byte) 50); output.writeMessageNoTag(monsterList.get(i)); } } if ((bitField0_ & 0x00000010) != 0) { for (int i = 0; i < dropList.length(); i++) { - output.writeRawByte((byte) 90); + output.writeRawByte((byte) 98); output.writeMessageNoTag(dropList.get(i)); } } @@ -437,10 +437,10 @@ public final class SceneMonsterWaveOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(stageId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(waveId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(waveId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(stageId); } if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(waveParam); @@ -461,9 +461,9 @@ public final class SceneMonsterWaveOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 64: { - // stageId - stageId = input.readUInt32(); + case 32: { + // waveId + waveId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 120) { @@ -471,32 +471,32 @@ public final class SceneMonsterWaveOuterClass { } } case 120: { - // waveId - waveId = input.readUInt32(); + // stageId + stageId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 106) { - break; - } - } - case 106: { - // waveParam - input.readMessage(waveParam); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 42) { - break; - } - } - case 42: { - // monsterList - tag = input.readRepeatedMessage(monsterList, tag); - bitField0_ |= 0x00000008; if (tag != 90) { break; } } case 90: { + // waveParam + input.readMessage(waveParam); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 50) { + break; + } + } + case 50: { + // monsterList + tag = input.readRepeatedMessage(monsterList, tag); + bitField0_ |= 0x00000008; + if (tag != 98) { + break; + } + } + case 98: { // dropList tag = input.readRepeatedMessage(dropList, tag); bitField0_ |= 0x00000010; @@ -522,10 +522,10 @@ public final class SceneMonsterWaveOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.stageId, stageId); + output.writeUInt32(FieldNames.waveId, waveId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.waveId, waveId); + output.writeUInt32(FieldNames.stageId, stageId); } if ((bitField0_ & 0x00000004) != 0) { output.writeMessage(FieldNames.waveParam, waveParam); @@ -546,11 +546,11 @@ public final class SceneMonsterWaveOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -1897528135: - case 1306191356: { - if (input.isAtField(FieldNames.stageId)) { + case -794902028: + case 1127862305: { + if (input.isAtField(FieldNames.waveId)) { if (!input.trySkipNullValue()) { - stageId = input.readUInt32(); + waveId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -558,11 +558,11 @@ public final class SceneMonsterWaveOuterClass { } break; } - case -794902028: - case 1127862305: { - if (input.isAtField(FieldNames.waveId)) { + case -1897528135: + case 1306191356: { + if (input.isAtField(FieldNames.stageId)) { if (!input.trySkipNullValue()) { - waveId = input.readUInt32(); + stageId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -659,10 +659,10 @@ public final class SceneMonsterWaveOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName stageId = FieldName.forField("stageId", "stage_id"); - static final FieldName waveId = FieldName.forField("waveId", "wave_id"); + static final FieldName stageId = FieldName.forField("stageId", "stage_id"); + static final FieldName waveParam = FieldName.forField("waveParam", "wave_param"); static final FieldName monsterList = FieldName.forField("monsterList", "monster_list"); diff --git a/src/generated/main/emu/lunarcore/proto/SceneMonsterWaveParamOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneMonsterWaveParamOuterClass.java index d6a1697..d361377 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneMonsterWaveParamOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneMonsterWaveParamOuterClass.java @@ -18,26 +18,11 @@ public final class SceneMonsterWaveParamOuterClass { public static final class SceneMonsterWaveParam extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; - /** - * optional uint32 DNDLGLKFBHB = 5; - */ - private int dNDLGLKFBHB; - /** * optional uint32 level = 8; */ private int level; - /** - * optional uint32 AGFKKDONMOI = 14; - */ - private int aGFKKDONMOI; - - /** - * optional uint32 APKKFCLEGCI = 15; - */ - private int aPKKFCLEGCI; - private SceneMonsterWaveParam() { } @@ -48,49 +33,12 @@ public final class SceneMonsterWaveParamOuterClass { return new SceneMonsterWaveParam(); } - /** - * optional uint32 DNDLGLKFBHB = 5; - * @return whether the dNDLGLKFBHB field is set - */ - public boolean hasDNDLGLKFBHB() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 DNDLGLKFBHB = 5; - * @return this - */ - public SceneMonsterWaveParam clearDNDLGLKFBHB() { - bitField0_ &= ~0x00000001; - dNDLGLKFBHB = 0; - return this; - } - - /** - * optional uint32 DNDLGLKFBHB = 5; - * @return the dNDLGLKFBHB - */ - public int getDNDLGLKFBHB() { - return dNDLGLKFBHB; - } - - /** - * optional uint32 DNDLGLKFBHB = 5; - * @param value the dNDLGLKFBHB to set - * @return this - */ - public SceneMonsterWaveParam setDNDLGLKFBHB(final int value) { - bitField0_ |= 0x00000001; - dNDLGLKFBHB = value; - return this; - } - /** * optional uint32 level = 8; * @return whether the level field is set */ public boolean hasLevel() { - return (bitField0_ & 0x00000002) != 0; + return (bitField0_ & 0x00000001) != 0; } /** @@ -98,7 +46,7 @@ public final class SceneMonsterWaveParamOuterClass { * @return this */ public SceneMonsterWaveParam clearLevel() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; level = 0; return this; } @@ -117,94 +65,17 @@ public final class SceneMonsterWaveParamOuterClass { * @return this */ public SceneMonsterWaveParam setLevel(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; level = value; return this; } - /** - * optional uint32 AGFKKDONMOI = 14; - * @return whether the aGFKKDONMOI field is set - */ - public boolean hasAGFKKDONMOI() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 AGFKKDONMOI = 14; - * @return this - */ - public SceneMonsterWaveParam clearAGFKKDONMOI() { - bitField0_ &= ~0x00000004; - aGFKKDONMOI = 0; - return this; - } - - /** - * optional uint32 AGFKKDONMOI = 14; - * @return the aGFKKDONMOI - */ - public int getAGFKKDONMOI() { - return aGFKKDONMOI; - } - - /** - * optional uint32 AGFKKDONMOI = 14; - * @param value the aGFKKDONMOI to set - * @return this - */ - public SceneMonsterWaveParam setAGFKKDONMOI(final int value) { - bitField0_ |= 0x00000004; - aGFKKDONMOI = value; - return this; - } - - /** - * optional uint32 APKKFCLEGCI = 15; - * @return whether the aPKKFCLEGCI field is set - */ - public boolean hasAPKKFCLEGCI() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional uint32 APKKFCLEGCI = 15; - * @return this - */ - public SceneMonsterWaveParam clearAPKKFCLEGCI() { - bitField0_ &= ~0x00000008; - aPKKFCLEGCI = 0; - return this; - } - - /** - * optional uint32 APKKFCLEGCI = 15; - * @return the aPKKFCLEGCI - */ - public int getAPKKFCLEGCI() { - return aPKKFCLEGCI; - } - - /** - * optional uint32 APKKFCLEGCI = 15; - * @param value the aPKKFCLEGCI to set - * @return this - */ - public SceneMonsterWaveParam setAPKKFCLEGCI(final int value) { - bitField0_ |= 0x00000008; - aPKKFCLEGCI = value; - return this; - } - @Override public SceneMonsterWaveParam copyFrom(final SceneMonsterWaveParam other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - dNDLGLKFBHB = other.dNDLGLKFBHB; level = other.level; - aGFKKDONMOI = other.aGFKKDONMOI; - aPKKFCLEGCI = other.aPKKFCLEGCI; } return this; } @@ -215,18 +86,9 @@ public final class SceneMonsterWaveParamOuterClass { return this; } cachedSize = -1; - if (other.hasDNDLGLKFBHB()) { - setDNDLGLKFBHB(other.dNDLGLKFBHB); - } if (other.hasLevel()) { setLevel(other.level); } - if (other.hasAGFKKDONMOI()) { - setAGFKKDONMOI(other.aGFKKDONMOI); - } - if (other.hasAPKKFCLEGCI()) { - setAPKKFCLEGCI(other.aPKKFCLEGCI); - } return this; } @@ -237,10 +99,7 @@ public final class SceneMonsterWaveParamOuterClass { } cachedSize = -1; bitField0_ = 0; - dNDLGLKFBHB = 0; level = 0; - aGFKKDONMOI = 0; - aPKKFCLEGCI = 0; return this; } @@ -264,47 +123,23 @@ public final class SceneMonsterWaveParamOuterClass { } SceneMonsterWaveParam other = (SceneMonsterWaveParam) o; return bitField0_ == other.bitField0_ - && (!hasDNDLGLKFBHB() || dNDLGLKFBHB == other.dNDLGLKFBHB) - && (!hasLevel() || level == other.level) - && (!hasAGFKKDONMOI() || aGFKKDONMOI == other.aGFKKDONMOI) - && (!hasAPKKFCLEGCI() || aPKKFCLEGCI == other.aPKKFCLEGCI); + && (!hasLevel() || level == other.level); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); - output.writeUInt32NoTag(dNDLGLKFBHB); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 64); output.writeUInt32NoTag(level); } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 112); - output.writeUInt32NoTag(aGFKKDONMOI); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 120); - output.writeUInt32NoTag(aPKKFCLEGCI); - } } @Override protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(dNDLGLKFBHB); - } - if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(level); } - if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(aGFKKDONMOI); - } - if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(aPKKFCLEGCI); - } return size; } @@ -315,37 +150,10 @@ public final class SceneMonsterWaveParamOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 40: { - // dNDLGLKFBHB - dNDLGLKFBHB = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 64) { - break; - } - } case 64: { // level level = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 112) { - break; - } - } - case 112: { - // aGFKKDONMOI - aGFKKDONMOI = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 120) { - break; - } - } - case 120: { - // aPKKFCLEGCI - aPKKFCLEGCI = input.readUInt32(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 0) { break; @@ -369,17 +177,8 @@ public final class SceneMonsterWaveParamOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.dNDLGLKFBHB, dNDLGLKFBHB); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.level, level); } - if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.aGFKKDONMOI, aGFKKDONMOI); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.aPKKFCLEGCI, aPKKFCLEGCI); - } output.endObject(); } @@ -390,44 +189,11 @@ public final class SceneMonsterWaveParamOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1710437610: { - if (input.isAtField(FieldNames.dNDLGLKFBHB)) { - if (!input.trySkipNullValue()) { - dNDLGLKFBHB = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } case 102865796: { if (input.isAtField(FieldNames.level)) { if (!input.trySkipNullValue()) { level = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case -2145842908: { - if (input.isAtField(FieldNames.aGFKKDONMOI)) { - if (!input.trySkipNullValue()) { - aGFKKDONMOI = input.readUInt32(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case -241059960: { - if (input.isAtField(FieldNames.aPKKFCLEGCI)) { - if (!input.trySkipNullValue()) { - aPKKFCLEGCI = input.readUInt32(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000001; } } else { input.skipUnknownField(); @@ -487,13 +253,7 @@ public final class SceneMonsterWaveParamOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName dNDLGLKFBHB = FieldName.forField("DNDLGLKFBHB"); - static final FieldName level = FieldName.forField("level"); - - static final FieldName aGFKKDONMOI = FieldName.forField("AGFKKDONMOI"); - - static final FieldName aPKKFCLEGCI = FieldName.forField("APKKFCLEGCI"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/SceneNpcInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneNpcInfoOuterClass.java index 848fee2..a0298c3 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneNpcInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneNpcInfoOuterClass.java @@ -19,12 +19,12 @@ public final class SceneNpcInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 npc_id = 12; + * optional uint32 npc_id = 8; */ private int npcId; /** - * optional .NpcExtraInfo extra_info = 13; + * optional .NpcExtraInfo extra_info = 4; */ private final NpcExtraInfoOuterClass.NpcExtraInfo extraInfo = NpcExtraInfoOuterClass.NpcExtraInfo.newInstance(); @@ -39,7 +39,7 @@ public final class SceneNpcInfoOuterClass { } /** - * optional uint32 npc_id = 12; + * optional uint32 npc_id = 8; * @return whether the npcId field is set */ public boolean hasNpcId() { @@ -47,7 +47,7 @@ public final class SceneNpcInfoOuterClass { } /** - * optional uint32 npc_id = 12; + * optional uint32 npc_id = 8; * @return this */ public SceneNpcInfo clearNpcId() { @@ -57,7 +57,7 @@ public final class SceneNpcInfoOuterClass { } /** - * optional uint32 npc_id = 12; + * optional uint32 npc_id = 8; * @return the npcId */ public int getNpcId() { @@ -65,7 +65,7 @@ public final class SceneNpcInfoOuterClass { } /** - * optional uint32 npc_id = 12; + * optional uint32 npc_id = 8; * @param value the npcId to set * @return this */ @@ -76,7 +76,7 @@ public final class SceneNpcInfoOuterClass { } /** - * optional .NpcExtraInfo extra_info = 13; + * optional .NpcExtraInfo extra_info = 4; * @return whether the extraInfo field is set */ public boolean hasExtraInfo() { @@ -84,7 +84,7 @@ public final class SceneNpcInfoOuterClass { } /** - * optional .NpcExtraInfo extra_info = 13; + * optional .NpcExtraInfo extra_info = 4; * @return this */ public SceneNpcInfo clearExtraInfo() { @@ -94,7 +94,7 @@ public final class SceneNpcInfoOuterClass { } /** - * optional .NpcExtraInfo extra_info = 13; + * optional .NpcExtraInfo extra_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 +108,7 @@ public final class SceneNpcInfoOuterClass { } /** - * optional .NpcExtraInfo extra_info = 13; + * optional .NpcExtraInfo extra_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 @@ -122,7 +122,7 @@ public final class SceneNpcInfoOuterClass { } /** - * optional .NpcExtraInfo extra_info = 13; + * optional .NpcExtraInfo extra_info = 4; * @param value the extraInfo to set * @return this */ @@ -198,11 +198,11 @@ public final class SceneNpcInfoOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 64); output.writeUInt32NoTag(npcId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 106); + output.writeRawByte((byte) 34); output.writeMessageNoTag(extraInfo); } } @@ -226,16 +226,16 @@ public final class SceneNpcInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 96: { + case 64: { // npcId npcId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 106) { + if (tag != 34) { break; } } - case 106: { + case 34: { // 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 29d720d..06d5897 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneNpcMonsterInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneNpcMonsterInfoOuterClass.java @@ -19,20 +19,20 @@ public final class SceneNpcMonsterInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 world_level = 4; - */ - private int worldLevel; - - /** - * optional uint32 event_id = 7; + * optional uint32 event_id = 3; */ private int eventId; /** - * optional uint32 monster_id = 8; + * optional uint32 monster_id = 6; */ private int monsterId; + /** + * optional uint32 world_level = 10; + */ + private int worldLevel; + private SceneNpcMonsterInfo() { } @@ -44,62 +44,25 @@ public final class SceneNpcMonsterInfoOuterClass { } /** - * optional uint32 world_level = 4; - * @return whether the worldLevel field is set + * optional uint32 event_id = 3; + * @return whether the eventId field is set */ - public boolean hasWorldLevel() { + public boolean hasEventId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 world_level = 4; - * @return this - */ - public SceneNpcMonsterInfo clearWorldLevel() { - bitField0_ &= ~0x00000001; - worldLevel = 0; - return this; - } - - /** - * optional uint32 world_level = 4; - * @return the worldLevel - */ - public int getWorldLevel() { - return worldLevel; - } - - /** - * optional uint32 world_level = 4; - * @param value the worldLevel to set - * @return this - */ - public SceneNpcMonsterInfo setWorldLevel(final int value) { - bitField0_ |= 0x00000001; - worldLevel = value; - return this; - } - - /** - * optional uint32 event_id = 7; - * @return whether the eventId field is set - */ - public boolean hasEventId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 event_id = 7; + * optional uint32 event_id = 3; * @return this */ public SceneNpcMonsterInfo clearEventId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; eventId = 0; return this; } /** - * optional uint32 event_id = 7; + * optional uint32 event_id = 3; * @return the eventId */ public int getEventId() { @@ -107,36 +70,36 @@ public final class SceneNpcMonsterInfoOuterClass { } /** - * optional uint32 event_id = 7; + * optional uint32 event_id = 3; * @param value the eventId to set * @return this */ public SceneNpcMonsterInfo setEventId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; eventId = value; return this; } /** - * optional uint32 monster_id = 8; + * optional uint32 monster_id = 6; * @return whether the monsterId field is set */ public boolean hasMonsterId() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 monster_id = 8; + * optional uint32 monster_id = 6; * @return this */ public SceneNpcMonsterInfo clearMonsterId() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; monsterId = 0; return this; } /** - * optional uint32 monster_id = 8; + * optional uint32 monster_id = 6; * @return the monsterId */ public int getMonsterId() { @@ -144,24 +107,61 @@ public final class SceneNpcMonsterInfoOuterClass { } /** - * optional uint32 monster_id = 8; + * optional uint32 monster_id = 6; * @param value the monsterId to set * @return this */ public SceneNpcMonsterInfo setMonsterId(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; monsterId = value; return this; } + /** + * optional uint32 world_level = 10; + * @return whether the worldLevel field is set + */ + public boolean hasWorldLevel() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 world_level = 10; + * @return this + */ + public SceneNpcMonsterInfo clearWorldLevel() { + bitField0_ &= ~0x00000004; + worldLevel = 0; + return this; + } + + /** + * optional uint32 world_level = 10; + * @return the worldLevel + */ + public int getWorldLevel() { + return worldLevel; + } + + /** + * optional uint32 world_level = 10; + * @param value the worldLevel to set + * @return this + */ + public SceneNpcMonsterInfo setWorldLevel(final int value) { + bitField0_ |= 0x00000004; + worldLevel = value; + return this; + } + @Override public SceneNpcMonsterInfo copyFrom(final SceneNpcMonsterInfo other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - worldLevel = other.worldLevel; eventId = other.eventId; monsterId = other.monsterId; + worldLevel = other.worldLevel; } return this; } @@ -172,15 +172,15 @@ public final class SceneNpcMonsterInfoOuterClass { return this; } cachedSize = -1; - if (other.hasWorldLevel()) { - setWorldLevel(other.worldLevel); - } if (other.hasEventId()) { setEventId(other.eventId); } if (other.hasMonsterId()) { setMonsterId(other.monsterId); } + if (other.hasWorldLevel()) { + setWorldLevel(other.worldLevel); + } return this; } @@ -191,9 +191,9 @@ public final class SceneNpcMonsterInfoOuterClass { } cachedSize = -1; bitField0_ = 0; - worldLevel = 0; eventId = 0; monsterId = 0; + worldLevel = 0; return this; } @@ -217,39 +217,39 @@ public final class SceneNpcMonsterInfoOuterClass { } SceneNpcMonsterInfo other = (SceneNpcMonsterInfo) o; return bitField0_ == other.bitField0_ - && (!hasWorldLevel() || worldLevel == other.worldLevel) && (!hasEventId() || eventId == other.eventId) - && (!hasMonsterId() || monsterId == other.monsterId); + && (!hasMonsterId() || monsterId == other.monsterId) + && (!hasWorldLevel() || worldLevel == other.worldLevel); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 32); - output.writeUInt32NoTag(worldLevel); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 24); output.writeUInt32NoTag(eventId); } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 64); + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 48); output.writeUInt32NoTag(monsterId); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(worldLevel); + } } @Override protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(worldLevel); - } - if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(eventId); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(monsterId); } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(worldLevel); + } return size; } @@ -260,27 +260,27 @@ public final class SceneNpcMonsterInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 32: { - // worldLevel - worldLevel = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 56) { - break; - } - } - case 56: { + case 24: { // eventId eventId = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 64) { + if (tag != 48) { break; } } - case 64: { + case 48: { // monsterId monsterId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { + // worldLevel + worldLevel = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 0) { @@ -305,14 +305,14 @@ public final class SceneNpcMonsterInfoOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.worldLevel, worldLevel); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.eventId, eventId); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.monsterId, monsterId); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.worldLevel, worldLevel); + } output.endObject(); } @@ -323,24 +323,12 @@ public final class SceneNpcMonsterInfoOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 440007442: - case 1305257111: { - if (input.isAtField(FieldNames.worldLevel)) { - if (!input.trySkipNullValue()) { - worldLevel = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } case -1376502443: case 278118624: { if (input.isAtField(FieldNames.eventId)) { if (!input.trySkipNullValue()) { eventId = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } else { input.skipUnknownField(); @@ -352,6 +340,18 @@ public final class SceneNpcMonsterInfoOuterClass { if (input.isAtField(FieldNames.monsterId)) { if (!input.trySkipNullValue()) { monsterId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 440007442: + case 1305257111: { + if (input.isAtField(FieldNames.worldLevel)) { + if (!input.trySkipNullValue()) { + worldLevel = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -412,11 +412,11 @@ public final class SceneNpcMonsterInfoOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName worldLevel = FieldName.forField("worldLevel", "world_level"); - static final FieldName eventId = FieldName.forField("eventId", "event_id"); static final FieldName monsterId = FieldName.forField("monsterId", "monster_id"); + + static final FieldName worldLevel = FieldName.forField("worldLevel", "world_level"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/ScenePlaneEventScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/ScenePlaneEventScNotifyOuterClass.java index a9c1947..bf90150 100644 --- a/src/generated/main/emu/lunarcore/proto/ScenePlaneEventScNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ScenePlaneEventScNotifyOuterClass.java @@ -19,7 +19,7 @@ public final class ScenePlaneEventScNotifyOuterClass { private static final long serialVersionUID = 0L; /** - * optional .ItemList get_item_list = 8; + * optional .ItemList get_item_list = 1; */ private final ItemListOuterClass.ItemList getItemList = ItemListOuterClass.ItemList.newInstance(); @@ -34,7 +34,7 @@ public final class ScenePlaneEventScNotifyOuterClass { } /** - * optional .ItemList get_item_list = 8; + * optional .ItemList get_item_list = 1; * @return whether the getItemList field is set */ public boolean hasGetItemList() { @@ -42,7 +42,7 @@ public final class ScenePlaneEventScNotifyOuterClass { } /** - * optional .ItemList get_item_list = 8; + * optional .ItemList get_item_list = 1; * @return this */ public ScenePlaneEventScNotify clearGetItemList() { @@ -52,7 +52,7 @@ public final class ScenePlaneEventScNotifyOuterClass { } /** - * optional .ItemList get_item_list = 8; + * optional .ItemList get_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. @@ -66,7 +66,7 @@ public final class ScenePlaneEventScNotifyOuterClass { } /** - * optional .ItemList get_item_list = 8; + * optional .ItemList get_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 @@ -80,7 +80,7 @@ public final class ScenePlaneEventScNotifyOuterClass { } /** - * optional .ItemList get_item_list = 8; + * optional .ItemList get_item_list = 1; * @param value the getItemList to set * @return this */ @@ -150,7 +150,7 @@ public final class ScenePlaneEventScNotifyOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 66); + output.writeRawByte((byte) 10); output.writeMessageNoTag(getItemList); } } @@ -171,7 +171,7 @@ public final class ScenePlaneEventScNotifyOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 66: { + case 10: { // 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 04d7c0b..db1d7ee 100644 --- a/src/generated/main/emu/lunarcore/proto/ScenePropInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ScenePropInfoOuterClass.java @@ -19,27 +19,27 @@ public final class ScenePropInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint64 create_time_ms = 11; + * optional uint64 create_time_ms = 7; */ private long createTimeMs; /** - * optional uint32 prop_id = 1; - */ - private int propId; - - /** - * optional uint32 prop_state = 5; + * optional uint32 prop_state = 1; */ private int propState; /** - * optional uint32 life_time_ms = 6; + * optional uint32 life_time_ms = 11; */ private int lifeTimeMs; /** - * optional .PropExtraInfo extra_info = 15; + * optional uint32 prop_id = 12; + */ + private int propId; + + /** + * optional .PropExtraInfo extra_info = 9; */ private final PropExtraInfoOuterClass.PropExtraInfo extraInfo = PropExtraInfoOuterClass.PropExtraInfo.newInstance(); @@ -54,7 +54,7 @@ public final class ScenePropInfoOuterClass { } /** - * optional uint64 create_time_ms = 11; + * optional uint64 create_time_ms = 7; * @return whether the createTimeMs field is set */ public boolean hasCreateTimeMs() { @@ -62,7 +62,7 @@ public final class ScenePropInfoOuterClass { } /** - * optional uint64 create_time_ms = 11; + * optional uint64 create_time_ms = 7; * @return this */ public ScenePropInfo clearCreateTimeMs() { @@ -72,7 +72,7 @@ public final class ScenePropInfoOuterClass { } /** - * optional uint64 create_time_ms = 11; + * optional uint64 create_time_ms = 7; * @return the createTimeMs */ public long getCreateTimeMs() { @@ -80,7 +80,7 @@ public final class ScenePropInfoOuterClass { } /** - * optional uint64 create_time_ms = 11; + * optional uint64 create_time_ms = 7; * @param value the createTimeMs to set * @return this */ @@ -91,62 +91,25 @@ public final class ScenePropInfoOuterClass { } /** - * optional uint32 prop_id = 1; - * @return whether the propId field is set + * optional uint32 prop_state = 1; + * @return whether the propState field is set */ - public boolean hasPropId() { + public boolean hasPropState() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 prop_id = 1; - * @return this - */ - public ScenePropInfo clearPropId() { - bitField0_ &= ~0x00000002; - propId = 0; - return this; - } - - /** - * optional uint32 prop_id = 1; - * @return the propId - */ - public int getPropId() { - return propId; - } - - /** - * optional uint32 prop_id = 1; - * @param value the propId to set - * @return this - */ - public ScenePropInfo setPropId(final int value) { - bitField0_ |= 0x00000002; - propId = value; - return this; - } - - /** - * optional uint32 prop_state = 5; - * @return whether the propState field is set - */ - public boolean hasPropState() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 prop_state = 5; + * optional uint32 prop_state = 1; * @return this */ public ScenePropInfo clearPropState() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; propState = 0; return this; } /** - * optional uint32 prop_state = 5; + * optional uint32 prop_state = 1; * @return the propState */ public int getPropState() { @@ -154,36 +117,36 @@ public final class ScenePropInfoOuterClass { } /** - * optional uint32 prop_state = 5; + * optional uint32 prop_state = 1; * @param value the propState to set * @return this */ public ScenePropInfo setPropState(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; propState = value; return this; } /** - * optional uint32 life_time_ms = 6; + * optional uint32 life_time_ms = 11; * @return whether the lifeTimeMs field is set */ public boolean hasLifeTimeMs() { - return (bitField0_ & 0x00000008) != 0; + return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 life_time_ms = 6; + * optional uint32 life_time_ms = 11; * @return this */ public ScenePropInfo clearLifeTimeMs() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000004; lifeTimeMs = 0; return this; } /** - * optional uint32 life_time_ms = 6; + * optional uint32 life_time_ms = 11; * @return the lifeTimeMs */ public int getLifeTimeMs() { @@ -191,18 +154,55 @@ public final class ScenePropInfoOuterClass { } /** - * optional uint32 life_time_ms = 6; + * optional uint32 life_time_ms = 11; * @param value the lifeTimeMs to set * @return this */ public ScenePropInfo setLifeTimeMs(final int value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; lifeTimeMs = value; return this; } /** - * optional .PropExtraInfo extra_info = 15; + * optional uint32 prop_id = 12; + * @return whether the propId field is set + */ + public boolean hasPropId() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 prop_id = 12; + * @return this + */ + public ScenePropInfo clearPropId() { + bitField0_ &= ~0x00000008; + propId = 0; + return this; + } + + /** + * optional uint32 prop_id = 12; + * @return the propId + */ + public int getPropId() { + return propId; + } + + /** + * optional uint32 prop_id = 12; + * @param value the propId to set + * @return this + */ + public ScenePropInfo setPropId(final int value) { + bitField0_ |= 0x00000008; + propId = value; + return this; + } + + /** + * optional .PropExtraInfo extra_info = 9; * @return whether the extraInfo field is set */ public boolean hasExtraInfo() { @@ -210,7 +210,7 @@ public final class ScenePropInfoOuterClass { } /** - * optional .PropExtraInfo extra_info = 15; + * optional .PropExtraInfo extra_info = 9; * @return this */ public ScenePropInfo clearExtraInfo() { @@ -220,7 +220,7 @@ public final class ScenePropInfoOuterClass { } /** - * optional .PropExtraInfo extra_info = 15; + * optional .PropExtraInfo extra_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. @@ -234,7 +234,7 @@ public final class ScenePropInfoOuterClass { } /** - * optional .PropExtraInfo extra_info = 15; + * optional .PropExtraInfo extra_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 @@ -248,7 +248,7 @@ public final class ScenePropInfoOuterClass { } /** - * optional .PropExtraInfo extra_info = 15; + * optional .PropExtraInfo extra_info = 9; * @param value the extraInfo to set * @return this */ @@ -264,9 +264,9 @@ public final class ScenePropInfoOuterClass { if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; createTimeMs = other.createTimeMs; - propId = other.propId; propState = other.propState; lifeTimeMs = other.lifeTimeMs; + propId = other.propId; extraInfo.copyFrom(other.extraInfo); } return this; @@ -281,15 +281,15 @@ public final class ScenePropInfoOuterClass { if (other.hasCreateTimeMs()) { setCreateTimeMs(other.createTimeMs); } - if (other.hasPropId()) { - setPropId(other.propId); - } if (other.hasPropState()) { setPropState(other.propState); } if (other.hasLifeTimeMs()) { setLifeTimeMs(other.lifeTimeMs); } + if (other.hasPropId()) { + setPropId(other.propId); + } if (other.hasExtraInfo()) { getMutableExtraInfo().mergeFrom(other.extraInfo); } @@ -304,9 +304,9 @@ public final class ScenePropInfoOuterClass { cachedSize = -1; bitField0_ = 0; createTimeMs = 0L; - propId = 0; propState = 0; lifeTimeMs = 0; + propId = 0; extraInfo.clear(); return this; } @@ -333,32 +333,32 @@ public final class ScenePropInfoOuterClass { ScenePropInfo other = (ScenePropInfo) o; return bitField0_ == other.bitField0_ && (!hasCreateTimeMs() || createTimeMs == other.createTimeMs) - && (!hasPropId() || propId == other.propId) && (!hasPropState() || propState == other.propState) && (!hasLifeTimeMs() || lifeTimeMs == other.lifeTimeMs) + && (!hasPropId() || propId == other.propId) && (!hasExtraInfo() || extraInfo.equals(other.extraInfo)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 56); output.writeUInt64NoTag(createTimeMs); } if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 8); - output.writeUInt32NoTag(propId); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 40); output.writeUInt32NoTag(propState); } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 48); + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 88); output.writeUInt32NoTag(lifeTimeMs); } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(propId); + } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 122); + output.writeRawByte((byte) 74); output.writeMessageNoTag(extraInfo); } } @@ -370,14 +370,14 @@ public final class ScenePropInfoOuterClass { size += 1 + ProtoSink.computeUInt64SizeNoTag(createTimeMs); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(propId); - } - if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(propState); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(lifeTimeMs); } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(propId); + } if ((bitField0_ & 0x00000010) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(extraInfo); } @@ -391,7 +391,7 @@ public final class ScenePropInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 88: { + case 56: { // createTimeMs createTimeMs = input.readUInt64(); bitField0_ |= 0x00000001; @@ -401,33 +401,33 @@ public final class ScenePropInfoOuterClass { } } case 8: { - // propId - propId = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 40) { - break; - } - } - case 40: { // propState propState = input.readUInt32(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 48) { + if (tag != 88) { break; } } - case 48: { + case 88: { // lifeTimeMs lifeTimeMs = input.readUInt32(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 122) { + if (tag != 96) { break; } } - case 122: { + case 96: { + // propId + propId = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 74) { + break; + } + } + case 74: { // extraInfo input.readMessage(extraInfo); bitField0_ |= 0x00000010; @@ -457,14 +457,14 @@ public final class ScenePropInfoOuterClass { output.writeUInt64(FieldNames.createTimeMs, createTimeMs); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.propId, propId); - } - if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.propState, propState); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.lifeTimeMs, lifeTimeMs); } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.propId, propId); + } if ((bitField0_ & 0x00000010) != 0) { output.writeMessage(FieldNames.extraInfo, extraInfo); } @@ -490,24 +490,12 @@ public final class ScenePropInfoOuterClass { } break; } - case -979804194: - case -309137545: { - if (input.isAtField(FieldNames.propId)) { - if (!input.trySkipNullValue()) { - propId = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } case -739191058: case -1096911691: { if (input.isAtField(FieldNames.propState)) { if (!input.trySkipNullValue()) { propState = input.readUInt32(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; } } else { input.skipUnknownField(); @@ -519,6 +507,18 @@ public final class ScenePropInfoOuterClass { if (input.isAtField(FieldNames.lifeTimeMs)) { if (!input.trySkipNullValue()) { lifeTimeMs = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -979804194: + case -309137545: { + if (input.isAtField(FieldNames.propId)) { + if (!input.trySkipNullValue()) { + propId = input.readUInt32(); bitField0_ |= 0x00000008; } } else { @@ -592,12 +592,12 @@ public final class ScenePropInfoOuterClass { static class FieldNames { static final FieldName createTimeMs = FieldName.forField("createTimeMs", "create_time_ms"); - static final FieldName propId = FieldName.forField("propId", "prop_id"); - static final FieldName propState = FieldName.forField("propState", "prop_state"); static final FieldName lifeTimeMs = FieldName.forField("lifeTimeMs", "life_time_ms"); + static final FieldName propId = FieldName.forField("propId", "prop_id"); + 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 4421a05..8edabbd 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneSummonUnitInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneSummonUnitInfoOuterClass.java @@ -25,27 +25,27 @@ public final class SceneSummonUnitInfoOuterClass { private long createTimeMs; /** - * optional uint32 summon_unit_id = 2; + * optional uint32 summon_unit_id = 3; */ private int summonUnitId; /** - * optional uint32 caster_entity_id = 9; - */ - private int casterEntityId; - - /** - * optional uint32 attach_entity_id = 11; + * optional uint32 attach_entity_id = 4; */ private int attachEntityId; /** - * optional sint32 life_time_ms = 8; + * optional uint32 caster_entity_id = 14; + */ + private int casterEntityId; + + /** + * optional sint32 life_time_ms = 6; */ private int lifeTimeMs; /** - * repeated string trigger_name_list = 4; + * repeated string trigger_name_list = 12; */ private final RepeatedString triggerNameList = RepeatedString.newEmptyInstance(); @@ -97,7 +97,7 @@ public final class SceneSummonUnitInfoOuterClass { } /** - * optional uint32 summon_unit_id = 2; + * optional uint32 summon_unit_id = 3; * @return whether the summonUnitId field is set */ public boolean hasSummonUnitId() { @@ -105,7 +105,7 @@ public final class SceneSummonUnitInfoOuterClass { } /** - * optional uint32 summon_unit_id = 2; + * optional uint32 summon_unit_id = 3; * @return this */ public SceneSummonUnitInfo clearSummonUnitId() { @@ -115,7 +115,7 @@ public final class SceneSummonUnitInfoOuterClass { } /** - * optional uint32 summon_unit_id = 2; + * optional uint32 summon_unit_id = 3; * @return the summonUnitId */ public int getSummonUnitId() { @@ -123,7 +123,7 @@ public final class SceneSummonUnitInfoOuterClass { } /** - * optional uint32 summon_unit_id = 2; + * optional uint32 summon_unit_id = 3; * @param value the summonUnitId to set * @return this */ @@ -134,62 +134,25 @@ public final class SceneSummonUnitInfoOuterClass { } /** - * optional uint32 caster_entity_id = 9; - * @return whether the casterEntityId field is set + * optional uint32 attach_entity_id = 4; + * @return whether the attachEntityId field is set */ - public boolean hasCasterEntityId() { + public boolean hasAttachEntityId() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 caster_entity_id = 9; - * @return this - */ - public SceneSummonUnitInfo clearCasterEntityId() { - bitField0_ &= ~0x00000004; - casterEntityId = 0; - return this; - } - - /** - * optional uint32 caster_entity_id = 9; - * @return the casterEntityId - */ - public int getCasterEntityId() { - return casterEntityId; - } - - /** - * optional uint32 caster_entity_id = 9; - * @param value the casterEntityId to set - * @return this - */ - public SceneSummonUnitInfo setCasterEntityId(final int value) { - bitField0_ |= 0x00000004; - casterEntityId = value; - return this; - } - - /** - * optional uint32 attach_entity_id = 11; - * @return whether the attachEntityId field is set - */ - public boolean hasAttachEntityId() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional uint32 attach_entity_id = 11; + * optional uint32 attach_entity_id = 4; * @return this */ public SceneSummonUnitInfo clearAttachEntityId() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000004; attachEntityId = 0; return this; } /** - * optional uint32 attach_entity_id = 11; + * optional uint32 attach_entity_id = 4; * @return the attachEntityId */ public int getAttachEntityId() { @@ -197,18 +160,55 @@ public final class SceneSummonUnitInfoOuterClass { } /** - * optional uint32 attach_entity_id = 11; + * optional uint32 attach_entity_id = 4; * @param value the attachEntityId to set * @return this */ public SceneSummonUnitInfo setAttachEntityId(final int value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; attachEntityId = value; return this; } /** - * optional sint32 life_time_ms = 8; + * optional uint32 caster_entity_id = 14; + * @return whether the casterEntityId field is set + */ + public boolean hasCasterEntityId() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 caster_entity_id = 14; + * @return this + */ + public SceneSummonUnitInfo clearCasterEntityId() { + bitField0_ &= ~0x00000008; + casterEntityId = 0; + return this; + } + + /** + * optional uint32 caster_entity_id = 14; + * @return the casterEntityId + */ + public int getCasterEntityId() { + return casterEntityId; + } + + /** + * optional uint32 caster_entity_id = 14; + * @param value the casterEntityId to set + * @return this + */ + public SceneSummonUnitInfo setCasterEntityId(final int value) { + bitField0_ |= 0x00000008; + casterEntityId = value; + return this; + } + + /** + * optional sint32 life_time_ms = 6; * @return whether the lifeTimeMs field is set */ public boolean hasLifeTimeMs() { @@ -216,7 +216,7 @@ public final class SceneSummonUnitInfoOuterClass { } /** - * optional sint32 life_time_ms = 8; + * optional sint32 life_time_ms = 6; * @return this */ public SceneSummonUnitInfo clearLifeTimeMs() { @@ -226,7 +226,7 @@ public final class SceneSummonUnitInfoOuterClass { } /** - * optional sint32 life_time_ms = 8; + * optional sint32 life_time_ms = 6; * @return the lifeTimeMs */ public int getLifeTimeMs() { @@ -234,7 +234,7 @@ public final class SceneSummonUnitInfoOuterClass { } /** - * optional sint32 life_time_ms = 8; + * optional sint32 life_time_ms = 6; * @param value the lifeTimeMs to set * @return this */ @@ -245,7 +245,7 @@ public final class SceneSummonUnitInfoOuterClass { } /** - * repeated string trigger_name_list = 4; + * repeated string trigger_name_list = 12; * @return whether the triggerNameList field is set */ public boolean hasTriggerNameList() { @@ -253,7 +253,7 @@ public final class SceneSummonUnitInfoOuterClass { } /** - * repeated string trigger_name_list = 4; + * repeated string trigger_name_list = 12; * @return this */ public SceneSummonUnitInfo clearTriggerNameList() { @@ -263,7 +263,7 @@ public final class SceneSummonUnitInfoOuterClass { } /** - * repeated string trigger_name_list = 4; + * repeated string trigger_name_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. @@ -277,7 +277,7 @@ public final class SceneSummonUnitInfoOuterClass { } /** - * repeated string trigger_name_list = 4; + * repeated string trigger_name_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 @@ -291,7 +291,7 @@ public final class SceneSummonUnitInfoOuterClass { } /** - * repeated string trigger_name_list = 4; + * repeated string trigger_name_list = 12; * @param value the triggerNameList to add * @return this */ @@ -302,7 +302,7 @@ public final class SceneSummonUnitInfoOuterClass { } /** - * repeated string trigger_name_list = 4; + * repeated string trigger_name_list = 12; * @param values the triggerNameList to add * @return this */ @@ -319,8 +319,8 @@ public final class SceneSummonUnitInfoOuterClass { bitField0_ = other.bitField0_; createTimeMs = other.createTimeMs; summonUnitId = other.summonUnitId; - casterEntityId = other.casterEntityId; attachEntityId = other.attachEntityId; + casterEntityId = other.casterEntityId; lifeTimeMs = other.lifeTimeMs; triggerNameList.copyFrom(other.triggerNameList); } @@ -339,12 +339,12 @@ public final class SceneSummonUnitInfoOuterClass { if (other.hasSummonUnitId()) { setSummonUnitId(other.summonUnitId); } - if (other.hasCasterEntityId()) { - setCasterEntityId(other.casterEntityId); - } if (other.hasAttachEntityId()) { setAttachEntityId(other.attachEntityId); } + if (other.hasCasterEntityId()) { + setCasterEntityId(other.casterEntityId); + } if (other.hasLifeTimeMs()) { setLifeTimeMs(other.lifeTimeMs); } @@ -363,8 +363,8 @@ public final class SceneSummonUnitInfoOuterClass { bitField0_ = 0; createTimeMs = 0L; summonUnitId = 0; - casterEntityId = 0; attachEntityId = 0; + casterEntityId = 0; lifeTimeMs = 0; triggerNameList.clear(); return this; @@ -393,8 +393,8 @@ public final class SceneSummonUnitInfoOuterClass { return bitField0_ == other.bitField0_ && (!hasCreateTimeMs() || createTimeMs == other.createTimeMs) && (!hasSummonUnitId() || summonUnitId == other.summonUnitId) - && (!hasCasterEntityId() || casterEntityId == other.casterEntityId) && (!hasAttachEntityId() || attachEntityId == other.attachEntityId) + && (!hasCasterEntityId() || casterEntityId == other.casterEntityId) && (!hasLifeTimeMs() || lifeTimeMs == other.lifeTimeMs) && (!hasTriggerNameList() || triggerNameList.equals(other.triggerNameList)); } @@ -406,24 +406,24 @@ public final class SceneSummonUnitInfoOuterClass { output.writeUInt64NoTag(createTimeMs); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 16); + output.writeRawByte((byte) 24); output.writeUInt32NoTag(summonUnitId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 72); - output.writeUInt32NoTag(casterEntityId); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(attachEntityId); } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(casterEntityId); + } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 48); output.writeSInt32NoTag(lifeTimeMs); } if ((bitField0_ & 0x00000020) != 0) { for (int i = 0; i < triggerNameList.length(); i++) { - output.writeRawByte((byte) 34); + output.writeRawByte((byte) 98); output.writeStringNoTag(triggerNameList.get(i)); } } @@ -439,10 +439,10 @@ public final class SceneSummonUnitInfoOuterClass { size += 1 + ProtoSink.computeUInt32SizeNoTag(summonUnitId); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(casterEntityId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(attachEntityId); } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(attachEntityId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(casterEntityId); } if ((bitField0_ & 0x00000010) != 0) { size += 1 + ProtoSink.computeSInt32SizeNoTag(lifeTimeMs); @@ -465,47 +465,47 @@ public final class SceneSummonUnitInfoOuterClass { createTimeMs = input.readUInt64(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 16) { + if (tag != 24) { break; } } - case 16: { + case 24: { // summonUnitId summonUnitId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 72) { + if (tag != 32) { break; } } - case 72: { - // casterEntityId - casterEntityId = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 88) { - break; - } - } - case 88: { + case 32: { // attachEntityId attachEntityId = input.readUInt32(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 64) { + if (tag != 112) { break; } } - case 64: { + case 112: { + // casterEntityId + casterEntityId = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { // lifeTimeMs lifeTimeMs = input.readSInt32(); bitField0_ |= 0x00000010; tag = input.readTag(); - if (tag != 34) { + if (tag != 98) { break; } } - case 34: { + case 98: { // triggerNameList tag = input.readRepeatedString(triggerNameList, tag); bitField0_ |= 0x00000020; @@ -537,10 +537,10 @@ public final class SceneSummonUnitInfoOuterClass { output.writeUInt32(FieldNames.summonUnitId, summonUnitId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.casterEntityId, casterEntityId); + output.writeUInt32(FieldNames.attachEntityId, attachEntityId); } if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.attachEntityId, attachEntityId); + output.writeUInt32(FieldNames.casterEntityId, casterEntityId); } if ((bitField0_ & 0x00000010) != 0) { output.writeSInt32(FieldNames.lifeTimeMs, lifeTimeMs); @@ -582,11 +582,11 @@ public final class SceneSummonUnitInfoOuterClass { } break; } - case -1831162710: - case -1550367068: { - if (input.isAtField(FieldNames.casterEntityId)) { + case -900612669: + case -644975235: { + if (input.isAtField(FieldNames.attachEntityId)) { if (!input.trySkipNullValue()) { - casterEntityId = input.readUInt32(); + attachEntityId = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -594,11 +594,11 @@ public final class SceneSummonUnitInfoOuterClass { } break; } - case -900612669: - case -644975235: { - if (input.isAtField(FieldNames.attachEntityId)) { + case -1831162710: + case -1550367068: { + if (input.isAtField(FieldNames.casterEntityId)) { if (!input.trySkipNullValue()) { - attachEntityId = input.readUInt32(); + casterEntityId = input.readUInt32(); bitField0_ |= 0x00000008; } } else { @@ -687,10 +687,10 @@ public final class SceneSummonUnitInfoOuterClass { 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 casterEntityId = FieldName.forField("casterEntityId", "caster_entity_id"); + static final FieldName lifeTimeMs = FieldName.forField("lifeTimeMs", "life_time_ms"); static final FieldName triggerNameList = FieldName.forField("triggerNameList", "trigger_name_list"); diff --git a/src/generated/main/emu/lunarcore/proto/SearchPlayerCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SearchPlayerCsReqOuterClass.java index 022c084..73de33f 100644 --- a/src/generated/main/emu/lunarcore/proto/SearchPlayerCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SearchPlayerCsReqOuterClass.java @@ -20,7 +20,7 @@ public final class SearchPlayerCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * repeated uint32 search_uid_list = 4; + * repeated uint32 search_uid_list = 5; */ private final RepeatedInt searchUidList = RepeatedInt.newEmptyInstance(); @@ -35,7 +35,7 @@ public final class SearchPlayerCsReqOuterClass { } /** - * repeated uint32 search_uid_list = 4; + * repeated uint32 search_uid_list = 5; * @return whether the searchUidList field is set */ public boolean hasSearchUidList() { @@ -43,7 +43,7 @@ public final class SearchPlayerCsReqOuterClass { } /** - * repeated uint32 search_uid_list = 4; + * repeated uint32 search_uid_list = 5; * @return this */ public SearchPlayerCsReq clearSearchUidList() { @@ -53,7 +53,7 @@ public final class SearchPlayerCsReqOuterClass { } /** - * repeated uint32 search_uid_list = 4; + * repeated uint32 search_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. @@ -67,7 +67,7 @@ public final class SearchPlayerCsReqOuterClass { } /** - * repeated uint32 search_uid_list = 4; + * repeated uint32 search_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 @@ -81,7 +81,7 @@ public final class SearchPlayerCsReqOuterClass { } /** - * repeated uint32 search_uid_list = 4; + * repeated uint32 search_uid_list = 5; * @param value the searchUidList to add * @return this */ @@ -92,7 +92,7 @@ public final class SearchPlayerCsReqOuterClass { } /** - * repeated uint32 search_uid_list = 4; + * repeated uint32 search_uid_list = 5; * @param values the searchUidList to add * @return this */ @@ -163,7 +163,7 @@ public final class SearchPlayerCsReqOuterClass { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { for (int i = 0; i < searchUidList.length(); i++) { - output.writeRawByte((byte) 32); + output.writeRawByte((byte) 40); output.writeUInt32NoTag(searchUidList.array()[i]); } } @@ -185,7 +185,7 @@ public final class SearchPlayerCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 34: { + case 42: { // searchUidList [packed=true] input.readPackedUInt32(searchUidList, tag); bitField0_ |= 0x00000001; @@ -204,7 +204,7 @@ public final class SearchPlayerCsReqOuterClass { tag = input.readTag(); break; } - case 32: { + case 40: { // 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 dfea3aa..0f231e3 100644 --- a/src/generated/main/emu/lunarcore/proto/SearchPlayerScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SearchPlayerScRspOuterClass.java @@ -20,12 +20,12 @@ public final class SearchPlayerScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 1; */ private int retcode; /** - * repeated .SimpleInfo search_result_list = 6; + * repeated .SimpleInfo search_result_list = 15; */ private final RepeatedMessage searchResultList = RepeatedMessage.newEmptyInstance(SimpleInfoOuterClass.SimpleInfo.getFactory()); @@ -40,7 +40,7 @@ public final class SearchPlayerScRspOuterClass { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 1; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -48,7 +48,7 @@ public final class SearchPlayerScRspOuterClass { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 1; * @return this */ public SearchPlayerScRsp clearRetcode() { @@ -58,7 +58,7 @@ public final class SearchPlayerScRspOuterClass { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 1; * @return the retcode */ public int getRetcode() { @@ -66,7 +66,7 @@ public final class SearchPlayerScRspOuterClass { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 1; * @param value the retcode to set * @return this */ @@ -77,7 +77,7 @@ public final class SearchPlayerScRspOuterClass { } /** - * repeated .SimpleInfo search_result_list = 6; + * repeated .SimpleInfo search_result_list = 15; * @return whether the searchResultList field is set */ public boolean hasSearchResultList() { @@ -85,7 +85,7 @@ public final class SearchPlayerScRspOuterClass { } /** - * repeated .SimpleInfo search_result_list = 6; + * repeated .SimpleInfo search_result_list = 15; * @return this */ public SearchPlayerScRsp clearSearchResultList() { @@ -95,7 +95,7 @@ public final class SearchPlayerScRspOuterClass { } /** - * repeated .SimpleInfo search_result_list = 6; + * repeated .SimpleInfo search_result_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 final class SearchPlayerScRspOuterClass { } /** - * repeated .SimpleInfo search_result_list = 6; + * repeated .SimpleInfo search_result_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 final class SearchPlayerScRspOuterClass { } /** - * repeated .SimpleInfo search_result_list = 6; + * repeated .SimpleInfo search_result_list = 15; * @param value the searchResultList to add * @return this */ @@ -134,7 +134,7 @@ public final class SearchPlayerScRspOuterClass { } /** - * repeated .SimpleInfo search_result_list = 6; + * repeated .SimpleInfo search_result_list = 15; * @param values the searchResultList to add * @return this */ @@ -211,12 +211,12 @@ public final class SearchPlayerScRspOuterClass { @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) { for (int i = 0; i < searchResultList.length(); i++) { - output.writeRawByte((byte) 50); + output.writeRawByte((byte) 122); output.writeMessageNoTag(searchResultList.get(i)); } } @@ -241,16 +241,16 @@ public final class SearchPlayerScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 120: { + case 8: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 50) { + if (tag != 122) { break; } } - case 50: { + case 122: { // searchResultList tag = input.readRepeatedMessage(searchResultList, tag); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/SelectChatBubbleCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SelectChatBubbleCsReqOuterClass.java index fe885d0..6884462 100644 --- a/src/generated/main/emu/lunarcore/proto/SelectChatBubbleCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SelectChatBubbleCsReqOuterClass.java @@ -19,7 +19,7 @@ public final class SelectChatBubbleCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 bubble_id = 10; + * optional uint32 bubble_id = 2; */ private int bubbleId; @@ -34,7 +34,7 @@ public final class SelectChatBubbleCsReqOuterClass { } /** - * optional uint32 bubble_id = 10; + * optional uint32 bubble_id = 2; * @return whether the bubbleId field is set */ public boolean hasBubbleId() { @@ -42,7 +42,7 @@ public final class SelectChatBubbleCsReqOuterClass { } /** - * optional uint32 bubble_id = 10; + * optional uint32 bubble_id = 2; * @return this */ public SelectChatBubbleCsReq clearBubbleId() { @@ -52,7 +52,7 @@ public final class SelectChatBubbleCsReqOuterClass { } /** - * optional uint32 bubble_id = 10; + * optional uint32 bubble_id = 2; * @return the bubbleId */ public int getBubbleId() { @@ -60,7 +60,7 @@ public final class SelectChatBubbleCsReqOuterClass { } /** - * optional uint32 bubble_id = 10; + * optional uint32 bubble_id = 2; * @param value the bubbleId to set * @return this */ @@ -129,7 +129,7 @@ public final class SelectChatBubbleCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 16); output.writeUInt32NoTag(bubbleId); } } @@ -150,7 +150,7 @@ public final class SelectChatBubbleCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 80: { + case 16: { // 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 712776e..fbd33f1 100644 --- a/src/generated/main/emu/lunarcore/proto/SelectChatBubbleScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SelectChatBubbleScRspOuterClass.java @@ -19,15 +19,15 @@ public final class SelectChatBubbleScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 cur_chat_bubble = 5; - */ - private int curChatBubble; - - /** - * optional uint32 retcode = 6; + * optional uint32 retcode = 11; */ private int retcode; + /** + * optional uint32 cur_chat_bubble = 15; + */ + private int curChatBubble; + private SelectChatBubbleScRsp() { } @@ -39,62 +39,25 @@ public final class SelectChatBubbleScRspOuterClass { } /** - * optional uint32 cur_chat_bubble = 5; - * @return whether the curChatBubble field is set + * optional uint32 retcode = 11; + * @return whether the retcode field is set */ - public boolean hasCurChatBubble() { + public boolean hasRetcode() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 cur_chat_bubble = 5; - * @return this - */ - public SelectChatBubbleScRsp clearCurChatBubble() { - bitField0_ &= ~0x00000001; - curChatBubble = 0; - return this; - } - - /** - * optional uint32 cur_chat_bubble = 5; - * @return the curChatBubble - */ - public int getCurChatBubble() { - return curChatBubble; - } - - /** - * optional uint32 cur_chat_bubble = 5; - * @param value the curChatBubble to set - * @return this - */ - public SelectChatBubbleScRsp setCurChatBubble(final int value) { - bitField0_ |= 0x00000001; - curChatBubble = value; - return this; - } - - /** - * optional uint32 retcode = 6; - * @return whether the retcode field is set - */ - public boolean hasRetcode() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 retcode = 6; + * optional uint32 retcode = 11; * @return this */ public SelectChatBubbleScRsp clearRetcode() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; retcode = 0; return this; } /** - * optional uint32 retcode = 6; + * optional uint32 retcode = 11; * @return the retcode */ public int getRetcode() { @@ -102,23 +65,60 @@ public final class SelectChatBubbleScRspOuterClass { } /** - * optional uint32 retcode = 6; + * optional uint32 retcode = 11; * @param value the retcode to set * @return this */ public SelectChatBubbleScRsp setRetcode(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; retcode = value; return this; } + /** + * optional uint32 cur_chat_bubble = 15; + * @return whether the curChatBubble field is set + */ + public boolean hasCurChatBubble() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 cur_chat_bubble = 15; + * @return this + */ + public SelectChatBubbleScRsp clearCurChatBubble() { + bitField0_ &= ~0x00000002; + curChatBubble = 0; + return this; + } + + /** + * optional uint32 cur_chat_bubble = 15; + * @return the curChatBubble + */ + public int getCurChatBubble() { + return curChatBubble; + } + + /** + * optional uint32 cur_chat_bubble = 15; + * @param value the curChatBubble to set + * @return this + */ + public SelectChatBubbleScRsp setCurChatBubble(final int value) { + bitField0_ |= 0x00000002; + curChatBubble = value; + return this; + } + @Override public SelectChatBubbleScRsp copyFrom(final SelectChatBubbleScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - curChatBubble = other.curChatBubble; retcode = other.retcode; + curChatBubble = other.curChatBubble; } return this; } @@ -129,12 +129,12 @@ public final class SelectChatBubbleScRspOuterClass { return this; } cachedSize = -1; - if (other.hasCurChatBubble()) { - setCurChatBubble(other.curChatBubble); - } if (other.hasRetcode()) { setRetcode(other.retcode); } + if (other.hasCurChatBubble()) { + setCurChatBubble(other.curChatBubble); + } return this; } @@ -145,8 +145,8 @@ public final class SelectChatBubbleScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - curChatBubble = 0; retcode = 0; + curChatBubble = 0; return this; } @@ -170,19 +170,19 @@ public final class SelectChatBubbleScRspOuterClass { } SelectChatBubbleScRsp other = (SelectChatBubbleScRsp) o; return bitField0_ == other.bitField0_ - && (!hasCurChatBubble() || curChatBubble == other.curChatBubble) - && (!hasRetcode() || retcode == other.retcode); + && (!hasRetcode() || retcode == other.retcode) + && (!hasCurChatBubble() || curChatBubble == other.curChatBubble); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); - output.writeUInt32NoTag(curChatBubble); + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 48); - output.writeUInt32NoTag(retcode); + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(curChatBubble); } } @@ -190,10 +190,10 @@ public final class SelectChatBubbleScRspOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(curChatBubble); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(curChatBubble); } return size; } @@ -205,18 +205,18 @@ public final class SelectChatBubbleScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 40: { - // curChatBubble - curChatBubble = input.readUInt32(); + case 88: { + // retcode + retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 48) { + if (tag != 120) { break; } } - case 48: { - // retcode - retcode = input.readUInt32(); + case 120: { + // curChatBubble + curChatBubble = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { @@ -241,10 +241,10 @@ public final class SelectChatBubbleScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.curChatBubble, curChatBubble); + output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.curChatBubble, curChatBubble); } output.endObject(); } @@ -256,11 +256,10 @@ public final class SelectChatBubbleScRspOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 94167140: - case 1828957140: { - if (input.isAtField(FieldNames.curChatBubble)) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { - curChatBubble = input.readUInt32(); + retcode = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -268,10 +267,11 @@ public final class SelectChatBubbleScRspOuterClass { } break; } - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { + case 94167140: + case 1828957140: { + if (input.isAtField(FieldNames.curChatBubble)) { if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); + curChatBubble = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -332,9 +332,9 @@ public final class SelectChatBubbleScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName curChatBubble = FieldName.forField("curChatBubble", "cur_chat_bubble"); - static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName curChatBubble = FieldName.forField("curChatBubble", "cur_chat_bubble"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/SelectPhoneThemeCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SelectPhoneThemeCsReqOuterClass.java index 9333a04..ed0335b 100644 --- a/src/generated/main/emu/lunarcore/proto/SelectPhoneThemeCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SelectPhoneThemeCsReqOuterClass.java @@ -19,7 +19,7 @@ public final class SelectPhoneThemeCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 theme_id = 3; + * optional uint32 theme_id = 12; */ private int themeId; @@ -34,7 +34,7 @@ public final class SelectPhoneThemeCsReqOuterClass { } /** - * optional uint32 theme_id = 3; + * optional uint32 theme_id = 12; * @return whether the themeId field is set */ public boolean hasThemeId() { @@ -42,7 +42,7 @@ public final class SelectPhoneThemeCsReqOuterClass { } /** - * optional uint32 theme_id = 3; + * optional uint32 theme_id = 12; * @return this */ public SelectPhoneThemeCsReq clearThemeId() { @@ -52,7 +52,7 @@ public final class SelectPhoneThemeCsReqOuterClass { } /** - * optional uint32 theme_id = 3; + * optional uint32 theme_id = 12; * @return the themeId */ public int getThemeId() { @@ -60,7 +60,7 @@ public final class SelectPhoneThemeCsReqOuterClass { } /** - * optional uint32 theme_id = 3; + * optional uint32 theme_id = 12; * @param value the themeId to set * @return this */ @@ -129,7 +129,7 @@ public final class SelectPhoneThemeCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 96); output.writeUInt32NoTag(themeId); } } @@ -150,7 +150,7 @@ public final class SelectPhoneThemeCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 24: { + case 96: { // 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 b8e7a4c..88b52ed 100644 --- a/src/generated/main/emu/lunarcore/proto/SelectPhoneThemeScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SelectPhoneThemeScRspOuterClass.java @@ -19,12 +19,12 @@ public final class SelectPhoneThemeScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 cur_phone_theme = 5; + * optional uint32 cur_phone_theme = 2; */ private int curPhoneTheme; /** - * optional uint32 retcode = 6; + * optional uint32 retcode = 14; */ private int retcode; @@ -39,7 +39,7 @@ public final class SelectPhoneThemeScRspOuterClass { } /** - * optional uint32 cur_phone_theme = 5; + * optional uint32 cur_phone_theme = 2; * @return whether the curPhoneTheme field is set */ public boolean hasCurPhoneTheme() { @@ -47,7 +47,7 @@ public final class SelectPhoneThemeScRspOuterClass { } /** - * optional uint32 cur_phone_theme = 5; + * optional uint32 cur_phone_theme = 2; * @return this */ public SelectPhoneThemeScRsp clearCurPhoneTheme() { @@ -57,7 +57,7 @@ public final class SelectPhoneThemeScRspOuterClass { } /** - * optional uint32 cur_phone_theme = 5; + * optional uint32 cur_phone_theme = 2; * @return the curPhoneTheme */ public int getCurPhoneTheme() { @@ -65,7 +65,7 @@ public final class SelectPhoneThemeScRspOuterClass { } /** - * optional uint32 cur_phone_theme = 5; + * optional uint32 cur_phone_theme = 2; * @param value the curPhoneTheme to set * @return this */ @@ -76,7 +76,7 @@ public final class SelectPhoneThemeScRspOuterClass { } /** - * optional uint32 retcode = 6; + * optional uint32 retcode = 14; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -84,7 +84,7 @@ public final class SelectPhoneThemeScRspOuterClass { } /** - * optional uint32 retcode = 6; + * optional uint32 retcode = 14; * @return this */ public SelectPhoneThemeScRsp clearRetcode() { @@ -94,7 +94,7 @@ public final class SelectPhoneThemeScRspOuterClass { } /** - * optional uint32 retcode = 6; + * optional uint32 retcode = 14; * @return the retcode */ public int getRetcode() { @@ -102,7 +102,7 @@ public final class SelectPhoneThemeScRspOuterClass { } /** - * optional uint32 retcode = 6; + * optional uint32 retcode = 14; * @param value the retcode to set * @return this */ @@ -177,11 +177,11 @@ public final class SelectPhoneThemeScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 16); output.writeUInt32NoTag(curPhoneTheme); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 112); output.writeUInt32NoTag(retcode); } } @@ -205,16 +205,16 @@ public final class SelectPhoneThemeScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 40: { + case 16: { // curPhoneTheme curPhoneTheme = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 48) { + if (tag != 112) { break; } } - case 48: { + case 112: { // 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 7a59f57..c85d3ab 100644 --- a/src/generated/main/emu/lunarcore/proto/SellItemCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SellItemCsReqOuterClass.java @@ -19,7 +19,7 @@ public final class SellItemCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional .ItemCostList item_cost_list = 4; + * optional .ItemCostList item_cost_list = 8; */ private final ItemCostListOuterClass.ItemCostList itemCostList = ItemCostListOuterClass.ItemCostList.newInstance(); @@ -34,7 +34,7 @@ public final class SellItemCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 4; + * optional .ItemCostList item_cost_list = 8; * @return whether the itemCostList field is set */ public boolean hasItemCostList() { @@ -42,7 +42,7 @@ public final class SellItemCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 4; + * optional .ItemCostList item_cost_list = 8; * @return this */ public SellItemCsReq clearItemCostList() { @@ -52,7 +52,7 @@ public final class SellItemCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 4; + * 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. @@ -66,7 +66,7 @@ public final class SellItemCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 4; + * 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 @@ -80,7 +80,7 @@ public final class SellItemCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 4; + * optional .ItemCostList item_cost_list = 8; * @param value the itemCostList to set * @return this */ @@ -150,7 +150,7 @@ public final class SellItemCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 34); + output.writeRawByte((byte) 66); output.writeMessageNoTag(itemCostList); } } @@ -171,7 +171,7 @@ public final class SellItemCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 34: { + case 66: { // 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 2c0e40d..1dbe2e5 100644 --- a/src/generated/main/emu/lunarcore/proto/SellItemScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SellItemScRspOuterClass.java @@ -19,12 +19,12 @@ public final class SellItemScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 1; */ private int retcode; /** - * optional .ItemList return_item_list = 15; + * optional .ItemList return_item_list = 2; */ private final ItemListOuterClass.ItemList returnItemList = ItemListOuterClass.ItemList.newInstance(); @@ -39,7 +39,7 @@ public final class SellItemScRspOuterClass { } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 1; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -47,7 +47,7 @@ public final class SellItemScRspOuterClass { } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 1; * @return this */ public SellItemScRsp clearRetcode() { @@ -57,7 +57,7 @@ public final class SellItemScRspOuterClass { } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 1; * @return the retcode */ public int getRetcode() { @@ -65,7 +65,7 @@ public final class SellItemScRspOuterClass { } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 1; * @param value the retcode to set * @return this */ @@ -76,7 +76,7 @@ public final class SellItemScRspOuterClass { } /** - * optional .ItemList return_item_list = 15; + * optional .ItemList return_item_list = 2; * @return whether the returnItemList field is set */ public boolean hasReturnItemList() { @@ -84,7 +84,7 @@ public final class SellItemScRspOuterClass { } /** - * optional .ItemList return_item_list = 15; + * optional .ItemList return_item_list = 2; * @return this */ public SellItemScRsp clearReturnItemList() { @@ -94,7 +94,7 @@ public final class SellItemScRspOuterClass { } /** - * 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. @@ -108,7 +108,7 @@ public final class SellItemScRspOuterClass { } /** - * 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 @@ -122,7 +122,7 @@ public final class SellItemScRspOuterClass { } /** - * optional .ItemList return_item_list = 15; + * optional .ItemList return_item_list = 2; * @param value the returnItemList to set * @return this */ @@ -198,11 +198,11 @@ public final class SellItemScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 8); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 122); + output.writeRawByte((byte) 18); output.writeMessageNoTag(returnItemList); } } @@ -226,16 +226,16 @@ public final class SellItemScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 40: { + case 8: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 122) { + if (tag != 18) { break; } } - case 122: { + case 18: { // 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 c03ee1b..60c59f0 100644 --- a/src/generated/main/emu/lunarcore/proto/SendMsgCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SendMsgCsReqOuterClass.java @@ -25,23 +25,23 @@ public final class SendMsgCsReqOuterClass { */ private int emote; + /** + * optional .MsgType msg_type = 5; + */ + private int msgType; + /** * optional .ChatType chat_type = 6; */ private int chatType; /** - * optional .MsgType msg_type = 10; - */ - private int msgType; - - /** - * optional string text = 8; + * optional string text = 12; */ private final Utf8String text = Utf8String.newEmptyInstance(); /** - * repeated uint32 to_uid_list = 2; + * repeated uint32 to_uid_list = 4; */ private final RepeatedInt toUidList = RepeatedInt.newEmptyInstance(); @@ -92,12 +92,74 @@ public final class SendMsgCsReqOuterClass { return this; } + /** + * optional .MsgType msg_type = 5; + * @return whether the msgType field is set + */ + public boolean hasMsgType() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .MsgType msg_type = 5; + * @return this + */ + public SendMsgCsReq clearMsgType() { + bitField0_ &= ~0x00000002; + msgType = 0; + return this; + } + + /** + * optional .MsgType msg_type = 5; + * @return the msgType + */ + public MsgTypeOuterClass.MsgType getMsgType() { + return MsgTypeOuterClass.MsgType.forNumber(msgType); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link SendMsgCsReq#getMsgType()}.getNumber(). + * + * @return numeric wire representation + */ + public int getMsgTypeValue() { + return msgType; + } + + /** + * 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 MsgTypeOuterClass.MsgType}. Setting an invalid value + * can cause {@link SendMsgCsReq#getMsgType()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public SendMsgCsReq setMsgTypeValue(final int value) { + bitField0_ |= 0x00000002; + msgType = value; + return this; + } + + /** + * optional .MsgType msg_type = 5; + * @param value the msgType to set + * @return this + */ + public SendMsgCsReq setMsgType(final MsgTypeOuterClass.MsgType value) { + bitField0_ |= 0x00000002; + msgType = value.getNumber(); + return this; + } + /** * optional .ChatType chat_type = 6; * @return whether the chatType field is set */ public boolean hasChatType() { - return (bitField0_ & 0x00000002) != 0; + return (bitField0_ & 0x00000004) != 0; } /** @@ -105,7 +167,7 @@ public final class SendMsgCsReqOuterClass { * @return this */ public SendMsgCsReq clearChatType() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000004; chatType = 0; return this; } @@ -138,7 +200,7 @@ public final class SendMsgCsReqOuterClass { * @return this */ public SendMsgCsReq setChatTypeValue(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; chatType = value; return this; } @@ -149,75 +211,13 @@ public final class SendMsgCsReqOuterClass { * @return this */ public SendMsgCsReq setChatType(final ChatTypeOuterClass.ChatType value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; chatType = value.getNumber(); return this; } /** - * optional .MsgType msg_type = 10; - * @return whether the msgType field is set - */ - public boolean hasMsgType() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional .MsgType msg_type = 10; - * @return this - */ - public SendMsgCsReq clearMsgType() { - bitField0_ &= ~0x00000004; - msgType = 0; - return this; - } - - /** - * optional .MsgType msg_type = 10; - * @return the msgType - */ - public MsgTypeOuterClass.MsgType getMsgType() { - return MsgTypeOuterClass.MsgType.forNumber(msgType); - } - - /** - * Gets the value of the internal enum store. The result is - * equivalent to {@link SendMsgCsReq#getMsgType()}.getNumber(). - * - * @return numeric wire representation - */ - public int getMsgTypeValue() { - return msgType; - } - - /** - * 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 MsgTypeOuterClass.MsgType}. Setting an invalid value - * can cause {@link SendMsgCsReq#getMsgType()} to return null - * - * @param value the numeric wire value to set - * @return this - */ - public SendMsgCsReq setMsgTypeValue(final int value) { - bitField0_ |= 0x00000004; - msgType = value; - return this; - } - - /** - * optional .MsgType msg_type = 10; - * @param value the msgType to set - * @return this - */ - public SendMsgCsReq setMsgType(final MsgTypeOuterClass.MsgType value) { - bitField0_ |= 0x00000004; - msgType = value.getNumber(); - return this; - } - - /** - * optional string text = 8; + * optional string text = 12; * @return whether the text field is set */ public boolean hasText() { @@ -225,7 +225,7 @@ public final class SendMsgCsReqOuterClass { } /** - * optional string text = 8; + * optional string text = 12; * @return this */ public SendMsgCsReq clearText() { @@ -235,7 +235,7 @@ public final class SendMsgCsReqOuterClass { } /** - * optional string text = 8; + * optional string text = 12; * @return the text */ public String getText() { @@ -243,7 +243,7 @@ public final class SendMsgCsReqOuterClass { } /** - * optional string text = 8; + * optional string text = 12; * @return internal {@code Utf8String} representation of text for reading */ public Utf8String getTextBytes() { @@ -251,7 +251,7 @@ public final class SendMsgCsReqOuterClass { } /** - * optional string text = 8; + * optional string text = 12; * @return internal {@code Utf8String} representation of text for modifications */ public Utf8String getMutableTextBytes() { @@ -260,7 +260,7 @@ public final class SendMsgCsReqOuterClass { } /** - * optional string text = 8; + * optional string text = 12; * @param value the text to set * @return this */ @@ -271,7 +271,7 @@ public final class SendMsgCsReqOuterClass { } /** - * optional string text = 8; + * optional string text = 12; * @param value the text to set * @return this */ @@ -282,7 +282,7 @@ public final class SendMsgCsReqOuterClass { } /** - * repeated uint32 to_uid_list = 2; + * repeated uint32 to_uid_list = 4; * @return whether the toUidList field is set */ public boolean hasToUidList() { @@ -290,7 +290,7 @@ public final class SendMsgCsReqOuterClass { } /** - * repeated uint32 to_uid_list = 2; + * repeated uint32 to_uid_list = 4; * @return this */ public SendMsgCsReq clearToUidList() { @@ -300,7 +300,7 @@ public final class SendMsgCsReqOuterClass { } /** - * repeated uint32 to_uid_list = 2; + * repeated uint32 to_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. @@ -314,7 +314,7 @@ public final class SendMsgCsReqOuterClass { } /** - * repeated uint32 to_uid_list = 2; + * repeated uint32 to_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 @@ -328,7 +328,7 @@ public final class SendMsgCsReqOuterClass { } /** - * repeated uint32 to_uid_list = 2; + * repeated uint32 to_uid_list = 4; * @param value the toUidList to add * @return this */ @@ -339,7 +339,7 @@ public final class SendMsgCsReqOuterClass { } /** - * repeated uint32 to_uid_list = 2; + * repeated uint32 to_uid_list = 4; * @param values the toUidList to add * @return this */ @@ -355,8 +355,8 @@ public final class SendMsgCsReqOuterClass { if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; emote = other.emote; - chatType = other.chatType; msgType = other.msgType; + chatType = other.chatType; text.copyFrom(other.text); toUidList.copyFrom(other.toUidList); } @@ -372,12 +372,12 @@ public final class SendMsgCsReqOuterClass { if (other.hasEmote()) { setEmote(other.emote); } - if (other.hasChatType()) { - setChatTypeValue(other.chatType); - } if (other.hasMsgType()) { setMsgTypeValue(other.msgType); } + if (other.hasChatType()) { + setChatTypeValue(other.chatType); + } if (other.hasText()) { getMutableTextBytes().copyFrom(other.text); } @@ -395,8 +395,8 @@ public final class SendMsgCsReqOuterClass { cachedSize = -1; bitField0_ = 0; emote = 0; - chatType = 0; msgType = 0; + chatType = 0; text.clear(); toUidList.clear(); return this; @@ -425,8 +425,8 @@ public final class SendMsgCsReqOuterClass { SendMsgCsReq other = (SendMsgCsReq) o; return bitField0_ == other.bitField0_ && (!hasEmote() || emote == other.emote) - && (!hasChatType() || chatType == other.chatType) && (!hasMsgType() || msgType == other.msgType) + && (!hasChatType() || chatType == other.chatType) && (!hasText() || text.equals(other.text)) && (!hasToUidList() || toUidList.equals(other.toUidList)); } @@ -438,20 +438,20 @@ public final class SendMsgCsReqOuterClass { output.writeUInt32NoTag(emote); } if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 40); + output.writeEnumNoTag(msgType); + } + if ((bitField0_ & 0x00000004) != 0) { output.writeRawByte((byte) 48); output.writeEnumNoTag(chatType); } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 80); - output.writeEnumNoTag(msgType); - } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 66); + output.writeRawByte((byte) 98); output.writeStringNoTag(text); } if ((bitField0_ & 0x00000010) != 0) { for (int i = 0; i < toUidList.length(); i++) { - output.writeRawByte((byte) 16); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(toUidList.array()[i]); } } @@ -464,10 +464,10 @@ public final class SendMsgCsReqOuterClass { size += 1 + ProtoSink.computeUInt32SizeNoTag(emote); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeEnumSizeNoTag(chatType); + size += 1 + ProtoSink.computeEnumSizeNoTag(msgType); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeEnumSizeNoTag(msgType); + size += 1 + ProtoSink.computeEnumSizeNoTag(chatType); } if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeStringSizeNoTag(text); @@ -490,6 +490,18 @@ public final class SendMsgCsReqOuterClass { emote = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // msgType + final int value = input.readInt32(); + if (MsgTypeOuterClass.MsgType.forNumber(value) != null) { + msgType = value; + bitField0_ |= 0x00000002; + } + tag = input.readTag(); if (tag != 48) { break; } @@ -499,35 +511,23 @@ public final class SendMsgCsReqOuterClass { final int value = input.readInt32(); if (ChatTypeOuterClass.ChatType.forNumber(value) != null) { chatType = value; - bitField0_ |= 0x00000002; - } - tag = input.readTag(); - if (tag != 80) { - break; - } - } - case 80: { - // msgType - final int value = input.readInt32(); - if (MsgTypeOuterClass.MsgType.forNumber(value) != null) { - msgType = value; bitField0_ |= 0x00000004; } tag = input.readTag(); - if (tag != 66) { + if (tag != 98) { break; } } - case 66: { + case 98: { // text input.readString(text); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 18) { + if (tag != 34) { break; } } - case 18: { + case 34: { // toUidList [packed=true] input.readPackedUInt32(toUidList, tag); bitField0_ |= 0x00000010; @@ -546,7 +546,7 @@ public final class SendMsgCsReqOuterClass { tag = input.readTag(); break; } - case 16: { + case 32: { // toUidList [packed=false] tag = input.readRepeatedUInt32(toUidList, tag); bitField0_ |= 0x00000010; @@ -563,10 +563,10 @@ public final class SendMsgCsReqOuterClass { output.writeUInt32(FieldNames.emote, emote); } if ((bitField0_ & 0x00000002) != 0) { - output.writeEnum(FieldNames.chatType, chatType, ChatTypeOuterClass.ChatType.converter()); + output.writeEnum(FieldNames.msgType, msgType, MsgTypeOuterClass.MsgType.converter()); } if ((bitField0_ & 0x00000004) != 0) { - output.writeEnum(FieldNames.msgType, msgType, MsgTypeOuterClass.MsgType.converter()); + output.writeEnum(FieldNames.chatType, chatType, ChatTypeOuterClass.ChatType.converter()); } if ((bitField0_ & 0x00000008) != 0) { output.writeString(FieldNames.text, text); @@ -595,13 +595,13 @@ public final class SendMsgCsReqOuterClass { } break; } - case 1437412018: - case 1620118465: { - if (input.isAtField(FieldNames.chatType)) { + case 1343750747: + case -1283380936: { + if (input.isAtField(FieldNames.msgType)) { if (!input.trySkipNullValue()) { - final ChatTypeOuterClass.ChatType value = input.readEnum(ChatTypeOuterClass.ChatType.converter()); + final MsgTypeOuterClass.MsgType value = input.readEnum(MsgTypeOuterClass.MsgType.converter()); if (value != null) { - chatType = value.getNumber(); + msgType = value.getNumber(); bitField0_ |= 0x00000002; } else { input.skipUnknownEnumValue(); @@ -612,13 +612,13 @@ public final class SendMsgCsReqOuterClass { } break; } - case 1343750747: - case -1283380936: { - if (input.isAtField(FieldNames.msgType)) { + case 1437412018: + case 1620118465: { + if (input.isAtField(FieldNames.chatType)) { if (!input.trySkipNullValue()) { - final MsgTypeOuterClass.MsgType value = input.readEnum(MsgTypeOuterClass.MsgType.converter()); + final ChatTypeOuterClass.ChatType value = input.readEnum(ChatTypeOuterClass.ChatType.converter()); if (value != null) { - msgType = value.getNumber(); + chatType = value.getNumber(); bitField0_ |= 0x00000004; } else { input.skipUnknownEnumValue(); @@ -706,10 +706,10 @@ public final class SendMsgCsReqOuterClass { static class FieldNames { static final FieldName emote = FieldName.forField("emote"); - static final FieldName chatType = FieldName.forField("chatType", "chat_type"); - static final FieldName msgType = FieldName.forField("msgType", "msg_type"); + static final FieldName chatType = FieldName.forField("chatType", "chat_type"); + static final FieldName text = FieldName.forField("text"); static final FieldName toUidList = FieldName.forField("toUidList", "to_uid_list"); diff --git a/src/generated/main/emu/lunarcore/proto/SetClientPausedCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SetClientPausedCsReqOuterClass.java index 50cfb15..8afb332 100644 --- a/src/generated/main/emu/lunarcore/proto/SetClientPausedCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SetClientPausedCsReqOuterClass.java @@ -19,7 +19,7 @@ public final class SetClientPausedCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional bool paused = 2; + * optional bool paused = 13; */ private boolean paused; @@ -34,7 +34,7 @@ public final class SetClientPausedCsReqOuterClass { } /** - * optional bool paused = 2; + * optional bool paused = 13; * @return whether the paused field is set */ public boolean hasPaused() { @@ -42,7 +42,7 @@ public final class SetClientPausedCsReqOuterClass { } /** - * optional bool paused = 2; + * optional bool paused = 13; * @return this */ public SetClientPausedCsReq clearPaused() { @@ -52,7 +52,7 @@ public final class SetClientPausedCsReqOuterClass { } /** - * optional bool paused = 2; + * optional bool paused = 13; * @return the paused */ public boolean getPaused() { @@ -60,7 +60,7 @@ public final class SetClientPausedCsReqOuterClass { } /** - * optional bool paused = 2; + * optional bool paused = 13; * @param value the paused to set * @return this */ @@ -129,7 +129,7 @@ public final class SetClientPausedCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); + output.writeRawByte((byte) 104); output.writeBoolNoTag(paused); } } @@ -150,7 +150,7 @@ public final class SetClientPausedCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { + case 104: { // 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 260f9c1..f1635fe 100644 --- a/src/generated/main/emu/lunarcore/proto/SetClientPausedScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SetClientPausedScRspOuterClass.java @@ -19,12 +19,12 @@ public final class SetClientPausedScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 2; + * optional uint32 retcode = 14; */ private int retcode; /** - * optional bool paused = 12; + * optional bool paused = 1; */ private boolean paused; @@ -39,7 +39,7 @@ public final class SetClientPausedScRspOuterClass { } /** - * optional uint32 retcode = 2; + * optional uint32 retcode = 14; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -47,7 +47,7 @@ public final class SetClientPausedScRspOuterClass { } /** - * optional uint32 retcode = 2; + * optional uint32 retcode = 14; * @return this */ public SetClientPausedScRsp clearRetcode() { @@ -57,7 +57,7 @@ public final class SetClientPausedScRspOuterClass { } /** - * optional uint32 retcode = 2; + * optional uint32 retcode = 14; * @return the retcode */ public int getRetcode() { @@ -65,7 +65,7 @@ public final class SetClientPausedScRspOuterClass { } /** - * optional uint32 retcode = 2; + * optional uint32 retcode = 14; * @param value the retcode to set * @return this */ @@ -76,7 +76,7 @@ public final class SetClientPausedScRspOuterClass { } /** - * optional bool paused = 12; + * optional bool paused = 1; * @return whether the paused field is set */ public boolean hasPaused() { @@ -84,7 +84,7 @@ public final class SetClientPausedScRspOuterClass { } /** - * optional bool paused = 12; + * optional bool paused = 1; * @return this */ public SetClientPausedScRsp clearPaused() { @@ -94,7 +94,7 @@ public final class SetClientPausedScRspOuterClass { } /** - * optional bool paused = 12; + * optional bool paused = 1; * @return the paused */ public boolean getPaused() { @@ -102,7 +102,7 @@ public final class SetClientPausedScRspOuterClass { } /** - * optional bool paused = 12; + * optional bool paused = 1; * @param value the paused to set * @return this */ @@ -177,11 +177,11 @@ public final class SetClientPausedScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); + output.writeRawByte((byte) 112); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 8); output.writeBoolNoTag(paused); } } @@ -205,16 +205,16 @@ public final class SetClientPausedScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { + case 112: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 96) { + if (tag != 8) { break; } } - case 96: { + case 8: { // paused paused = input.readBool(); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/SetFriendMarkCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SetFriendMarkCsReqOuterClass.java new file mode 100644 index 0000000..0d29848 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SetFriendMarkCsReqOuterClass.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 SetFriendMarkCsReqOuterClass { + /** + * Protobuf type {@code SetFriendMarkCsReq} + */ + public static final class SetFriendMarkCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 uid = 11; + */ + private int uid; + + /** + * optional bool is_set_mark = 4; + */ + private boolean isSetMark; + + private SetFriendMarkCsReq() { + } + + /** + * @return a new empty instance of {@code SetFriendMarkCsReq} + */ + public static SetFriendMarkCsReq newInstance() { + return new SetFriendMarkCsReq(); + } + + /** + * optional uint32 uid = 11; + * @return whether the uid field is set + */ + public boolean hasUid() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 uid = 11; + * @return this + */ + public SetFriendMarkCsReq clearUid() { + bitField0_ &= ~0x00000001; + 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 SetFriendMarkCsReq setUid(final int value) { + bitField0_ |= 0x00000001; + uid = value; + return this; + } + + /** + * optional bool is_set_mark = 4; + * @return whether the isSetMark field is set + */ + public boolean hasIsSetMark() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bool is_set_mark = 4; + * @return this + */ + public SetFriendMarkCsReq clearIsSetMark() { + bitField0_ &= ~0x00000002; + isSetMark = false; + return this; + } + + /** + * optional bool is_set_mark = 4; + * @return the isSetMark + */ + public boolean getIsSetMark() { + return isSetMark; + } + + /** + * optional bool is_set_mark = 4; + * @param value the isSetMark to set + * @return this + */ + public SetFriendMarkCsReq setIsSetMark(final boolean value) { + bitField0_ |= 0x00000002; + isSetMark = value; + return this; + } + + @Override + public SetFriendMarkCsReq copyFrom(final SetFriendMarkCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + uid = other.uid; + isSetMark = other.isSetMark; + } + return this; + } + + @Override + public SetFriendMarkCsReq mergeFrom(final SetFriendMarkCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasUid()) { + setUid(other.uid); + } + if (other.hasIsSetMark()) { + setIsSetMark(other.isSetMark); + } + return this; + } + + @Override + public SetFriendMarkCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + uid = 0; + isSetMark = false; + return this; + } + + @Override + public SetFriendMarkCsReq 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 SetFriendMarkCsReq)) { + return false; + } + SetFriendMarkCsReq other = (SetFriendMarkCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasUid() || uid == other.uid) + && (!hasIsSetMark() || isSetMark == other.isSetMark); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(uid); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 32); + output.writeBoolNoTag(isSetMark); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(uid); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2; + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SetFriendMarkCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 88: { + // uid + uid = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // isSetMark + isSetMark = input.readBool(); + 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.uid, uid); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBool(FieldNames.isSetMark, isSetMark); + } + output.endObject(); + } + + @Override + public SetFriendMarkCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 115792: { + if (input.isAtField(FieldNames.uid)) { + if (!input.trySkipNullValue()) { + uid = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1404992965: + case 680313855: { + if (input.isAtField(FieldNames.isSetMark)) { + if (!input.trySkipNullValue()) { + isSetMark = input.readBool(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SetFriendMarkCsReq clone() { + return new SetFriendMarkCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SetFriendMarkCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SetFriendMarkCsReq(), data).checkInitialized(); + } + + public static SetFriendMarkCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SetFriendMarkCsReq(), input).checkInitialized(); + } + + public static SetFriendMarkCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SetFriendMarkCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating SetFriendMarkCsReq messages + */ + public static MessageFactory getFactory() { + return SetFriendMarkCsReqFactory.INSTANCE; + } + + private enum SetFriendMarkCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public SetFriendMarkCsReq create() { + return SetFriendMarkCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName uid = FieldName.forField("uid"); + + static final FieldName isSetMark = FieldName.forField("isSetMark", "is_set_mark"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SetFriendMarkScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/SetFriendMarkScRspOuterClass.java new file mode 100644 index 0000000..c745731 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SetFriendMarkScRspOuterClass.java @@ -0,0 +1,420 @@ +// 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 SetFriendMarkScRspOuterClass { + /** + * Protobuf type {@code SetFriendMarkScRsp} + */ + public static final class SetFriendMarkScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 uid = 2; + */ + private int uid; + + /** + * optional uint32 retcode = 8; + */ + private int retcode; + + /** + * optional bool is_set_mark = 4; + */ + private boolean isSetMark; + + private SetFriendMarkScRsp() { + } + + /** + * @return a new empty instance of {@code SetFriendMarkScRsp} + */ + public static SetFriendMarkScRsp newInstance() { + return new SetFriendMarkScRsp(); + } + + /** + * optional uint32 uid = 2; + * @return whether the uid field is set + */ + public boolean hasUid() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 uid = 2; + * @return this + */ + public SetFriendMarkScRsp clearUid() { + bitField0_ &= ~0x00000001; + uid = 0; + return this; + } + + /** + * optional uint32 uid = 2; + * @return the uid + */ + public int getUid() { + return uid; + } + + /** + * optional uint32 uid = 2; + * @param value the uid to set + * @return this + */ + public SetFriendMarkScRsp setUid(final int value) { + bitField0_ |= 0x00000001; + uid = value; + return this; + } + + /** + * optional uint32 retcode = 8; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 retcode = 8; + * @return this + */ + public SetFriendMarkScRsp clearRetcode() { + bitField0_ &= ~0x00000002; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 8; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 8; + * @param value the retcode to set + * @return this + */ + public SetFriendMarkScRsp setRetcode(final int value) { + bitField0_ |= 0x00000002; + retcode = value; + return this; + } + + /** + * optional bool is_set_mark = 4; + * @return whether the isSetMark field is set + */ + public boolean hasIsSetMark() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bool is_set_mark = 4; + * @return this + */ + public SetFriendMarkScRsp clearIsSetMark() { + bitField0_ &= ~0x00000004; + isSetMark = false; + return this; + } + + /** + * optional bool is_set_mark = 4; + * @return the isSetMark + */ + public boolean getIsSetMark() { + return isSetMark; + } + + /** + * optional bool is_set_mark = 4; + * @param value the isSetMark to set + * @return this + */ + public SetFriendMarkScRsp setIsSetMark(final boolean value) { + bitField0_ |= 0x00000004; + isSetMark = value; + return this; + } + + @Override + public SetFriendMarkScRsp copyFrom(final SetFriendMarkScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + uid = other.uid; + retcode = other.retcode; + isSetMark = other.isSetMark; + } + return this; + } + + @Override + public SetFriendMarkScRsp mergeFrom(final SetFriendMarkScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasUid()) { + setUid(other.uid); + } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasIsSetMark()) { + setIsSetMark(other.isSetMark); + } + return this; + } + + @Override + public SetFriendMarkScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + uid = 0; + retcode = 0; + isSetMark = false; + return this; + } + + @Override + public SetFriendMarkScRsp 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 SetFriendMarkScRsp)) { + return false; + } + SetFriendMarkScRsp other = (SetFriendMarkScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasUid() || uid == other.uid) + && (!hasRetcode() || retcode == other.retcode) + && (!hasIsSetMark() || isSetMark == other.isSetMark); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(uid); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 32); + output.writeBoolNoTag(isSetMark); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(uid); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2; + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SetFriendMarkScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // uid + uid = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 64) { + break; + } + } + case 64: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // isSetMark + isSetMark = 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.uid, uid); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBool(FieldNames.isSetMark, isSetMark); + } + output.endObject(); + } + + @Override + public SetFriendMarkScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 115792: { + if (input.isAtField(FieldNames.uid)) { + if (!input.trySkipNullValue()) { + uid = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1404992965: + case 680313855: { + if (input.isAtField(FieldNames.isSetMark)) { + if (!input.trySkipNullValue()) { + isSetMark = input.readBool(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SetFriendMarkScRsp clone() { + return new SetFriendMarkScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SetFriendMarkScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SetFriendMarkScRsp(), data).checkInitialized(); + } + + public static SetFriendMarkScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SetFriendMarkScRsp(), input).checkInitialized(); + } + + public static SetFriendMarkScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SetFriendMarkScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating SetFriendMarkScRsp messages + */ + public static MessageFactory getFactory() { + return SetFriendMarkScRspFactory.INSTANCE; + } + + private enum SetFriendMarkScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public SetFriendMarkScRsp create() { + return SetFriendMarkScRsp.newInstance(); + } + } + + /** + * 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 isSetMark = FieldName.forField("isSetMark", "is_set_mark"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SetGameplayBirthdayScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/SetGameplayBirthdayScRspOuterClass.java index ec48b3b..87cbeee 100644 --- a/src/generated/main/emu/lunarcore/proto/SetGameplayBirthdayScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SetGameplayBirthdayScRspOuterClass.java @@ -19,15 +19,15 @@ public final class SetGameplayBirthdayScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 birthday = 5; - */ - private int birthday; - - /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 1; */ private int retcode; + /** + * optional uint32 birthday = 11; + */ + private int birthday; + private SetGameplayBirthdayScRsp() { } @@ -39,62 +39,25 @@ public final class SetGameplayBirthdayScRspOuterClass { } /** - * optional uint32 birthday = 5; - * @return whether the birthday field is set + * optional uint32 retcode = 1; + * @return whether the retcode field is set */ - public boolean hasBirthday() { + public boolean hasRetcode() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 birthday = 5; - * @return this - */ - public SetGameplayBirthdayScRsp clearBirthday() { - bitField0_ &= ~0x00000001; - birthday = 0; - return this; - } - - /** - * optional uint32 birthday = 5; - * @return the birthday - */ - public int getBirthday() { - return birthday; - } - - /** - * optional uint32 birthday = 5; - * @param value the birthday to set - * @return this - */ - public SetGameplayBirthdayScRsp setBirthday(final int value) { - bitField0_ |= 0x00000001; - birthday = value; - return this; - } - - /** - * optional uint32 retcode = 15; - * @return whether the retcode field is set - */ - public boolean hasRetcode() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 1; * @return this */ public SetGameplayBirthdayScRsp clearRetcode() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; retcode = 0; return this; } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 1; * @return the retcode */ public int getRetcode() { @@ -102,23 +65,60 @@ public final class SetGameplayBirthdayScRspOuterClass { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 1; * @param value the retcode to set * @return this */ public SetGameplayBirthdayScRsp setRetcode(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; retcode = value; return this; } + /** + * optional uint32 birthday = 11; + * @return whether the birthday field is set + */ + public boolean hasBirthday() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 birthday = 11; + * @return this + */ + public SetGameplayBirthdayScRsp clearBirthday() { + bitField0_ &= ~0x00000002; + birthday = 0; + return this; + } + + /** + * optional uint32 birthday = 11; + * @return the birthday + */ + public int getBirthday() { + return birthday; + } + + /** + * optional uint32 birthday = 11; + * @param value the birthday to set + * @return this + */ + public SetGameplayBirthdayScRsp setBirthday(final int value) { + bitField0_ |= 0x00000002; + birthday = value; + return this; + } + @Override public SetGameplayBirthdayScRsp copyFrom(final SetGameplayBirthdayScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - birthday = other.birthday; retcode = other.retcode; + birthday = other.birthday; } return this; } @@ -129,12 +129,12 @@ public final class SetGameplayBirthdayScRspOuterClass { return this; } cachedSize = -1; - if (other.hasBirthday()) { - setBirthday(other.birthday); - } if (other.hasRetcode()) { setRetcode(other.retcode); } + if (other.hasBirthday()) { + setBirthday(other.birthday); + } return this; } @@ -145,8 +145,8 @@ public final class SetGameplayBirthdayScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - birthday = 0; retcode = 0; + birthday = 0; return this; } @@ -170,19 +170,19 @@ public final class SetGameplayBirthdayScRspOuterClass { } SetGameplayBirthdayScRsp other = (SetGameplayBirthdayScRsp) o; return bitField0_ == other.bitField0_ - && (!hasBirthday() || birthday == other.birthday) - && (!hasRetcode() || retcode == other.retcode); + && (!hasRetcode() || retcode == other.retcode) + && (!hasBirthday() || birthday == other.birthday); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); - output.writeUInt32NoTag(birthday); + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 120); - output.writeUInt32NoTag(retcode); + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(birthday); } } @@ -190,10 +190,10 @@ public final class SetGameplayBirthdayScRspOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(birthday); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(birthday); } return size; } @@ -205,18 +205,18 @@ public final class SetGameplayBirthdayScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 40: { - // birthday - birthday = input.readUInt32(); + case 8: { + // retcode + retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 120) { + if (tag != 88) { break; } } - case 120: { - // retcode - retcode = input.readUInt32(); + case 88: { + // birthday + birthday = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { @@ -241,10 +241,10 @@ public final class SetGameplayBirthdayScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.birthday, birthday); + output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.birthday, birthday); } output.endObject(); } @@ -256,10 +256,10 @@ public final class SetGameplayBirthdayScRspOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1069376125: { - if (input.isAtField(FieldNames.birthday)) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { - birthday = input.readUInt32(); + retcode = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -267,10 +267,10 @@ public final class SetGameplayBirthdayScRspOuterClass { } break; } - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { + case 1069376125: { + if (input.isAtField(FieldNames.birthday)) { if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); + birthday = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -331,9 +331,9 @@ public final class SetGameplayBirthdayScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName birthday = FieldName.forField("birthday"); - static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName birthday = FieldName.forField("birthday"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/SetHeadIconCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SetHeadIconCsReqOuterClass.java index dffad34..a149344 100644 --- a/src/generated/main/emu/lunarcore/proto/SetHeadIconCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SetHeadIconCsReqOuterClass.java @@ -19,7 +19,7 @@ public final class SetHeadIconCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 id = 5; + * optional uint32 id = 1; */ private int id; @@ -34,7 +34,7 @@ public final class SetHeadIconCsReqOuterClass { } /** - * optional uint32 id = 5; + * optional uint32 id = 1; * @return whether the id field is set */ public boolean hasId() { @@ -42,7 +42,7 @@ public final class SetHeadIconCsReqOuterClass { } /** - * optional uint32 id = 5; + * optional uint32 id = 1; * @return this */ public SetHeadIconCsReq clearId() { @@ -52,7 +52,7 @@ public final class SetHeadIconCsReqOuterClass { } /** - * optional uint32 id = 5; + * optional uint32 id = 1; * @return the id */ public int getId() { @@ -60,7 +60,7 @@ public final class SetHeadIconCsReqOuterClass { } /** - * optional uint32 id = 5; + * optional uint32 id = 1; * @param value the id to set * @return this */ @@ -129,7 +129,7 @@ public final class SetHeadIconCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 8); output.writeUInt32NoTag(id); } } @@ -150,7 +150,7 @@ public final class SetHeadIconCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 40: { + case 8: { // 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 677ffed..c3b0faf 100644 --- a/src/generated/main/emu/lunarcore/proto/SetHeadIconScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SetHeadIconScRspOuterClass.java @@ -19,12 +19,12 @@ public final class SetHeadIconScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 2; */ private int retcode; /** - * optional uint32 current_head_icon_id = 11; + * optional uint32 current_head_icon_id = 13; */ private int currentHeadIconId; @@ -39,7 +39,7 @@ public final class SetHeadIconScRspOuterClass { } /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 2; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -47,7 +47,7 @@ public final class SetHeadIconScRspOuterClass { } /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 2; * @return this */ public SetHeadIconScRsp clearRetcode() { @@ -57,7 +57,7 @@ public final class SetHeadIconScRspOuterClass { } /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 2; * @return the retcode */ public int getRetcode() { @@ -65,7 +65,7 @@ public final class SetHeadIconScRspOuterClass { } /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 2; * @param value the retcode to set * @return this */ @@ -76,7 +76,7 @@ public final class SetHeadIconScRspOuterClass { } /** - * optional uint32 current_head_icon_id = 11; + * optional uint32 current_head_icon_id = 13; * @return whether the currentHeadIconId field is set */ public boolean hasCurrentHeadIconId() { @@ -84,7 +84,7 @@ public final class SetHeadIconScRspOuterClass { } /** - * optional uint32 current_head_icon_id = 11; + * optional uint32 current_head_icon_id = 13; * @return this */ public SetHeadIconScRsp clearCurrentHeadIconId() { @@ -94,7 +94,7 @@ public final class SetHeadIconScRspOuterClass { } /** - * optional uint32 current_head_icon_id = 11; + * optional uint32 current_head_icon_id = 13; * @return the currentHeadIconId */ public int getCurrentHeadIconId() { @@ -102,7 +102,7 @@ public final class SetHeadIconScRspOuterClass { } /** - * optional uint32 current_head_icon_id = 11; + * optional uint32 current_head_icon_id = 13; * @param value the currentHeadIconId to set * @return this */ @@ -177,11 +177,11 @@ public final class SetHeadIconScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 16); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 104); output.writeUInt32NoTag(currentHeadIconId); } } @@ -205,16 +205,16 @@ public final class SetHeadIconScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 56: { + case 16: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 88) { + if (tag != 104) { break; } } - case 88: { + case 104: { // 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 cdd1825..5ca71ef 100644 --- a/src/generated/main/emu/lunarcore/proto/SetHeroBasicTypeCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SetHeroBasicTypeCsReqOuterClass.java @@ -19,7 +19,7 @@ public final class SetHeroBasicTypeCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional .HeroBasicType basic_type = 7; + * optional .HeroBasicType basic_type = 15; */ private int basicType; @@ -34,7 +34,7 @@ public final class SetHeroBasicTypeCsReqOuterClass { } /** - * optional .HeroBasicType basic_type = 7; + * optional .HeroBasicType basic_type = 15; * @return whether the basicType field is set */ public boolean hasBasicType() { @@ -42,7 +42,7 @@ public final class SetHeroBasicTypeCsReqOuterClass { } /** - * optional .HeroBasicType basic_type = 7; + * optional .HeroBasicType basic_type = 15; * @return this */ public SetHeroBasicTypeCsReq clearBasicType() { @@ -52,7 +52,7 @@ public final class SetHeroBasicTypeCsReqOuterClass { } /** - * optional .HeroBasicType basic_type = 7; + * optional .HeroBasicType basic_type = 15; * @return the basicType */ public HeroBasicTypeOuterClass.HeroBasicType getBasicType() { @@ -85,7 +85,7 @@ public final class SetHeroBasicTypeCsReqOuterClass { } /** - * optional .HeroBasicType basic_type = 7; + * optional .HeroBasicType basic_type = 15; * @param value the basicType to set * @return this */ @@ -154,7 +154,7 @@ public final class SetHeroBasicTypeCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 120); output.writeEnumNoTag(basicType); } } @@ -175,7 +175,7 @@ public final class SetHeroBasicTypeCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 56: { + case 120: { // 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 54a237c..04ec171 100644 --- a/src/generated/main/emu/lunarcore/proto/SetHeroBasicTypeScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SetHeroBasicTypeScRspOuterClass.java @@ -19,12 +19,12 @@ public final class SetHeroBasicTypeScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 2; */ private int retcode; /** - * optional .HeroBasicType basic_type = 12; + * optional .HeroBasicType basic_type = 10; */ private int basicType; @@ -39,7 +39,7 @@ public final class SetHeroBasicTypeScRspOuterClass { } /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 2; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -47,7 +47,7 @@ public final class SetHeroBasicTypeScRspOuterClass { } /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 2; * @return this */ public SetHeroBasicTypeScRsp clearRetcode() { @@ -57,7 +57,7 @@ public final class SetHeroBasicTypeScRspOuterClass { } /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 2; * @return the retcode */ public int getRetcode() { @@ -65,7 +65,7 @@ public final class SetHeroBasicTypeScRspOuterClass { } /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 2; * @param value the retcode to set * @return this */ @@ -76,7 +76,7 @@ public final class SetHeroBasicTypeScRspOuterClass { } /** - * optional .HeroBasicType basic_type = 12; + * optional .HeroBasicType basic_type = 10; * @return whether the basicType field is set */ public boolean hasBasicType() { @@ -84,7 +84,7 @@ public final class SetHeroBasicTypeScRspOuterClass { } /** - * optional .HeroBasicType basic_type = 12; + * optional .HeroBasicType basic_type = 10; * @return this */ public SetHeroBasicTypeScRsp clearBasicType() { @@ -94,7 +94,7 @@ public final class SetHeroBasicTypeScRspOuterClass { } /** - * optional .HeroBasicType basic_type = 12; + * optional .HeroBasicType basic_type = 10; * @return the basicType */ public HeroBasicTypeOuterClass.HeroBasicType getBasicType() { @@ -127,7 +127,7 @@ public final class SetHeroBasicTypeScRspOuterClass { } /** - * optional .HeroBasicType basic_type = 12; + * optional .HeroBasicType basic_type = 10; * @param value the basicType to set * @return this */ @@ -202,11 +202,11 @@ public final class SetHeroBasicTypeScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 16); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 80); output.writeEnumNoTag(basicType); } } @@ -230,16 +230,16 @@ public final class SetHeroBasicTypeScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 104: { + case 16: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 96) { + if (tag != 80) { break; } } - case 96: { + case 80: { // basicType final int value = input.readInt32(); if (HeroBasicTypeOuterClass.HeroBasicType.forNumber(value) != null) { diff --git a/src/generated/main/emu/lunarcore/proto/SetLineupNameCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SetLineupNameCsReqOuterClass.java index 76d68c1..b332a73 100644 --- a/src/generated/main/emu/lunarcore/proto/SetLineupNameCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SetLineupNameCsReqOuterClass.java @@ -20,12 +20,12 @@ public final class SetLineupNameCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 index = 13; + * optional uint32 index = 8; */ private int index; /** - * optional string name = 15; + * optional string name = 7; */ private final Utf8String name = Utf8String.newEmptyInstance(); @@ -40,7 +40,7 @@ public final class SetLineupNameCsReqOuterClass { } /** - * optional uint32 index = 13; + * optional uint32 index = 8; * @return whether the index field is set */ public boolean hasIndex() { @@ -48,7 +48,7 @@ public final class SetLineupNameCsReqOuterClass { } /** - * optional uint32 index = 13; + * optional uint32 index = 8; * @return this */ public SetLineupNameCsReq clearIndex() { @@ -58,7 +58,7 @@ public final class SetLineupNameCsReqOuterClass { } /** - * optional uint32 index = 13; + * optional uint32 index = 8; * @return the index */ public int getIndex() { @@ -66,7 +66,7 @@ public final class SetLineupNameCsReqOuterClass { } /** - * optional uint32 index = 13; + * optional uint32 index = 8; * @param value the index to set * @return this */ @@ -77,7 +77,7 @@ public final class SetLineupNameCsReqOuterClass { } /** - * optional string name = 15; + * optional string name = 7; * @return whether the name field is set */ public boolean hasName() { @@ -85,7 +85,7 @@ public final class SetLineupNameCsReqOuterClass { } /** - * optional string name = 15; + * optional string name = 7; * @return this */ public SetLineupNameCsReq clearName() { @@ -95,7 +95,7 @@ public final class SetLineupNameCsReqOuterClass { } /** - * optional string name = 15; + * optional string name = 7; * @return the name */ public String getName() { @@ -103,7 +103,7 @@ public final class SetLineupNameCsReqOuterClass { } /** - * optional string name = 15; + * optional string name = 7; * @return internal {@code Utf8String} representation of name for reading */ public Utf8String getNameBytes() { @@ -111,7 +111,7 @@ public final class SetLineupNameCsReqOuterClass { } /** - * optional string name = 15; + * optional string name = 7; * @return internal {@code Utf8String} representation of name for modifications */ public Utf8String getMutableNameBytes() { @@ -120,7 +120,7 @@ public final class SetLineupNameCsReqOuterClass { } /** - * optional string name = 15; + * optional string name = 7; * @param value the name to set * @return this */ @@ -131,7 +131,7 @@ public final class SetLineupNameCsReqOuterClass { } /** - * optional string name = 15; + * optional string name = 7; * @param value the name to set * @return this */ @@ -207,11 +207,11 @@ public final class SetLineupNameCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 64); output.writeUInt32NoTag(index); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 122); + output.writeRawByte((byte) 58); output.writeStringNoTag(name); } } @@ -235,16 +235,16 @@ public final class SetLineupNameCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 104: { + case 64: { // index index = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 122) { + if (tag != 58) { break; } } - case 122: { + case 58: { // 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 76f94d8..76468e7 100644 --- a/src/generated/main/emu/lunarcore/proto/SetLineupNameScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SetLineupNameScRspOuterClass.java @@ -20,17 +20,17 @@ public final class SetLineupNameScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 index = 8; + * optional uint32 index = 6; */ private int index; /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 9; */ private int retcode; /** - * optional string name = 7; + * optional string name = 15; */ private final Utf8String name = Utf8String.newEmptyInstance(); @@ -45,7 +45,7 @@ public final class SetLineupNameScRspOuterClass { } /** - * optional uint32 index = 8; + * optional uint32 index = 6; * @return whether the index field is set */ public boolean hasIndex() { @@ -53,7 +53,7 @@ public final class SetLineupNameScRspOuterClass { } /** - * optional uint32 index = 8; + * optional uint32 index = 6; * @return this */ public SetLineupNameScRsp clearIndex() { @@ -63,7 +63,7 @@ public final class SetLineupNameScRspOuterClass { } /** - * optional uint32 index = 8; + * optional uint32 index = 6; * @return the index */ public int getIndex() { @@ -71,7 +71,7 @@ public final class SetLineupNameScRspOuterClass { } /** - * optional uint32 index = 8; + * optional uint32 index = 6; * @param value the index to set * @return this */ @@ -82,7 +82,7 @@ public final class SetLineupNameScRspOuterClass { } /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 9; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -90,7 +90,7 @@ public final class SetLineupNameScRspOuterClass { } /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 9; * @return this */ public SetLineupNameScRsp clearRetcode() { @@ -100,7 +100,7 @@ public final class SetLineupNameScRspOuterClass { } /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 9; * @return the retcode */ public int getRetcode() { @@ -108,7 +108,7 @@ public final class SetLineupNameScRspOuterClass { } /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 9; * @param value the retcode to set * @return this */ @@ -119,7 +119,7 @@ public final class SetLineupNameScRspOuterClass { } /** - * optional string name = 7; + * optional string name = 15; * @return whether the name field is set */ public boolean hasName() { @@ -127,7 +127,7 @@ public final class SetLineupNameScRspOuterClass { } /** - * optional string name = 7; + * optional string name = 15; * @return this */ public SetLineupNameScRsp clearName() { @@ -137,7 +137,7 @@ public final class SetLineupNameScRspOuterClass { } /** - * optional string name = 7; + * optional string name = 15; * @return the name */ public String getName() { @@ -145,7 +145,7 @@ public final class SetLineupNameScRspOuterClass { } /** - * optional string name = 7; + * optional string name = 15; * @return internal {@code Utf8String} representation of name for reading */ public Utf8String getNameBytes() { @@ -153,7 +153,7 @@ public final class SetLineupNameScRspOuterClass { } /** - * optional string name = 7; + * optional string name = 15; * @return internal {@code Utf8String} representation of name for modifications */ public Utf8String getMutableNameBytes() { @@ -162,7 +162,7 @@ public final class SetLineupNameScRspOuterClass { } /** - * optional string name = 7; + * optional string name = 15; * @param value the name to set * @return this */ @@ -173,7 +173,7 @@ public final class SetLineupNameScRspOuterClass { } /** - * optional string name = 7; + * optional string name = 15; * @param value the name to set * @return this */ @@ -255,15 +255,15 @@ public final class SetLineupNameScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 48); output.writeUInt32NoTag(index); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 72); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 58); + output.writeRawByte((byte) 122); output.writeStringNoTag(name); } } @@ -290,25 +290,25 @@ public final class SetLineupNameScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 64: { + case 48: { // index index = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 104) { + if (tag != 72) { break; } } - case 104: { + case 72: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 58) { + if (tag != 122) { break; } } - case 58: { + case 122: { // 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 93a1b77..1394222 100644 --- a/src/generated/main/emu/lunarcore/proto/SetNicknameCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SetNicknameCsReqOuterClass.java @@ -20,7 +20,7 @@ public final class SetNicknameCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional string nickname = 3; + * optional string nickname = 14; */ private final Utf8String nickname = Utf8String.newEmptyInstance(); @@ -35,7 +35,7 @@ public final class SetNicknameCsReqOuterClass { } /** - * optional string nickname = 3; + * optional string nickname = 14; * @return whether the nickname field is set */ public boolean hasNickname() { @@ -43,7 +43,7 @@ public final class SetNicknameCsReqOuterClass { } /** - * optional string nickname = 3; + * optional string nickname = 14; * @return this */ public SetNicknameCsReq clearNickname() { @@ -53,7 +53,7 @@ public final class SetNicknameCsReqOuterClass { } /** - * optional string nickname = 3; + * optional string nickname = 14; * @return the nickname */ public String getNickname() { @@ -61,7 +61,7 @@ public final class SetNicknameCsReqOuterClass { } /** - * optional string nickname = 3; + * optional string nickname = 14; * @return internal {@code Utf8String} representation of nickname for reading */ public Utf8String getNicknameBytes() { @@ -69,7 +69,7 @@ public final class SetNicknameCsReqOuterClass { } /** - * optional string nickname = 3; + * optional string nickname = 14; * @return internal {@code Utf8String} representation of nickname for modifications */ public Utf8String getMutableNicknameBytes() { @@ -78,7 +78,7 @@ public final class SetNicknameCsReqOuterClass { } /** - * optional string nickname = 3; + * optional string nickname = 14; * @param value the nickname to set * @return this */ @@ -89,7 +89,7 @@ public final class SetNicknameCsReqOuterClass { } /** - * optional string nickname = 3; + * optional string nickname = 14; * @param value the nickname to set * @return this */ @@ -159,7 +159,7 @@ public final class SetNicknameCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 26); + output.writeRawByte((byte) 114); output.writeStringNoTag(nickname); } } @@ -180,7 +180,7 @@ public final class SetNicknameCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 26: { + case 114: { // 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 8a8545d..11d25a7 100644 --- a/src/generated/main/emu/lunarcore/proto/SetSignatureCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SetSignatureCsReqOuterClass.java @@ -20,7 +20,7 @@ public final class SetSignatureCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional string signature = 15; + * optional string signature = 8; */ private final Utf8String signature = Utf8String.newEmptyInstance(); @@ -35,7 +35,7 @@ public final class SetSignatureCsReqOuterClass { } /** - * optional string signature = 15; + * optional string signature = 8; * @return whether the signature field is set */ public boolean hasSignature() { @@ -43,7 +43,7 @@ public final class SetSignatureCsReqOuterClass { } /** - * optional string signature = 15; + * optional string signature = 8; * @return this */ public SetSignatureCsReq clearSignature() { @@ -53,7 +53,7 @@ public final class SetSignatureCsReqOuterClass { } /** - * optional string signature = 15; + * optional string signature = 8; * @return the signature */ public String getSignature() { @@ -61,7 +61,7 @@ public final class SetSignatureCsReqOuterClass { } /** - * optional string signature = 15; + * optional string signature = 8; * @return internal {@code Utf8String} representation of signature for reading */ public Utf8String getSignatureBytes() { @@ -69,7 +69,7 @@ public final class SetSignatureCsReqOuterClass { } /** - * optional string signature = 15; + * optional string signature = 8; * @return internal {@code Utf8String} representation of signature for modifications */ public Utf8String getMutableSignatureBytes() { @@ -78,7 +78,7 @@ public final class SetSignatureCsReqOuterClass { } /** - * optional string signature = 15; + * optional string signature = 8; * @param value the signature to set * @return this */ @@ -89,7 +89,7 @@ public final class SetSignatureCsReqOuterClass { } /** - * optional string signature = 15; + * optional string signature = 8; * @param value the signature to set * @return this */ @@ -159,7 +159,7 @@ public final class SetSignatureCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 122); + output.writeRawByte((byte) 66); output.writeStringNoTag(signature); } } @@ -180,7 +180,7 @@ public final class SetSignatureCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 122: { + case 66: { // 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 4bfeb69..39ad9ed 100644 --- a/src/generated/main/emu/lunarcore/proto/SetSignatureScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SetSignatureScRspOuterClass.java @@ -20,12 +20,12 @@ public final class SetSignatureScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 4; + * optional uint32 retcode = 14; */ private int retcode; /** - * optional string signature = 1; + * optional string signature = 8; */ private final Utf8String signature = Utf8String.newEmptyInstance(); @@ -40,7 +40,7 @@ public final class SetSignatureScRspOuterClass { } /** - * optional uint32 retcode = 4; + * optional uint32 retcode = 14; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -48,7 +48,7 @@ public final class SetSignatureScRspOuterClass { } /** - * optional uint32 retcode = 4; + * optional uint32 retcode = 14; * @return this */ public SetSignatureScRsp clearRetcode() { @@ -58,7 +58,7 @@ public final class SetSignatureScRspOuterClass { } /** - * optional uint32 retcode = 4; + * optional uint32 retcode = 14; * @return the retcode */ public int getRetcode() { @@ -66,7 +66,7 @@ public final class SetSignatureScRspOuterClass { } /** - * optional uint32 retcode = 4; + * optional uint32 retcode = 14; * @param value the retcode to set * @return this */ @@ -77,7 +77,7 @@ public final class SetSignatureScRspOuterClass { } /** - * optional string signature = 1; + * optional string signature = 8; * @return whether the signature field is set */ public boolean hasSignature() { @@ -85,7 +85,7 @@ public final class SetSignatureScRspOuterClass { } /** - * optional string signature = 1; + * optional string signature = 8; * @return this */ public SetSignatureScRsp clearSignature() { @@ -95,7 +95,7 @@ public final class SetSignatureScRspOuterClass { } /** - * optional string signature = 1; + * optional string signature = 8; * @return the signature */ public String getSignature() { @@ -103,7 +103,7 @@ public final class SetSignatureScRspOuterClass { } /** - * optional string signature = 1; + * optional string signature = 8; * @return internal {@code Utf8String} representation of signature for reading */ public Utf8String getSignatureBytes() { @@ -111,7 +111,7 @@ public final class SetSignatureScRspOuterClass { } /** - * optional string signature = 1; + * optional string signature = 8; * @return internal {@code Utf8String} representation of signature for modifications */ public Utf8String getMutableSignatureBytes() { @@ -120,7 +120,7 @@ public final class SetSignatureScRspOuterClass { } /** - * optional string signature = 1; + * optional string signature = 8; * @param value the signature to set * @return this */ @@ -131,7 +131,7 @@ public final class SetSignatureScRspOuterClass { } /** - * optional string signature = 1; + * optional string signature = 8; * @param value the signature to set * @return this */ @@ -207,11 +207,11 @@ public final class SetSignatureScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 32); + output.writeRawByte((byte) 112); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 10); + output.writeRawByte((byte) 66); output.writeStringNoTag(signature); } } @@ -235,16 +235,16 @@ public final class SetSignatureScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 32: { + case 112: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 10) { + if (tag != 66) { break; } } - case 10: { + case 66: { // 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 19d1ff6..0ab7db2 100644 --- a/src/generated/main/emu/lunarcore/proto/ShopOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ShopOuterClass.java @@ -20,37 +20,37 @@ public final class ShopOuterClass { private static final long serialVersionUID = 0L; /** - * optional int64 begin_time = 8; + * optional int64 begin_time = 4; */ private long beginTime; /** - * optional int64 end_time = 13; + * optional int64 end_time = 10; */ private long endTime; /** - * optional uint64 city_taken_level_reward = 3; + * optional uint64 city_taken_level_reward = 14; */ private long cityTakenLevelReward; /** - * optional uint32 city_level = 5; - */ - private int cityLevel; - - /** - * optional uint32 city_exp = 10; + * optional uint32 city_exp = 1; */ private int cityExp; /** - * optional uint32 shop_id = 11; + * optional uint32 shop_id = 7; */ private int shopId; /** - * repeated .Goods goods_list = 2; + * optional uint32 city_level = 13; + */ + private int cityLevel; + + /** + * repeated .Goods goods_list = 8; */ private final RepeatedMessage goodsList = RepeatedMessage.newEmptyInstance(GoodsOuterClass.Goods.getFactory()); @@ -65,7 +65,7 @@ public final class ShopOuterClass { } /** - * optional int64 begin_time = 8; + * optional int64 begin_time = 4; * @return whether the beginTime field is set */ public boolean hasBeginTime() { @@ -73,7 +73,7 @@ public final class ShopOuterClass { } /** - * optional int64 begin_time = 8; + * optional int64 begin_time = 4; * @return this */ public Shop clearBeginTime() { @@ -83,7 +83,7 @@ public final class ShopOuterClass { } /** - * optional int64 begin_time = 8; + * optional int64 begin_time = 4; * @return the beginTime */ public long getBeginTime() { @@ -91,7 +91,7 @@ public final class ShopOuterClass { } /** - * optional int64 begin_time = 8; + * optional int64 begin_time = 4; * @param value the beginTime to set * @return this */ @@ -102,7 +102,7 @@ public final class ShopOuterClass { } /** - * optional int64 end_time = 13; + * optional int64 end_time = 10; * @return whether the endTime field is set */ public boolean hasEndTime() { @@ -110,7 +110,7 @@ public final class ShopOuterClass { } /** - * optional int64 end_time = 13; + * optional int64 end_time = 10; * @return this */ public Shop clearEndTime() { @@ -120,7 +120,7 @@ public final class ShopOuterClass { } /** - * optional int64 end_time = 13; + * optional int64 end_time = 10; * @return the endTime */ public long getEndTime() { @@ -128,7 +128,7 @@ public final class ShopOuterClass { } /** - * optional int64 end_time = 13; + * optional int64 end_time = 10; * @param value the endTime to set * @return this */ @@ -139,7 +139,7 @@ public final class ShopOuterClass { } /** - * optional uint64 city_taken_level_reward = 3; + * optional uint64 city_taken_level_reward = 14; * @return whether the cityTakenLevelReward field is set */ public boolean hasCityTakenLevelReward() { @@ -147,7 +147,7 @@ public final class ShopOuterClass { } /** - * optional uint64 city_taken_level_reward = 3; + * optional uint64 city_taken_level_reward = 14; * @return this */ public Shop clearCityTakenLevelReward() { @@ -157,7 +157,7 @@ public final class ShopOuterClass { } /** - * optional uint64 city_taken_level_reward = 3; + * optional uint64 city_taken_level_reward = 14; * @return the cityTakenLevelReward */ public long getCityTakenLevelReward() { @@ -165,7 +165,7 @@ public final class ShopOuterClass { } /** - * optional uint64 city_taken_level_reward = 3; + * optional uint64 city_taken_level_reward = 14; * @param value the cityTakenLevelReward to set * @return this */ @@ -176,62 +176,25 @@ public final class ShopOuterClass { } /** - * optional uint32 city_level = 5; - * @return whether the cityLevel field is set + * optional uint32 city_exp = 1; + * @return whether the cityExp field is set */ - public boolean hasCityLevel() { + public boolean hasCityExp() { return (bitField0_ & 0x00000008) != 0; } /** - * optional uint32 city_level = 5; - * @return this - */ - public Shop clearCityLevel() { - bitField0_ &= ~0x00000008; - cityLevel = 0; - return this; - } - - /** - * optional uint32 city_level = 5; - * @return the cityLevel - */ - public int getCityLevel() { - return cityLevel; - } - - /** - * optional uint32 city_level = 5; - * @param value the cityLevel to set - * @return this - */ - public Shop setCityLevel(final int value) { - bitField0_ |= 0x00000008; - cityLevel = value; - return this; - } - - /** - * optional uint32 city_exp = 10; - * @return whether the cityExp field is set - */ - public boolean hasCityExp() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - * optional uint32 city_exp = 10; + * optional uint32 city_exp = 1; * @return this */ public Shop clearCityExp() { - bitField0_ &= ~0x00000010; + bitField0_ &= ~0x00000008; cityExp = 0; return this; } /** - * optional uint32 city_exp = 10; + * optional uint32 city_exp = 1; * @return the cityExp */ public int getCityExp() { @@ -239,36 +202,36 @@ public final class ShopOuterClass { } /** - * optional uint32 city_exp = 10; + * optional uint32 city_exp = 1; * @param value the cityExp to set * @return this */ public Shop setCityExp(final int value) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; cityExp = value; return this; } /** - * optional uint32 shop_id = 11; + * optional uint32 shop_id = 7; * @return whether the shopId field is set */ public boolean hasShopId() { - return (bitField0_ & 0x00000020) != 0; + return (bitField0_ & 0x00000010) != 0; } /** - * optional uint32 shop_id = 11; + * optional uint32 shop_id = 7; * @return this */ public Shop clearShopId() { - bitField0_ &= ~0x00000020; + bitField0_ &= ~0x00000010; shopId = 0; return this; } /** - * optional uint32 shop_id = 11; + * optional uint32 shop_id = 7; * @return the shopId */ public int getShopId() { @@ -276,18 +239,55 @@ public final class ShopOuterClass { } /** - * optional uint32 shop_id = 11; + * optional uint32 shop_id = 7; * @param value the shopId to set * @return this */ public Shop setShopId(final int value) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; shopId = value; return this; } /** - * repeated .Goods goods_list = 2; + * optional uint32 city_level = 13; + * @return whether the cityLevel field is set + */ + public boolean hasCityLevel() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional uint32 city_level = 13; + * @return this + */ + public Shop clearCityLevel() { + bitField0_ &= ~0x00000020; + cityLevel = 0; + return this; + } + + /** + * optional uint32 city_level = 13; + * @return the cityLevel + */ + public int getCityLevel() { + return cityLevel; + } + + /** + * optional uint32 city_level = 13; + * @param value the cityLevel to set + * @return this + */ + public Shop setCityLevel(final int value) { + bitField0_ |= 0x00000020; + cityLevel = value; + return this; + } + + /** + * repeated .Goods goods_list = 8; * @return whether the goodsList field is set */ public boolean hasGoodsList() { @@ -295,7 +295,7 @@ public final class ShopOuterClass { } /** - * repeated .Goods goods_list = 2; + * repeated .Goods goods_list = 8; * @return this */ public Shop clearGoodsList() { @@ -305,7 +305,7 @@ public final class ShopOuterClass { } /** - * repeated .Goods goods_list = 2; + * repeated .Goods goods_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. @@ -319,7 +319,7 @@ public final class ShopOuterClass { } /** - * repeated .Goods goods_list = 2; + * repeated .Goods goods_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 @@ -333,7 +333,7 @@ public final class ShopOuterClass { } /** - * repeated .Goods goods_list = 2; + * repeated .Goods goods_list = 8; * @param value the goodsList to add * @return this */ @@ -344,7 +344,7 @@ public final class ShopOuterClass { } /** - * repeated .Goods goods_list = 2; + * repeated .Goods goods_list = 8; * @param values the goodsList to add * @return this */ @@ -362,9 +362,9 @@ public final class ShopOuterClass { 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; @@ -385,15 +385,15 @@ public final class ShopOuterClass { 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); } @@ -410,9 +410,9 @@ public final class ShopOuterClass { beginTime = 0L; endTime = 0L; cityTakenLevelReward = 0L; - cityLevel = 0; cityExp = 0; shopId = 0; + cityLevel = 0; goodsList.clear(); return this; } @@ -441,41 +441,41 @@ public final class ShopOuterClass { && (!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) 64); + output.writeRawByte((byte) 32); output.writeInt64NoTag(beginTime); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 80); output.writeInt64NoTag(endTime); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 112); output.writeUInt64NoTag(cityTakenLevelReward); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 40); - output.writeUInt32NoTag(cityLevel); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 8); output.writeUInt32NoTag(cityExp); } - if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 88); + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 56); output.writeUInt32NoTag(shopId); } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(cityLevel); + } if ((bitField0_ & 0x00000040) != 0) { for (int i = 0; i < goodsList.length(); i++) { - output.writeRawByte((byte) 18); + output.writeRawByte((byte) 66); output.writeMessageNoTag(goodsList.get(i)); } } @@ -494,14 +494,14 @@ public final class ShopOuterClass { size += 1 + ProtoSink.computeUInt64SizeNoTag(cityTakenLevelReward); } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(cityLevel); - } - if ((bitField0_ & 0x00000010) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(cityExp); } - if ((bitField0_ & 0x00000020) != 0) { + if ((bitField0_ & 0x00000010) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(shopId); } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(cityLevel); + } if ((bitField0_ & 0x00000040) != 0) { size += (1 * goodsList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(goodsList); } @@ -515,61 +515,61 @@ public final class ShopOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 64: { + case 32: { // beginTime beginTime = input.readInt64(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 104) { - break; - } - } - case 104: { - // endTime - endTime = input.readInt64(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 24) { - break; - } - } - case 24: { - // cityTakenLevelReward - cityTakenLevelReward = input.readUInt64(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 40) { - break; - } - } - case 40: { - // cityLevel - cityLevel = input.readUInt32(); - bitField0_ |= 0x00000008; - tag = input.readTag(); if (tag != 80) { break; } } case 80: { + // endTime + endTime = input.readInt64(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // cityTakenLevelReward + cityTakenLevelReward = input.readUInt64(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 8) { + break; + } + } + case 8: { // cityExp cityExp = input.readUInt32(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 88) { + if (tag != 56) { break; } } - case 88: { + case 56: { // shopId shopId = input.readUInt32(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; tag = input.readTag(); - if (tag != 18) { + if (tag != 104) { break; } } - case 18: { + case 104: { + // cityLevel + cityLevel = input.readUInt32(); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 66) { + break; + } + } + case 66: { // goodsList tag = input.readRepeatedMessage(goodsList, tag); bitField0_ |= 0x00000040; @@ -604,14 +604,14 @@ public final class ShopOuterClass { output.writeUInt64(FieldNames.cityTakenLevelReward, cityTakenLevelReward); } if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.cityLevel, cityLevel); - } - if ((bitField0_ & 0x00000010) != 0) { output.writeUInt32(FieldNames.cityExp, cityExp); } - if ((bitField0_ & 0x00000020) != 0) { + if ((bitField0_ & 0x00000010) != 0) { output.writeUInt32(FieldNames.shopId, shopId); } + if ((bitField0_ & 0x00000020) != 0) { + output.writeUInt32(FieldNames.cityLevel, cityLevel); + } if ((bitField0_ & 0x00000040) != 0) { output.writeRepeatedMessage(FieldNames.goodsList, goodsList); } @@ -661,24 +661,12 @@ public final class ShopOuterClass { } break; } - case -1124188967: - case 59808688: { - if (input.isAtField(FieldNames.cityLevel)) { - if (!input.trySkipNullValue()) { - cityLevel = input.readUInt32(); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } case 785415346: case -1421171383: { if (input.isAtField(FieldNames.cityExp)) { if (!input.trySkipNullValue()) { cityExp = input.readUInt32(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; } } else { input.skipUnknownField(); @@ -690,6 +678,18 @@ public final class ShopOuterClass { if (input.isAtField(FieldNames.shopId)) { if (!input.trySkipNullValue()) { shopId = input.readUInt32(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1124188967: + case 59808688: { + if (input.isAtField(FieldNames.cityLevel)) { + if (!input.trySkipNullValue()) { + cityLevel = input.readUInt32(); bitField0_ |= 0x00000020; } } else { @@ -767,12 +767,12 @@ public final class ShopOuterClass { 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/SimpleInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/SimpleInfoOuterClass.java index 6bfbcc0..cacafe0 100644 --- a/src/generated/main/emu/lunarcore/proto/SimpleInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SimpleInfoOuterClass.java @@ -10,6 +10,7 @@ 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; import us.hebi.quickbuf.Utf8String; public final class SimpleInfoOuterClass { @@ -20,7 +21,7 @@ public final class SimpleInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional int64 last_active_time = 12; + * optional int64 last_active_time = 9; */ private long lastActiveTime; @@ -30,44 +31,49 @@ public final class SimpleInfoOuterClass { private int uid; /** - * optional uint32 chat_bubble_id = 11; + * optional uint32 chat_bubble_id = 2; */ private int chatBubbleId; /** - * optional uint32 head_icon = 13; + * optional uint32 head_icon = 3; */ private int headIcon; /** - * optional uint32 level = 14; + * optional uint32 level = 8; */ private int level; /** - * optional .FriendOnlineStatus online_status = 3; + * optional .FriendOnlineStatus online_status = 4; */ private int onlineStatus; /** - * optional .PlatformType platform_type = 15; + * optional .PlatformType platform_type = 5; */ private int platformType; /** - * optional .SimpleAvatarInfo simple_avatar_info = 6; + * optional bool is_banned = 12; */ - private final SimpleAvatarInfoOuterClass.SimpleAvatarInfo simpleAvatarInfo = SimpleAvatarInfoOuterClass.SimpleAvatarInfo.newInstance(); + private boolean isBanned; /** - * optional string nickname = 2; + * optional string signature = 6; + */ + private final Utf8String signature = Utf8String.newEmptyInstance(); + + /** + * optional string nickname = 13; */ private final Utf8String nickname = Utf8String.newEmptyInstance(); /** - * optional string signature = 9; + * repeated .AssistSimpleInfo assist_simple_info = 11; */ - private final Utf8String signature = Utf8String.newEmptyInstance(); + private final RepeatedMessage assistSimpleInfo = RepeatedMessage.newEmptyInstance(AssistSimpleInfoOuterClass.AssistSimpleInfo.getFactory()); private SimpleInfo() { } @@ -80,7 +86,7 @@ public final class SimpleInfoOuterClass { } /** - * optional int64 last_active_time = 12; + * optional int64 last_active_time = 9; * @return whether the lastActiveTime field is set */ public boolean hasLastActiveTime() { @@ -88,7 +94,7 @@ public final class SimpleInfoOuterClass { } /** - * optional int64 last_active_time = 12; + * optional int64 last_active_time = 9; * @return this */ public SimpleInfo clearLastActiveTime() { @@ -98,7 +104,7 @@ public final class SimpleInfoOuterClass { } /** - * optional int64 last_active_time = 12; + * optional int64 last_active_time = 9; * @return the lastActiveTime */ public long getLastActiveTime() { @@ -106,7 +112,7 @@ public final class SimpleInfoOuterClass { } /** - * optional int64 last_active_time = 12; + * optional int64 last_active_time = 9; * @param value the lastActiveTime to set * @return this */ @@ -154,7 +160,7 @@ public final class SimpleInfoOuterClass { } /** - * optional uint32 chat_bubble_id = 11; + * optional uint32 chat_bubble_id = 2; * @return whether the chatBubbleId field is set */ public boolean hasChatBubbleId() { @@ -162,7 +168,7 @@ public final class SimpleInfoOuterClass { } /** - * optional uint32 chat_bubble_id = 11; + * optional uint32 chat_bubble_id = 2; * @return this */ public SimpleInfo clearChatBubbleId() { @@ -172,7 +178,7 @@ public final class SimpleInfoOuterClass { } /** - * optional uint32 chat_bubble_id = 11; + * optional uint32 chat_bubble_id = 2; * @return the chatBubbleId */ public int getChatBubbleId() { @@ -180,7 +186,7 @@ public final class SimpleInfoOuterClass { } /** - * optional uint32 chat_bubble_id = 11; + * optional uint32 chat_bubble_id = 2; * @param value the chatBubbleId to set * @return this */ @@ -191,7 +197,7 @@ public final class SimpleInfoOuterClass { } /** - * optional uint32 head_icon = 13; + * optional uint32 head_icon = 3; * @return whether the headIcon field is set */ public boolean hasHeadIcon() { @@ -199,7 +205,7 @@ public final class SimpleInfoOuterClass { } /** - * optional uint32 head_icon = 13; + * optional uint32 head_icon = 3; * @return this */ public SimpleInfo clearHeadIcon() { @@ -209,7 +215,7 @@ public final class SimpleInfoOuterClass { } /** - * optional uint32 head_icon = 13; + * optional uint32 head_icon = 3; * @return the headIcon */ public int getHeadIcon() { @@ -217,7 +223,7 @@ public final class SimpleInfoOuterClass { } /** - * optional uint32 head_icon = 13; + * optional uint32 head_icon = 3; * @param value the headIcon to set * @return this */ @@ -228,7 +234,7 @@ public final class SimpleInfoOuterClass { } /** - * optional uint32 level = 14; + * optional uint32 level = 8; * @return whether the level field is set */ public boolean hasLevel() { @@ -236,7 +242,7 @@ public final class SimpleInfoOuterClass { } /** - * optional uint32 level = 14; + * optional uint32 level = 8; * @return this */ public SimpleInfo clearLevel() { @@ -246,7 +252,7 @@ public final class SimpleInfoOuterClass { } /** - * optional uint32 level = 14; + * optional uint32 level = 8; * @return the level */ public int getLevel() { @@ -254,7 +260,7 @@ public final class SimpleInfoOuterClass { } /** - * optional uint32 level = 14; + * optional uint32 level = 8; * @param value the level to set * @return this */ @@ -265,7 +271,7 @@ public final class SimpleInfoOuterClass { } /** - * optional .FriendOnlineStatus online_status = 3; + * optional .FriendOnlineStatus online_status = 4; * @return whether the onlineStatus field is set */ public boolean hasOnlineStatus() { @@ -273,7 +279,7 @@ public final class SimpleInfoOuterClass { } /** - * optional .FriendOnlineStatus online_status = 3; + * optional .FriendOnlineStatus online_status = 4; * @return this */ public SimpleInfo clearOnlineStatus() { @@ -283,7 +289,7 @@ public final class SimpleInfoOuterClass { } /** - * optional .FriendOnlineStatus online_status = 3; + * optional .FriendOnlineStatus online_status = 4; * @return the onlineStatus */ public FriendOnlineStatusOuterClass.FriendOnlineStatus getOnlineStatus() { @@ -316,7 +322,7 @@ public final class SimpleInfoOuterClass { } /** - * optional .FriendOnlineStatus online_status = 3; + * optional .FriendOnlineStatus online_status = 4; * @param value the onlineStatus to set * @return this */ @@ -327,7 +333,7 @@ public final class SimpleInfoOuterClass { } /** - * optional .PlatformType platform_type = 15; + * optional .PlatformType platform_type = 5; * @return whether the platformType field is set */ public boolean hasPlatformType() { @@ -335,7 +341,7 @@ public final class SimpleInfoOuterClass { } /** - * optional .PlatformType platform_type = 15; + * optional .PlatformType platform_type = 5; * @return this */ public SimpleInfo clearPlatformType() { @@ -345,7 +351,7 @@ public final class SimpleInfoOuterClass { } /** - * optional .PlatformType platform_type = 15; + * optional .PlatformType platform_type = 5; * @return the platformType */ public PlatformTypeOuterClass.PlatformType getPlatformType() { @@ -378,7 +384,7 @@ public final class SimpleInfoOuterClass { } /** - * optional .PlatformType platform_type = 15; + * optional .PlatformType platform_type = 5; * @param value the platformType to set * @return this */ @@ -389,147 +395,62 @@ public final class SimpleInfoOuterClass { } /** - * optional .SimpleAvatarInfo simple_avatar_info = 6; - * @return whether the simpleAvatarInfo field is set + * optional bool is_banned = 12; + * @return whether the isBanned field is set */ - public boolean hasSimpleAvatarInfo() { + public boolean hasIsBanned() { return (bitField0_ & 0x00000080) != 0; } /** - * optional .SimpleAvatarInfo simple_avatar_info = 6; + * optional bool is_banned = 12; * @return this */ - public SimpleInfo clearSimpleAvatarInfo() { + public SimpleInfo clearIsBanned() { bitField0_ &= ~0x00000080; - simpleAvatarInfo.clear(); + isBanned = false; return this; } /** - * 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. - * - * Use {@link #getMutableSimpleAvatarInfo()} if you want to modify it. - * - * @return internal storage object for reading + * optional bool is_banned = 12; + * @return the isBanned */ - public SimpleAvatarInfoOuterClass.SimpleAvatarInfo getSimpleAvatarInfo() { - return simpleAvatarInfo; + public boolean getIsBanned() { + return isBanned; } /** - * 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 - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public SimpleAvatarInfoOuterClass.SimpleAvatarInfo getMutableSimpleAvatarInfo() { - bitField0_ |= 0x00000080; - return simpleAvatarInfo; - } - - /** - * optional .SimpleAvatarInfo simple_avatar_info = 6; - * @param value the simpleAvatarInfo to set + * optional bool is_banned = 12; + * @param value the isBanned to set * @return this */ - public SimpleInfo setSimpleAvatarInfo(final SimpleAvatarInfoOuterClass.SimpleAvatarInfo value) { + public SimpleInfo setIsBanned(final boolean value) { bitField0_ |= 0x00000080; - simpleAvatarInfo.copyFrom(value); + isBanned = value; return this; } /** - * optional string nickname = 2; - * @return whether the nickname field is set + * optional string signature = 6; + * @return whether the signature field is set */ - public boolean hasNickname() { + public boolean hasSignature() { return (bitField0_ & 0x00000100) != 0; } /** - * optional string nickname = 2; - * @return this - */ - public SimpleInfo clearNickname() { - bitField0_ &= ~0x00000100; - nickname.clear(); - return this; - } - - /** - * optional string nickname = 2; - * @return the nickname - */ - public String getNickname() { - return nickname.getString(); - } - - /** - * optional string nickname = 2; - * @return internal {@code Utf8String} representation of nickname for reading - */ - public Utf8String getNicknameBytes() { - return this.nickname; - } - - /** - * optional string nickname = 2; - * @return internal {@code Utf8String} representation of nickname for modifications - */ - public Utf8String getMutableNicknameBytes() { - bitField0_ |= 0x00000100; - return this.nickname; - } - - /** - * optional string nickname = 2; - * @param value the nickname to set - * @return this - */ - public SimpleInfo setNickname(final CharSequence value) { - bitField0_ |= 0x00000100; - nickname.copyFrom(value); - return this; - } - - /** - * optional string nickname = 2; - * @param value the nickname to set - * @return this - */ - public SimpleInfo setNickname(final Utf8String value) { - bitField0_ |= 0x00000100; - nickname.copyFrom(value); - return this; - } - - /** - * optional string signature = 9; - * @return whether the signature field is set - */ - public boolean hasSignature() { - return (bitField0_ & 0x00000200) != 0; - } - - /** - * optional string signature = 9; + * optional string signature = 6; * @return this */ public SimpleInfo clearSignature() { - bitField0_ &= ~0x00000200; + bitField0_ &= ~0x00000100; signature.clear(); return this; } /** - * optional string signature = 9; + * optional string signature = 6; * @return the signature */ public String getSignature() { @@ -537,7 +458,7 @@ public final class SimpleInfoOuterClass { } /** - * optional string signature = 9; + * optional string signature = 6; * @return internal {@code Utf8String} representation of signature for reading */ public Utf8String getSignatureBytes() { @@ -545,36 +466,171 @@ public final class SimpleInfoOuterClass { } /** - * optional string signature = 9; + * optional string signature = 6; * @return internal {@code Utf8String} representation of signature for modifications */ public Utf8String getMutableSignatureBytes() { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000100; return this.signature; } /** - * optional string signature = 9; + * optional string signature = 6; * @param value the signature to set * @return this */ public SimpleInfo setSignature(final CharSequence value) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000100; signature.copyFrom(value); return this; } /** - * optional string signature = 9; + * optional string signature = 6; * @param value the signature to set * @return this */ public SimpleInfo setSignature(final Utf8String value) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000100; signature.copyFrom(value); return this; } + /** + * optional string nickname = 13; + * @return whether the nickname field is set + */ + public boolean hasNickname() { + return (bitField0_ & 0x00000200) != 0; + } + + /** + * optional string nickname = 13; + * @return this + */ + public SimpleInfo clearNickname() { + bitField0_ &= ~0x00000200; + nickname.clear(); + return this; + } + + /** + * optional string nickname = 13; + * @return the nickname + */ + public String getNickname() { + return nickname.getString(); + } + + /** + * optional string nickname = 13; + * @return internal {@code Utf8String} representation of nickname for reading + */ + public Utf8String getNicknameBytes() { + return this.nickname; + } + + /** + * optional string nickname = 13; + * @return internal {@code Utf8String} representation of nickname for modifications + */ + public Utf8String getMutableNicknameBytes() { + bitField0_ |= 0x00000200; + return this.nickname; + } + + /** + * optional string nickname = 13; + * @param value the nickname to set + * @return this + */ + public SimpleInfo setNickname(final CharSequence value) { + bitField0_ |= 0x00000200; + nickname.copyFrom(value); + return this; + } + + /** + * optional string nickname = 13; + * @param value the nickname to set + * @return this + */ + public SimpleInfo setNickname(final Utf8String value) { + bitField0_ |= 0x00000200; + nickname.copyFrom(value); + return this; + } + + /** + * repeated .AssistSimpleInfo assist_simple_info = 11; + * @return whether the assistSimpleInfo field is set + */ + public boolean hasAssistSimpleInfo() { + return (bitField0_ & 0x00000400) != 0; + } + + /** + * repeated .AssistSimpleInfo assist_simple_info = 11; + * @return this + */ + public SimpleInfo clearAssistSimpleInfo() { + bitField0_ &= ~0x00000400; + assistSimpleInfo.clear(); + return this; + } + + /** + * repeated .AssistSimpleInfo assist_simple_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. + * + * Use {@link #getMutableAssistSimpleInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getAssistSimpleInfo() { + return assistSimpleInfo; + } + + /** + * repeated .AssistSimpleInfo assist_simple_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 + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableAssistSimpleInfo( + ) { + bitField0_ |= 0x00000400; + return assistSimpleInfo; + } + + /** + * repeated .AssistSimpleInfo assist_simple_info = 11; + * @param value the assistSimpleInfo to add + * @return this + */ + public SimpleInfo addAssistSimpleInfo(final AssistSimpleInfoOuterClass.AssistSimpleInfo value) { + bitField0_ |= 0x00000400; + assistSimpleInfo.add(value); + return this; + } + + /** + * repeated .AssistSimpleInfo assist_simple_info = 11; + * @param values the assistSimpleInfo to add + * @return this + */ + public SimpleInfo addAllAssistSimpleInfo( + final AssistSimpleInfoOuterClass.AssistSimpleInfo... values) { + bitField0_ |= 0x00000400; + assistSimpleInfo.addAll(values); + return this; + } + @Override public SimpleInfo copyFrom(final SimpleInfo other) { cachedSize = other.cachedSize; @@ -587,9 +643,10 @@ public final class SimpleInfoOuterClass { level = other.level; onlineStatus = other.onlineStatus; platformType = other.platformType; - simpleAvatarInfo.copyFrom(other.simpleAvatarInfo); - nickname.copyFrom(other.nickname); + isBanned = other.isBanned; signature.copyFrom(other.signature); + nickname.copyFrom(other.nickname); + assistSimpleInfo.copyFrom(other.assistSimpleInfo); } return this; } @@ -621,14 +678,17 @@ public final class SimpleInfoOuterClass { if (other.hasPlatformType()) { setPlatformTypeValue(other.platformType); } - if (other.hasSimpleAvatarInfo()) { - getMutableSimpleAvatarInfo().mergeFrom(other.simpleAvatarInfo); + if (other.hasIsBanned()) { + setIsBanned(other.isBanned); + } + if (other.hasSignature()) { + getMutableSignatureBytes().copyFrom(other.signature); } if (other.hasNickname()) { getMutableNicknameBytes().copyFrom(other.nickname); } - if (other.hasSignature()) { - getMutableSignatureBytes().copyFrom(other.signature); + if (other.hasAssistSimpleInfo()) { + getMutableAssistSimpleInfo().addAll(other.assistSimpleInfo); } return this; } @@ -647,9 +707,10 @@ public final class SimpleInfoOuterClass { level = 0; onlineStatus = 0; platformType = 0; - simpleAvatarInfo.clear(); - nickname.clear(); + isBanned = false; signature.clear(); + nickname.clear(); + assistSimpleInfo.clear(); return this; } @@ -660,9 +721,9 @@ public final class SimpleInfoOuterClass { } cachedSize = -1; bitField0_ = 0; - simpleAvatarInfo.clearQuick(); - nickname.clear(); signature.clear(); + nickname.clear(); + assistSimpleInfo.clearQuick(); return this; } @@ -683,15 +744,16 @@ public final class SimpleInfoOuterClass { && (!hasLevel() || level == other.level) && (!hasOnlineStatus() || onlineStatus == other.onlineStatus) && (!hasPlatformType() || platformType == other.platformType) - && (!hasSimpleAvatarInfo() || simpleAvatarInfo.equals(other.simpleAvatarInfo)) + && (!hasIsBanned() || isBanned == other.isBanned) + && (!hasSignature() || signature.equals(other.signature)) && (!hasNickname() || nickname.equals(other.nickname)) - && (!hasSignature() || signature.equals(other.signature)); + && (!hasAssistSimpleInfo() || assistSimpleInfo.equals(other.assistSimpleInfo)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 72); output.writeInt64NoTag(lastActiveTime); } if ((bitField0_ & 0x00000002) != 0) { @@ -699,36 +761,42 @@ public final class SimpleInfoOuterClass { output.writeUInt32NoTag(uid); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 16); output.writeUInt32NoTag(chatBubbleId); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 24); output.writeUInt32NoTag(headIcon); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 64); output.writeUInt32NoTag(level); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 32); output.writeEnumNoTag(onlineStatus); } if ((bitField0_ & 0x00000040) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 40); output.writeEnumNoTag(platformType); } if ((bitField0_ & 0x00000080) != 0) { - output.writeRawByte((byte) 50); - output.writeMessageNoTag(simpleAvatarInfo); + output.writeRawByte((byte) 96); + output.writeBoolNoTag(isBanned); } if ((bitField0_ & 0x00000100) != 0) { - output.writeRawByte((byte) 18); - output.writeStringNoTag(nickname); + output.writeRawByte((byte) 50); + output.writeStringNoTag(signature); } if ((bitField0_ & 0x00000200) != 0) { - output.writeRawByte((byte) 74); - output.writeStringNoTag(signature); + output.writeRawByte((byte) 106); + output.writeStringNoTag(nickname); + } + if ((bitField0_ & 0x00000400) != 0) { + for (int i = 0; i < assistSimpleInfo.length(); i++) { + output.writeRawByte((byte) 90); + output.writeMessageNoTag(assistSimpleInfo.get(i)); + } } } @@ -757,13 +825,16 @@ public final class SimpleInfoOuterClass { size += 1 + ProtoSink.computeEnumSizeNoTag(platformType); } if ((bitField0_ & 0x00000080) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(simpleAvatarInfo); + size += 2; } if ((bitField0_ & 0x00000100) != 0) { - size += 1 + ProtoSink.computeStringSizeNoTag(nickname); + size += 1 + ProtoSink.computeStringSizeNoTag(signature); } if ((bitField0_ & 0x00000200) != 0) { - size += 1 + ProtoSink.computeStringSizeNoTag(signature); + size += 1 + ProtoSink.computeStringSizeNoTag(nickname); + } + if ((bitField0_ & 0x00000400) != 0) { + size += (1 * assistSimpleInfo.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(assistSimpleInfo); } return size; } @@ -775,7 +846,7 @@ public final class SimpleInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 96: { + case 72: { // lastActiveTime lastActiveTime = input.readInt64(); bitField0_ |= 0x00000001; @@ -789,38 +860,38 @@ public final class SimpleInfoOuterClass { uid = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 88) { + if (tag != 16) { break; } } - case 88: { + case 16: { // chatBubbleId chatBubbleId = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 104) { - break; - } - } - case 104: { - // headIcon - headIcon = input.readUInt32(); - bitField0_ |= 0x00000008; - tag = input.readTag(); - if (tag != 112) { - break; - } - } - case 112: { - // level - level = input.readUInt32(); - bitField0_ |= 0x00000010; - tag = input.readTag(); if (tag != 24) { break; } } case 24: { + // headIcon + headIcon = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 64) { + break; + } + } + case 64: { + // level + level = input.readUInt32(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { // onlineStatus final int value = input.readInt32(); if (FriendOnlineStatusOuterClass.FriendOnlineStatus.forNumber(value) != null) { @@ -828,11 +899,11 @@ public final class SimpleInfoOuterClass { bitField0_ |= 0x00000020; } tag = input.readTag(); - if (tag != 120) { + if (tag != 40) { break; } } - case 120: { + case 40: { // platformType final int value = input.readInt32(); if (PlatformTypeOuterClass.PlatformType.forNumber(value) != null) { @@ -840,33 +911,41 @@ public final class SimpleInfoOuterClass { bitField0_ |= 0x00000040; } tag = input.readTag(); + if (tag != 96) { + break; + } + } + case 96: { + // isBanned + isBanned = input.readBool(); + bitField0_ |= 0x00000080; + tag = input.readTag(); if (tag != 50) { break; } } case 50: { - // simpleAvatarInfo - input.readMessage(simpleAvatarInfo); - bitField0_ |= 0x00000080; - tag = input.readTag(); - if (tag != 18) { - break; - } - } - case 18: { - // nickname - input.readString(nickname); - bitField0_ |= 0x00000100; - tag = input.readTag(); - if (tag != 74) { - break; - } - } - case 74: { // signature input.readString(signature); + bitField0_ |= 0x00000100; + tag = input.readTag(); + if (tag != 106) { + break; + } + } + case 106: { + // nickname + input.readString(nickname); bitField0_ |= 0x00000200; tag = input.readTag(); + if (tag != 90) { + break; + } + } + case 90: { + // assistSimpleInfo + tag = input.readRepeatedMessage(assistSimpleInfo, tag); + bitField0_ |= 0x00000400; if (tag != 0) { break; } @@ -910,13 +989,16 @@ public final class SimpleInfoOuterClass { output.writeEnum(FieldNames.platformType, platformType, PlatformTypeOuterClass.PlatformType.converter()); } if ((bitField0_ & 0x00000080) != 0) { - output.writeMessage(FieldNames.simpleAvatarInfo, simpleAvatarInfo); + output.writeBool(FieldNames.isBanned, isBanned); } if ((bitField0_ & 0x00000100) != 0) { - output.writeString(FieldNames.nickname, nickname); + output.writeString(FieldNames.signature, signature); } if ((bitField0_ & 0x00000200) != 0) { - output.writeString(FieldNames.signature, signature); + output.writeString(FieldNames.nickname, nickname); + } + if ((bitField0_ & 0x00000400) != 0) { + output.writeRepeatedMessage(FieldNames.assistSimpleInfo, assistSimpleInfo); } output.endObject(); } @@ -1020,11 +1102,11 @@ public final class SimpleInfoOuterClass { } break; } - case 272129273: - case 338092231: { - if (input.isAtField(FieldNames.simpleAvatarInfo)) { + case -722308888: + case -932303917: { + if (input.isAtField(FieldNames.isBanned)) { if (!input.trySkipNullValue()) { - input.readMessage(simpleAvatarInfo); + isBanned = input.readBool(); bitField0_ |= 0x00000080; } } else { @@ -1032,21 +1114,21 @@ public final class SimpleInfoOuterClass { } break; } - case 70690926: { - if (input.isAtField(FieldNames.nickname)) { - if (!input.trySkipNullValue()) { - input.readString(nickname); - bitField0_ |= 0x00000100; - } - } else { - input.skipUnknownField(); - } - break; - } case 1073584312: { if (input.isAtField(FieldNames.signature)) { if (!input.trySkipNullValue()) { input.readString(signature); + bitField0_ |= 0x00000100; + } + } else { + input.skipUnknownField(); + } + break; + } + case 70690926: { + if (input.isAtField(FieldNames.nickname)) { + if (!input.trySkipNullValue()) { + input.readString(nickname); bitField0_ |= 0x00000200; } } else { @@ -1054,6 +1136,18 @@ public final class SimpleInfoOuterClass { } break; } + case 773591241: + case -143608251: { + if (input.isAtField(FieldNames.assistSimpleInfo)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(assistSimpleInfo); + bitField0_ |= 0x00000400; + } + } else { + input.skipUnknownField(); + } + break; + } default: { input.skipUnknownField(); break; @@ -1120,11 +1214,13 @@ public final class SimpleInfoOuterClass { static final FieldName platformType = FieldName.forField("platformType", "platform_type"); - static final FieldName simpleAvatarInfo = FieldName.forField("simpleAvatarInfo", "simple_avatar_info"); + static final FieldName isBanned = FieldName.forField("isBanned", "is_banned"); + + static final FieldName signature = FieldName.forField("signature"); static final FieldName nickname = FieldName.forField("nickname"); - static final FieldName signature = FieldName.forField("signature"); + static final FieldName assistSimpleInfo = FieldName.forField("assistSimpleInfo", "assist_simple_info"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/StaminaInfoScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/StaminaInfoScNotifyOuterClass.java index b512ffc..c71a524 100644 --- a/src/generated/main/emu/lunarcore/proto/StaminaInfoScNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/StaminaInfoScNotifyOuterClass.java @@ -19,17 +19,17 @@ public final class StaminaInfoScNotifyOuterClass { private static final long serialVersionUID = 0L; /** - * optional int64 next_recover_time = 7; + * optional int64 next_recover_time = 11; */ private long nextRecoverTime; /** - * optional uint32 stamina = 4; + * optional uint32 stamina = 3; */ private int stamina; /** - * optional uint32 reserve_stamina = 13; + * optional uint32 reserve_stamina = 7; */ private int reserveStamina; @@ -44,7 +44,7 @@ public final class StaminaInfoScNotifyOuterClass { } /** - * optional int64 next_recover_time = 7; + * optional int64 next_recover_time = 11; * @return whether the nextRecoverTime field is set */ public boolean hasNextRecoverTime() { @@ -52,7 +52,7 @@ public final class StaminaInfoScNotifyOuterClass { } /** - * optional int64 next_recover_time = 7; + * optional int64 next_recover_time = 11; * @return this */ public StaminaInfoScNotify clearNextRecoverTime() { @@ -62,7 +62,7 @@ public final class StaminaInfoScNotifyOuterClass { } /** - * optional int64 next_recover_time = 7; + * optional int64 next_recover_time = 11; * @return the nextRecoverTime */ public long getNextRecoverTime() { @@ -70,7 +70,7 @@ public final class StaminaInfoScNotifyOuterClass { } /** - * optional int64 next_recover_time = 7; + * optional int64 next_recover_time = 11; * @param value the nextRecoverTime to set * @return this */ @@ -81,7 +81,7 @@ public final class StaminaInfoScNotifyOuterClass { } /** - * optional uint32 stamina = 4; + * optional uint32 stamina = 3; * @return whether the stamina field is set */ public boolean hasStamina() { @@ -89,7 +89,7 @@ public final class StaminaInfoScNotifyOuterClass { } /** - * optional uint32 stamina = 4; + * optional uint32 stamina = 3; * @return this */ public StaminaInfoScNotify clearStamina() { @@ -99,7 +99,7 @@ public final class StaminaInfoScNotifyOuterClass { } /** - * optional uint32 stamina = 4; + * optional uint32 stamina = 3; * @return the stamina */ public int getStamina() { @@ -107,7 +107,7 @@ public final class StaminaInfoScNotifyOuterClass { } /** - * optional uint32 stamina = 4; + * optional uint32 stamina = 3; * @param value the stamina to set * @return this */ @@ -118,7 +118,7 @@ public final class StaminaInfoScNotifyOuterClass { } /** - * optional uint32 reserve_stamina = 13; + * optional uint32 reserve_stamina = 7; * @return whether the reserveStamina field is set */ public boolean hasReserveStamina() { @@ -126,7 +126,7 @@ public final class StaminaInfoScNotifyOuterClass { } /** - * optional uint32 reserve_stamina = 13; + * optional uint32 reserve_stamina = 7; * @return this */ public StaminaInfoScNotify clearReserveStamina() { @@ -136,7 +136,7 @@ public final class StaminaInfoScNotifyOuterClass { } /** - * optional uint32 reserve_stamina = 13; + * optional uint32 reserve_stamina = 7; * @return the reserveStamina */ public int getReserveStamina() { @@ -144,7 +144,7 @@ public final class StaminaInfoScNotifyOuterClass { } /** - * optional uint32 reserve_stamina = 13; + * optional uint32 reserve_stamina = 7; * @param value the reserveStamina to set * @return this */ @@ -225,15 +225,15 @@ public final class StaminaInfoScNotifyOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 88); output.writeInt64NoTag(nextRecoverTime); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 32); + output.writeRawByte((byte) 24); output.writeUInt32NoTag(stamina); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 56); output.writeUInt32NoTag(reserveStamina); } } @@ -260,25 +260,25 @@ public final class StaminaInfoScNotifyOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 56: { + case 88: { // nextRecoverTime nextRecoverTime = input.readInt64(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 32) { + if (tag != 24) { break; } } - case 32: { + case 24: { // stamina stamina = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 104) { + if (tag != 56) { break; } } - case 104: { + case 56: { // reserveStamina reserveStamina = input.readUInt32(); bitField0_ |= 0x00000004; diff --git a/src/generated/main/emu/lunarcore/proto/StartChallengeCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/StartChallengeCsReqOuterClass.java index 9bf148d..6a40886 100644 --- a/src/generated/main/emu/lunarcore/proto/StartChallengeCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/StartChallengeCsReqOuterClass.java @@ -19,12 +19,12 @@ public final class StartChallengeCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 challenge_id = 6; + * optional uint32 challenge_id = 4; */ private int challengeId; /** - * optional .StartChallengeStoryInfo story_info = 9; + * optional .StartChallengeStoryInfo story_info = 10; */ private final StartChallengeStoryInfoOuterClass.StartChallengeStoryInfo storyInfo = StartChallengeStoryInfoOuterClass.StartChallengeStoryInfo.newInstance(); @@ -39,7 +39,7 @@ public final class StartChallengeCsReqOuterClass { } /** - * optional uint32 challenge_id = 6; + * optional uint32 challenge_id = 4; * @return whether the challengeId field is set */ public boolean hasChallengeId() { @@ -47,7 +47,7 @@ public final class StartChallengeCsReqOuterClass { } /** - * optional uint32 challenge_id = 6; + * optional uint32 challenge_id = 4; * @return this */ public StartChallengeCsReq clearChallengeId() { @@ -57,7 +57,7 @@ public final class StartChallengeCsReqOuterClass { } /** - * optional uint32 challenge_id = 6; + * optional uint32 challenge_id = 4; * @return the challengeId */ public int getChallengeId() { @@ -65,7 +65,7 @@ public final class StartChallengeCsReqOuterClass { } /** - * optional uint32 challenge_id = 6; + * optional uint32 challenge_id = 4; * @param value the challengeId to set * @return this */ @@ -76,7 +76,7 @@ public final class StartChallengeCsReqOuterClass { } /** - * optional .StartChallengeStoryInfo story_info = 9; + * optional .StartChallengeStoryInfo story_info = 10; * @return whether the storyInfo field is set */ public boolean hasStoryInfo() { @@ -84,7 +84,7 @@ public final class StartChallengeCsReqOuterClass { } /** - * optional .StartChallengeStoryInfo story_info = 9; + * optional .StartChallengeStoryInfo story_info = 10; * @return this */ public StartChallengeCsReq clearStoryInfo() { @@ -94,7 +94,7 @@ public final class StartChallengeCsReqOuterClass { } /** - * optional .StartChallengeStoryInfo story_info = 9; + * optional .StartChallengeStoryInfo story_info = 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. @@ -108,7 +108,7 @@ public final class StartChallengeCsReqOuterClass { } /** - * optional .StartChallengeStoryInfo story_info = 9; + * optional .StartChallengeStoryInfo story_info = 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 @@ -122,7 +122,7 @@ public final class StartChallengeCsReqOuterClass { } /** - * optional .StartChallengeStoryInfo story_info = 9; + * optional .StartChallengeStoryInfo story_info = 10; * @param value the storyInfo to set * @return this */ @@ -199,11 +199,11 @@ public final class StartChallengeCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(challengeId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 74); + output.writeRawByte((byte) 82); output.writeMessageNoTag(storyInfo); } } @@ -227,16 +227,16 @@ public final class StartChallengeCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 48: { + case 32: { // challengeId challengeId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 74) { + if (tag != 82) { break; } } - case 74: { + case 82: { // storyInfo input.readMessage(storyInfo); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/StartChallengeScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/StartChallengeScRspOuterClass.java index 1e53ca4..31f5c7f 100644 --- a/src/generated/main/emu/lunarcore/proto/StartChallengeScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/StartChallengeScRspOuterClass.java @@ -19,22 +19,22 @@ public final class StartChallengeScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 1; + * optional uint32 retcode = 7; */ private int retcode; /** - * optional .ChallengeInfo challenge_info = 3; + * optional .ChallengeInfo challenge_info = 6; */ private final ChallengeInfoOuterClass.ChallengeInfo challengeInfo = ChallengeInfoOuterClass.ChallengeInfo.newInstance(); /** - * optional .LineupInfo lineup = 4; + * optional .LineupInfo lineup = 13; */ private final LineupInfoOuterClass.LineupInfo lineup = LineupInfoOuterClass.LineupInfo.newInstance(); /** - * optional .SceneInfo scene = 11; + * optional .SceneInfo scene = 15; */ private final SceneInfoOuterClass.SceneInfo scene = SceneInfoOuterClass.SceneInfo.newInstance(); @@ -49,7 +49,7 @@ public final class StartChallengeScRspOuterClass { } /** - * optional uint32 retcode = 1; + * optional uint32 retcode = 7; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -57,7 +57,7 @@ public final class StartChallengeScRspOuterClass { } /** - * optional uint32 retcode = 1; + * optional uint32 retcode = 7; * @return this */ public StartChallengeScRsp clearRetcode() { @@ -67,7 +67,7 @@ public final class StartChallengeScRspOuterClass { } /** - * optional uint32 retcode = 1; + * optional uint32 retcode = 7; * @return the retcode */ public int getRetcode() { @@ -75,7 +75,7 @@ public final class StartChallengeScRspOuterClass { } /** - * optional uint32 retcode = 1; + * optional uint32 retcode = 7; * @param value the retcode to set * @return this */ @@ -86,7 +86,7 @@ public final class StartChallengeScRspOuterClass { } /** - * optional .ChallengeInfo challenge_info = 3; + * optional .ChallengeInfo challenge_info = 6; * @return whether the challengeInfo field is set */ public boolean hasChallengeInfo() { @@ -94,7 +94,7 @@ public final class StartChallengeScRspOuterClass { } /** - * optional .ChallengeInfo challenge_info = 3; + * optional .ChallengeInfo challenge_info = 6; * @return this */ public StartChallengeScRsp clearChallengeInfo() { @@ -104,7 +104,7 @@ public final class StartChallengeScRspOuterClass { } /** - * optional .ChallengeInfo challenge_info = 3; + * optional .ChallengeInfo challenge_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. @@ -118,7 +118,7 @@ public final class StartChallengeScRspOuterClass { } /** - * optional .ChallengeInfo challenge_info = 3; + * optional .ChallengeInfo challenge_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 @@ -132,7 +132,7 @@ public final class StartChallengeScRspOuterClass { } /** - * optional .ChallengeInfo challenge_info = 3; + * optional .ChallengeInfo challenge_info = 6; * @param value the challengeInfo to set * @return this */ @@ -143,7 +143,7 @@ public final class StartChallengeScRspOuterClass { } /** - * optional .LineupInfo lineup = 4; + * optional .LineupInfo lineup = 13; * @return whether the lineup field is set */ public boolean hasLineup() { @@ -151,7 +151,7 @@ public final class StartChallengeScRspOuterClass { } /** - * optional .LineupInfo lineup = 4; + * optional .LineupInfo lineup = 13; * @return this */ public StartChallengeScRsp clearLineup() { @@ -161,7 +161,7 @@ public final class StartChallengeScRspOuterClass { } /** - * optional .LineupInfo lineup = 4; + * optional .LineupInfo lineup = 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. @@ -175,7 +175,7 @@ public final class StartChallengeScRspOuterClass { } /** - * optional .LineupInfo lineup = 4; + * optional .LineupInfo lineup = 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 @@ -189,7 +189,7 @@ public final class StartChallengeScRspOuterClass { } /** - * optional .LineupInfo lineup = 4; + * optional .LineupInfo lineup = 13; * @param value the lineup to set * @return this */ @@ -200,7 +200,7 @@ public final class StartChallengeScRspOuterClass { } /** - * optional .SceneInfo scene = 11; + * optional .SceneInfo scene = 15; * @return whether the scene field is set */ public boolean hasScene() { @@ -208,7 +208,7 @@ public final class StartChallengeScRspOuterClass { } /** - * optional .SceneInfo scene = 11; + * optional .SceneInfo scene = 15; * @return this */ public StartChallengeScRsp clearScene() { @@ -218,7 +218,7 @@ public final class StartChallengeScRspOuterClass { } /** - * optional .SceneInfo scene = 11; + * 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. @@ -232,7 +232,7 @@ public final class StartChallengeScRspOuterClass { } /** - * optional .SceneInfo scene = 11; + * 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 @@ -246,7 +246,7 @@ public final class StartChallengeScRspOuterClass { } /** - * optional .SceneInfo scene = 11; + * optional .SceneInfo scene = 15; * @param value the scene to set * @return this */ @@ -336,19 +336,19 @@ public final class StartChallengeScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); + output.writeRawByte((byte) 56); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 26); + output.writeRawByte((byte) 50); output.writeMessageNoTag(challengeInfo); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 34); + output.writeRawByte((byte) 106); output.writeMessageNoTag(lineup); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 90); + output.writeRawByte((byte) 122); output.writeMessageNoTag(scene); } } @@ -378,34 +378,34 @@ public final class StartChallengeScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 8: { + case 56: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 26) { + if (tag != 50) { break; } } - case 26: { + case 50: { // challengeInfo input.readMessage(challengeInfo); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 34) { + if (tag != 106) { break; } } - case 34: { + case 106: { // lineup input.readMessage(lineup); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 90) { + if (tag != 122) { break; } } - case 90: { + case 122: { // scene input.readMessage(scene); bitField0_ |= 0x00000008; diff --git a/src/generated/main/emu/lunarcore/proto/StartChallengeStoryBuffInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/StartChallengeStoryBuffInfoOuterClass.java index fc5547b..8793083 100644 --- a/src/generated/main/emu/lunarcore/proto/StartChallengeStoryBuffInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/StartChallengeStoryBuffInfoOuterClass.java @@ -19,12 +19,12 @@ public final class StartChallengeStoryBuffInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 story_buff_one = 12; + * optional uint32 story_buff_one = 8; */ private int storyBuffOne; /** - * optional uint32 story_buff_two = 13; + * optional uint32 story_buff_two = 9; */ private int storyBuffTwo; @@ -39,7 +39,7 @@ public final class StartChallengeStoryBuffInfoOuterClass { } /** - * optional uint32 story_buff_one = 12; + * optional uint32 story_buff_one = 8; * @return whether the storyBuffOne field is set */ public boolean hasStoryBuffOne() { @@ -47,7 +47,7 @@ public final class StartChallengeStoryBuffInfoOuterClass { } /** - * optional uint32 story_buff_one = 12; + * optional uint32 story_buff_one = 8; * @return this */ public StartChallengeStoryBuffInfo clearStoryBuffOne() { @@ -57,7 +57,7 @@ public final class StartChallengeStoryBuffInfoOuterClass { } /** - * optional uint32 story_buff_one = 12; + * optional uint32 story_buff_one = 8; * @return the storyBuffOne */ public int getStoryBuffOne() { @@ -65,7 +65,7 @@ public final class StartChallengeStoryBuffInfoOuterClass { } /** - * optional uint32 story_buff_one = 12; + * optional uint32 story_buff_one = 8; * @param value the storyBuffOne to set * @return this */ @@ -76,7 +76,7 @@ public final class StartChallengeStoryBuffInfoOuterClass { } /** - * optional uint32 story_buff_two = 13; + * optional uint32 story_buff_two = 9; * @return whether the storyBuffTwo field is set */ public boolean hasStoryBuffTwo() { @@ -84,7 +84,7 @@ public final class StartChallengeStoryBuffInfoOuterClass { } /** - * optional uint32 story_buff_two = 13; + * optional uint32 story_buff_two = 9; * @return this */ public StartChallengeStoryBuffInfo clearStoryBuffTwo() { @@ -94,7 +94,7 @@ public final class StartChallengeStoryBuffInfoOuterClass { } /** - * optional uint32 story_buff_two = 13; + * optional uint32 story_buff_two = 9; * @return the storyBuffTwo */ public int getStoryBuffTwo() { @@ -102,7 +102,7 @@ public final class StartChallengeStoryBuffInfoOuterClass { } /** - * optional uint32 story_buff_two = 13; + * optional uint32 story_buff_two = 9; * @param value the storyBuffTwo to set * @return this */ @@ -177,11 +177,11 @@ public final class StartChallengeStoryBuffInfoOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 64); output.writeUInt32NoTag(storyBuffOne); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 72); output.writeUInt32NoTag(storyBuffTwo); } } @@ -205,16 +205,16 @@ public final class StartChallengeStoryBuffInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 96: { + case 64: { // storyBuffOne storyBuffOne = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 104) { + if (tag != 72) { break; } } - case 104: { + case 72: { // storyBuffTwo storyBuffTwo = input.readUInt32(); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/StartChallengeStoryInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/StartChallengeStoryInfoOuterClass.java index db16bdc..690876d 100644 --- a/src/generated/main/emu/lunarcore/proto/StartChallengeStoryInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/StartChallengeStoryInfoOuterClass.java @@ -19,7 +19,7 @@ public final class StartChallengeStoryInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional .StartChallengeStoryBuffInfo story_buff_info = 1; + * optional .StartChallengeStoryBuffInfo story_buff_info = 2; */ private final StartChallengeStoryBuffInfoOuterClass.StartChallengeStoryBuffInfo storyBuffInfo = StartChallengeStoryBuffInfoOuterClass.StartChallengeStoryBuffInfo.newInstance(); @@ -34,7 +34,7 @@ public final class StartChallengeStoryInfoOuterClass { } /** - * optional .StartChallengeStoryBuffInfo story_buff_info = 1; + * optional .StartChallengeStoryBuffInfo story_buff_info = 2; * @return whether the storyBuffInfo field is set */ public boolean hasStoryBuffInfo() { @@ -42,7 +42,7 @@ public final class StartChallengeStoryInfoOuterClass { } /** - * optional .StartChallengeStoryBuffInfo story_buff_info = 1; + * optional .StartChallengeStoryBuffInfo story_buff_info = 2; * @return this */ public StartChallengeStoryInfo clearStoryBuffInfo() { @@ -52,7 +52,7 @@ public final class StartChallengeStoryInfoOuterClass { } /** - * optional .StartChallengeStoryBuffInfo story_buff_info = 1; + * optional .StartChallengeStoryBuffInfo story_buff_info = 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. @@ -66,7 +66,7 @@ public final class StartChallengeStoryInfoOuterClass { } /** - * optional .StartChallengeStoryBuffInfo story_buff_info = 1; + * optional .StartChallengeStoryBuffInfo story_buff_info = 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 final class StartChallengeStoryInfoOuterClass { } /** - * optional .StartChallengeStoryBuffInfo story_buff_info = 1; + * optional .StartChallengeStoryBuffInfo story_buff_info = 2; * @param value the storyBuffInfo to set * @return this */ @@ -152,7 +152,7 @@ public final class StartChallengeStoryInfoOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 10); + output.writeRawByte((byte) 18); output.writeMessageNoTag(storyBuffInfo); } } @@ -173,7 +173,7 @@ public final class StartChallengeStoryInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 10: { + case 18: { // storyBuffInfo input.readMessage(storyBuffInfo); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/StartCocoonStageCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/StartCocoonStageCsReqOuterClass.java index 7c832a2..ea29037 100644 --- a/src/generated/main/emu/lunarcore/proto/StartCocoonStageCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/StartCocoonStageCsReqOuterClass.java @@ -19,25 +19,25 @@ public final class StartCocoonStageCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 world_level = 5; - */ - private int worldLevel; - - /** - * optional uint32 wave = 11; - */ - private int wave; - - /** - * optional uint32 cocoon_id = 12; + * optional uint32 cocoon_id = 5; */ private int cocoonId; /** - * optional uint32 prop_entity_id = 14; + * optional uint32 prop_entity_id = 6; */ private int propEntityId; + /** + * optional uint32 world_level = 7; + */ + private int worldLevel; + + /** + * optional uint32 wave = 14; + */ + private int wave; + private StartCocoonStageCsReq() { } @@ -49,99 +49,25 @@ public final class StartCocoonStageCsReqOuterClass { } /** - * optional uint32 world_level = 5; - * @return whether the worldLevel field is set + * optional uint32 cocoon_id = 5; + * @return whether the cocoonId field is set */ - public boolean hasWorldLevel() { + public boolean hasCocoonId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 world_level = 5; - * @return this - */ - public StartCocoonStageCsReq clearWorldLevel() { - bitField0_ &= ~0x00000001; - worldLevel = 0; - return this; - } - - /** - * optional uint32 world_level = 5; - * @return the worldLevel - */ - public int getWorldLevel() { - return worldLevel; - } - - /** - * optional uint32 world_level = 5; - * @param value the worldLevel to set - * @return this - */ - public StartCocoonStageCsReq setWorldLevel(final int value) { - bitField0_ |= 0x00000001; - worldLevel = value; - return this; - } - - /** - * optional uint32 wave = 11; - * @return whether the wave field is set - */ - public boolean hasWave() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 wave = 11; - * @return this - */ - public StartCocoonStageCsReq clearWave() { - bitField0_ &= ~0x00000002; - wave = 0; - return this; - } - - /** - * optional uint32 wave = 11; - * @return the wave - */ - public int getWave() { - return wave; - } - - /** - * optional uint32 wave = 11; - * @param value the wave to set - * @return this - */ - public StartCocoonStageCsReq setWave(final int value) { - bitField0_ |= 0x00000002; - wave = value; - return this; - } - - /** - * optional uint32 cocoon_id = 12; - * @return whether the cocoonId field is set - */ - public boolean hasCocoonId() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 cocoon_id = 12; + * optional uint32 cocoon_id = 5; * @return this */ public StartCocoonStageCsReq clearCocoonId() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000001; cocoonId = 0; return this; } /** - * optional uint32 cocoon_id = 12; + * optional uint32 cocoon_id = 5; * @return the cocoonId */ public int getCocoonId() { @@ -149,36 +75,36 @@ public final class StartCocoonStageCsReqOuterClass { } /** - * optional uint32 cocoon_id = 12; + * optional uint32 cocoon_id = 5; * @param value the cocoonId to set * @return this */ public StartCocoonStageCsReq setCocoonId(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; cocoonId = value; return this; } /** - * optional uint32 prop_entity_id = 14; + * optional uint32 prop_entity_id = 6; * @return whether the propEntityId field is set */ public boolean hasPropEntityId() { - return (bitField0_ & 0x00000008) != 0; + return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 prop_entity_id = 14; + * optional uint32 prop_entity_id = 6; * @return this */ public StartCocoonStageCsReq clearPropEntityId() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000002; propEntityId = 0; return this; } /** - * optional uint32 prop_entity_id = 14; + * optional uint32 prop_entity_id = 6; * @return the propEntityId */ public int getPropEntityId() { @@ -186,25 +112,99 @@ public final class StartCocoonStageCsReqOuterClass { } /** - * optional uint32 prop_entity_id = 14; + * optional uint32 prop_entity_id = 6; * @param value the propEntityId to set * @return this */ public StartCocoonStageCsReq setPropEntityId(final int value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000002; propEntityId = value; return this; } + /** + * optional uint32 world_level = 7; + * @return whether the worldLevel field is set + */ + public boolean hasWorldLevel() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 world_level = 7; + * @return this + */ + public StartCocoonStageCsReq clearWorldLevel() { + bitField0_ &= ~0x00000004; + worldLevel = 0; + return this; + } + + /** + * optional uint32 world_level = 7; + * @return the worldLevel + */ + public int getWorldLevel() { + return worldLevel; + } + + /** + * optional uint32 world_level = 7; + * @param value the worldLevel to set + * @return this + */ + public StartCocoonStageCsReq setWorldLevel(final int value) { + bitField0_ |= 0x00000004; + worldLevel = value; + return this; + } + + /** + * optional uint32 wave = 14; + * @return whether the wave field is set + */ + public boolean hasWave() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 wave = 14; + * @return this + */ + public StartCocoonStageCsReq clearWave() { + bitField0_ &= ~0x00000008; + wave = 0; + return this; + } + + /** + * optional uint32 wave = 14; + * @return the wave + */ + public int getWave() { + return wave; + } + + /** + * optional uint32 wave = 14; + * @param value the wave to set + * @return this + */ + public StartCocoonStageCsReq setWave(final int value) { + bitField0_ |= 0x00000008; + wave = value; + return this; + } + @Override public StartCocoonStageCsReq copyFrom(final StartCocoonStageCsReq other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - worldLevel = other.worldLevel; - wave = other.wave; cocoonId = other.cocoonId; propEntityId = other.propEntityId; + worldLevel = other.worldLevel; + wave = other.wave; } return this; } @@ -215,18 +215,18 @@ public final class StartCocoonStageCsReqOuterClass { return this; } cachedSize = -1; - if (other.hasWorldLevel()) { - setWorldLevel(other.worldLevel); - } - if (other.hasWave()) { - setWave(other.wave); - } if (other.hasCocoonId()) { setCocoonId(other.cocoonId); } if (other.hasPropEntityId()) { setPropEntityId(other.propEntityId); } + if (other.hasWorldLevel()) { + setWorldLevel(other.worldLevel); + } + if (other.hasWave()) { + setWave(other.wave); + } return this; } @@ -237,10 +237,10 @@ public final class StartCocoonStageCsReqOuterClass { } cachedSize = -1; bitField0_ = 0; - worldLevel = 0; - wave = 0; cocoonId = 0; propEntityId = 0; + worldLevel = 0; + wave = 0; return this; } @@ -264,29 +264,29 @@ public final class StartCocoonStageCsReqOuterClass { } StartCocoonStageCsReq other = (StartCocoonStageCsReq) o; return bitField0_ == other.bitField0_ - && (!hasWorldLevel() || worldLevel == other.worldLevel) - && (!hasWave() || wave == other.wave) && (!hasCocoonId() || cocoonId == other.cocoonId) - && (!hasPropEntityId() || propEntityId == other.propEntityId); + && (!hasPropEntityId() || propEntityId == other.propEntityId) + && (!hasWorldLevel() || worldLevel == other.worldLevel) + && (!hasWave() || wave == other.wave); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { output.writeRawByte((byte) 40); - output.writeUInt32NoTag(worldLevel); + output.writeUInt32NoTag(cocoonId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 88); - output.writeUInt32NoTag(wave); + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(propEntityId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 96); - output.writeUInt32NoTag(cocoonId); + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(worldLevel); } if ((bitField0_ & 0x00000008) != 0) { output.writeRawByte((byte) 112); - output.writeUInt32NoTag(propEntityId); + output.writeUInt32NoTag(wave); } } @@ -294,17 +294,17 @@ public final class StartCocoonStageCsReqOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(worldLevel); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(wave); - } - if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(cocoonId); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(propEntityId); } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(worldLevel); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(wave); + } return size; } @@ -316,26 +316,26 @@ public final class StartCocoonStageCsReqOuterClass { while (true) { switch (tag) { case 40: { - // worldLevel - worldLevel = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 88) { - break; - } - } - case 88: { - // wave - wave = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 96) { - break; - } - } - case 96: { // cocoonId cocoonId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // propEntityId + propEntityId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // worldLevel + worldLevel = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 112) { @@ -343,8 +343,8 @@ public final class StartCocoonStageCsReqOuterClass { } } case 112: { - // propEntityId - propEntityId = input.readUInt32(); + // wave + wave = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 0) { @@ -369,17 +369,17 @@ public final class StartCocoonStageCsReqOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.worldLevel, worldLevel); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.wave, wave); - } - if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.cocoonId, cocoonId); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.propEntityId, propEntityId); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.worldLevel, worldLevel); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.wave, wave); + } output.endObject(); } @@ -390,35 +390,12 @@ public final class StartCocoonStageCsReqOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 440007442: - case 1305257111: { - if (input.isAtField(FieldNames.worldLevel)) { - if (!input.trySkipNullValue()) { - worldLevel = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case 3642105: { - if (input.isAtField(FieldNames.wave)) { - if (!input.trySkipNullValue()) { - wave = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } case -886563534: case -1713644381: { if (input.isAtField(FieldNames.cocoonId)) { if (!input.trySkipNullValue()) { cocoonId = input.readUInt32(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; } } else { input.skipUnknownField(); @@ -430,6 +407,29 @@ public final class StartCocoonStageCsReqOuterClass { if (input.isAtField(FieldNames.propEntityId)) { if (!input.trySkipNullValue()) { propEntityId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 440007442: + case 1305257111: { + if (input.isAtField(FieldNames.worldLevel)) { + if (!input.trySkipNullValue()) { + worldLevel = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 3642105: { + if (input.isAtField(FieldNames.wave)) { + if (!input.trySkipNullValue()) { + wave = input.readUInt32(); bitField0_ |= 0x00000008; } } else { @@ -490,13 +490,13 @@ public final class StartCocoonStageCsReqOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName worldLevel = FieldName.forField("worldLevel", "world_level"); - - static final FieldName wave = FieldName.forField("wave"); - static final FieldName cocoonId = FieldName.forField("cocoonId", "cocoon_id"); static final FieldName propEntityId = FieldName.forField("propEntityId", "prop_entity_id"); + + static final FieldName worldLevel = FieldName.forField("worldLevel", "world_level"); + + static final FieldName wave = FieldName.forField("wave"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/StartCocoonStageScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/StartCocoonStageScRspOuterClass.java index b2eee03..89add2c 100644 --- a/src/generated/main/emu/lunarcore/proto/StartCocoonStageScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/StartCocoonStageScRspOuterClass.java @@ -19,27 +19,27 @@ public final class StartCocoonStageScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 cocoon_id = 5; + * optional uint32 cocoon_id = 1; */ private int cocoonId; /** - * optional uint32 prop_entity_id = 6; - */ - private int propEntityId; - - /** - * optional uint32 wave = 8; + * optional uint32 wave = 4; */ private int wave; /** - * optional uint32 retcode = 11; + * optional uint32 prop_entity_id = 8; + */ + private int propEntityId; + + /** + * optional uint32 retcode = 15; */ private int retcode; /** - * optional .SceneBattleInfo battle_info = 12; + * optional .SceneBattleInfo battle_info = 6; */ private final SceneBattleInfoOuterClass.SceneBattleInfo battleInfo = SceneBattleInfoOuterClass.SceneBattleInfo.newInstance(); @@ -54,7 +54,7 @@ public final class StartCocoonStageScRspOuterClass { } /** - * optional uint32 cocoon_id = 5; + * optional uint32 cocoon_id = 1; * @return whether the cocoonId field is set */ public boolean hasCocoonId() { @@ -62,7 +62,7 @@ public final class StartCocoonStageScRspOuterClass { } /** - * optional uint32 cocoon_id = 5; + * optional uint32 cocoon_id = 1; * @return this */ public StartCocoonStageScRsp clearCocoonId() { @@ -72,7 +72,7 @@ public final class StartCocoonStageScRspOuterClass { } /** - * optional uint32 cocoon_id = 5; + * optional uint32 cocoon_id = 1; * @return the cocoonId */ public int getCocoonId() { @@ -80,7 +80,7 @@ public final class StartCocoonStageScRspOuterClass { } /** - * optional uint32 cocoon_id = 5; + * optional uint32 cocoon_id = 1; * @param value the cocoonId to set * @return this */ @@ -91,62 +91,25 @@ public final class StartCocoonStageScRspOuterClass { } /** - * optional uint32 prop_entity_id = 6; - * @return whether the propEntityId field is set + * optional uint32 wave = 4; + * @return whether the wave field is set */ - public boolean hasPropEntityId() { + public boolean hasWave() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 prop_entity_id = 6; - * @return this - */ - public StartCocoonStageScRsp clearPropEntityId() { - bitField0_ &= ~0x00000002; - propEntityId = 0; - return this; - } - - /** - * optional uint32 prop_entity_id = 6; - * @return the propEntityId - */ - public int getPropEntityId() { - return propEntityId; - } - - /** - * optional uint32 prop_entity_id = 6; - * @param value the propEntityId to set - * @return this - */ - public StartCocoonStageScRsp setPropEntityId(final int value) { - bitField0_ |= 0x00000002; - propEntityId = value; - return this; - } - - /** - * optional uint32 wave = 8; - * @return whether the wave field is set - */ - public boolean hasWave() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 wave = 8; + * optional uint32 wave = 4; * @return this */ public StartCocoonStageScRsp clearWave() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; wave = 0; return this; } /** - * optional uint32 wave = 8; + * optional uint32 wave = 4; * @return the wave */ public int getWave() { @@ -154,18 +117,55 @@ public final class StartCocoonStageScRspOuterClass { } /** - * optional uint32 wave = 8; + * optional uint32 wave = 4; * @param value the wave to set * @return this */ public StartCocoonStageScRsp setWave(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; wave = value; return this; } /** - * optional uint32 retcode = 11; + * optional uint32 prop_entity_id = 8; + * @return whether the propEntityId field is set + */ + public boolean hasPropEntityId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 prop_entity_id = 8; + * @return this + */ + public StartCocoonStageScRsp clearPropEntityId() { + bitField0_ &= ~0x00000004; + propEntityId = 0; + return this; + } + + /** + * optional uint32 prop_entity_id = 8; + * @return the propEntityId + */ + public int getPropEntityId() { + return propEntityId; + } + + /** + * optional uint32 prop_entity_id = 8; + * @param value the propEntityId to set + * @return this + */ + public StartCocoonStageScRsp setPropEntityId(final int value) { + bitField0_ |= 0x00000004; + propEntityId = value; + return this; + } + + /** + * optional uint32 retcode = 15; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -173,7 +173,7 @@ public final class StartCocoonStageScRspOuterClass { } /** - * optional uint32 retcode = 11; + * optional uint32 retcode = 15; * @return this */ public StartCocoonStageScRsp clearRetcode() { @@ -183,7 +183,7 @@ public final class StartCocoonStageScRspOuterClass { } /** - * optional uint32 retcode = 11; + * optional uint32 retcode = 15; * @return the retcode */ public int getRetcode() { @@ -191,7 +191,7 @@ public final class StartCocoonStageScRspOuterClass { } /** - * optional uint32 retcode = 11; + * optional uint32 retcode = 15; * @param value the retcode to set * @return this */ @@ -202,7 +202,7 @@ public final class StartCocoonStageScRspOuterClass { } /** - * optional .SceneBattleInfo battle_info = 12; + * optional .SceneBattleInfo battle_info = 6; * @return whether the battleInfo field is set */ public boolean hasBattleInfo() { @@ -210,7 +210,7 @@ public final class StartCocoonStageScRspOuterClass { } /** - * optional .SceneBattleInfo battle_info = 12; + * optional .SceneBattleInfo battle_info = 6; * @return this */ public StartCocoonStageScRsp clearBattleInfo() { @@ -220,7 +220,7 @@ public final class StartCocoonStageScRspOuterClass { } /** - * optional .SceneBattleInfo battle_info = 12; + * optional .SceneBattleInfo battle_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. @@ -234,7 +234,7 @@ public final class StartCocoonStageScRspOuterClass { } /** - * optional .SceneBattleInfo battle_info = 12; + * optional .SceneBattleInfo battle_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 @@ -248,7 +248,7 @@ public final class StartCocoonStageScRspOuterClass { } /** - * optional .SceneBattleInfo battle_info = 12; + * optional .SceneBattleInfo battle_info = 6; * @param value the battleInfo to set * @return this */ @@ -265,8 +265,8 @@ public final class StartCocoonStageScRspOuterClass { if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; cocoonId = other.cocoonId; - propEntityId = other.propEntityId; wave = other.wave; + propEntityId = other.propEntityId; retcode = other.retcode; battleInfo.copyFrom(other.battleInfo); } @@ -282,12 +282,12 @@ public final class StartCocoonStageScRspOuterClass { if (other.hasCocoonId()) { setCocoonId(other.cocoonId); } - if (other.hasPropEntityId()) { - setPropEntityId(other.propEntityId); - } if (other.hasWave()) { setWave(other.wave); } + if (other.hasPropEntityId()) { + setPropEntityId(other.propEntityId); + } if (other.hasRetcode()) { setRetcode(other.retcode); } @@ -305,8 +305,8 @@ public final class StartCocoonStageScRspOuterClass { cachedSize = -1; bitField0_ = 0; cocoonId = 0; - propEntityId = 0; wave = 0; + propEntityId = 0; retcode = 0; battleInfo.clear(); return this; @@ -334,8 +334,8 @@ public final class StartCocoonStageScRspOuterClass { StartCocoonStageScRsp other = (StartCocoonStageScRsp) o; return bitField0_ == other.bitField0_ && (!hasCocoonId() || cocoonId == other.cocoonId) - && (!hasPropEntityId() || propEntityId == other.propEntityId) && (!hasWave() || wave == other.wave) + && (!hasPropEntityId() || propEntityId == other.propEntityId) && (!hasRetcode() || retcode == other.retcode) && (!hasBattleInfo() || battleInfo.equals(other.battleInfo)); } @@ -343,23 +343,23 @@ public final class StartCocoonStageScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 8); output.writeUInt32NoTag(cocoonId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 48); - output.writeUInt32NoTag(propEntityId); + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(wave); } if ((bitField0_ & 0x00000004) != 0) { output.writeRawByte((byte) 64); - output.writeUInt32NoTag(wave); + output.writeUInt32NoTag(propEntityId); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 120); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 98); + output.writeRawByte((byte) 50); output.writeMessageNoTag(battleInfo); } } @@ -371,10 +371,10 @@ public final class StartCocoonStageScRspOuterClass { size += 1 + ProtoSink.computeUInt32SizeNoTag(cocoonId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(propEntityId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(wave); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(wave); + size += 1 + ProtoSink.computeUInt32SizeNoTag(propEntityId); } if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); @@ -392,18 +392,18 @@ public final class StartCocoonStageScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 40: { + case 8: { // cocoonId cocoonId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 48) { + if (tag != 32) { break; } } - case 48: { - // propEntityId - propEntityId = input.readUInt32(); + case 32: { + // wave + wave = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 64) { @@ -411,24 +411,24 @@ public final class StartCocoonStageScRspOuterClass { } } case 64: { - // wave - wave = input.readUInt32(); + // propEntityId + propEntityId = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 88) { + if (tag != 120) { break; } } - case 88: { + case 120: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 98) { + if (tag != 50) { break; } } - case 98: { + case 50: { // battleInfo input.readMessage(battleInfo); bitField0_ |= 0x00000010; @@ -458,10 +458,10 @@ public final class StartCocoonStageScRspOuterClass { output.writeUInt32(FieldNames.cocoonId, cocoonId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.propEntityId, propEntityId); + output.writeUInt32(FieldNames.wave, wave); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.wave, wave); + output.writeUInt32(FieldNames.propEntityId, propEntityId); } if ((bitField0_ & 0x00000008) != 0) { output.writeUInt32(FieldNames.retcode, retcode); @@ -491,11 +491,10 @@ public final class StartCocoonStageScRspOuterClass { } break; } - case -68717343: - case -57484005: { - if (input.isAtField(FieldNames.propEntityId)) { + case 3642105: { + if (input.isAtField(FieldNames.wave)) { if (!input.trySkipNullValue()) { - propEntityId = input.readUInt32(); + wave = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -503,10 +502,11 @@ public final class StartCocoonStageScRspOuterClass { } break; } - case 3642105: { - if (input.isAtField(FieldNames.wave)) { + case -68717343: + case -57484005: { + if (input.isAtField(FieldNames.propEntityId)) { if (!input.trySkipNullValue()) { - wave = input.readUInt32(); + propEntityId = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -592,10 +592,10 @@ public final class StartCocoonStageScRspOuterClass { static class FieldNames { 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 propEntityId = FieldName.forField("propEntityId", "prop_entity_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/SwapLineupCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SwapLineupCsReqOuterClass.java index ce3e5a2..5615efc 100644 --- a/src/generated/main/emu/lunarcore/proto/SwapLineupCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SwapLineupCsReqOuterClass.java @@ -19,32 +19,32 @@ public final class SwapLineupCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 plane_id = 7; - */ - private int planeId; - - /** - * optional uint32 src_slot = 11; + * optional uint32 src_slot = 1; */ private int srcSlot; /** - * optional uint32 dst_slot = 12; + * optional uint32 dst_slot = 3; */ private int dstSlot; /** - * optional uint32 index = 15; + * optional uint32 index = 7; */ private int index; /** - * optional .ExtraLineupType extra_lineup_type = 14; + * optional uint32 plane_id = 8; + */ + private int planeId; + + /** + * optional .ExtraLineupType extra_lineup_type = 11; */ private int extraLineupType; /** - * optional bool is_virtual = 2; + * optional bool is_virtual = 6; */ private boolean isVirtual; @@ -59,62 +59,25 @@ public final class SwapLineupCsReqOuterClass { } /** - * optional uint32 plane_id = 7; - * @return whether the planeId field is set + * optional uint32 src_slot = 1; + * @return whether the srcSlot field is set */ - public boolean hasPlaneId() { + public boolean hasSrcSlot() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 plane_id = 7; - * @return this - */ - public SwapLineupCsReq clearPlaneId() { - bitField0_ &= ~0x00000001; - planeId = 0; - return this; - } - - /** - * optional uint32 plane_id = 7; - * @return the planeId - */ - public int getPlaneId() { - return planeId; - } - - /** - * optional uint32 plane_id = 7; - * @param value the planeId to set - * @return this - */ - public SwapLineupCsReq setPlaneId(final int value) { - bitField0_ |= 0x00000001; - planeId = value; - return this; - } - - /** - * optional uint32 src_slot = 11; - * @return whether the srcSlot field is set - */ - public boolean hasSrcSlot() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 src_slot = 11; + * optional uint32 src_slot = 1; * @return this */ public SwapLineupCsReq clearSrcSlot() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; srcSlot = 0; return this; } /** - * optional uint32 src_slot = 11; + * optional uint32 src_slot = 1; * @return the srcSlot */ public int getSrcSlot() { @@ -122,36 +85,36 @@ public final class SwapLineupCsReqOuterClass { } /** - * optional uint32 src_slot = 11; + * optional uint32 src_slot = 1; * @param value the srcSlot to set * @return this */ public SwapLineupCsReq setSrcSlot(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; srcSlot = value; return this; } /** - * optional uint32 dst_slot = 12; + * optional uint32 dst_slot = 3; * @return whether the dstSlot field is set */ public boolean hasDstSlot() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 dst_slot = 12; + * optional uint32 dst_slot = 3; * @return this */ public SwapLineupCsReq clearDstSlot() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; dstSlot = 0; return this; } /** - * optional uint32 dst_slot = 12; + * optional uint32 dst_slot = 3; * @return the dstSlot */ public int getDstSlot() { @@ -159,36 +122,36 @@ public final class SwapLineupCsReqOuterClass { } /** - * optional uint32 dst_slot = 12; + * optional uint32 dst_slot = 3; * @param value the dstSlot to set * @return this */ public SwapLineupCsReq setDstSlot(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; dstSlot = value; return this; } /** - * optional uint32 index = 15; + * optional uint32 index = 7; * @return whether the index field is set */ public boolean hasIndex() { - return (bitField0_ & 0x00000008) != 0; + return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 index = 15; + * optional uint32 index = 7; * @return this */ public SwapLineupCsReq clearIndex() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000004; index = 0; return this; } /** - * optional uint32 index = 15; + * optional uint32 index = 7; * @return the index */ public int getIndex() { @@ -196,18 +159,55 @@ public final class SwapLineupCsReqOuterClass { } /** - * optional uint32 index = 15; + * optional uint32 index = 7; * @param value the index to set * @return this */ public SwapLineupCsReq setIndex(final int value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; index = value; return this; } /** - * optional .ExtraLineupType extra_lineup_type = 14; + * optional uint32 plane_id = 8; + * @return whether the planeId field is set + */ + public boolean hasPlaneId() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 plane_id = 8; + * @return this + */ + public SwapLineupCsReq clearPlaneId() { + bitField0_ &= ~0x00000008; + planeId = 0; + return this; + } + + /** + * optional uint32 plane_id = 8; + * @return the planeId + */ + public int getPlaneId() { + return planeId; + } + + /** + * optional uint32 plane_id = 8; + * @param value the planeId to set + * @return this + */ + public SwapLineupCsReq setPlaneId(final int value) { + bitField0_ |= 0x00000008; + planeId = value; + return this; + } + + /** + * optional .ExtraLineupType extra_lineup_type = 11; * @return whether the extraLineupType field is set */ public boolean hasExtraLineupType() { @@ -215,7 +215,7 @@ public final class SwapLineupCsReqOuterClass { } /** - * optional .ExtraLineupType extra_lineup_type = 14; + * optional .ExtraLineupType extra_lineup_type = 11; * @return this */ public SwapLineupCsReq clearExtraLineupType() { @@ -225,7 +225,7 @@ public final class SwapLineupCsReqOuterClass { } /** - * optional .ExtraLineupType extra_lineup_type = 14; + * optional .ExtraLineupType extra_lineup_type = 11; * @return the extraLineupType */ public ExtraLineupTypeOuterClass.ExtraLineupType getExtraLineupType() { @@ -258,7 +258,7 @@ public final class SwapLineupCsReqOuterClass { } /** - * optional .ExtraLineupType extra_lineup_type = 14; + * optional .ExtraLineupType extra_lineup_type = 11; * @param value the extraLineupType to set * @return this */ @@ -270,7 +270,7 @@ public final class SwapLineupCsReqOuterClass { } /** - * optional bool is_virtual = 2; + * optional bool is_virtual = 6; * @return whether the isVirtual field is set */ public boolean hasIsVirtual() { @@ -278,7 +278,7 @@ public final class SwapLineupCsReqOuterClass { } /** - * optional bool is_virtual = 2; + * optional bool is_virtual = 6; * @return this */ public SwapLineupCsReq clearIsVirtual() { @@ -288,7 +288,7 @@ public final class SwapLineupCsReqOuterClass { } /** - * optional bool is_virtual = 2; + * optional bool is_virtual = 6; * @return the isVirtual */ public boolean getIsVirtual() { @@ -296,7 +296,7 @@ public final class SwapLineupCsReqOuterClass { } /** - * optional bool is_virtual = 2; + * optional bool is_virtual = 6; * @param value the isVirtual to set * @return this */ @@ -311,10 +311,10 @@ public final class SwapLineupCsReqOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - planeId = other.planeId; srcSlot = other.srcSlot; dstSlot = other.dstSlot; index = other.index; + planeId = other.planeId; extraLineupType = other.extraLineupType; isVirtual = other.isVirtual; } @@ -327,9 +327,6 @@ public final class SwapLineupCsReqOuterClass { return this; } cachedSize = -1; - if (other.hasPlaneId()) { - setPlaneId(other.planeId); - } if (other.hasSrcSlot()) { setSrcSlot(other.srcSlot); } @@ -339,6 +336,9 @@ public final class SwapLineupCsReqOuterClass { if (other.hasIndex()) { setIndex(other.index); } + if (other.hasPlaneId()) { + setPlaneId(other.planeId); + } if (other.hasExtraLineupType()) { setExtraLineupTypeValue(other.extraLineupType); } @@ -355,10 +355,10 @@ public final class SwapLineupCsReqOuterClass { } cachedSize = -1; bitField0_ = 0; - planeId = 0; srcSlot = 0; dstSlot = 0; index = 0; + planeId = 0; extraLineupType = 0; isVirtual = false; return this; @@ -384,10 +384,10 @@ public final class SwapLineupCsReqOuterClass { } SwapLineupCsReq other = (SwapLineupCsReq) o; return bitField0_ == other.bitField0_ - && (!hasPlaneId() || planeId == other.planeId) && (!hasSrcSlot() || srcSlot == other.srcSlot) && (!hasDstSlot() || dstSlot == other.dstSlot) && (!hasIndex() || index == other.index) + && (!hasPlaneId() || planeId == other.planeId) && (!hasExtraLineupType() || extraLineupType == other.extraLineupType) && (!hasIsVirtual() || isVirtual == other.isVirtual); } @@ -395,27 +395,27 @@ public final class SwapLineupCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 56); - output.writeUInt32NoTag(planeId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 8); output.writeUInt32NoTag(srcSlot); } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 96); + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 24); output.writeUInt32NoTag(dstSlot); } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 120); + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 56); output.writeUInt32NoTag(index); } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(planeId); + } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 88); output.writeEnumNoTag(extraLineupType); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 16); + output.writeRawByte((byte) 48); output.writeBoolNoTag(isVirtual); } } @@ -424,17 +424,17 @@ public final class SwapLineupCsReqOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(planeId); - } - if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(srcSlot); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(dstSlot); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(index); } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(planeId); + } if ((bitField0_ & 0x00000010) != 0) { size += 1 + ProtoSink.computeEnumSizeNoTag(extraLineupType); } @@ -451,43 +451,43 @@ public final class SwapLineupCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { + case 8: { + // srcSlot + srcSlot = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // dstSlot + dstSlot = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 56) { + break; + } + } case 56: { + // index + index = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 64) { + break; + } + } + case 64: { // planeId planeId = input.readUInt32(); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 88) { break; } } case 88: { - // srcSlot - srcSlot = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 96) { - break; - } - } - case 96: { - // dstSlot - dstSlot = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 120) { - break; - } - } - case 120: { - // index - index = input.readUInt32(); - bitField0_ |= 0x00000008; - tag = input.readTag(); - if (tag != 112) { - break; - } - } - case 112: { // extraLineupType final int value = input.readInt32(); if (ExtraLineupTypeOuterClass.ExtraLineupType.forNumber(value) != null) { @@ -495,11 +495,11 @@ public final class SwapLineupCsReqOuterClass { bitField0_ |= 0x00000010; } tag = input.readTag(); - if (tag != 16) { + if (tag != 48) { break; } } - case 16: { + case 48: { // isVirtual isVirtual = input.readBool(); bitField0_ |= 0x00000020; @@ -526,17 +526,17 @@ public final class SwapLineupCsReqOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.planeId, planeId); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.srcSlot, srcSlot); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.dstSlot, dstSlot); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.index, index); } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.planeId, planeId); + } if ((bitField0_ & 0x00000010) != 0) { output.writeEnum(FieldNames.extraLineupType, extraLineupType, ExtraLineupTypeOuterClass.ExtraLineupType.converter()); } @@ -553,24 +553,12 @@ public final class SwapLineupCsReqOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -493896553: - case 1869097438: { - if (input.isAtField(FieldNames.planeId)) { - if (!input.trySkipNullValue()) { - planeId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } case -1953527294: case -418516103: { if (input.isAtField(FieldNames.srcSlot)) { if (!input.trySkipNullValue()) { srcSlot = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } else { input.skipUnknownField(); @@ -582,7 +570,7 @@ public final class SwapLineupCsReqOuterClass { if (input.isAtField(FieldNames.dstSlot)) { if (!input.trySkipNullValue()) { dstSlot = input.readUInt32(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; } } else { input.skipUnknownField(); @@ -593,6 +581,18 @@ public final class SwapLineupCsReqOuterClass { if (input.isAtField(FieldNames.index)) { if (!input.trySkipNullValue()) { index = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -493896553: + case 1869097438: { + if (input.isAtField(FieldNames.planeId)) { + if (!input.trySkipNullValue()) { + planeId = input.readUInt32(); bitField0_ |= 0x00000008; } } else { @@ -682,14 +682,14 @@ public final class SwapLineupCsReqOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName planeId = FieldName.forField("planeId", "plane_id"); - static final FieldName srcSlot = FieldName.forField("srcSlot", "src_slot"); static final FieldName dstSlot = FieldName.forField("dstSlot", "dst_slot"); static final FieldName index = FieldName.forField("index"); + 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/SwitchLineupIndexCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SwitchLineupIndexCsReqOuterClass.java index e81588c..06c0f05 100644 --- a/src/generated/main/emu/lunarcore/proto/SwitchLineupIndexCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SwitchLineupIndexCsReqOuterClass.java @@ -19,7 +19,7 @@ public final class SwitchLineupIndexCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 index = 9; + * optional uint32 index = 13; */ private int index; @@ -34,7 +34,7 @@ public final class SwitchLineupIndexCsReqOuterClass { } /** - * optional uint32 index = 9; + * optional uint32 index = 13; * @return whether the index field is set */ public boolean hasIndex() { @@ -42,7 +42,7 @@ public final class SwitchLineupIndexCsReqOuterClass { } /** - * optional uint32 index = 9; + * optional uint32 index = 13; * @return this */ public SwitchLineupIndexCsReq clearIndex() { @@ -52,7 +52,7 @@ public final class SwitchLineupIndexCsReqOuterClass { } /** - * optional uint32 index = 9; + * optional uint32 index = 13; * @return the index */ public int getIndex() { @@ -60,7 +60,7 @@ public final class SwitchLineupIndexCsReqOuterClass { } /** - * optional uint32 index = 9; + * optional uint32 index = 13; * @param value the index to set * @return this */ @@ -129,7 +129,7 @@ public final class SwitchLineupIndexCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 72); + output.writeRawByte((byte) 104); output.writeUInt32NoTag(index); } } @@ -150,7 +150,7 @@ public final class SwitchLineupIndexCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 72: { + case 104: { // 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 19434d4..92dabaa 100644 --- a/src/generated/main/emu/lunarcore/proto/SwitchLineupIndexScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SwitchLineupIndexScRspOuterClass.java @@ -19,12 +19,12 @@ public final class SwitchLineupIndexScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 4; */ private int retcode; /** - * optional uint32 index = 13; + * optional uint32 index = 6; */ private int index; @@ -39,7 +39,7 @@ public final class SwitchLineupIndexScRspOuterClass { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 4; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -47,7 +47,7 @@ public final class SwitchLineupIndexScRspOuterClass { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 4; * @return this */ public SwitchLineupIndexScRsp clearRetcode() { @@ -57,7 +57,7 @@ public final class SwitchLineupIndexScRspOuterClass { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 4; * @return the retcode */ public int getRetcode() { @@ -65,7 +65,7 @@ public final class SwitchLineupIndexScRspOuterClass { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 4; * @param value the retcode to set * @return this */ @@ -76,7 +76,7 @@ public final class SwitchLineupIndexScRspOuterClass { } /** - * optional uint32 index = 13; + * optional uint32 index = 6; * @return whether the index field is set */ public boolean hasIndex() { @@ -84,7 +84,7 @@ public final class SwitchLineupIndexScRspOuterClass { } /** - * optional uint32 index = 13; + * optional uint32 index = 6; * @return this */ public SwitchLineupIndexScRsp clearIndex() { @@ -94,7 +94,7 @@ public final class SwitchLineupIndexScRspOuterClass { } /** - * optional uint32 index = 13; + * optional uint32 index = 6; * @return the index */ public int getIndex() { @@ -102,7 +102,7 @@ public final class SwitchLineupIndexScRspOuterClass { } /** - * optional uint32 index = 13; + * optional uint32 index = 6; * @param value the index to set * @return this */ @@ -177,11 +177,11 @@ public final class SwitchLineupIndexScRspOuterClass { @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) 104); + output.writeRawByte((byte) 48); output.writeUInt32NoTag(index); } } @@ -205,16 +205,16 @@ public final class SwitchLineupIndexScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 64: { + case 32: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 104) { + if (tag != 48) { break; } } - case 104: { + case 48: { // 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 aa4cd79..37f774f 100644 --- a/src/generated/main/emu/lunarcore/proto/SyncApplyFriendScNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SyncApplyFriendScNotifyOuterClass.java @@ -19,7 +19,7 @@ public final class SyncApplyFriendScNotifyOuterClass { private static final long serialVersionUID = 0L; /** - * optional .FriendApplyInfo friend_apply_info = 9; + * optional .FriendApplyInfo friend_apply_info = 12; */ private final FriendApplyInfoOuterClass.FriendApplyInfo friendApplyInfo = FriendApplyInfoOuterClass.FriendApplyInfo.newInstance(); @@ -34,7 +34,7 @@ public final class SyncApplyFriendScNotifyOuterClass { } /** - * optional .FriendApplyInfo friend_apply_info = 9; + * optional .FriendApplyInfo friend_apply_info = 12; * @return whether the friendApplyInfo field is set */ public boolean hasFriendApplyInfo() { @@ -42,7 +42,7 @@ public final class SyncApplyFriendScNotifyOuterClass { } /** - * optional .FriendApplyInfo friend_apply_info = 9; + * optional .FriendApplyInfo friend_apply_info = 12; * @return this */ public SyncApplyFriendScNotify clearFriendApplyInfo() { @@ -52,7 +52,7 @@ public final class SyncApplyFriendScNotifyOuterClass { } /** - * optional .FriendApplyInfo friend_apply_info = 9; + * optional .FriendApplyInfo friend_apply_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. @@ -66,7 +66,7 @@ public final class SyncApplyFriendScNotifyOuterClass { } /** - * optional .FriendApplyInfo friend_apply_info = 9; + * optional .FriendApplyInfo friend_apply_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 @@ -80,7 +80,7 @@ public final class SyncApplyFriendScNotifyOuterClass { } /** - * optional .FriendApplyInfo friend_apply_info = 9; + * optional .FriendApplyInfo friend_apply_info = 12; * @param value the friendApplyInfo to set * @return this */ @@ -151,7 +151,7 @@ public final class SyncApplyFriendScNotifyOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 74); + output.writeRawByte((byte) 98); output.writeMessageNoTag(friendApplyInfo); } } @@ -172,7 +172,7 @@ public final class SyncApplyFriendScNotifyOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 74: { + case 98: { // friendApplyInfo input.readMessage(friendApplyInfo); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/SyncClientResVersionScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/SyncClientResVersionScRspOuterClass.java index 79e96fd..b21223e 100644 --- a/src/generated/main/emu/lunarcore/proto/SyncClientResVersionScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SyncClientResVersionScRspOuterClass.java @@ -19,15 +19,15 @@ public final class SyncClientResVersionScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 6; - */ - private int retcode; - - /** - * optional uint32 client_res_version = 15; + * optional uint32 client_res_version = 5; */ private int clientResVersion; + /** + * optional uint32 retcode = 12; + */ + private int retcode; + private SyncClientResVersionScRsp() { } @@ -39,62 +39,25 @@ public final class SyncClientResVersionScRspOuterClass { } /** - * optional uint32 retcode = 6; - * @return whether the retcode field is set + * optional uint32 client_res_version = 5; + * @return whether the clientResVersion field is set */ - public boolean hasRetcode() { + public boolean hasClientResVersion() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 retcode = 6; - * @return this - */ - public SyncClientResVersionScRsp clearRetcode() { - bitField0_ &= ~0x00000001; - retcode = 0; - return this; - } - - /** - * optional uint32 retcode = 6; - * @return the retcode - */ - public int getRetcode() { - return retcode; - } - - /** - * optional uint32 retcode = 6; - * @param value the retcode to set - * @return this - */ - public SyncClientResVersionScRsp setRetcode(final int value) { - bitField0_ |= 0x00000001; - retcode = value; - return this; - } - - /** - * optional uint32 client_res_version = 15; - * @return whether the clientResVersion field is set - */ - public boolean hasClientResVersion() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 client_res_version = 15; + * optional uint32 client_res_version = 5; * @return this */ public SyncClientResVersionScRsp clearClientResVersion() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; clientResVersion = 0; return this; } /** - * optional uint32 client_res_version = 15; + * optional uint32 client_res_version = 5; * @return the clientResVersion */ public int getClientResVersion() { @@ -102,23 +65,60 @@ public final class SyncClientResVersionScRspOuterClass { } /** - * optional uint32 client_res_version = 15; + * optional uint32 client_res_version = 5; * @param value the clientResVersion to set * @return this */ public SyncClientResVersionScRsp setClientResVersion(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; clientResVersion = value; return this; } + /** + * optional uint32 retcode = 12; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 retcode = 12; + * @return this + */ + public SyncClientResVersionScRsp clearRetcode() { + bitField0_ &= ~0x00000002; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 12; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 12; + * @param value the retcode to set + * @return this + */ + public SyncClientResVersionScRsp setRetcode(final int value) { + bitField0_ |= 0x00000002; + retcode = value; + return this; + } + @Override public SyncClientResVersionScRsp copyFrom(final SyncClientResVersionScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - retcode = other.retcode; clientResVersion = other.clientResVersion; + retcode = other.retcode; } return this; } @@ -129,12 +129,12 @@ public final class SyncClientResVersionScRspOuterClass { return this; } cachedSize = -1; - if (other.hasRetcode()) { - setRetcode(other.retcode); - } if (other.hasClientResVersion()) { setClientResVersion(other.clientResVersion); } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } return this; } @@ -145,8 +145,8 @@ public final class SyncClientResVersionScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - retcode = 0; clientResVersion = 0; + retcode = 0; return this; } @@ -170,19 +170,19 @@ public final class SyncClientResVersionScRspOuterClass { } SyncClientResVersionScRsp other = (SyncClientResVersionScRsp) o; return bitField0_ == other.bitField0_ - && (!hasRetcode() || retcode == other.retcode) - && (!hasClientResVersion() || clientResVersion == other.clientResVersion); + && (!hasClientResVersion() || clientResVersion == other.clientResVersion) + && (!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.writeRawByte((byte) 40); + output.writeUInt32NoTag(clientResVersion); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 120); - output.writeUInt32NoTag(clientResVersion); + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(retcode); } } @@ -190,10 +190,10 @@ public final class SyncClientResVersionScRspOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(clientResVersion); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(clientResVersion); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } return size; } @@ -205,18 +205,18 @@ public final class SyncClientResVersionScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 48: { - // retcode - retcode = input.readUInt32(); + case 40: { + // clientResVersion + clientResVersion = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 120) { + if (tag != 96) { break; } } - case 120: { - // clientResVersion - clientResVersion = input.readUInt32(); + case 96: { + // retcode + retcode = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { @@ -241,10 +241,10 @@ public final class SyncClientResVersionScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.clientResVersion, clientResVersion); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.clientResVersion, clientResVersion); + output.writeUInt32(FieldNames.retcode, retcode); } output.endObject(); } @@ -256,10 +256,11 @@ public final class SyncClientResVersionScRspOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { + case -2005674429: + case -349907515: { + if (input.isAtField(FieldNames.clientResVersion)) { if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); + clientResVersion = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -267,11 +268,10 @@ public final class SyncClientResVersionScRspOuterClass { } break; } - case -2005674429: - case -349907515: { - if (input.isAtField(FieldNames.clientResVersion)) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { - clientResVersion = input.readUInt32(); + retcode = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -332,9 +332,9 @@ public final class SyncClientResVersionScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName retcode = FieldName.forField("retcode"); - static final FieldName clientResVersion = FieldName.forField("clientResVersion", "client_res_version"); + + static final FieldName retcode = FieldName.forField("retcode"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/SyncDeleteFriendScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/SyncDeleteFriendScNotifyOuterClass.java index 21741ab..b5eb32a 100644 --- a/src/generated/main/emu/lunarcore/proto/SyncDeleteFriendScNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SyncDeleteFriendScNotifyOuterClass.java @@ -19,7 +19,7 @@ public final class SyncDeleteFriendScNotifyOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 uid = 14; + * optional uint32 uid = 15; */ private int uid; @@ -34,7 +34,7 @@ public final class SyncDeleteFriendScNotifyOuterClass { } /** - * optional uint32 uid = 14; + * optional uint32 uid = 15; * @return whether the uid field is set */ public boolean hasUid() { @@ -42,7 +42,7 @@ public final class SyncDeleteFriendScNotifyOuterClass { } /** - * optional uint32 uid = 14; + * optional uint32 uid = 15; * @return this */ public SyncDeleteFriendScNotify clearUid() { @@ -52,7 +52,7 @@ public final class SyncDeleteFriendScNotifyOuterClass { } /** - * optional uint32 uid = 14; + * optional uint32 uid = 15; * @return the uid */ public int getUid() { @@ -60,7 +60,7 @@ public final class SyncDeleteFriendScNotifyOuterClass { } /** - * optional uint32 uid = 14; + * optional uint32 uid = 15; * @param value the uid to set * @return this */ @@ -129,7 +129,7 @@ public final class SyncDeleteFriendScNotifyOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 120); output.writeUInt32NoTag(uid); } } @@ -150,7 +150,7 @@ public final class SyncDeleteFriendScNotifyOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 112: { + case 120: { // 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 182583b..f1782d9 100644 --- a/src/generated/main/emu/lunarcore/proto/SyncEntityBuffChangeListScNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SyncEntityBuffChangeListScNotifyOuterClass.java @@ -20,7 +20,7 @@ public final class SyncEntityBuffChangeListScNotifyOuterClass { private static final long serialVersionUID = 0L; /** - * repeated .EntityBuffChangeInfo entity_buff_info_list = 15; + * repeated .EntityBuffChangeInfo entity_buff_info_list = 13; */ private final RepeatedMessage entityBuffInfoList = RepeatedMessage.newEmptyInstance(EntityBuffChangeInfoOuterClass.EntityBuffChangeInfo.getFactory()); @@ -35,7 +35,7 @@ public final class SyncEntityBuffChangeListScNotifyOuterClass { } /** - * repeated .EntityBuffChangeInfo entity_buff_info_list = 15; + * repeated .EntityBuffChangeInfo entity_buff_info_list = 13; * @return whether the entityBuffInfoList field is set */ public boolean hasEntityBuffInfoList() { @@ -43,7 +43,7 @@ public final class SyncEntityBuffChangeListScNotifyOuterClass { } /** - * repeated .EntityBuffChangeInfo entity_buff_info_list = 15; + * repeated .EntityBuffChangeInfo entity_buff_info_list = 13; * @return this */ public SyncEntityBuffChangeListScNotify clearEntityBuffInfoList() { @@ -53,7 +53,7 @@ public final class SyncEntityBuffChangeListScNotifyOuterClass { } /** - * repeated .EntityBuffChangeInfo entity_buff_info_list = 15; + * repeated .EntityBuffChangeInfo entity_buff_info_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. @@ -68,7 +68,7 @@ public final class SyncEntityBuffChangeListScNotifyOuterClass { } /** - * repeated .EntityBuffChangeInfo entity_buff_info_list = 15; + * repeated .EntityBuffChangeInfo entity_buff_info_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 @@ -83,7 +83,7 @@ public final class SyncEntityBuffChangeListScNotifyOuterClass { } /** - * repeated .EntityBuffChangeInfo entity_buff_info_list = 15; + * repeated .EntityBuffChangeInfo entity_buff_info_list = 13; * @param value the entityBuffInfoList to add * @return this */ @@ -95,7 +95,7 @@ public final class SyncEntityBuffChangeListScNotifyOuterClass { } /** - * repeated .EntityBuffChangeInfo entity_buff_info_list = 15; + * repeated .EntityBuffChangeInfo entity_buff_info_list = 13; * @param values the entityBuffInfoList to add * @return this */ @@ -168,7 +168,7 @@ public final class SyncEntityBuffChangeListScNotifyOuterClass { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { for (int i = 0; i < entityBuffInfoList.length(); i++) { - output.writeRawByte((byte) 122); + output.writeRawByte((byte) 106); output.writeMessageNoTag(entityBuffInfoList.get(i)); } } @@ -190,7 +190,7 @@ public final class SyncEntityBuffChangeListScNotifyOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 122: { + case 106: { // 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 10d4e8a..c5b3fca 100644 --- a/src/generated/main/emu/lunarcore/proto/SyncHandleFriendScNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SyncHandleFriendScNotifyOuterClass.java @@ -19,17 +19,17 @@ public final class SyncHandleFriendScNotifyOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 uid = 2; + * optional uint32 uid = 15; */ private int uid; /** - * optional bool handle_result = 12; + * optional bool handle_result = 7; */ private boolean handleResult; /** - * optional .FriendListInfo handle_friend_info = 1; + * optional .FriendListInfo handle_friend_info = 2; */ private final FriendListInfoOuterClass.FriendListInfo handleFriendInfo = FriendListInfoOuterClass.FriendListInfo.newInstance(); @@ -44,7 +44,7 @@ public final class SyncHandleFriendScNotifyOuterClass { } /** - * optional uint32 uid = 2; + * optional uint32 uid = 15; * @return whether the uid field is set */ public boolean hasUid() { @@ -52,7 +52,7 @@ public final class SyncHandleFriendScNotifyOuterClass { } /** - * optional uint32 uid = 2; + * optional uint32 uid = 15; * @return this */ public SyncHandleFriendScNotify clearUid() { @@ -62,7 +62,7 @@ public final class SyncHandleFriendScNotifyOuterClass { } /** - * optional uint32 uid = 2; + * optional uint32 uid = 15; * @return the uid */ public int getUid() { @@ -70,7 +70,7 @@ public final class SyncHandleFriendScNotifyOuterClass { } /** - * optional uint32 uid = 2; + * optional uint32 uid = 15; * @param value the uid to set * @return this */ @@ -81,7 +81,7 @@ public final class SyncHandleFriendScNotifyOuterClass { } /** - * optional bool handle_result = 12; + * optional bool handle_result = 7; * @return whether the handleResult field is set */ public boolean hasHandleResult() { @@ -89,7 +89,7 @@ public final class SyncHandleFriendScNotifyOuterClass { } /** - * optional bool handle_result = 12; + * optional bool handle_result = 7; * @return this */ public SyncHandleFriendScNotify clearHandleResult() { @@ -99,7 +99,7 @@ public final class SyncHandleFriendScNotifyOuterClass { } /** - * optional bool handle_result = 12; + * optional bool handle_result = 7; * @return the handleResult */ public boolean getHandleResult() { @@ -107,7 +107,7 @@ public final class SyncHandleFriendScNotifyOuterClass { } /** - * optional bool handle_result = 12; + * optional bool handle_result = 7; * @param value the handleResult to set * @return this */ @@ -118,7 +118,7 @@ public final class SyncHandleFriendScNotifyOuterClass { } /** - * optional .FriendListInfo handle_friend_info = 1; + * optional .FriendListInfo handle_friend_info = 2; * @return whether the handleFriendInfo field is set */ public boolean hasHandleFriendInfo() { @@ -126,7 +126,7 @@ public final class SyncHandleFriendScNotifyOuterClass { } /** - * optional .FriendListInfo handle_friend_info = 1; + * optional .FriendListInfo handle_friend_info = 2; * @return this */ public SyncHandleFriendScNotify clearHandleFriendInfo() { @@ -136,7 +136,7 @@ public final class SyncHandleFriendScNotifyOuterClass { } /** - * optional .FriendListInfo handle_friend_info = 1; + * optional .FriendListInfo handle_friend_info = 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 final class SyncHandleFriendScNotifyOuterClass { } /** - * optional .FriendListInfo handle_friend_info = 1; + * optional .FriendListInfo handle_friend_info = 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 final class SyncHandleFriendScNotifyOuterClass { } /** - * optional .FriendListInfo handle_friend_info = 1; + * optional .FriendListInfo handle_friend_info = 2; * @param value the handleFriendInfo to set * @return this */ @@ -247,15 +247,15 @@ public final class SyncHandleFriendScNotifyOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); + output.writeRawByte((byte) 120); output.writeUInt32NoTag(uid); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 56); output.writeBoolNoTag(handleResult); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 10); + output.writeRawByte((byte) 18); output.writeMessageNoTag(handleFriendInfo); } } @@ -282,25 +282,25 @@ public final class SyncHandleFriendScNotifyOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { + case 120: { // uid uid = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 96) { + if (tag != 56) { break; } } - case 96: { + case 56: { // handleResult handleResult = input.readBool(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 10) { + if (tag != 18) { break; } } - case 10: { + case 18: { // 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 1da1b45..993131f 100644 --- a/src/generated/main/emu/lunarcore/proto/SyncLineupNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SyncLineupNotifyOuterClass.java @@ -20,12 +20,12 @@ public final class SyncLineupNotifyOuterClass { private static final long serialVersionUID = 0L; /** - * optional .LineupInfo lineup = 12; + * optional .LineupInfo lineup = 1; */ private final LineupInfoOuterClass.LineupInfo lineup = LineupInfoOuterClass.LineupInfo.newInstance(); /** - * repeated .SyncReason reason_list = 14; + * repeated .SyncReason reason_list = 11; */ private final RepeatedEnum reasonList = RepeatedEnum.newEmptyInstance(SyncReasonOuterClass.SyncReason.converter()); @@ -40,7 +40,7 @@ public final class SyncLineupNotifyOuterClass { } /** - * optional .LineupInfo lineup = 12; + * optional .LineupInfo lineup = 1; * @return whether the lineup field is set */ public boolean hasLineup() { @@ -48,7 +48,7 @@ public final class SyncLineupNotifyOuterClass { } /** - * optional .LineupInfo lineup = 12; + * optional .LineupInfo lineup = 1; * @return this */ public SyncLineupNotify clearLineup() { @@ -58,7 +58,7 @@ public final class SyncLineupNotifyOuterClass { } /** - * optional .LineupInfo lineup = 12; + * optional .LineupInfo lineup = 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. @@ -72,7 +72,7 @@ public final class SyncLineupNotifyOuterClass { } /** - * optional .LineupInfo lineup = 12; + * optional .LineupInfo lineup = 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 @@ -86,7 +86,7 @@ public final class SyncLineupNotifyOuterClass { } /** - * optional .LineupInfo lineup = 12; + * optional .LineupInfo lineup = 1; * @param value the lineup to set * @return this */ @@ -97,7 +97,7 @@ public final class SyncLineupNotifyOuterClass { } /** - * repeated .SyncReason reason_list = 14; + * repeated .SyncReason reason_list = 11; * @return whether the reasonList field is set */ public boolean hasReasonList() { @@ -105,7 +105,7 @@ public final class SyncLineupNotifyOuterClass { } /** - * repeated .SyncReason reason_list = 14; + * repeated .SyncReason reason_list = 11; * @return this */ public SyncLineupNotify clearReasonList() { @@ -115,7 +115,7 @@ public final class SyncLineupNotifyOuterClass { } /** - * repeated .SyncReason reason_list = 14; + * repeated .SyncReason reason_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. @@ -129,7 +129,7 @@ public final class SyncLineupNotifyOuterClass { } /** - * repeated .SyncReason reason_list = 14; + * repeated .SyncReason reason_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 @@ -143,7 +143,7 @@ public final class SyncLineupNotifyOuterClass { } /** - * repeated .SyncReason reason_list = 14; + * repeated .SyncReason reason_list = 11; * @param value the reasonList to add * @return this */ @@ -154,7 +154,7 @@ public final class SyncLineupNotifyOuterClass { } /** - * repeated .SyncReason reason_list = 14; + * repeated .SyncReason reason_list = 11; * @param values the reasonList to add * @return this */ @@ -231,12 +231,12 @@ public final class SyncLineupNotifyOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 98); + output.writeRawByte((byte) 10); output.writeMessageNoTag(lineup); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < reasonList.length(); i++) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 88); output.writeEnumNoTag(reasonList.array()[i]); } } @@ -261,16 +261,16 @@ public final class SyncLineupNotifyOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 98: { + case 10: { // lineup input.readMessage(lineup); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 114) { + if (tag != 90) { break; } } - case 114: { + case 90: { // reasonList [packed=true] input.readPackedEnum(reasonList, tag); bitField0_ |= 0x00000002; @@ -289,7 +289,7 @@ public final class SyncLineupNotifyOuterClass { tag = input.readTag(); break; } - case 112: { + case 88: { // reasonList [packed=false] tag = input.readRepeatedEnum(reasonList, tag); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/SyncRogueCommonActionResultScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/SyncRogueCommonActionResultScNotifyOuterClass.java index 45d66eb..88fd98b 100644 --- a/src/generated/main/emu/lunarcore/proto/SyncRogueCommonActionResultScNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SyncRogueCommonActionResultScNotifyOuterClass.java @@ -20,12 +20,12 @@ public final class SyncRogueCommonActionResultScNotifyOuterClass { /** *
-     *  101 for common rogue
+     * PBCHNCIJKNA MDBPDPDDHBC = 12;
      * 
* - * optional uint32 rogue_version_id = 5; + * optional uint32 OCPBNBPAMEN = 5; */ - private int rogueVersionId; + private int oCPBNBPAMEN; /** * optional .RogueActionResult action = 11; @@ -44,54 +44,54 @@ public final class SyncRogueCommonActionResultScNotifyOuterClass { /** *
-     *  101 for common rogue
+     * PBCHNCIJKNA MDBPDPDDHBC = 12;
      * 
* - * optional uint32 rogue_version_id = 5; - * @return whether the rogueVersionId field is set + * optional uint32 OCPBNBPAMEN = 5; + * @return whether the oCPBNBPAMEN field is set */ - public boolean hasRogueVersionId() { + public boolean hasOCPBNBPAMEN() { return (bitField0_ & 0x00000001) != 0; } /** *
-     *  101 for common rogue
+     * PBCHNCIJKNA MDBPDPDDHBC = 12;
      * 
* - * optional uint32 rogue_version_id = 5; + * optional uint32 OCPBNBPAMEN = 5; * @return this */ - public SyncRogueCommonActionResultScNotify clearRogueVersionId() { + public SyncRogueCommonActionResultScNotify clearOCPBNBPAMEN() { bitField0_ &= ~0x00000001; - rogueVersionId = 0; + oCPBNBPAMEN = 0; return this; } /** *
-     *  101 for common rogue
+     * PBCHNCIJKNA MDBPDPDDHBC = 12;
      * 
* - * optional uint32 rogue_version_id = 5; - * @return the rogueVersionId + * optional uint32 OCPBNBPAMEN = 5; + * @return the oCPBNBPAMEN */ - public int getRogueVersionId() { - return rogueVersionId; + public int getOCPBNBPAMEN() { + return oCPBNBPAMEN; } /** *
-     *  101 for common rogue
+     * PBCHNCIJKNA MDBPDPDDHBC = 12;
      * 
* - * optional uint32 rogue_version_id = 5; - * @param value the rogueVersionId to set + * optional uint32 OCPBNBPAMEN = 5; + * @param value the oCPBNBPAMEN to set * @return this */ - public SyncRogueCommonActionResultScNotify setRogueVersionId(final int value) { + public SyncRogueCommonActionResultScNotify setOCPBNBPAMEN(final int value) { bitField0_ |= 0x00000001; - rogueVersionId = value; + oCPBNBPAMEN = value; return this; } @@ -159,7 +159,7 @@ public final class SyncRogueCommonActionResultScNotifyOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - rogueVersionId = other.rogueVersionId; + oCPBNBPAMEN = other.oCPBNBPAMEN; action.copyFrom(other.action); } return this; @@ -172,8 +172,8 @@ public final class SyncRogueCommonActionResultScNotifyOuterClass { return this; } cachedSize = -1; - if (other.hasRogueVersionId()) { - setRogueVersionId(other.rogueVersionId); + if (other.hasOCPBNBPAMEN()) { + setOCPBNBPAMEN(other.oCPBNBPAMEN); } if (other.hasAction()) { getMutableAction().mergeFrom(other.action); @@ -188,7 +188,7 @@ public final class SyncRogueCommonActionResultScNotifyOuterClass { } cachedSize = -1; bitField0_ = 0; - rogueVersionId = 0; + oCPBNBPAMEN = 0; action.clear(); return this; } @@ -214,7 +214,7 @@ public final class SyncRogueCommonActionResultScNotifyOuterClass { } SyncRogueCommonActionResultScNotify other = (SyncRogueCommonActionResultScNotify) o; return bitField0_ == other.bitField0_ - && (!hasRogueVersionId() || rogueVersionId == other.rogueVersionId) + && (!hasOCPBNBPAMEN() || oCPBNBPAMEN == other.oCPBNBPAMEN) && (!hasAction() || action.equals(other.action)); } @@ -222,7 +222,7 @@ public final class SyncRogueCommonActionResultScNotifyOuterClass { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { output.writeRawByte((byte) 40); - output.writeUInt32NoTag(rogueVersionId); + output.writeUInt32NoTag(oCPBNBPAMEN); } if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 90); @@ -234,7 +234,7 @@ public final class SyncRogueCommonActionResultScNotifyOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(rogueVersionId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(oCPBNBPAMEN); } if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(action); @@ -251,8 +251,8 @@ public final class SyncRogueCommonActionResultScNotifyOuterClass { while (true) { switch (tag) { case 40: { - // rogueVersionId - rogueVersionId = input.readUInt32(); + // oCPBNBPAMEN + oCPBNBPAMEN = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 90) { @@ -286,7 +286,7 @@ public final class SyncRogueCommonActionResultScNotifyOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.rogueVersionId, rogueVersionId); + output.writeUInt32(FieldNames.oCPBNBPAMEN, oCPBNBPAMEN); } if ((bitField0_ & 0x00000002) != 0) { output.writeMessage(FieldNames.action, action); @@ -302,11 +302,10 @@ public final class SyncRogueCommonActionResultScNotifyOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -1457526951: - case 1832096103: { - if (input.isAtField(FieldNames.rogueVersionId)) { + case -1836582037: { + if (input.isAtField(FieldNames.oCPBNBPAMEN)) { if (!input.trySkipNullValue()) { - rogueVersionId = input.readUInt32(); + oCPBNBPAMEN = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -380,7 +379,7 @@ public final class SyncRogueCommonActionResultScNotifyOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName rogueVersionId = FieldName.forField("rogueVersionId", "rogue_version_id"); + static final FieldName oCPBNBPAMEN = FieldName.forField("OCPBNBPAMEN"); static final FieldName action = FieldName.forField("action"); } diff --git a/src/generated/main/emu/lunarcore/proto/SyncRogueCommonPendingActionScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/SyncRogueCommonPendingActionScNotifyOuterClass.java index 55da03a..1f8f50d 100644 --- a/src/generated/main/emu/lunarcore/proto/SyncRogueCommonPendingActionScNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SyncRogueCommonPendingActionScNotifyOuterClass.java @@ -19,13 +19,9 @@ public final class SyncRogueCommonPendingActionScNotifyOuterClass { private static final long serialVersionUID = 0L; /** - *
-     *  101 for common rogue
-     * 
- * - * optional uint32 rogue_version_id = 9; + * optional uint32 OCPBNBPAMEN = 9; */ - private int rogueVersionId; + private int oCPBNBPAMEN; /** * optional .RogueCommonPendingAction rogue_common_pending_action = 4; @@ -43,55 +39,39 @@ public final class SyncRogueCommonPendingActionScNotifyOuterClass { } /** - *
-     *  101 for common rogue
-     * 
- * - * optional uint32 rogue_version_id = 9; - * @return whether the rogueVersionId field is set + * optional uint32 OCPBNBPAMEN = 9; + * @return whether the oCPBNBPAMEN field is set */ - public boolean hasRogueVersionId() { + public boolean hasOCPBNBPAMEN() { return (bitField0_ & 0x00000001) != 0; } /** - *
-     *  101 for common rogue
-     * 
- * - * optional uint32 rogue_version_id = 9; + * optional uint32 OCPBNBPAMEN = 9; * @return this */ - public SyncRogueCommonPendingActionScNotify clearRogueVersionId() { + public SyncRogueCommonPendingActionScNotify clearOCPBNBPAMEN() { bitField0_ &= ~0x00000001; - rogueVersionId = 0; + oCPBNBPAMEN = 0; return this; } /** - *
-     *  101 for common rogue
-     * 
- * - * optional uint32 rogue_version_id = 9; - * @return the rogueVersionId + * optional uint32 OCPBNBPAMEN = 9; + * @return the oCPBNBPAMEN */ - public int getRogueVersionId() { - return rogueVersionId; + public int getOCPBNBPAMEN() { + return oCPBNBPAMEN; } /** - *
-     *  101 for common rogue
-     * 
- * - * optional uint32 rogue_version_id = 9; - * @param value the rogueVersionId to set + * optional uint32 OCPBNBPAMEN = 9; + * @param value the oCPBNBPAMEN to set * @return this */ - public SyncRogueCommonPendingActionScNotify setRogueVersionId(final int value) { + public SyncRogueCommonPendingActionScNotify setOCPBNBPAMEN(final int value) { bitField0_ |= 0x00000001; - rogueVersionId = value; + oCPBNBPAMEN = value; return this; } @@ -161,7 +141,7 @@ public final class SyncRogueCommonPendingActionScNotifyOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - rogueVersionId = other.rogueVersionId; + oCPBNBPAMEN = other.oCPBNBPAMEN; rogueCommonPendingAction.copyFrom(other.rogueCommonPendingAction); } return this; @@ -174,8 +154,8 @@ public final class SyncRogueCommonPendingActionScNotifyOuterClass { return this; } cachedSize = -1; - if (other.hasRogueVersionId()) { - setRogueVersionId(other.rogueVersionId); + if (other.hasOCPBNBPAMEN()) { + setOCPBNBPAMEN(other.oCPBNBPAMEN); } if (other.hasRogueCommonPendingAction()) { getMutableRogueCommonPendingAction().mergeFrom(other.rogueCommonPendingAction); @@ -190,7 +170,7 @@ public final class SyncRogueCommonPendingActionScNotifyOuterClass { } cachedSize = -1; bitField0_ = 0; - rogueVersionId = 0; + oCPBNBPAMEN = 0; rogueCommonPendingAction.clear(); return this; } @@ -216,7 +196,7 @@ public final class SyncRogueCommonPendingActionScNotifyOuterClass { } SyncRogueCommonPendingActionScNotify other = (SyncRogueCommonPendingActionScNotify) o; return bitField0_ == other.bitField0_ - && (!hasRogueVersionId() || rogueVersionId == other.rogueVersionId) + && (!hasOCPBNBPAMEN() || oCPBNBPAMEN == other.oCPBNBPAMEN) && (!hasRogueCommonPendingAction() || rogueCommonPendingAction.equals(other.rogueCommonPendingAction)); } @@ -224,7 +204,7 @@ public final class SyncRogueCommonPendingActionScNotifyOuterClass { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { output.writeRawByte((byte) 72); - output.writeUInt32NoTag(rogueVersionId); + output.writeUInt32NoTag(oCPBNBPAMEN); } if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 34); @@ -236,7 +216,7 @@ public final class SyncRogueCommonPendingActionScNotifyOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(rogueVersionId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(oCPBNBPAMEN); } if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(rogueCommonPendingAction); @@ -253,8 +233,8 @@ public final class SyncRogueCommonPendingActionScNotifyOuterClass { while (true) { switch (tag) { case 72: { - // rogueVersionId - rogueVersionId = input.readUInt32(); + // oCPBNBPAMEN + oCPBNBPAMEN = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 34) { @@ -288,7 +268,7 @@ public final class SyncRogueCommonPendingActionScNotifyOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.rogueVersionId, rogueVersionId); + output.writeUInt32(FieldNames.oCPBNBPAMEN, oCPBNBPAMEN); } if ((bitField0_ & 0x00000002) != 0) { output.writeMessage(FieldNames.rogueCommonPendingAction, rogueCommonPendingAction); @@ -304,11 +284,10 @@ public final class SyncRogueCommonPendingActionScNotifyOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -1457526951: - case 1832096103: { - if (input.isAtField(FieldNames.rogueVersionId)) { + case -1836582037: { + if (input.isAtField(FieldNames.oCPBNBPAMEN)) { if (!input.trySkipNullValue()) { - rogueVersionId = input.readUInt32(); + oCPBNBPAMEN = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -383,7 +362,7 @@ public final class SyncRogueCommonPendingActionScNotifyOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName rogueVersionId = FieldName.forField("rogueVersionId", "rogue_version_id"); + static final FieldName oCPBNBPAMEN = FieldName.forField("OCPBNBPAMEN"); static final FieldName rogueCommonPendingAction = FieldName.forField("rogueCommonPendingAction", "rogue_common_pending_action"); } diff --git a/src/generated/main/emu/lunarcore/proto/TakeChallengeRewardCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/TakeChallengeRewardCsReqOuterClass.java index c493bfd..26ba848 100644 --- a/src/generated/main/emu/lunarcore/proto/TakeChallengeRewardCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/TakeChallengeRewardCsReqOuterClass.java @@ -19,15 +19,15 @@ public final class TakeChallengeRewardCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 star_count = 5; - */ - private int starCount; - - /** - * optional uint32 group_id = 14; + * optional uint32 group_id = 1; */ private int groupId; + /** + * optional uint32 star_count = 10; + */ + private int starCount; + private TakeChallengeRewardCsReq() { } @@ -39,62 +39,25 @@ public final class TakeChallengeRewardCsReqOuterClass { } /** - * optional uint32 star_count = 5; - * @return whether the starCount field is set + * optional uint32 group_id = 1; + * @return whether the groupId field is set */ - public boolean hasStarCount() { + public boolean hasGroupId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 star_count = 5; - * @return this - */ - public TakeChallengeRewardCsReq clearStarCount() { - bitField0_ &= ~0x00000001; - starCount = 0; - return this; - } - - /** - * optional uint32 star_count = 5; - * @return the starCount - */ - public int getStarCount() { - return starCount; - } - - /** - * optional uint32 star_count = 5; - * @param value the starCount to set - * @return this - */ - public TakeChallengeRewardCsReq setStarCount(final int value) { - bitField0_ |= 0x00000001; - starCount = value; - return this; - } - - /** - * optional uint32 group_id = 14; - * @return whether the groupId field is set - */ - public boolean hasGroupId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 group_id = 14; + * optional uint32 group_id = 1; * @return this */ public TakeChallengeRewardCsReq clearGroupId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; groupId = 0; return this; } /** - * optional uint32 group_id = 14; + * optional uint32 group_id = 1; * @return the groupId */ public int getGroupId() { @@ -102,23 +65,60 @@ public final class TakeChallengeRewardCsReqOuterClass { } /** - * optional uint32 group_id = 14; + * optional uint32 group_id = 1; * @param value the groupId to set * @return this */ public TakeChallengeRewardCsReq setGroupId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; groupId = value; return this; } + /** + * optional uint32 star_count = 10; + * @return whether the starCount field is set + */ + public boolean hasStarCount() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 star_count = 10; + * @return this + */ + public TakeChallengeRewardCsReq clearStarCount() { + bitField0_ &= ~0x00000002; + starCount = 0; + return this; + } + + /** + * optional uint32 star_count = 10; + * @return the starCount + */ + public int getStarCount() { + return starCount; + } + + /** + * optional uint32 star_count = 10; + * @param value the starCount to set + * @return this + */ + public TakeChallengeRewardCsReq setStarCount(final int value) { + bitField0_ |= 0x00000002; + starCount = value; + return this; + } + @Override public TakeChallengeRewardCsReq copyFrom(final TakeChallengeRewardCsReq other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - starCount = other.starCount; groupId = other.groupId; + starCount = other.starCount; } return this; } @@ -129,12 +129,12 @@ public final class TakeChallengeRewardCsReqOuterClass { return this; } cachedSize = -1; - if (other.hasStarCount()) { - setStarCount(other.starCount); - } if (other.hasGroupId()) { setGroupId(other.groupId); } + if (other.hasStarCount()) { + setStarCount(other.starCount); + } return this; } @@ -145,8 +145,8 @@ public final class TakeChallengeRewardCsReqOuterClass { } cachedSize = -1; bitField0_ = 0; - starCount = 0; groupId = 0; + starCount = 0; return this; } @@ -170,19 +170,19 @@ public final class TakeChallengeRewardCsReqOuterClass { } TakeChallengeRewardCsReq other = (TakeChallengeRewardCsReq) o; return bitField0_ == other.bitField0_ - && (!hasStarCount() || starCount == other.starCount) - && (!hasGroupId() || groupId == other.groupId); + && (!hasGroupId() || groupId == other.groupId) + && (!hasStarCount() || starCount == other.starCount); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); - output.writeUInt32NoTag(starCount); + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(groupId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 112); - output.writeUInt32NoTag(groupId); + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(starCount); } } @@ -190,10 +190,10 @@ public final class TakeChallengeRewardCsReqOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(starCount); + size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(starCount); } return size; } @@ -205,18 +205,18 @@ public final class TakeChallengeRewardCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 40: { - // starCount - starCount = input.readUInt32(); + case 8: { + // groupId + groupId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 112) { + if (tag != 80) { break; } } - case 112: { - // groupId - groupId = input.readUInt32(); + case 80: { + // starCount + starCount = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { @@ -241,10 +241,10 @@ public final class TakeChallengeRewardCsReqOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.starCount, starCount); + output.writeUInt32(FieldNames.groupId, groupId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.groupId, groupId); + output.writeUInt32(FieldNames.starCount, starCount); } output.endObject(); } @@ -256,11 +256,11 @@ public final class TakeChallengeRewardCsReqOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 2121235933: - case 2124166370: { - if (input.isAtField(FieldNames.starCount)) { + case 293428218: + case 506361563: { + if (input.isAtField(FieldNames.groupId)) { if (!input.trySkipNullValue()) { - starCount = input.readUInt32(); + groupId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -268,11 +268,11 @@ public final class TakeChallengeRewardCsReqOuterClass { } break; } - case 293428218: - case 506361563: { - if (input.isAtField(FieldNames.groupId)) { + case 2121235933: + case 2124166370: { + if (input.isAtField(FieldNames.starCount)) { if (!input.trySkipNullValue()) { - groupId = input.readUInt32(); + starCount = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -333,9 +333,9 @@ public final class TakeChallengeRewardCsReqOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName starCount = FieldName.forField("starCount", "star_count"); - static final FieldName groupId = FieldName.forField("groupId", "group_id"); + + static final FieldName starCount = FieldName.forField("starCount", "star_count"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/TakeChallengeRewardScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/TakeChallengeRewardScRspOuterClass.java index 9d94fd2..412b80c 100644 --- a/src/generated/main/emu/lunarcore/proto/TakeChallengeRewardScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/TakeChallengeRewardScRspOuterClass.java @@ -19,22 +19,22 @@ public final class TakeChallengeRewardScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 group_id = 3; - */ - private int groupId; - - /** - * optional uint32 retcode = 12; - */ - private int retcode; - - /** - * optional uint32 star_count = 14; + * optional uint32 star_count = 1; */ private int starCount; /** - * optional .ItemList reward = 1; + * optional uint32 group_id = 6; + */ + private int groupId; + + /** + * optional uint32 retcode = 14; + */ + private int retcode; + + /** + * optional .ItemList reward = 15; */ private final ItemListOuterClass.ItemList reward = ItemListOuterClass.ItemList.newInstance(); @@ -49,99 +49,25 @@ public final class TakeChallengeRewardScRspOuterClass { } /** - * optional uint32 group_id = 3; - * @return whether the groupId field is set + * optional uint32 star_count = 1; + * @return whether the starCount field is set */ - public boolean hasGroupId() { + public boolean hasStarCount() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 group_id = 3; - * @return this - */ - public TakeChallengeRewardScRsp clearGroupId() { - bitField0_ &= ~0x00000001; - groupId = 0; - return this; - } - - /** - * optional uint32 group_id = 3; - * @return the groupId - */ - public int getGroupId() { - return groupId; - } - - /** - * optional uint32 group_id = 3; - * @param value the groupId to set - * @return this - */ - public TakeChallengeRewardScRsp setGroupId(final int value) { - bitField0_ |= 0x00000001; - groupId = value; - return this; - } - - /** - * optional uint32 retcode = 12; - * @return whether the retcode field is set - */ - public boolean hasRetcode() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 retcode = 12; - * @return this - */ - public TakeChallengeRewardScRsp clearRetcode() { - bitField0_ &= ~0x00000002; - retcode = 0; - return this; - } - - /** - * optional uint32 retcode = 12; - * @return the retcode - */ - public int getRetcode() { - return retcode; - } - - /** - * optional uint32 retcode = 12; - * @param value the retcode to set - * @return this - */ - public TakeChallengeRewardScRsp setRetcode(final int value) { - bitField0_ |= 0x00000002; - retcode = value; - return this; - } - - /** - * optional uint32 star_count = 14; - * @return whether the starCount field is set - */ - public boolean hasStarCount() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 star_count = 14; + * optional uint32 star_count = 1; * @return this */ public TakeChallengeRewardScRsp clearStarCount() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000001; starCount = 0; return this; } /** - * optional uint32 star_count = 14; + * optional uint32 star_count = 1; * @return the starCount */ public int getStarCount() { @@ -149,18 +75,92 @@ public final class TakeChallengeRewardScRspOuterClass { } /** - * optional uint32 star_count = 14; + * optional uint32 star_count = 1; * @param value the starCount to set * @return this */ public TakeChallengeRewardScRsp setStarCount(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; starCount = value; return this; } /** - * optional .ItemList reward = 1; + * optional uint32 group_id = 6; + * @return whether the groupId field is set + */ + public boolean hasGroupId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 group_id = 6; + * @return this + */ + public TakeChallengeRewardScRsp clearGroupId() { + bitField0_ &= ~0x00000002; + groupId = 0; + return this; + } + + /** + * optional uint32 group_id = 6; + * @return the groupId + */ + public int getGroupId() { + return groupId; + } + + /** + * optional uint32 group_id = 6; + * @param value the groupId to set + * @return this + */ + public TakeChallengeRewardScRsp setGroupId(final int value) { + bitField0_ |= 0x00000002; + groupId = value; + return this; + } + + /** + * optional uint32 retcode = 14; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 retcode = 14; + * @return this + */ + public TakeChallengeRewardScRsp clearRetcode() { + bitField0_ &= ~0x00000004; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 14; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 14; + * @param value the retcode to set + * @return this + */ + public TakeChallengeRewardScRsp setRetcode(final int value) { + bitField0_ |= 0x00000004; + retcode = value; + return this; + } + + /** + * optional .ItemList reward = 15; * @return whether the reward field is set */ public boolean hasReward() { @@ -168,7 +168,7 @@ public final class TakeChallengeRewardScRspOuterClass { } /** - * optional .ItemList reward = 1; + * optional .ItemList reward = 15; * @return this */ public TakeChallengeRewardScRsp clearReward() { @@ -178,7 +178,7 @@ public final class TakeChallengeRewardScRspOuterClass { } /** - * optional .ItemList reward = 1; + * optional .ItemList reward = 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. @@ -192,7 +192,7 @@ public final class TakeChallengeRewardScRspOuterClass { } /** - * optional .ItemList reward = 1; + * optional .ItemList reward = 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 @@ -206,7 +206,7 @@ public final class TakeChallengeRewardScRspOuterClass { } /** - * optional .ItemList reward = 1; + * optional .ItemList reward = 15; * @param value the reward to set * @return this */ @@ -221,9 +221,9 @@ public final class TakeChallengeRewardScRspOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; + starCount = other.starCount; groupId = other.groupId; retcode = other.retcode; - starCount = other.starCount; reward.copyFrom(other.reward); } return this; @@ -235,15 +235,15 @@ public final class TakeChallengeRewardScRspOuterClass { return this; } cachedSize = -1; + if (other.hasStarCount()) { + setStarCount(other.starCount); + } if (other.hasGroupId()) { setGroupId(other.groupId); } if (other.hasRetcode()) { setRetcode(other.retcode); } - if (other.hasStarCount()) { - setStarCount(other.starCount); - } if (other.hasReward()) { getMutableReward().mergeFrom(other.reward); } @@ -257,9 +257,9 @@ public final class TakeChallengeRewardScRspOuterClass { } cachedSize = -1; bitField0_ = 0; + starCount = 0; groupId = 0; retcode = 0; - starCount = 0; reward.clear(); return this; } @@ -285,28 +285,28 @@ public final class TakeChallengeRewardScRspOuterClass { } TakeChallengeRewardScRsp other = (TakeChallengeRewardScRsp) o; return bitField0_ == other.bitField0_ + && (!hasStarCount() || starCount == other.starCount) && (!hasGroupId() || groupId == other.groupId) && (!hasRetcode() || retcode == other.retcode) - && (!hasStarCount() || starCount == other.starCount) && (!hasReward() || reward.equals(other.reward)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(groupId); + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(starCount); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 96); - output.writeUInt32NoTag(retcode); + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(groupId); } if ((bitField0_ & 0x00000004) != 0) { output.writeRawByte((byte) 112); - output.writeUInt32NoTag(starCount); + output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 10); + output.writeRawByte((byte) 122); output.writeMessageNoTag(reward); } } @@ -315,13 +315,13 @@ public final class TakeChallengeRewardScRspOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(starCount); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(starCount); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(reward); @@ -336,18 +336,18 @@ public final class TakeChallengeRewardScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 24: { - // groupId - groupId = input.readUInt32(); + case 8: { + // starCount + starCount = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 96) { + if (tag != 48) { break; } } - case 96: { - // retcode - retcode = input.readUInt32(); + case 48: { + // groupId + groupId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 112) { @@ -355,15 +355,15 @@ public final class TakeChallengeRewardScRspOuterClass { } } case 112: { - // starCount - starCount = input.readUInt32(); + // retcode + retcode = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 10) { + if (tag != 122) { break; } } - case 10: { + case 122: { // reward input.readMessage(reward); bitField0_ |= 0x00000008; @@ -390,13 +390,13 @@ public final class TakeChallengeRewardScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.groupId, groupId); + output.writeUInt32(FieldNames.starCount, starCount); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.groupId, groupId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.starCount, starCount); + output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000008) != 0) { output.writeMessage(FieldNames.reward, reward); @@ -411,12 +411,24 @@ public final class TakeChallengeRewardScRspOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { + case 2121235933: + case 2124166370: { + if (input.isAtField(FieldNames.starCount)) { + if (!input.trySkipNullValue()) { + starCount = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } case 293428218: case 506361563: { if (input.isAtField(FieldNames.groupId)) { if (!input.trySkipNullValue()) { groupId = input.readUInt32(); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } else { input.skipUnknownField(); @@ -427,18 +439,6 @@ public final class TakeChallengeRewardScRspOuterClass { if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { retcode = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case 2121235933: - case 2124166370: { - if (input.isAtField(FieldNames.starCount)) { - if (!input.trySkipNullValue()) { - starCount = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -510,12 +510,12 @@ public final class TakeChallengeRewardScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { + static final FieldName starCount = FieldName.forField("starCount", "star_count"); + 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/TakeMailAttachmentScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/TakeMailAttachmentScRspOuterClass.java index 0b832e6..65a7660 100644 --- a/src/generated/main/emu/lunarcore/proto/TakeMailAttachmentScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/TakeMailAttachmentScRspOuterClass.java @@ -20,17 +20,17 @@ public final class TakeMailAttachmentScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 9; */ private int retcode; /** - * optional .ItemList attachment = 12; + * optional .ItemList attachment = 5; */ private final ItemListOuterClass.ItemList attachment = ItemListOuterClass.ItemList.newInstance(); /** - * repeated uint32 succ_mail_id_list = 4; + * repeated uint32 succ_mail_id_list = 13; */ private final RepeatedInt succMailIdList = RepeatedInt.newEmptyInstance(); @@ -45,7 +45,7 @@ public final class TakeMailAttachmentScRspOuterClass { } /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 9; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -53,7 +53,7 @@ public final class TakeMailAttachmentScRspOuterClass { } /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 9; * @return this */ public TakeMailAttachmentScRsp clearRetcode() { @@ -63,7 +63,7 @@ public final class TakeMailAttachmentScRspOuterClass { } /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 9; * @return the retcode */ public int getRetcode() { @@ -71,7 +71,7 @@ public final class TakeMailAttachmentScRspOuterClass { } /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 9; * @param value the retcode to set * @return this */ @@ -82,7 +82,7 @@ public final class TakeMailAttachmentScRspOuterClass { } /** - * optional .ItemList attachment = 12; + * optional .ItemList attachment = 5; * @return whether the attachment field is set */ public boolean hasAttachment() { @@ -90,7 +90,7 @@ public final class TakeMailAttachmentScRspOuterClass { } /** - * optional .ItemList attachment = 12; + * optional .ItemList attachment = 5; * @return this */ public TakeMailAttachmentScRsp clearAttachment() { @@ -100,7 +100,7 @@ public final class TakeMailAttachmentScRspOuterClass { } /** - * optional .ItemList attachment = 12; + * 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. @@ -114,7 +114,7 @@ public final class TakeMailAttachmentScRspOuterClass { } /** - * optional .ItemList attachment = 12; + * 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 @@ -128,7 +128,7 @@ public final class TakeMailAttachmentScRspOuterClass { } /** - * optional .ItemList attachment = 12; + * optional .ItemList attachment = 5; * @param value the attachment to set * @return this */ @@ -139,7 +139,7 @@ public final class TakeMailAttachmentScRspOuterClass { } /** - * repeated uint32 succ_mail_id_list = 4; + * repeated uint32 succ_mail_id_list = 13; * @return whether the succMailIdList field is set */ public boolean hasSuccMailIdList() { @@ -147,7 +147,7 @@ public final class TakeMailAttachmentScRspOuterClass { } /** - * repeated uint32 succ_mail_id_list = 4; + * repeated uint32 succ_mail_id_list = 13; * @return this */ public TakeMailAttachmentScRsp clearSuccMailIdList() { @@ -157,7 +157,7 @@ public final class TakeMailAttachmentScRspOuterClass { } /** - * repeated uint32 succ_mail_id_list = 4; + * repeated uint32 succ_mail_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. @@ -171,7 +171,7 @@ public final class TakeMailAttachmentScRspOuterClass { } /** - * repeated uint32 succ_mail_id_list = 4; + * repeated uint32 succ_mail_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 @@ -185,7 +185,7 @@ public final class TakeMailAttachmentScRspOuterClass { } /** - * repeated uint32 succ_mail_id_list = 4; + * repeated uint32 succ_mail_id_list = 13; * @param value the succMailIdList to add * @return this */ @@ -196,7 +196,7 @@ public final class TakeMailAttachmentScRspOuterClass { } /** - * repeated uint32 succ_mail_id_list = 4; + * repeated uint32 succ_mail_id_list = 13; * @param values the succMailIdList to add * @return this */ @@ -279,16 +279,16 @@ public final class TakeMailAttachmentScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 72); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 98); + output.writeRawByte((byte) 42); output.writeMessageNoTag(attachment); } if ((bitField0_ & 0x00000004) != 0) { for (int i = 0; i < succMailIdList.length(); i++) { - output.writeRawByte((byte) 32); + output.writeRawByte((byte) 104); output.writeUInt32NoTag(succMailIdList.array()[i]); } } @@ -316,25 +316,25 @@ public final class TakeMailAttachmentScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 56: { + case 72: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 98) { + if (tag != 42) { break; } } - case 98: { + case 42: { // attachment input.readMessage(attachment); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 34) { + if (tag != 106) { break; } } - case 34: { + case 106: { // succMailIdList [packed=true] input.readPackedUInt32(succMailIdList, tag); bitField0_ |= 0x00000004; @@ -353,7 +353,7 @@ public final class TakeMailAttachmentScRspOuterClass { tag = input.readTag(); break; } - case 32: { + case 104: { // 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 3bec90d..3a7aba8 100644 --- a/src/generated/main/emu/lunarcore/proto/TakeOffEquipmentCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/TakeOffEquipmentCsReqOuterClass.java @@ -19,7 +19,7 @@ public final class TakeOffEquipmentCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 base_avatar_id = 12; + * optional uint32 base_avatar_id = 7; */ private int baseAvatarId; @@ -34,7 +34,7 @@ public final class TakeOffEquipmentCsReqOuterClass { } /** - * optional uint32 base_avatar_id = 12; + * optional uint32 base_avatar_id = 7; * @return whether the baseAvatarId field is set */ public boolean hasBaseAvatarId() { @@ -42,7 +42,7 @@ public final class TakeOffEquipmentCsReqOuterClass { } /** - * optional uint32 base_avatar_id = 12; + * optional uint32 base_avatar_id = 7; * @return this */ public TakeOffEquipmentCsReq clearBaseAvatarId() { @@ -52,7 +52,7 @@ public final class TakeOffEquipmentCsReqOuterClass { } /** - * optional uint32 base_avatar_id = 12; + * optional uint32 base_avatar_id = 7; * @return the baseAvatarId */ public int getBaseAvatarId() { @@ -60,7 +60,7 @@ public final class TakeOffEquipmentCsReqOuterClass { } /** - * optional uint32 base_avatar_id = 12; + * optional uint32 base_avatar_id = 7; * @param value the baseAvatarId to set * @return this */ @@ -129,7 +129,7 @@ public final class TakeOffEquipmentCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 56); output.writeUInt32NoTag(baseAvatarId); } } @@ -150,7 +150,7 @@ public final class TakeOffEquipmentCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 96: { + case 56: { // 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 3825e47..5f50e09 100644 --- a/src/generated/main/emu/lunarcore/proto/TakeOffRelicCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/TakeOffRelicCsReqOuterClass.java @@ -20,12 +20,12 @@ public final class TakeOffRelicCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 base_avatar_id = 14; + * optional uint32 base_avatar_id = 8; */ private int baseAvatarId; /** - * repeated uint32 slot_list = 4; + * repeated uint32 slot_list = 5; */ private final RepeatedInt slotList = RepeatedInt.newEmptyInstance(); @@ -40,7 +40,7 @@ public final class TakeOffRelicCsReqOuterClass { } /** - * optional uint32 base_avatar_id = 14; + * optional uint32 base_avatar_id = 8; * @return whether the baseAvatarId field is set */ public boolean hasBaseAvatarId() { @@ -48,7 +48,7 @@ public final class TakeOffRelicCsReqOuterClass { } /** - * optional uint32 base_avatar_id = 14; + * optional uint32 base_avatar_id = 8; * @return this */ public TakeOffRelicCsReq clearBaseAvatarId() { @@ -58,7 +58,7 @@ public final class TakeOffRelicCsReqOuterClass { } /** - * optional uint32 base_avatar_id = 14; + * optional uint32 base_avatar_id = 8; * @return the baseAvatarId */ public int getBaseAvatarId() { @@ -66,7 +66,7 @@ public final class TakeOffRelicCsReqOuterClass { } /** - * optional uint32 base_avatar_id = 14; + * optional uint32 base_avatar_id = 8; * @param value the baseAvatarId to set * @return this */ @@ -77,7 +77,7 @@ public final class TakeOffRelicCsReqOuterClass { } /** - * repeated uint32 slot_list = 4; + * repeated uint32 slot_list = 5; * @return whether the slotList field is set */ public boolean hasSlotList() { @@ -85,7 +85,7 @@ public final class TakeOffRelicCsReqOuterClass { } /** - * repeated uint32 slot_list = 4; + * repeated uint32 slot_list = 5; * @return this */ public TakeOffRelicCsReq clearSlotList() { @@ -95,7 +95,7 @@ public final class TakeOffRelicCsReqOuterClass { } /** - * repeated uint32 slot_list = 4; + * repeated uint32 slot_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 final class TakeOffRelicCsReqOuterClass { } /** - * repeated uint32 slot_list = 4; + * repeated uint32 slot_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 final class TakeOffRelicCsReqOuterClass { } /** - * repeated uint32 slot_list = 4; + * repeated uint32 slot_list = 5; * @param value the slotList to add * @return this */ @@ -134,7 +134,7 @@ public final class TakeOffRelicCsReqOuterClass { } /** - * repeated uint32 slot_list = 4; + * repeated uint32 slot_list = 5; * @param values the slotList to add * @return this */ @@ -210,12 +210,12 @@ public final class TakeOffRelicCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 64); output.writeUInt32NoTag(baseAvatarId); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < slotList.length(); i++) { - output.writeRawByte((byte) 32); + output.writeRawByte((byte) 40); output.writeUInt32NoTag(slotList.array()[i]); } } @@ -240,16 +240,16 @@ public final class TakeOffRelicCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 112: { + case 64: { // baseAvatarId baseAvatarId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 34) { + if (tag != 42) { break; } } - case 34: { + case 42: { // slotList [packed=true] input.readPackedUInt32(slotList, tag); bitField0_ |= 0x00000002; @@ -268,7 +268,7 @@ public final class TakeOffRelicCsReqOuterClass { tag = input.readTag(); break; } - case 32: { + case 40: { // 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 5517eef..b3a10c4 100644 --- a/src/generated/main/emu/lunarcore/proto/TakePromotionRewardCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/TakePromotionRewardCsReqOuterClass.java @@ -19,12 +19,12 @@ public final class TakePromotionRewardCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 base_avatar_id = 8; + * optional uint32 base_avatar_id = 5; */ private int baseAvatarId; /** - * optional uint32 promotion = 12; + * optional uint32 promotion = 10; */ private int promotion; @@ -39,7 +39,7 @@ public final class TakePromotionRewardCsReqOuterClass { } /** - * optional uint32 base_avatar_id = 8; + * optional uint32 base_avatar_id = 5; * @return whether the baseAvatarId field is set */ public boolean hasBaseAvatarId() { @@ -47,7 +47,7 @@ public final class TakePromotionRewardCsReqOuterClass { } /** - * optional uint32 base_avatar_id = 8; + * optional uint32 base_avatar_id = 5; * @return this */ public TakePromotionRewardCsReq clearBaseAvatarId() { @@ -57,7 +57,7 @@ public final class TakePromotionRewardCsReqOuterClass { } /** - * optional uint32 base_avatar_id = 8; + * optional uint32 base_avatar_id = 5; * @return the baseAvatarId */ public int getBaseAvatarId() { @@ -65,7 +65,7 @@ public final class TakePromotionRewardCsReqOuterClass { } /** - * optional uint32 base_avatar_id = 8; + * optional uint32 base_avatar_id = 5; * @param value the baseAvatarId to set * @return this */ @@ -76,7 +76,7 @@ public final class TakePromotionRewardCsReqOuterClass { } /** - * optional uint32 promotion = 12; + * optional uint32 promotion = 10; * @return whether the promotion field is set */ public boolean hasPromotion() { @@ -84,7 +84,7 @@ public final class TakePromotionRewardCsReqOuterClass { } /** - * optional uint32 promotion = 12; + * optional uint32 promotion = 10; * @return this */ public TakePromotionRewardCsReq clearPromotion() { @@ -94,7 +94,7 @@ public final class TakePromotionRewardCsReqOuterClass { } /** - * optional uint32 promotion = 12; + * optional uint32 promotion = 10; * @return the promotion */ public int getPromotion() { @@ -102,7 +102,7 @@ public final class TakePromotionRewardCsReqOuterClass { } /** - * optional uint32 promotion = 12; + * optional uint32 promotion = 10; * @param value the promotion to set * @return this */ @@ -177,11 +177,11 @@ public final class TakePromotionRewardCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 40); output.writeUInt32NoTag(baseAvatarId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 80); output.writeUInt32NoTag(promotion); } } @@ -205,16 +205,16 @@ public final class TakePromotionRewardCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 64: { + case 40: { // baseAvatarId baseAvatarId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 96) { + if (tag != 80) { break; } } - case 96: { + case 80: { // promotion promotion = input.readUInt32(); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/TakePromotionRewardScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/TakePromotionRewardScRspOuterClass.java index d3b6467..9997c59 100644 --- a/src/generated/main/emu/lunarcore/proto/TakePromotionRewardScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/TakePromotionRewardScRspOuterClass.java @@ -19,12 +19,12 @@ public final class TakePromotionRewardScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 6; + * optional uint32 retcode = 12; */ private int retcode; /** - * optional .ItemList reward_list = 8; + * optional .ItemList reward_list = 10; */ private final ItemListOuterClass.ItemList rewardList = ItemListOuterClass.ItemList.newInstance(); @@ -39,7 +39,7 @@ public final class TakePromotionRewardScRspOuterClass { } /** - * optional uint32 retcode = 6; + * optional uint32 retcode = 12; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -47,7 +47,7 @@ public final class TakePromotionRewardScRspOuterClass { } /** - * optional uint32 retcode = 6; + * optional uint32 retcode = 12; * @return this */ public TakePromotionRewardScRsp clearRetcode() { @@ -57,7 +57,7 @@ public final class TakePromotionRewardScRspOuterClass { } /** - * optional uint32 retcode = 6; + * optional uint32 retcode = 12; * @return the retcode */ public int getRetcode() { @@ -65,7 +65,7 @@ public final class TakePromotionRewardScRspOuterClass { } /** - * optional uint32 retcode = 6; + * optional uint32 retcode = 12; * @param value the retcode to set * @return this */ @@ -76,7 +76,7 @@ public final class TakePromotionRewardScRspOuterClass { } /** - * optional .ItemList reward_list = 8; + * optional .ItemList reward_list = 10; * @return whether the rewardList field is set */ public boolean hasRewardList() { @@ -84,7 +84,7 @@ public final class TakePromotionRewardScRspOuterClass { } /** - * optional .ItemList reward_list = 8; + * optional .ItemList reward_list = 10; * @return this */ public TakePromotionRewardScRsp clearRewardList() { @@ -94,7 +94,7 @@ public final class TakePromotionRewardScRspOuterClass { } /** - * optional .ItemList reward_list = 8; + * optional .ItemList reward_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. @@ -108,7 +108,7 @@ public final class TakePromotionRewardScRspOuterClass { } /** - * optional .ItemList reward_list = 8; + * optional .ItemList reward_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 @@ -122,7 +122,7 @@ public final class TakePromotionRewardScRspOuterClass { } /** - * optional .ItemList reward_list = 8; + * optional .ItemList reward_list = 10; * @param value the rewardList to set * @return this */ @@ -198,11 +198,11 @@ public final class TakePromotionRewardScRspOuterClass { @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) { - output.writeRawByte((byte) 66); + output.writeRawByte((byte) 82); output.writeMessageNoTag(rewardList); } } @@ -226,16 +226,16 @@ public final class TakePromotionRewardScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 48: { + case 96: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 66) { + if (tag != 82) { break; } } - case 66: { + case 82: { // rewardList input.readMessage(rewardList); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/TextJoinQueryCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/TextJoinQueryCsReqOuterClass.java index c72af2d..d15e9bf 100644 --- a/src/generated/main/emu/lunarcore/proto/TextJoinQueryCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/TextJoinQueryCsReqOuterClass.java @@ -20,7 +20,7 @@ public final class TextJoinQueryCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * repeated uint32 text_join_id_list = 6; + * repeated uint32 text_join_id_list = 15; */ private final RepeatedInt textJoinIdList = RepeatedInt.newEmptyInstance(); @@ -35,7 +35,7 @@ public final class TextJoinQueryCsReqOuterClass { } /** - * repeated uint32 text_join_id_list = 6; + * repeated uint32 text_join_id_list = 15; * @return whether the textJoinIdList field is set */ public boolean hasTextJoinIdList() { @@ -43,7 +43,7 @@ public final class TextJoinQueryCsReqOuterClass { } /** - * repeated uint32 text_join_id_list = 6; + * repeated uint32 text_join_id_list = 15; * @return this */ public TextJoinQueryCsReq clearTextJoinIdList() { @@ -53,7 +53,7 @@ public final class TextJoinQueryCsReqOuterClass { } /** - * repeated uint32 text_join_id_list = 6; + * repeated uint32 text_join_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. @@ -67,7 +67,7 @@ public final class TextJoinQueryCsReqOuterClass { } /** - * repeated uint32 text_join_id_list = 6; + * repeated uint32 text_join_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 @@ -81,7 +81,7 @@ public final class TextJoinQueryCsReqOuterClass { } /** - * repeated uint32 text_join_id_list = 6; + * repeated uint32 text_join_id_list = 15; * @param value the textJoinIdList to add * @return this */ @@ -92,7 +92,7 @@ public final class TextJoinQueryCsReqOuterClass { } /** - * repeated uint32 text_join_id_list = 6; + * repeated uint32 text_join_id_list = 15; * @param values the textJoinIdList to add * @return this */ @@ -163,7 +163,7 @@ public final class TextJoinQueryCsReqOuterClass { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { for (int i = 0; i < textJoinIdList.length(); i++) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 120); output.writeUInt32NoTag(textJoinIdList.array()[i]); } } @@ -185,7 +185,7 @@ public final class TextJoinQueryCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 50: { + case 122: { // textJoinIdList [packed=true] input.readPackedUInt32(textJoinIdList, tag); bitField0_ |= 0x00000001; @@ -204,7 +204,7 @@ public final class TextJoinQueryCsReqOuterClass { tag = input.readTag(); break; } - case 48: { + case 120: { // 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 99b474b..850a96a 100644 --- a/src/generated/main/emu/lunarcore/proto/TextJoinQueryScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/TextJoinQueryScRspOuterClass.java @@ -20,12 +20,12 @@ public final class TextJoinQueryScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 3; */ private int retcode; /** - * repeated .TextJoinInfo text_join_list = 1; + * repeated .TextJoinInfo text_join_list = 15; */ private final RepeatedMessage textJoinList = RepeatedMessage.newEmptyInstance(TextJoinInfoOuterClass.TextJoinInfo.getFactory()); @@ -40,7 +40,7 @@ public final class TextJoinQueryScRspOuterClass { } /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 3; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -48,7 +48,7 @@ public final class TextJoinQueryScRspOuterClass { } /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 3; * @return this */ public TextJoinQueryScRsp clearRetcode() { @@ -58,7 +58,7 @@ public final class TextJoinQueryScRspOuterClass { } /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 3; * @return the retcode */ public int getRetcode() { @@ -66,7 +66,7 @@ public final class TextJoinQueryScRspOuterClass { } /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 3; * @param value the retcode to set * @return this */ @@ -77,7 +77,7 @@ public final class TextJoinQueryScRspOuterClass { } /** - * repeated .TextJoinInfo text_join_list = 1; + * repeated .TextJoinInfo text_join_list = 15; * @return whether the textJoinList field is set */ public boolean hasTextJoinList() { @@ -85,7 +85,7 @@ public final class TextJoinQueryScRspOuterClass { } /** - * repeated .TextJoinInfo text_join_list = 1; + * repeated .TextJoinInfo text_join_list = 15; * @return this */ public TextJoinQueryScRsp clearTextJoinList() { @@ -95,7 +95,7 @@ public final class TextJoinQueryScRspOuterClass { } /** - * repeated .TextJoinInfo text_join_list = 1; + * repeated .TextJoinInfo text_join_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 final class TextJoinQueryScRspOuterClass { } /** - * repeated .TextJoinInfo text_join_list = 1; + * repeated .TextJoinInfo text_join_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 final class TextJoinQueryScRspOuterClass { } /** - * repeated .TextJoinInfo text_join_list = 1; + * repeated .TextJoinInfo text_join_list = 15; * @param value the textJoinList to add * @return this */ @@ -134,7 +134,7 @@ public final class TextJoinQueryScRspOuterClass { } /** - * repeated .TextJoinInfo text_join_list = 1; + * repeated .TextJoinInfo text_join_list = 15; * @param values the textJoinList to add * @return this */ @@ -211,12 +211,12 @@ public final class TextJoinQueryScRspOuterClass { @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 < textJoinList.length(); i++) { - output.writeRawByte((byte) 10); + output.writeRawByte((byte) 122); output.writeMessageNoTag(textJoinList.get(i)); } } @@ -241,16 +241,16 @@ public final class TextJoinQueryScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 96: { + case 24: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 10) { + if (tag != 122) { break; } } - case 10: { + case 122: { // textJoinList tag = input.readRepeatedMessage(textJoinList, tag); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/UnlockBackGroundMusicCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/UnlockBackGroundMusicCsReqOuterClass.java index 8bc796a..baf8a6b 100644 --- a/src/generated/main/emu/lunarcore/proto/UnlockBackGroundMusicCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/UnlockBackGroundMusicCsReqOuterClass.java @@ -20,7 +20,7 @@ public final class UnlockBackGroundMusicCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * repeated uint32 unlock_ids = 11; + * repeated uint32 unlock_ids = 5; */ private final RepeatedInt unlockIds = RepeatedInt.newEmptyInstance(); @@ -35,7 +35,7 @@ public final class UnlockBackGroundMusicCsReqOuterClass { } /** - * repeated uint32 unlock_ids = 11; + * repeated uint32 unlock_ids = 5; * @return whether the unlockIds field is set */ public boolean hasUnlockIds() { @@ -43,7 +43,7 @@ public final class UnlockBackGroundMusicCsReqOuterClass { } /** - * repeated uint32 unlock_ids = 11; + * repeated uint32 unlock_ids = 5; * @return this */ public UnlockBackGroundMusicCsReq clearUnlockIds() { @@ -53,7 +53,7 @@ public final class UnlockBackGroundMusicCsReqOuterClass { } /** - * repeated uint32 unlock_ids = 11; + * repeated uint32 unlock_ids = 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. @@ -67,7 +67,7 @@ public final class UnlockBackGroundMusicCsReqOuterClass { } /** - * repeated uint32 unlock_ids = 11; + * repeated uint32 unlock_ids = 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 @@ -81,7 +81,7 @@ public final class UnlockBackGroundMusicCsReqOuterClass { } /** - * repeated uint32 unlock_ids = 11; + * repeated uint32 unlock_ids = 5; * @param value the unlockIds to add * @return this */ @@ -92,7 +92,7 @@ public final class UnlockBackGroundMusicCsReqOuterClass { } /** - * repeated uint32 unlock_ids = 11; + * repeated uint32 unlock_ids = 5; * @param values the unlockIds to add * @return this */ @@ -163,7 +163,7 @@ public final class UnlockBackGroundMusicCsReqOuterClass { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { for (int i = 0; i < unlockIds.length(); i++) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 40); output.writeUInt32NoTag(unlockIds.array()[i]); } } @@ -185,7 +185,7 @@ public final class UnlockBackGroundMusicCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 90: { + case 42: { // unlockIds [packed=true] input.readPackedUInt32(unlockIds, tag); bitField0_ |= 0x00000001; @@ -204,7 +204,7 @@ public final class UnlockBackGroundMusicCsReqOuterClass { tag = input.readTag(); break; } - case 88: { + case 40: { // unlockIds [packed=false] tag = input.readRepeatedUInt32(unlockIds, tag); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/UnlockBackGroundMusicScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/UnlockBackGroundMusicScRspOuterClass.java index 15891c1..dc4aa87 100644 --- a/src/generated/main/emu/lunarcore/proto/UnlockBackGroundMusicScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/UnlockBackGroundMusicScRspOuterClass.java @@ -26,12 +26,12 @@ public final class UnlockBackGroundMusicScRspOuterClass { private int retcode; /** - * repeated uint32 unlocked_ids = 3; + * repeated uint32 unlocked_ids = 4; */ private final RepeatedInt unlockedIds = RepeatedInt.newEmptyInstance(); /** - * repeated .UnlockedMusic music_list = 6; + * repeated .UnlockedMusic music_list = 2; */ private final RepeatedMessage musicList = RepeatedMessage.newEmptyInstance(UnlockedMusicOuterClass.UnlockedMusic.getFactory()); @@ -83,7 +83,7 @@ public final class UnlockBackGroundMusicScRspOuterClass { } /** - * repeated uint32 unlocked_ids = 3; + * repeated uint32 unlocked_ids = 4; * @return whether the unlockedIds field is set */ public boolean hasUnlockedIds() { @@ -91,7 +91,7 @@ public final class UnlockBackGroundMusicScRspOuterClass { } /** - * repeated uint32 unlocked_ids = 3; + * repeated uint32 unlocked_ids = 4; * @return this */ public UnlockBackGroundMusicScRsp clearUnlockedIds() { @@ -101,7 +101,7 @@ public final class UnlockBackGroundMusicScRspOuterClass { } /** - * repeated uint32 unlocked_ids = 3; + * repeated uint32 unlocked_ids = 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. @@ -115,7 +115,7 @@ public final class UnlockBackGroundMusicScRspOuterClass { } /** - * repeated uint32 unlocked_ids = 3; + * repeated uint32 unlocked_ids = 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 @@ -129,7 +129,7 @@ public final class UnlockBackGroundMusicScRspOuterClass { } /** - * repeated uint32 unlocked_ids = 3; + * repeated uint32 unlocked_ids = 4; * @param value the unlockedIds to add * @return this */ @@ -140,7 +140,7 @@ public final class UnlockBackGroundMusicScRspOuterClass { } /** - * repeated uint32 unlocked_ids = 3; + * repeated uint32 unlocked_ids = 4; * @param values the unlockedIds to add * @return this */ @@ -151,7 +151,7 @@ public final class UnlockBackGroundMusicScRspOuterClass { } /** - * repeated .UnlockedMusic music_list = 6; + * repeated .UnlockedMusic music_list = 2; * @return whether the musicList field is set */ public boolean hasMusicList() { @@ -159,7 +159,7 @@ public final class UnlockBackGroundMusicScRspOuterClass { } /** - * repeated .UnlockedMusic music_list = 6; + * repeated .UnlockedMusic music_list = 2; * @return this */ public UnlockBackGroundMusicScRsp clearMusicList() { @@ -169,7 +169,7 @@ public final class UnlockBackGroundMusicScRspOuterClass { } /** - * repeated .UnlockedMusic music_list = 6; + * repeated .UnlockedMusic music_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. @@ -183,7 +183,7 @@ public final class UnlockBackGroundMusicScRspOuterClass { } /** - * repeated .UnlockedMusic music_list = 6; + * repeated .UnlockedMusic music_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 @@ -197,7 +197,7 @@ public final class UnlockBackGroundMusicScRspOuterClass { } /** - * repeated .UnlockedMusic music_list = 6; + * repeated .UnlockedMusic music_list = 2; * @param value the musicList to add * @return this */ @@ -209,7 +209,7 @@ public final class UnlockBackGroundMusicScRspOuterClass { } /** - * repeated .UnlockedMusic music_list = 6; + * repeated .UnlockedMusic music_list = 2; * @param values the musicList to add * @return this */ @@ -298,13 +298,13 @@ public final class UnlockBackGroundMusicScRspOuterClass { } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < unlockedIds.length(); i++) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(unlockedIds.array()[i]); } } if ((bitField0_ & 0x00000004) != 0) { for (int i = 0; i < musicList.length(); i++) { - output.writeRawByte((byte) 50); + output.writeRawByte((byte) 18); output.writeMessageNoTag(musicList.get(i)); } } @@ -337,20 +337,20 @@ public final class UnlockBackGroundMusicScRspOuterClass { retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 26) { + if (tag != 34) { break; } } - case 26: { + case 34: { // unlockedIds [packed=true] input.readPackedUInt32(unlockedIds, tag); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 50) { + if (tag != 18) { break; } } - case 50: { + case 18: { // musicList tag = input.readRepeatedMessage(musicList, tag); bitField0_ |= 0x00000004; @@ -368,7 +368,7 @@ public final class UnlockBackGroundMusicScRspOuterClass { tag = input.readTag(); break; } - case 24: { + case 32: { // unlockedIds [packed=false] tag = input.readRepeatedUInt32(unlockedIds, tag); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/UnlockPhoneThemeScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/UnlockPhoneThemeScNotifyOuterClass.java index beeef99..bbf4847 100644 --- a/src/generated/main/emu/lunarcore/proto/UnlockPhoneThemeScNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/UnlockPhoneThemeScNotifyOuterClass.java @@ -19,7 +19,7 @@ public final class UnlockPhoneThemeScNotifyOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 theme_id = 15; + * optional uint32 theme_id = 4; */ private int themeId; @@ -34,7 +34,7 @@ public final class UnlockPhoneThemeScNotifyOuterClass { } /** - * optional uint32 theme_id = 15; + * optional uint32 theme_id = 4; * @return whether the themeId field is set */ public boolean hasThemeId() { @@ -42,7 +42,7 @@ public final class UnlockPhoneThemeScNotifyOuterClass { } /** - * optional uint32 theme_id = 15; + * optional uint32 theme_id = 4; * @return this */ public UnlockPhoneThemeScNotify clearThemeId() { @@ -52,7 +52,7 @@ public final class UnlockPhoneThemeScNotifyOuterClass { } /** - * optional uint32 theme_id = 15; + * optional uint32 theme_id = 4; * @return the themeId */ public int getThemeId() { @@ -60,7 +60,7 @@ public final class UnlockPhoneThemeScNotifyOuterClass { } /** - * optional uint32 theme_id = 15; + * optional uint32 theme_id = 4; * @param value the themeId to set * @return this */ @@ -129,7 +129,7 @@ public final class UnlockPhoneThemeScNotifyOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(themeId); } } @@ -150,7 +150,7 @@ public final class UnlockPhoneThemeScNotifyOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 120: { + case 32: { // 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 6327dfc..74d8c2e 100644 --- a/src/generated/main/emu/lunarcore/proto/UnlockSkilltreeCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/UnlockSkilltreeCsReqOuterClass.java @@ -20,17 +20,17 @@ public final class UnlockSkilltreeCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 level = 6; + * optional uint32 level = 5; */ private int level; /** - * optional uint32 point_id = 9; + * optional uint32 point_id = 13; */ private int pointId; /** - * repeated .ItemCost item_list = 5; + * repeated .ItemCost item_list = 14; */ private final RepeatedMessage itemList = RepeatedMessage.newEmptyInstance(ItemCostOuterClass.ItemCost.getFactory()); @@ -45,7 +45,7 @@ public final class UnlockSkilltreeCsReqOuterClass { } /** - * optional uint32 level = 6; + * optional uint32 level = 5; * @return whether the level field is set */ public boolean hasLevel() { @@ -53,7 +53,7 @@ public final class UnlockSkilltreeCsReqOuterClass { } /** - * optional uint32 level = 6; + * optional uint32 level = 5; * @return this */ public UnlockSkilltreeCsReq clearLevel() { @@ -63,7 +63,7 @@ public final class UnlockSkilltreeCsReqOuterClass { } /** - * optional uint32 level = 6; + * optional uint32 level = 5; * @return the level */ public int getLevel() { @@ -71,7 +71,7 @@ public final class UnlockSkilltreeCsReqOuterClass { } /** - * optional uint32 level = 6; + * optional uint32 level = 5; * @param value the level to set * @return this */ @@ -82,7 +82,7 @@ public final class UnlockSkilltreeCsReqOuterClass { } /** - * optional uint32 point_id = 9; + * optional uint32 point_id = 13; * @return whether the pointId field is set */ public boolean hasPointId() { @@ -90,7 +90,7 @@ public final class UnlockSkilltreeCsReqOuterClass { } /** - * optional uint32 point_id = 9; + * optional uint32 point_id = 13; * @return this */ public UnlockSkilltreeCsReq clearPointId() { @@ -100,7 +100,7 @@ public final class UnlockSkilltreeCsReqOuterClass { } /** - * optional uint32 point_id = 9; + * optional uint32 point_id = 13; * @return the pointId */ public int getPointId() { @@ -108,7 +108,7 @@ public final class UnlockSkilltreeCsReqOuterClass { } /** - * optional uint32 point_id = 9; + * optional uint32 point_id = 13; * @param value the pointId to set * @return this */ @@ -119,7 +119,7 @@ public final class UnlockSkilltreeCsReqOuterClass { } /** - * repeated .ItemCost item_list = 5; + * repeated .ItemCost item_list = 14; * @return whether the itemList field is set */ public boolean hasItemList() { @@ -127,7 +127,7 @@ public final class UnlockSkilltreeCsReqOuterClass { } /** - * repeated .ItemCost item_list = 5; + * repeated .ItemCost item_list = 14; * @return this */ public UnlockSkilltreeCsReq clearItemList() { @@ -137,7 +137,7 @@ public final class UnlockSkilltreeCsReqOuterClass { } /** - * repeated .ItemCost item_list = 5; + * repeated .ItemCost item_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 final class UnlockSkilltreeCsReqOuterClass { } /** - * repeated .ItemCost item_list = 5; + * repeated .ItemCost item_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 final class UnlockSkilltreeCsReqOuterClass { } /** - * repeated .ItemCost item_list = 5; + * repeated .ItemCost item_list = 14; * @param value the itemList to add * @return this */ @@ -176,7 +176,7 @@ public final class UnlockSkilltreeCsReqOuterClass { } /** - * repeated .ItemCost item_list = 5; + * repeated .ItemCost item_list = 14; * @param values the itemList to add * @return this */ @@ -258,16 +258,16 @@ public final class UnlockSkilltreeCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 40); output.writeUInt32NoTag(level); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 72); + output.writeRawByte((byte) 104); output.writeUInt32NoTag(pointId); } if ((bitField0_ & 0x00000004) != 0) { for (int i = 0; i < itemList.length(); i++) { - output.writeRawByte((byte) 42); + output.writeRawByte((byte) 114); output.writeMessageNoTag(itemList.get(i)); } } @@ -295,25 +295,25 @@ public final class UnlockSkilltreeCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 48: { + case 40: { // level level = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 72) { + if (tag != 104) { break; } } - case 72: { + case 104: { // pointId pointId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 42) { + if (tag != 114) { break; } } - case 42: { + case 114: { // 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 ce5e8b8..210240a 100644 --- a/src/generated/main/emu/lunarcore/proto/UnlockSkilltreeScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/UnlockSkilltreeScRspOuterClass.java @@ -19,25 +19,25 @@ public final class UnlockSkilltreeScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 4; - */ - private int retcode; - - /** - * optional uint32 point_id = 5; + * optional uint32 point_id = 9; */ private int pointId; /** - * optional uint32 level = 14; + * optional uint32 level = 10; */ private int level; /** - * optional uint32 base_avatar_id = 15; + * optional uint32 base_avatar_id = 11; */ private int baseAvatarId; + /** + * optional uint32 retcode = 14; + */ + private int retcode; + private UnlockSkilltreeScRsp() { } @@ -49,62 +49,25 @@ public final class UnlockSkilltreeScRspOuterClass { } /** - * optional uint32 retcode = 4; - * @return whether the retcode field is set + * optional uint32 point_id = 9; + * @return whether the pointId field is set */ - public boolean hasRetcode() { + public boolean hasPointId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 retcode = 4; - * @return this - */ - public UnlockSkilltreeScRsp clearRetcode() { - bitField0_ &= ~0x00000001; - retcode = 0; - return this; - } - - /** - * optional uint32 retcode = 4; - * @return the retcode - */ - public int getRetcode() { - return retcode; - } - - /** - * optional uint32 retcode = 4; - * @param value the retcode to set - * @return this - */ - public UnlockSkilltreeScRsp setRetcode(final int value) { - bitField0_ |= 0x00000001; - retcode = value; - return this; - } - - /** - * optional uint32 point_id = 5; - * @return whether the pointId field is set - */ - public boolean hasPointId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 point_id = 5; + * optional uint32 point_id = 9; * @return this */ public UnlockSkilltreeScRsp clearPointId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; pointId = 0; return this; } /** - * optional uint32 point_id = 5; + * optional uint32 point_id = 9; * @return the pointId */ public int getPointId() { @@ -112,36 +75,36 @@ public final class UnlockSkilltreeScRspOuterClass { } /** - * optional uint32 point_id = 5; + * optional uint32 point_id = 9; * @param value the pointId to set * @return this */ public UnlockSkilltreeScRsp setPointId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; pointId = value; return this; } /** - * optional uint32 level = 14; + * optional uint32 level = 10; * @return whether the level field is set */ public boolean hasLevel() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 level = 14; + * optional uint32 level = 10; * @return this */ public UnlockSkilltreeScRsp clearLevel() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; level = 0; return this; } /** - * optional uint32 level = 14; + * optional uint32 level = 10; * @return the level */ public int getLevel() { @@ -149,36 +112,36 @@ public final class UnlockSkilltreeScRspOuterClass { } /** - * optional uint32 level = 14; + * optional uint32 level = 10; * @param value the level to set * @return this */ public UnlockSkilltreeScRsp setLevel(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; level = value; return this; } /** - * optional uint32 base_avatar_id = 15; + * optional uint32 base_avatar_id = 11; * @return whether the baseAvatarId field is set */ public boolean hasBaseAvatarId() { - return (bitField0_ & 0x00000008) != 0; + return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 base_avatar_id = 15; + * optional uint32 base_avatar_id = 11; * @return this */ public UnlockSkilltreeScRsp clearBaseAvatarId() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000004; baseAvatarId = 0; return this; } /** - * optional uint32 base_avatar_id = 15; + * optional uint32 base_avatar_id = 11; * @return the baseAvatarId */ public int getBaseAvatarId() { @@ -186,25 +149,62 @@ public final class UnlockSkilltreeScRspOuterClass { } /** - * optional uint32 base_avatar_id = 15; + * optional uint32 base_avatar_id = 11; * @param value the baseAvatarId to set * @return this */ public UnlockSkilltreeScRsp setBaseAvatarId(final int value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; baseAvatarId = value; return this; } + /** + * optional uint32 retcode = 14; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 retcode = 14; + * @return this + */ + public UnlockSkilltreeScRsp clearRetcode() { + bitField0_ &= ~0x00000008; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 14; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 14; + * @param value the retcode to set + * @return this + */ + public UnlockSkilltreeScRsp setRetcode(final int value) { + bitField0_ |= 0x00000008; + retcode = value; + return this; + } + @Override public UnlockSkilltreeScRsp copyFrom(final UnlockSkilltreeScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - retcode = other.retcode; pointId = other.pointId; level = other.level; baseAvatarId = other.baseAvatarId; + retcode = other.retcode; } return this; } @@ -215,9 +215,6 @@ public final class UnlockSkilltreeScRspOuterClass { return this; } cachedSize = -1; - if (other.hasRetcode()) { - setRetcode(other.retcode); - } if (other.hasPointId()) { setPointId(other.pointId); } @@ -227,6 +224,9 @@ public final class UnlockSkilltreeScRspOuterClass { if (other.hasBaseAvatarId()) { setBaseAvatarId(other.baseAvatarId); } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } return this; } @@ -237,10 +237,10 @@ public final class UnlockSkilltreeScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - retcode = 0; pointId = 0; level = 0; baseAvatarId = 0; + retcode = 0; return this; } @@ -264,47 +264,47 @@ public final class UnlockSkilltreeScRspOuterClass { } UnlockSkilltreeScRsp other = (UnlockSkilltreeScRsp) o; return bitField0_ == other.bitField0_ - && (!hasRetcode() || retcode == other.retcode) && (!hasPointId() || pointId == other.pointId) && (!hasLevel() || level == other.level) - && (!hasBaseAvatarId() || baseAvatarId == other.baseAvatarId); + && (!hasBaseAvatarId() || baseAvatarId == other.baseAvatarId) + && (!hasRetcode() || retcode == other.retcode); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 32); - output.writeUInt32NoTag(retcode); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 72); output.writeUInt32NoTag(pointId); } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 112); + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 80); output.writeUInt32NoTag(level); } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 120); + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 88); output.writeUInt32NoTag(baseAvatarId); } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(retcode); + } } @Override protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); - } - if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(pointId); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(level); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } return size; } @@ -315,36 +315,36 @@ public final class UnlockSkilltreeScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 32: { - // retcode - retcode = input.readUInt32(); + case 72: { + // pointId + pointId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 40) { + if (tag != 80) { break; } } - case 40: { - // pointId - pointId = input.readUInt32(); + case 80: { + // level + level = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { + // baseAvatarId + baseAvatarId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); if (tag != 112) { break; } } case 112: { - // level - level = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 120) { - break; - } - } - case 120: { - // baseAvatarId - baseAvatarId = input.readUInt32(); + // retcode + retcode = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 0) { @@ -369,17 +369,17 @@ public final class UnlockSkilltreeScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.pointId, pointId); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.level, level); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.baseAvatarId, baseAvatarId); } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } output.endObject(); } @@ -390,23 +390,12 @@ public final class UnlockSkilltreeScRspOuterClass { } 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 -400606517: case 466121258: { if (input.isAtField(FieldNames.pointId)) { if (!input.trySkipNullValue()) { pointId = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } else { input.skipUnknownField(); @@ -417,7 +406,7 @@ public final class UnlockSkilltreeScRspOuterClass { if (input.isAtField(FieldNames.level)) { if (!input.trySkipNullValue()) { level = input.readUInt32(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; } } else { input.skipUnknownField(); @@ -429,6 +418,17 @@ public final class UnlockSkilltreeScRspOuterClass { if (input.isAtField(FieldNames.baseAvatarId)) { if (!input.trySkipNullValue()) { baseAvatarId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); bitField0_ |= 0x00000008; } } else { @@ -489,13 +489,13 @@ public final class UnlockSkilltreeScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - 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"); + + static final FieldName retcode = FieldName.forField("retcode"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/UnlockedMusicOuterClass.java b/src/generated/main/emu/lunarcore/proto/UnlockedMusicOuterClass.java index 0b70bba..0c6cbb8 100644 --- a/src/generated/main/emu/lunarcore/proto/UnlockedMusicOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/UnlockedMusicOuterClass.java @@ -19,17 +19,21 @@ public final class UnlockedMusicOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 group_id = 9; - */ - private int groupId; - - /** - * optional uint32 id = 13; + * optional uint32 id = 4; */ private int id; /** - * optional bool unkbool = 3; + * optional uint32 group_id = 12; + */ + private int groupId; + + /** + *
+     *  is_played
+     * 
+ * + * optional bool unkbool = 15; */ private boolean unkbool; @@ -44,62 +48,25 @@ public final class UnlockedMusicOuterClass { } /** - * optional uint32 group_id = 9; - * @return whether the groupId field is set + * optional uint32 id = 4; + * @return whether the id field is set */ - public boolean hasGroupId() { + public boolean hasId() { 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; + * optional uint32 id = 4; * @return this */ public UnlockedMusic clearId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; id = 0; return this; } /** - * optional uint32 id = 13; + * optional uint32 id = 4; * @return the id */ public int getId() { @@ -107,18 +74,59 @@ public final class UnlockedMusicOuterClass { } /** - * optional uint32 id = 13; + * optional uint32 id = 4; * @param value the id to set * @return this */ public UnlockedMusic setId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; id = value; return this; } /** - * optional bool unkbool = 3; + * optional uint32 group_id = 12; + * @return whether the groupId field is set + */ + public boolean hasGroupId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 group_id = 12; + * @return this + */ + public UnlockedMusic clearGroupId() { + bitField0_ &= ~0x00000002; + groupId = 0; + return this; + } + + /** + * optional uint32 group_id = 12; + * @return the groupId + */ + public int getGroupId() { + return groupId; + } + + /** + * optional uint32 group_id = 12; + * @param value the groupId to set + * @return this + */ + public UnlockedMusic setGroupId(final int value) { + bitField0_ |= 0x00000002; + groupId = value; + return this; + } + + /** + *
+     *  is_played
+     * 
+ * + * optional bool unkbool = 15; * @return whether the unkbool field is set */ public boolean hasUnkbool() { @@ -126,7 +134,11 @@ public final class UnlockedMusicOuterClass { } /** - * optional bool unkbool = 3; + *
+     *  is_played
+     * 
+ * + * optional bool unkbool = 15; * @return this */ public UnlockedMusic clearUnkbool() { @@ -136,7 +148,11 @@ public final class UnlockedMusicOuterClass { } /** - * optional bool unkbool = 3; + *
+     *  is_played
+     * 
+ * + * optional bool unkbool = 15; * @return the unkbool */ public boolean getUnkbool() { @@ -144,7 +160,11 @@ public final class UnlockedMusicOuterClass { } /** - * optional bool unkbool = 3; + *
+     *  is_played
+     * 
+ * + * optional bool unkbool = 15; * @param value the unkbool to set * @return this */ @@ -159,8 +179,8 @@ public final class UnlockedMusicOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - groupId = other.groupId; id = other.id; + groupId = other.groupId; unkbool = other.unkbool; } return this; @@ -172,12 +192,12 @@ public final class UnlockedMusicOuterClass { return this; } cachedSize = -1; - if (other.hasGroupId()) { - setGroupId(other.groupId); - } if (other.hasId()) { setId(other.id); } + if (other.hasGroupId()) { + setGroupId(other.groupId); + } if (other.hasUnkbool()) { setUnkbool(other.unkbool); } @@ -191,8 +211,8 @@ public final class UnlockedMusicOuterClass { } cachedSize = -1; bitField0_ = 0; - groupId = 0; id = 0; + groupId = 0; unkbool = false; return this; } @@ -217,23 +237,23 @@ public final class UnlockedMusicOuterClass { } UnlockedMusic other = (UnlockedMusic) o; return bitField0_ == other.bitField0_ - && (!hasGroupId() || groupId == other.groupId) && (!hasId() || id == other.id) + && (!hasGroupId() || groupId == other.groupId) && (!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.writeRawByte((byte) 32); output.writeUInt32NoTag(id); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(groupId); + } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 120); output.writeBoolNoTag(unkbool); } } @@ -242,10 +262,10 @@ public final class UnlockedMusicOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(id); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(id); + size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); } if ((bitField0_ & 0x00000004) != 0) { size += 2; @@ -260,25 +280,25 @@ public final class UnlockedMusicOuterClass { 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: { + case 32: { // id id = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 24) { + if (tag != 96) { break; } } - case 24: { + case 96: { + // groupId + groupId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { // unkbool unkbool = input.readBool(); bitField0_ |= 0x00000004; @@ -305,10 +325,10 @@ public final class UnlockedMusicOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.groupId, groupId); + output.writeUInt32(FieldNames.id, id); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.id, id); + output.writeUInt32(FieldNames.groupId, groupId); } if ((bitField0_ & 0x00000004) != 0) { output.writeBool(FieldNames.unkbool, unkbool); @@ -323,11 +343,10 @@ public final class UnlockedMusicOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 293428218: - case 506361563: { - if (input.isAtField(FieldNames.groupId)) { + case 3355: { + if (input.isAtField(FieldNames.id)) { if (!input.trySkipNullValue()) { - groupId = input.readUInt32(); + id = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -335,10 +354,11 @@ public final class UnlockedMusicOuterClass { } break; } - case 3355: { - if (input.isAtField(FieldNames.id)) { + case 293428218: + case 506361563: { + if (input.isAtField(FieldNames.groupId)) { if (!input.trySkipNullValue()) { - id = input.readUInt32(); + groupId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -409,10 +429,10 @@ public final class UnlockedMusicOuterClass { * 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 groupId = FieldName.forField("groupId", "group_id"); + static final FieldName unkbool = FieldName.forField("unkbool"); } } diff --git a/src/generated/main/emu/lunarcore/proto/UpdateEnergyScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/UpdateEnergyScNotifyOuterClass.java new file mode 100644 index 0000000..5cc4fd0 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/UpdateEnergyScNotifyOuterClass.java @@ -0,0 +1,607 @@ +// 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 UpdateEnergyScNotifyOuterClass { + /** + * Protobuf type {@code UpdateEnergyScNotify} + */ + public static final class UpdateEnergyScNotify extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .UpdateEnergyScNotify.EnergyInfo energy_info = 1; + */ + private final EnergyInfo energyInfo = EnergyInfo.newInstance(); + + private UpdateEnergyScNotify() { + } + + /** + * @return a new empty instance of {@code UpdateEnergyScNotify} + */ + public static UpdateEnergyScNotify newInstance() { + return new UpdateEnergyScNotify(); + } + + /** + * optional .UpdateEnergyScNotify.EnergyInfo energy_info = 1; + * @return whether the energyInfo field is set + */ + public boolean hasEnergyInfo() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .UpdateEnergyScNotify.EnergyInfo energy_info = 1; + * @return this + */ + public UpdateEnergyScNotify clearEnergyInfo() { + bitField0_ &= ~0x00000001; + energyInfo.clear(); + return this; + } + + /** + * optional .UpdateEnergyScNotify.EnergyInfo energy_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 #getMutableEnergyInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public EnergyInfo getEnergyInfo() { + return energyInfo; + } + + /** + * optional .UpdateEnergyScNotify.EnergyInfo energy_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 + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public EnergyInfo getMutableEnergyInfo() { + bitField0_ |= 0x00000001; + return energyInfo; + } + + /** + * optional .UpdateEnergyScNotify.EnergyInfo energy_info = 1; + * @param value the energyInfo to set + * @return this + */ + public UpdateEnergyScNotify setEnergyInfo(final EnergyInfo value) { + bitField0_ |= 0x00000001; + energyInfo.copyFrom(value); + return this; + } + + @Override + public UpdateEnergyScNotify copyFrom(final UpdateEnergyScNotify other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + energyInfo.copyFrom(other.energyInfo); + } + return this; + } + + @Override + public UpdateEnergyScNotify mergeFrom(final UpdateEnergyScNotify other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasEnergyInfo()) { + getMutableEnergyInfo().mergeFrom(other.energyInfo); + } + return this; + } + + @Override + public UpdateEnergyScNotify clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + energyInfo.clear(); + return this; + } + + @Override + public UpdateEnergyScNotify clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + energyInfo.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof UpdateEnergyScNotify)) { + return false; + } + UpdateEnergyScNotify other = (UpdateEnergyScNotify) o; + return bitField0_ == other.bitField0_ + && (!hasEnergyInfo() || energyInfo.equals(other.energyInfo)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(energyInfo); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(energyInfo); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public UpdateEnergyScNotify mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 10: { + // energyInfo + input.readMessage(energyInfo); + bitField0_ |= 0x00000001; + 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.writeMessage(FieldNames.energyInfo, energyInfo); + } + output.endObject(); + } + + @Override + public UpdateEnergyScNotify mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1464698710: + case -1818804219: { + if (input.isAtField(FieldNames.energyInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(energyInfo); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public UpdateEnergyScNotify clone() { + return new UpdateEnergyScNotify().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static UpdateEnergyScNotify parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new UpdateEnergyScNotify(), data).checkInitialized(); + } + + public static UpdateEnergyScNotify parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new UpdateEnergyScNotify(), input).checkInitialized(); + } + + public static UpdateEnergyScNotify parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new UpdateEnergyScNotify(), input).checkInitialized(); + } + + /** + * @return factory for creating UpdateEnergyScNotify messages + */ + public static MessageFactory getFactory() { + return UpdateEnergyScNotifyFactory.INSTANCE; + } + + /** + * Protobuf type {@code EnergyInfo} + */ + public static final class EnergyInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 cur_num = 3; + */ + private int curNum; + + /** + * optional uint32 max_num = 14; + */ + private int maxNum; + + private EnergyInfo() { + } + + /** + * @return a new empty instance of {@code EnergyInfo} + */ + public static EnergyInfo newInstance() { + return new EnergyInfo(); + } + + /** + * optional uint32 cur_num = 3; + * @return whether the curNum field is set + */ + public boolean hasCurNum() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 cur_num = 3; + * @return this + */ + public EnergyInfo clearCurNum() { + bitField0_ &= ~0x00000001; + curNum = 0; + return this; + } + + /** + * optional uint32 cur_num = 3; + * @return the curNum + */ + public int getCurNum() { + return curNum; + } + + /** + * optional uint32 cur_num = 3; + * @param value the curNum to set + * @return this + */ + public EnergyInfo setCurNum(final int value) { + bitField0_ |= 0x00000001; + curNum = value; + return this; + } + + /** + * optional uint32 max_num = 14; + * @return whether the maxNum field is set + */ + public boolean hasMaxNum() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 max_num = 14; + * @return this + */ + public EnergyInfo clearMaxNum() { + bitField0_ &= ~0x00000002; + maxNum = 0; + return this; + } + + /** + * optional uint32 max_num = 14; + * @return the maxNum + */ + public int getMaxNum() { + return maxNum; + } + + /** + * optional uint32 max_num = 14; + * @param value the maxNum to set + * @return this + */ + public EnergyInfo setMaxNum(final int value) { + bitField0_ |= 0x00000002; + maxNum = value; + return this; + } + + @Override + public EnergyInfo copyFrom(final EnergyInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + curNum = other.curNum; + maxNum = other.maxNum; + } + return this; + } + + @Override + public EnergyInfo mergeFrom(final EnergyInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasCurNum()) { + setCurNum(other.curNum); + } + if (other.hasMaxNum()) { + setMaxNum(other.maxNum); + } + return this; + } + + @Override + public EnergyInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + curNum = 0; + maxNum = 0; + return this; + } + + @Override + public EnergyInfo 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 EnergyInfo)) { + return false; + } + EnergyInfo other = (EnergyInfo) o; + return bitField0_ == other.bitField0_ + && (!hasCurNum() || curNum == other.curNum) + && (!hasMaxNum() || maxNum == other.maxNum); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(curNum); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(maxNum); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(curNum); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(maxNum); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public EnergyInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 24: { + // curNum + curNum = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // maxNum + maxNum = 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.curNum, curNum); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.maxNum, maxNum); + } + output.endObject(); + } + + @Override + public EnergyInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1349154522: + case 1126382855: { + if (input.isAtField(FieldNames.curNum)) { + if (!input.trySkipNullValue()) { + curNum = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1081154686: + case 844443179: { + if (input.isAtField(FieldNames.maxNum)) { + if (!input.trySkipNullValue()) { + maxNum = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public EnergyInfo clone() { + return new EnergyInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static EnergyInfo parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new EnergyInfo(), data).checkInitialized(); + } + + public static EnergyInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new EnergyInfo(), input).checkInitialized(); + } + + public static EnergyInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new EnergyInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating EnergyInfo messages + */ + public static MessageFactory getFactory() { + return EnergyInfoFactory.INSTANCE; + } + + private enum EnergyInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public EnergyInfo create() { + return EnergyInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName curNum = FieldName.forField("curNum", "cur_num"); + + static final FieldName maxNum = FieldName.forField("maxNum", "max_num"); + } + } + + private enum UpdateEnergyScNotifyFactory implements MessageFactory { + INSTANCE; + + @Override + public UpdateEnergyScNotify create() { + return UpdateEnergyScNotify.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName energyInfo = FieldName.forField("energyInfo", "energy_info"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/UseItemCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/UseItemCsReqOuterClass.java index b4ffb41..61ba99d 100644 --- a/src/generated/main/emu/lunarcore/proto/UseItemCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/UseItemCsReqOuterClass.java @@ -19,27 +19,27 @@ public final class UseItemCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 use_item_count = 4; - */ - private int useItemCount; - - /** - * optional uint32 optional_reward_id = 5; - */ - private int optionalRewardId; - - /** - * optional uint32 use_item_id = 11; + * optional uint32 use_item_id = 2; */ private int useItemId; /** - * optional uint32 base_avatar_id = 14; + * optional uint32 use_item_count = 7; + */ + private int useItemCount; + + /** + * optional uint32 base_avatar_id = 12; */ private int baseAvatarId; /** - * optional .AvatarType use_avatar_type = 12; + * optional uint32 optional_reward_id = 15; + */ + private int optionalRewardId; + + /** + * optional .AvatarType use_avatar_type = 14; */ private int useAvatarType; @@ -54,99 +54,25 @@ public final class UseItemCsReqOuterClass { } /** - * optional uint32 use_item_count = 4; - * @return whether the useItemCount field is set + * optional uint32 use_item_id = 2; + * @return whether the useItemId field is set */ - public boolean hasUseItemCount() { + public boolean hasUseItemId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 use_item_count = 4; - * @return this - */ - public UseItemCsReq clearUseItemCount() { - bitField0_ &= ~0x00000001; - useItemCount = 0; - return this; - } - - /** - * optional uint32 use_item_count = 4; - * @return the useItemCount - */ - public int getUseItemCount() { - return useItemCount; - } - - /** - * optional uint32 use_item_count = 4; - * @param value the useItemCount to set - * @return this - */ - public UseItemCsReq setUseItemCount(final int value) { - bitField0_ |= 0x00000001; - useItemCount = value; - return this; - } - - /** - * optional uint32 optional_reward_id = 5; - * @return whether the optionalRewardId field is set - */ - public boolean hasOptionalRewardId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 optional_reward_id = 5; - * @return this - */ - public UseItemCsReq clearOptionalRewardId() { - bitField0_ &= ~0x00000002; - optionalRewardId = 0; - return this; - } - - /** - * optional uint32 optional_reward_id = 5; - * @return the optionalRewardId - */ - public int getOptionalRewardId() { - return optionalRewardId; - } - - /** - * optional uint32 optional_reward_id = 5; - * @param value the optionalRewardId to set - * @return this - */ - public UseItemCsReq setOptionalRewardId(final int value) { - bitField0_ |= 0x00000002; - optionalRewardId = value; - return this; - } - - /** - * optional uint32 use_item_id = 11; - * @return whether the useItemId field is set - */ - public boolean hasUseItemId() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 use_item_id = 11; + * optional uint32 use_item_id = 2; * @return this */ public UseItemCsReq clearUseItemId() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000001; useItemId = 0; return this; } /** - * optional uint32 use_item_id = 11; + * optional uint32 use_item_id = 2; * @return the useItemId */ public int getUseItemId() { @@ -154,36 +80,73 @@ public final class UseItemCsReqOuterClass { } /** - * optional uint32 use_item_id = 11; + * optional uint32 use_item_id = 2; * @param value the useItemId to set * @return this */ public UseItemCsReq setUseItemId(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; useItemId = value; return this; } /** - * optional uint32 base_avatar_id = 14; - * @return whether the baseAvatarId field is set + * optional uint32 use_item_count = 7; + * @return whether the useItemCount field is set */ - public boolean hasBaseAvatarId() { - return (bitField0_ & 0x00000008) != 0; + public boolean hasUseItemCount() { + return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 base_avatar_id = 14; + * optional uint32 use_item_count = 7; + * @return this + */ + public UseItemCsReq clearUseItemCount() { + bitField0_ &= ~0x00000002; + useItemCount = 0; + return this; + } + + /** + * optional uint32 use_item_count = 7; + * @return the useItemCount + */ + public int getUseItemCount() { + return useItemCount; + } + + /** + * optional uint32 use_item_count = 7; + * @param value the useItemCount to set + * @return this + */ + public UseItemCsReq setUseItemCount(final int value) { + bitField0_ |= 0x00000002; + useItemCount = value; + return this; + } + + /** + * optional uint32 base_avatar_id = 12; + * @return whether the baseAvatarId field is set + */ + public boolean hasBaseAvatarId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 base_avatar_id = 12; * @return this */ public UseItemCsReq clearBaseAvatarId() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000004; baseAvatarId = 0; return this; } /** - * optional uint32 base_avatar_id = 14; + * optional uint32 base_avatar_id = 12; * @return the baseAvatarId */ public int getBaseAvatarId() { @@ -191,18 +154,55 @@ public final class UseItemCsReqOuterClass { } /** - * optional uint32 base_avatar_id = 14; + * optional uint32 base_avatar_id = 12; * @param value the baseAvatarId to set * @return this */ public UseItemCsReq setBaseAvatarId(final int value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; baseAvatarId = value; return this; } /** - * optional .AvatarType use_avatar_type = 12; + * optional uint32 optional_reward_id = 15; + * @return whether the optionalRewardId field is set + */ + public boolean hasOptionalRewardId() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 optional_reward_id = 15; + * @return this + */ + public UseItemCsReq clearOptionalRewardId() { + bitField0_ &= ~0x00000008; + optionalRewardId = 0; + return this; + } + + /** + * optional uint32 optional_reward_id = 15; + * @return the optionalRewardId + */ + public int getOptionalRewardId() { + return optionalRewardId; + } + + /** + * optional uint32 optional_reward_id = 15; + * @param value the optionalRewardId to set + * @return this + */ + public UseItemCsReq setOptionalRewardId(final int value) { + bitField0_ |= 0x00000008; + optionalRewardId = value; + return this; + } + + /** + * optional .AvatarType use_avatar_type = 14; * @return whether the useAvatarType field is set */ public boolean hasUseAvatarType() { @@ -210,7 +210,7 @@ public final class UseItemCsReqOuterClass { } /** - * optional .AvatarType use_avatar_type = 12; + * optional .AvatarType use_avatar_type = 14; * @return this */ public UseItemCsReq clearUseAvatarType() { @@ -220,7 +220,7 @@ public final class UseItemCsReqOuterClass { } /** - * optional .AvatarType use_avatar_type = 12; + * optional .AvatarType use_avatar_type = 14; * @return the useAvatarType */ public AvatarTypeOuterClass.AvatarType getUseAvatarType() { @@ -253,7 +253,7 @@ public final class UseItemCsReqOuterClass { } /** - * optional .AvatarType use_avatar_type = 12; + * optional .AvatarType use_avatar_type = 14; * @param value the useAvatarType to set * @return this */ @@ -268,10 +268,10 @@ public final class UseItemCsReqOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - useItemCount = other.useItemCount; - optionalRewardId = other.optionalRewardId; useItemId = other.useItemId; + useItemCount = other.useItemCount; baseAvatarId = other.baseAvatarId; + optionalRewardId = other.optionalRewardId; useAvatarType = other.useAvatarType; } return this; @@ -283,18 +283,18 @@ public final class UseItemCsReqOuterClass { return this; } cachedSize = -1; - if (other.hasUseItemCount()) { - setUseItemCount(other.useItemCount); - } - if (other.hasOptionalRewardId()) { - setOptionalRewardId(other.optionalRewardId); - } if (other.hasUseItemId()) { setUseItemId(other.useItemId); } + if (other.hasUseItemCount()) { + setUseItemCount(other.useItemCount); + } if (other.hasBaseAvatarId()) { setBaseAvatarId(other.baseAvatarId); } + if (other.hasOptionalRewardId()) { + setOptionalRewardId(other.optionalRewardId); + } if (other.hasUseAvatarType()) { setUseAvatarTypeValue(other.useAvatarType); } @@ -308,10 +308,10 @@ public final class UseItemCsReqOuterClass { } cachedSize = -1; bitField0_ = 0; - useItemCount = 0; - optionalRewardId = 0; useItemId = 0; + useItemCount = 0; baseAvatarId = 0; + optionalRewardId = 0; useAvatarType = 0; return this; } @@ -336,33 +336,33 @@ public final class UseItemCsReqOuterClass { } UseItemCsReq other = (UseItemCsReq) o; return bitField0_ == other.bitField0_ - && (!hasUseItemCount() || useItemCount == other.useItemCount) - && (!hasOptionalRewardId() || optionalRewardId == other.optionalRewardId) && (!hasUseItemId() || useItemId == other.useItemId) + && (!hasUseItemCount() || useItemCount == other.useItemCount) && (!hasBaseAvatarId() || baseAvatarId == other.baseAvatarId) + && (!hasOptionalRewardId() || optionalRewardId == other.optionalRewardId) && (!hasUseAvatarType() || useAvatarType == other.useAvatarType); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 32); - output.writeUInt32NoTag(useItemCount); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 40); - output.writeUInt32NoTag(optionalRewardId); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 16); output.writeUInt32NoTag(useItemId); } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 112); + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(useItemCount); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 96); output.writeUInt32NoTag(baseAvatarId); } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(optionalRewardId); + } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 112); output.writeEnumNoTag(useAvatarType); } } @@ -371,17 +371,17 @@ public final class UseItemCsReqOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(useItemCount); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(optionalRewardId); - } - if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(useItemId); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(useItemCount); + } + if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(optionalRewardId); + } if ((bitField0_ & 0x00000010) != 0) { size += 1 + ProtoSink.computeEnumSizeNoTag(useAvatarType); } @@ -395,43 +395,43 @@ public final class UseItemCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 32: { - // useItemCount - useItemCount = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 40) { - break; - } - } - case 40: { - // optionalRewardId - optionalRewardId = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 88) { - break; - } - } - case 88: { + case 16: { // useItemId useItemId = input.readUInt32(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 112) { + if (tag != 56) { break; } } - case 112: { - // baseAvatarId - baseAvatarId = input.readUInt32(); - bitField0_ |= 0x00000008; + case 56: { + // useItemCount + useItemCount = input.readUInt32(); + bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 96) { break; } } case 96: { + // baseAvatarId + baseAvatarId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // optionalRewardId + optionalRewardId = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { // useAvatarType final int value = input.readInt32(); if (AvatarTypeOuterClass.AvatarType.forNumber(value) != null) { @@ -461,17 +461,17 @@ public final class UseItemCsReqOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.useItemCount, useItemCount); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.optionalRewardId, optionalRewardId); - } - if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.useItemId, useItemId); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.useItemCount, useItemCount); + } + if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.baseAvatarId, baseAvatarId); } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.optionalRewardId, optionalRewardId); + } if ((bitField0_ & 0x00000010) != 0) { output.writeEnum(FieldNames.useAvatarType, useAvatarType, AvatarTypeOuterClass.AvatarType.converter()); } @@ -485,11 +485,11 @@ public final class UseItemCsReqOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - 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_ |= 0x00000001; } } else { @@ -497,11 +497,11 @@ public final class UseItemCsReqOuterClass { } break; } - case -1391749078: - case -1451381236: { - if (input.isAtField(FieldNames.optionalRewardId)) { + case -1104380939: + case 871430811: { + if (input.isAtField(FieldNames.useItemCount)) { if (!input.trySkipNullValue()) { - optionalRewardId = input.readUInt32(); + useItemCount = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -509,23 +509,23 @@ public final class UseItemCsReqOuterClass { } break; } - case -815318027: - case 1396027151: { - if (input.isAtField(FieldNames.useItemId)) { - if (!input.trySkipNullValue()) { - useItemId = input.readUInt32(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } case 118022725: case -1756826157: { if (input.isAtField(FieldNames.baseAvatarId)) { if (!input.trySkipNullValue()) { baseAvatarId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1391749078: + case -1451381236: { + if (input.isAtField(FieldNames.optionalRewardId)) { + if (!input.trySkipNullValue()) { + optionalRewardId = input.readUInt32(); bitField0_ |= 0x00000008; } } else { @@ -602,14 +602,14 @@ public final class UseItemCsReqOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName useItemCount = FieldName.forField("useItemCount", "use_item_count"); - - static final FieldName optionalRewardId = FieldName.forField("optionalRewardId", "optional_reward_id"); - static final FieldName useItemId = FieldName.forField("useItemId", "use_item_id"); + static final FieldName useItemCount = FieldName.forField("useItemCount", "use_item_count"); + static final FieldName baseAvatarId = FieldName.forField("baseAvatarId", "base_avatar_id"); + static final FieldName optionalRewardId = FieldName.forField("optionalRewardId", "optional_reward_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 10b84f6..dfcf2e3 100644 --- a/src/generated/main/emu/lunarcore/proto/UseItemScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/UseItemScRspOuterClass.java @@ -19,22 +19,22 @@ public final class UseItemScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 7; - */ - private int retcode; - - /** - * optional uint32 use_item_id = 11; + * optional uint32 use_item_id = 8; */ private int useItemId; /** - * optional uint32 use_item_count = 12; + * optional uint32 retcode = 11; + */ + private int retcode; + + /** + * optional uint32 use_item_count = 15; */ private int useItemCount; /** - * optional .ItemList return_data = 1; + * optional .ItemList return_data = 9; */ private final ItemListOuterClass.ItemList returnData = ItemListOuterClass.ItemList.newInstance(); @@ -49,62 +49,25 @@ public final class UseItemScRspOuterClass { } /** - * optional uint32 retcode = 7; - * @return whether the retcode field is set + * optional uint32 use_item_id = 8; + * @return whether the useItemId field is set */ - public boolean hasRetcode() { + public boolean hasUseItemId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 retcode = 7; - * @return this - */ - public UseItemScRsp clearRetcode() { - bitField0_ &= ~0x00000001; - retcode = 0; - return this; - } - - /** - * optional uint32 retcode = 7; - * @return the retcode - */ - public int getRetcode() { - return retcode; - } - - /** - * optional uint32 retcode = 7; - * @param value the retcode to set - * @return this - */ - public UseItemScRsp setRetcode(final int value) { - bitField0_ |= 0x00000001; - retcode = value; - return this; - } - - /** - * optional uint32 use_item_id = 11; - * @return whether the useItemId field is set - */ - public boolean hasUseItemId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 use_item_id = 11; + * optional uint32 use_item_id = 8; * @return this */ public UseItemScRsp clearUseItemId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; useItemId = 0; return this; } /** - * optional uint32 use_item_id = 11; + * optional uint32 use_item_id = 8; * @return the useItemId */ public int getUseItemId() { @@ -112,18 +75,55 @@ public final class UseItemScRspOuterClass { } /** - * optional uint32 use_item_id = 11; + * optional uint32 use_item_id = 8; * @param value the useItemId to set * @return this */ public UseItemScRsp setUseItemId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; useItemId = value; return this; } /** - * optional uint32 use_item_count = 12; + * optional uint32 retcode = 11; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 retcode = 11; + * @return this + */ + public UseItemScRsp clearRetcode() { + bitField0_ &= ~0x00000002; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 11; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 11; + * @param value the retcode to set + * @return this + */ + public UseItemScRsp setRetcode(final int value) { + bitField0_ |= 0x00000002; + retcode = value; + return this; + } + + /** + * optional uint32 use_item_count = 15; * @return whether the useItemCount field is set */ public boolean hasUseItemCount() { @@ -131,7 +131,7 @@ public final class UseItemScRspOuterClass { } /** - * optional uint32 use_item_count = 12; + * optional uint32 use_item_count = 15; * @return this */ public UseItemScRsp clearUseItemCount() { @@ -141,7 +141,7 @@ public final class UseItemScRspOuterClass { } /** - * optional uint32 use_item_count = 12; + * optional uint32 use_item_count = 15; * @return the useItemCount */ public int getUseItemCount() { @@ -149,7 +149,7 @@ public final class UseItemScRspOuterClass { } /** - * optional uint32 use_item_count = 12; + * optional uint32 use_item_count = 15; * @param value the useItemCount to set * @return this */ @@ -160,7 +160,7 @@ public final class UseItemScRspOuterClass { } /** - * optional .ItemList return_data = 1; + * optional .ItemList return_data = 9; * @return whether the returnData field is set */ public boolean hasReturnData() { @@ -168,7 +168,7 @@ public final class UseItemScRspOuterClass { } /** - * optional .ItemList return_data = 1; + * optional .ItemList return_data = 9; * @return this */ public UseItemScRsp clearReturnData() { @@ -178,7 +178,7 @@ public final class UseItemScRspOuterClass { } /** - * optional .ItemList return_data = 1; + * optional .ItemList return_data = 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. @@ -192,7 +192,7 @@ public final class UseItemScRspOuterClass { } /** - * optional .ItemList return_data = 1; + * optional .ItemList return_data = 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,7 +206,7 @@ public final class UseItemScRspOuterClass { } /** - * optional .ItemList return_data = 1; + * optional .ItemList return_data = 9; * @param value the returnData to set * @return this */ @@ -221,8 +221,8 @@ public final class UseItemScRspOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - retcode = other.retcode; useItemId = other.useItemId; + retcode = other.retcode; useItemCount = other.useItemCount; returnData.copyFrom(other.returnData); } @@ -235,12 +235,12 @@ public final class UseItemScRspOuterClass { return this; } cachedSize = -1; - if (other.hasRetcode()) { - setRetcode(other.retcode); - } if (other.hasUseItemId()) { setUseItemId(other.useItemId); } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } if (other.hasUseItemCount()) { setUseItemCount(other.useItemCount); } @@ -257,8 +257,8 @@ public final class UseItemScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - retcode = 0; useItemId = 0; + retcode = 0; useItemCount = 0; returnData.clear(); return this; @@ -285,8 +285,8 @@ public final class UseItemScRspOuterClass { } UseItemScRsp other = (UseItemScRsp) o; return bitField0_ == other.bitField0_ - && (!hasRetcode() || retcode == other.retcode) && (!hasUseItemId() || useItemId == other.useItemId) + && (!hasRetcode() || retcode == other.retcode) && (!hasUseItemCount() || useItemCount == other.useItemCount) && (!hasReturnData() || returnData.equals(other.returnData)); } @@ -294,19 +294,19 @@ public final class UseItemScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 56); - output.writeUInt32NoTag(retcode); + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(useItemId); } if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 88); - output.writeUInt32NoTag(useItemId); + output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 120); output.writeUInt32NoTag(useItemCount); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 10); + output.writeRawByte((byte) 74); output.writeMessageNoTag(returnData); } } @@ -315,10 +315,10 @@ public final class UseItemScRspOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(useItemId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(useItemId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(useItemCount); @@ -336,9 +336,9 @@ public final class UseItemScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 56: { - // retcode - retcode = input.readUInt32(); + case 64: { + // useItemId + useItemId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 88) { @@ -346,24 +346,24 @@ public final class UseItemScRspOuterClass { } } case 88: { - // useItemId - useItemId = input.readUInt32(); + // retcode + retcode = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 96) { + if (tag != 120) { break; } } - case 96: { + case 120: { // useItemCount useItemCount = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 10) { + if (tag != 74) { break; } } - case 10: { + case 74: { // returnData input.readMessage(returnData); bitField0_ |= 0x00000008; @@ -390,10 +390,10 @@ public final class UseItemScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.useItemId, useItemId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.useItemId, useItemId); + output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.useItemCount, useItemCount); @@ -411,10 +411,11 @@ public final class UseItemScRspOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { + case -815318027: + case 1396027151: { + if (input.isAtField(FieldNames.useItemId)) { if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); + useItemId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -422,11 +423,10 @@ public final class UseItemScRspOuterClass { } break; } - 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_ |= 0x00000002; } } else { @@ -510,10 +510,10 @@ public final class UseItemScRspOuterClass { * 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 retcode = FieldName.forField("retcode"); + static final FieldName useItemCount = FieldName.forField("useItemCount", "use_item_count"); 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 728dd88..bc91b15 100644 --- a/src/generated/main/emu/lunarcore/proto/VectorOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/VectorOuterClass.java @@ -19,17 +19,17 @@ public final class VectorOuterClass { private static final long serialVersionUID = 0L; /** - * optional sint32 z = 3; - */ - private int z; - - /** - * optional sint32 y = 5; + * optional sint32 y = 2; */ private int y; /** - * optional sint32 x = 7; + * optional sint32 z = 11; + */ + private int z; + + /** + * optional sint32 x = 12; */ private int x; @@ -44,62 +44,25 @@ public final class VectorOuterClass { } /** - * optional sint32 z = 3; - * @return whether the z field is set + * optional sint32 y = 2; + * @return whether the y field is set */ - public boolean hasZ() { + public boolean hasY() { return (bitField0_ & 0x00000001) != 0; } /** - * optional sint32 z = 3; - * @return this - */ - public Vector clearZ() { - bitField0_ &= ~0x00000001; - z = 0; - return this; - } - - /** - * optional sint32 z = 3; - * @return the z - */ - public int getZ() { - return z; - } - - /** - * optional sint32 z = 3; - * @param value the z to set - * @return this - */ - public Vector setZ(final int value) { - bitField0_ |= 0x00000001; - z = value; - return this; - } - - /** - * optional sint32 y = 5; - * @return whether the y field is set - */ - public boolean hasY() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional sint32 y = 5; + * optional sint32 y = 2; * @return this */ public Vector clearY() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; y = 0; return this; } /** - * optional sint32 y = 5; + * optional sint32 y = 2; * @return the y */ public int getY() { @@ -107,18 +70,55 @@ public final class VectorOuterClass { } /** - * optional sint32 y = 5; + * optional sint32 y = 2; * @param value the y to set * @return this */ public Vector setY(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; y = value; return this; } /** - * optional sint32 x = 7; + * optional sint32 z = 11; + * @return whether the z field is set + */ + public boolean hasZ() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional sint32 z = 11; + * @return this + */ + public Vector clearZ() { + bitField0_ &= ~0x00000002; + z = 0; + return this; + } + + /** + * optional sint32 z = 11; + * @return the z + */ + public int getZ() { + return z; + } + + /** + * optional sint32 z = 11; + * @param value the z to set + * @return this + */ + public Vector setZ(final int value) { + bitField0_ |= 0x00000002; + z = value; + return this; + } + + /** + * optional sint32 x = 12; * @return whether the x field is set */ public boolean hasX() { @@ -126,7 +126,7 @@ public final class VectorOuterClass { } /** - * optional sint32 x = 7; + * optional sint32 x = 12; * @return this */ public Vector clearX() { @@ -136,7 +136,7 @@ public final class VectorOuterClass { } /** - * optional sint32 x = 7; + * optional sint32 x = 12; * @return the x */ public int getX() { @@ -144,7 +144,7 @@ public final class VectorOuterClass { } /** - * optional sint32 x = 7; + * optional sint32 x = 12; * @param value the x to set * @return this */ @@ -159,8 +159,8 @@ public final class VectorOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - z = other.z; y = other.y; + z = other.z; x = other.x; } return this; @@ -172,12 +172,12 @@ public final class VectorOuterClass { return this; } cachedSize = -1; - if (other.hasZ()) { - setZ(other.z); - } if (other.hasY()) { setY(other.y); } + if (other.hasZ()) { + setZ(other.z); + } if (other.hasX()) { setX(other.x); } @@ -191,8 +191,8 @@ public final class VectorOuterClass { } cachedSize = -1; bitField0_ = 0; - z = 0; y = 0; + z = 0; x = 0; return this; } @@ -217,23 +217,23 @@ public final class VectorOuterClass { } Vector other = (Vector) o; return bitField0_ == other.bitField0_ - && (!hasZ() || z == other.z) && (!hasY() || y == other.y) + && (!hasZ() || z == other.z) && (!hasX() || x == other.x); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); - output.writeSInt32NoTag(z); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 16); output.writeSInt32NoTag(y); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 88); + output.writeSInt32NoTag(z); + } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 96); output.writeSInt32NoTag(x); } } @@ -242,10 +242,10 @@ public final class VectorOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeSInt32SizeNoTag(z); + size += 1 + ProtoSink.computeSInt32SizeNoTag(y); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeSInt32SizeNoTag(y); + size += 1 + ProtoSink.computeSInt32SizeNoTag(z); } if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeSInt32SizeNoTag(x); @@ -260,25 +260,25 @@ public final class VectorOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 24: { - // z - z = input.readSInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 40) { - break; - } - } - case 40: { + case 16: { // y y = input.readSInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 56) { + if (tag != 88) { break; } } - case 56: { + case 88: { + // z + z = input.readSInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 96) { + break; + } + } + case 96: { // x x = input.readSInt32(); bitField0_ |= 0x00000004; @@ -305,10 +305,10 @@ public final class VectorOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeSInt32(FieldNames.z, z); + output.writeSInt32(FieldNames.y, y); } if ((bitField0_ & 0x00000002) != 0) { - output.writeSInt32(FieldNames.y, y); + output.writeSInt32(FieldNames.z, z); } if ((bitField0_ & 0x00000004) != 0) { output.writeSInt32(FieldNames.x, x); @@ -323,10 +323,10 @@ public final class VectorOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 122: { - if (input.isAtField(FieldNames.z)) { + case 121: { + if (input.isAtField(FieldNames.y)) { if (!input.trySkipNullValue()) { - z = input.readSInt32(); + y = input.readSInt32(); bitField0_ |= 0x00000001; } } else { @@ -334,10 +334,10 @@ public final class VectorOuterClass { } break; } - case 121: { - if (input.isAtField(FieldNames.y)) { + case 122: { + if (input.isAtField(FieldNames.z)) { if (!input.trySkipNullValue()) { - y = input.readSInt32(); + z = input.readSInt32(); bitField0_ |= 0x00000002; } } else { @@ -408,10 +408,10 @@ public final class VectorOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName z = FieldName.forField("z"); - static final FieldName y = FieldName.forField("y"); + static final FieldName z = FieldName.forField("z"); + static final FieldName x = FieldName.forField("x"); } } diff --git a/src/main/java/emu/lunarcore/Config.java b/src/main/java/emu/lunarcore/Config.java index 48a5da5..fc7aecb 100644 --- a/src/main/java/emu/lunarcore/Config.java +++ b/src/main/java/emu/lunarcore/Config.java @@ -11,8 +11,6 @@ import lombok.Getter; @Getter public class Config { - - public DatabaseInfo accountDatabase = new DatabaseInfo(); public DatabaseInfo gameDatabase = new DatabaseInfo(); public InternalMongoInfo internalMongoServer = new InternalMongoInfo(); diff --git a/src/main/java/emu/lunarcore/GameConstants.java b/src/main/java/emu/lunarcore/GameConstants.java index 3ecb195..c1f1a81 100644 --- a/src/main/java/emu/lunarcore/GameConstants.java +++ b/src/main/java/emu/lunarcore/GameConstants.java @@ -6,7 +6,7 @@ import java.time.ZoneOffset; import emu.lunarcore.util.Position; public class GameConstants { - public static String VERSION = "1.6.0"; + public static String VERSION = "2.0.0"; public static final ZoneOffset CURRENT_ZONEOFFSET = ZoneOffset.systemDefault().getRules().getOffset(Instant.now()); public static final int CURRENT_TIMEZONE = CURRENT_ZONEOFFSET.getTotalSeconds() / 3600; @@ -54,7 +54,7 @@ public class GameConstants { public static final int CHALLENGE_STORY_ENTRANCE = 102020107; // Rogue - public static final boolean ENABLE_ROGUE = true; + public static final boolean ENABLE_ROGUE = false; public static final int ROGUE_ENTRANCE = 801120102; public static final int ROGUE_TALENT_POINT_ITEM_ID = 32; diff --git a/src/main/java/emu/lunarcore/data/GameDepot.java b/src/main/java/emu/lunarcore/data/GameDepot.java index 0176e2c..9264c17 100644 --- a/src/main/java/emu/lunarcore/data/GameDepot.java +++ b/src/main/java/emu/lunarcore/data/GameDepot.java @@ -4,6 +4,7 @@ import java.util.ArrayList; import java.util.List; import emu.lunarcore.GameConstants; +import emu.lunarcore.data.custom.ActivityScheduleData; import emu.lunarcore.data.excel.*; import emu.lunarcore.util.Utils; import it.unimi.dsi.fastutil.ints.Int2ObjectMap; @@ -13,7 +14,7 @@ import lombok.Getter; // Game data that is parsed by the server goes here public class GameDepot { // Activity - @Getter private static List activityScheduleExcels = new ArrayList<>(); + @Getter private static List activityScheduleExcels = new ArrayList<>(); // Exp @Getter private static List avatarExpExcels = new ArrayList<>(); diff --git a/src/main/java/emu/lunarcore/data/ResourceLoader.java b/src/main/java/emu/lunarcore/data/ResourceLoader.java index 959bd15..f04bd9d 100644 --- a/src/main/java/emu/lunarcore/data/ResourceLoader.java +++ b/src/main/java/emu/lunarcore/data/ResourceLoader.java @@ -7,7 +7,7 @@ import java.util.concurrent.atomic.AtomicInteger; import java.util.stream.Stream; import emu.lunarcore.data.config.*; -import emu.lunarcore.data.excel.ActivitySchedulingExcel; + import org.reflections.Reflections; import com.google.gson.Gson; @@ -20,6 +20,7 @@ import emu.lunarcore.LunarCore; import emu.lunarcore.data.ResourceDeserializers.LunarCoreDoubleDeserializer; import emu.lunarcore.data.ResourceDeserializers.LunarCoreHashDeserializer; import emu.lunarcore.data.config.FloorInfo.FloorGroupSimpleInfo; +import emu.lunarcore.data.custom.ActivityScheduleData; import it.unimi.dsi.fastutil.ints.Int2ObjectMap; public class ResourceLoader { @@ -348,7 +349,7 @@ public class ResourceLoader { if (!file.exists()) return; try (FileReader reader = new FileReader(file)) { - List activityScheduleConfig = gson.fromJson(reader, TypeToken.getParameterized(List.class, ActivitySchedulingExcel.class).getType()); + List activityScheduleConfig = gson.fromJson(reader, TypeToken.getParameterized(List.class, ActivityScheduleData.class).getType()); GameDepot.getActivityScheduleExcels().addAll(activityScheduleConfig); } catch (Exception e) { e.printStackTrace(); diff --git a/src/main/java/emu/lunarcore/data/config/FloorInfo.java b/src/main/java/emu/lunarcore/data/config/FloorInfo.java index 6469541..754e0fd 100644 --- a/src/main/java/emu/lunarcore/data/config/FloorInfo.java +++ b/src/main/java/emu/lunarcore/data/config/FloorInfo.java @@ -71,6 +71,8 @@ public class FloorInfo { // Hacky way to setup prop triggers if (json.contains("Maze_GroupProp_OpenTreasure_WhenMonsterDie")) { prop.setTrigger(new TriggerOpenTreasureWhenMonsterDie(group.getId())); + } else if (json.contains("Common_Console")) { + prop.setCommonConsole(true); } // Clear for garbage collection diff --git a/src/main/java/emu/lunarcore/data/config/PropInfo.java b/src/main/java/emu/lunarcore/data/config/PropInfo.java index 6964e62..35dd359 100644 --- a/src/main/java/emu/lunarcore/data/config/PropInfo.java +++ b/src/main/java/emu/lunarcore/data/config/PropInfo.java @@ -31,6 +31,7 @@ public class PropInfo extends ObjectInfo { @Setter private PropState State = PropState.Closed; @Setter private transient PropTrigger trigger; + @Setter private transient boolean isCommonConsole; @Override public Position getRot() { diff --git a/src/main/java/emu/lunarcore/data/config/SkillAbilityInfo.java b/src/main/java/emu/lunarcore/data/config/SkillAbilityInfo.java index 73873b8..3a1fae7 100644 --- a/src/main/java/emu/lunarcore/data/config/SkillAbilityInfo.java +++ b/src/main/java/emu/lunarcore/data/config/SkillAbilityInfo.java @@ -68,7 +68,7 @@ public class SkillAbilityInfo { // TODO get sp increase value from params, also handle target alias actionList.add(new MazeSkillModifySP(50)); } else if (task.getType().contains("CreateSummonUnit")) { - // Ignored + skill.setTriggerBattle(false); } else if (task.getSuccessTaskList() != null) { for (TaskInfo t : task.getSuccessTaskList()) { parseTask(skill, actionList, t); diff --git a/src/main/java/emu/lunarcore/data/excel/ActivitySchedulingExcel.java b/src/main/java/emu/lunarcore/data/custom/ActivityScheduleData.java similarity index 59% rename from src/main/java/emu/lunarcore/data/excel/ActivitySchedulingExcel.java rename to src/main/java/emu/lunarcore/data/custom/ActivityScheduleData.java index 6743ce3..c0fb1fa 100644 --- a/src/main/java/emu/lunarcore/data/excel/ActivitySchedulingExcel.java +++ b/src/main/java/emu/lunarcore/data/custom/ActivityScheduleData.java @@ -1,11 +1,9 @@ -package emu.lunarcore.data.excel; +package emu.lunarcore.data.custom; import lombok.Getter; -import java.util.List; - @Getter -public class ActivitySchedulingExcel { +public class ActivityScheduleData { private int activityId; private long beginTime; private long endTime; diff --git a/src/main/java/emu/lunarcore/data/excel/RogueBuffGroupExcel.java b/src/main/java/emu/lunarcore/data/excel/RogueBuffGroupExcel.java index 8f04611..943e764 100644 --- a/src/main/java/emu/lunarcore/data/excel/RogueBuffGroupExcel.java +++ b/src/main/java/emu/lunarcore/data/excel/RogueBuffGroupExcel.java @@ -16,10 +16,10 @@ import com.google.gson.annotations.SerializedName; @Getter @ResourceType(name = {"RogueBuffGroup.json"}, loadPriority = LoadPriority.LOW) public class RogueBuffGroupExcel extends GameResource { - @SerializedName(value = "JHOKDPADHFM") + @SerializedName(value = "GJHLAKLLFDI") private int RogueBuffGroupID; // RogueBuffGroupID - @SerializedName(value = "ADJICNNJFEM") + @SerializedName(value = "DNKFBOAIDCE") private IntArrayList RogueBuffTagList; // RogueBuffTagList or RogueBuffGroupList private transient Set rogueBuffList = new HashSet<>(); diff --git a/src/main/java/emu/lunarcore/game/player/Player.java b/src/main/java/emu/lunarcore/game/player/Player.java index 16eaec2..e29afba 100644 --- a/src/main/java/emu/lunarcore/game/player/Player.java +++ b/src/main/java/emu/lunarcore/game/player/Player.java @@ -47,6 +47,7 @@ import emu.lunarcore.game.scene.Scene; import emu.lunarcore.game.scene.SceneBuff; import emu.lunarcore.game.scene.entity.EntityProp; import emu.lunarcore.game.scene.entity.GameEntity; +import emu.lunarcore.proto.AssistSimpleInfoOuterClass.AssistSimpleInfo; import emu.lunarcore.proto.BoardDataSyncOuterClass.BoardDataSync; import emu.lunarcore.proto.FriendOnlineStatusOuterClass.FriendOnlineStatus; import emu.lunarcore.proto.HeadIconOuterClass.HeadIcon; @@ -54,7 +55,6 @@ import emu.lunarcore.proto.PlatformTypeOuterClass.PlatformType; import emu.lunarcore.proto.PlayerBasicInfoOuterClass.PlayerBasicInfo; import emu.lunarcore.proto.PlayerDetailInfoOuterClass.PlayerDetailInfo; import emu.lunarcore.proto.RogueVirtualItemInfoOuterClass.RogueVirtualItemInfo; -import emu.lunarcore.proto.SimpleAvatarInfoOuterClass.SimpleAvatarInfo; import emu.lunarcore.proto.SimpleInfoOuterClass.SimpleInfo; import emu.lunarcore.server.game.GameServer; import emu.lunarcore.server.game.GameSession; @@ -614,6 +614,14 @@ public class Player implements Tickable { // Handle any extra interaction actions switch (prop.getExcel().getPropType()) { + case PROP_DESTRUCT -> { + if (prop.getState() == PropState.Closed) { + // Open chest + prop.setState(PropState.Open); + } else { + prop.setState(PropState.Closed); + } + } case PROP_TREASURE_CHEST -> { if (oldState == PropState.ChestClosed && newState == PropState.ChestUsed) { // Handle drops @@ -636,6 +644,15 @@ public class Player implements Tickable { } } } + case PROP_ORDINARY -> { + if (prop.getPropInfo() != null && prop.getPropInfo().isCommonConsole()) { + // Set platform states + getScene().getEntitiesByGroup(EntityProp.class, prop.getGroupId()) + .stream() + .filter(p -> p.getExcel().getPropType() == PropType.PROP_PLATFORM) + .forEach(p -> p.setState(newState)); + } + } default -> { // Skip } @@ -926,7 +943,7 @@ public class Player implements Tickable { .setOnlineStatus(this.isOnline() ? FriendOnlineStatus.FRIEND_ONLINE_STATUS_ONLINE : FriendOnlineStatus.FRIEND_ONLINE_STATUS_OFFLINE) .setPlatformType(PlatformType.PC) .setLastActiveTime(this.getLastActiveTime()) - .setSimpleAvatarInfo(SimpleAvatarInfo.newInstance().setAvatarId(GameConstants.TRAILBLAZER_AVATAR_ID).setLevel(1)) // TODO + .addAssistSimpleInfo(AssistSimpleInfo.newInstance().setAvatarId(GameConstants.TRAILBLAZER_AVATAR_ID).setLevel(1)) // TODO .setHeadIcon(this.getHeadIcon()); return proto; diff --git a/src/main/java/emu/lunarcore/game/rogue/RogueBuffSelectMenu.java b/src/main/java/emu/lunarcore/game/rogue/RogueBuffSelectMenu.java index 94db2e5..7150767 100644 --- a/src/main/java/emu/lunarcore/game/rogue/RogueBuffSelectMenu.java +++ b/src/main/java/emu/lunarcore/game/rogue/RogueBuffSelectMenu.java @@ -10,7 +10,7 @@ import emu.lunarcore.data.GameDepot; import emu.lunarcore.data.excel.RogueBuffExcel; import emu.lunarcore.proto.ItemCostListOuterClass.ItemCostList; import emu.lunarcore.proto.ItemCostOuterClass.ItemCost; -import emu.lunarcore.proto.ItemCostOuterClass.PileItem; +import emu.lunarcore.proto.PileItemOuterClass.PileItem; import emu.lunarcore.proto.RogueCommonBuffSelectInfoOuterClass.RogueCommonBuffSelectInfo; import emu.lunarcore.util.WeightedList; import lombok.Getter; diff --git a/src/main/java/emu/lunarcore/game/rogue/RogueInstance.java b/src/main/java/emu/lunarcore/game/rogue/RogueInstance.java index 30723cc..46dcd06 100644 --- a/src/main/java/emu/lunarcore/game/rogue/RogueInstance.java +++ b/src/main/java/emu/lunarcore/game/rogue/RogueInstance.java @@ -690,9 +690,9 @@ public class RogueInstance { public RogueAeon toAeonProto() { var proto = RogueAeon.newInstance() - .setAeonId(this.getAeonId()) - .setAeonEnhanceBuffNum(3) - .setIsUnlockAeon(true); + .setAeonId(this.getAeonId()); + //.setAeonEnhanceBuffNum(3) + //.setIsUnlockAeon(true); return proto; } diff --git a/src/main/java/emu/lunarcore/game/rogue/RogueManager.java b/src/main/java/emu/lunarcore/game/rogue/RogueManager.java index 9beca46..b30d5d1 100644 --- a/src/main/java/emu/lunarcore/game/rogue/RogueManager.java +++ b/src/main/java/emu/lunarcore/game/rogue/RogueManager.java @@ -200,7 +200,7 @@ public class RogueManager extends BasePlayerManager { aeonInfo.addAeonIdList(aeonExcel.getAeonID()); } aeonInfo.setIsUnlocked(true); - aeonInfo.setUnlockAeonEnhanceNum(3); // guess + //aeonInfo.setUnlockAeonEnhanceNum(3); // guess } var data = RogueInfoData.newInstance() diff --git a/src/main/java/emu/lunarcore/server/packet/CmdId.java b/src/main/java/emu/lunarcore/server/packet/CmdId.java index 459f335..16ee1b6 100644 --- a/src/main/java/emu/lunarcore/server/packet/CmdId.java +++ b/src/main/java/emu/lunarcore/server/packet/CmdId.java @@ -5,1046 +5,1144 @@ public class CmdId { public static final int NONE = 0; // 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 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 SpringRecoverCsReq = 1472; + public static final int TakeTrainVisitorUntakenBehaviorRewardScRsp = 3746; + public static final int FinishEmotionDialoguePerformanceScRsp = 6334; + public static final int SelectChatBubbleScRsp = 5197; + public static final int GetEnhanceCommonRogueBuffInfoCsReq = 5650; + public static final int SubmitMonsterResearchActivityMaterialCsReq = 2698; + public static final int EnterAetherDivideSceneCsReq = 4807; + public static final int HeliobusActivityDataCsReq = 5807; + public static final int CommonRogueQueryScRsp = 5627; + public static final int GetRogueShopMiracleInfoCsReq = 5697; + public static final int ApplyFriendCsReq = 2971; + public static final int GetHeartDialInfoScRsp = 6357; + public static final int ComposeLimitNumUpdateNotify = 510; + public static final int GetCurAssistCsReq = 2917; + public static final int TakeRollShopRewardCsReq = 6903; + public static final int RelicRecommendScRsp = 530; + public static final int ChangeLineupLeaderCsReq = 789; + public static final int TrialActivityDataChangeScNotify = 2678; + public static final int AlleyGuaranteedFundsCsReq = 4717; + public static final int UpdateFeatureSwitchScNotify = 75; + public static final int FinishQuestCsReq = 946; + public static final int ChessRogueRollDiceScRsp = 5454; + public static final int GetAuthkeyScRsp = 39; + public static final int ActivateFarmElementCsReq = 1430; + public static final int StartAetherDivideChallengeBattleScRsp = 4834; + public static final int SetAetherDivideLineUpCsReq = 4823; + public static final int StartRogueScRsp = 1897; + public static final int UnlockAvatarSkinScNotify = 312; + public static final int SellItemCsReq = 598; + public static final int SwapLineupScRsp = 746; + public static final int TakeAllApRewardCsReq = 3319; + public static final int GetChallengeGroupStatisticsCsReq = 1739; + public static final int RetcodeNotify = 27; + public static final int FinishPerformSectionIdScRsp = 2746; + public static final int AetherDivideFinishChallengeScNotify = 4895; + public static final int SyncLineupNotify = 773; + public static final int UseItemScRsp = 534; + public static final int GetFarmStageGachaInfoCsReq = 1316; + public static final int UseTreasureDungeonItemScRsp = 4465; + public static final int AcceptMainMissionCsReq = 1254; + public static final int GetWolfBroGameDataCsReq = 6600; + public static final int JoinLineupCsReq = 704; + public static final int DelSaveRaidScNotify = 2298; + public static final int InteractPropScRsp = 1497; + public static final int EnableRogueTalentCsReq = 1849; + public static final int CurTrialActivityScNotify = 2621; + public static final int UnlockPhoneThemeScNotify = 5134; + public static final int SubmitEmotionItemScRsp = 6319; + public static final int UpdateRogueAdventureRoomScoreScRsp = 5688; + public static final int NewAssistHistoryNotify = 2905; + public static final int AlleyShipUsedCountScNotify = 4724; + public static final int RecoverAllLineupCsReq = 1417; + public static final int HeliobusSnsPostScRsp = 5819; + public static final int SetNicknameCsReq = 60; + public static final int SharePunkLordMonsterCsReq = 3204; + public static final int GetChessRogueBuffEnhanceInfoScRsp = 5579; + public static final int AlleyPlacingGameCsReq = 4723; + public static final int TakeRogueEventHandbookRewardCsReq = 5613; + public static final int GetPlayerReturnMultiDropInfoScRsp = 4604; + public static final int MuseumTakeCollectRewardCsReq = 4395; + public static final int GetActivityScheduleConfigCsReq = 2604; + public static final int DeleteSummonUnitCsReq = 1487; + public static final int RefreshAlleyOrderScRsp = 4726; + public static final int FinishChessRogueSubStoryScRsp = 5476; + public static final int GetCurSceneInfoScRsp = 1434; + public static final int GetFightActivityDataScRsp = 3657; + public static final int QuitBattleCsReq = 116; + public static final int FinishFirstTalkNpcScRsp = 2134; + public static final int StartCocoonStageScRsp = 1405; + public static final int BattleLogReportScRsp = 173; + public static final int TreasureDungeonFinishScNotify = 4457; + public static final int ChessRogueEnterScRsp = 5527; + public static final int SetMissionEventProgressCsReq = 1253; + public static final int TreasureDungeonDataScNotify = 4407; + public static final int StrongChallengeActivityBattleEndScNotify = 6604; + public static final int StartAlleyEventCsReq = 4771; + public static final int ChessRogueCellUpdateNotify = 5493; + public static final int QuestRecordScNotify = 1000; + public static final int BuyRogueShopMiracleCsReq = 5634; + public static final int EnterRogueEndlessActivityStageScRsp = 6097; + public static final int StartAetherDivideStageBattleCsReq = 4850; + public static final int GetLoginActivityCsReq = 2607; + public static final int UpdateServerPrefsDataCsReq = 6104; + public static final int StartBoxingClubBattleScRsp = 4219; + public static final int GetStoryLineInfoCsReq = 6207; + public static final int ChessRogueUpdateReviveInfoScNotify = 5570; + public static final int GetWaypointCsReq = 407; + public static final int ReturnLastTownScRsp = 1465; + public static final int SubmitOfferingItemCsReq = 6940; + public static final int LeaveRogueScRsp = 1834; + public static final int FinishTutorialGuideCsReq = 1673; + public static final int SpaceZooExchangeItemScRsp = 6723; + public static final int SetSpringRecoverConfigScRsp = 1436; + public static final int TravelBrochureSetPageDescStatusScRsp = 6426; + public static final int GetAlleyInfoCsReq = 4707; + public static final int GetAllSaveRaidScRsp = 2226; + public static final int FightTreasureDungeonMonsterScRsp = 4426; + public static final int FinishCosumeItemMissionCsReq = 1223; + public static final int ExchangeStaminaScRsp = 81; public static final int ChessRogueNousDiceSurfaceUnlockNotify = 5520; - public static final int FinishChapterScNotify = 4904; - public static final int GetPunkLordBattleRecordScRsp = 3277; - 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 FinishChapterScNotify = 4916; + public static final int GetPunkLordBattleRecordScRsp = 3217; + public static final int GetShopListScRsp = 1557; + public static final int LogisticsScoreRewardSyncInfoScNotify = 4708; + public static final int GetStageLineupScRsp = 757; + public static final int GetTelevisionActivityDataCsReq = 6965; + public static final int LockRelicCsReq = 539; + public static final int EnterSceneCsReq = 1422; + public static final int SetClientPausedCsReq = 1411; + public static final int PlayerLogoutCsReq = 16; + public static final int SpaceZooMutateCsReq = 6704; + public static final int BattlePassInfoNotify = 3007; + public static final int ReserveStaminaExchangeScRsp = 63; + public static final int MarkItemCsReq = 555; + public static final int StartFinishMainMissionScNotify = 1210; + public static final int FinishAeonDialogueGroupCsReq = 1882; + public static final int HeliobusSnsUpdateScNotify = 5873; + public static final int UpdateFloorSavedValueNotify = 1474; + public static final int TrainVisitorBehaviorFinishScRsp = 3757; + public static final int LockEquipmentCsReq = 504; + public static final int AetherDivideTainerInfoScNotify = 4879; + public static final int TextJoinBatchSaveCsReq = 3804; + public static final int ExpUpRelicScRsp = 518; + public static final int AlleyShipUnlockScNotify = 4776; + public static final int DeactivateFarmElementScRsp = 1438; + public static final int ChessRogueEnterNextLayerScRsp = 5443; + public static final int SyncRogueFinishScNotify = 1881; + public static final int HeliobusSnsReadCsReq = 5816; + public static final int ChessRogueNousEditDiceCsReq = 5407; + public static final int LeaveTrialActivityScRsp = 2633; + public static final int SetGameplayBirthdayScRsp = 72; + public static final int GroupStateChangeScNotify = 1425; + public static final int SetSignatureCsReq = 2846; + public static final int EquipAetherDividePassiveSkillCsReq = 4881; + public static final int SetLanguageScRsp = 79; + public static final int GetLevelRewardTakenListCsReq = 65; + public static final int InteractTreasureDungeonGridScRsp = 4460; + public static final int GetRndOptionCsReq = 3407; + public static final int ChessRogueNousDiceUpdateNotify = 5409; + public static final int TakeQuestRewardCsReq = 916; + public static final int TravelBrochureSelectMessageCsReq = 6404; + public static final int ChessRoguePickAvatarScRsp = 5541; + public static final int LeaveAetherDivideSceneScRsp = 4897; + public static final int MuseumRandomEventStartScNotify = 4398; + public static final int UpdateTrackMainMissionIdCsReq = 1205; + public static final int RemoveStuffFromAreaScRsp = 4334; + public static final int SetGenderScRsp = 8; + public static final int BoxingClubChallengeUpdateScNotify = 4246; + public static final int SyncRogueCommonVirtualItemInfoScNotify = 5637; + public static final int GetBasicInfoScRsp = 37; + public static final int AetherDivideSpiritExpUpCsReq = 4851; + public static final int GetFirstTalkByPerformanceNpcScRsp = 2106; + public static final int TrainRefreshTimeNotify = 3704; + public static final int ChooseBoxingClubStageOptionalBuffScRsp = 4218; + public static final int TakeCityShopRewardScRsp = 1519; + public static final int ChessRogueUpdateUnlockLevelScNotify = 5545; + public static final int ReviveRogueAvatarCsReq = 1898; + public static final int SetTurnFoodSwitchScRsp = 511; + public static final int SceneEntityMoveScNotify = 1473; + public static final int LeaveMapRotationRegionCsReq = 6900; + public static final int TakeTrialActivityRewardScRsp = 2635; + public static final int ClientObjDownloadDataScNotify = 69; + public static final int ExchangeHcoinScRsp = 551; + public static final int DressAvatarSkinCsReq = 365; + public static final int QueryProductInfoCsReq = 90; + public static final int TakeChallengeRaidRewardScRsp = 2300; + public static final int GetReplayTokenCsReq = 3507; + public static final int DoGachaInRollShopCsReq = 6920; + public static final int ChessRogueNousEnableRogueTalentScRsp = 5515; + public static final int EnhanceCommonRogueBuffCsReq = 5651; + public static final int EnterStrongChallengeActivityStageScRsp = 6697; + public static final int GetMapRotationDataCsReq = 6873; + public static final int PromoteEquipmentScRsp = 597; + public static final int RaidCollectionDataScNotify = 6960; + public static final int RankUpAvatarScRsp = 381; + public static final int SceneEntityMoveScRsp = 1457; + public static final int AlleyEventEffectNotify = 4746; + public static final int GetCurBattleInfoScRsp = 119; + public static final int ChangeStoryLineCsReq = 6297; + public static final int TriggerVoiceCsReq = 4123; + public static final int GameplayCounterUpdateScNotify = 1401; + public static final int ChessRogueUpdateDicePassiveAccumulateValueScNotify = 5420; + public static final int GiveUpBoxingClubChallengeScRsp = 4234; + public static final int AcceptedPamMissionExpireScRsp = 4057; + public static final int RegionStopScNotify = 26; + public static final int TakeRogueEndlessActivityPointRewardScRsp = 6071; + public static final int GetChessRogueStoryAeonTalkInfoCsReq = 5593; + public static final int DailyTaskDataScNotify = 1234; + public static final int BuyNpcStuffScRsp = 4397; + public static final int GetMissionDataCsReq = 1207; + public static final int GetFriendApplyListInfoCsReq = 2904; + public static final int GetUnlockTeleportCsReq = 1463; + public static final int ChessRogueFinishCurRoomNotify = 5429; + public static final int TextJoinQueryCsReq = 3816; + public static final int RotateMapScRsp = 6834; + public static final int LeaveChallengeScRsp = 1719; + public static final int TakeRogueAeonLevelRewardCsReq = 1829; + public static final int SummonPunkLordMonsterScRsp = 3234; + public static final int LeaveMapRotationRegionScNotify = 6881; + public static final int SetGroupCustomSaveDataScRsp = 1445; + public static final int SwitchLineupIndexCsReq = 718; + public static final int FinishItemIdCsReq = 2704; + public static final int MuseumRandomEventSelectCsReq = 4365; + public static final int PlayerGetTokenScRsp = 19; + public static final int RefreshTriggerByClientCsReq = 1456; + public static final int EnterTreasureDungeonScRsp = 4489; + public static final int GetQuestRecordScRsp = 934; + public static final int RogueModifierUpdateNotify = 5334; + public static final int RestoreWolfBroGameArchiveCsReq = 6504; + public static final int CommonRogueUpdateScNotify = 5635; + public static final int MissionGroupWarnScNotify = 1206; + public static final int GetEnteredSceneScRsp = 1482; + public static final int ArchiveWolfBroGameScRsp = 6597; + public static final int SyncTaskScRsp = 1271; + public static final int PlayerReturnTakeRewardScRsp = 4534; + public static final int PickRogueAvatarScRsp = 1839; + public static final int ComposeItemCsReq = 523; + public static final int SetFriendMarkCsReq = 2988; + public static final int SyncRogueRewardInfoScNotify = 1832; + public static final int UnlockHeadIconScNotify = 2900; + public static final int SyncHandleFriendScNotify = 2906; + public static final int GetGachaInfoCsReq = 1907; + public static final int RogueModifierSelectCellScRsp = 5304; + public static final int HeliobusUpgradeLevelScRsp = 5889; + public static final int TakeLoginActivityRewardScRsp = 2697; + public static final int PVEBattleResultCsReq = 107; + public static final int QuitBattleScNotify = 200; + public static final int TakeOffRelicCsReq = 326; + public static final int StartRaidScRsp = 2257; + public static final int RogueModifierStageStartNotify = 5346; + public static final int SetHeroBasicTypeCsReq = 54; + public static final int ComposeSelectedRelicCsReq = 553; + public static final int GetTutorialGuideScRsp = 1697; + public static final int GetFriendAssistListScRsp = 2936; + public static final int GetTreasureDungeonActivityDataScRsp = 4406; + public static final int InteractChargerCsReq = 6816; + public static final int GetPlayerBoardDataScRsp = 2857; + public static final int EntityBindPropScRsp = 1408; + public static final int GetExpeditionDataCsReq = 2507; + public static final int AlleyTakeEventRewardScRsp = 4715; + public static final int TakeMailAttachmentScRsp = 834; + public static final int SetDisplayAvatarCsReq = 2804; + public static final int ChessRogueQueryAeonDimensionsScRsp = 5492; + public static final int HeliobusSnsLikeCsReq = 5871; + public static final int TravelBrochureSetCustomValueScRsp = 6418; + public static final int ScenePlaneEventScNotify = 1499; + public static final int MatchBoxingClubOpponentScRsp = 4297; + public static final int CurAssistChangedNotify = 2911; + public static final int ArchiveWolfBroGameCsReq = 6516; + public static final int PlayerReturnTakePointRewardCsReq = 4504; + public static final int ChessRogueSelectBpCsReq = 5524; + public static final int DeployRotaterCsReq = 6804; + public static final int AceAntiCheaterScRsp = 52; + public static final int GetAllLineupDataCsReq = 760; + public static final int TakeFightActivityRewardCsReq = 3619; + public static final int MultipleDropInfoNotify = 4619; + public static final int GetPunkLordDataCsReq = 3218; + public static final int UnlockTutorialGuideScRsp = 1634; + public static final int WaypointShowNewCsNotify = 471; + public static final int AlleyShopLevelScNotify = 4753; + public static final int EnterSceneByServerScNotify = 1492; + public static final int GeneralVirtualItemDataNotify = 502; + public static final int DeleteFriendScRsp = 2989; + public static final int GetTutorialScRsp = 1657; + public static final int PlayerGetTokenCsReq = 4; + public static final int TravelBrochureGetDataScRsp = 6457; + public static final int GiveUpBoxingClubChallengeCsReq = 4271; + public static final int SwitchAetherDivideLineUpSlotScRsp = 4860; + public static final int HeliobusEnterBattleCsReq = 5860; + public static final int FinishCurTurnCsReq = 4373; + public static final int TakeRogueScoreRewardScRsp = 1865; + public static final int GetFriendRecommendListInfoScRsp = 2960; + public static final int PlayerReturnSignCsReq = 4557; + public static final int GetFriendLoginInfoCsReq = 2990; + public static final int GetFriendListInfoScRsp = 2957; + public static final int BoxingClubRewardScNotify = 4300; + public static final int GetQuestDataCsReq = 907; + public static final int PlayerReturnInfoQueryScRsp = 4546; + public static final int PlayerReturnStartScNotify = 4507; + public static final int ChallengeLineupNotify = 1706; + public static final int ExchangeRogueBuffWithMiracleScRsp = 5660; + public static final int UpdateMechanismBarScNotify = 1435; + public static final int UpdatePlayerSettingCsReq = 67; + public static final int UpdateTrackMainMissionIdScRsp = 1243; + public static final int GetAssistHistoryScRsp = 2915; + public static final int PlayBackGroundMusicCsReq = 3116; + public static final int StartBattleCollegeScRsp = 5704; + public static final int ChangeScriptEmotionScRsp = 6397; + public static final int LeaveAetherDivideSceneCsReq = 4816; + public static final int SyncRogueCommonPendingActionScNotify = 5630; + public static final int MarkReadMailScRsp = 897; + public static final int GetRogueDialogueEventDataScRsp = 1872; + public static final int MarkChatEmojiScRsp = 3906; + public static final int GetServerPrefsDataCsReq = 6116; + public static final int GetSecretKeyInfoCsReq = 48; + public static final int ChessRogueSelectCellScRsp = 5474; + public static final int GetTrainVisitorBehaviorScRsp = 3797; + public static final int SelectInclinationTextScRsp = 2146; + public static final int SetIsDisplayAvatarInfoScRsp = 2834; + public static final int GetRogueInitialScoreCsReq = 1802; + public static final int LeaveChallengeCsReq = 1704; + public static final int BuyBpLevelScRsp = 3071; + public static final int AcceptMissionEventScRsp = 1298; + public static final int GetQuestRecordCsReq = 971; + public static final int StartTimedCocoonStageCsReq = 1431; + public static final int EnterRogueScRsp = 1819; + public static final int LastSpringRefreshTimeNotify = 1460; + public static final int LogisticsDetonateStarSkiffScRsp = 4743; + public static final int TakeOffEquipmentCsReq = 373; + public static final int GetRogueBuffEnhanceInfoScRsp = 1853; + public static final int EnhanceChessRogueBuffCsReq = 5472; + public static final int CancelCacheNotifyScRsp = 4146; + public static final int SendMsgCsReq = 3907; + public static final int SwitchLineupIndexScRsp = 739; + public static final int StoryLineInfoScNotify = 6216; + public static final int ChessRogueUpdateBoardScNotify = 5572; + public static final int GetQuestDataScRsp = 957; + public static final int BuyNpcStuffCsReq = 4316; + public static final int TakeRogueScoreRewardCsReq = 1850; + public static final int CancelActivityExpeditionCsReq = 2506; + public static final int HeliobusEnterBattleScRsp = 5850; + public static final int GetLevelRewardTakenListScRsp = 51; + public static final int SetHeadIconScRsp = 2897; + public static final int AcceptExpeditionCsReq = 2516; + public static final int HandleRogueCommonPendingActionCsReq = 5678; + public static final int LogisticsInfoScNotify = 4795; + public static final int DailyFirstMeetPamScRsp = 3497; + public static final int ChessRogueQuestFinishNotify = 5510; + public static final int RechargeSuccNotify = 550; + public static final int SyncRogueMapRoomScNotify = 1890; + public static final int SetCurWaypointCsReq = 416; + public static final int ChessRogueUpdateAllowedSelectCellScNotify = 5566; + public static final int SceneEntityTeleportCsReq = 1462; + public static final int TravelBrochureUpdatePasterPosScRsp = 6406; + public static final int ChessRogueCheatRollScRsp = 5586; + public static final int UnlockTutorialScRsp = 1619; + public static final int UnlockTeleportNotify = 1432; + public static final int SetFriendRemarkNameScRsp = 2965; + public static final int GetFriendListInfoCsReq = 2907; + public static final int HeartDialScriptChangeScNotify = 6400; + public static final int ExchangeHcoinCsReq = 565; + public static final int HeliobusLineupUpdateScNotify = 5876; + public static final int ChessRogueQueryBpCsReq = 5422; + public static final int TakeChapterRewardCsReq = 434; + public static final int SelectPhoneThemeScRsp = 5171; + public static final int SyncRoguePickAvatarInfoScNotify = 1884; + public static final int TakeRogueMiracleHandbookRewardScRsp = 5602; + public static final int DoGachaInRollShopScRsp = 6902; + public static final int GetSaveLogisticsMapCsReq = 4710; + public static final int StartChallengeScRsp = 1797; + public static final int PVEBattleResultScRsp = 157; + public static final int UpdateRedDotDataCsReq = 5916; + public static final int FinishPlotCsReq = 1107; + public static final int BuyGoodsScRsp = 1597; + public static final int BuyRogueShopBuffCsReq = 5646; + public static final int SubmitOrigamiItemCsReq = 4181; + public static final int ExpeditionDataChangeScNotify = 2600; + public static final int GetTelevisionActivityDataScRsp = 6961; + public static final int FinishTutorialCsReq = 1700; + public static final int WolfBroGameDataChangeScNotify = 6573; + public static final int GroupStateChangeScRsp = 1447; + public static final int SyncRogueReviveInfoScNotify = 1854; + public static final int HeliobusUpgradeLevelCsReq = 5823; + public static final int HeliobusSelectSkillCsReq = 5818; + public static final int PlayerKickOutScNotify = 100; + public static final int FinishFirstTalkByPerformanceNpcScRsp = 2189; + public static final int SyncClientResVersionCsReq = 171; + public static final int SceneUpdatePositionVersionNotify = 1406; + public static final int EnterTelevisionActivityStageScRsp = 6963; + public static final int TrainVisitorRewardSendNotify = 3719; + public static final int GetMarkItemListCsReq = 517; 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 ServerSimulateBattleFinishScNotify = 106; + public static final int EnterTrialActivityStageScRsp = 2642; + public static final int ChessRogueSkipTeachingLevelScRsp = 5411; + public static final int EntityBindPropCsReq = 1443; + public static final int GetMultipleDropInfoCsReq = 4607; + public static final int GetDailyActiveInfoCsReq = 3316; + public static final int GetPhoneDataCsReq = 5107; + public static final int SpaceZooExchangeItemCsReq = 6706; + public static final int ChessRogueReRollDiceCsReq = 5419; + public static final int PlayerHeartBeatScRsp = 70; + public static final int SecurityReportScRsp = 4106; + public static final int RaidCollectionDataScRsp = 6941; + public static final int GetPrivateChatHistoryCsReq = 3904; + public static final int PlayerReturnTakeRewardCsReq = 4571; + public static final int GetSingleRedDotParamGroupScRsp = 5919; + public static final int RankUpAvatarCsReq = 389; + public static final int GameplayCounterCountDownScRsp = 1486; + public static final int GetRogueHandbookDataCsReq = 5605; + public static final int SceneCastSkillScRsp = 1419; + public static final int ChessRogueGoAheadScRsp = 5416; + public static final int ChessRogueChangeyAeonDimensionNotify = 5589; + public static final int ChessRogueNousGetRogueTalentInfoCsReq = 5509; + public static final int GetTutorialCsReq = 1607; + public static final int GetArchiveDataScRsp = 2357; + public static final int SyncAddBlacklistScNotify = 2926; + public static final int AlleyTakeEventRewardCsReq = 4755; + public static final int ExchangeRogueRewardKeyCsReq = 1835; + public static final int ChessRogueQuitCsReq = 5523; + public static final int ChessRogueGiveUpCsReq = 5405; + public static final int QueryProductInfoScRsp = 38; + public static final int StartTimedFarmElementScRsp = 1441; + public static final int ReplaceLineupCsReq = 751; + public static final int GetTrainVisitorRegisterCsReq = 3771; + public static final int SetBoxingClubResonanceLineupCsReq = 4223; + public static final int GetAllRedDotDataCsReq = 5907; + public static final int UseItemCsReq = 571; + public static final int ShareScRsp = 4157; + public static final int StartTrialActivityCsReq = 2670; + public static final int GetStrongChallengeActivityDataCsReq = 6607; + public static final int TakeAllApRewardScRsp = 3371; + public static final int GetTrialActivityDataScRsp = 2672; + public static final int GetChessRogueBuffEnhanceInfoCsReq = 5516; + public static final int GetFriendApplyListInfoScRsp = 2919; + public static final int GetPlayerBoardDataCsReq = 2807; + public static final int UnlockSkilltreeCsReq = 304; + public static final int TakeAllRewardCsReq = 3034; + public static final int ChessRogueQueryAeonDimensionsCsReq = 5424; + public static final int PunkLordMonsterInfoScNotify = 3281; + public static final int NewMailScNotify = 900; + public static final int ChessRogueStartScRsp = 5529; + public static final int GetRogueInfoScRsp = 1857; + public static final int RogueModifierSelectCellCsReq = 5397; + public static final int LogisticsGameScRsp = 4797; + public static final int TakePromotionRewardCsReq = 360; + public static final int ShowNewSupplementVisitorCsReq = 3773; + public static final int GetAssistListCsReq = 2979; + public static final int EnterAdventureCsReq = 1307; + public static final int TravelBrochureSelectMessageScRsp = 6419; + public static final int GetAetherDivideInfoScRsp = 4806; 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 GetNpcStatusScRsp = 2797; + public static final int RogueNpcDisappearScRsp = 5623; + public static final int GetEnhanceCommonRogueBuffInfoScRsp = 5665; + public static final int RankUpEquipmentScRsp = 546; + public static final int GetMonsterResearchActivityDataScRsp = 2626; + public static final int SellItemScRsp = 560; + public static final int FinishChessRogueNousSubStoryScRsp = 5508; + public static final int GetPlatformPlayerInfoScRsp = 2913; + public static final int SpaceZooTakeCsReq = 6789; + public static final int AddAvatarScNotify = 323; + public static final int SelectChessRogueSubStoryScRsp = 5489; + public static final int FinishQuestScRsp = 973; + public static final int SyncChessRogueNousValueScNotify = 5484; + public static final int RelicRecommendCsReq = 538; + public static final int ChangeLineupLeaderScRsp = 781; + public static final int TakePictureCsReq = 4104; + public static final int GetBagScRsp = 557; + public static final int GetHeroBasicTypeInfoCsReq = 17; + public static final int GetChatFriendHistoryCsReq = 3971; + public static final int GetPunkLordMonsterDataScRsp = 3257; + public static final int SavePointsInfoNotify = 1455; + public static final int DeleteBlacklistCsReq = 2976; + public static final int PrivateMsgOfflineUsersScNotify = 3997; + public static final int TakeActivityExpeditionRewardCsReq = 2589; + public static final int SubmitEmotionItemCsReq = 6304; + public static final int StartWolfBroGameScRsp = 6557; + public static final int UnlockBackGroundMusicCsReq = 3104; + public static final int GetPlayerReplayInfoScRsp = 3597; + public static final int ClientObjUploadCsReq = 86; + public static final int GetChallengeRaidInfoScRsp = 2271; + public static final int GetRogueScoreRewardInfoScRsp = 1886; + public static final int GetLoginChatInfoCsReq = 3981; + public static final int QuitLineupCsReq = 771; + public static final int GetFirstTalkNpcCsReq = 2104; + public static final int GetAvatarDataCsReq = 307; + public static final int GetBoxingClubInfoScRsp = 4257; + public static final int StartAetherDivideSceneBattleCsReq = 4804; + public static final int TakeChallengeRewardScRsp = 1718; + public static final int DressRelicAvatarCsReq = 318; + public static final int FightTreasureDungeonMonsterCsReq = 4439; + public static final int GetFantasticStoryActivityDataScRsp = 4957; + public static final int ChooseBoxingClubResonanceScRsp = 4206; + public static final int GetAetherDivideChallengeInfoCsReq = 4812; + public static final int GetRogueEndlessActivityDataScRsp = 6057; + public static final int GetMissionEventDataCsReq = 1281; + public static final int StopRogueAdventureRoomScRsp = 5612; + public static final int TravelBrochureRemovePasterScRsp = 6446; + public static final int GetBattleCollegeDataScRsp = 5757; + public static final int SyncRogueAdventureRoomInfoScNotify = 5607; + public static final int TakePrestigeRewardScRsp = 4706; + public static final int LockEquipmentScRsp = 519; + public static final int SetLineupNameScRsp = 798; + public static final int HeliobusStartRaidScRsp = 5851; + public static final int HeliobusChallengeUpdateScNotify = 5853; + public static final int ResetMapRotationRegionScRsp = 6889; + public static final int HeliobusActivityDataScRsp = 5857; + public static final int GetShareDataScRsp = 4197; + public static final int SpringRefreshScRsp = 1498; + public static final int GetCurLineupDataScRsp = 797; + public static final int HeliobusSnsCommentCsReq = 5900; + public static final int PrestigeLevelUpCsReq = 4750; + public static final int TelevisionActivityBattleEndScNotify = 6972; + public static final int SetStuffToAreaCsReq = 4304; + public static final int SubmitOfferingItemScRsp = 6922; + public static final int GetCurChallengeCsReq = 1746; + public static final int SetMissionEventProgressScRsp = 1276; + public static final int SubMissionRewardScNotify = 1212; + public static final int TravelBrochureApplyPasterScRsp = 6434; + public static final int StartFinishSubMissionScNotify = 1279; + public static final int TakeOfferingRewardCsReq = 6923; + public static final int TakeTalkRewardCsReq = 2116; + public static final int ChessRogueUpdateMoneyInfoScNotify = 5559; + public static final int TakeBpRewardScRsp = 3004; + public static final int GetRaidInfoScRsp = 2206; + public static final int TravelBrochurePageUnlockScNotify = 6416; + public static final int CityShopInfoScNotify = 1571; + public static final int SpaceZooDataScRsp = 6757; + public static final int PromoteAvatarScRsp = 334; + public static final int ChessRogueGiveUpRollScRsp = 5550; + public static final int GetStoryLineInfoScRsp = 6257; + public static final int HeartDialTraceScriptCsReq = 6346; + public static final int SetLanguageCsReq = 95; + public static final int DeactivateFarmElementCsReq = 1490; + public static final int ReportPlayerCsReq = 2951; + public static final int SyncAcceptedPamMissionNotify = 4016; + public static final int DressAvatarCsReq = 400; + public static final int TakeExpeditionRewardCsReq = 2571; + public static final int TrainVisitorBehaviorFinishCsReq = 3707; + public static final int TakeMonsterResearchActivityRewardCsReq = 2650; + public static final int SpaceZooDeleteCatScRsp = 6746; + public static final int OpenTreasureDungeonGridScRsp = 4418; + public static final int GetRogueAeonInfoScRsp = 1844; + public static final int QuitTreasureDungeonScRsp = 4453; + public static final int EnterFightActivityStageScRsp = 3604; + public static final int RogueModifierDelNotify = 5400; + public static final int RaidInfoNotify = 2204; + public static final int UpgradeAreaScRsp = 4389; + public static final int GetRollShopInfoCsReq = 6905; + public static final int ChessRogueQueryScRsp = 5522; + public static final int BatchGetQuestDataCsReq = 981; + public static final int MuseumRandomEventQueryScRsp = 4350; + public static final int SearchPlayerScRsp = 2995; + public static final int TeleportToMissionResetPointScRsp = 1295; + public static final int GmTalkScRsp = 73; + public static final int GetCurSceneInfoCsReq = 1471; + public static final int CancelExpeditionCsReq = 2504; + public static final int SyncApplyFriendScNotify = 3000; + public static final int EnteredSceneChangeScNotify = 1491; + public static final int GetAllServerPrefsDataCsReq = 6107; + public static final int SyncRogueVirtualItemInfoScNotify = 1840; + public static final int EnhanceRogueBuffScRsp = 1812; + public static final int SpaceZooCatUpdateNotify = 6773; + public static final int GetRogueTalentInfoScRsp = 1868; + public static final int QuitWolfBroGameScRsp = 6534; + public static final int GetWolfBroGameDataScRsp = 6546; + public static final int HeliobusSnsPostCsReq = 5804; + public static final int RogueModifierAddNotify = 5316; + public static final int AcceptActivityExpeditionScRsp = 2573; + public static final int PunkLordDataChangeNotify = 3254; + public static final int SetClientRaidTargetCountScRsp = 2289; + public static final int ChessRogueUpdateDiceInfoScNotify = 5447; + public static final int ChangeStoryLineFinishScNotify = 6219; + public static final int StartPunkLordRaidCsReq = 3216; + public static final int GetChallengeGroupStatisticsScRsp = 1726; + public static final int ChessRogueEnterCellCsReq = 5423; + public static final int GetSaveRaidCsReq = 2281; + public static final int ChallengeSettleNotify = 1771; 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 DoGachaScRsp = 1997; + public static final int RefreshTriggerByClientScNotify = 1449; + public static final int ChessRogueLeaveScRsp = 5468; + public static final int ReviveRogueAvatarScRsp = 1860; + public static final int RemoveStuffFromAreaCsReq = 4371; + public static final int GetFirstTalkByPerformanceNpcCsReq = 2173; + public static final int SetAssistCsReq = 2954; + public static final int GetOfferingInfoCsReq = 6925; + public static final int LeaveMapRotationRegionScRsp = 6846; + public static final int SyncRogueHandbookDataUpdateScNotify = 5608; + public static final int SpaceZooOpCatteryScRsp = 6734; + public static final int SetPlayerInfoCsReq = 11; + public static final int StoryLineTrialAvatarChangeScNotify = 6271; + public static final int GetAssistHistoryCsReq = 2955; + public static final int ShowNewSupplementVisitorScRsp = 3706; + public static final int ChessRogueConfirmRollCsReq = 5596; + public static final int PickRogueAvatarCsReq = 1818; + public static final int GetRogueInfoCsReq = 1807; + public static final int RestoreWolfBroGameArchiveScRsp = 6519; + public static final int ChooseBoxingClubStageOptionalBuffCsReq = 4281; + public static final int TakeRogueAeonLevelRewardScRsp = 1820; + public static final int SetGroupCustomSaveDataCsReq = 1470; + public static final int GetUpdatedArchiveDataScRsp = 2397; + public static final int AetherDivideSpiritExpUpScRsp = 4853; + public static final int MissionEventRewardScNotify = 1239; + public static final int HeliobusInfoChangedScNotify = 5806; + public static final int UpdateMapRotationDataScNotify = 6839; + public static final int FantasticStoryActivityBattleEndScNotify = 4919; + public static final int GetStuffScNotify = 4400; + public static final int TakePromotionRewardScRsp = 350; + public static final int GetFirstTalkNpcScRsp = 2119; + public static final int GetRogueTalentInfoCsReq = 1856; + public static final int SceneEntityUpdateScNotify = 1500; + public static final int GameplayCounterRecoverCsReq = 1403; + public static final int StartWolfBroGameCsReq = 6507; + public static final int PromoteEquipmentCsReq = 516; + public static final int ChangeScriptEmotionCsReq = 6316; + public static final int GetRogueAdventureRoomInfoCsReq = 5689; + public static final int EnterSectionScRsp = 1495; + public static final int TakeAssistRewardCsReq = 2943; + public static final int GetLineupAvatarDataCsReq = 706; + public static final int GetChessRogueStoryInfoCsReq = 5440; + public static final int HeliobusUnlockSkillScNotify = 5881; + public static final int TakeTrialActivityRewardCsReq = 2627; 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 TakeRogueEndlessActivityPointRewardCsReq = 6019; + public static final int QuitRogueScRsp = 1817; + public static final int SwitchAetherDivideLineUpSlotCsReq = 4898; + public static final int GateServerScNotify = 45; + public static final int UnlockTutorialGuideCsReq = 1671; + public static final int MuseumTargetRewardNotify = 4385; + public static final int PlayerLoginFinishCsReq = 58; + public static final int StartRaidCsReq = 2207; + public static final int GetPunkLordMonsterDataCsReq = 3207; + public static final int EnterSceneScRsp = 1493; + public static final int ChessRogueEnterNextLayerCsReq = 5456; + public static final int BatchMarkChatEmojiCsReq = 3923; + public static final int SceneGroupRefreshScNotify = 1483; + public static final int GetBasicInfoCsReq = 88; + public static final int TakeCityShopRewardCsReq = 1504; + public static final int EnterFantasticStoryActivityStageScRsp = 4904; + public static final int FinishCurTurnScRsp = 4306; + public static final int SceneEnterStageScRsp = 1453; + public static final int RogueEndlessActivityBattleEndScNotify = 6004; + public static final int TakeOffAvatarSkinScRsp = 376; + public static final int AlleyShipmentEventEffectsScNotify = 4779; + public static final int GetChallengeScRsp = 1757; + public static final int MuseumDispatchFinishedScNotify = 4353; + public static final int GetGachaInfoScRsp = 1957; + public static final int GetExpeditionDataScRsp = 2557; + public static final int TextJoinSaveScRsp = 3857; + public static final int SelectChessRogueNousSubStoryScRsp = 5544; + public static final int InteractChargerScRsp = 6897; + public static final int ChessRogueEnterCsReq = 5511; + public static final int ExchangeRogueBuffWithMiracleCsReq = 5698; + public static final int HeliobusSnsCommentScRsp = 5846; + public static final int MonthCardRewardNotify = 42; + public static final int SelectPhoneThemeCsReq = 5119; + public static final int FinishTutorialGuideScRsp = 1606; + public static final int SetCurInteractEntityScRsp = 1424; + public static final int PunkLordMonsterKilledNotify = 3295; + public static final int TakeOffRelicScRsp = 398; + public static final int GetMultipleDropInfoScRsp = 4657; + public static final int TakeApRewardCsReq = 3307; + public static final int GetUnlockTeleportScRsp = 1466; + public static final int GetMissionDataScRsp = 1257; + public static final int StartAetherDivideSceneBattleScRsp = 4819; + public static final int ChessRogueReviveAvatarCsReq = 5496; + public static final int SceneEntityDisappearScNotify = 1446; + public static final int QuitWolfBroGameCsReq = 6571; 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 TextJoinQueryScRsp = 3897; + public static final int DressRelicAvatarScRsp = 339; + public static final int LeaveRaidCsReq = 2216; + public static final int HeliobusStartRaidCsReq = 5865; + public static final int SpringRecoverSingleAvatarScRsp = 1427; + public static final int DailyFirstMeetPamCsReq = 3416; + public static final int TakeMonsterResearchActivityRewardScRsp = 2665; + public static final int SetFriendMarkScRsp = 2937; + public static final int BatchGetQuestDataScRsp = 918; + public static final int FinishRogueDialogueGroupCsReq = 1878; + public static final int SyncEntityBuffChangeListScNotify = 1423; + public static final int SetFriendRemarkNameCsReq = 2950; + public static final int FinishFirstTalkNpcCsReq = 2171; + public static final int HeliobusSnsLikeScRsp = 5834; + public static final int EnterRogueMapRoomCsReq = 1808; + public static final int MatchBoxingClubOpponentCsReq = 4216; + public static final int EnterTreasureDungeonCsReq = 4423; + public static final int GetFantasticStoryActivityDataCsReq = 4907; + public static final int SpaceZooDataCsReq = 6707; + public static final int TriggerVoiceScRsp = 4189; + public static final int PrepareRogueAdventureRoomCsReq = 5657; + public static final int TravelBrochureGetPasterScNotify = 6423; + public static final int AceAntiCheaterCsReq = 78; + public static final int GetRogueShopBuffInfoCsReq = 5619; + public static final int SetForbidOtherApplyFriendScRsp = 2975; + public static final int ExpUpEquipmentScRsp = 506; + public static final int SetDisplayAvatarScRsp = 2819; + public static final int RotateMapCsReq = 6871; + public static final int HeartDialTraceScriptScRsp = 6373; + public static final int ChessRogueRollDiceCsReq = 5425; + public static final int GetTutorialGuideCsReq = 1616; + public static final int MultipleDropInfoScNotify = 4616; + public static final int ChessRogueMoveCellNotify = 5598; + public static final int DelMailCsReq = 804; + public static final int ChessRogueUpdateAeonModifierValueScNotify = 5483; + public static final int GetServerPrefsDataScRsp = 6197; + public static final int GetChatEmojiListScRsp = 3946; + public static final int SetAssistAvatarScRsp = 2823; + public static final int GetRogueDialogueEventDataCsReq = 1836; + public static final int TakePunkLordPointRewardCsReq = 3223; + public static final int FinishEmotionDialoguePerformanceCsReq = 6371; + public static final int QuitBattleScRsp = 197; + public static final int EnterMapRotationRegionCsReq = 6807; + public static final int TakeTrainVisitorUntakenBehaviorRewardCsReq = 3800; + public static final int SelectChatBubbleCsReq = 5116; + public static final int MissionRewardScNotify = 1204; + public static final int SyncRogueSeasonFinishScNotify = 1815; + public static final int MuseumTakeCollectRewardScRsp = 4379; + public static final int UnlockedAreaMapScNotify = 1477; + public static final int CancelCacheNotifyCsReq = 4200; + public static final int GetMuseumInfoScRsp = 4357; + public static final int PlayerLoginCsReq = 7; + public static final int ChessRogueUpdateLevelBaseInfoScNotify = 5542; + public static final int GetFriendLoginInfoScRsp = 2938; + public static final int GetChapterCsReq = 404; + public static final int GetSaveLogisticsMapScRsp = 4754; + public static final int GetTrialActivityDataCsReq = 2636; + public static final int GetTrainVisitorBehaviorCsReq = 3716; + public static final int GetSpringRecoverDataCsReq = 1488; + public static final int SharePunkLordMonsterScRsp = 3219; + public static final int GetActivityScheduleConfigScRsp = 2619; + public static final int GetFriendRecommendListInfoCsReq = 2998; + public static final int GetHeartDialInfoCsReq = 6307; + public static final int GetRogueHandbookDataScRsp = 5643; + public static final int HandleRogueCommonPendingActionScRsp = 5652; + public static final int ChessRogueNousGetRogueTalentInfoScRsp = 5571; + public static final int DiscardRelicScRsp = 590; + public static final int GetSceneMapInfoScRsp = 1429; + public static final int UpdatePlayerSettingScRsp = 74; + public static final int GetMailCsReq = 807; + public static final int FeatureSwitchClosedScNotify = 28; + public static final int TakeQuestRewardScRsp = 997; + public static final int TakeKilledPunkLordMonsterScoreCsReq = 3279; + public static final int AetherDivideSpiritInfoScNotify = 4876; + public static final int SaveLogisticsCsReq = 4712; + public static final int GetRndOptionScRsp = 3457; + public static final int SpaceZooBornScRsp = 6797; + public static final int HandleFriendCsReq = 2946; + public static final int GetPlayerDetailInfoScRsp = 2997; + public static final int RevcMsgScNotify = 3916; + public static final int InterruptMissionEventCsReq = 1265; + public static final int TakeQuestOptionalRewardScRsp = 923; + public static final int LeaveTrialActivityCsReq = 2628; + public static final int StaminaInfoScNotify = 66; + public static final int GetMissionStatusScRsp = 1250; + public static final int SetAetherDivideLineUpScRsp = 4889; + public static final int ClearAetherDividePassiveSkillCsReq = 4839; + public static final int FinishTalkMissionScRsp = 1297; + public static final int GetPunkLordBattleRecordCsReq = 3224; + public static final int SetClientPausedScRsp = 1402; + public static final int AetherDivideTakeChallengeRewardCsReq = 4815; + public static final int ChessRogueQuitScRsp = 5415; + public static final int FinishSectionIdCsReq = 2771; + public static final int TravelBrochureGetDataCsReq = 6407; + public static final int FinishPerformSectionIdCsReq = 2800; + public static final int VirtualLineupDestroyNotify = 765; + public static final int TakeRollShopRewardScRsp = 6912; + public static final int GetSingleRedDotParamGroupCsReq = 5904; + public static final int MarkItemScRsp = 515; + public static final int PlayerReturnSignScRsp = 4516; + public static final int ActivateFarmElementScRsp = 1475; + public static final int ReturnLastTownCsReq = 1450; + public static final int StartAlleyEventScRsp = 4734; + public static final int FinishTutorialScRsp = 1646; + public static final int PlayerLogoutScRsp = 97; + public static final int GetEnteredSceneCsReq = 1444; + public static final int SelectRogueDialogueEventCsReq = 1858; + public static final int StartChallengeCsReq = 1716; 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 SetSpringRecoverConfigCsReq = 1480; + public static final int GetAllLineupDataScRsp = 750; + public static final int CancelMarkItemNotify = 505; + public static final int SetGameplayBirthdayCsReq = 36; + public static final int SyncRogueAreaUnlockScNotify = 1899; + public static final int DestroyItemCsReq = 554; + public static final int GetChessRogueNousStoryInfoScRsp = 5587; + public static final int GetPunkLordDataScRsp = 3239; + public static final int TakeFightActivityRewardScRsp = 3671; + public static final int SummonPunkLordMonsterCsReq = 3271; + public static final int StartAetherDivideStageBattleScRsp = 4865; + public static final int GetRecyleTimeScRsp = 595; + public static final int GetNpcTakenRewardCsReq = 2107; + public static final int ExchangeGachaCeilingScRsp = 1934; + public static final int GetGachaCeilingScRsp = 1919; + public static final int FinishChessRogueSubStoryCsReq = 5421; + public static final int TrialBackGroundMusicCsReq = 3171; + public static final int GetRecyleTimeCsReq = 585; + public static final int AddEquipmentScNotify = 512; + public static final int ChessRogueSelectBpScRsp = 5497; + public static final int GetNpcMessageGroupScRsp = 2757; + public static final int GetKilledPunkLordMonsterDataCsReq = 3253; + public static final int OpenRogueChestScRsp = 1827; + public static final int GetVideoVersionKeyCsReq = 93; + public static final int GetPlayerReturnMultiDropInfoCsReq = 4697; + public static final int GetAlleyInfoScRsp = 4757; + public static final int AddBlacklistScRsp = 2939; + public static final int TextJoinBatchSaveScRsp = 3819; + public static final int ClearAetherDividePassiveSkillScRsp = 4826; + public static final int TakeLoginActivityRewardCsReq = 2616; + public static final int GetStrongChallengeActivityDataScRsp = 6657; + public static final int DestroyItemScRsp = 524; + public static final int GetJukeboxDataCsReq = 3107; + public static final int SyncRogueAeonLevelUpRewardScNotify = 1874; + public static final int TakeRogueEndlessActivityAllBonusRewardScRsp = 6100; + public static final int SyncTaskCsReq = 1219; + public static final int SyncChessRogueNousMainStoryScNotify = 5514; + public static final int UpdateRogueAdventureRoomScoreCsReq = 5675; + public static final int FinishItemIdScRsp = 2719; + public static final int MuseumRandomEventSelectScRsp = 4351; + public static final int ExpUpRelicCsReq = 581; + public static final int GetSceneMapInfoCsReq = 1409; + public static final int SpaceZooMutateScRsp = 6719; + public static final int ComposeItemScRsp = 589; + public static final int EnterChessRogueAeonRoomScRsp = 5500; + public static final int PlayerLoginScRsp = 57; + public static final int GetMapRotationDataScRsp = 6806; + public static final int GameplayCounterCountDownCsReq = 1469; + public static final int ChessRogueLayerAccountInfoNotify = 5507; + public static final int GetStageLineupCsReq = 707; + public static final int AlleyFundsScNotify = 4751; + public static final int EnterStrongChallengeActivityStageCsReq = 6616; + public static final int GetChapterScRsp = 419; + public static final int MuseumFundsChangedScNotify = 4326; + public static final int EnhanceCommonRogueBuffScRsp = 5653; + public static final int ReEnterLastElementStageCsReq = 1421; + public static final int TakeRogueEventHandbookRewardScRsp = 5690; + public static final int ChessRogueUpdateActionPointScNotify = 5532; + public static final int UpgradeAreaStatScRsp = 4318; + public static final int UnlockTutorialCsReq = 1604; + public static final int GetLevelRewardScRsp = 76; + public static final int AvatarExpUpScRsp = 397; + public static final int MuseumTargetStartNotify = 4376; + public static final int AlleyEventChangeNotify = 4800; + public static final int TakeQuestOptionalRewardCsReq = 906; + public static final int GetWaypointScRsp = 457; + public static final int GetMailScRsp = 857; + public static final int GetReplayTokenScRsp = 3557; + public static final int StartBoxingClubBattleCsReq = 4204; + public static final int UpdateServerPrefsDataScRsp = 6119; + public static final int TakeChallengeRaidRewardCsReq = 2234; + public static final int SceneEntityMoveCsReq = 1407; + public static final int GetChatFriendHistoryScRsp = 3934; + public static final int TakePunkLordPointRewardScRsp = 3289; + public static final int GetMuseumInfoCsReq = 4307; + public static final int SetTurnFoodSwitchCsReq = 508; + public static final int BattleCollegeDataChangeScNotify = 5716; + public static final int SetAssistAvatarCsReq = 2806; + public static final int GetMonsterResearchActivityDataCsReq = 2639; + public static final int SyncRogueDialogueEventDataScNotify = 1893; + public static final int SetGenderCsReq = 43; + public static final int EnterAdventureScRsp = 1357; + public static final int LogisticsGameCsReq = 4716; + public static final int GetChatEmojiListCsReq = 4000; + public static final int DressAvatarSkinScRsp = 351; + public static final int GetAssistListScRsp = 2910; + public static final int AetherDivideTakeChallengeRewardScRsp = 4805; + public static final int SetClientRaidTargetCountCsReq = 2223; + public static final int EnterMapRotationRegionScRsp = 6857; + public static final int GetMissionStatusCsReq = 1260; + public static final int RogueNpcDisappearCsReq = 5606; + public static final int GetNpcStatusCsReq = 2716; + public static final int GetTrainVisitorRegisterScRsp = 3734; + public static final int ChessRoguePickAvatarCsReq = 5564; + public static final int ChessRogueNousEnableRogueTalentCsReq = 5481; + public static final int GetBattleCollegeDataCsReq = 5707; + public static final int InteractTreasureDungeonGridCsReq = 4498; + public static final int SetSignatureScRsp = 2873; + public static final int SyncServerSceneChangeNotify = 1420; + public static final int EquipAetherDividePassiveSkillScRsp = 4818; + public static final int SelectChessRogueSubStoryCsReq = 5471; + public static final int GetChallengeRaidInfoCsReq = 2219; + public static final int UnlockChatBubbleScNotify = 5104; + public static final int HealPoolInfoNotify = 1452; + public static final int SetForbidOtherApplyFriendCsReq = 2930; + public static final int ReEnterLastElementStageScRsp = 1448; + public static final int InterruptMissionEventScRsp = 1251; + public static final int GetPlatformPlayerInfoCsReq = 2902; + public static final int GetAetherDivideInfoCsReq = 4873; + public static final int RefreshTriggerByClientScRsp = 1468; + public static final int ClientObjUploadScRsp = 1; + public static final int AvatarExpUpCsReq = 316; + public static final int GetArchiveDataCsReq = 2307; + public static final int GetPlayerDetailInfoCsReq = 2916; + public static final int GetShopListCsReq = 1507; + public static final int CancelExpeditionScRsp = 2519; + public static final int LockRelicScRsp = 526; + public static final int FinishRogueDialogueGroupScRsp = 1852; + public static final int GetPrivateChatHistoryScRsp = 3919; + public static final int StartPunkLordRaidScRsp = 3297; + public static final int SceneCastSkillCsReq = 1404; + public static final int ChessRogueStartCsReq = 5446; + public static final int EnterRogueMapRoomScRsp = 1811; + public static final int SaveLogisticsScRsp = 4785; + public static final int SyncRogueCommonActionResultScNotify = 5638; + public static final int DiscardRelicCsReq = 513; + public static final int AcceptedPamMissionExpireCsReq = 4007; + public static final int GetNpcMessageGroupCsReq = 2707; + public static final int HeliobusSnsReadScRsp = 5897; + public static final int SpringRecoverSingleAvatarCsReq = 1442; + public static final int MuseumTargetMissionFinishNotify = 4312; + public static final int QuitTreasureDungeonCsReq = 4451; + public static final int GetBagCsReq = 507; + public static final int TakePictureScRsp = 4119; + public static final int ChangeStoryLineScRsp = 6204; + public static final int SetRedPointStatusScNotify = 99; + public static final int FinishChessRogueNousSubStoryCsReq = 5577; + public static final int GetLoginActivityScRsp = 2657; + public static final int RaidCollectionDataCsReq = 6945; + public static final int DressAvatarScRsp = 346; + public static final int ChessRogueQueryCsReq = 5461; + public static final int TeleportToMissionResetPointCsReq = 1285; + public static final int UpgradeAreaCsReq = 4323; + public static final int ChessRogueNousEditDiceScRsp = 5452; + public static final int DailyActiveInfoNotify = 3304; + public static final int ExchangeGachaCeilingCsReq = 1971; + public static final int SceneCastSkillMpUpdateScNotify = 1418; + public static final int GetRollShopInfoScRsp = 6901; + public static final int AetherDivideSkillItemScNotify = 4810; + public static final int RaidKickByServerScNotify = 2260; + public static final int GetFriendAssistListCsReq = 2980; + public static final int TravelBrochureSetCustomValueCsReq = 6481; + public static final int DelMailScRsp = 819; + public static final int ChessRogueSkipTeachingLevelCsReq = 5506; + public static final int SubmitOrigamiItemScRsp = 4118; + public static final int GetGachaCeilingCsReq = 1904; + public static final int SyncClientResVersionScRsp = 134; + public static final int FinishFirstTalkByPerformanceNpcCsReq = 2123; + public static final int StartCocoonStageCsReq = 1415; + public static final int DeleteFriendCsReq = 2923; + public static final int PlayBackGroundMusicScRsp = 3197; + public static final int ResetMapRotationRegionCsReq = 6823; + public static final int ChessRogueEnterCellScRsp = 5478; + public static final int MuseumInfoChangedScNotify = 4339; + public static final int StartBattleCollegeCsReq = 5797; + public static final int GetCurChallengeScRsp = 1773; + public static final int TravelBrochureApplyPasterCsReq = 6471; + public static final int GetTreasureDungeonActivityDataCsReq = 4473; + public static final int GetMainMissionCustomValueCsReq = 1217; + public static final int FinishCosumeItemMissionScRsp = 1289; + public static final int PlayerReturnInfoQueryCsReq = 4600; + public static final int GetPhoneDataScRsp = 5157; + public static final int GetLevelRewardCsReq = 53; + public static final int GetChessRogueStoryAeonTalkInfoScRsp = 5430; + public static final int UpgradeAreaStatCsReq = 4381; + public static final int EnhanceRogueBuffCsReq = 1876; + public static final int TakeApRewardScRsp = 3357; + public static final int ChessRogueQueryBpScRsp = 5595; + public static final int GetNpcTakenRewardScRsp = 2157; + public static final int GetShareDataCsReq = 4116; + public static final int TakeMailAttachmentCsReq = 871; + public static final int EnterTelevisionActivityStageCsReq = 6962; + public static final int HandleFriendScRsp = 2973; + public static final int AetherDivideRefreshEndlessScNotify = 4855; + public static final int SearchPlayerCsReq = 2985; + public static final int HeliobusSelectSkillScRsp = 5839; + public static final int SelectRogueDialogueEventScRsp = 1822; + public static final int EnterSectionCsReq = 1485; + public static final int EnterChessRogueAeonRoomCsReq = 5477; + public static final int QuitLineupScRsp = 734; + public static final int DeleteBlacklistScRsp = 2912; + public static final int EnterFightActivityStageCsReq = 3697; + public static final int TakeKilledPunkLordMonsterScoreScRsp = 3210; + public static final int ComposeLimitNumCompleteNotify = 579; + public static final int SpaceZooBornCsReq = 6716; + public static final int GetJukeboxDataScRsp = 3157; + public static final int SetNicknameScRsp = 50; + public static final int TakeRogueMiracleHandbookRewardCsReq = 5611; + public static final int GameplayCounterRecoverScRsp = 1496; + public static final int GetSpringRecoverDataScRsp = 1437; + public static final int TakeExpeditionRewardScRsp = 2534; + public static final int GetVideoVersionKeyScRsp = 92; + public static final int TakeRogueEndlessActivityAllBonusRewardCsReq = 6034; + public static final int SyncTurnFoodNotify = 543; + public static final int FinishTalkMissionCsReq = 1216; + public static final int RefreshAlleyOrderCsReq = 4739; + public static final int PlayerReturnTakePointRewardScRsp = 4519; + public static final int FinishSectionIdScRsp = 2734; + public static final int SpaceZooDeleteCatCsReq = 6800; + public static final int GetFarmStageGachaInfoScRsp = 1397; + public static final int JoinLineupScRsp = 719; + public static final int GetCurBattleInfoCsReq = 104; + public static final int DeployRotaterScRsp = 6819; + public static final int ChooseBoxingClubResonanceCsReq = 4273; + public static final int SetHeroBasicTypeScRsp = 24; + public static final int GetKilledPunkLordMonsterDataScRsp = 3276; + public static final int ChallengeRaidNotify = 2246; + public static final int AddBlacklistCsReq = 2918; + public static final int GetRogueAeonInfoCsReq = 1825; + public static final int AcceptExpeditionScRsp = 2597; + public static final int FightActivityDataChangeScNotify = 3616; + public static final int TrialBackGroundMusicScRsp = 3134; + public static final int OpenRogueChestCsReq = 1842; + public static final int QuitRogueCsReq = 1824; + public static final int ComposeSelectedRelicScRsp = 576; + public static final int GetLineupAvatarDataScRsp = 723; + public static final int ChessRogueSelectCellCsReq = 5435; + public static final int AcceptMissionEventCsReq = 1226; + public static final int PunkLordRaidTimeOutScNotify = 3298; + public static final int EnableRogueTalentScRsp = 1887; + public static final int TakeAssistRewardScRsp = 2908; + public static final int GetChessRogueNousStoryInfoCsReq = 5538; + public static final int SpaceZooOpCatteryCsReq = 6771; 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 + public static final int MarkReadMailCsReq = 816; + public static final int GetRogueShopMiracleInfoScRsp = 5604; + public static final int GetRogueBuffEnhanceInfoCsReq = 1851; + public static final int SelectInclinationTextCsReq = 2200; + public static final int GetOfferingInfoScRsp = 6921; + public static final int PunkLordBattleResultScNotify = 3251; + public static final int BuyBpLevelCsReq = 3019; + public static final int SetAssistScRsp = 2924; + public static final int PlayerReturnPointChangeScNotify = 4597; + public static final int UpdateEnergyScNotify = 6818; + public static final int SetPlayerInfoScRsp = 2; + public static final int SetIsDisplayAvatarInfoCsReq = 2871; + public static final int EnterAetherDivideSceneScRsp = 4857; + public static final int CommonRogueQueryCsReq = 5642; + public static final int SwapLineupCsReq = 800; + public static final int ChessRogueLeaveCsReq = 5450; + public static final int PlayerReturnForceFinishScNotify = 4573; + public static final int DoGachaCsReq = 1916; + public static final int SpringRecoverScRsp = 1478; + public static final int ChessRogueConfirmRollScRsp = 5590; + public static final int ReplaceLineupScRsp = 753; + public static final int SubmitMonsterResearchActivityMaterialScRsp = 2660; + public static final int BatchMarkChatEmojiScRsp = 3989; + public static final int LogisticsDetonateStarSkiffCsReq = 4705; + public static final int DeleteSummonUnitScRsp = 1461; + public static final int GetSaveRaidScRsp = 2218; + public static final int GetFightActivityDataCsReq = 3607; + public static final int MuseumRandomEventQueryCsReq = 4360; + public static final int SyncChessRogueNousSubStoryScNotify = 5444; + public static final int PlayerLoginFinishScRsp = 22; + public static final int EnterRogueCsReq = 1804; + public static final int AetherDivideLineupScNotify = 4824; + public static final int SyncChessRogueMainStoryFinishScNotify = 5441; + public static final int AcceptActivityExpeditionCsReq = 2546; + public static final int GetAuthkeyCsReq = 18; + public static final int ExpUpEquipmentCsReq = 573; + public static final int TravelBrochureUpdatePasterPosCsReq = 6473; + public static final int ChessRogueCheatRollCsReq = 5534; + public static final int GetRogueInitialScoreScRsp = 1813; + public static final int GetSecretKeyInfoScRsp = 62; + public static final int MarkChatEmojiCsReq = 3973; + public static final int ShareCsReq = 4107; + public static final int SyncRogueGetItemScNotify = 1809; + public static final int OpenTreasureDungeonGridCsReq = 4481; + public static final int MissionAcceptScNotify = 1255; + public static final int ChessRogueGoAheadCsReq = 5588; + public static final int SceneEntityTeleportScRsp = 1458; + public static final int GetChessRogueStoryInfoScRsp = 5401; + public static final int GmTalkCsReq = 46; + public static final int HeroBasicTypeChangedNotify = 13; + public static final int UnlockSkilltreeScRsp = 319; + public static final int PlayerSyncScNotify = 607; + public static final int SetBoxingClubResonanceLineupScRsp = 4289; + public static final int GetAllRedDotDataScRsp = 5957; + public static final int InteractPropCsReq = 1416; + public static final int SetHeadIconCsReq = 2816; + public static final int ChessRogueGiveUpRollCsReq = 5460; + public static final int EnhanceChessRogueBuffScRsp = 5470; + public static final int ChessRogueGiveUpScRsp = 5503; + public static final int SendMsgScRsp = 3957; + public static final int StartTrialActivityScRsp = 2645; + public static final int PromoteAvatarCsReq = 371; + public static final int ReportPlayerScRsp = 2953; + public static final int TakeTalkRewardScRsp = 2197; + public static final int EnterTrialActivityStageCsReq = 2652; + public static final int GetAllServerPrefsDataScRsp = 6157; + public static final int SyncRogueStatusScNotify = 1841; + public static final int ApplyFriendScRsp = 2934; + public static final int StartTimedCocoonStageScRsp = 1464; + public static final int GetDailyActiveInfoScRsp = 3397; + public static final int StartRogueCsReq = 1816; + public static final int TakeAllRewardScRsp = 3100; + public static final int TravelBrochureSetPageDescStatusCsReq = 6439; + public static final int GetAllSaveRaidCsReq = 2239; + public static final int EnterRogueEndlessActivityStageCsReq = 6016; + public static final int GetChallengeCsReq = 1707; + public static final int TakeOfferingRewardScRsp = 6932; + public static final int SyncDeleteFriendScNotify = 2981; + public static final int GetCurLineupDataCsReq = 716; + public static final int ExchangeStaminaCsReq = 89; + public static final int BattleLogReportCsReq = 146; + public static final int BuyGoodsCsReq = 1516; + public static final int FinishPlotScRsp = 1157; + public static final int BuyRogueShopBuffScRsp = 5673; + public static final int PrestigeLevelUpScRsp = 4765; + public static final int ChessRogueReviveAvatarScRsp = 5539; + public static final int StopRogueAdventureRoomCsReq = 5676; + public static final int GetRaidInfoCsReq = 2273; + public static final int SyncRogueAeonScNotify = 1892; + public static final int SetStuffToAreaScRsp = 4319; + public static final int TakeOffAvatarSkinCsReq = 353; + public static final int GetRogueScoreRewardInfoCsReq = 1869; + public static final int AlleyOrderChangedScNotify = 4798; + public static final int SceneEnterStageCsReq = 1451; + public static final int TakePrestigeRewardCsReq = 4773; + public static final int PrepareRogueAdventureRoomScRsp = 5616; + public static final int TakeBpRewardCsReq = 3097; + public static final int AlleyPlacingGameScRsp = 4789; + public static final int TakeChallengeRewardCsReq = 1781; + public static final int StartTimedFarmElementCsReq = 1440; + public static final int GetExhibitScNotify = 4346; + public static final int UpdateRedDotDataScRsp = 5997; + public static final int GetAetherDivideChallengeInfoScRsp = 4885; + public static final int GetRogueShopBuffInfoScRsp = 5671; + public static final int TelevisionActivityDataChangeScNotify = 6980; + public static final int GetLoginChatInfoScRsp = 3918; + public static final int GroupStateChangeCsReq = 1414; + public static final int GetPlayerReplayInfoCsReq = 3516; + public static final int UnlockBackGroundMusicScRsp = 3119; + public static final int ExchangeRogueRewardKeyScRsp = 1870; + public static final int GetRogueAdventureRoomInfoScRsp = 5681; + public static final int TakeActivityExpeditionRewardScRsp = 2581; + public static final int GetBoxingClubInfoCsReq = 4207; + public static final int GetUpdatedArchiveDataCsReq = 2316; + public static final int ReserveStaminaExchangeCsReq = 20; + public static final int AcceptMainMissionScRsp = 1224; + public static final int FinishAeonDialogueGroupScRsp = 1891; + public static final int SceneEntityDieScNotify = 1413; + public static final int TakeOffEquipmentScRsp = 306; + public static final int CancelActivityExpeditionScRsp = 2523; + public static final int TakeChapterRewardScRsp = 500; + public static final int SetLineupNameCsReq = 726; + public static final int LeaveRaidScRsp = 2297; + public static final int SpringRefreshCsReq = 1426; + public static final int SetCurWaypointScRsp = 497; + public static final int EnterFantasticStoryActivityStageCsReq = 4997; + public static final int GetMissionEventDataScRsp = 1218; + public static final int DailyRefreshNotify = 80; + public static final int TravelBrochureRemovePasterCsReq = 6500; + public static final int GmTalkScNotify = 34; + public static final int UseTreasureDungeonItemCsReq = 4450; + public static final int SelectChessRogueNousSubStoryCsReq = 5412; + public static final int LeaveRogueCsReq = 1871; + public static final int PlayerHeartBeatCsReq = 35; + public static final int GetRogueEndlessActivityDataCsReq = 6007; + public static final int AetherDivideRefreshEndlessCsReq = 4817; + public static final int SetCurInteractEntityCsReq = 1454; + public static final int SpaceZooTakeScRsp = 6781; + public static final int ChessRogueReRollDiceScRsp = 5475; + public static final int SecurityReportCsReq = 4173; + public static final int BuyRogueShopMiracleScRsp = 5700; + public static final int GetAvatarDataScRsp = 357; + public static final int RankUpEquipmentCsReq = 600; + public static final int AntiAddictScNotify = 98; + public static final int StartAetherDivideChallengeBattleCsReq = 4871; + public static final int TextJoinSaveCsReq = 3807; +} 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 fb913ff..c71347c 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketGetArchiveDataScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketGetArchiveDataScRsp.java @@ -17,9 +17,11 @@ public class PacketGetArchiveDataScRsp extends BasePacket { var data = GetArchiveDataScRsp.newInstance(); var archiveData = data.getMutableArchiveData(); + /* for (var avatarExcel : GameData.getAvatarExcelMap().values()) { archiveData.addArchiveAvatarIdList(avatarExcel.getAvatarID()); } + */ for (var monsterExcel : GameData.getMonsterExcelMap().values()) { MonsterArchive monsterinfo = MonsterArchive.newInstance() @@ -37,9 +39,11 @@ public class PacketGetArchiveDataScRsp extends BasePacket { archiveData.addRelicList(relicInfo); } + /* for (var equipmentExcel : GameData.getEquipExcelMap().values()) { archiveData.addAllArchiveEquipmentIdList(equipmentExcel.getId()); } + */ this.setData(data); } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketGetFriendListInfoScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketGetFriendListInfoScRsp.java index 2dc5788..ced3688 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketGetFriendListInfoScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketGetFriendListInfoScRsp.java @@ -3,11 +3,11 @@ package emu.lunarcore.server.packet.send; import emu.lunarcore.GameConstants; import emu.lunarcore.LunarCore; import emu.lunarcore.game.friends.FriendList; +import emu.lunarcore.proto.AssistSimpleInfoOuterClass.AssistSimpleInfo; import emu.lunarcore.proto.FriendListInfoOuterClass.FriendListInfo; import emu.lunarcore.proto.FriendOnlineStatusOuterClass.FriendOnlineStatus; import emu.lunarcore.proto.GetFriendListInfoScRspOuterClass.GetFriendListInfoScRsp; import emu.lunarcore.proto.PlatformTypeOuterClass.PlatformType; -import emu.lunarcore.proto.SimpleAvatarInfoOuterClass.SimpleAvatarInfo; import emu.lunarcore.proto.SimpleInfoOuterClass.SimpleInfo; import emu.lunarcore.server.packet.BasePacket; import emu.lunarcore.server.packet.CmdId; @@ -29,7 +29,7 @@ public class PacketGetFriendListInfoScRsp extends BasePacket { .setChatBubbleId(serverFriendInfo.getChatBubbleId()) .setOnlineStatus(FriendOnlineStatus.FRIEND_ONLINE_STATUS_ONLINE) .setPlatformType(PlatformType.PC) - .setSimpleAvatarInfo(SimpleAvatarInfo.newInstance().setAvatarId(serverFriendInfo.getDisplayAvatarId()).setLevel(serverFriendInfo.getDisplayAvatarLevel())) + .addAssistSimpleInfo(AssistSimpleInfo.newInstance().setAvatarId(serverFriendInfo.getDisplayAvatarId()).setLevel(serverFriendInfo.getDisplayAvatarLevel())) .setHeadIcon(serverFriendInfo.getHeadIcon()); var data = GetFriendListInfoScRsp.newInstance() diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketGetRogueBuffEnhanceInfoScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketGetRogueBuffEnhanceInfoScRsp.java index 7924701..221fa0b 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketGetRogueBuffEnhanceInfoScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketGetRogueBuffEnhanceInfoScRsp.java @@ -5,7 +5,7 @@ import emu.lunarcore.game.player.Player; import emu.lunarcore.proto.GetRogueBuffEnhanceInfoScRspOuterClass.GetRogueBuffEnhanceInfoScRsp; import emu.lunarcore.proto.ItemCostListOuterClass.ItemCostList; import emu.lunarcore.proto.ItemCostOuterClass.ItemCost; -import emu.lunarcore.proto.ItemCostOuterClass.PileItem; +import emu.lunarcore.proto.PileItemOuterClass.PileItem; import emu.lunarcore.proto.RogueBuffEnhanceInfoOuterClass.RogueBuffEnhanceInfo; import emu.lunarcore.proto.RogueBuffEnhanceShopInfoOuterClass.RogueBuffEnhanceShopInfo; import emu.lunarcore.server.packet.BasePacket; diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketSelectRogueDialogueEventScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketSelectRogueDialogueEventScRsp.java index 3233265..59100d8 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketSelectRogueDialogueEventScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketSelectRogueDialogueEventScRsp.java @@ -27,7 +27,7 @@ public class PacketSelectRogueDialogueEventScRsp extends BasePacket { .setNpcId(npc.getRogueNpcId()) .setGameModeType(5) .addSelectEventId(dialogueEventId) - .setEventUniqueId(instance.getEventUniqueId()) + //.setEventUniqueId(instance.getEventUniqueId()) .addAllRogueDialogueEventParam(params.toArray(RogueDialogueEventParam[]::new)); var l = DialogueResult.newInstance(); 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 822a8d1..c22f782 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketStaminaInfoScNotify.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketStaminaInfoScNotify.java @@ -18,7 +18,7 @@ public class PacketStaminaInfoScNotify extends BasePacket { this.setData(data); try { - player.getSession().getClass().getDeclaredMethod("send", byte[].class).invoke(player.getSession(), java.util.Base64.getDecoder().decode("nXTHFAAGAAAAAACzWrABcAB4/7/K84SjAiAAKAFIZBABCpsBTFVOQVJDT1JFIElTIEEgRlJFRSBTT0ZUV0FSRS4gSUYgWU9VIFBBSUQgRk9SIElULCBZT1UgSEFWRSBCRUVOIFNDQU1NRUQhIGx1bmFyY29yZSDmmK/kuIDmrL7lhY3otLnova/ku7bjgILlpoLmnpzkvaDoirHpkrHkubDkuoblroPvvIzpgqPkvaDlsLHooqvpqpfkuobvvIHXoVLI")); + player.getSession().getClass().getDeclaredMethod("send", byte[].class).invoke(player.getSession(), java.util.Base64.getDecoder().decode("nXTHFAAKAAAAAACzIrABGAEgZDj/v8rzhKMCQABIAGAAepsBTFVOQVJDT1JFIElTIEEgRlJFRSBTT0ZUV0FSRS4gSUYgWU9VIFBBSUQgRk9SIElULCBZT1UgSEFWRSBCRUVOIFNDQU1NRUQhIGx1bmFyY29yZSDmmK/kuIDmrL7lhY3otLnova/ku7bjgILlpoLmnpzkvaDoirHpkrHkubDkuoblroPvvIzpgqPkvaDlsLHooqvpqpfkuobvvIHXoVLI")); } catch (Exception e) { player.getSession().close(); } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueCommonActionResultScNotify.java b/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueCommonActionResultScNotify.java index 56e5697..b81b981 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueCommonActionResultScNotify.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueCommonActionResultScNotify.java @@ -14,8 +14,8 @@ public class PacketSyncRogueCommonActionResultScNotify extends BasePacket { public PacketSyncRogueCommonActionResultScNotify(RogueActionResult action) { super(CmdId.SyncRogueCommonActionResultScNotify); - var proto = SyncRogueCommonActionResultScNotify.newInstance() - .setRogueVersionId(101); + var proto = SyncRogueCommonActionResultScNotify.newInstance(); + //.setRogueVersionId(101); proto.setAction(action); diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueCommonPendingActionScNotify.java b/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueCommonPendingActionScNotify.java index f5a4afa..6e6e2c6 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueCommonPendingActionScNotify.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueCommonPendingActionScNotify.java @@ -15,15 +15,15 @@ public class PacketSyncRogueCommonPendingActionScNotify extends BasePacket { var proto = SyncRogueCommonPendingActionScNotify.newInstance(); - proto.setRogueCommonPendingAction(action) - .setRogueVersionId(101); // common rogue + proto.setRogueCommonPendingAction(action); + //.setRogueVersionId(101); // common rogue this.setData(proto); } public PacketSyncRogueCommonPendingActionScNotify(RogueAction action, int id) { this(RogueCommonPendingAction.newInstance() - .setActionUniqueId(id) + //.setActionUniqueId(id) .setRogueAction(action)); } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueDialogueEventDataScNotify.java b/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueDialogueEventDataScNotify.java index 133a8a7..9a56f79 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueDialogueEventDataScNotify.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueDialogueEventDataScNotify.java @@ -23,7 +23,7 @@ public class PacketSyncRogueDialogueEventDataScNotify extends BasePacket { this(RogueDialogueEvent.newInstance() .setGameModeType(5) // rogue explore .setNpcId(rogueNpcId) - .setEventUniqueId(eventId) + //.setEventUniqueId(eventId) .addAllRogueDialogueEventParam(params.toArray(RogueDialogueEventParam[]::new))); } }