From d3ac668313d9f61384e6214549d6d82a998f79b0 Mon Sep 17 00:00:00 2001 From: Melledy <121644117+Melledy@users.noreply.github.com> Date: Mon, 2 Feb 2026 22:01:21 -0800 Subject: [PATCH] Update to support game version `1.6.0.*` --- .../main/emu/nebula/proto/ActivityDetail.java | 319 +- .../proto/ActivityPenguinCardLevelSettle.java | 545 ++ ...ActivityPenguinCardQuestRewardReceive.java | 548 ++ .../nebula/proto/ActivityThrowGiftSettle.java | 1345 ++++ .../nebula/proto/DailyMallRewardReceive.java | 5 + .../main/emu/nebula/proto/EnergyInfo.java | 5 + .../emu/nebula/proto/JointDrill2Apply.java | 1240 ++++ .../emu/nebula/proto/JointDrill2Continue.java | 383 ++ .../emu/nebula/proto/JointDrill2GameOver.java | 5 + .../emu/nebula/proto/JointDrill2GiveUp.java | 780 +++ .../emu/nebula/proto/JointDrill2Retreat.java | 5 + .../emu/nebula/proto/JointDrill2Settle.java | 746 +++ .../emu/nebula/proto/JointDrill2Sync.java | 893 +++ .../emu/nebula/proto/JointDrillSettle.java | 16 +- .../main/emu/nebula/proto/MilkoutSettle.java | 1585 +++++ .../main/emu/nebula/proto/Notify.java | 450 ++ .../main/emu/nebula/proto/PlayerData.java | 909 ++- .../nebula/proto/PlayerLastReadUpdate.java | 5 + .../main/emu/nebula/proto/Public.java | 5953 +++++++++++++++++ .../emu/nebula/proto/PublicJointDrill.java | 2315 ++++++- .../nebula/proto/TravelerDuelRankUpload.java | 673 +- src/main/java/emu/nebula/GameConstants.java | 2 +- .../nebula/game/activity/ActivityModule.java | 15 +- .../nebula/game/activity/ActivityType.java | 4 +- src/main/java/emu/nebula/net/NetMsgId.java | 46 + .../server/handlers/HandlerEnergyInfoReq.java | 17 + src/main/resources/versions.json | 10 +- 27 files changed, 17781 insertions(+), 1038 deletions(-) create mode 100644 src/generated/main/emu/nebula/proto/ActivityPenguinCardLevelSettle.java create mode 100644 src/generated/main/emu/nebula/proto/ActivityPenguinCardQuestRewardReceive.java create mode 100644 src/generated/main/emu/nebula/proto/ActivityThrowGiftSettle.java create mode 100644 src/generated/main/emu/nebula/proto/DailyMallRewardReceive.java create mode 100644 src/generated/main/emu/nebula/proto/EnergyInfo.java create mode 100644 src/generated/main/emu/nebula/proto/JointDrill2Apply.java create mode 100644 src/generated/main/emu/nebula/proto/JointDrill2Continue.java create mode 100644 src/generated/main/emu/nebula/proto/JointDrill2GameOver.java create mode 100644 src/generated/main/emu/nebula/proto/JointDrill2GiveUp.java create mode 100644 src/generated/main/emu/nebula/proto/JointDrill2Retreat.java create mode 100644 src/generated/main/emu/nebula/proto/JointDrill2Settle.java create mode 100644 src/generated/main/emu/nebula/proto/JointDrill2Sync.java create mode 100644 src/generated/main/emu/nebula/proto/MilkoutSettle.java create mode 100644 src/generated/main/emu/nebula/proto/PlayerLastReadUpdate.java create mode 100644 src/main/java/emu/nebula/server/handlers/HandlerEnergyInfoReq.java diff --git a/src/generated/main/emu/nebula/proto/ActivityDetail.java b/src/generated/main/emu/nebula/proto/ActivityDetail.java index 6a43bef..d7c9918 100644 --- a/src/generated/main/emu/nebula/proto/ActivityDetail.java +++ b/src/generated/main/emu/nebula/proto/ActivityDetail.java @@ -100,6 +100,21 @@ public final class ActivityDetail { */ private final Public.ActivityStoryChapter storyChapter = Public.ActivityStoryChapter.newInstance(); + /** + * optional .Milkout Milkout = 17; + */ + private final Public.Milkout milkout = Public.Milkout.newInstance(); + + /** + * optional .ActivityPenguinCard PenguinCard = 18; + */ + private final Public.ActivityPenguinCard penguinCard = Public.ActivityPenguinCard.newInstance(); + + /** + * optional .ActivityThrowGift ThrowGift = 19; + */ + private final Public.ActivityThrowGift throwGift = Public.ActivityThrowGift.newInstance(); + /** * optional bytes NextPackage = 2047; */ @@ -1007,12 +1022,183 @@ public final class ActivityDetail { return this; } + /** + * optional .Milkout Milkout = 17; + * @return whether the milkout field is set + */ + public boolean hasMilkout() { + return (bitField0_ & 0x00010000) != 0; + } + + /** + * optional .Milkout Milkout = 17; + * @return this + */ + public ActivityMsg clearMilkout() { + bitField0_ &= ~0x00010000; + milkout.clear(); + return this; + } + + /** + * optional .Milkout Milkout = 17; + * + * This 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 #getMutableMilkout()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.Milkout getMilkout() { + return milkout; + } + + /** + * optional .Milkout Milkout = 17; + * + * 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 Public.Milkout getMutableMilkout() { + bitField0_ |= 0x00010000; + return milkout; + } + + /** + * optional .Milkout Milkout = 17; + * @param value the milkout to set + * @return this + */ + public ActivityMsg setMilkout(final Public.Milkout value) { + bitField0_ |= 0x00010000; + milkout.copyFrom(value); + return this; + } + + /** + * optional .ActivityPenguinCard PenguinCard = 18; + * @return whether the penguinCard field is set + */ + public boolean hasPenguinCard() { + return (bitField0_ & 0x00020000) != 0; + } + + /** + * optional .ActivityPenguinCard PenguinCard = 18; + * @return this + */ + public ActivityMsg clearPenguinCard() { + bitField0_ &= ~0x00020000; + penguinCard.clear(); + return this; + } + + /** + * optional .ActivityPenguinCard PenguinCard = 18; + * + * This 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 #getMutablePenguinCard()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.ActivityPenguinCard getPenguinCard() { + return penguinCard; + } + + /** + * optional .ActivityPenguinCard PenguinCard = 18; + * + * 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 Public.ActivityPenguinCard getMutablePenguinCard() { + bitField0_ |= 0x00020000; + return penguinCard; + } + + /** + * optional .ActivityPenguinCard PenguinCard = 18; + * @param value the penguinCard to set + * @return this + */ + public ActivityMsg setPenguinCard(final Public.ActivityPenguinCard value) { + bitField0_ |= 0x00020000; + penguinCard.copyFrom(value); + return this; + } + + /** + * optional .ActivityThrowGift ThrowGift = 19; + * @return whether the throwGift field is set + */ + public boolean hasThrowGift() { + return (bitField0_ & 0x00040000) != 0; + } + + /** + * optional .ActivityThrowGift ThrowGift = 19; + * @return this + */ + public ActivityMsg clearThrowGift() { + bitField0_ &= ~0x00040000; + throwGift.clear(); + return this; + } + + /** + * optional .ActivityThrowGift ThrowGift = 19; + * + * This 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 #getMutableThrowGift()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.ActivityThrowGift getThrowGift() { + return throwGift; + } + + /** + * optional .ActivityThrowGift ThrowGift = 19; + * + * 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 Public.ActivityThrowGift getMutableThrowGift() { + bitField0_ |= 0x00040000; + return throwGift; + } + + /** + * optional .ActivityThrowGift ThrowGift = 19; + * @param value the throwGift to set + * @return this + */ + public ActivityMsg setThrowGift(final Public.ActivityThrowGift value) { + bitField0_ |= 0x00040000; + throwGift.copyFrom(value); + return this; + } + /** * optional bytes NextPackage = 2047; * @return whether the nextPackage field is set */ public boolean hasNextPackage() { - return (bitField0_ & 0x00010000) != 0; + return (bitField0_ & 0x00080000) != 0; } /** @@ -1020,7 +1206,7 @@ public final class ActivityDetail { * @return this */ public ActivityMsg clearNextPackage() { - bitField0_ &= ~0x00010000; + bitField0_ &= ~0x00080000; nextPackage.clear(); return this; } @@ -1049,7 +1235,7 @@ public final class ActivityDetail { * @return internal storage object for modifications */ public RepeatedByte getMutableNextPackage() { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00080000; return nextPackage; } @@ -1059,7 +1245,7 @@ public final class ActivityDetail { * @return this */ public ActivityMsg addNextPackage(final byte value) { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00080000; nextPackage.add(value); return this; } @@ -1070,7 +1256,7 @@ public final class ActivityDetail { * @return this */ public ActivityMsg addAllNextPackage(final byte... values) { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00080000; nextPackage.addAll(values); return this; } @@ -1081,7 +1267,7 @@ public final class ActivityDetail { * @return this */ public ActivityMsg setNextPackage(final byte... values) { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00080000; nextPackage.copyFrom(values); return this; } @@ -1107,6 +1293,9 @@ public final class ActivityDetail { bdConvert.copyFrom(other.bdConvert); trekkerVersus.copyFrom(other.trekkerVersus); storyChapter.copyFrom(other.storyChapter); + milkout.copyFrom(other.milkout); + penguinCard.copyFrom(other.penguinCard); + throwGift.copyFrom(other.throwGift); nextPackage.copyFrom(other.nextPackage); } return this; @@ -1166,6 +1355,15 @@ public final class ActivityDetail { if (other.hasStoryChapter()) { getMutableStoryChapter().mergeFrom(other.storyChapter); } + if (other.hasMilkout()) { + getMutableMilkout().mergeFrom(other.milkout); + } + if (other.hasPenguinCard()) { + getMutablePenguinCard().mergeFrom(other.penguinCard); + } + if (other.hasThrowGift()) { + getMutableThrowGift().mergeFrom(other.throwGift); + } if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); } @@ -1195,6 +1393,9 @@ public final class ActivityDetail { bdConvert.clear(); trekkerVersus.clear(); storyChapter.clear(); + milkout.clear(); + penguinCard.clear(); + throwGift.clear(); nextPackage.clear(); return this; } @@ -1221,6 +1422,9 @@ public final class ActivityDetail { bdConvert.clearQuick(); trekkerVersus.clearQuick(); storyChapter.clearQuick(); + milkout.clearQuick(); + penguinCard.clearQuick(); + throwGift.clearQuick(); nextPackage.clear(); return this; } @@ -1251,6 +1455,9 @@ public final class ActivityDetail { && (!hasBdConvert() || bdConvert.equals(other.bdConvert)) && (!hasTrekkerVersus() || trekkerVersus.equals(other.trekkerVersus)) && (!hasStoryChapter() || storyChapter.equals(other.storyChapter)) + && (!hasMilkout() || milkout.equals(other.milkout)) + && (!hasPenguinCard() || penguinCard.equals(other.penguinCard)) + && (!hasThrowGift() || throwGift.equals(other.throwGift)) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); } @@ -1321,6 +1528,18 @@ public final class ActivityDetail { output.writeMessageNoTag(storyChapter); } if ((bitField0_ & 0x00010000) != 0) { + output.writeRawLittleEndian16((short) 394); + output.writeMessageNoTag(milkout); + } + if ((bitField0_ & 0x00020000) != 0) { + output.writeRawLittleEndian16((short) 402); + output.writeMessageNoTag(penguinCard); + } + if ((bitField0_ & 0x00040000) != 0) { + output.writeRawLittleEndian16((short) 410); + output.writeMessageNoTag(throwGift); + } + if ((bitField0_ & 0x00080000) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); } @@ -1378,6 +1597,15 @@ public final class ActivityDetail { size += 2 + ProtoSink.computeMessageSizeNoTag(storyChapter); } if ((bitField0_ & 0x00010000) != 0) { + size += 2 + ProtoSink.computeMessageSizeNoTag(milkout); + } + if ((bitField0_ & 0x00020000) != 0) { + size += 2 + ProtoSink.computeMessageSizeNoTag(penguinCard); + } + if ((bitField0_ & 0x00040000) != 0) { + size += 2 + ProtoSink.computeMessageSizeNoTag(throwGift); + } + if ((bitField0_ & 0x00080000) != 0) { size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); } return size; @@ -1530,6 +1758,33 @@ public final class ActivityDetail { input.readMessage(storyChapter); bitField0_ |= 0x00008000; tag = input.readTag(); + if (tag != 138) { + break; + } + } + case 138: { + // milkout + input.readMessage(milkout); + bitField0_ |= 0x00010000; + tag = input.readTag(); + if (tag != 146) { + break; + } + } + case 146: { + // penguinCard + input.readMessage(penguinCard); + bitField0_ |= 0x00020000; + tag = input.readTag(); + if (tag != 154) { + break; + } + } + case 154: { + // throwGift + input.readMessage(throwGift); + bitField0_ |= 0x00040000; + tag = input.readTag(); if (tag != 16378) { break; } @@ -1537,7 +1792,7 @@ public final class ActivityDetail { case 16378: { // nextPackage input.readBytes(nextPackage); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00080000; tag = input.readTag(); if (tag != 0) { break; @@ -1609,6 +1864,15 @@ public final class ActivityDetail { output.writeMessage(FieldNames.storyChapter, storyChapter); } if ((bitField0_ & 0x00010000) != 0) { + output.writeMessage(FieldNames.milkout, milkout); + } + if ((bitField0_ & 0x00020000) != 0) { + output.writeMessage(FieldNames.penguinCard, penguinCard); + } + if ((bitField0_ & 0x00040000) != 0) { + output.writeMessage(FieldNames.throwGift, throwGift); + } + if ((bitField0_ & 0x00080000) != 0) { output.writeBytes(FieldNames.nextPackage, nextPackage); } output.endObject(); @@ -1797,11 +2061,44 @@ public final class ActivityDetail { } break; } + case -1567561421: { + if (input.isAtField(FieldNames.milkout)) { + if (!input.trySkipNullValue()) { + input.readMessage(milkout); + bitField0_ |= 0x00010000; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1342583868: { + if (input.isAtField(FieldNames.penguinCard)) { + if (!input.trySkipNullValue()) { + input.readMessage(penguinCard); + bitField0_ |= 0x00020000; + } + } else { + input.skipUnknownField(); + } + break; + } + case 747487510: { + if (input.isAtField(FieldNames.throwGift)) { + if (!input.trySkipNullValue()) { + input.readMessage(throwGift); + bitField0_ |= 0x00040000; + } + } else { + input.skipUnknownField(); + } + break; + } case -2082324045: { if (input.isAtField(FieldNames.nextPackage)) { if (!input.trySkipNullValue()) { input.readBytes(nextPackage); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00080000; } } else { input.skipUnknownField(); @@ -1892,6 +2189,12 @@ public final class ActivityDetail { static final FieldName storyChapter = FieldName.forField("StoryChapter"); + static final FieldName milkout = FieldName.forField("Milkout"); + + static final FieldName penguinCard = FieldName.forField("PenguinCard"); + + static final FieldName throwGift = FieldName.forField("ThrowGift"); + static final FieldName nextPackage = FieldName.forField("NextPackage"); } } diff --git a/src/generated/main/emu/nebula/proto/ActivityPenguinCardLevelSettle.java b/src/generated/main/emu/nebula/proto/ActivityPenguinCardLevelSettle.java new file mode 100644 index 0000000..f9f1c1b --- /dev/null +++ b/src/generated/main/emu/nebula/proto/ActivityPenguinCardLevelSettle.java @@ -0,0 +1,545 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.nebula.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.RepeatedByte; + +public final class ActivityPenguinCardLevelSettle { + /** + * Protobuf type {@code ActivityPenguinCardSettleReq} + */ + public static final class ActivityPenguinCardSettleReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 LevelId = 1; + */ + private int levelId; + + /** + * optional uint32 Star = 2; + */ + private int star; + + /** + * optional uint32 Score = 3; + */ + private int score; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private ActivityPenguinCardSettleReq() { + } + + /** + * @return a new empty instance of {@code ActivityPenguinCardSettleReq} + */ + public static ActivityPenguinCardSettleReq newInstance() { + return new ActivityPenguinCardSettleReq(); + } + + /** + * optional uint32 LevelId = 1; + * @return whether the levelId field is set + */ + public boolean hasLevelId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 LevelId = 1; + * @return this + */ + public ActivityPenguinCardSettleReq clearLevelId() { + bitField0_ &= ~0x00000001; + levelId = 0; + return this; + } + + /** + * optional uint32 LevelId = 1; + * @return the levelId + */ + public int getLevelId() { + return levelId; + } + + /** + * optional uint32 LevelId = 1; + * @param value the levelId to set + * @return this + */ + public ActivityPenguinCardSettleReq setLevelId(final int value) { + bitField0_ |= 0x00000001; + levelId = value; + return this; + } + + /** + * optional uint32 Star = 2; + * @return whether the star field is set + */ + public boolean hasStar() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 Star = 2; + * @return this + */ + public ActivityPenguinCardSettleReq clearStar() { + bitField0_ &= ~0x00000002; + star = 0; + return this; + } + + /** + * optional uint32 Star = 2; + * @return the star + */ + public int getStar() { + return star; + } + + /** + * optional uint32 Star = 2; + * @param value the star to set + * @return this + */ + public ActivityPenguinCardSettleReq setStar(final int value) { + bitField0_ |= 0x00000002; + star = value; + return this; + } + + /** + * optional uint32 Score = 3; + * @return whether the score field is set + */ + public boolean hasScore() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 Score = 3; + * @return this + */ + public ActivityPenguinCardSettleReq clearScore() { + bitField0_ &= ~0x00000004; + score = 0; + return this; + } + + /** + * optional uint32 Score = 3; + * @return the score + */ + public int getScore() { + return score; + } + + /** + * optional uint32 Score = 3; + * @param value the score to set + * @return this + */ + public ActivityPenguinCardSettleReq setScore(final int value) { + bitField0_ |= 0x00000004; + score = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public ActivityPenguinCardSettleReq clearNextPackage() { + bitField0_ &= ~0x00000008; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * This 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 #getMutableNextPackage()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedByte getNextPackage() { + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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 RepeatedByte getMutableNextPackage() { + bitField0_ |= 0x00000008; + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public ActivityPenguinCardSettleReq addNextPackage(final byte value) { + bitField0_ |= 0x00000008; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public ActivityPenguinCardSettleReq addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public ActivityPenguinCardSettleReq setNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.copyFrom(values); + return this; + } + + @Override + public ActivityPenguinCardSettleReq copyFrom(final ActivityPenguinCardSettleReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + levelId = other.levelId; + star = other.star; + score = other.score; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public ActivityPenguinCardSettleReq mergeFrom(final ActivityPenguinCardSettleReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasLevelId()) { + setLevelId(other.levelId); + } + if (other.hasStar()) { + setStar(other.star); + } + if (other.hasScore()) { + setScore(other.score); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public ActivityPenguinCardSettleReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + levelId = 0; + star = 0; + score = 0; + nextPackage.clear(); + return this; + } + + @Override + public ActivityPenguinCardSettleReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ActivityPenguinCardSettleReq)) { + return false; + } + ActivityPenguinCardSettleReq other = (ActivityPenguinCardSettleReq) o; + return bitField0_ == other.bitField0_ + && (!hasLevelId() || levelId == other.levelId) + && (!hasStar() || star == other.star) + && (!hasScore() || score == other.score) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(levelId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(star); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(score); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(levelId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(star); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(score); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ActivityPenguinCardSettleReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // levelId + levelId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // star + star = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // score + score = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + 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.levelId, levelId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.star, star); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.score, score); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public ActivityPenguinCardSettleReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1734437791: { + if (input.isAtField(FieldNames.levelId)) { + if (!input.trySkipNullValue()) { + levelId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2587250: { + if (input.isAtField(FieldNames.star)) { + if (!input.trySkipNullValue()) { + star = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 79711858: { + if (input.isAtField(FieldNames.score)) { + if (!input.trySkipNullValue()) { + score = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ActivityPenguinCardSettleReq clone() { + return new ActivityPenguinCardSettleReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ActivityPenguinCardSettleReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ActivityPenguinCardSettleReq(), data).checkInitialized(); + } + + public static ActivityPenguinCardSettleReq parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ActivityPenguinCardSettleReq(), input).checkInitialized(); + } + + public static ActivityPenguinCardSettleReq parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ActivityPenguinCardSettleReq(), input).checkInitialized(); + } + + /** + * @return factory for creating ActivityPenguinCardSettleReq messages + */ + public static MessageFactory getFactory() { + return ActivityPenguinCardSettleReqFactory.INSTANCE; + } + + private enum ActivityPenguinCardSettleReqFactory implements MessageFactory { + INSTANCE; + + @Override + public ActivityPenguinCardSettleReq create() { + return ActivityPenguinCardSettleReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName levelId = FieldName.forField("LevelId"); + + static final FieldName star = FieldName.forField("Star"); + + static final FieldName score = FieldName.forField("Score"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/ActivityPenguinCardQuestRewardReceive.java b/src/generated/main/emu/nebula/proto/ActivityPenguinCardQuestRewardReceive.java new file mode 100644 index 0000000..3e689cc --- /dev/null +++ b/src/generated/main/emu/nebula/proto/ActivityPenguinCardQuestRewardReceive.java @@ -0,0 +1,548 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.nebula.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.RepeatedByte; + +public final class ActivityPenguinCardQuestRewardReceive { + /** + * Protobuf type {@code ActivityPenguinCardQuestReceiveReq} + */ + public static final class ActivityPenguinCardQuestReceiveReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 ActivityId = 1; + */ + private int activityId; + + /** + * optional uint32 QuestId = 2; + */ + private int questId; + + /** + * optional uint32 GroupId = 3; + */ + private int groupId; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private ActivityPenguinCardQuestReceiveReq() { + } + + /** + * @return a new empty instance of {@code ActivityPenguinCardQuestReceiveReq} + */ + public static ActivityPenguinCardQuestReceiveReq newInstance() { + return new ActivityPenguinCardQuestReceiveReq(); + } + + /** + * optional uint32 ActivityId = 1; + * @return whether the activityId field is set + */ + public boolean hasActivityId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 ActivityId = 1; + * @return this + */ + public ActivityPenguinCardQuestReceiveReq clearActivityId() { + bitField0_ &= ~0x00000001; + activityId = 0; + return this; + } + + /** + * optional uint32 ActivityId = 1; + * @return the activityId + */ + public int getActivityId() { + return activityId; + } + + /** + * optional uint32 ActivityId = 1; + * @param value the activityId to set + * @return this + */ + public ActivityPenguinCardQuestReceiveReq setActivityId(final int value) { + bitField0_ |= 0x00000001; + activityId = value; + return this; + } + + /** + * optional uint32 QuestId = 2; + * @return whether the questId field is set + */ + public boolean hasQuestId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 QuestId = 2; + * @return this + */ + public ActivityPenguinCardQuestReceiveReq clearQuestId() { + bitField0_ &= ~0x00000002; + questId = 0; + return this; + } + + /** + * optional uint32 QuestId = 2; + * @return the questId + */ + public int getQuestId() { + return questId; + } + + /** + * optional uint32 QuestId = 2; + * @param value the questId to set + * @return this + */ + public ActivityPenguinCardQuestReceiveReq setQuestId(final int value) { + bitField0_ |= 0x00000002; + questId = value; + return this; + } + + /** + * optional uint32 GroupId = 3; + * @return whether the groupId field is set + */ + public boolean hasGroupId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 GroupId = 3; + * @return this + */ + public ActivityPenguinCardQuestReceiveReq clearGroupId() { + bitField0_ &= ~0x00000004; + groupId = 0; + return this; + } + + /** + * optional uint32 GroupId = 3; + * @return the groupId + */ + public int getGroupId() { + return groupId; + } + + /** + * optional uint32 GroupId = 3; + * @param value the groupId to set + * @return this + */ + public ActivityPenguinCardQuestReceiveReq setGroupId(final int value) { + bitField0_ |= 0x00000004; + groupId = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public ActivityPenguinCardQuestReceiveReq clearNextPackage() { + bitField0_ &= ~0x00000008; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * This 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 #getMutableNextPackage()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedByte getNextPackage() { + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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 RepeatedByte getMutableNextPackage() { + bitField0_ |= 0x00000008; + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public ActivityPenguinCardQuestReceiveReq addNextPackage(final byte value) { + bitField0_ |= 0x00000008; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public ActivityPenguinCardQuestReceiveReq addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public ActivityPenguinCardQuestReceiveReq setNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.copyFrom(values); + return this; + } + + @Override + public ActivityPenguinCardQuestReceiveReq copyFrom( + final ActivityPenguinCardQuestReceiveReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + activityId = other.activityId; + questId = other.questId; + groupId = other.groupId; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public ActivityPenguinCardQuestReceiveReq mergeFrom( + final ActivityPenguinCardQuestReceiveReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasActivityId()) { + setActivityId(other.activityId); + } + if (other.hasQuestId()) { + setQuestId(other.questId); + } + if (other.hasGroupId()) { + setGroupId(other.groupId); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public ActivityPenguinCardQuestReceiveReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + activityId = 0; + questId = 0; + groupId = 0; + nextPackage.clear(); + return this; + } + + @Override + public ActivityPenguinCardQuestReceiveReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ActivityPenguinCardQuestReceiveReq)) { + return false; + } + ActivityPenguinCardQuestReceiveReq other = (ActivityPenguinCardQuestReceiveReq) o; + return bitField0_ == other.bitField0_ + && (!hasActivityId() || activityId == other.activityId) + && (!hasQuestId() || questId == other.questId) + && (!hasGroupId() || groupId == other.groupId) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(activityId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(questId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(groupId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(activityId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(questId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ActivityPenguinCardQuestReceiveReq mergeFrom(final ProtoSource input) throws + IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // activityId + activityId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // questId + questId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // groupId + groupId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + 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.activityId, activityId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.questId, questId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.groupId, groupId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public ActivityPenguinCardQuestReceiveReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -252882774: { + if (input.isAtField(FieldNames.activityId)) { + if (!input.trySkipNullValue()) { + activityId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1975187075: { + if (input.isAtField(FieldNames.questId)) { + if (!input.trySkipNullValue()) { + questId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1958081498: { + if (input.isAtField(FieldNames.groupId)) { + if (!input.trySkipNullValue()) { + groupId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ActivityPenguinCardQuestReceiveReq clone() { + return new ActivityPenguinCardQuestReceiveReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ActivityPenguinCardQuestReceiveReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ActivityPenguinCardQuestReceiveReq(), data).checkInitialized(); + } + + public static ActivityPenguinCardQuestReceiveReq parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ActivityPenguinCardQuestReceiveReq(), input).checkInitialized(); + } + + public static ActivityPenguinCardQuestReceiveReq parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ActivityPenguinCardQuestReceiveReq(), input).checkInitialized(); + } + + /** + * @return factory for creating ActivityPenguinCardQuestReceiveReq messages + */ + public static MessageFactory getFactory() { + return ActivityPenguinCardQuestReceiveReqFactory.INSTANCE; + } + + private enum ActivityPenguinCardQuestReceiveReqFactory implements MessageFactory { + INSTANCE; + + @Override + public ActivityPenguinCardQuestReceiveReq create() { + return ActivityPenguinCardQuestReceiveReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName activityId = FieldName.forField("ActivityId"); + + static final FieldName questId = FieldName.forField("QuestId"); + + static final FieldName groupId = FieldName.forField("GroupId"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/ActivityThrowGiftSettle.java b/src/generated/main/emu/nebula/proto/ActivityThrowGiftSettle.java new file mode 100644 index 0000000..0d5926d --- /dev/null +++ b/src/generated/main/emu/nebula/proto/ActivityThrowGiftSettle.java @@ -0,0 +1,1345 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.nebula.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.RepeatedByte; +import us.hebi.quickbuf.RepeatedMessage; + +public final class ActivityThrowGiftSettle { + /** + * Protobuf type {@code ActivityThrowGiftSettleReq} + */ + public static final class ActivityThrowGiftSettleReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 ActivityId = 1; + */ + private int activityId; + + /** + * optional uint32 LevelId = 2; + */ + private int levelId; + + /** + * optional uint32 ThrowGiftCount = 3; + */ + private int throwGiftCount; + + /** + * optional uint32 HitGiftCount = 4; + */ + private int hitGiftCount; + + /** + * optional uint32 Score = 5; + */ + private int score; + + /** + * optional bool Win = 7; + */ + private boolean win; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .ActivityThrowGiftUsedItem UseItems = 6; + */ + private final RepeatedMessage useItems = RepeatedMessage.newEmptyInstance(ActivityThrowGiftUsedItem.getFactory()); + + private ActivityThrowGiftSettleReq() { + } + + /** + * @return a new empty instance of {@code ActivityThrowGiftSettleReq} + */ + public static ActivityThrowGiftSettleReq newInstance() { + return new ActivityThrowGiftSettleReq(); + } + + /** + * optional uint32 ActivityId = 1; + * @return whether the activityId field is set + */ + public boolean hasActivityId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 ActivityId = 1; + * @return this + */ + public ActivityThrowGiftSettleReq clearActivityId() { + bitField0_ &= ~0x00000001; + activityId = 0; + return this; + } + + /** + * optional uint32 ActivityId = 1; + * @return the activityId + */ + public int getActivityId() { + return activityId; + } + + /** + * optional uint32 ActivityId = 1; + * @param value the activityId to set + * @return this + */ + public ActivityThrowGiftSettleReq setActivityId(final int value) { + bitField0_ |= 0x00000001; + activityId = value; + return this; + } + + /** + * optional uint32 LevelId = 2; + * @return whether the levelId field is set + */ + public boolean hasLevelId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 LevelId = 2; + * @return this + */ + public ActivityThrowGiftSettleReq clearLevelId() { + bitField0_ &= ~0x00000002; + levelId = 0; + return this; + } + + /** + * optional uint32 LevelId = 2; + * @return the levelId + */ + public int getLevelId() { + return levelId; + } + + /** + * optional uint32 LevelId = 2; + * @param value the levelId to set + * @return this + */ + public ActivityThrowGiftSettleReq setLevelId(final int value) { + bitField0_ |= 0x00000002; + levelId = value; + return this; + } + + /** + * optional uint32 ThrowGiftCount = 3; + * @return whether the throwGiftCount field is set + */ + public boolean hasThrowGiftCount() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 ThrowGiftCount = 3; + * @return this + */ + public ActivityThrowGiftSettleReq clearThrowGiftCount() { + bitField0_ &= ~0x00000004; + throwGiftCount = 0; + return this; + } + + /** + * optional uint32 ThrowGiftCount = 3; + * @return the throwGiftCount + */ + public int getThrowGiftCount() { + return throwGiftCount; + } + + /** + * optional uint32 ThrowGiftCount = 3; + * @param value the throwGiftCount to set + * @return this + */ + public ActivityThrowGiftSettleReq setThrowGiftCount(final int value) { + bitField0_ |= 0x00000004; + throwGiftCount = value; + return this; + } + + /** + * optional uint32 HitGiftCount = 4; + * @return whether the hitGiftCount field is set + */ + public boolean hasHitGiftCount() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 HitGiftCount = 4; + * @return this + */ + public ActivityThrowGiftSettleReq clearHitGiftCount() { + bitField0_ &= ~0x00000008; + hitGiftCount = 0; + return this; + } + + /** + * optional uint32 HitGiftCount = 4; + * @return the hitGiftCount + */ + public int getHitGiftCount() { + return hitGiftCount; + } + + /** + * optional uint32 HitGiftCount = 4; + * @param value the hitGiftCount to set + * @return this + */ + public ActivityThrowGiftSettleReq setHitGiftCount(final int value) { + bitField0_ |= 0x00000008; + hitGiftCount = value; + return this; + } + + /** + * optional uint32 Score = 5; + * @return whether the score field is set + */ + public boolean hasScore() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 Score = 5; + * @return this + */ + public ActivityThrowGiftSettleReq clearScore() { + bitField0_ &= ~0x00000010; + score = 0; + return this; + } + + /** + * optional uint32 Score = 5; + * @return the score + */ + public int getScore() { + return score; + } + + /** + * optional uint32 Score = 5; + * @param value the score to set + * @return this + */ + public ActivityThrowGiftSettleReq setScore(final int value) { + bitField0_ |= 0x00000010; + score = value; + return this; + } + + /** + * optional bool Win = 7; + * @return whether the win field is set + */ + public boolean hasWin() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional bool Win = 7; + * @return this + */ + public ActivityThrowGiftSettleReq clearWin() { + bitField0_ &= ~0x00000020; + win = false; + return this; + } + + /** + * optional bool Win = 7; + * @return the win + */ + public boolean getWin() { + return win; + } + + /** + * optional bool Win = 7; + * @param value the win to set + * @return this + */ + public ActivityThrowGiftSettleReq setWin(final boolean value) { + bitField0_ |= 0x00000020; + win = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public ActivityThrowGiftSettleReq clearNextPackage() { + bitField0_ &= ~0x00000040; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * This 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 #getMutableNextPackage()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedByte getNextPackage() { + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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 RepeatedByte getMutableNextPackage() { + bitField0_ |= 0x00000040; + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public ActivityThrowGiftSettleReq addNextPackage(final byte value) { + bitField0_ |= 0x00000040; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public ActivityThrowGiftSettleReq addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000040; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public ActivityThrowGiftSettleReq setNextPackage(final byte... values) { + bitField0_ |= 0x00000040; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .ActivityThrowGiftUsedItem UseItems = 6; + * @return whether the useItems field is set + */ + public boolean hasUseItems() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * repeated .ActivityThrowGiftUsedItem UseItems = 6; + * @return this + */ + public ActivityThrowGiftSettleReq clearUseItems() { + bitField0_ &= ~0x00000080; + useItems.clear(); + return this; + } + + /** + * repeated .ActivityThrowGiftUsedItem UseItems = 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 #getMutableUseItems()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getUseItems() { + return useItems; + } + + /** + * repeated .ActivityThrowGiftUsedItem UseItems = 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 getMutableUseItems() { + bitField0_ |= 0x00000080; + return useItems; + } + + /** + * repeated .ActivityThrowGiftUsedItem UseItems = 6; + * @param value the useItems to add + * @return this + */ + public ActivityThrowGiftSettleReq addUseItems(final ActivityThrowGiftUsedItem value) { + bitField0_ |= 0x00000080; + useItems.add(value); + return this; + } + + /** + * repeated .ActivityThrowGiftUsedItem UseItems = 6; + * @param values the useItems to add + * @return this + */ + public ActivityThrowGiftSettleReq addAllUseItems(final ActivityThrowGiftUsedItem... values) { + bitField0_ |= 0x00000080; + useItems.addAll(values); + return this; + } + + @Override + public ActivityThrowGiftSettleReq copyFrom(final ActivityThrowGiftSettleReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + activityId = other.activityId; + levelId = other.levelId; + throwGiftCount = other.throwGiftCount; + hitGiftCount = other.hitGiftCount; + score = other.score; + win = other.win; + nextPackage.copyFrom(other.nextPackage); + useItems.copyFrom(other.useItems); + } + return this; + } + + @Override + public ActivityThrowGiftSettleReq mergeFrom(final ActivityThrowGiftSettleReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasActivityId()) { + setActivityId(other.activityId); + } + if (other.hasLevelId()) { + setLevelId(other.levelId); + } + if (other.hasThrowGiftCount()) { + setThrowGiftCount(other.throwGiftCount); + } + if (other.hasHitGiftCount()) { + setHitGiftCount(other.hitGiftCount); + } + if (other.hasScore()) { + setScore(other.score); + } + if (other.hasWin()) { + setWin(other.win); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasUseItems()) { + getMutableUseItems().addAll(other.useItems); + } + return this; + } + + @Override + public ActivityThrowGiftSettleReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + activityId = 0; + levelId = 0; + throwGiftCount = 0; + hitGiftCount = 0; + score = 0; + win = false; + nextPackage.clear(); + useItems.clear(); + return this; + } + + @Override + public ActivityThrowGiftSettleReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + useItems.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ActivityThrowGiftSettleReq)) { + return false; + } + ActivityThrowGiftSettleReq other = (ActivityThrowGiftSettleReq) o; + return bitField0_ == other.bitField0_ + && (!hasActivityId() || activityId == other.activityId) + && (!hasLevelId() || levelId == other.levelId) + && (!hasThrowGiftCount() || throwGiftCount == other.throwGiftCount) + && (!hasHitGiftCount() || hitGiftCount == other.hitGiftCount) + && (!hasScore() || score == other.score) + && (!hasWin() || win == other.win) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasUseItems() || useItems.equals(other.useItems)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(activityId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(levelId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(throwGiftCount); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(hitGiftCount); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(score); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 56); + output.writeBoolNoTag(win); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000080) != 0) { + for (int i = 0; i < useItems.length(); i++) { + output.writeRawByte((byte) 50); + output.writeMessageNoTag(useItems.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(activityId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(levelId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(throwGiftCount); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(hitGiftCount); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(score); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000040) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000080) != 0) { + size += (1 * useItems.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(useItems); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ActivityThrowGiftSettleReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // activityId + activityId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // levelId + levelId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // throwGiftCount + throwGiftCount = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // hitGiftCount + hitGiftCount = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // score + score = input.readUInt32(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // win + win = input.readBool(); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 50) { + break; + } + } + case 50: { + // useItems + tag = input.readRepeatedMessage(useItems, tag); + bitField0_ |= 0x00000080; + 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.activityId, activityId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.levelId, levelId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.throwGiftCount, throwGiftCount); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.hitGiftCount, hitGiftCount); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.score, score); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeBool(FieldNames.win, win); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRepeatedMessage(FieldNames.useItems, useItems); + } + output.endObject(); + } + + @Override + public ActivityThrowGiftSettleReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -252882774: { + if (input.isAtField(FieldNames.activityId)) { + if (!input.trySkipNullValue()) { + activityId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1734437791: { + if (input.isAtField(FieldNames.levelId)) { + if (!input.trySkipNullValue()) { + levelId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 609344921: { + if (input.isAtField(FieldNames.throwGiftCount)) { + if (!input.trySkipNullValue()) { + throwGiftCount = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2064422004: { + if (input.isAtField(FieldNames.hitGiftCount)) { + if (!input.trySkipNullValue()) { + hitGiftCount = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 79711858: { + if (input.isAtField(FieldNames.score)) { + if (!input.trySkipNullValue()) { + score = input.readUInt32(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case 86972: { + if (input.isAtField(FieldNames.win)) { + if (!input.trySkipNullValue()) { + win = input.readBool(); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + case -238751079: { + if (input.isAtField(FieldNames.useItems)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(useItems); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ActivityThrowGiftSettleReq clone() { + return new ActivityThrowGiftSettleReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ActivityThrowGiftSettleReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ActivityThrowGiftSettleReq(), data).checkInitialized(); + } + + public static ActivityThrowGiftSettleReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ActivityThrowGiftSettleReq(), input).checkInitialized(); + } + + public static ActivityThrowGiftSettleReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ActivityThrowGiftSettleReq(), input).checkInitialized(); + } + + /** + * @return factory for creating ActivityThrowGiftSettleReq messages + */ + public static MessageFactory getFactory() { + return ActivityThrowGiftSettleReqFactory.INSTANCE; + } + + private enum ActivityThrowGiftSettleReqFactory implements MessageFactory { + INSTANCE; + + @Override + public ActivityThrowGiftSettleReq create() { + return ActivityThrowGiftSettleReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName activityId = FieldName.forField("ActivityId"); + + static final FieldName levelId = FieldName.forField("LevelId"); + + static final FieldName throwGiftCount = FieldName.forField("ThrowGiftCount"); + + static final FieldName hitGiftCount = FieldName.forField("HitGiftCount"); + + static final FieldName score = FieldName.forField("Score"); + + static final FieldName win = FieldName.forField("Win"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName useItems = FieldName.forField("UseItems"); + } + } + + /** + * Protobuf type {@code ActivityThrowGiftUsedItem} + */ + public static final class ActivityThrowGiftUsedItem extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 ItemId = 1; + */ + private int itemId; + + /** + * optional uint32 Count = 2; + */ + private int count; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private ActivityThrowGiftUsedItem() { + } + + /** + * @return a new empty instance of {@code ActivityThrowGiftUsedItem} + */ + public static ActivityThrowGiftUsedItem newInstance() { + return new ActivityThrowGiftUsedItem(); + } + + /** + * optional uint32 ItemId = 1; + * @return whether the itemId field is set + */ + public boolean hasItemId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 ItemId = 1; + * @return this + */ + public ActivityThrowGiftUsedItem clearItemId() { + bitField0_ &= ~0x00000001; + itemId = 0; + return this; + } + + /** + * optional uint32 ItemId = 1; + * @return the itemId + */ + public int getItemId() { + return itemId; + } + + /** + * optional uint32 ItemId = 1; + * @param value the itemId to set + * @return this + */ + public ActivityThrowGiftUsedItem setItemId(final int value) { + bitField0_ |= 0x00000001; + itemId = value; + return this; + } + + /** + * optional uint32 Count = 2; + * @return whether the count field is set + */ + public boolean hasCount() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 Count = 2; + * @return this + */ + public ActivityThrowGiftUsedItem clearCount() { + bitField0_ &= ~0x00000002; + count = 0; + return this; + } + + /** + * optional uint32 Count = 2; + * @return the count + */ + public int getCount() { + return count; + } + + /** + * optional uint32 Count = 2; + * @param value the count to set + * @return this + */ + public ActivityThrowGiftUsedItem setCount(final int value) { + bitField0_ |= 0x00000002; + count = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public ActivityThrowGiftUsedItem clearNextPackage() { + bitField0_ &= ~0x00000004; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * This 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 #getMutableNextPackage()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedByte getNextPackage() { + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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 RepeatedByte getMutableNextPackage() { + bitField0_ |= 0x00000004; + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public ActivityThrowGiftUsedItem addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public ActivityThrowGiftUsedItem addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public ActivityThrowGiftUsedItem setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + @Override + public ActivityThrowGiftUsedItem copyFrom(final ActivityThrowGiftUsedItem other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + itemId = other.itemId; + count = other.count; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public ActivityThrowGiftUsedItem mergeFrom(final ActivityThrowGiftUsedItem other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasItemId()) { + setItemId(other.itemId); + } + if (other.hasCount()) { + setCount(other.count); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public ActivityThrowGiftUsedItem clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + itemId = 0; + count = 0; + nextPackage.clear(); + return this; + } + + @Override + public ActivityThrowGiftUsedItem clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ActivityThrowGiftUsedItem)) { + return false; + } + ActivityThrowGiftUsedItem other = (ActivityThrowGiftUsedItem) o; + return bitField0_ == other.bitField0_ + && (!hasItemId() || itemId == other.itemId) + && (!hasCount() || count == other.count) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(itemId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(count); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(itemId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(count); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ActivityThrowGiftUsedItem mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // itemId + itemId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // count + count = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + 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.itemId, itemId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.count, count); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public ActivityThrowGiftUsedItem mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -2094794834: { + if (input.isAtField(FieldNames.itemId)) { + if (!input.trySkipNullValue()) { + itemId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 65298671: { + if (input.isAtField(FieldNames.count)) { + if (!input.trySkipNullValue()) { + count = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ActivityThrowGiftUsedItem clone() { + return new ActivityThrowGiftUsedItem().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ActivityThrowGiftUsedItem parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ActivityThrowGiftUsedItem(), data).checkInitialized(); + } + + public static ActivityThrowGiftUsedItem parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ActivityThrowGiftUsedItem(), input).checkInitialized(); + } + + public static ActivityThrowGiftUsedItem parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ActivityThrowGiftUsedItem(), input).checkInitialized(); + } + + /** + * @return factory for creating ActivityThrowGiftUsedItem messages + */ + public static MessageFactory getFactory() { + return ActivityThrowGiftUsedItemFactory.INSTANCE; + } + + private enum ActivityThrowGiftUsedItemFactory implements MessageFactory { + INSTANCE; + + @Override + public ActivityThrowGiftUsedItem create() { + return ActivityThrowGiftUsedItem.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName itemId = FieldName.forField("ItemId"); + + static final FieldName count = FieldName.forField("Count"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/DailyMallRewardReceive.java b/src/generated/main/emu/nebula/proto/DailyMallRewardReceive.java new file mode 100644 index 0000000..9532d88 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/DailyMallRewardReceive.java @@ -0,0 +1,5 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.nebula.proto; + +public final class DailyMallRewardReceive { +} diff --git a/src/generated/main/emu/nebula/proto/EnergyInfo.java b/src/generated/main/emu/nebula/proto/EnergyInfo.java new file mode 100644 index 0000000..5267d0d --- /dev/null +++ b/src/generated/main/emu/nebula/proto/EnergyInfo.java @@ -0,0 +1,5 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.nebula.proto; + +public final class EnergyInfo { +} diff --git a/src/generated/main/emu/nebula/proto/JointDrill2Apply.java b/src/generated/main/emu/nebula/proto/JointDrill2Apply.java new file mode 100644 index 0000000..b0dcf37 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/JointDrill2Apply.java @@ -0,0 +1,1240 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.nebula.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.RepeatedByte; +import us.hebi.quickbuf.RepeatedMessage; + +public final class JointDrill2Apply { + /** + * Protobuf type {@code JointDrill2ApplyReq} + */ + public static final class JointDrill2ApplyReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint64 BuildId = 2; + */ + private long buildId; + + /** + * optional uint32 LevelId = 1; + */ + private int levelId; + + /** + * optional bool Simulate = 5; + */ + private boolean simulate; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .JointDrillBossHp BossHps = 3; + */ + private final RepeatedMessage bossHps = RepeatedMessage.newEmptyInstance(PublicJointDrill.JointDrillBossHp.getFactory()); + + /** + * repeated .JointDrillBossHp BossHpMaxes = 4; + */ + private final RepeatedMessage bossHpMaxes = RepeatedMessage.newEmptyInstance(PublicJointDrill.JointDrillBossHp.getFactory()); + + private JointDrill2ApplyReq() { + } + + /** + * @return a new empty instance of {@code JointDrill2ApplyReq} + */ + public static JointDrill2ApplyReq newInstance() { + return new JointDrill2ApplyReq(); + } + + /** + * optional uint64 BuildId = 2; + * @return whether the buildId field is set + */ + public boolean hasBuildId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint64 BuildId = 2; + * @return this + */ + public JointDrill2ApplyReq clearBuildId() { + bitField0_ &= ~0x00000001; + buildId = 0L; + return this; + } + + /** + * optional uint64 BuildId = 2; + * @return the buildId + */ + public long getBuildId() { + return buildId; + } + + /** + * optional uint64 BuildId = 2; + * @param value the buildId to set + * @return this + */ + public JointDrill2ApplyReq setBuildId(final long value) { + bitField0_ |= 0x00000001; + buildId = value; + return this; + } + + /** + * optional uint32 LevelId = 1; + * @return whether the levelId field is set + */ + public boolean hasLevelId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 LevelId = 1; + * @return this + */ + public JointDrill2ApplyReq clearLevelId() { + bitField0_ &= ~0x00000002; + levelId = 0; + return this; + } + + /** + * optional uint32 LevelId = 1; + * @return the levelId + */ + public int getLevelId() { + return levelId; + } + + /** + * optional uint32 LevelId = 1; + * @param value the levelId to set + * @return this + */ + public JointDrill2ApplyReq setLevelId(final int value) { + bitField0_ |= 0x00000002; + levelId = value; + return this; + } + + /** + * optional bool Simulate = 5; + * @return whether the simulate field is set + */ + public boolean hasSimulate() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bool Simulate = 5; + * @return this + */ + public JointDrill2ApplyReq clearSimulate() { + bitField0_ &= ~0x00000004; + simulate = false; + return this; + } + + /** + * optional bool Simulate = 5; + * @return the simulate + */ + public boolean getSimulate() { + return simulate; + } + + /** + * optional bool Simulate = 5; + * @param value the simulate to set + * @return this + */ + public JointDrill2ApplyReq setSimulate(final boolean value) { + bitField0_ |= 0x00000004; + simulate = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public JointDrill2ApplyReq clearNextPackage() { + bitField0_ &= ~0x00000008; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * This 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 #getMutableNextPackage()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedByte getNextPackage() { + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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 RepeatedByte getMutableNextPackage() { + bitField0_ |= 0x00000008; + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public JointDrill2ApplyReq addNextPackage(final byte value) { + bitField0_ |= 0x00000008; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public JointDrill2ApplyReq addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public JointDrill2ApplyReq setNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .JointDrillBossHp BossHps = 3; + * @return whether the bossHps field is set + */ + public boolean hasBossHps() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * repeated .JointDrillBossHp BossHps = 3; + * @return this + */ + public JointDrill2ApplyReq clearBossHps() { + bitField0_ &= ~0x00000010; + bossHps.clear(); + return this; + } + + /** + * repeated .JointDrillBossHp BossHps = 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 #getMutableBossHps()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getBossHps() { + return bossHps; + } + + /** + * repeated .JointDrillBossHp BossHps = 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 getMutableBossHps() { + bitField0_ |= 0x00000010; + return bossHps; + } + + /** + * repeated .JointDrillBossHp BossHps = 3; + * @param value the bossHps to add + * @return this + */ + public JointDrill2ApplyReq addBossHps(final PublicJointDrill.JointDrillBossHp value) { + bitField0_ |= 0x00000010; + bossHps.add(value); + return this; + } + + /** + * repeated .JointDrillBossHp BossHps = 3; + * @param values the bossHps to add + * @return this + */ + public JointDrill2ApplyReq addAllBossHps(final PublicJointDrill.JointDrillBossHp... values) { + bitField0_ |= 0x00000010; + bossHps.addAll(values); + return this; + } + + /** + * repeated .JointDrillBossHp BossHpMaxes = 4; + * @return whether the bossHpMaxes field is set + */ + public boolean hasBossHpMaxes() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * repeated .JointDrillBossHp BossHpMaxes = 4; + * @return this + */ + public JointDrill2ApplyReq clearBossHpMaxes() { + bitField0_ &= ~0x00000020; + bossHpMaxes.clear(); + return this; + } + + /** + * repeated .JointDrillBossHp BossHpMaxes = 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 #getMutableBossHpMaxes()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getBossHpMaxes() { + return bossHpMaxes; + } + + /** + * repeated .JointDrillBossHp BossHpMaxes = 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 getMutableBossHpMaxes() { + bitField0_ |= 0x00000020; + return bossHpMaxes; + } + + /** + * repeated .JointDrillBossHp BossHpMaxes = 4; + * @param value the bossHpMaxes to add + * @return this + */ + public JointDrill2ApplyReq addBossHpMaxes(final PublicJointDrill.JointDrillBossHp value) { + bitField0_ |= 0x00000020; + bossHpMaxes.add(value); + return this; + } + + /** + * repeated .JointDrillBossHp BossHpMaxes = 4; + * @param values the bossHpMaxes to add + * @return this + */ + public JointDrill2ApplyReq addAllBossHpMaxes( + final PublicJointDrill.JointDrillBossHp... values) { + bitField0_ |= 0x00000020; + bossHpMaxes.addAll(values); + return this; + } + + @Override + public JointDrill2ApplyReq copyFrom(final JointDrill2ApplyReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + buildId = other.buildId; + levelId = other.levelId; + simulate = other.simulate; + nextPackage.copyFrom(other.nextPackage); + bossHps.copyFrom(other.bossHps); + bossHpMaxes.copyFrom(other.bossHpMaxes); + } + return this; + } + + @Override + public JointDrill2ApplyReq mergeFrom(final JointDrill2ApplyReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasBuildId()) { + setBuildId(other.buildId); + } + if (other.hasLevelId()) { + setLevelId(other.levelId); + } + if (other.hasSimulate()) { + setSimulate(other.simulate); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasBossHps()) { + getMutableBossHps().addAll(other.bossHps); + } + if (other.hasBossHpMaxes()) { + getMutableBossHpMaxes().addAll(other.bossHpMaxes); + } + return this; + } + + @Override + public JointDrill2ApplyReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + buildId = 0L; + levelId = 0; + simulate = false; + nextPackage.clear(); + bossHps.clear(); + bossHpMaxes.clear(); + return this; + } + + @Override + public JointDrill2ApplyReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + bossHps.clearQuick(); + bossHpMaxes.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof JointDrill2ApplyReq)) { + return false; + } + JointDrill2ApplyReq other = (JointDrill2ApplyReq) o; + return bitField0_ == other.bitField0_ + && (!hasBuildId() || buildId == other.buildId) + && (!hasLevelId() || levelId == other.levelId) + && (!hasSimulate() || simulate == other.simulate) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasBossHps() || bossHps.equals(other.bossHps)) + && (!hasBossHpMaxes() || bossHpMaxes.equals(other.bossHpMaxes)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt64NoTag(buildId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(levelId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 40); + output.writeBoolNoTag(simulate); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000010) != 0) { + for (int i = 0; i < bossHps.length(); i++) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(bossHps.get(i)); + } + } + if ((bitField0_ & 0x00000020) != 0) { + for (int i = 0; i < bossHpMaxes.length(); i++) { + output.writeRawByte((byte) 34); + output.writeMessageNoTag(bossHpMaxes.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt64SizeNoTag(buildId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(levelId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000010) != 0) { + size += (1 * bossHps.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(bossHps); + } + if ((bitField0_ & 0x00000020) != 0) { + size += (1 * bossHpMaxes.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(bossHpMaxes); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public JointDrill2ApplyReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // buildId + buildId = input.readUInt64(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 8) { + break; + } + } + case 8: { + // levelId + levelId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // simulate + simulate = input.readBool(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // bossHps + tag = input.readRepeatedMessage(bossHps, tag); + bitField0_ |= 0x00000010; + if (tag != 34) { + break; + } + } + case 34: { + // bossHpMaxes + tag = input.readRepeatedMessage(bossHpMaxes, tag); + bitField0_ |= 0x00000020; + 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.writeUInt64(FieldNames.buildId, buildId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.levelId, levelId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBool(FieldNames.simulate, simulate); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRepeatedMessage(FieldNames.bossHps, bossHps); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRepeatedMessage(FieldNames.bossHpMaxes, bossHpMaxes); + } + output.endObject(); + } + + @Override + public JointDrill2ApplyReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1895597065: { + if (input.isAtField(FieldNames.buildId)) { + if (!input.trySkipNullValue()) { + buildId = input.readUInt64(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1734437791: { + if (input.isAtField(FieldNames.levelId)) { + if (!input.trySkipNullValue()) { + levelId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 554919492: { + if (input.isAtField(FieldNames.simulate)) { + if (!input.trySkipNullValue()) { + simulate = input.readBool(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1733240222: { + if (input.isAtField(FieldNames.bossHps)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(bossHps); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case 939364509: { + if (input.isAtField(FieldNames.bossHpMaxes)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(bossHpMaxes); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public JointDrill2ApplyReq clone() { + return new JointDrill2ApplyReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static JointDrill2ApplyReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new JointDrill2ApplyReq(), data).checkInitialized(); + } + + public static JointDrill2ApplyReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new JointDrill2ApplyReq(), input).checkInitialized(); + } + + public static JointDrill2ApplyReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new JointDrill2ApplyReq(), input).checkInitialized(); + } + + /** + * @return factory for creating JointDrill2ApplyReq messages + */ + public static MessageFactory getFactory() { + return JointDrill2ApplyReqFactory.INSTANCE; + } + + private enum JointDrill2ApplyReqFactory implements MessageFactory { + INSTANCE; + + @Override + public JointDrill2ApplyReq create() { + return JointDrill2ApplyReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName buildId = FieldName.forField("BuildId"); + + static final FieldName levelId = FieldName.forField("LevelId"); + + static final FieldName simulate = FieldName.forField("Simulate"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName bossHps = FieldName.forField("BossHps"); + + static final FieldName bossHpMaxes = FieldName.forField("BossHpMaxes"); + } + } + + /** + * Protobuf type {@code JointDrill2ApplyResp} + */ + public static final class JointDrill2ApplyResp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional int64 StarTime = 2; + */ + private long starTime; + + /** + * optional .ChangeInfo Change = 1; + */ + private final Public.ChangeInfo change = Public.ChangeInfo.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private JointDrill2ApplyResp() { + } + + /** + * @return a new empty instance of {@code JointDrill2ApplyResp} + */ + public static JointDrill2ApplyResp newInstance() { + return new JointDrill2ApplyResp(); + } + + /** + * optional int64 StarTime = 2; + * @return whether the starTime field is set + */ + public boolean hasStarTime() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional int64 StarTime = 2; + * @return this + */ + public JointDrill2ApplyResp clearStarTime() { + bitField0_ &= ~0x00000001; + starTime = 0L; + return this; + } + + /** + * optional int64 StarTime = 2; + * @return the starTime + */ + public long getStarTime() { + return starTime; + } + + /** + * optional int64 StarTime = 2; + * @param value the starTime to set + * @return this + */ + public JointDrill2ApplyResp setStarTime(final long value) { + bitField0_ |= 0x00000001; + starTime = value; + return this; + } + + /** + * optional .ChangeInfo Change = 1; + * @return whether the change field is set + */ + public boolean hasChange() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .ChangeInfo Change = 1; + * @return this + */ + public JointDrill2ApplyResp clearChange() { + bitField0_ &= ~0x00000002; + change.clear(); + return this; + } + + /** + * optional .ChangeInfo Change = 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 #getMutableChange()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.ChangeInfo getChange() { + return change; + } + + /** + * optional .ChangeInfo Change = 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 Public.ChangeInfo getMutableChange() { + bitField0_ |= 0x00000002; + return change; + } + + /** + * optional .ChangeInfo Change = 1; + * @param value the change to set + * @return this + */ + public JointDrill2ApplyResp setChange(final Public.ChangeInfo value) { + bitField0_ |= 0x00000002; + change.copyFrom(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public JointDrill2ApplyResp clearNextPackage() { + bitField0_ &= ~0x00000004; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * This 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 #getMutableNextPackage()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedByte getNextPackage() { + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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 RepeatedByte getMutableNextPackage() { + bitField0_ |= 0x00000004; + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public JointDrill2ApplyResp addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public JointDrill2ApplyResp addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public JointDrill2ApplyResp setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + @Override + public JointDrill2ApplyResp copyFrom(final JointDrill2ApplyResp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + starTime = other.starTime; + change.copyFrom(other.change); + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public JointDrill2ApplyResp mergeFrom(final JointDrill2ApplyResp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasStarTime()) { + setStarTime(other.starTime); + } + if (other.hasChange()) { + getMutableChange().mergeFrom(other.change); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public JointDrill2ApplyResp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + starTime = 0L; + change.clear(); + nextPackage.clear(); + return this; + } + + @Override + public JointDrill2ApplyResp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + change.clearQuick(); + nextPackage.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof JointDrill2ApplyResp)) { + return false; + } + JointDrill2ApplyResp other = (JointDrill2ApplyResp) o; + return bitField0_ == other.bitField0_ + && (!hasStarTime() || starTime == other.starTime) + && (!hasChange() || change.equals(other.change)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeInt64NoTag(starTime); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(change); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeInt64SizeNoTag(starTime); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(change); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public JointDrill2ApplyResp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // starTime + starTime = input.readInt64(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // change + input.readMessage(change); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + 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.writeInt64(FieldNames.starTime, starTime); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.change, change); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public JointDrill2ApplyResp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1380497503: { + if (input.isAtField(FieldNames.starTime)) { + if (!input.trySkipNullValue()) { + starTime = input.readInt64(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2017198032: { + if (input.isAtField(FieldNames.change)) { + if (!input.trySkipNullValue()) { + input.readMessage(change); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public JointDrill2ApplyResp clone() { + return new JointDrill2ApplyResp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static JointDrill2ApplyResp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new JointDrill2ApplyResp(), data).checkInitialized(); + } + + public static JointDrill2ApplyResp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new JointDrill2ApplyResp(), input).checkInitialized(); + } + + public static JointDrill2ApplyResp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new JointDrill2ApplyResp(), input).checkInitialized(); + } + + /** + * @return factory for creating JointDrill2ApplyResp messages + */ + public static MessageFactory getFactory() { + return JointDrill2ApplyRespFactory.INSTANCE; + } + + private enum JointDrill2ApplyRespFactory implements MessageFactory { + INSTANCE; + + @Override + public JointDrill2ApplyResp create() { + return JointDrill2ApplyResp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName starTime = FieldName.forField("StarTime"); + + static final FieldName change = FieldName.forField("Change"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/JointDrill2Continue.java b/src/generated/main/emu/nebula/proto/JointDrill2Continue.java new file mode 100644 index 0000000..8c24425 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/JointDrill2Continue.java @@ -0,0 +1,383 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.nebula.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.RepeatedByte; + +public final class JointDrill2Continue { + /** + * Protobuf type {@code JointDrill2ContinueReq} + */ + public static final class JointDrill2ContinueReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint64 BuildId = 1; + */ + private long buildId; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private JointDrill2ContinueReq() { + } + + /** + * @return a new empty instance of {@code JointDrill2ContinueReq} + */ + public static JointDrill2ContinueReq newInstance() { + return new JointDrill2ContinueReq(); + } + + /** + * optional uint64 BuildId = 1; + * @return whether the buildId field is set + */ + public boolean hasBuildId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint64 BuildId = 1; + * @return this + */ + public JointDrill2ContinueReq clearBuildId() { + bitField0_ &= ~0x00000001; + buildId = 0L; + return this; + } + + /** + * optional uint64 BuildId = 1; + * @return the buildId + */ + public long getBuildId() { + return buildId; + } + + /** + * optional uint64 BuildId = 1; + * @param value the buildId to set + * @return this + */ + public JointDrill2ContinueReq setBuildId(final long value) { + bitField0_ |= 0x00000001; + buildId = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public JointDrill2ContinueReq clearNextPackage() { + bitField0_ &= ~0x00000002; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * This 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 #getMutableNextPackage()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedByte getNextPackage() { + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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 RepeatedByte getMutableNextPackage() { + bitField0_ |= 0x00000002; + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public JointDrill2ContinueReq addNextPackage(final byte value) { + bitField0_ |= 0x00000002; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public JointDrill2ContinueReq addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public JointDrill2ContinueReq setNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.copyFrom(values); + return this; + } + + @Override + public JointDrill2ContinueReq copyFrom(final JointDrill2ContinueReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + buildId = other.buildId; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public JointDrill2ContinueReq mergeFrom(final JointDrill2ContinueReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasBuildId()) { + setBuildId(other.buildId); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public JointDrill2ContinueReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + buildId = 0L; + nextPackage.clear(); + return this; + } + + @Override + public JointDrill2ContinueReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof JointDrill2ContinueReq)) { + return false; + } + JointDrill2ContinueReq other = (JointDrill2ContinueReq) o; + return bitField0_ == other.bitField0_ + && (!hasBuildId() || buildId == other.buildId) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt64NoTag(buildId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt64SizeNoTag(buildId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public JointDrill2ContinueReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // buildId + buildId = input.readUInt64(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + 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.writeUInt64(FieldNames.buildId, buildId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public JointDrill2ContinueReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1895597065: { + if (input.isAtField(FieldNames.buildId)) { + if (!input.trySkipNullValue()) { + buildId = input.readUInt64(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public JointDrill2ContinueReq clone() { + return new JointDrill2ContinueReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static JointDrill2ContinueReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new JointDrill2ContinueReq(), data).checkInitialized(); + } + + public static JointDrill2ContinueReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new JointDrill2ContinueReq(), input).checkInitialized(); + } + + public static JointDrill2ContinueReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new JointDrill2ContinueReq(), input).checkInitialized(); + } + + /** + * @return factory for creating JointDrill2ContinueReq messages + */ + public static MessageFactory getFactory() { + return JointDrill2ContinueReqFactory.INSTANCE; + } + + private enum JointDrill2ContinueReqFactory implements MessageFactory { + INSTANCE; + + @Override + public JointDrill2ContinueReq create() { + return JointDrill2ContinueReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName buildId = FieldName.forField("BuildId"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/JointDrill2GameOver.java b/src/generated/main/emu/nebula/proto/JointDrill2GameOver.java new file mode 100644 index 0000000..7f2fe9f --- /dev/null +++ b/src/generated/main/emu/nebula/proto/JointDrill2GameOver.java @@ -0,0 +1,5 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.nebula.proto; + +public final class JointDrill2GameOver { +} diff --git a/src/generated/main/emu/nebula/proto/JointDrill2GiveUp.java b/src/generated/main/emu/nebula/proto/JointDrill2GiveUp.java new file mode 100644 index 0000000..5976bff --- /dev/null +++ b/src/generated/main/emu/nebula/proto/JointDrill2GiveUp.java @@ -0,0 +1,780 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.nebula.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.RepeatedByte; +import us.hebi.quickbuf.RepeatedMessage; + +public final class JointDrill2GiveUp { + /** + * Protobuf type {@code JointDrill2GiveUpReq} + */ + public static final class JointDrill2GiveUpReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Floor = 1; + */ + private int floor; + + /** + * optional uint32 Time = 2; + */ + private int time; + + /** + * optional uint32 Damage = 3; + */ + private int damage; + + /** + * optional bytes Record = 5; + */ + private final RepeatedByte record = RepeatedByte.newEmptyInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .JointDrillBossHp BossHps = 4; + */ + private final RepeatedMessage bossHps = RepeatedMessage.newEmptyInstance(PublicJointDrill.JointDrillBossHp.getFactory()); + + private JointDrill2GiveUpReq() { + } + + /** + * @return a new empty instance of {@code JointDrill2GiveUpReq} + */ + public static JointDrill2GiveUpReq newInstance() { + return new JointDrill2GiveUpReq(); + } + + /** + * optional uint32 Floor = 1; + * @return whether the floor field is set + */ + public boolean hasFloor() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 Floor = 1; + * @return this + */ + public JointDrill2GiveUpReq clearFloor() { + bitField0_ &= ~0x00000001; + floor = 0; + return this; + } + + /** + * optional uint32 Floor = 1; + * @return the floor + */ + public int getFloor() { + return floor; + } + + /** + * optional uint32 Floor = 1; + * @param value the floor to set + * @return this + */ + public JointDrill2GiveUpReq setFloor(final int value) { + bitField0_ |= 0x00000001; + floor = value; + return this; + } + + /** + * optional uint32 Time = 2; + * @return whether the time field is set + */ + public boolean hasTime() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 Time = 2; + * @return this + */ + public JointDrill2GiveUpReq clearTime() { + bitField0_ &= ~0x00000002; + time = 0; + return this; + } + + /** + * optional uint32 Time = 2; + * @return the time + */ + public int getTime() { + return time; + } + + /** + * optional uint32 Time = 2; + * @param value the time to set + * @return this + */ + public JointDrill2GiveUpReq setTime(final int value) { + bitField0_ |= 0x00000002; + time = value; + return this; + } + + /** + * optional uint32 Damage = 3; + * @return whether the damage field is set + */ + public boolean hasDamage() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 Damage = 3; + * @return this + */ + public JointDrill2GiveUpReq clearDamage() { + bitField0_ &= ~0x00000004; + damage = 0; + return this; + } + + /** + * optional uint32 Damage = 3; + * @return the damage + */ + public int getDamage() { + return damage; + } + + /** + * optional uint32 Damage = 3; + * @param value the damage to set + * @return this + */ + public JointDrill2GiveUpReq setDamage(final int value) { + bitField0_ |= 0x00000004; + damage = value; + return this; + } + + /** + * optional bytes Record = 5; + * @return whether the record field is set + */ + public boolean hasRecord() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional bytes Record = 5; + * @return this + */ + public JointDrill2GiveUpReq clearRecord() { + bitField0_ &= ~0x00000008; + record.clear(); + return this; + } + + /** + * optional bytes Record = 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 #getMutableRecord()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedByte getRecord() { + return record; + } + + /** + * optional bytes Record = 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 RepeatedByte getMutableRecord() { + bitField0_ |= 0x00000008; + return record; + } + + /** + * optional bytes Record = 5; + * @param value the record to add + * @return this + */ + public JointDrill2GiveUpReq addRecord(final byte value) { + bitField0_ |= 0x00000008; + record.add(value); + return this; + } + + /** + * optional bytes Record = 5; + * @param values the record to add + * @return this + */ + public JointDrill2GiveUpReq addAllRecord(final byte... values) { + bitField0_ |= 0x00000008; + record.addAll(values); + return this; + } + + /** + * optional bytes Record = 5; + * @param values the record to set + * @return this + */ + public JointDrill2GiveUpReq setRecord(final byte... values) { + bitField0_ |= 0x00000008; + record.copyFrom(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public JointDrill2GiveUpReq clearNextPackage() { + bitField0_ &= ~0x00000010; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * This 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 #getMutableNextPackage()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedByte getNextPackage() { + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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 RepeatedByte getMutableNextPackage() { + bitField0_ |= 0x00000010; + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public JointDrill2GiveUpReq addNextPackage(final byte value) { + bitField0_ |= 0x00000010; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public JointDrill2GiveUpReq addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000010; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public JointDrill2GiveUpReq setNextPackage(final byte... values) { + bitField0_ |= 0x00000010; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .JointDrillBossHp BossHps = 4; + * @return whether the bossHps field is set + */ + public boolean hasBossHps() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * repeated .JointDrillBossHp BossHps = 4; + * @return this + */ + public JointDrill2GiveUpReq clearBossHps() { + bitField0_ &= ~0x00000020; + bossHps.clear(); + return this; + } + + /** + * repeated .JointDrillBossHp BossHps = 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 #getMutableBossHps()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getBossHps() { + return bossHps; + } + + /** + * repeated .JointDrillBossHp BossHps = 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 getMutableBossHps() { + bitField0_ |= 0x00000020; + return bossHps; + } + + /** + * repeated .JointDrillBossHp BossHps = 4; + * @param value the bossHps to add + * @return this + */ + public JointDrill2GiveUpReq addBossHps(final PublicJointDrill.JointDrillBossHp value) { + bitField0_ |= 0x00000020; + bossHps.add(value); + return this; + } + + /** + * repeated .JointDrillBossHp BossHps = 4; + * @param values the bossHps to add + * @return this + */ + public JointDrill2GiveUpReq addAllBossHps(final PublicJointDrill.JointDrillBossHp... values) { + bitField0_ |= 0x00000020; + bossHps.addAll(values); + return this; + } + + @Override + public JointDrill2GiveUpReq copyFrom(final JointDrill2GiveUpReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + floor = other.floor; + time = other.time; + damage = other.damage; + record.copyFrom(other.record); + nextPackage.copyFrom(other.nextPackage); + bossHps.copyFrom(other.bossHps); + } + return this; + } + + @Override + public JointDrill2GiveUpReq mergeFrom(final JointDrill2GiveUpReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasFloor()) { + setFloor(other.floor); + } + if (other.hasTime()) { + setTime(other.time); + } + if (other.hasDamage()) { + setDamage(other.damage); + } + if (other.hasRecord()) { + getMutableRecord().copyFrom(other.record); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasBossHps()) { + getMutableBossHps().addAll(other.bossHps); + } + return this; + } + + @Override + public JointDrill2GiveUpReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + floor = 0; + time = 0; + damage = 0; + record.clear(); + nextPackage.clear(); + bossHps.clear(); + return this; + } + + @Override + public JointDrill2GiveUpReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + record.clear(); + nextPackage.clear(); + bossHps.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof JointDrill2GiveUpReq)) { + return false; + } + JointDrill2GiveUpReq other = (JointDrill2GiveUpReq) o; + return bitField0_ == other.bitField0_ + && (!hasFloor() || floor == other.floor) + && (!hasTime() || time == other.time) + && (!hasDamage() || damage == other.damage) + && (!hasRecord() || record.equals(other.record)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasBossHps() || bossHps.equals(other.bossHps)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(floor); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(time); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(damage); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 42); + output.writeBytesNoTag(record); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000020) != 0) { + for (int i = 0; i < bossHps.length(); i++) { + output.writeRawByte((byte) 34); + output.writeMessageNoTag(bossHps.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(floor); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(time); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(damage); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeBytesSizeNoTag(record); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000020) != 0) { + size += (1 * bossHps.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(bossHps); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public JointDrill2GiveUpReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // floor + floor = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // time + time = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // damage + damage = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 42) { + break; + } + } + case 42: { + // record + input.readBytes(record); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // bossHps + tag = input.readRepeatedMessage(bossHps, tag); + bitField0_ |= 0x00000020; + 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.floor, floor); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.time, time); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.damage, damage); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeBytes(FieldNames.record, record); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRepeatedMessage(FieldNames.bossHps, bossHps); + } + output.endObject(); + } + + @Override + public JointDrill2GiveUpReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 67974124: { + if (input.isAtField(FieldNames.floor)) { + if (!input.trySkipNullValue()) { + floor = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2606829: { + if (input.isAtField(FieldNames.time)) { + if (!input.trySkipNullValue()) { + time = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2039707535: { + if (input.isAtField(FieldNames.damage)) { + if (!input.trySkipNullValue()) { + damage = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1851041679: { + if (input.isAtField(FieldNames.record)) { + if (!input.trySkipNullValue()) { + input.readBytes(record); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1733240222: { + if (input.isAtField(FieldNames.bossHps)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(bossHps); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public JointDrill2GiveUpReq clone() { + return new JointDrill2GiveUpReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static JointDrill2GiveUpReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new JointDrill2GiveUpReq(), data).checkInitialized(); + } + + public static JointDrill2GiveUpReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new JointDrill2GiveUpReq(), input).checkInitialized(); + } + + public static JointDrill2GiveUpReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new JointDrill2GiveUpReq(), input).checkInitialized(); + } + + /** + * @return factory for creating JointDrill2GiveUpReq messages + */ + public static MessageFactory getFactory() { + return JointDrill2GiveUpReqFactory.INSTANCE; + } + + private enum JointDrill2GiveUpReqFactory implements MessageFactory { + INSTANCE; + + @Override + public JointDrill2GiveUpReq create() { + return JointDrill2GiveUpReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName floor = FieldName.forField("Floor"); + + static final FieldName time = FieldName.forField("Time"); + + static final FieldName damage = FieldName.forField("Damage"); + + static final FieldName record = FieldName.forField("Record"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName bossHps = FieldName.forField("BossHps"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/JointDrill2Retreat.java b/src/generated/main/emu/nebula/proto/JointDrill2Retreat.java new file mode 100644 index 0000000..5d23608 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/JointDrill2Retreat.java @@ -0,0 +1,5 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.nebula.proto; + +public final class JointDrill2Retreat { +} diff --git a/src/generated/main/emu/nebula/proto/JointDrill2Settle.java b/src/generated/main/emu/nebula/proto/JointDrill2Settle.java new file mode 100644 index 0000000..43b4a36 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/JointDrill2Settle.java @@ -0,0 +1,746 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.nebula.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.RepeatedByte; + +public final class JointDrill2Settle { + /** + * Protobuf type {@code JointDrill2SettleReq} + */ + public static final class JointDrill2SettleReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint64 Checksum = 4; + */ + private long checksum; + + /** + * optional uint32 Time = 1; + */ + private int time; + + /** + * optional uint32 Damage = 2; + */ + private int damage; + + /** + * optional .TravelerDuelBattleSamples Sample = 3; + */ + private final TravelerDuelRankUpload.TravelerDuelBattleSamples sample = TravelerDuelRankUpload.TravelerDuelBattleSamples.newInstance(); + + /** + * optional .Events Events = 7; + */ + private final Public.Events events = Public.Events.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private JointDrill2SettleReq() { + } + + /** + * @return a new empty instance of {@code JointDrill2SettleReq} + */ + public static JointDrill2SettleReq newInstance() { + return new JointDrill2SettleReq(); + } + + /** + * optional uint64 Checksum = 4; + * @return whether the checksum field is set + */ + public boolean hasChecksum() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint64 Checksum = 4; + * @return this + */ + public JointDrill2SettleReq clearChecksum() { + bitField0_ &= ~0x00000001; + checksum = 0L; + return this; + } + + /** + * optional uint64 Checksum = 4; + * @return the checksum + */ + public long getChecksum() { + return checksum; + } + + /** + * optional uint64 Checksum = 4; + * @param value the checksum to set + * @return this + */ + public JointDrill2SettleReq setChecksum(final long value) { + bitField0_ |= 0x00000001; + checksum = value; + return this; + } + + /** + * optional uint32 Time = 1; + * @return whether the time field is set + */ + public boolean hasTime() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 Time = 1; + * @return this + */ + public JointDrill2SettleReq clearTime() { + bitField0_ &= ~0x00000002; + time = 0; + return this; + } + + /** + * optional uint32 Time = 1; + * @return the time + */ + public int getTime() { + return time; + } + + /** + * optional uint32 Time = 1; + * @param value the time to set + * @return this + */ + public JointDrill2SettleReq setTime(final int value) { + bitField0_ |= 0x00000002; + time = value; + return this; + } + + /** + * optional uint32 Damage = 2; + * @return whether the damage field is set + */ + public boolean hasDamage() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 Damage = 2; + * @return this + */ + public JointDrill2SettleReq clearDamage() { + bitField0_ &= ~0x00000004; + damage = 0; + return this; + } + + /** + * optional uint32 Damage = 2; + * @return the damage + */ + public int getDamage() { + return damage; + } + + /** + * optional uint32 Damage = 2; + * @param value the damage to set + * @return this + */ + public JointDrill2SettleReq setDamage(final int value) { + bitField0_ |= 0x00000004; + damage = value; + return this; + } + + /** + * optional .TravelerDuelBattleSamples Sample = 3; + * @return whether the sample field is set + */ + public boolean hasSample() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .TravelerDuelBattleSamples Sample = 3; + * @return this + */ + public JointDrill2SettleReq clearSample() { + bitField0_ &= ~0x00000008; + sample.clear(); + return this; + } + + /** + * optional .TravelerDuelBattleSamples Sample = 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 #getMutableSample()} if you want to modify it. + * + * @return internal storage object for reading + */ + public TravelerDuelRankUpload.TravelerDuelBattleSamples getSample() { + return sample; + } + + /** + * optional .TravelerDuelBattleSamples Sample = 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 TravelerDuelRankUpload.TravelerDuelBattleSamples getMutableSample() { + bitField0_ |= 0x00000008; + return sample; + } + + /** + * optional .TravelerDuelBattleSamples Sample = 3; + * @param value the sample to set + * @return this + */ + public JointDrill2SettleReq setSample( + final TravelerDuelRankUpload.TravelerDuelBattleSamples value) { + bitField0_ |= 0x00000008; + sample.copyFrom(value); + return this; + } + + /** + * optional .Events Events = 7; + * @return whether the events field is set + */ + public boolean hasEvents() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional .Events Events = 7; + * @return this + */ + public JointDrill2SettleReq clearEvents() { + bitField0_ &= ~0x00000010; + events.clear(); + return this; + } + + /** + * optional .Events Events = 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 #getMutableEvents()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.Events getEvents() { + return events; + } + + /** + * optional .Events Events = 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 Public.Events getMutableEvents() { + bitField0_ |= 0x00000010; + return events; + } + + /** + * optional .Events Events = 7; + * @param value the events to set + * @return this + */ + public JointDrill2SettleReq setEvents(final Public.Events value) { + bitField0_ |= 0x00000010; + events.copyFrom(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public JointDrill2SettleReq clearNextPackage() { + bitField0_ &= ~0x00000020; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * This 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 #getMutableNextPackage()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedByte getNextPackage() { + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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 RepeatedByte getMutableNextPackage() { + bitField0_ |= 0x00000020; + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public JointDrill2SettleReq addNextPackage(final byte value) { + bitField0_ |= 0x00000020; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public JointDrill2SettleReq addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000020; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public JointDrill2SettleReq setNextPackage(final byte... values) { + bitField0_ |= 0x00000020; + nextPackage.copyFrom(values); + return this; + } + + @Override + public JointDrill2SettleReq copyFrom(final JointDrill2SettleReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + checksum = other.checksum; + time = other.time; + damage = other.damage; + sample.copyFrom(other.sample); + events.copyFrom(other.events); + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public JointDrill2SettleReq mergeFrom(final JointDrill2SettleReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasChecksum()) { + setChecksum(other.checksum); + } + if (other.hasTime()) { + setTime(other.time); + } + if (other.hasDamage()) { + setDamage(other.damage); + } + if (other.hasSample()) { + getMutableSample().mergeFrom(other.sample); + } + if (other.hasEvents()) { + getMutableEvents().mergeFrom(other.events); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public JointDrill2SettleReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + checksum = 0L; + time = 0; + damage = 0; + sample.clear(); + events.clear(); + nextPackage.clear(); + return this; + } + + @Override + public JointDrill2SettleReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + sample.clearQuick(); + events.clearQuick(); + nextPackage.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof JointDrill2SettleReq)) { + return false; + } + JointDrill2SettleReq other = (JointDrill2SettleReq) o; + return bitField0_ == other.bitField0_ + && (!hasChecksum() || checksum == other.checksum) + && (!hasTime() || time == other.time) + && (!hasDamage() || damage == other.damage) + && (!hasSample() || sample.equals(other.sample)) + && (!hasEvents() || events.equals(other.events)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt64NoTag(checksum); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(time); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(damage); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(sample); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 58); + output.writeMessageNoTag(events); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt64SizeNoTag(checksum); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(time); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(damage); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(sample); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(events); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public JointDrill2SettleReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 32: { + // checksum + checksum = input.readUInt64(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 8) { + break; + } + } + case 8: { + // time + time = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // damage + damage = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // sample + input.readMessage(sample); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 58) { + break; + } + } + case 58: { + // events + input.readMessage(events); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000020; + 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.writeUInt64(FieldNames.checksum, checksum); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.time, time); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.damage, damage); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeMessage(FieldNames.sample, sample); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeMessage(FieldNames.events, events); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public JointDrill2SettleReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1601552483: { + if (input.isAtField(FieldNames.checksum)) { + if (!input.trySkipNullValue()) { + checksum = input.readUInt64(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2606829: { + if (input.isAtField(FieldNames.time)) { + if (!input.trySkipNullValue()) { + time = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2039707535: { + if (input.isAtField(FieldNames.damage)) { + if (!input.trySkipNullValue()) { + damage = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1825807926: { + if (input.isAtField(FieldNames.sample)) { + if (!input.trySkipNullValue()) { + input.readMessage(sample); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2087505209: { + if (input.isAtField(FieldNames.events)) { + if (!input.trySkipNullValue()) { + input.readMessage(events); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public JointDrill2SettleReq clone() { + return new JointDrill2SettleReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static JointDrill2SettleReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new JointDrill2SettleReq(), data).checkInitialized(); + } + + public static JointDrill2SettleReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new JointDrill2SettleReq(), input).checkInitialized(); + } + + public static JointDrill2SettleReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new JointDrill2SettleReq(), input).checkInitialized(); + } + + /** + * @return factory for creating JointDrill2SettleReq messages + */ + public static MessageFactory getFactory() { + return JointDrill2SettleReqFactory.INSTANCE; + } + + private enum JointDrill2SettleReqFactory implements MessageFactory { + INSTANCE; + + @Override + public JointDrill2SettleReq create() { + return JointDrill2SettleReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName checksum = FieldName.forField("Checksum"); + + static final FieldName time = FieldName.forField("Time"); + + static final FieldName damage = FieldName.forField("Damage"); + + static final FieldName sample = FieldName.forField("Sample"); + + static final FieldName events = FieldName.forField("Events"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/JointDrill2Sync.java b/src/generated/main/emu/nebula/proto/JointDrill2Sync.java new file mode 100644 index 0000000..3e28995 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/JointDrill2Sync.java @@ -0,0 +1,893 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.nebula.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.RepeatedByte; +import us.hebi.quickbuf.RepeatedMessage; + +public final class JointDrill2Sync { + /** + * Protobuf type {@code JointDrill2SyncReq} + */ + public static final class JointDrill2SyncReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Floor = 1; + */ + private int floor; + + /** + * optional uint32 Time = 2; + */ + private int time; + + /** + * optional uint32 Damage = 3; + */ + private int damage; + + /** + * optional bytes Record = 6; + */ + private final RepeatedByte record = RepeatedByte.newEmptyInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .JointDrillBossHp BossHps = 4; + */ + private final RepeatedMessage bossHps = RepeatedMessage.newEmptyInstance(PublicJointDrill.JointDrillBossHp.getFactory()); + + /** + * repeated .JointDrillBossHp BossHpMaxes = 5; + */ + private final RepeatedMessage bossHpMaxes = RepeatedMessage.newEmptyInstance(PublicJointDrill.JointDrillBossHp.getFactory()); + + private JointDrill2SyncReq() { + } + + /** + * @return a new empty instance of {@code JointDrill2SyncReq} + */ + public static JointDrill2SyncReq newInstance() { + return new JointDrill2SyncReq(); + } + + /** + * optional uint32 Floor = 1; + * @return whether the floor field is set + */ + public boolean hasFloor() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 Floor = 1; + * @return this + */ + public JointDrill2SyncReq clearFloor() { + bitField0_ &= ~0x00000001; + floor = 0; + return this; + } + + /** + * optional uint32 Floor = 1; + * @return the floor + */ + public int getFloor() { + return floor; + } + + /** + * optional uint32 Floor = 1; + * @param value the floor to set + * @return this + */ + public JointDrill2SyncReq setFloor(final int value) { + bitField0_ |= 0x00000001; + floor = value; + return this; + } + + /** + * optional uint32 Time = 2; + * @return whether the time field is set + */ + public boolean hasTime() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 Time = 2; + * @return this + */ + public JointDrill2SyncReq clearTime() { + bitField0_ &= ~0x00000002; + time = 0; + return this; + } + + /** + * optional uint32 Time = 2; + * @return the time + */ + public int getTime() { + return time; + } + + /** + * optional uint32 Time = 2; + * @param value the time to set + * @return this + */ + public JointDrill2SyncReq setTime(final int value) { + bitField0_ |= 0x00000002; + time = value; + return this; + } + + /** + * optional uint32 Damage = 3; + * @return whether the damage field is set + */ + public boolean hasDamage() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 Damage = 3; + * @return this + */ + public JointDrill2SyncReq clearDamage() { + bitField0_ &= ~0x00000004; + damage = 0; + return this; + } + + /** + * optional uint32 Damage = 3; + * @return the damage + */ + public int getDamage() { + return damage; + } + + /** + * optional uint32 Damage = 3; + * @param value the damage to set + * @return this + */ + public JointDrill2SyncReq setDamage(final int value) { + bitField0_ |= 0x00000004; + damage = value; + return this; + } + + /** + * optional bytes Record = 6; + * @return whether the record field is set + */ + public boolean hasRecord() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional bytes Record = 6; + * @return this + */ + public JointDrill2SyncReq clearRecord() { + bitField0_ &= ~0x00000008; + record.clear(); + return this; + } + + /** + * optional bytes Record = 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 #getMutableRecord()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedByte getRecord() { + return record; + } + + /** + * optional bytes Record = 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 RepeatedByte getMutableRecord() { + bitField0_ |= 0x00000008; + return record; + } + + /** + * optional bytes Record = 6; + * @param value the record to add + * @return this + */ + public JointDrill2SyncReq addRecord(final byte value) { + bitField0_ |= 0x00000008; + record.add(value); + return this; + } + + /** + * optional bytes Record = 6; + * @param values the record to add + * @return this + */ + public JointDrill2SyncReq addAllRecord(final byte... values) { + bitField0_ |= 0x00000008; + record.addAll(values); + return this; + } + + /** + * optional bytes Record = 6; + * @param values the record to set + * @return this + */ + public JointDrill2SyncReq setRecord(final byte... values) { + bitField0_ |= 0x00000008; + record.copyFrom(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public JointDrill2SyncReq clearNextPackage() { + bitField0_ &= ~0x00000010; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * This 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 #getMutableNextPackage()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedByte getNextPackage() { + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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 RepeatedByte getMutableNextPackage() { + bitField0_ |= 0x00000010; + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public JointDrill2SyncReq addNextPackage(final byte value) { + bitField0_ |= 0x00000010; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public JointDrill2SyncReq addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000010; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public JointDrill2SyncReq setNextPackage(final byte... values) { + bitField0_ |= 0x00000010; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .JointDrillBossHp BossHps = 4; + * @return whether the bossHps field is set + */ + public boolean hasBossHps() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * repeated .JointDrillBossHp BossHps = 4; + * @return this + */ + public JointDrill2SyncReq clearBossHps() { + bitField0_ &= ~0x00000020; + bossHps.clear(); + return this; + } + + /** + * repeated .JointDrillBossHp BossHps = 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 #getMutableBossHps()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getBossHps() { + return bossHps; + } + + /** + * repeated .JointDrillBossHp BossHps = 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 getMutableBossHps() { + bitField0_ |= 0x00000020; + return bossHps; + } + + /** + * repeated .JointDrillBossHp BossHps = 4; + * @param value the bossHps to add + * @return this + */ + public JointDrill2SyncReq addBossHps(final PublicJointDrill.JointDrillBossHp value) { + bitField0_ |= 0x00000020; + bossHps.add(value); + return this; + } + + /** + * repeated .JointDrillBossHp BossHps = 4; + * @param values the bossHps to add + * @return this + */ + public JointDrill2SyncReq addAllBossHps(final PublicJointDrill.JointDrillBossHp... values) { + bitField0_ |= 0x00000020; + bossHps.addAll(values); + return this; + } + + /** + * repeated .JointDrillBossHp BossHpMaxes = 5; + * @return whether the bossHpMaxes field is set + */ + public boolean hasBossHpMaxes() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * repeated .JointDrillBossHp BossHpMaxes = 5; + * @return this + */ + public JointDrill2SyncReq clearBossHpMaxes() { + bitField0_ &= ~0x00000040; + bossHpMaxes.clear(); + return this; + } + + /** + * repeated .JointDrillBossHp BossHpMaxes = 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 #getMutableBossHpMaxes()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getBossHpMaxes() { + return bossHpMaxes; + } + + /** + * repeated .JointDrillBossHp BossHpMaxes = 5; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableBossHpMaxes() { + bitField0_ |= 0x00000040; + return bossHpMaxes; + } + + /** + * repeated .JointDrillBossHp BossHpMaxes = 5; + * @param value the bossHpMaxes to add + * @return this + */ + public JointDrill2SyncReq addBossHpMaxes(final PublicJointDrill.JointDrillBossHp value) { + bitField0_ |= 0x00000040; + bossHpMaxes.add(value); + return this; + } + + /** + * repeated .JointDrillBossHp BossHpMaxes = 5; + * @param values the bossHpMaxes to add + * @return this + */ + public JointDrill2SyncReq addAllBossHpMaxes(final PublicJointDrill.JointDrillBossHp... values) { + bitField0_ |= 0x00000040; + bossHpMaxes.addAll(values); + return this; + } + + @Override + public JointDrill2SyncReq copyFrom(final JointDrill2SyncReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + floor = other.floor; + time = other.time; + damage = other.damage; + record.copyFrom(other.record); + nextPackage.copyFrom(other.nextPackage); + bossHps.copyFrom(other.bossHps); + bossHpMaxes.copyFrom(other.bossHpMaxes); + } + return this; + } + + @Override + public JointDrill2SyncReq mergeFrom(final JointDrill2SyncReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasFloor()) { + setFloor(other.floor); + } + if (other.hasTime()) { + setTime(other.time); + } + if (other.hasDamage()) { + setDamage(other.damage); + } + if (other.hasRecord()) { + getMutableRecord().copyFrom(other.record); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasBossHps()) { + getMutableBossHps().addAll(other.bossHps); + } + if (other.hasBossHpMaxes()) { + getMutableBossHpMaxes().addAll(other.bossHpMaxes); + } + return this; + } + + @Override + public JointDrill2SyncReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + floor = 0; + time = 0; + damage = 0; + record.clear(); + nextPackage.clear(); + bossHps.clear(); + bossHpMaxes.clear(); + return this; + } + + @Override + public JointDrill2SyncReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + record.clear(); + nextPackage.clear(); + bossHps.clearQuick(); + bossHpMaxes.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof JointDrill2SyncReq)) { + return false; + } + JointDrill2SyncReq other = (JointDrill2SyncReq) o; + return bitField0_ == other.bitField0_ + && (!hasFloor() || floor == other.floor) + && (!hasTime() || time == other.time) + && (!hasDamage() || damage == other.damage) + && (!hasRecord() || record.equals(other.record)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasBossHps() || bossHps.equals(other.bossHps)) + && (!hasBossHpMaxes() || bossHpMaxes.equals(other.bossHpMaxes)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(floor); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(time); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(damage); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 50); + output.writeBytesNoTag(record); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000020) != 0) { + for (int i = 0; i < bossHps.length(); i++) { + output.writeRawByte((byte) 34); + output.writeMessageNoTag(bossHps.get(i)); + } + } + if ((bitField0_ & 0x00000040) != 0) { + for (int i = 0; i < bossHpMaxes.length(); i++) { + output.writeRawByte((byte) 42); + output.writeMessageNoTag(bossHpMaxes.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(floor); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(time); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(damage); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeBytesSizeNoTag(record); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000020) != 0) { + size += (1 * bossHps.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(bossHps); + } + if ((bitField0_ & 0x00000040) != 0) { + size += (1 * bossHpMaxes.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(bossHpMaxes); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public JointDrill2SyncReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // floor + floor = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // time + time = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // damage + damage = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 50) { + break; + } + } + case 50: { + // record + input.readBytes(record); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // bossHps + tag = input.readRepeatedMessage(bossHps, tag); + bitField0_ |= 0x00000020; + if (tag != 42) { + break; + } + } + case 42: { + // bossHpMaxes + tag = input.readRepeatedMessage(bossHpMaxes, tag); + bitField0_ |= 0x00000040; + 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.floor, floor); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.time, time); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.damage, damage); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeBytes(FieldNames.record, record); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRepeatedMessage(FieldNames.bossHps, bossHps); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRepeatedMessage(FieldNames.bossHpMaxes, bossHpMaxes); + } + output.endObject(); + } + + @Override + public JointDrill2SyncReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 67974124: { + if (input.isAtField(FieldNames.floor)) { + if (!input.trySkipNullValue()) { + floor = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2606829: { + if (input.isAtField(FieldNames.time)) { + if (!input.trySkipNullValue()) { + time = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2039707535: { + if (input.isAtField(FieldNames.damage)) { + if (!input.trySkipNullValue()) { + damage = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1851041679: { + if (input.isAtField(FieldNames.record)) { + if (!input.trySkipNullValue()) { + input.readBytes(record); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1733240222: { + if (input.isAtField(FieldNames.bossHps)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(bossHps); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case 939364509: { + if (input.isAtField(FieldNames.bossHpMaxes)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(bossHpMaxes); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public JointDrill2SyncReq clone() { + return new JointDrill2SyncReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static JointDrill2SyncReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new JointDrill2SyncReq(), data).checkInitialized(); + } + + public static JointDrill2SyncReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new JointDrill2SyncReq(), input).checkInitialized(); + } + + public static JointDrill2SyncReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new JointDrill2SyncReq(), input).checkInitialized(); + } + + /** + * @return factory for creating JointDrill2SyncReq messages + */ + public static MessageFactory getFactory() { + return JointDrill2SyncReqFactory.INSTANCE; + } + + private enum JointDrill2SyncReqFactory implements MessageFactory { + INSTANCE; + + @Override + public JointDrill2SyncReq create() { + return JointDrill2SyncReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName floor = FieldName.forField("Floor"); + + static final FieldName time = FieldName.forField("Time"); + + static final FieldName damage = FieldName.forField("Damage"); + + static final FieldName record = FieldName.forField("Record"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName bossHps = FieldName.forField("BossHps"); + + static final FieldName bossHpMaxes = FieldName.forField("BossHpMaxes"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/JointDrillSettle.java b/src/generated/main/emu/nebula/proto/JointDrillSettle.java index b58e5d1..f48143d 100644 --- a/src/generated/main/emu/nebula/proto/JointDrillSettle.java +++ b/src/generated/main/emu/nebula/proto/JointDrillSettle.java @@ -35,7 +35,7 @@ public final class JointDrillSettle { private int damage; /** - * optional .TravelerDuelBattleSamples sample = 3; + * optional .TravelerDuelBattleSamples Sample = 3; */ private final TravelerDuelRankUpload.TravelerDuelBattleSamples sample = TravelerDuelRankUpload.TravelerDuelBattleSamples.newInstance(); @@ -171,7 +171,7 @@ public final class JointDrillSettle { } /** - * optional .TravelerDuelBattleSamples sample = 3; + * optional .TravelerDuelBattleSamples Sample = 3; * @return whether the sample field is set */ public boolean hasSample() { @@ -179,7 +179,7 @@ public final class JointDrillSettle { } /** - * optional .TravelerDuelBattleSamples sample = 3; + * optional .TravelerDuelBattleSamples Sample = 3; * @return this */ public JointDrillSettleReq clearSample() { @@ -189,7 +189,7 @@ public final class JointDrillSettle { } /** - * optional .TravelerDuelBattleSamples sample = 3; + * optional .TravelerDuelBattleSamples Sample = 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. @@ -203,7 +203,7 @@ public final class JointDrillSettle { } /** - * optional .TravelerDuelBattleSamples sample = 3; + * optional .TravelerDuelBattleSamples Sample = 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 @@ -217,7 +217,7 @@ public final class JointDrillSettle { } /** - * optional .TravelerDuelBattleSamples sample = 3; + * optional .TravelerDuelBattleSamples Sample = 3; * @param value the sample to set * @return this */ @@ -644,7 +644,7 @@ public final class JointDrillSettle { } break; } - case -909675094: { + case -1825807926: { if (input.isAtField(FieldNames.sample)) { if (!input.trySkipNullValue()) { input.readMessage(sample); @@ -736,7 +736,7 @@ public final class JointDrillSettle { static final FieldName damage = FieldName.forField("Damage"); - static final FieldName sample = FieldName.forField("sample"); + static final FieldName sample = FieldName.forField("Sample"); static final FieldName events = FieldName.forField("Events"); diff --git a/src/generated/main/emu/nebula/proto/MilkoutSettle.java b/src/generated/main/emu/nebula/proto/MilkoutSettle.java new file mode 100644 index 0000000..2625894 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/MilkoutSettle.java @@ -0,0 +1,1585 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.nebula.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.RepeatedByte; +import us.hebi.quickbuf.RepeatedMessage; + +public final class MilkoutSettle { + /** + * Protobuf type {@code MilkoutCollect} + */ + public static final class MilkoutCollect extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Id = 1; + */ + private int id; + + /** + * optional uint32 Count = 2; + */ + private int count; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private MilkoutCollect() { + } + + /** + * @return a new empty instance of {@code MilkoutCollect} + */ + public static MilkoutCollect newInstance() { + return new MilkoutCollect(); + } + + /** + * optional uint32 Id = 1; + * @return whether the id field is set + */ + public boolean hasId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 Id = 1; + * @return this + */ + public MilkoutCollect clearId() { + bitField0_ &= ~0x00000001; + id = 0; + return this; + } + + /** + * optional uint32 Id = 1; + * @return the id + */ + public int getId() { + return id; + } + + /** + * optional uint32 Id = 1; + * @param value the id to set + * @return this + */ + public MilkoutCollect setId(final int value) { + bitField0_ |= 0x00000001; + id = value; + return this; + } + + /** + * optional uint32 Count = 2; + * @return whether the count field is set + */ + public boolean hasCount() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 Count = 2; + * @return this + */ + public MilkoutCollect clearCount() { + bitField0_ &= ~0x00000002; + count = 0; + return this; + } + + /** + * optional uint32 Count = 2; + * @return the count + */ + public int getCount() { + return count; + } + + /** + * optional uint32 Count = 2; + * @param value the count to set + * @return this + */ + public MilkoutCollect setCount(final int value) { + bitField0_ |= 0x00000002; + count = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public MilkoutCollect clearNextPackage() { + bitField0_ &= ~0x00000004; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * This 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 #getMutableNextPackage()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedByte getNextPackage() { + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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 RepeatedByte getMutableNextPackage() { + bitField0_ |= 0x00000004; + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public MilkoutCollect addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public MilkoutCollect addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public MilkoutCollect setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + @Override + public MilkoutCollect copyFrom(final MilkoutCollect other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + id = other.id; + count = other.count; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public MilkoutCollect mergeFrom(final MilkoutCollect other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasId()) { + setId(other.id); + } + if (other.hasCount()) { + setCount(other.count); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public MilkoutCollect clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + id = 0; + count = 0; + nextPackage.clear(); + return this; + } + + @Override + public MilkoutCollect clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof MilkoutCollect)) { + return false; + } + MilkoutCollect other = (MilkoutCollect) o; + return bitField0_ == other.bitField0_ + && (!hasId() || id == other.id) + && (!hasCount() || count == other.count) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(id); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(count); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(id); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(count); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public MilkoutCollect mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // id + id = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // count + count = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + 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.id, id); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.count, count); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public MilkoutCollect mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 2363: { + if (input.isAtField(FieldNames.id)) { + if (!input.trySkipNullValue()) { + id = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 65298671: { + if (input.isAtField(FieldNames.count)) { + if (!input.trySkipNullValue()) { + count = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public MilkoutCollect clone() { + return new MilkoutCollect().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static MilkoutCollect parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new MilkoutCollect(), data).checkInitialized(); + } + + public static MilkoutCollect parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new MilkoutCollect(), input).checkInitialized(); + } + + public static MilkoutCollect parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new MilkoutCollect(), input).checkInitialized(); + } + + /** + * @return factory for creating MilkoutCollect messages + */ + public static MessageFactory getFactory() { + return MilkoutCollectFactory.INSTANCE; + } + + private enum MilkoutCollectFactory implements MessageFactory { + INSTANCE; + + @Override + public MilkoutCollect create() { + return MilkoutCollect.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName id = FieldName.forField("Id"); + + static final FieldName count = FieldName.forField("Count"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code MilkoutSettleReq} + */ + public static final class MilkoutSettleReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 ActivityId = 1; + */ + private int activityId; + + /** + * optional uint32 LevelId = 2; + */ + private int levelId; + + /** + * optional uint32 Seconds = 3; + */ + private int seconds; + + /** + * optional uint32 MonsterDefeatCount = 4; + */ + private int monsterDefeatCount; + + /** + * optional uint32 CharId = 6; + */ + private int charId; + + /** + * optional uint32 Count = 7; + */ + private int count; + + /** + * optional uint32 RemainHP = 8; + */ + private int remainHP; + + /** + * optional uint32 Score = 9; + */ + private int score; + + /** + * optional bool Win = 5; + */ + private boolean win; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .MilkoutCollect DropCollect = 10; + */ + private final RepeatedMessage dropCollect = RepeatedMessage.newEmptyInstance(MilkoutCollect.getFactory()); + + private MilkoutSettleReq() { + } + + /** + * @return a new empty instance of {@code MilkoutSettleReq} + */ + public static MilkoutSettleReq newInstance() { + return new MilkoutSettleReq(); + } + + /** + * optional uint32 ActivityId = 1; + * @return whether the activityId field is set + */ + public boolean hasActivityId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 ActivityId = 1; + * @return this + */ + public MilkoutSettleReq clearActivityId() { + bitField0_ &= ~0x00000001; + activityId = 0; + return this; + } + + /** + * optional uint32 ActivityId = 1; + * @return the activityId + */ + public int getActivityId() { + return activityId; + } + + /** + * optional uint32 ActivityId = 1; + * @param value the activityId to set + * @return this + */ + public MilkoutSettleReq setActivityId(final int value) { + bitField0_ |= 0x00000001; + activityId = value; + return this; + } + + /** + * optional uint32 LevelId = 2; + * @return whether the levelId field is set + */ + public boolean hasLevelId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 LevelId = 2; + * @return this + */ + public MilkoutSettleReq clearLevelId() { + bitField0_ &= ~0x00000002; + levelId = 0; + return this; + } + + /** + * optional uint32 LevelId = 2; + * @return the levelId + */ + public int getLevelId() { + return levelId; + } + + /** + * optional uint32 LevelId = 2; + * @param value the levelId to set + * @return this + */ + public MilkoutSettleReq setLevelId(final int value) { + bitField0_ |= 0x00000002; + levelId = value; + return this; + } + + /** + * optional uint32 Seconds = 3; + * @return whether the seconds field is set + */ + public boolean hasSeconds() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 Seconds = 3; + * @return this + */ + public MilkoutSettleReq clearSeconds() { + bitField0_ &= ~0x00000004; + seconds = 0; + return this; + } + + /** + * optional uint32 Seconds = 3; + * @return the seconds + */ + public int getSeconds() { + return seconds; + } + + /** + * optional uint32 Seconds = 3; + * @param value the seconds to set + * @return this + */ + public MilkoutSettleReq setSeconds(final int value) { + bitField0_ |= 0x00000004; + seconds = value; + return this; + } + + /** + * optional uint32 MonsterDefeatCount = 4; + * @return whether the monsterDefeatCount field is set + */ + public boolean hasMonsterDefeatCount() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 MonsterDefeatCount = 4; + * @return this + */ + public MilkoutSettleReq clearMonsterDefeatCount() { + bitField0_ &= ~0x00000008; + monsterDefeatCount = 0; + return this; + } + + /** + * optional uint32 MonsterDefeatCount = 4; + * @return the monsterDefeatCount + */ + public int getMonsterDefeatCount() { + return monsterDefeatCount; + } + + /** + * optional uint32 MonsterDefeatCount = 4; + * @param value the monsterDefeatCount to set + * @return this + */ + public MilkoutSettleReq setMonsterDefeatCount(final int value) { + bitField0_ |= 0x00000008; + monsterDefeatCount = value; + return this; + } + + /** + * optional uint32 CharId = 6; + * @return whether the charId field is set + */ + public boolean hasCharId() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 CharId = 6; + * @return this + */ + public MilkoutSettleReq clearCharId() { + bitField0_ &= ~0x00000010; + charId = 0; + return this; + } + + /** + * optional uint32 CharId = 6; + * @return the charId + */ + public int getCharId() { + return charId; + } + + /** + * optional uint32 CharId = 6; + * @param value the charId to set + * @return this + */ + public MilkoutSettleReq setCharId(final int value) { + bitField0_ |= 0x00000010; + charId = value; + return this; + } + + /** + * optional uint32 Count = 7; + * @return whether the count field is set + */ + public boolean hasCount() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional uint32 Count = 7; + * @return this + */ + public MilkoutSettleReq clearCount() { + bitField0_ &= ~0x00000020; + 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 MilkoutSettleReq setCount(final int value) { + bitField0_ |= 0x00000020; + count = value; + return this; + } + + /** + * optional uint32 RemainHP = 8; + * @return whether the remainHP field is set + */ + public boolean hasRemainHP() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional uint32 RemainHP = 8; + * @return this + */ + public MilkoutSettleReq clearRemainHP() { + bitField0_ &= ~0x00000040; + remainHP = 0; + return this; + } + + /** + * optional uint32 RemainHP = 8; + * @return the remainHP + */ + public int getRemainHP() { + return remainHP; + } + + /** + * optional uint32 RemainHP = 8; + * @param value the remainHP to set + * @return this + */ + public MilkoutSettleReq setRemainHP(final int value) { + bitField0_ |= 0x00000040; + remainHP = value; + return this; + } + + /** + * optional uint32 Score = 9; + * @return whether the score field is set + */ + public boolean hasScore() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * optional uint32 Score = 9; + * @return this + */ + public MilkoutSettleReq clearScore() { + bitField0_ &= ~0x00000080; + score = 0; + return this; + } + + /** + * optional uint32 Score = 9; + * @return the score + */ + public int getScore() { + return score; + } + + /** + * optional uint32 Score = 9; + * @param value the score to set + * @return this + */ + public MilkoutSettleReq setScore(final int value) { + bitField0_ |= 0x00000080; + score = value; + return this; + } + + /** + * optional bool Win = 5; + * @return whether the win field is set + */ + public boolean hasWin() { + return (bitField0_ & 0x00000100) != 0; + } + + /** + * optional bool Win = 5; + * @return this + */ + public MilkoutSettleReq clearWin() { + bitField0_ &= ~0x00000100; + win = false; + return this; + } + + /** + * optional bool Win = 5; + * @return the win + */ + public boolean getWin() { + return win; + } + + /** + * optional bool Win = 5; + * @param value the win to set + * @return this + */ + public MilkoutSettleReq setWin(final boolean value) { + bitField0_ |= 0x00000100; + win = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000200) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public MilkoutSettleReq clearNextPackage() { + bitField0_ &= ~0x00000200; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * This 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 #getMutableNextPackage()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedByte getNextPackage() { + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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 RepeatedByte getMutableNextPackage() { + bitField0_ |= 0x00000200; + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public MilkoutSettleReq addNextPackage(final byte value) { + bitField0_ |= 0x00000200; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public MilkoutSettleReq addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000200; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public MilkoutSettleReq setNextPackage(final byte... values) { + bitField0_ |= 0x00000200; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .MilkoutCollect DropCollect = 10; + * @return whether the dropCollect field is set + */ + public boolean hasDropCollect() { + return (bitField0_ & 0x00000400) != 0; + } + + /** + * repeated .MilkoutCollect DropCollect = 10; + * @return this + */ + public MilkoutSettleReq clearDropCollect() { + bitField0_ &= ~0x00000400; + dropCollect.clear(); + return this; + } + + /** + * repeated .MilkoutCollect DropCollect = 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 #getMutableDropCollect()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getDropCollect() { + return dropCollect; + } + + /** + * repeated .MilkoutCollect DropCollect = 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 getMutableDropCollect() { + bitField0_ |= 0x00000400; + return dropCollect; + } + + /** + * repeated .MilkoutCollect DropCollect = 10; + * @param value the dropCollect to add + * @return this + */ + public MilkoutSettleReq addDropCollect(final MilkoutCollect value) { + bitField0_ |= 0x00000400; + dropCollect.add(value); + return this; + } + + /** + * repeated .MilkoutCollect DropCollect = 10; + * @param values the dropCollect to add + * @return this + */ + public MilkoutSettleReq addAllDropCollect(final MilkoutCollect... values) { + bitField0_ |= 0x00000400; + dropCollect.addAll(values); + return this; + } + + @Override + public MilkoutSettleReq copyFrom(final MilkoutSettleReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + activityId = other.activityId; + levelId = other.levelId; + seconds = other.seconds; + monsterDefeatCount = other.monsterDefeatCount; + charId = other.charId; + count = other.count; + remainHP = other.remainHP; + score = other.score; + win = other.win; + nextPackage.copyFrom(other.nextPackage); + dropCollect.copyFrom(other.dropCollect); + } + return this; + } + + @Override + public MilkoutSettleReq mergeFrom(final MilkoutSettleReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasActivityId()) { + setActivityId(other.activityId); + } + if (other.hasLevelId()) { + setLevelId(other.levelId); + } + if (other.hasSeconds()) { + setSeconds(other.seconds); + } + if (other.hasMonsterDefeatCount()) { + setMonsterDefeatCount(other.monsterDefeatCount); + } + if (other.hasCharId()) { + setCharId(other.charId); + } + if (other.hasCount()) { + setCount(other.count); + } + if (other.hasRemainHP()) { + setRemainHP(other.remainHP); + } + if (other.hasScore()) { + setScore(other.score); + } + if (other.hasWin()) { + setWin(other.win); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasDropCollect()) { + getMutableDropCollect().addAll(other.dropCollect); + } + return this; + } + + @Override + public MilkoutSettleReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + activityId = 0; + levelId = 0; + seconds = 0; + monsterDefeatCount = 0; + charId = 0; + count = 0; + remainHP = 0; + score = 0; + win = false; + nextPackage.clear(); + dropCollect.clear(); + return this; + } + + @Override + public MilkoutSettleReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + dropCollect.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof MilkoutSettleReq)) { + return false; + } + MilkoutSettleReq other = (MilkoutSettleReq) o; + return bitField0_ == other.bitField0_ + && (!hasActivityId() || activityId == other.activityId) + && (!hasLevelId() || levelId == other.levelId) + && (!hasSeconds() || seconds == other.seconds) + && (!hasMonsterDefeatCount() || monsterDefeatCount == other.monsterDefeatCount) + && (!hasCharId() || charId == other.charId) + && (!hasCount() || count == other.count) + && (!hasRemainHP() || remainHP == other.remainHP) + && (!hasScore() || score == other.score) + && (!hasWin() || win == other.win) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasDropCollect() || dropCollect.equals(other.dropCollect)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(activityId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(levelId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(seconds); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(monsterDefeatCount); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(charId); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(count); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(remainHP); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(score); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeRawByte((byte) 40); + output.writeBoolNoTag(win); + } + if ((bitField0_ & 0x00000200) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000400) != 0) { + for (int i = 0; i < dropCollect.length(); i++) { + output.writeRawByte((byte) 82); + output.writeMessageNoTag(dropCollect.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(activityId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(levelId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(seconds); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(monsterDefeatCount); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(charId); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(count); + } + if ((bitField0_ & 0x00000040) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(remainHP); + } + if ((bitField0_ & 0x00000080) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(score); + } + if ((bitField0_ & 0x00000100) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000200) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000400) != 0) { + size += (1 * dropCollect.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(dropCollect); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public MilkoutSettleReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // activityId + activityId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // levelId + levelId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // seconds + seconds = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // monsterDefeatCount + monsterDefeatCount = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // charId + charId = input.readUInt32(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // count + count = input.readUInt32(); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 64) { + break; + } + } + case 64: { + // remainHP + remainHP = input.readUInt32(); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // score + score = input.readUInt32(); + bitField0_ |= 0x00000080; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // win + win = input.readBool(); + bitField0_ |= 0x00000100; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000200; + tag = input.readTag(); + if (tag != 82) { + break; + } + } + case 82: { + // dropCollect + tag = input.readRepeatedMessage(dropCollect, tag); + bitField0_ |= 0x00000400; + 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.activityId, activityId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.levelId, levelId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.seconds, seconds); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.monsterDefeatCount, monsterDefeatCount); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.charId, charId); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeUInt32(FieldNames.count, count); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeUInt32(FieldNames.remainHP, remainHP); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeUInt32(FieldNames.score, score); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeBool(FieldNames.win, win); + } + if ((bitField0_ & 0x00000200) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000400) != 0) { + output.writeRepeatedMessage(FieldNames.dropCollect, dropCollect); + } + output.endObject(); + } + + @Override + public MilkoutSettleReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -252882774: { + if (input.isAtField(FieldNames.activityId)) { + if (!input.trySkipNullValue()) { + activityId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1734437791: { + if (input.isAtField(FieldNames.levelId)) { + if (!input.trySkipNullValue()) { + levelId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -660217249: { + if (input.isAtField(FieldNames.seconds)) { + if (!input.trySkipNullValue()) { + seconds = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 351924098: { + if (input.isAtField(FieldNames.monsterDefeatCount)) { + if (!input.trySkipNullValue()) { + monsterDefeatCount = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2017200945: { + if (input.isAtField(FieldNames.charId)) { + if (!input.trySkipNullValue()) { + charId = input.readUInt32(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case 65298671: { + if (input.isAtField(FieldNames.count)) { + if (!input.trySkipNullValue()) { + count = input.readUInt32(); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case -461486956: { + if (input.isAtField(FieldNames.remainHP)) { + if (!input.trySkipNullValue()) { + remainHP = input.readUInt32(); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + case 79711858: { + if (input.isAtField(FieldNames.score)) { + if (!input.trySkipNullValue()) { + score = input.readUInt32(); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + case 86972: { + if (input.isAtField(FieldNames.win)) { + if (!input.trySkipNullValue()) { + win = input.readBool(); + bitField0_ |= 0x00000100; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000200; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1384933605: { + if (input.isAtField(FieldNames.dropCollect)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(dropCollect); + bitField0_ |= 0x00000400; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public MilkoutSettleReq clone() { + return new MilkoutSettleReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static MilkoutSettleReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new MilkoutSettleReq(), data).checkInitialized(); + } + + public static MilkoutSettleReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new MilkoutSettleReq(), input).checkInitialized(); + } + + public static MilkoutSettleReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new MilkoutSettleReq(), input).checkInitialized(); + } + + /** + * @return factory for creating MilkoutSettleReq messages + */ + public static MessageFactory getFactory() { + return MilkoutSettleReqFactory.INSTANCE; + } + + private enum MilkoutSettleReqFactory implements MessageFactory { + INSTANCE; + + @Override + public MilkoutSettleReq create() { + return MilkoutSettleReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName activityId = FieldName.forField("ActivityId"); + + static final FieldName levelId = FieldName.forField("LevelId"); + + static final FieldName seconds = FieldName.forField("Seconds"); + + static final FieldName monsterDefeatCount = FieldName.forField("MonsterDefeatCount"); + + static final FieldName charId = FieldName.forField("CharId"); + + static final FieldName count = FieldName.forField("Count"); + + static final FieldName remainHP = FieldName.forField("RemainHP"); + + static final FieldName score = FieldName.forField("Score"); + + static final FieldName win = FieldName.forField("Win"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName dropCollect = FieldName.forField("DropCollect"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/Notify.java b/src/generated/main/emu/nebula/proto/Notify.java index a1a4e1a..c44e68f 100644 --- a/src/generated/main/emu/nebula/proto/Notify.java +++ b/src/generated/main/emu/nebula/proto/Notify.java @@ -8060,4 +8060,454 @@ public final class Notify { static final FieldName orders = FieldName.forField("Orders"); } } + + /** + * Protobuf type {@code MilkoutCharacterUnlockNotify} + */ + public static final class MilkoutCharacterUnlockNotify extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 ActivityId = 1; + */ + private int activityId; + + /** + * optional uint32 CharId = 2; + */ + private int charId; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private MilkoutCharacterUnlockNotify() { + } + + /** + * @return a new empty instance of {@code MilkoutCharacterUnlockNotify} + */ + public static MilkoutCharacterUnlockNotify newInstance() { + return new MilkoutCharacterUnlockNotify(); + } + + /** + * optional uint32 ActivityId = 1; + * @return whether the activityId field is set + */ + public boolean hasActivityId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 ActivityId = 1; + * @return this + */ + public MilkoutCharacterUnlockNotify clearActivityId() { + bitField0_ &= ~0x00000001; + activityId = 0; + return this; + } + + /** + * optional uint32 ActivityId = 1; + * @return the activityId + */ + public int getActivityId() { + return activityId; + } + + /** + * optional uint32 ActivityId = 1; + * @param value the activityId to set + * @return this + */ + public MilkoutCharacterUnlockNotify setActivityId(final int value) { + bitField0_ |= 0x00000001; + activityId = value; + return this; + } + + /** + * optional uint32 CharId = 2; + * @return whether the charId field is set + */ + public boolean hasCharId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 CharId = 2; + * @return this + */ + public MilkoutCharacterUnlockNotify clearCharId() { + bitField0_ &= ~0x00000002; + charId = 0; + return this; + } + + /** + * optional uint32 CharId = 2; + * @return the charId + */ + public int getCharId() { + return charId; + } + + /** + * optional uint32 CharId = 2; + * @param value the charId to set + * @return this + */ + public MilkoutCharacterUnlockNotify setCharId(final int value) { + bitField0_ |= 0x00000002; + charId = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public MilkoutCharacterUnlockNotify clearNextPackage() { + bitField0_ &= ~0x00000004; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * This 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 #getMutableNextPackage()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedByte getNextPackage() { + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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 RepeatedByte getMutableNextPackage() { + bitField0_ |= 0x00000004; + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public MilkoutCharacterUnlockNotify addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public MilkoutCharacterUnlockNotify addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public MilkoutCharacterUnlockNotify setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + @Override + public MilkoutCharacterUnlockNotify copyFrom(final MilkoutCharacterUnlockNotify other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + activityId = other.activityId; + charId = other.charId; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public MilkoutCharacterUnlockNotify mergeFrom(final MilkoutCharacterUnlockNotify other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasActivityId()) { + setActivityId(other.activityId); + } + if (other.hasCharId()) { + setCharId(other.charId); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public MilkoutCharacterUnlockNotify clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + activityId = 0; + charId = 0; + nextPackage.clear(); + return this; + } + + @Override + public MilkoutCharacterUnlockNotify clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof MilkoutCharacterUnlockNotify)) { + return false; + } + MilkoutCharacterUnlockNotify other = (MilkoutCharacterUnlockNotify) o; + return bitField0_ == other.bitField0_ + && (!hasActivityId() || activityId == other.activityId) + && (!hasCharId() || charId == other.charId) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(activityId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(charId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(activityId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(charId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public MilkoutCharacterUnlockNotify mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // activityId + activityId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // charId + charId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + 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.activityId, activityId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.charId, charId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public MilkoutCharacterUnlockNotify mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -252882774: { + if (input.isAtField(FieldNames.activityId)) { + if (!input.trySkipNullValue()) { + activityId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2017200945: { + if (input.isAtField(FieldNames.charId)) { + if (!input.trySkipNullValue()) { + charId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public MilkoutCharacterUnlockNotify clone() { + return new MilkoutCharacterUnlockNotify().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static MilkoutCharacterUnlockNotify parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new MilkoutCharacterUnlockNotify(), data).checkInitialized(); + } + + public static MilkoutCharacterUnlockNotify parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new MilkoutCharacterUnlockNotify(), input).checkInitialized(); + } + + public static MilkoutCharacterUnlockNotify parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new MilkoutCharacterUnlockNotify(), input).checkInitialized(); + } + + /** + * @return factory for creating MilkoutCharacterUnlockNotify messages + */ + public static MessageFactory getFactory() { + return MilkoutCharacterUnlockNotifyFactory.INSTANCE; + } + + private enum MilkoutCharacterUnlockNotifyFactory implements MessageFactory { + INSTANCE; + + @Override + public MilkoutCharacterUnlockNotify create() { + return MilkoutCharacterUnlockNotify.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName activityId = FieldName.forField("ActivityId"); + + static final FieldName charId = FieldName.forField("CharId"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } } diff --git a/src/generated/main/emu/nebula/proto/PlayerData.java b/src/generated/main/emu/nebula/proto/PlayerData.java index 0bc1375..1e55381 100644 --- a/src/generated/main/emu/nebula/proto/PlayerData.java +++ b/src/generated/main/emu/nebula/proto/PlayerData.java @@ -68,6 +68,11 @@ public final class PlayerData { */ private int towerTicket; + /** + * optional bool DailyMallRewardStatus = 40; + */ + private boolean dailyMallRewardStatus; + /** * optional bool DailyShopRewardStatus = 125; */ @@ -123,6 +128,11 @@ public final class PlayerData { */ private final Public.VampireSurvivorRecordInfo vampireSurvivorRecord = Public.VampireSurvivorRecordInfo.newInstance(); + /** + * optional .LastRead LastRead = 128; + */ + private final Public.LastRead lastRead = Public.LastRead.newInstance(); + /** * optional bytes Achievements = 18; */ @@ -596,12 +606,49 @@ public final class PlayerData { return this; } + /** + * optional bool DailyMallRewardStatus = 40; + * @return whether the dailyMallRewardStatus field is set + */ + public boolean hasDailyMallRewardStatus() { + return (bitField0_ & 0x00000200) != 0; + } + + /** + * optional bool DailyMallRewardStatus = 40; + * @return this + */ + public PlayerInfo clearDailyMallRewardStatus() { + bitField0_ &= ~0x00000200; + dailyMallRewardStatus = false; + return this; + } + + /** + * optional bool DailyMallRewardStatus = 40; + * @return the dailyMallRewardStatus + */ + public boolean getDailyMallRewardStatus() { + return dailyMallRewardStatus; + } + + /** + * optional bool DailyMallRewardStatus = 40; + * @param value the dailyMallRewardStatus to set + * @return this + */ + public PlayerInfo setDailyMallRewardStatus(final boolean value) { + bitField0_ |= 0x00000200; + dailyMallRewardStatus = value; + return this; + } + /** * optional bool DailyShopRewardStatus = 125; * @return whether the dailyShopRewardStatus field is set */ public boolean hasDailyShopRewardStatus() { - return (bitField0_ & 0x00000200) != 0; + return (bitField0_ & 0x00000400) != 0; } /** @@ -609,7 +656,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearDailyShopRewardStatus() { - bitField0_ &= ~0x00000200; + bitField0_ &= ~0x00000400; dailyShopRewardStatus = false; return this; } @@ -628,7 +675,7 @@ public final class PlayerData { * @return this */ public PlayerInfo setDailyShopRewardStatus(final boolean value) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; dailyShopRewardStatus = value; return this; } @@ -638,7 +685,7 @@ public final class PlayerData { * @return whether the acc field is set */ public boolean hasAcc() { - return (bitField0_ & 0x00000400) != 0; + return (bitField0_ & 0x00000800) != 0; } /** @@ -646,7 +693,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearAcc() { - bitField0_ &= ~0x00000400; + bitField0_ &= ~0x00000800; acc.clear(); return this; } @@ -675,7 +722,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public Public.AccInfo getMutableAcc() { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; return acc; } @@ -685,7 +732,7 @@ public final class PlayerData { * @return this */ public PlayerInfo setAcc(final Public.AccInfo value) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; acc.copyFrom(value); return this; } @@ -695,7 +742,7 @@ public final class PlayerData { * @return whether the formation field is set */ public boolean hasFormation() { - return (bitField0_ & 0x00000800) != 0; + return (bitField0_ & 0x00001000) != 0; } /** @@ -703,7 +750,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearFormation() { - bitField0_ &= ~0x00000800; + bitField0_ &= ~0x00001000; formation.clear(); return this; } @@ -732,7 +779,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public Public.TowerFormation getMutableFormation() { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; return formation; } @@ -742,7 +789,7 @@ public final class PlayerData { * @return this */ public PlayerInfo setFormation(final Public.TowerFormation value) { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; formation.copyFrom(value); return this; } @@ -752,7 +799,7 @@ public final class PlayerData { * @return whether the energy field is set */ public boolean hasEnergy() { - return (bitField0_ & 0x00001000) != 0; + return (bitField0_ & 0x00002000) != 0; } /** @@ -760,7 +807,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearEnergy() { - bitField0_ &= ~0x00001000; + bitField0_ &= ~0x00002000; energy.clear(); return this; } @@ -789,7 +836,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public EnergyInfo getMutableEnergy() { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; return energy; } @@ -799,7 +846,7 @@ public final class PlayerData { * @return this */ public PlayerInfo setEnergy(final EnergyInfo value) { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; energy.copyFrom(value); return this; } @@ -809,7 +856,7 @@ public final class PlayerData { * @return whether the worldClass field is set */ public boolean hasWorldClass() { - return (bitField0_ & 0x00002000) != 0; + return (bitField0_ & 0x00004000) != 0; } /** @@ -817,7 +864,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearWorldClass() { - bitField0_ &= ~0x00002000; + bitField0_ &= ~0x00004000; worldClass.clear(); return this; } @@ -846,7 +893,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public WorldClassInfo getMutableWorldClass() { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; return worldClass; } @@ -856,7 +903,7 @@ public final class PlayerData { * @return this */ public PlayerInfo setWorldClass(final WorldClassInfo value) { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; worldClass.copyFrom(value); return this; } @@ -866,7 +913,7 @@ public final class PlayerData { * @return whether the agent field is set */ public boolean hasAgent() { - return (bitField0_ & 0x00004000) != 0; + return (bitField0_ & 0x00008000) != 0; } /** @@ -874,7 +921,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearAgent() { - bitField0_ &= ~0x00004000; + bitField0_ &= ~0x00008000; agent.clear(); return this; } @@ -903,7 +950,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public Public.AgentData getMutableAgent() { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; return agent; } @@ -913,7 +960,7 @@ public final class PlayerData { * @return this */ public PlayerInfo setAgent(final Public.AgentData value) { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; agent.copyFrom(value); return this; } @@ -923,7 +970,7 @@ public final class PlayerData { * @return whether the quests field is set */ public boolean hasQuests() { - return (bitField0_ & 0x00008000) != 0; + return (bitField0_ & 0x00010000) != 0; } /** @@ -931,7 +978,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearQuests() { - bitField0_ &= ~0x00008000; + bitField0_ &= ~0x00010000; quests.clear(); return this; } @@ -960,7 +1007,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public Public.Quests getMutableQuests() { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; return quests; } @@ -970,7 +1017,7 @@ public final class PlayerData { * @return this */ public PlayerInfo setQuests(final Public.Quests value) { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; quests.copyFrom(value); return this; } @@ -980,7 +1027,7 @@ public final class PlayerData { * @return whether the state field is set */ public boolean hasState() { - return (bitField0_ & 0x00010000) != 0; + return (bitField0_ & 0x00020000) != 0; } /** @@ -988,7 +1035,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearState() { - bitField0_ &= ~0x00010000; + bitField0_ &= ~0x00020000; state.clear(); return this; } @@ -1017,7 +1064,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public Public.StateInfo getMutableState() { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; return state; } @@ -1027,7 +1074,7 @@ public final class PlayerData { * @return this */ public PlayerInfo setState(final Public.StateInfo value) { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; state.copyFrom(value); return this; } @@ -1037,7 +1084,7 @@ public final class PlayerData { * @return whether the phone field is set */ public boolean hasPhone() { - return (bitField0_ & 0x00020000) != 0; + return (bitField0_ & 0x00040000) != 0; } /** @@ -1045,7 +1092,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearPhone() { - bitField0_ &= ~0x00020000; + bitField0_ &= ~0x00040000; phone.clear(); return this; } @@ -1074,7 +1121,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public PhoneInfo getMutablePhone() { - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; return phone; } @@ -1084,7 +1131,7 @@ public final class PlayerData { * @return this */ public PlayerInfo setPhone(final PhoneInfo value) { - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; phone.copyFrom(value); return this; } @@ -1094,7 +1141,7 @@ public final class PlayerData { * @return whether the story field is set */ public boolean hasStory() { - return (bitField0_ & 0x00040000) != 0; + return (bitField0_ & 0x00080000) != 0; } /** @@ -1102,7 +1149,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearStory() { - bitField0_ &= ~0x00040000; + bitField0_ &= ~0x00080000; story.clear(); return this; } @@ -1131,7 +1178,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public Public.StoryInfo getMutableStory() { - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; return story; } @@ -1141,7 +1188,7 @@ public final class PlayerData { * @return this */ public PlayerInfo setStory(final Public.StoryInfo value) { - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; story.copyFrom(value); return this; } @@ -1151,7 +1198,7 @@ public final class PlayerData { * @return whether the vampireSurvivorRecord field is set */ public boolean hasVampireSurvivorRecord() { - return (bitField0_ & 0x00080000) != 0; + return (bitField0_ & 0x00100000) != 0; } /** @@ -1159,7 +1206,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearVampireSurvivorRecord() { - bitField0_ &= ~0x00080000; + bitField0_ &= ~0x00100000; vampireSurvivorRecord.clear(); return this; } @@ -1188,7 +1235,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public Public.VampireSurvivorRecordInfo getMutableVampireSurvivorRecord() { - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; return vampireSurvivorRecord; } @@ -1198,17 +1245,74 @@ public final class PlayerData { * @return this */ public PlayerInfo setVampireSurvivorRecord(final Public.VampireSurvivorRecordInfo value) { - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; vampireSurvivorRecord.copyFrom(value); return this; } + /** + * optional .LastRead LastRead = 128; + * @return whether the lastRead field is set + */ + public boolean hasLastRead() { + return (bitField0_ & 0x00200000) != 0; + } + + /** + * optional .LastRead LastRead = 128; + * @return this + */ + public PlayerInfo clearLastRead() { + bitField0_ &= ~0x00200000; + lastRead.clear(); + return this; + } + + /** + * optional .LastRead LastRead = 128; + * + * This 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 #getMutableLastRead()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.LastRead getLastRead() { + return lastRead; + } + + /** + * optional .LastRead LastRead = 128; + * + * 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 Public.LastRead getMutableLastRead() { + bitField0_ |= 0x00200000; + return lastRead; + } + + /** + * optional .LastRead LastRead = 128; + * @param value the lastRead to set + * @return this + */ + public PlayerInfo setLastRead(final Public.LastRead value) { + bitField0_ |= 0x00200000; + lastRead.copyFrom(value); + return this; + } + /** * optional bytes Achievements = 18; * @return whether the achievements field is set */ public boolean hasAchievements() { - return (bitField0_ & 0x00100000) != 0; + return (bitField0_ & 0x00400000) != 0; } /** @@ -1216,7 +1320,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearAchievements() { - bitField0_ &= ~0x00100000; + bitField0_ &= ~0x00400000; achievements.clear(); return this; } @@ -1245,7 +1349,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedByte getMutableAchievements() { - bitField0_ |= 0x00100000; + bitField0_ |= 0x00400000; return achievements; } @@ -1255,7 +1359,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAchievements(final byte value) { - bitField0_ |= 0x00100000; + bitField0_ |= 0x00400000; achievements.add(value); return this; } @@ -1266,7 +1370,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllAchievements(final byte... values) { - bitField0_ |= 0x00100000; + bitField0_ |= 0x00400000; achievements.addAll(values); return this; } @@ -1277,7 +1381,7 @@ public final class PlayerData { * @return this */ public PlayerInfo setAchievements(final byte... values) { - bitField0_ |= 0x00100000; + bitField0_ |= 0x00400000; achievements.copyFrom(values); return this; } @@ -1287,7 +1391,7 @@ public final class PlayerData { * @return whether the nextPackage field is set */ public boolean hasNextPackage() { - return (bitField0_ & 0x00200000) != 0; + return (bitField0_ & 0x00800000) != 0; } /** @@ -1295,7 +1399,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearNextPackage() { - bitField0_ &= ~0x00200000; + bitField0_ &= ~0x00800000; nextPackage.clear(); return this; } @@ -1324,7 +1428,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedByte getMutableNextPackage() { - bitField0_ |= 0x00200000; + bitField0_ |= 0x00800000; return nextPackage; } @@ -1334,7 +1438,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addNextPackage(final byte value) { - bitField0_ |= 0x00200000; + bitField0_ |= 0x00800000; nextPackage.add(value); return this; } @@ -1345,7 +1449,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllNextPackage(final byte... values) { - bitField0_ |= 0x00200000; + bitField0_ |= 0x00800000; nextPackage.addAll(values); return this; } @@ -1356,7 +1460,7 @@ public final class PlayerData { * @return this */ public PlayerInfo setNextPackage(final byte... values) { - bitField0_ |= 0x00200000; + bitField0_ |= 0x00800000; nextPackage.copyFrom(values); return this; } @@ -1366,7 +1470,7 @@ public final class PlayerData { * @return whether the rglPassedIds field is set */ public boolean hasRglPassedIds() { - return (bitField0_ & 0x00400000) != 0; + return (bitField0_ & 0x01000000) != 0; } /** @@ -1374,7 +1478,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearRglPassedIds() { - bitField0_ &= ~0x00400000; + bitField0_ &= ~0x01000000; rglPassedIds.clear(); return this; } @@ -1403,7 +1507,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedInt getMutableRglPassedIds() { - bitField0_ |= 0x00400000; + bitField0_ |= 0x01000000; return rglPassedIds; } @@ -1413,7 +1517,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addRglPassedIds(final int value) { - bitField0_ |= 0x00400000; + bitField0_ |= 0x01000000; rglPassedIds.add(value); return this; } @@ -1424,7 +1528,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllRglPassedIds(final int... values) { - bitField0_ |= 0x00400000; + bitField0_ |= 0x01000000; rglPassedIds.addAll(values); return this; } @@ -1434,7 +1538,7 @@ public final class PlayerData { * @return whether the board field is set */ public boolean hasBoard() { - return (bitField0_ & 0x00800000) != 0; + return (bitField0_ & 0x02000000) != 0; } /** @@ -1442,7 +1546,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearBoard() { - bitField0_ &= ~0x00800000; + bitField0_ &= ~0x02000000; board.clear(); return this; } @@ -1471,7 +1575,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedInt getMutableBoard() { - bitField0_ |= 0x00800000; + bitField0_ |= 0x02000000; return board; } @@ -1481,7 +1585,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addBoard(final int value) { - bitField0_ |= 0x00800000; + bitField0_ |= 0x02000000; board.add(value); return this; } @@ -1492,7 +1596,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllBoard(final int... values) { - bitField0_ |= 0x00800000; + bitField0_ |= 0x02000000; board.addAll(values); return this; } @@ -1502,7 +1606,7 @@ public final class PlayerData { * @return whether the datingCharIds field is set */ public boolean hasDatingCharIds() { - return (bitField0_ & 0x01000000) != 0; + return (bitField0_ & 0x04000000) != 0; } /** @@ -1510,7 +1614,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearDatingCharIds() { - bitField0_ &= ~0x01000000; + bitField0_ &= ~0x04000000; datingCharIds.clear(); return this; } @@ -1539,7 +1643,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedInt getMutableDatingCharIds() { - bitField0_ |= 0x01000000; + bitField0_ |= 0x04000000; return datingCharIds; } @@ -1549,7 +1653,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addDatingCharIds(final int value) { - bitField0_ |= 0x01000000; + bitField0_ |= 0x04000000; datingCharIds.add(value); return this; } @@ -1560,7 +1664,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllDatingCharIds(final int... values) { - bitField0_ |= 0x01000000; + bitField0_ |= 0x04000000; datingCharIds.addAll(values); return this; } @@ -1570,7 +1674,7 @@ public final class PlayerData { * @return whether the dailyActiveIds field is set */ public boolean hasDailyActiveIds() { - return (bitField0_ & 0x02000000) != 0; + return (bitField0_ & 0x08000000) != 0; } /** @@ -1578,7 +1682,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearDailyActiveIds() { - bitField0_ &= ~0x02000000; + bitField0_ &= ~0x08000000; dailyActiveIds.clear(); return this; } @@ -1607,7 +1711,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedInt getMutableDailyActiveIds() { - bitField0_ |= 0x02000000; + bitField0_ |= 0x08000000; return dailyActiveIds; } @@ -1617,7 +1721,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addDailyActiveIds(final int value) { - bitField0_ |= 0x02000000; + bitField0_ |= 0x08000000; dailyActiveIds.add(value); return this; } @@ -1628,7 +1732,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllDailyActiveIds(final int... values) { - bitField0_ |= 0x02000000; + bitField0_ |= 0x08000000; dailyActiveIds.addAll(values); return this; } @@ -1638,7 +1742,7 @@ public final class PlayerData { * @return whether the weeklyActiveIds field is set */ public boolean hasWeeklyActiveIds() { - return (bitField0_ & 0x04000000) != 0; + return (bitField0_ & 0x10000000) != 0; } /** @@ -1646,7 +1750,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearWeeklyActiveIds() { - bitField0_ &= ~0x04000000; + bitField0_ &= ~0x10000000; weeklyActiveIds.clear(); return this; } @@ -1675,7 +1779,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedInt getMutableWeeklyActiveIds() { - bitField0_ |= 0x04000000; + bitField0_ |= 0x10000000; return weeklyActiveIds; } @@ -1685,7 +1789,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addWeeklyActiveIds(final int value) { - bitField0_ |= 0x04000000; + bitField0_ |= 0x10000000; weeklyActiveIds.add(value); return this; } @@ -1696,7 +1800,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllWeeklyActiveIds(final int... values) { - bitField0_ |= 0x04000000; + bitField0_ |= 0x10000000; weeklyActiveIds.addAll(values); return this; } @@ -1706,7 +1810,7 @@ public final class PlayerData { * @return whether the honorList field is set */ public boolean hasHonorList() { - return (bitField0_ & 0x08000000) != 0; + return (bitField0_ & 0x20000000) != 0; } /** @@ -1714,7 +1818,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearHonorList() { - bitField0_ &= ~0x08000000; + bitField0_ &= ~0x20000000; honorList.clear(); return this; } @@ -1743,7 +1847,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedInt getMutableHonorList() { - bitField0_ |= 0x08000000; + bitField0_ |= 0x20000000; return honorList; } @@ -1753,7 +1857,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addHonorList(final int value) { - bitField0_ |= 0x08000000; + bitField0_ |= 0x20000000; honorList.add(value); return this; } @@ -1764,7 +1868,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllHonorList(final int... values) { - bitField0_ |= 0x08000000; + bitField0_ |= 0x20000000; honorList.addAll(values); return this; } @@ -1774,7 +1878,7 @@ public final class PlayerData { * @return whether the res field is set */ public boolean hasRes() { - return (bitField0_ & 0x10000000) != 0; + return (bitField0_ & 0x40000000) != 0; } /** @@ -1782,7 +1886,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearRes() { - bitField0_ &= ~0x10000000; + bitField0_ &= ~0x40000000; res.clear(); return this; } @@ -1811,7 +1915,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableRes() { - bitField0_ |= 0x10000000; + bitField0_ |= 0x40000000; return res; } @@ -1821,7 +1925,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addRes(final Public.Res value) { - bitField0_ |= 0x10000000; + bitField0_ |= 0x40000000; res.add(value); return this; } @@ -1832,7 +1936,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllRes(final Public.Res... values) { - bitField0_ |= 0x10000000; + bitField0_ |= 0x40000000; res.addAll(values); return this; } @@ -1842,7 +1946,7 @@ public final class PlayerData { * @return whether the items field is set */ public boolean hasItems() { - return (bitField0_ & 0x20000000) != 0; + return (bitField0_ & 0x80000000) != 0; } /** @@ -1850,7 +1954,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearItems() { - bitField0_ &= ~0x20000000; + bitField0_ &= ~0x80000000; items.clear(); return this; } @@ -1879,7 +1983,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableItems() { - bitField0_ |= 0x20000000; + bitField0_ |= 0x80000000; return items; } @@ -1889,7 +1993,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addItems(final Public.Item value) { - bitField0_ |= 0x20000000; + bitField0_ |= 0x80000000; items.add(value); return this; } @@ -1900,7 +2004,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllItems(final Public.Item... values) { - bitField0_ |= 0x20000000; + bitField0_ |= 0x80000000; items.addAll(values); return this; } @@ -1910,7 +2014,7 @@ public final class PlayerData { * @return whether the chars field is set */ public boolean hasChars() { - return (bitField0_ & 0x40000000) != 0; + return (bitField1_ & 0x00000001) != 0; } /** @@ -1918,7 +2022,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearChars() { - bitField0_ &= ~0x40000000; + bitField1_ &= ~0x00000001; chars.clear(); return this; } @@ -1947,7 +2051,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableChars() { - bitField0_ |= 0x40000000; + bitField1_ |= 0x00000001; return chars; } @@ -1957,7 +2061,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addChars(final Public.Char value) { - bitField0_ |= 0x40000000; + bitField1_ |= 0x00000001; chars.add(value); return this; } @@ -1968,7 +2072,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllChars(final Public.Char... values) { - bitField0_ |= 0x40000000; + bitField1_ |= 0x00000001; chars.addAll(values); return this; } @@ -1978,7 +2082,7 @@ public final class PlayerData { * @return whether the equipments field is set */ public boolean hasEquipments() { - return (bitField0_ & 0x80000000) != 0; + return (bitField1_ & 0x00000002) != 0; } /** @@ -1986,7 +2090,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearEquipments() { - bitField0_ &= ~0x80000000; + bitField1_ &= ~0x00000002; equipments.clear(); return this; } @@ -2015,7 +2119,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableEquipments() { - bitField0_ |= 0x80000000; + bitField1_ |= 0x00000002; return equipments; } @@ -2025,7 +2129,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addEquipments(final Public.EquipmentInfo value) { - bitField0_ |= 0x80000000; + bitField1_ |= 0x00000002; equipments.add(value); return this; } @@ -2036,7 +2140,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllEquipments(final Public.EquipmentInfo... values) { - bitField0_ |= 0x80000000; + bitField1_ |= 0x00000002; equipments.addAll(values); return this; } @@ -2046,7 +2150,7 @@ public final class PlayerData { * @return whether the regionBossLevels field is set */ public boolean hasRegionBossLevels() { - return (bitField1_ & 0x00000001) != 0; + return (bitField1_ & 0x00000004) != 0; } /** @@ -2054,7 +2158,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearRegionBossLevels() { - bitField1_ &= ~0x00000001; + bitField1_ &= ~0x00000004; regionBossLevels.clear(); return this; } @@ -2083,7 +2187,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableRegionBossLevels() { - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000004; return regionBossLevels; } @@ -2093,7 +2197,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addRegionBossLevels(final Public.RegionBossLevel value) { - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000004; regionBossLevels.add(value); return this; } @@ -2104,7 +2208,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllRegionBossLevels(final Public.RegionBossLevel... values) { - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000004; regionBossLevels.addAll(values); return this; } @@ -2114,7 +2218,7 @@ public final class PlayerData { * @return whether the handbook field is set */ public boolean hasHandbook() { - return (bitField1_ & 0x00000002) != 0; + return (bitField1_ & 0x00000008) != 0; } /** @@ -2122,7 +2226,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearHandbook() { - bitField1_ &= ~0x00000002; + bitField1_ &= ~0x00000008; handbook.clear(); return this; } @@ -2151,7 +2255,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableHandbook() { - bitField1_ |= 0x00000002; + bitField1_ |= 0x00000008; return handbook; } @@ -2161,7 +2265,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addHandbook(final Public.HandbookInfo value) { - bitField1_ |= 0x00000002; + bitField1_ |= 0x00000008; handbook.add(value); return this; } @@ -2172,7 +2276,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllHandbook(final Public.HandbookInfo... values) { - bitField1_ |= 0x00000002; + bitField1_ |= 0x00000008; handbook.addAll(values); return this; } @@ -2182,7 +2286,7 @@ public final class PlayerData { * @return whether the titles field is set */ public boolean hasTitles() { - return (bitField1_ & 0x00000004) != 0; + return (bitField1_ & 0x00000010) != 0; } /** @@ -2190,7 +2294,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearTitles() { - bitField1_ &= ~0x00000004; + bitField1_ &= ~0x00000010; titles.clear(); return this; } @@ -2219,7 +2323,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableTitles() { - bitField1_ |= 0x00000004; + bitField1_ |= 0x00000010; return titles; } @@ -2229,7 +2333,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addTitles(final Public.Title value) { - bitField1_ |= 0x00000004; + bitField1_ |= 0x00000010; titles.add(value); return this; } @@ -2240,7 +2344,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllTitles(final Public.Title... values) { - bitField1_ |= 0x00000004; + bitField1_ |= 0x00000010; titles.addAll(values); return this; } @@ -2250,7 +2354,7 @@ public final class PlayerData { * @return whether the dailyInstances field is set */ public boolean hasDailyInstances() { - return (bitField1_ & 0x00000008) != 0; + return (bitField1_ & 0x00000020) != 0; } /** @@ -2258,7 +2362,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearDailyInstances() { - bitField1_ &= ~0x00000008; + bitField1_ &= ~0x00000020; dailyInstances.clear(); return this; } @@ -2287,7 +2391,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableDailyInstances() { - bitField1_ |= 0x00000008; + bitField1_ |= 0x00000020; return dailyInstances; } @@ -2297,7 +2401,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addDailyInstances(final Public.DailyInstance value) { - bitField1_ |= 0x00000008; + bitField1_ |= 0x00000020; dailyInstances.add(value); return this; } @@ -2308,7 +2412,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllDailyInstances(final Public.DailyInstance... values) { - bitField1_ |= 0x00000008; + bitField1_ |= 0x00000020; dailyInstances.addAll(values); return this; } @@ -2318,7 +2422,7 @@ public final class PlayerData { * @return whether the dictionaries field is set */ public boolean hasDictionaries() { - return (bitField1_ & 0x00000010) != 0; + return (bitField1_ & 0x00000040) != 0; } /** @@ -2326,7 +2430,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearDictionaries() { - bitField1_ &= ~0x00000010; + bitField1_ &= ~0x00000040; dictionaries.clear(); return this; } @@ -2355,7 +2459,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableDictionaries() { - bitField1_ |= 0x00000010; + bitField1_ |= 0x00000040; return dictionaries; } @@ -2365,7 +2469,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addDictionaries(final DictionaryTab value) { - bitField1_ |= 0x00000010; + bitField1_ |= 0x00000040; dictionaries.add(value); return this; } @@ -2376,7 +2480,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllDictionaries(final DictionaryTab... values) { - bitField1_ |= 0x00000010; + bitField1_ |= 0x00000040; dictionaries.addAll(values); return this; } @@ -2386,7 +2490,7 @@ public final class PlayerData { * @return whether the activities field is set */ public boolean hasActivities() { - return (bitField1_ & 0x00000020) != 0; + return (bitField1_ & 0x00000080) != 0; } /** @@ -2394,7 +2498,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearActivities() { - bitField1_ &= ~0x00000020; + bitField1_ &= ~0x00000080; activities.clear(); return this; } @@ -2423,7 +2527,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableActivities() { - bitField1_ |= 0x00000020; + bitField1_ |= 0x00000080; return activities; } @@ -2433,7 +2537,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addActivities(final Public.Activity value) { - bitField1_ |= 0x00000020; + bitField1_ |= 0x00000080; activities.add(value); return this; } @@ -2444,7 +2548,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllActivities(final Public.Activity... values) { - bitField1_ |= 0x00000020; + bitField1_ |= 0x00000080; activities.addAll(values); return this; } @@ -2454,7 +2558,7 @@ public final class PlayerData { * @return whether the discs field is set */ public boolean hasDiscs() { - return (bitField1_ & 0x00000040) != 0; + return (bitField1_ & 0x00000100) != 0; } /** @@ -2462,7 +2566,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearDiscs() { - bitField1_ &= ~0x00000040; + bitField1_ &= ~0x00000100; discs.clear(); return this; } @@ -2491,7 +2595,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableDiscs() { - bitField1_ |= 0x00000040; + bitField1_ |= 0x00000100; return discs; } @@ -2501,7 +2605,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addDiscs(final Public.Disc value) { - bitField1_ |= 0x00000040; + bitField1_ |= 0x00000100; discs.add(value); return this; } @@ -2512,7 +2616,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllDiscs(final Public.Disc... values) { - bitField1_ |= 0x00000040; + bitField1_ |= 0x00000100; discs.addAll(values); return this; } @@ -2522,7 +2626,7 @@ public final class PlayerData { * @return whether the equipmentInstances field is set */ public boolean hasEquipmentInstances() { - return (bitField1_ & 0x00000080) != 0; + return (bitField1_ & 0x00000200) != 0; } /** @@ -2530,7 +2634,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearEquipmentInstances() { - bitField1_ &= ~0x00000080; + bitField1_ &= ~0x00000200; equipmentInstances.clear(); return this; } @@ -2559,7 +2663,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableEquipmentInstances() { - bitField1_ |= 0x00000080; + bitField1_ |= 0x00000200; return equipmentInstances; } @@ -2569,7 +2673,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addEquipmentInstances(final Public.EquipmentInstance value) { - bitField1_ |= 0x00000080; + bitField1_ |= 0x00000200; equipmentInstances.add(value); return this; } @@ -2580,7 +2684,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllEquipmentInstances(final Public.EquipmentInstance... values) { - bitField1_ |= 0x00000080; + bitField1_ |= 0x00000200; equipmentInstances.addAll(values); return this; } @@ -2590,7 +2694,7 @@ public final class PlayerData { * @return whether the skillInstances field is set */ public boolean hasSkillInstances() { - return (bitField1_ & 0x00000100) != 0; + return (bitField1_ & 0x00000400) != 0; } /** @@ -2598,7 +2702,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearSkillInstances() { - bitField1_ &= ~0x00000100; + bitField1_ &= ~0x00000400; skillInstances.clear(); return this; } @@ -2627,7 +2731,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableSkillInstances() { - bitField1_ |= 0x00000100; + bitField1_ |= 0x00000400; return skillInstances; } @@ -2637,7 +2741,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addSkillInstances(final Public.SkillInstance value) { - bitField1_ |= 0x00000100; + bitField1_ |= 0x00000400; skillInstances.add(value); return this; } @@ -2648,7 +2752,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllSkillInstances(final Public.SkillInstance... values) { - bitField1_ |= 0x00000100; + bitField1_ |= 0x00000400; skillInstances.addAll(values); return this; } @@ -2658,7 +2762,7 @@ public final class PlayerData { * @return whether the weekBossLevels field is set */ public boolean hasWeekBossLevels() { - return (bitField1_ & 0x00000200) != 0; + return (bitField1_ & 0x00000800) != 0; } /** @@ -2666,7 +2770,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearWeekBossLevels() { - bitField1_ &= ~0x00000200; + bitField1_ &= ~0x00000800; weekBossLevels.clear(); return this; } @@ -2695,7 +2799,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableWeekBossLevels() { - bitField1_ |= 0x00000200; + bitField1_ |= 0x00000800; return weekBossLevels; } @@ -2705,7 +2809,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addWeekBossLevels(final Public.WeekBossLevel value) { - bitField1_ |= 0x00000200; + bitField1_ |= 0x00000800; weekBossLevels.add(value); return this; } @@ -2716,7 +2820,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllWeekBossLevels(final Public.WeekBossLevel... values) { - bitField1_ |= 0x00000200; + bitField1_ |= 0x00000800; weekBossLevels.addAll(values); return this; } @@ -2726,7 +2830,7 @@ public final class PlayerData { * @return whether the charGemInstances field is set */ public boolean hasCharGemInstances() { - return (bitField1_ & 0x00000400) != 0; + return (bitField1_ & 0x00001000) != 0; } /** @@ -2734,7 +2838,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearCharGemInstances() { - bitField1_ &= ~0x00000400; + bitField1_ &= ~0x00001000; charGemInstances.clear(); return this; } @@ -2763,7 +2867,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableCharGemInstances() { - bitField1_ |= 0x00000400; + bitField1_ |= 0x00001000; return charGemInstances; } @@ -2773,7 +2877,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addCharGemInstances(final Public.CharGemInstance value) { - bitField1_ |= 0x00000400; + bitField1_ |= 0x00001000; charGemInstances.add(value); return this; } @@ -2784,7 +2888,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllCharGemInstances(final Public.CharGemInstance... values) { - bitField1_ |= 0x00000400; + bitField1_ |= 0x00001000; charGemInstances.addAll(values); return this; } @@ -2794,7 +2898,7 @@ public final class PlayerData { * @return whether the tutorialLevels field is set */ public boolean hasTutorialLevels() { - return (bitField1_ & 0x00000800) != 0; + return (bitField1_ & 0x00002000) != 0; } /** @@ -2802,7 +2906,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearTutorialLevels() { - bitField1_ &= ~0x00000800; + bitField1_ &= ~0x00002000; tutorialLevels.clear(); return this; } @@ -2831,7 +2935,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableTutorialLevels() { - bitField1_ |= 0x00000800; + bitField1_ |= 0x00002000; return tutorialLevels; } @@ -2841,7 +2945,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addTutorialLevels(final Public.TutorialLevel value) { - bitField1_ |= 0x00000800; + bitField1_ |= 0x00002000; tutorialLevels.add(value); return this; } @@ -2852,7 +2956,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllTutorialLevels(final Public.TutorialLevel... values) { - bitField1_ |= 0x00000800; + bitField1_ |= 0x00002000; tutorialLevels.addAll(values); return this; } @@ -2862,7 +2966,7 @@ public final class PlayerData { * @return whether the assists field is set */ public boolean hasAssists() { - return (bitField1_ & 0x00001000) != 0; + return (bitField1_ & 0x00004000) != 0; } /** @@ -2870,7 +2974,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearAssists() { - bitField1_ &= ~0x00001000; + bitField1_ &= ~0x00004000; assists.clear(); return this; } @@ -2899,7 +3003,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableAssists() { - bitField1_ |= 0x00001000; + bitField1_ |= 0x00004000; return assists; } @@ -2909,7 +3013,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAssists(final AssistInfo value) { - bitField1_ |= 0x00001000; + bitField1_ |= 0x00004000; assists.add(value); return this; } @@ -2920,7 +3024,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllAssists(final AssistInfo... values) { - bitField1_ |= 0x00001000; + bitField1_ |= 0x00004000; assists.addAll(values); return this; } @@ -2930,7 +3034,7 @@ public final class PlayerData { * @return whether the honors field is set */ public boolean hasHonors() { - return (bitField1_ & 0x00002000) != 0; + return (bitField1_ & 0x00008000) != 0; } /** @@ -2938,7 +3042,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearHonors() { - bitField1_ &= ~0x00002000; + bitField1_ &= ~0x00008000; honors.clear(); return this; } @@ -2967,7 +3071,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableHonors() { - bitField1_ |= 0x00002000; + bitField1_ |= 0x00008000; return honors; } @@ -2977,7 +3081,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addHonors(final Public.HonorInfo value) { - bitField1_ |= 0x00002000; + bitField1_ |= 0x00008000; honors.add(value); return this; } @@ -2988,7 +3092,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllHonors(final Public.HonorInfo... values) { - bitField1_ |= 0x00002000; + bitField1_ |= 0x00008000; honors.addAll(values); return this; } @@ -3007,6 +3111,7 @@ public final class PlayerData { equipmentDoubleCount = other.equipmentDoubleCount; tourGuideQuestGroup = other.tourGuideQuestGroup; towerTicket = other.towerTicket; + dailyMallRewardStatus = other.dailyMallRewardStatus; dailyShopRewardStatus = other.dailyShopRewardStatus; acc.copyFrom(other.acc); formation.copyFrom(other.formation); @@ -3018,6 +3123,7 @@ public final class PlayerData { phone.copyFrom(other.phone); story.copyFrom(other.story); vampireSurvivorRecord.copyFrom(other.vampireSurvivorRecord); + lastRead.copyFrom(other.lastRead); achievements.copyFrom(other.achievements); nextPackage.copyFrom(other.nextPackage); rglPassedIds.copyFrom(other.rglPassedIds); @@ -3028,11 +3134,11 @@ public final class PlayerData { honorList.copyFrom(other.honorList); res.copyFrom(other.res); items.copyFrom(other.items); - chars.copyFrom(other.chars); - equipments.copyFrom(other.equipments); } if ((bitField1_ | other.bitField1_) != 0) { bitField1_ = other.bitField1_; + chars.copyFrom(other.chars); + equipments.copyFrom(other.equipments); regionBossLevels.copyFrom(other.regionBossLevels); handbook.copyFrom(other.handbook); titles.copyFrom(other.titles); @@ -3084,6 +3190,9 @@ public final class PlayerData { if (other.hasTowerTicket()) { setTowerTicket(other.towerTicket); } + if (other.hasDailyMallRewardStatus()) { + setDailyMallRewardStatus(other.dailyMallRewardStatus); + } if (other.hasDailyShopRewardStatus()) { setDailyShopRewardStatus(other.dailyShopRewardStatus); } @@ -3117,6 +3226,9 @@ public final class PlayerData { if (other.hasVampireSurvivorRecord()) { getMutableVampireSurvivorRecord().mergeFrom(other.vampireSurvivorRecord); } + if (other.hasLastRead()) { + getMutableLastRead().mergeFrom(other.lastRead); + } if (other.hasAchievements()) { getMutableAchievements().copyFrom(other.achievements); } @@ -3215,6 +3327,7 @@ public final class PlayerData { equipmentDoubleCount = 0; tourGuideQuestGroup = 0; towerTicket = 0; + dailyMallRewardStatus = false; dailyShopRewardStatus = false; acc.clear(); formation.clear(); @@ -3226,6 +3339,7 @@ public final class PlayerData { phone.clear(); story.clear(); vampireSurvivorRecord.clear(); + lastRead.clear(); achievements.clear(); nextPackage.clear(); rglPassedIds.clear(); @@ -3273,6 +3387,7 @@ public final class PlayerData { phone.clearQuick(); story.clearQuick(); vampireSurvivorRecord.clearQuick(); + lastRead.clearQuick(); achievements.clear(); nextPackage.clear(); rglPassedIds.clear(); @@ -3322,6 +3437,7 @@ public final class PlayerData { && (!hasEquipmentDoubleCount() || equipmentDoubleCount == other.equipmentDoubleCount) && (!hasTourGuideQuestGroup() || tourGuideQuestGroup == other.tourGuideQuestGroup) && (!hasTowerTicket() || towerTicket == other.towerTicket) + && (!hasDailyMallRewardStatus() || dailyMallRewardStatus == other.dailyMallRewardStatus) && (!hasDailyShopRewardStatus() || dailyShopRewardStatus == other.dailyShopRewardStatus) && (!hasAcc() || acc.equals(other.acc)) && (!hasFormation() || formation.equals(other.formation)) @@ -3333,6 +3449,7 @@ public final class PlayerData { && (!hasPhone() || phone.equals(other.phone)) && (!hasStory() || story.equals(other.story)) && (!hasVampireSurvivorRecord() || vampireSurvivorRecord.equals(other.vampireSurvivorRecord)) + && (!hasLastRead() || lastRead.equals(other.lastRead)) && (!hasAchievements() || achievements.equals(other.achievements)) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) && (!hasRglPassedIds() || rglPassedIds.equals(other.rglPassedIds)) @@ -3400,196 +3517,204 @@ public final class PlayerData { output.writeUInt32NoTag(towerTicket); } if ((bitField0_ & 0x00000200) != 0) { + output.writeRawLittleEndian16((short) 704); + output.writeBoolNoTag(dailyMallRewardStatus); + } + if ((bitField0_ & 0x00000400) != 0) { output.writeRawLittleEndian16((short) 2024); output.writeBoolNoTag(dailyShopRewardStatus); } - if ((bitField0_ & 0x00000400) != 0) { + if ((bitField0_ & 0x00000800) != 0) { output.writeRawByte((byte) 10); output.writeMessageNoTag(acc); } - if ((bitField0_ & 0x00000800) != 0) { + if ((bitField0_ & 0x00001000) != 0) { output.writeRawByte((byte) 42); output.writeMessageNoTag(formation); } - if ((bitField0_ & 0x00001000) != 0) { + if ((bitField0_ & 0x00002000) != 0) { output.writeRawByte((byte) 58); output.writeMessageNoTag(energy); } - if ((bitField0_ & 0x00002000) != 0) { + if ((bitField0_ & 0x00004000) != 0) { output.writeRawByte((byte) 66); output.writeMessageNoTag(worldClass); } - if ((bitField0_ & 0x00004000) != 0) { + if ((bitField0_ & 0x00008000) != 0) { output.writeRawByte((byte) 74); output.writeMessageNoTag(agent); } - if ((bitField0_ & 0x00008000) != 0) { + if ((bitField0_ & 0x00010000) != 0) { output.writeRawByte((byte) 106); output.writeMessageNoTag(quests); } - if ((bitField0_ & 0x00010000) != 0) { + if ((bitField0_ & 0x00020000) != 0) { output.writeRawByte((byte) 114); output.writeMessageNoTag(state); } - if ((bitField0_ & 0x00020000) != 0) { + if ((bitField0_ & 0x00040000) != 0) { output.writeRawLittleEndian16((short) 458); output.writeMessageNoTag(phone); } - if ((bitField0_ & 0x00040000) != 0) { + if ((bitField0_ & 0x00080000) != 0) { output.writeRawLittleEndian16((short) 498); output.writeMessageNoTag(story); } - if ((bitField0_ & 0x00080000) != 0) { + if ((bitField0_ & 0x00100000) != 0) { output.writeRawLittleEndian16((short) 506); output.writeMessageNoTag(vampireSurvivorRecord); } - if ((bitField0_ & 0x00100000) != 0) { + if ((bitField0_ & 0x00200000) != 0) { + output.writeRawLittleEndian16((short) 2178); + output.writeMessageNoTag(lastRead); + } + if ((bitField0_ & 0x00400000) != 0) { output.writeRawLittleEndian16((short) 402); output.writeBytesNoTag(achievements); } - if ((bitField0_ & 0x00200000) != 0) { + if ((bitField0_ & 0x00800000) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); } - if ((bitField0_ & 0x00400000) != 0) { + if ((bitField0_ & 0x01000000) != 0) { for (int i = 0; i < rglPassedIds.length(); i++) { output.writeRawByte((byte) 80); output.writeUInt32NoTag(rglPassedIds.array()[i]); } } - if ((bitField0_ & 0x00800000) != 0) { + if ((bitField0_ & 0x02000000) != 0) { for (int i = 0; i < board.length(); i++) { output.writeRawLittleEndian16((short) 384); output.writeUInt32NoTag(board.array()[i]); } } - if ((bitField0_ & 0x01000000) != 0) { + if ((bitField0_ & 0x04000000) != 0) { for (int i = 0; i < datingCharIds.length(); i++) { output.writeRawLittleEndian16((short) 392); output.writeUInt32NoTag(datingCharIds.array()[i]); } } - if ((bitField0_ & 0x02000000) != 0) { + if ((bitField0_ & 0x08000000) != 0) { for (int i = 0; i < dailyActiveIds.length(); i++) { output.writeRawLittleEndian16((short) 640); output.writeUInt32NoTag(dailyActiveIds.array()[i]); } } - if ((bitField0_ & 0x04000000) != 0) { + if ((bitField0_ & 0x10000000) != 0) { for (int i = 0; i < weeklyActiveIds.length(); i++) { output.writeRawLittleEndian16((short) 688); output.writeUInt32NoTag(weeklyActiveIds.array()[i]); } } - if ((bitField0_ & 0x08000000) != 0) { + if ((bitField0_ & 0x20000000) != 0) { for (int i = 0; i < honorList.length(); i++) { output.writeRawLittleEndian16((short) 2008); output.writeUInt32NoTag(honorList.array()[i]); } } - if ((bitField0_ & 0x10000000) != 0) { + if ((bitField0_ & 0x40000000) != 0) { for (int i = 0; i < res.length(); i++) { output.writeRawByte((byte) 18); output.writeMessageNoTag(res.get(i)); } } - if ((bitField0_ & 0x20000000) != 0) { + if ((bitField0_ & 0x80000000) != 0) { for (int i = 0; i < items.length(); i++) { output.writeRawByte((byte) 26); output.writeMessageNoTag(items.get(i)); } } - if ((bitField0_ & 0x40000000) != 0) { + if ((bitField1_ & 0x00000001) != 0) { for (int i = 0; i < chars.length(); i++) { output.writeRawByte((byte) 34); output.writeMessageNoTag(chars.get(i)); } } - if ((bitField0_ & 0x80000000) != 0) { + if ((bitField1_ & 0x00000002) != 0) { for (int i = 0; i < equipments.length(); i++) { output.writeRawByte((byte) 90); output.writeMessageNoTag(equipments.get(i)); } } - if ((bitField1_ & 0x00000001) != 0) { + if ((bitField1_ & 0x00000004) != 0) { for (int i = 0; i < regionBossLevels.length(); i++) { output.writeRawByte((byte) 98); output.writeMessageNoTag(regionBossLevels.get(i)); } } - if ((bitField1_ & 0x00000002) != 0) { + if ((bitField1_ & 0x00000008) != 0) { for (int i = 0; i < handbook.length(); i++) { output.writeRawLittleEndian16((short) 410); output.writeMessageNoTag(handbook.get(i)); } } - if ((bitField1_ & 0x00000004) != 0) { + if ((bitField1_ & 0x00000010) != 0) { for (int i = 0; i < titles.length(); i++) { output.writeRawLittleEndian16((short) 426); output.writeMessageNoTag(titles.get(i)); } } - if ((bitField1_ & 0x00000008) != 0) { + if ((bitField1_ & 0x00000020) != 0) { for (int i = 0; i < dailyInstances.length(); i++) { output.writeRawLittleEndian16((short) 434); output.writeMessageNoTag(dailyInstances.get(i)); } } - if ((bitField1_ & 0x00000010) != 0) { + if ((bitField1_ & 0x00000040) != 0) { for (int i = 0; i < dictionaries.length(); i++) { output.writeRawLittleEndian16((short) 442); output.writeMessageNoTag(dictionaries.get(i)); } } - if ((bitField1_ & 0x00000020) != 0) { + if ((bitField1_ & 0x00000080) != 0) { for (int i = 0; i < activities.length(); i++) { output.writeRawLittleEndian16((short) 450); output.writeMessageNoTag(activities.get(i)); } } - if ((bitField1_ & 0x00000040) != 0) { + if ((bitField1_ & 0x00000100) != 0) { for (int i = 0; i < discs.length(); i++) { output.writeRawLittleEndian16((short) 482); output.writeMessageNoTag(discs.get(i)); } } - if ((bitField1_ & 0x00000080) != 0) { + if ((bitField1_ & 0x00000200) != 0) { for (int i = 0; i < equipmentInstances.length(); i++) { output.writeRawLittleEndian16((short) 490); output.writeMessageNoTag(equipmentInstances.get(i)); } } - if ((bitField1_ & 0x00000100) != 0) { + if ((bitField1_ & 0x00000400) != 0) { for (int i = 0; i < skillInstances.length(); i++) { output.writeRawLittleEndian16((short) 658); output.writeMessageNoTag(skillInstances.get(i)); } } - if ((bitField1_ & 0x00000200) != 0) { + if ((bitField1_ & 0x00000800) != 0) { for (int i = 0; i < weekBossLevels.length(); i++) { output.writeRawLittleEndian16((short) 666); output.writeMessageNoTag(weekBossLevels.get(i)); } } - if ((bitField1_ & 0x00000400) != 0) { + if ((bitField1_ & 0x00001000) != 0) { for (int i = 0; i < charGemInstances.length(); i++) { output.writeRawLittleEndian16((short) 674); output.writeMessageNoTag(charGemInstances.get(i)); } } - if ((bitField1_ & 0x00000800) != 0) { + if ((bitField1_ & 0x00002000) != 0) { for (int i = 0; i < tutorialLevels.length(); i++) { output.writeRawLittleEndian16((short) 682); output.writeMessageNoTag(tutorialLevels.get(i)); } } - if ((bitField1_ & 0x00001000) != 0) { + if ((bitField1_ & 0x00004000) != 0) { for (int i = 0; i < assists.length(); i++) { output.writeRawLittleEndian16((short) 698); output.writeMessageNoTag(assists.get(i)); } } - if ((bitField1_ & 0x00002000) != 0) { + if ((bitField1_ & 0x00008000) != 0) { for (int i = 0; i < honors.length(); i++) { output.writeRawLittleEndian16((short) 2018); output.writeMessageNoTag(honors.get(i)); @@ -3631,111 +3756,117 @@ public final class PlayerData { size += 3; } if ((bitField0_ & 0x00000400) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(acc); + size += 3; } if ((bitField0_ & 0x00000800) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(formation); + size += 1 + ProtoSink.computeMessageSizeNoTag(acc); } if ((bitField0_ & 0x00001000) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(energy); + size += 1 + ProtoSink.computeMessageSizeNoTag(formation); } if ((bitField0_ & 0x00002000) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(worldClass); + size += 1 + ProtoSink.computeMessageSizeNoTag(energy); } if ((bitField0_ & 0x00004000) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(agent); + size += 1 + ProtoSink.computeMessageSizeNoTag(worldClass); } if ((bitField0_ & 0x00008000) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(quests); + size += 1 + ProtoSink.computeMessageSizeNoTag(agent); } if ((bitField0_ & 0x00010000) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(state); + size += 1 + ProtoSink.computeMessageSizeNoTag(quests); } if ((bitField0_ & 0x00020000) != 0) { - size += 2 + ProtoSink.computeMessageSizeNoTag(phone); + size += 1 + ProtoSink.computeMessageSizeNoTag(state); } if ((bitField0_ & 0x00040000) != 0) { - size += 2 + ProtoSink.computeMessageSizeNoTag(story); + size += 2 + ProtoSink.computeMessageSizeNoTag(phone); } if ((bitField0_ & 0x00080000) != 0) { - size += 2 + ProtoSink.computeMessageSizeNoTag(vampireSurvivorRecord); + size += 2 + ProtoSink.computeMessageSizeNoTag(story); } if ((bitField0_ & 0x00100000) != 0) { - size += 2 + ProtoSink.computeBytesSizeNoTag(achievements); + size += 2 + ProtoSink.computeMessageSizeNoTag(vampireSurvivorRecord); } if ((bitField0_ & 0x00200000) != 0) { - size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + size += 2 + ProtoSink.computeMessageSizeNoTag(lastRead); } if ((bitField0_ & 0x00400000) != 0) { - size += (1 * rglPassedIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(rglPassedIds); + size += 2 + ProtoSink.computeBytesSizeNoTag(achievements); } if ((bitField0_ & 0x00800000) != 0) { - size += (2 * board.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(board); + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); } if ((bitField0_ & 0x01000000) != 0) { - size += (2 * datingCharIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(datingCharIds); + size += (1 * rglPassedIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(rglPassedIds); } if ((bitField0_ & 0x02000000) != 0) { - size += (2 * dailyActiveIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(dailyActiveIds); + size += (2 * board.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(board); } if ((bitField0_ & 0x04000000) != 0) { - size += (2 * weeklyActiveIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(weeklyActiveIds); + size += (2 * datingCharIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(datingCharIds); } if ((bitField0_ & 0x08000000) != 0) { - size += (2 * honorList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(honorList); + size += (2 * dailyActiveIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(dailyActiveIds); } if ((bitField0_ & 0x10000000) != 0) { - size += (1 * res.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(res); + size += (2 * weeklyActiveIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(weeklyActiveIds); } if ((bitField0_ & 0x20000000) != 0) { - size += (1 * items.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(items); + size += (2 * honorList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(honorList); } if ((bitField0_ & 0x40000000) != 0) { - size += (1 * chars.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(chars); + size += (1 * res.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(res); } if ((bitField0_ & 0x80000000) != 0) { - size += (1 * equipments.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(equipments); + size += (1 * items.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(items); } if ((bitField1_ & 0x00000001) != 0) { - size += (1 * regionBossLevels.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(regionBossLevels); + size += (1 * chars.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(chars); } if ((bitField1_ & 0x00000002) != 0) { - size += (2 * handbook.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(handbook); + size += (1 * equipments.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(equipments); } if ((bitField1_ & 0x00000004) != 0) { - size += (2 * titles.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(titles); + size += (1 * regionBossLevels.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(regionBossLevels); } if ((bitField1_ & 0x00000008) != 0) { - size += (2 * dailyInstances.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(dailyInstances); + size += (2 * handbook.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(handbook); } if ((bitField1_ & 0x00000010) != 0) { - size += (2 * dictionaries.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(dictionaries); + size += (2 * titles.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(titles); } if ((bitField1_ & 0x00000020) != 0) { - size += (2 * activities.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(activities); + size += (2 * dailyInstances.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(dailyInstances); } if ((bitField1_ & 0x00000040) != 0) { - size += (2 * discs.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(discs); + size += (2 * dictionaries.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(dictionaries); } if ((bitField1_ & 0x00000080) != 0) { - size += (2 * equipmentInstances.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(equipmentInstances); + size += (2 * activities.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(activities); } if ((bitField1_ & 0x00000100) != 0) { - size += (2 * skillInstances.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(skillInstances); + size += (2 * discs.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(discs); } if ((bitField1_ & 0x00000200) != 0) { - size += (2 * weekBossLevels.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(weekBossLevels); + size += (2 * equipmentInstances.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(equipmentInstances); } if ((bitField1_ & 0x00000400) != 0) { - size += (2 * charGemInstances.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(charGemInstances); + size += (2 * skillInstances.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(skillInstances); } if ((bitField1_ & 0x00000800) != 0) { - size += (2 * tutorialLevels.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(tutorialLevels); + size += (2 * weekBossLevels.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(weekBossLevels); } if ((bitField1_ & 0x00001000) != 0) { - size += (2 * assists.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(assists); + size += (2 * charGemInstances.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(charGemInstances); } if ((bitField1_ & 0x00002000) != 0) { + size += (2 * tutorialLevels.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(tutorialLevels); + } + if ((bitField1_ & 0x00004000) != 0) { + size += (2 * assists.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(assists); + } + if ((bitField1_ & 0x00008000) != 0) { size += (2 * honors.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(honors); } return size; @@ -3825,6 +3956,15 @@ public final class PlayerData { towerTicket = input.readUInt32(); bitField0_ |= 0x00000100; tag = input.readTag(); + if (tag != 320) { + break; + } + } + case 320: { + // dailyMallRewardStatus + dailyMallRewardStatus = input.readBool(); + bitField0_ |= 0x00000200; + tag = input.readTag(); if (tag != 1000) { break; } @@ -3832,7 +3972,7 @@ public final class PlayerData { case 1000: { // dailyShopRewardStatus dailyShopRewardStatus = input.readBool(); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; tag = input.readTag(); if (tag != 10) { break; @@ -3841,7 +3981,7 @@ public final class PlayerData { case 10: { // acc input.readMessage(acc); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; tag = input.readTag(); if (tag != 42) { break; @@ -3850,7 +3990,7 @@ public final class PlayerData { case 42: { // formation input.readMessage(formation); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; tag = input.readTag(); if (tag != 58) { break; @@ -3859,7 +3999,7 @@ public final class PlayerData { case 58: { // energy input.readMessage(energy); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; tag = input.readTag(); if (tag != 66) { break; @@ -3868,7 +4008,7 @@ public final class PlayerData { case 66: { // worldClass input.readMessage(worldClass); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; tag = input.readTag(); if (tag != 74) { break; @@ -3877,7 +4017,7 @@ public final class PlayerData { case 74: { // agent input.readMessage(agent); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; tag = input.readTag(); if (tag != 106) { break; @@ -3886,7 +4026,7 @@ public final class PlayerData { case 106: { // quests input.readMessage(quests); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; tag = input.readTag(); if (tag != 114) { break; @@ -3895,7 +4035,7 @@ public final class PlayerData { case 114: { // state input.readMessage(state); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; tag = input.readTag(); if (tag != 202) { break; @@ -3904,7 +4044,7 @@ public final class PlayerData { case 202: { // phone input.readMessage(phone); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; tag = input.readTag(); if (tag != 242) { break; @@ -3913,7 +4053,7 @@ public final class PlayerData { case 242: { // story input.readMessage(story); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; tag = input.readTag(); if (tag != 250) { break; @@ -3922,7 +4062,16 @@ public final class PlayerData { case 250: { // vampireSurvivorRecord input.readMessage(vampireSurvivorRecord); - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; + tag = input.readTag(); + if (tag != 1026) { + break; + } + } + case 1026: { + // lastRead + input.readMessage(lastRead); + bitField0_ |= 0x00200000; tag = input.readTag(); if (tag != 146) { break; @@ -3931,7 +4080,7 @@ public final class PlayerData { case 146: { // achievements input.readBytes(achievements); - bitField0_ |= 0x00100000; + bitField0_ |= 0x00400000; tag = input.readTag(); if (tag != 16378) { break; @@ -3940,7 +4089,7 @@ public final class PlayerData { case 16378: { // nextPackage input.readBytes(nextPackage); - bitField0_ |= 0x00200000; + bitField0_ |= 0x00800000; tag = input.readTag(); if (tag != 82) { break; @@ -3949,7 +4098,7 @@ public final class PlayerData { case 82: { // rglPassedIds [packed=true] input.readPackedUInt32(rglPassedIds, tag); - bitField0_ |= 0x00400000; + bitField0_ |= 0x01000000; tag = input.readTag(); if (tag != 130) { break; @@ -3958,7 +4107,7 @@ public final class PlayerData { case 130: { // board [packed=true] input.readPackedUInt32(board, tag); - bitField0_ |= 0x00800000; + bitField0_ |= 0x02000000; tag = input.readTag(); if (tag != 138) { break; @@ -3967,7 +4116,7 @@ public final class PlayerData { case 138: { // datingCharIds [packed=true] input.readPackedUInt32(datingCharIds, tag); - bitField0_ |= 0x01000000; + bitField0_ |= 0x04000000; tag = input.readTag(); if (tag != 258) { break; @@ -3976,7 +4125,7 @@ public final class PlayerData { case 258: { // dailyActiveIds [packed=true] input.readPackedUInt32(dailyActiveIds, tag); - bitField0_ |= 0x02000000; + bitField0_ |= 0x08000000; tag = input.readTag(); if (tag != 306) { break; @@ -3985,7 +4134,7 @@ public final class PlayerData { case 306: { // weeklyActiveIds [packed=true] input.readPackedUInt32(weeklyActiveIds, tag); - bitField0_ |= 0x04000000; + bitField0_ |= 0x10000000; tag = input.readTag(); if (tag != 986) { break; @@ -3994,7 +4143,7 @@ public final class PlayerData { case 986: { // honorList [packed=true] input.readPackedUInt32(honorList, tag); - bitField0_ |= 0x08000000; + bitField0_ |= 0x20000000; tag = input.readTag(); if (tag != 18) { break; @@ -4003,7 +4152,7 @@ public final class PlayerData { case 18: { // res tag = input.readRepeatedMessage(res, tag); - bitField0_ |= 0x10000000; + bitField0_ |= 0x40000000; if (tag != 26) { break; } @@ -4011,7 +4160,7 @@ public final class PlayerData { case 26: { // items tag = input.readRepeatedMessage(items, tag); - bitField0_ |= 0x20000000; + bitField0_ |= 0x80000000; if (tag != 34) { break; } @@ -4019,7 +4168,7 @@ public final class PlayerData { case 34: { // chars tag = input.readRepeatedMessage(chars, tag); - bitField0_ |= 0x40000000; + bitField1_ |= 0x00000001; if (tag != 90) { break; } @@ -4027,7 +4176,7 @@ public final class PlayerData { case 90: { // equipments tag = input.readRepeatedMessage(equipments, tag); - bitField0_ |= 0x80000000; + bitField1_ |= 0x00000002; if (tag != 98) { break; } @@ -4035,7 +4184,7 @@ public final class PlayerData { case 98: { // regionBossLevels tag = input.readRepeatedMessage(regionBossLevels, tag); - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000004; if (tag != 154) { break; } @@ -4043,7 +4192,7 @@ public final class PlayerData { case 154: { // handbook tag = input.readRepeatedMessage(handbook, tag); - bitField1_ |= 0x00000002; + bitField1_ |= 0x00000008; if (tag != 170) { break; } @@ -4051,7 +4200,7 @@ public final class PlayerData { case 170: { // titles tag = input.readRepeatedMessage(titles, tag); - bitField1_ |= 0x00000004; + bitField1_ |= 0x00000010; if (tag != 178) { break; } @@ -4059,7 +4208,7 @@ public final class PlayerData { case 178: { // dailyInstances tag = input.readRepeatedMessage(dailyInstances, tag); - bitField1_ |= 0x00000008; + bitField1_ |= 0x00000020; if (tag != 186) { break; } @@ -4067,7 +4216,7 @@ public final class PlayerData { case 186: { // dictionaries tag = input.readRepeatedMessage(dictionaries, tag); - bitField1_ |= 0x00000010; + bitField1_ |= 0x00000040; if (tag != 194) { break; } @@ -4075,7 +4224,7 @@ public final class PlayerData { case 194: { // activities tag = input.readRepeatedMessage(activities, tag); - bitField1_ |= 0x00000020; + bitField1_ |= 0x00000080; if (tag != 226) { break; } @@ -4083,7 +4232,7 @@ public final class PlayerData { case 226: { // discs tag = input.readRepeatedMessage(discs, tag); - bitField1_ |= 0x00000040; + bitField1_ |= 0x00000100; if (tag != 234) { break; } @@ -4091,7 +4240,7 @@ public final class PlayerData { case 234: { // equipmentInstances tag = input.readRepeatedMessage(equipmentInstances, tag); - bitField1_ |= 0x00000080; + bitField1_ |= 0x00000200; if (tag != 274) { break; } @@ -4099,7 +4248,7 @@ public final class PlayerData { case 274: { // skillInstances tag = input.readRepeatedMessage(skillInstances, tag); - bitField1_ |= 0x00000100; + bitField1_ |= 0x00000400; if (tag != 282) { break; } @@ -4107,7 +4256,7 @@ public final class PlayerData { case 282: { // weekBossLevels tag = input.readRepeatedMessage(weekBossLevels, tag); - bitField1_ |= 0x00000200; + bitField1_ |= 0x00000800; if (tag != 290) { break; } @@ -4115,7 +4264,7 @@ public final class PlayerData { case 290: { // charGemInstances tag = input.readRepeatedMessage(charGemInstances, tag); - bitField1_ |= 0x00000400; + bitField1_ |= 0x00001000; if (tag != 298) { break; } @@ -4123,7 +4272,7 @@ public final class PlayerData { case 298: { // tutorialLevels tag = input.readRepeatedMessage(tutorialLevels, tag); - bitField1_ |= 0x00000800; + bitField1_ |= 0x00002000; if (tag != 314) { break; } @@ -4131,7 +4280,7 @@ public final class PlayerData { case 314: { // assists tag = input.readRepeatedMessage(assists, tag); - bitField1_ |= 0x00001000; + bitField1_ |= 0x00004000; if (tag != 994) { break; } @@ -4139,7 +4288,7 @@ public final class PlayerData { case 994: { // honors tag = input.readRepeatedMessage(honors, tag); - bitField1_ |= 0x00002000; + bitField1_ |= 0x00008000; if (tag != 0) { break; } @@ -4157,37 +4306,37 @@ public final class PlayerData { case 80: { // rglPassedIds [packed=false] tag = input.readRepeatedUInt32(rglPassedIds, tag); - bitField0_ |= 0x00400000; + bitField0_ |= 0x01000000; break; } case 128: { // board [packed=false] tag = input.readRepeatedUInt32(board, tag); - bitField0_ |= 0x00800000; + bitField0_ |= 0x02000000; break; } case 136: { // datingCharIds [packed=false] tag = input.readRepeatedUInt32(datingCharIds, tag); - bitField0_ |= 0x01000000; + bitField0_ |= 0x04000000; break; } case 256: { // dailyActiveIds [packed=false] tag = input.readRepeatedUInt32(dailyActiveIds, tag); - bitField0_ |= 0x02000000; + bitField0_ |= 0x08000000; break; } case 304: { // weeklyActiveIds [packed=false] tag = input.readRepeatedUInt32(weeklyActiveIds, tag); - bitField0_ |= 0x04000000; + bitField0_ |= 0x10000000; break; } case 984: { // honorList [packed=false] tag = input.readRepeatedUInt32(honorList, tag); - bitField0_ |= 0x08000000; + bitField0_ |= 0x20000000; break; } } @@ -4225,114 +4374,120 @@ public final class PlayerData { output.writeUInt32(FieldNames.towerTicket, towerTicket); } if ((bitField0_ & 0x00000200) != 0) { - output.writeBool(FieldNames.dailyShopRewardStatus, dailyShopRewardStatus); + output.writeBool(FieldNames.dailyMallRewardStatus, dailyMallRewardStatus); } if ((bitField0_ & 0x00000400) != 0) { - output.writeMessage(FieldNames.acc, acc); + output.writeBool(FieldNames.dailyShopRewardStatus, dailyShopRewardStatus); } if ((bitField0_ & 0x00000800) != 0) { - output.writeMessage(FieldNames.formation, formation); + output.writeMessage(FieldNames.acc, acc); } if ((bitField0_ & 0x00001000) != 0) { - output.writeMessage(FieldNames.energy, energy); + output.writeMessage(FieldNames.formation, formation); } if ((bitField0_ & 0x00002000) != 0) { - output.writeMessage(FieldNames.worldClass, worldClass); + output.writeMessage(FieldNames.energy, energy); } if ((bitField0_ & 0x00004000) != 0) { - output.writeMessage(FieldNames.agent, agent); + output.writeMessage(FieldNames.worldClass, worldClass); } if ((bitField0_ & 0x00008000) != 0) { - output.writeMessage(FieldNames.quests, quests); + output.writeMessage(FieldNames.agent, agent); } if ((bitField0_ & 0x00010000) != 0) { - output.writeMessage(FieldNames.state, state); + output.writeMessage(FieldNames.quests, quests); } if ((bitField0_ & 0x00020000) != 0) { - output.writeMessage(FieldNames.phone, phone); + output.writeMessage(FieldNames.state, state); } if ((bitField0_ & 0x00040000) != 0) { - output.writeMessage(FieldNames.story, story); + output.writeMessage(FieldNames.phone, phone); } if ((bitField0_ & 0x00080000) != 0) { - output.writeMessage(FieldNames.vampireSurvivorRecord, vampireSurvivorRecord); + output.writeMessage(FieldNames.story, story); } if ((bitField0_ & 0x00100000) != 0) { - output.writeBytes(FieldNames.achievements, achievements); + output.writeMessage(FieldNames.vampireSurvivorRecord, vampireSurvivorRecord); } if ((bitField0_ & 0x00200000) != 0) { - output.writeBytes(FieldNames.nextPackage, nextPackage); + output.writeMessage(FieldNames.lastRead, lastRead); } if ((bitField0_ & 0x00400000) != 0) { - output.writeRepeatedUInt32(FieldNames.rglPassedIds, rglPassedIds); + output.writeBytes(FieldNames.achievements, achievements); } if ((bitField0_ & 0x00800000) != 0) { - output.writeRepeatedUInt32(FieldNames.board, board); + output.writeBytes(FieldNames.nextPackage, nextPackage); } if ((bitField0_ & 0x01000000) != 0) { - output.writeRepeatedUInt32(FieldNames.datingCharIds, datingCharIds); + output.writeRepeatedUInt32(FieldNames.rglPassedIds, rglPassedIds); } if ((bitField0_ & 0x02000000) != 0) { - output.writeRepeatedUInt32(FieldNames.dailyActiveIds, dailyActiveIds); + output.writeRepeatedUInt32(FieldNames.board, board); } if ((bitField0_ & 0x04000000) != 0) { - output.writeRepeatedUInt32(FieldNames.weeklyActiveIds, weeklyActiveIds); + output.writeRepeatedUInt32(FieldNames.datingCharIds, datingCharIds); } if ((bitField0_ & 0x08000000) != 0) { - output.writeRepeatedUInt32(FieldNames.honorList, honorList); + output.writeRepeatedUInt32(FieldNames.dailyActiveIds, dailyActiveIds); } if ((bitField0_ & 0x10000000) != 0) { - output.writeRepeatedMessage(FieldNames.res, res); + output.writeRepeatedUInt32(FieldNames.weeklyActiveIds, weeklyActiveIds); } if ((bitField0_ & 0x20000000) != 0) { - output.writeRepeatedMessage(FieldNames.items, items); + output.writeRepeatedUInt32(FieldNames.honorList, honorList); } if ((bitField0_ & 0x40000000) != 0) { - output.writeRepeatedMessage(FieldNames.chars, chars); + output.writeRepeatedMessage(FieldNames.res, res); } if ((bitField0_ & 0x80000000) != 0) { - output.writeRepeatedMessage(FieldNames.equipments, equipments); + output.writeRepeatedMessage(FieldNames.items, items); } if ((bitField1_ & 0x00000001) != 0) { - output.writeRepeatedMessage(FieldNames.regionBossLevels, regionBossLevels); + output.writeRepeatedMessage(FieldNames.chars, chars); } if ((bitField1_ & 0x00000002) != 0) { - output.writeRepeatedMessage(FieldNames.handbook, handbook); + output.writeRepeatedMessage(FieldNames.equipments, equipments); } if ((bitField1_ & 0x00000004) != 0) { - output.writeRepeatedMessage(FieldNames.titles, titles); + output.writeRepeatedMessage(FieldNames.regionBossLevels, regionBossLevels); } if ((bitField1_ & 0x00000008) != 0) { - output.writeRepeatedMessage(FieldNames.dailyInstances, dailyInstances); + output.writeRepeatedMessage(FieldNames.handbook, handbook); } if ((bitField1_ & 0x00000010) != 0) { - output.writeRepeatedMessage(FieldNames.dictionaries, dictionaries); + output.writeRepeatedMessage(FieldNames.titles, titles); } if ((bitField1_ & 0x00000020) != 0) { - output.writeRepeatedMessage(FieldNames.activities, activities); + output.writeRepeatedMessage(FieldNames.dailyInstances, dailyInstances); } if ((bitField1_ & 0x00000040) != 0) { - output.writeRepeatedMessage(FieldNames.discs, discs); + output.writeRepeatedMessage(FieldNames.dictionaries, dictionaries); } if ((bitField1_ & 0x00000080) != 0) { - output.writeRepeatedMessage(FieldNames.equipmentInstances, equipmentInstances); + output.writeRepeatedMessage(FieldNames.activities, activities); } if ((bitField1_ & 0x00000100) != 0) { - output.writeRepeatedMessage(FieldNames.skillInstances, skillInstances); + output.writeRepeatedMessage(FieldNames.discs, discs); } if ((bitField1_ & 0x00000200) != 0) { - output.writeRepeatedMessage(FieldNames.weekBossLevels, weekBossLevels); + output.writeRepeatedMessage(FieldNames.equipmentInstances, equipmentInstances); } if ((bitField1_ & 0x00000400) != 0) { - output.writeRepeatedMessage(FieldNames.charGemInstances, charGemInstances); + output.writeRepeatedMessage(FieldNames.skillInstances, skillInstances); } if ((bitField1_ & 0x00000800) != 0) { - output.writeRepeatedMessage(FieldNames.tutorialLevels, tutorialLevels); + output.writeRepeatedMessage(FieldNames.weekBossLevels, weekBossLevels); } if ((bitField1_ & 0x00001000) != 0) { - output.writeRepeatedMessage(FieldNames.assists, assists); + output.writeRepeatedMessage(FieldNames.charGemInstances, charGemInstances); } if ((bitField1_ & 0x00002000) != 0) { + output.writeRepeatedMessage(FieldNames.tutorialLevels, tutorialLevels); + } + if ((bitField1_ & 0x00004000) != 0) { + output.writeRepeatedMessage(FieldNames.assists, assists); + } + if ((bitField1_ & 0x00008000) != 0) { output.writeRepeatedMessage(FieldNames.honors, honors); } output.endObject(); @@ -4444,11 +4599,22 @@ public final class PlayerData { } break; } + case -987715506: { + if (input.isAtField(FieldNames.dailyMallRewardStatus)) { + if (!input.trySkipNullValue()) { + dailyMallRewardStatus = input.readBool(); + bitField0_ |= 0x00000200; + } + } else { + input.skipUnknownField(); + } + break; + } case -483313104: { if (input.isAtField(FieldNames.dailyShopRewardStatus)) { if (!input.trySkipNullValue()) { dailyShopRewardStatus = input.readBool(); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; } } else { input.skipUnknownField(); @@ -4459,7 +4625,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.acc)) { if (!input.trySkipNullValue()) { input.readMessage(acc); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; } } else { input.skipUnknownField(); @@ -4470,7 +4636,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.formation)) { if (!input.trySkipNullValue()) { input.readMessage(formation); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; } } else { input.skipUnknownField(); @@ -4481,7 +4647,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.energy)) { if (!input.trySkipNullValue()) { input.readMessage(energy); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; } } else { input.skipUnknownField(); @@ -4492,7 +4658,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.worldClass)) { if (!input.trySkipNullValue()) { input.readMessage(worldClass); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; } } else { input.skipUnknownField(); @@ -4503,7 +4669,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.agent)) { if (!input.trySkipNullValue()) { input.readMessage(agent); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; } } else { input.skipUnknownField(); @@ -4514,7 +4680,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.quests)) { if (!input.trySkipNullValue()) { input.readMessage(quests); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; } } else { input.skipUnknownField(); @@ -4525,7 +4691,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.state)) { if (!input.trySkipNullValue()) { input.readMessage(state); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; } } else { input.skipUnknownField(); @@ -4536,7 +4702,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.phone)) { if (!input.trySkipNullValue()) { input.readMessage(phone); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; } } else { input.skipUnknownField(); @@ -4547,7 +4713,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.story)) { if (!input.trySkipNullValue()) { input.readMessage(story); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; } } else { input.skipUnknownField(); @@ -4558,7 +4724,18 @@ public final class PlayerData { if (input.isAtField(FieldNames.vampireSurvivorRecord)) { if (!input.trySkipNullValue()) { input.readMessage(vampireSurvivorRecord); - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1394833044: { + if (input.isAtField(FieldNames.lastRead)) { + if (!input.trySkipNullValue()) { + input.readMessage(lastRead); + bitField0_ |= 0x00200000; } } else { input.skipUnknownField(); @@ -4569,7 +4746,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.achievements)) { if (!input.trySkipNullValue()) { input.readBytes(achievements); - bitField0_ |= 0x00100000; + bitField0_ |= 0x00400000; } } else { input.skipUnknownField(); @@ -4580,7 +4757,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.nextPackage)) { if (!input.trySkipNullValue()) { input.readBytes(nextPackage); - bitField0_ |= 0x00200000; + bitField0_ |= 0x00800000; } } else { input.skipUnknownField(); @@ -4591,7 +4768,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.rglPassedIds)) { if (!input.trySkipNullValue()) { input.readRepeatedUInt32(rglPassedIds); - bitField0_ |= 0x00400000; + bitField0_ |= 0x01000000; } } else { input.skipUnknownField(); @@ -4602,7 +4779,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.board)) { if (!input.trySkipNullValue()) { input.readRepeatedUInt32(board); - bitField0_ |= 0x00800000; + bitField0_ |= 0x02000000; } } else { input.skipUnknownField(); @@ -4613,7 +4790,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.datingCharIds)) { if (!input.trySkipNullValue()) { input.readRepeatedUInt32(datingCharIds); - bitField0_ |= 0x01000000; + bitField0_ |= 0x04000000; } } else { input.skipUnknownField(); @@ -4624,7 +4801,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.dailyActiveIds)) { if (!input.trySkipNullValue()) { input.readRepeatedUInt32(dailyActiveIds); - bitField0_ |= 0x02000000; + bitField0_ |= 0x08000000; } } else { input.skipUnknownField(); @@ -4635,7 +4812,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.weeklyActiveIds)) { if (!input.trySkipNullValue()) { input.readRepeatedUInt32(weeklyActiveIds); - bitField0_ |= 0x04000000; + bitField0_ |= 0x10000000; } } else { input.skipUnknownField(); @@ -4646,7 +4823,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.honorList)) { if (!input.trySkipNullValue()) { input.readRepeatedUInt32(honorList); - bitField0_ |= 0x08000000; + bitField0_ |= 0x20000000; } } else { input.skipUnknownField(); @@ -4657,7 +4834,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.res)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(res); - bitField0_ |= 0x10000000; + bitField0_ |= 0x40000000; } } else { input.skipUnknownField(); @@ -4668,7 +4845,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.items)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(items); - bitField0_ |= 0x20000000; + bitField0_ |= 0x80000000; } } else { input.skipUnknownField(); @@ -4679,7 +4856,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.chars)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(chars); - bitField0_ |= 0x40000000; + bitField1_ |= 0x00000001; } } else { input.skipUnknownField(); @@ -4690,7 +4867,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.equipments)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(equipments); - bitField0_ |= 0x80000000; + bitField1_ |= 0x00000002; } } else { input.skipUnknownField(); @@ -4701,7 +4878,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.regionBossLevels)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(regionBossLevels); - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000004; } } else { input.skipUnknownField(); @@ -4712,7 +4889,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.handbook)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(handbook); - bitField1_ |= 0x00000002; + bitField1_ |= 0x00000008; } } else { input.skipUnknownField(); @@ -4723,7 +4900,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.titles)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(titles); - bitField1_ |= 0x00000004; + bitField1_ |= 0x00000010; } } else { input.skipUnknownField(); @@ -4734,7 +4911,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.dailyInstances)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(dailyInstances); - bitField1_ |= 0x00000008; + bitField1_ |= 0x00000020; } } else { input.skipUnknownField(); @@ -4745,7 +4922,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.dictionaries)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(dictionaries); - bitField1_ |= 0x00000010; + bitField1_ |= 0x00000040; } } else { input.skipUnknownField(); @@ -4756,7 +4933,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.activities)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(activities); - bitField1_ |= 0x00000020; + bitField1_ |= 0x00000080; } } else { input.skipUnknownField(); @@ -4767,7 +4944,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.discs)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(discs); - bitField1_ |= 0x00000040; + bitField1_ |= 0x00000100; } } else { input.skipUnknownField(); @@ -4778,7 +4955,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.equipmentInstances)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(equipmentInstances); - bitField1_ |= 0x00000080; + bitField1_ |= 0x00000200; } } else { input.skipUnknownField(); @@ -4789,7 +4966,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.skillInstances)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(skillInstances); - bitField1_ |= 0x00000100; + bitField1_ |= 0x00000400; } } else { input.skipUnknownField(); @@ -4800,7 +4977,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.weekBossLevels)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(weekBossLevels); - bitField1_ |= 0x00000200; + bitField1_ |= 0x00000800; } } else { input.skipUnknownField(); @@ -4811,7 +4988,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.charGemInstances)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(charGemInstances); - bitField1_ |= 0x00000400; + bitField1_ |= 0x00001000; } } else { input.skipUnknownField(); @@ -4822,7 +4999,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.tutorialLevels)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(tutorialLevels); - bitField1_ |= 0x00000800; + bitField1_ |= 0x00002000; } } else { input.skipUnknownField(); @@ -4833,7 +5010,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.assists)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(assists); - bitField1_ |= 0x00001000; + bitField1_ |= 0x00004000; } } else { input.skipUnknownField(); @@ -4844,7 +5021,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.honors)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(honors); - bitField1_ |= 0x00002000; + bitField1_ |= 0x00008000; } } else { input.skipUnknownField(); @@ -4921,6 +5098,8 @@ public final class PlayerData { static final FieldName towerTicket = FieldName.forField("TowerTicket"); + static final FieldName dailyMallRewardStatus = FieldName.forField("DailyMallRewardStatus"); + static final FieldName dailyShopRewardStatus = FieldName.forField("DailyShopRewardStatus"); static final FieldName acc = FieldName.forField("Acc"); @@ -4943,6 +5122,8 @@ public final class PlayerData { static final FieldName vampireSurvivorRecord = FieldName.forField("VampireSurvivorRecord"); + static final FieldName lastRead = FieldName.forField("LastRead"); + static final FieldName achievements = FieldName.forField("Achievements"); static final FieldName nextPackage = FieldName.forField("NextPackage"); diff --git a/src/generated/main/emu/nebula/proto/PlayerLastReadUpdate.java b/src/generated/main/emu/nebula/proto/PlayerLastReadUpdate.java new file mode 100644 index 0000000..ac1bd68 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/PlayerLastReadUpdate.java @@ -0,0 +1,5 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.nebula.proto; + +public final class PlayerLastReadUpdate { +} diff --git a/src/generated/main/emu/nebula/proto/Public.java b/src/generated/main/emu/nebula/proto/Public.java index ab73489..af706c5 100644 --- a/src/generated/main/emu/nebula/proto/Public.java +++ b/src/generated/main/emu/nebula/proto/Public.java @@ -51784,6 +51784,2536 @@ public final class Public { } } + /** + * Protobuf type {@code Milkout} + */ + public static final class Milkout extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .MilkoutLevel Levels = 1; + */ + private final RepeatedMessage levels = RepeatedMessage.newEmptyInstance(MilkoutLevel.getFactory()); + + /** + * repeated .MilkoutCharacter Characters = 2; + */ + private final RepeatedMessage characters = RepeatedMessage.newEmptyInstance(MilkoutCharacter.getFactory()); + + private Milkout() { + } + + /** + * @return a new empty instance of {@code Milkout} + */ + public static Milkout newInstance() { + return new Milkout(); + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public Milkout clearNextPackage() { + bitField0_ &= ~0x00000001; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * This 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 #getMutableNextPackage()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedByte getNextPackage() { + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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 RepeatedByte getMutableNextPackage() { + bitField0_ |= 0x00000001; + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public Milkout addNextPackage(final byte value) { + bitField0_ |= 0x00000001; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public Milkout addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public Milkout setNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .MilkoutLevel Levels = 1; + * @return whether the levels field is set + */ + public boolean hasLevels() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated .MilkoutLevel Levels = 1; + * @return this + */ + public Milkout clearLevels() { + bitField0_ &= ~0x00000002; + levels.clear(); + return this; + } + + /** + * repeated .MilkoutLevel Levels = 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 #getMutableLevels()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getLevels() { + return levels; + } + + /** + * repeated .MilkoutLevel Levels = 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 getMutableLevels() { + bitField0_ |= 0x00000002; + return levels; + } + + /** + * repeated .MilkoutLevel Levels = 1; + * @param value the levels to add + * @return this + */ + public Milkout addLevels(final MilkoutLevel value) { + bitField0_ |= 0x00000002; + levels.add(value); + return this; + } + + /** + * repeated .MilkoutLevel Levels = 1; + * @param values the levels to add + * @return this + */ + public Milkout addAllLevels(final MilkoutLevel... values) { + bitField0_ |= 0x00000002; + levels.addAll(values); + return this; + } + + /** + * repeated .MilkoutCharacter Characters = 2; + * @return whether the characters field is set + */ + public boolean hasCharacters() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated .MilkoutCharacter Characters = 2; + * @return this + */ + public Milkout clearCharacters() { + bitField0_ &= ~0x00000004; + characters.clear(); + return this; + } + + /** + * repeated .MilkoutCharacter Characters = 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 #getMutableCharacters()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getCharacters() { + return characters; + } + + /** + * repeated .MilkoutCharacter Characters = 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 getMutableCharacters() { + bitField0_ |= 0x00000004; + return characters; + } + + /** + * repeated .MilkoutCharacter Characters = 2; + * @param value the characters to add + * @return this + */ + public Milkout addCharacters(final MilkoutCharacter value) { + bitField0_ |= 0x00000004; + characters.add(value); + return this; + } + + /** + * repeated .MilkoutCharacter Characters = 2; + * @param values the characters to add + * @return this + */ + public Milkout addAllCharacters(final MilkoutCharacter... values) { + bitField0_ |= 0x00000004; + characters.addAll(values); + return this; + } + + @Override + public Milkout copyFrom(final Milkout other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + nextPackage.copyFrom(other.nextPackage); + levels.copyFrom(other.levels); + characters.copyFrom(other.characters); + } + return this; + } + + @Override + public Milkout mergeFrom(final Milkout other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasLevels()) { + getMutableLevels().addAll(other.levels); + } + if (other.hasCharacters()) { + getMutableCharacters().addAll(other.characters); + } + return this; + } + + @Override + public Milkout clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + levels.clear(); + characters.clear(); + return this; + } + + @Override + public Milkout clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + levels.clearQuick(); + characters.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof Milkout)) { + return false; + } + Milkout other = (Milkout) o; + return bitField0_ == other.bitField0_ + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasLevels() || levels.equals(other.levels)) + && (!hasCharacters() || characters.equals(other.characters)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000002) != 0) { + for (int i = 0; i < levels.length(); i++) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(levels.get(i)); + } + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < characters.length(); i++) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(characters.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * levels.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(levels); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * characters.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(characters); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public Milkout mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // levels + tag = input.readRepeatedMessage(levels, tag); + bitField0_ |= 0x00000002; + if (tag != 18) { + break; + } + } + case 18: { + // characters + tag = input.readRepeatedMessage(characters, tag); + bitField0_ |= 0x00000004; + 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.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedMessage(FieldNames.levels, levels); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedMessage(FieldNames.characters, characters); + } + output.endObject(); + } + + @Override + public Milkout mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2022260337: { + if (input.isAtField(FieldNames.levels)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(levels); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1056078198: { + if (input.isAtField(FieldNames.characters)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(characters); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public Milkout clone() { + return new Milkout().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static Milkout parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new Milkout(), data).checkInitialized(); + } + + public static Milkout parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new Milkout(), input).checkInitialized(); + } + + public static Milkout parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new Milkout(), input).checkInitialized(); + } + + /** + * @return factory for creating Milkout messages + */ + public static MessageFactory getFactory() { + return MilkoutFactory.INSTANCE; + } + + private enum MilkoutFactory implements MessageFactory { + INSTANCE; + + @Override + public Milkout create() { + return Milkout.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName levels = FieldName.forField("Levels"); + + static final FieldName characters = FieldName.forField("Characters"); + } + } + + /** + * Protobuf type {@code MilkoutLevel} + */ + public static final class MilkoutLevel extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Id = 1; + */ + private int id; + + /** + * optional bool FirstComplete = 2; + */ + private boolean firstComplete; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private MilkoutLevel() { + } + + /** + * @return a new empty instance of {@code MilkoutLevel} + */ + public static MilkoutLevel newInstance() { + return new MilkoutLevel(); + } + + /** + * optional uint32 Id = 1; + * @return whether the id field is set + */ + public boolean hasId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 Id = 1; + * @return this + */ + public MilkoutLevel clearId() { + bitField0_ &= ~0x00000001; + id = 0; + return this; + } + + /** + * optional uint32 Id = 1; + * @return the id + */ + public int getId() { + return id; + } + + /** + * optional uint32 Id = 1; + * @param value the id to set + * @return this + */ + public MilkoutLevel setId(final int value) { + bitField0_ |= 0x00000001; + id = value; + return this; + } + + /** + * optional bool FirstComplete = 2; + * @return whether the firstComplete field is set + */ + public boolean hasFirstComplete() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bool FirstComplete = 2; + * @return this + */ + public MilkoutLevel clearFirstComplete() { + bitField0_ &= ~0x00000002; + firstComplete = false; + return this; + } + + /** + * optional bool FirstComplete = 2; + * @return the firstComplete + */ + public boolean getFirstComplete() { + return firstComplete; + } + + /** + * optional bool FirstComplete = 2; + * @param value the firstComplete to set + * @return this + */ + public MilkoutLevel setFirstComplete(final boolean value) { + bitField0_ |= 0x00000002; + firstComplete = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public MilkoutLevel clearNextPackage() { + bitField0_ &= ~0x00000004; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * This 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 #getMutableNextPackage()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedByte getNextPackage() { + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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 RepeatedByte getMutableNextPackage() { + bitField0_ |= 0x00000004; + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public MilkoutLevel addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public MilkoutLevel addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public MilkoutLevel setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + @Override + public MilkoutLevel copyFrom(final MilkoutLevel other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + id = other.id; + firstComplete = other.firstComplete; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public MilkoutLevel mergeFrom(final MilkoutLevel other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasId()) { + setId(other.id); + } + if (other.hasFirstComplete()) { + setFirstComplete(other.firstComplete); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public MilkoutLevel clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + id = 0; + firstComplete = false; + nextPackage.clear(); + return this; + } + + @Override + public MilkoutLevel clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof MilkoutLevel)) { + return false; + } + MilkoutLevel other = (MilkoutLevel) o; + return bitField0_ == other.bitField0_ + && (!hasId() || id == other.id) + && (!hasFirstComplete() || firstComplete == other.firstComplete) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(id); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeBoolNoTag(firstComplete); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(id); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public MilkoutLevel mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // id + id = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // firstComplete + firstComplete = input.readBool(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + 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.id, id); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBool(FieldNames.firstComplete, firstComplete); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public MilkoutLevel mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 2363: { + if (input.isAtField(FieldNames.id)) { + if (!input.trySkipNullValue()) { + id = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2041047017: { + if (input.isAtField(FieldNames.firstComplete)) { + if (!input.trySkipNullValue()) { + firstComplete = input.readBool(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public MilkoutLevel clone() { + return new MilkoutLevel().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static MilkoutLevel parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new MilkoutLevel(), data).checkInitialized(); + } + + public static MilkoutLevel parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new MilkoutLevel(), input).checkInitialized(); + } + + public static MilkoutLevel parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new MilkoutLevel(), input).checkInitialized(); + } + + /** + * @return factory for creating MilkoutLevel messages + */ + public static MessageFactory getFactory() { + return MilkoutLevelFactory.INSTANCE; + } + + private enum MilkoutLevelFactory implements MessageFactory { + INSTANCE; + + @Override + public MilkoutLevel create() { + return MilkoutLevel.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName id = FieldName.forField("Id"); + + static final FieldName firstComplete = FieldName.forField("FirstComplete"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code MilkoutCharacter} + */ + public static final class MilkoutCharacter extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Id = 1; + */ + private int id; + + /** + * optional uint32 BattleTimes = 2; + */ + private int battleTimes; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private MilkoutCharacter() { + } + + /** + * @return a new empty instance of {@code MilkoutCharacter} + */ + public static MilkoutCharacter newInstance() { + return new MilkoutCharacter(); + } + + /** + * optional uint32 Id = 1; + * @return whether the id field is set + */ + public boolean hasId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 Id = 1; + * @return this + */ + public MilkoutCharacter clearId() { + bitField0_ &= ~0x00000001; + id = 0; + return this; + } + + /** + * optional uint32 Id = 1; + * @return the id + */ + public int getId() { + return id; + } + + /** + * optional uint32 Id = 1; + * @param value the id to set + * @return this + */ + public MilkoutCharacter setId(final int value) { + bitField0_ |= 0x00000001; + id = value; + return this; + } + + /** + * optional uint32 BattleTimes = 2; + * @return whether the battleTimes field is set + */ + public boolean hasBattleTimes() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 BattleTimes = 2; + * @return this + */ + public MilkoutCharacter clearBattleTimes() { + bitField0_ &= ~0x00000002; + battleTimes = 0; + return this; + } + + /** + * optional uint32 BattleTimes = 2; + * @return the battleTimes + */ + public int getBattleTimes() { + return battleTimes; + } + + /** + * optional uint32 BattleTimes = 2; + * @param value the battleTimes to set + * @return this + */ + public MilkoutCharacter setBattleTimes(final int value) { + bitField0_ |= 0x00000002; + battleTimes = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public MilkoutCharacter clearNextPackage() { + bitField0_ &= ~0x00000004; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * This 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 #getMutableNextPackage()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedByte getNextPackage() { + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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 RepeatedByte getMutableNextPackage() { + bitField0_ |= 0x00000004; + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public MilkoutCharacter addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public MilkoutCharacter addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public MilkoutCharacter setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + @Override + public MilkoutCharacter copyFrom(final MilkoutCharacter other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + id = other.id; + battleTimes = other.battleTimes; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public MilkoutCharacter mergeFrom(final MilkoutCharacter other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasId()) { + setId(other.id); + } + if (other.hasBattleTimes()) { + setBattleTimes(other.battleTimes); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public MilkoutCharacter clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + id = 0; + battleTimes = 0; + nextPackage.clear(); + return this; + } + + @Override + public MilkoutCharacter clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof MilkoutCharacter)) { + return false; + } + MilkoutCharacter other = (MilkoutCharacter) o; + return bitField0_ == other.bitField0_ + && (!hasId() || id == other.id) + && (!hasBattleTimes() || battleTimes == other.battleTimes) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(id); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(battleTimes); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(id); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(battleTimes); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public MilkoutCharacter mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // id + id = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // battleTimes + battleTimes = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + 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.id, id); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.battleTimes, battleTimes); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public MilkoutCharacter mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 2363: { + if (input.isAtField(FieldNames.id)) { + if (!input.trySkipNullValue()) { + id = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 908075342: { + if (input.isAtField(FieldNames.battleTimes)) { + if (!input.trySkipNullValue()) { + battleTimes = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public MilkoutCharacter clone() { + return new MilkoutCharacter().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static MilkoutCharacter parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new MilkoutCharacter(), data).checkInitialized(); + } + + public static MilkoutCharacter parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new MilkoutCharacter(), input).checkInitialized(); + } + + public static MilkoutCharacter parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new MilkoutCharacter(), input).checkInitialized(); + } + + /** + * @return factory for creating MilkoutCharacter messages + */ + public static MessageFactory getFactory() { + return MilkoutCharacterFactory.INSTANCE; + } + + private enum MilkoutCharacterFactory implements MessageFactory { + INSTANCE; + + @Override + public MilkoutCharacter create() { + return MilkoutCharacter.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName id = FieldName.forField("Id"); + + static final FieldName battleTimes = FieldName.forField("BattleTimes"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code ActivityPenguinCardLevel} + */ + public static final class ActivityPenguinCardLevel extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Id = 1; + */ + private int id; + + /** + * optional uint32 Star = 2; + */ + private int star; + + /** + * optional uint32 Score = 3; + */ + private int score; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private ActivityPenguinCardLevel() { + } + + /** + * @return a new empty instance of {@code ActivityPenguinCardLevel} + */ + public static ActivityPenguinCardLevel newInstance() { + return new ActivityPenguinCardLevel(); + } + + /** + * optional uint32 Id = 1; + * @return whether the id field is set + */ + public boolean hasId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 Id = 1; + * @return this + */ + public ActivityPenguinCardLevel clearId() { + bitField0_ &= ~0x00000001; + id = 0; + return this; + } + + /** + * optional uint32 Id = 1; + * @return the id + */ + public int getId() { + return id; + } + + /** + * optional uint32 Id = 1; + * @param value the id to set + * @return this + */ + public ActivityPenguinCardLevel setId(final int value) { + bitField0_ |= 0x00000001; + id = value; + return this; + } + + /** + * optional uint32 Star = 2; + * @return whether the star field is set + */ + public boolean hasStar() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 Star = 2; + * @return this + */ + public ActivityPenguinCardLevel clearStar() { + bitField0_ &= ~0x00000002; + star = 0; + return this; + } + + /** + * optional uint32 Star = 2; + * @return the star + */ + public int getStar() { + return star; + } + + /** + * optional uint32 Star = 2; + * @param value the star to set + * @return this + */ + public ActivityPenguinCardLevel setStar(final int value) { + bitField0_ |= 0x00000002; + star = value; + return this; + } + + /** + * optional uint32 Score = 3; + * @return whether the score field is set + */ + public boolean hasScore() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 Score = 3; + * @return this + */ + public ActivityPenguinCardLevel clearScore() { + bitField0_ &= ~0x00000004; + score = 0; + return this; + } + + /** + * optional uint32 Score = 3; + * @return the score + */ + public int getScore() { + return score; + } + + /** + * optional uint32 Score = 3; + * @param value the score to set + * @return this + */ + public ActivityPenguinCardLevel setScore(final int value) { + bitField0_ |= 0x00000004; + score = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public ActivityPenguinCardLevel clearNextPackage() { + bitField0_ &= ~0x00000008; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * This 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 #getMutableNextPackage()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedByte getNextPackage() { + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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 RepeatedByte getMutableNextPackage() { + bitField0_ |= 0x00000008; + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public ActivityPenguinCardLevel addNextPackage(final byte value) { + bitField0_ |= 0x00000008; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public ActivityPenguinCardLevel addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public ActivityPenguinCardLevel setNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.copyFrom(values); + return this; + } + + @Override + public ActivityPenguinCardLevel copyFrom(final ActivityPenguinCardLevel other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + id = other.id; + star = other.star; + score = other.score; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public ActivityPenguinCardLevel mergeFrom(final ActivityPenguinCardLevel other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasId()) { + setId(other.id); + } + if (other.hasStar()) { + setStar(other.star); + } + if (other.hasScore()) { + setScore(other.score); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public ActivityPenguinCardLevel clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + id = 0; + star = 0; + score = 0; + nextPackage.clear(); + return this; + } + + @Override + public ActivityPenguinCardLevel clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ActivityPenguinCardLevel)) { + return false; + } + ActivityPenguinCardLevel other = (ActivityPenguinCardLevel) o; + return bitField0_ == other.bitField0_ + && (!hasId() || id == other.id) + && (!hasStar() || star == other.star) + && (!hasScore() || score == other.score) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(id); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(star); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(score); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(id); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(star); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(score); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ActivityPenguinCardLevel mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // id + id = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // star + star = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // score + score = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + 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.id, id); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.star, star); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.score, score); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public ActivityPenguinCardLevel mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 2363: { + if (input.isAtField(FieldNames.id)) { + if (!input.trySkipNullValue()) { + id = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2587250: { + if (input.isAtField(FieldNames.star)) { + if (!input.trySkipNullValue()) { + star = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 79711858: { + if (input.isAtField(FieldNames.score)) { + if (!input.trySkipNullValue()) { + score = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ActivityPenguinCardLevel clone() { + return new ActivityPenguinCardLevel().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ActivityPenguinCardLevel parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ActivityPenguinCardLevel(), data).checkInitialized(); + } + + public static ActivityPenguinCardLevel parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ActivityPenguinCardLevel(), input).checkInitialized(); + } + + public static ActivityPenguinCardLevel parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ActivityPenguinCardLevel(), input).checkInitialized(); + } + + /** + * @return factory for creating ActivityPenguinCardLevel messages + */ + public static MessageFactory getFactory() { + return ActivityPenguinCardLevelFactory.INSTANCE; + } + + private enum ActivityPenguinCardLevelFactory implements MessageFactory { + INSTANCE; + + @Override + public ActivityPenguinCardLevel create() { + return ActivityPenguinCardLevel.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName id = FieldName.forField("Id"); + + static final FieldName star = FieldName.forField("Star"); + + static final FieldName score = FieldName.forField("Score"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code ActivityPenguinCard} + */ + public static final class ActivityPenguinCard extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 ActivityId = 1; + */ + private int activityId; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .ActivityPenguinCardLevel Levels = 2; + */ + private final RepeatedMessage levels = RepeatedMessage.newEmptyInstance(ActivityPenguinCardLevel.getFactory()); + + /** + * repeated .ActivityQuest Quests = 3; + */ + private final RepeatedMessage quests = RepeatedMessage.newEmptyInstance(ActivityQuest.getFactory()); + + private ActivityPenguinCard() { + } + + /** + * @return a new empty instance of {@code ActivityPenguinCard} + */ + public static ActivityPenguinCard newInstance() { + return new ActivityPenguinCard(); + } + + /** + * optional uint32 ActivityId = 1; + * @return whether the activityId field is set + */ + public boolean hasActivityId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 ActivityId = 1; + * @return this + */ + public ActivityPenguinCard clearActivityId() { + bitField0_ &= ~0x00000001; + activityId = 0; + return this; + } + + /** + * optional uint32 ActivityId = 1; + * @return the activityId + */ + public int getActivityId() { + return activityId; + } + + /** + * optional uint32 ActivityId = 1; + * @param value the activityId to set + * @return this + */ + public ActivityPenguinCard setActivityId(final int value) { + bitField0_ |= 0x00000001; + activityId = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public ActivityPenguinCard clearNextPackage() { + bitField0_ &= ~0x00000002; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * This 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 #getMutableNextPackage()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedByte getNextPackage() { + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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 RepeatedByte getMutableNextPackage() { + bitField0_ |= 0x00000002; + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public ActivityPenguinCard addNextPackage(final byte value) { + bitField0_ |= 0x00000002; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public ActivityPenguinCard addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public ActivityPenguinCard setNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .ActivityPenguinCardLevel Levels = 2; + * @return whether the levels field is set + */ + public boolean hasLevels() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated .ActivityPenguinCardLevel Levels = 2; + * @return this + */ + public ActivityPenguinCard clearLevels() { + bitField0_ &= ~0x00000004; + levels.clear(); + return this; + } + + /** + * repeated .ActivityPenguinCardLevel Levels = 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 #getMutableLevels()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getLevels() { + return levels; + } + + /** + * repeated .ActivityPenguinCardLevel Levels = 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 getMutableLevels() { + bitField0_ |= 0x00000004; + return levels; + } + + /** + * repeated .ActivityPenguinCardLevel Levels = 2; + * @param value the levels to add + * @return this + */ + public ActivityPenguinCard addLevels(final ActivityPenguinCardLevel value) { + bitField0_ |= 0x00000004; + levels.add(value); + return this; + } + + /** + * repeated .ActivityPenguinCardLevel Levels = 2; + * @param values the levels to add + * @return this + */ + public ActivityPenguinCard addAllLevels(final ActivityPenguinCardLevel... values) { + bitField0_ |= 0x00000004; + levels.addAll(values); + return this; + } + + /** + * repeated .ActivityQuest Quests = 3; + * @return whether the quests field is set + */ + public boolean hasQuests() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated .ActivityQuest Quests = 3; + * @return this + */ + public ActivityPenguinCard clearQuests() { + bitField0_ &= ~0x00000008; + quests.clear(); + return this; + } + + /** + * repeated .ActivityQuest Quests = 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 #getMutableQuests()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getQuests() { + return quests; + } + + /** + * repeated .ActivityQuest Quests = 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 getMutableQuests() { + bitField0_ |= 0x00000008; + return quests; + } + + /** + * repeated .ActivityQuest Quests = 3; + * @param value the quests to add + * @return this + */ + public ActivityPenguinCard addQuests(final ActivityQuest value) { + bitField0_ |= 0x00000008; + quests.add(value); + return this; + } + + /** + * repeated .ActivityQuest Quests = 3; + * @param values the quests to add + * @return this + */ + public ActivityPenguinCard addAllQuests(final ActivityQuest... values) { + bitField0_ |= 0x00000008; + quests.addAll(values); + return this; + } + + @Override + public ActivityPenguinCard copyFrom(final ActivityPenguinCard other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + activityId = other.activityId; + nextPackage.copyFrom(other.nextPackage); + levels.copyFrom(other.levels); + quests.copyFrom(other.quests); + } + return this; + } + + @Override + public ActivityPenguinCard mergeFrom(final ActivityPenguinCard other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasActivityId()) { + setActivityId(other.activityId); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasLevels()) { + getMutableLevels().addAll(other.levels); + } + if (other.hasQuests()) { + getMutableQuests().addAll(other.quests); + } + return this; + } + + @Override + public ActivityPenguinCard clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + activityId = 0; + nextPackage.clear(); + levels.clear(); + quests.clear(); + return this; + } + + @Override + public ActivityPenguinCard clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + levels.clearQuick(); + quests.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ActivityPenguinCard)) { + return false; + } + ActivityPenguinCard other = (ActivityPenguinCard) o; + return bitField0_ == other.bitField0_ + && (!hasActivityId() || activityId == other.activityId) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasLevels() || levels.equals(other.levels)) + && (!hasQuests() || quests.equals(other.quests)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(activityId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < levels.length(); i++) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(levels.get(i)); + } + } + if ((bitField0_ & 0x00000008) != 0) { + for (int i = 0; i < quests.length(); i++) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(quests.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(activityId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * levels.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(levels); + } + if ((bitField0_ & 0x00000008) != 0) { + size += (1 * quests.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(quests); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ActivityPenguinCard mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // activityId + activityId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // levels + tag = input.readRepeatedMessage(levels, tag); + bitField0_ |= 0x00000004; + if (tag != 26) { + break; + } + } + case 26: { + // quests + tag = input.readRepeatedMessage(quests, tag); + bitField0_ |= 0x00000008; + 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.activityId, activityId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedMessage(FieldNames.levels, levels); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedMessage(FieldNames.quests, quests); + } + output.endObject(); + } + + @Override + public ActivityPenguinCard mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -252882774: { + if (input.isAtField(FieldNames.activityId)) { + if (!input.trySkipNullValue()) { + activityId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2022260337: { + if (input.isAtField(FieldNames.levels)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(levels); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1864830991: { + if (input.isAtField(FieldNames.quests)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(quests); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ActivityPenguinCard clone() { + return new ActivityPenguinCard().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ActivityPenguinCard parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ActivityPenguinCard(), data).checkInitialized(); + } + + public static ActivityPenguinCard parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ActivityPenguinCard(), input).checkInitialized(); + } + + public static ActivityPenguinCard parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ActivityPenguinCard(), input).checkInitialized(); + } + + /** + * @return factory for creating ActivityPenguinCard messages + */ + public static MessageFactory getFactory() { + return ActivityPenguinCardFactory.INSTANCE; + } + + private enum ActivityPenguinCardFactory implements MessageFactory { + INSTANCE; + + @Override + public ActivityPenguinCard create() { + return ActivityPenguinCard.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName activityId = FieldName.forField("ActivityId"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName levels = FieldName.forField("Levels"); + + static final FieldName quests = FieldName.forField("Quests"); + } + } + /** * Protobuf type {@code AffinityInfo} */ @@ -75079,4 +77609,3427 @@ public final class Public { static final FieldName stories = FieldName.forField("Stories"); } } + + /** + * Protobuf type {@code LastRead} + */ + public static final class LastRead extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Type = 1; + */ + private int type; + + /** + * optional .LastReadStory Story = 2; + */ + private final LastReadStory story = LastReadStory.newInstance(); + + /** + * optional .LastReadStorySet StorySet = 3; + */ + private final LastReadStorySet storySet = LastReadStorySet.newInstance(); + + /** + * optional .LastReadActivityStory ActivityStory = 4; + */ + private final LastReadActivityStory activityStory = LastReadActivityStory.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private LastRead() { + } + + /** + * @return a new empty instance of {@code LastRead} + */ + public static LastRead newInstance() { + return new LastRead(); + } + + /** + * optional uint32 Type = 1; + * @return whether the type field is set + */ + public boolean hasType() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 Type = 1; + * @return this + */ + public LastRead clearType() { + bitField0_ &= ~0x00000001; + type = 0; + return this; + } + + /** + * optional uint32 Type = 1; + * @return the type + */ + public int getType() { + return type; + } + + /** + * optional uint32 Type = 1; + * @param value the type to set + * @return this + */ + public LastRead setType(final int value) { + bitField0_ |= 0x00000001; + type = value; + return this; + } + + /** + * optional .LastReadStory Story = 2; + * @return whether the story field is set + */ + public boolean hasStory() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .LastReadStory Story = 2; + * @return this + */ + public LastRead clearStory() { + bitField0_ &= ~0x00000002; + story.clear(); + return this; + } + + /** + * optional .LastReadStory Story = 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 #getMutableStory()} if you want to modify it. + * + * @return internal storage object for reading + */ + public LastReadStory getStory() { + return story; + } + + /** + * optional .LastReadStory Story = 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 LastReadStory getMutableStory() { + bitField0_ |= 0x00000002; + return story; + } + + /** + * optional .LastReadStory Story = 2; + * @param value the story to set + * @return this + */ + public LastRead setStory(final LastReadStory value) { + bitField0_ |= 0x00000002; + story.copyFrom(value); + return this; + } + + /** + * optional .LastReadStorySet StorySet = 3; + * @return whether the storySet field is set + */ + public boolean hasStorySet() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .LastReadStorySet StorySet = 3; + * @return this + */ + public LastRead clearStorySet() { + bitField0_ &= ~0x00000004; + storySet.clear(); + return this; + } + + /** + * optional .LastReadStorySet StorySet = 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 #getMutableStorySet()} if you want to modify it. + * + * @return internal storage object for reading + */ + public LastReadStorySet getStorySet() { + return storySet; + } + + /** + * optional .LastReadStorySet StorySet = 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 LastReadStorySet getMutableStorySet() { + bitField0_ |= 0x00000004; + return storySet; + } + + /** + * optional .LastReadStorySet StorySet = 3; + * @param value the storySet to set + * @return this + */ + public LastRead setStorySet(final LastReadStorySet value) { + bitField0_ |= 0x00000004; + storySet.copyFrom(value); + return this; + } + + /** + * optional .LastReadActivityStory ActivityStory = 4; + * @return whether the activityStory field is set + */ + public boolean hasActivityStory() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .LastReadActivityStory ActivityStory = 4; + * @return this + */ + public LastRead clearActivityStory() { + bitField0_ &= ~0x00000008; + activityStory.clear(); + return this; + } + + /** + * optional .LastReadActivityStory ActivityStory = 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 #getMutableActivityStory()} if you want to modify it. + * + * @return internal storage object for reading + */ + public LastReadActivityStory getActivityStory() { + return activityStory; + } + + /** + * optional .LastReadActivityStory ActivityStory = 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 LastReadActivityStory getMutableActivityStory() { + bitField0_ |= 0x00000008; + return activityStory; + } + + /** + * optional .LastReadActivityStory ActivityStory = 4; + * @param value the activityStory to set + * @return this + */ + public LastRead setActivityStory(final LastReadActivityStory value) { + bitField0_ |= 0x00000008; + activityStory.copyFrom(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public LastRead clearNextPackage() { + bitField0_ &= ~0x00000010; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * This 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 #getMutableNextPackage()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedByte getNextPackage() { + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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 RepeatedByte getMutableNextPackage() { + bitField0_ |= 0x00000010; + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public LastRead addNextPackage(final byte value) { + bitField0_ |= 0x00000010; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public LastRead addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000010; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public LastRead setNextPackage(final byte... values) { + bitField0_ |= 0x00000010; + nextPackage.copyFrom(values); + return this; + } + + @Override + public LastRead copyFrom(final LastRead other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + type = other.type; + story.copyFrom(other.story); + storySet.copyFrom(other.storySet); + activityStory.copyFrom(other.activityStory); + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public LastRead mergeFrom(final LastRead other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasType()) { + setType(other.type); + } + if (other.hasStory()) { + getMutableStory().mergeFrom(other.story); + } + if (other.hasStorySet()) { + getMutableStorySet().mergeFrom(other.storySet); + } + if (other.hasActivityStory()) { + getMutableActivityStory().mergeFrom(other.activityStory); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public LastRead clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + type = 0; + story.clear(); + storySet.clear(); + activityStory.clear(); + nextPackage.clear(); + return this; + } + + @Override + public LastRead clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + story.clearQuick(); + storySet.clearQuick(); + activityStory.clearQuick(); + nextPackage.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof LastRead)) { + return false; + } + LastRead other = (LastRead) o; + return bitField0_ == other.bitField0_ + && (!hasType() || type == other.type) + && (!hasStory() || story.equals(other.story)) + && (!hasStorySet() || storySet.equals(other.storySet)) + && (!hasActivityStory() || activityStory.equals(other.activityStory)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(type); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(story); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(storySet); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 34); + output.writeMessageNoTag(activityStory); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(type); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(story); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(storySet); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(activityStory); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public LastRead mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // type + type = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // story + input.readMessage(story); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // storySet + input.readMessage(storySet); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // activityStory + input.readMessage(activityStory); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + 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.type, type); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.story, story); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.storySet, storySet); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeMessage(FieldNames.activityStory, activityStory); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public LastRead mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 2622298: { + if (input.isAtField(FieldNames.type)) { + if (!input.trySkipNullValue()) { + type = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 80218325: { + if (input.isAtField(FieldNames.story)) { + if (!input.trySkipNullValue()) { + input.readMessage(story); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1782386509: { + if (input.isAtField(FieldNames.storySet)) { + if (!input.trySkipNullValue()) { + input.readMessage(storySet); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -248260858: { + if (input.isAtField(FieldNames.activityStory)) { + if (!input.trySkipNullValue()) { + input.readMessage(activityStory); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public LastRead clone() { + return new LastRead().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static LastRead parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new LastRead(), data).checkInitialized(); + } + + public static LastRead parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new LastRead(), input).checkInitialized(); + } + + public static LastRead parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new LastRead(), input).checkInitialized(); + } + + /** + * @return factory for creating LastRead messages + */ + public static MessageFactory getFactory() { + return LastReadFactory.INSTANCE; + } + + private enum LastReadFactory implements MessageFactory { + INSTANCE; + + @Override + public LastRead create() { + return LastRead.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName type = FieldName.forField("Type"); + + static final FieldName story = FieldName.forField("Story"); + + static final FieldName storySet = FieldName.forField("StorySet"); + + static final FieldName activityStory = FieldName.forField("ActivityStory"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code LastReadStory} + */ + public static final class LastReadStory extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Idx = 1; + */ + private int idx; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private LastReadStory() { + } + + /** + * @return a new empty instance of {@code LastReadStory} + */ + public static LastReadStory newInstance() { + return new LastReadStory(); + } + + /** + * optional uint32 Idx = 1; + * @return whether the idx field is set + */ + public boolean hasIdx() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 Idx = 1; + * @return this + */ + public LastReadStory clearIdx() { + bitField0_ &= ~0x00000001; + idx = 0; + return this; + } + + /** + * optional uint32 Idx = 1; + * @return the idx + */ + public int getIdx() { + return idx; + } + + /** + * optional uint32 Idx = 1; + * @param value the idx to set + * @return this + */ + public LastReadStory setIdx(final int value) { + bitField0_ |= 0x00000001; + idx = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public LastReadStory clearNextPackage() { + bitField0_ &= ~0x00000002; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * This 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 #getMutableNextPackage()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedByte getNextPackage() { + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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 RepeatedByte getMutableNextPackage() { + bitField0_ |= 0x00000002; + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public LastReadStory addNextPackage(final byte value) { + bitField0_ |= 0x00000002; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public LastReadStory addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public LastReadStory setNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.copyFrom(values); + return this; + } + + @Override + public LastReadStory copyFrom(final LastReadStory other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + idx = other.idx; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public LastReadStory mergeFrom(final LastReadStory other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasIdx()) { + setIdx(other.idx); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public LastReadStory clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + idx = 0; + nextPackage.clear(); + return this; + } + + @Override + public LastReadStory clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof LastReadStory)) { + return false; + } + LastReadStory other = (LastReadStory) o; + return bitField0_ == other.bitField0_ + && (!hasIdx() || idx == other.idx) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(idx); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(idx); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public LastReadStory mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // idx + idx = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + 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.idx, idx); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public LastReadStory mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 73373: { + if (input.isAtField(FieldNames.idx)) { + if (!input.trySkipNullValue()) { + idx = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public LastReadStory clone() { + return new LastReadStory().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static LastReadStory parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new LastReadStory(), data).checkInitialized(); + } + + public static LastReadStory parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new LastReadStory(), input).checkInitialized(); + } + + public static LastReadStory parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new LastReadStory(), input).checkInitialized(); + } + + /** + * @return factory for creating LastReadStory messages + */ + public static MessageFactory getFactory() { + return LastReadStoryFactory.INSTANCE; + } + + private enum LastReadStoryFactory implements MessageFactory { + INSTANCE; + + @Override + public LastReadStory create() { + return LastReadStory.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName idx = FieldName.forField("Idx"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code LastReadStorySet} + */ + public static final class LastReadStorySet extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 ChapterId = 1; + */ + private int chapterId; + + /** + * optional uint32 SectionId = 2; + */ + private int sectionId; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private LastReadStorySet() { + } + + /** + * @return a new empty instance of {@code LastReadStorySet} + */ + public static LastReadStorySet newInstance() { + return new LastReadStorySet(); + } + + /** + * optional uint32 ChapterId = 1; + * @return whether the chapterId field is set + */ + public boolean hasChapterId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 ChapterId = 1; + * @return this + */ + public LastReadStorySet clearChapterId() { + bitField0_ &= ~0x00000001; + chapterId = 0; + return this; + } + + /** + * optional uint32 ChapterId = 1; + * @return the chapterId + */ + public int getChapterId() { + return chapterId; + } + + /** + * optional uint32 ChapterId = 1; + * @param value the chapterId to set + * @return this + */ + public LastReadStorySet setChapterId(final int value) { + bitField0_ |= 0x00000001; + chapterId = value; + return this; + } + + /** + * optional uint32 SectionId = 2; + * @return whether the sectionId field is set + */ + public boolean hasSectionId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 SectionId = 2; + * @return this + */ + public LastReadStorySet clearSectionId() { + bitField0_ &= ~0x00000002; + sectionId = 0; + return this; + } + + /** + * optional uint32 SectionId = 2; + * @return the sectionId + */ + public int getSectionId() { + return sectionId; + } + + /** + * optional uint32 SectionId = 2; + * @param value the sectionId to set + * @return this + */ + public LastReadStorySet setSectionId(final int value) { + bitField0_ |= 0x00000002; + sectionId = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public LastReadStorySet clearNextPackage() { + bitField0_ &= ~0x00000004; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * This 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 #getMutableNextPackage()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedByte getNextPackage() { + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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 RepeatedByte getMutableNextPackage() { + bitField0_ |= 0x00000004; + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public LastReadStorySet addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public LastReadStorySet addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public LastReadStorySet setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + @Override + public LastReadStorySet copyFrom(final LastReadStorySet other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + chapterId = other.chapterId; + sectionId = other.sectionId; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public LastReadStorySet mergeFrom(final LastReadStorySet other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasChapterId()) { + setChapterId(other.chapterId); + } + if (other.hasSectionId()) { + setSectionId(other.sectionId); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public LastReadStorySet clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + chapterId = 0; + sectionId = 0; + nextPackage.clear(); + return this; + } + + @Override + public LastReadStorySet clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof LastReadStorySet)) { + return false; + } + LastReadStorySet other = (LastReadStorySet) o; + return bitField0_ == other.bitField0_ + && (!hasChapterId() || chapterId == other.chapterId) + && (!hasSectionId() || sectionId == other.sectionId) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(chapterId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(sectionId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(chapterId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(sectionId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public LastReadStorySet mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // chapterId + chapterId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // sectionId + sectionId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + 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.chapterId, chapterId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.sectionId, sectionId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public LastReadStorySet mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -766458328: { + if (input.isAtField(FieldNames.chapterId)) { + if (!input.trySkipNullValue()) { + chapterId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1325236928: { + if (input.isAtField(FieldNames.sectionId)) { + if (!input.trySkipNullValue()) { + sectionId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public LastReadStorySet clone() { + return new LastReadStorySet().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static LastReadStorySet parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new LastReadStorySet(), data).checkInitialized(); + } + + public static LastReadStorySet parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new LastReadStorySet(), input).checkInitialized(); + } + + public static LastReadStorySet parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new LastReadStorySet(), input).checkInitialized(); + } + + /** + * @return factory for creating LastReadStorySet messages + */ + public static MessageFactory getFactory() { + return LastReadStorySetFactory.INSTANCE; + } + + private enum LastReadStorySetFactory implements MessageFactory { + INSTANCE; + + @Override + public LastReadStorySet create() { + return LastReadStorySet.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName chapterId = FieldName.forField("ChapterId"); + + static final FieldName sectionId = FieldName.forField("SectionId"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code LastReadActivityStory} + */ + public static final class LastReadActivityStory extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 ChapterId = 1; + */ + private int chapterId; + + /** + * optional uint32 StoryId = 2; + */ + private int storyId; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private LastReadActivityStory() { + } + + /** + * @return a new empty instance of {@code LastReadActivityStory} + */ + public static LastReadActivityStory newInstance() { + return new LastReadActivityStory(); + } + + /** + * optional uint32 ChapterId = 1; + * @return whether the chapterId field is set + */ + public boolean hasChapterId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 ChapterId = 1; + * @return this + */ + public LastReadActivityStory clearChapterId() { + bitField0_ &= ~0x00000001; + chapterId = 0; + return this; + } + + /** + * optional uint32 ChapterId = 1; + * @return the chapterId + */ + public int getChapterId() { + return chapterId; + } + + /** + * optional uint32 ChapterId = 1; + * @param value the chapterId to set + * @return this + */ + public LastReadActivityStory setChapterId(final int value) { + bitField0_ |= 0x00000001; + chapterId = value; + return this; + } + + /** + * optional uint32 StoryId = 2; + * @return whether the storyId field is set + */ + public boolean hasStoryId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 StoryId = 2; + * @return this + */ + public LastReadActivityStory clearStoryId() { + bitField0_ &= ~0x00000002; + storyId = 0; + return this; + } + + /** + * optional uint32 StoryId = 2; + * @return the storyId + */ + public int getStoryId() { + return storyId; + } + + /** + * optional uint32 StoryId = 2; + * @param value the storyId to set + * @return this + */ + public LastReadActivityStory setStoryId(final int value) { + bitField0_ |= 0x00000002; + storyId = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public LastReadActivityStory clearNextPackage() { + bitField0_ &= ~0x00000004; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * This 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 #getMutableNextPackage()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedByte getNextPackage() { + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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 RepeatedByte getMutableNextPackage() { + bitField0_ |= 0x00000004; + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public LastReadActivityStory addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public LastReadActivityStory addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public LastReadActivityStory setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + @Override + public LastReadActivityStory copyFrom(final LastReadActivityStory other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + chapterId = other.chapterId; + storyId = other.storyId; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public LastReadActivityStory mergeFrom(final LastReadActivityStory other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasChapterId()) { + setChapterId(other.chapterId); + } + if (other.hasStoryId()) { + setStoryId(other.storyId); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public LastReadActivityStory clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + chapterId = 0; + storyId = 0; + nextPackage.clear(); + return this; + } + + @Override + public LastReadActivityStory clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof LastReadActivityStory)) { + return false; + } + LastReadActivityStory other = (LastReadActivityStory) o; + return bitField0_ == other.bitField0_ + && (!hasChapterId() || chapterId == other.chapterId) + && (!hasStoryId() || storyId == other.storyId) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(chapterId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(storyId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(chapterId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(storyId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public LastReadActivityStory mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // chapterId + chapterId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // storyId + storyId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + 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.chapterId, chapterId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.storyId, storyId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public LastReadActivityStory mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -766458328: { + if (input.isAtField(FieldNames.chapterId)) { + if (!input.trySkipNullValue()) { + chapterId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -219598640: { + if (input.isAtField(FieldNames.storyId)) { + if (!input.trySkipNullValue()) { + storyId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public LastReadActivityStory clone() { + return new LastReadActivityStory().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static LastReadActivityStory parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new LastReadActivityStory(), data).checkInitialized(); + } + + public static LastReadActivityStory parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new LastReadActivityStory(), input).checkInitialized(); + } + + public static LastReadActivityStory parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new LastReadActivityStory(), input).checkInitialized(); + } + + /** + * @return factory for creating LastReadActivityStory messages + */ + public static MessageFactory getFactory() { + return LastReadActivityStoryFactory.INSTANCE; + } + + private enum LastReadActivityStoryFactory implements MessageFactory { + INSTANCE; + + @Override + public LastReadActivityStory create() { + return LastReadActivityStory.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName chapterId = FieldName.forField("ChapterId"); + + static final FieldName storyId = FieldName.forField("StoryId"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code ActivityThrowGiftLevel} + */ + public static final class ActivityThrowGiftLevel extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 LevelId = 1; + */ + private int levelId; + + /** + * optional uint32 MaxScore = 2; + */ + private int maxScore; + + /** + * optional bool FirstComplete = 3; + */ + private boolean firstComplete; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private ActivityThrowGiftLevel() { + } + + /** + * @return a new empty instance of {@code ActivityThrowGiftLevel} + */ + public static ActivityThrowGiftLevel newInstance() { + return new ActivityThrowGiftLevel(); + } + + /** + * optional uint32 LevelId = 1; + * @return whether the levelId field is set + */ + public boolean hasLevelId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 LevelId = 1; + * @return this + */ + public ActivityThrowGiftLevel clearLevelId() { + bitField0_ &= ~0x00000001; + levelId = 0; + return this; + } + + /** + * optional uint32 LevelId = 1; + * @return the levelId + */ + public int getLevelId() { + return levelId; + } + + /** + * optional uint32 LevelId = 1; + * @param value the levelId to set + * @return this + */ + public ActivityThrowGiftLevel setLevelId(final int value) { + bitField0_ |= 0x00000001; + levelId = value; + return this; + } + + /** + * optional uint32 MaxScore = 2; + * @return whether the maxScore field is set + */ + public boolean hasMaxScore() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 MaxScore = 2; + * @return this + */ + public ActivityThrowGiftLevel clearMaxScore() { + bitField0_ &= ~0x00000002; + maxScore = 0; + return this; + } + + /** + * optional uint32 MaxScore = 2; + * @return the maxScore + */ + public int getMaxScore() { + return maxScore; + } + + /** + * optional uint32 MaxScore = 2; + * @param value the maxScore to set + * @return this + */ + public ActivityThrowGiftLevel setMaxScore(final int value) { + bitField0_ |= 0x00000002; + maxScore = value; + return this; + } + + /** + * optional bool FirstComplete = 3; + * @return whether the firstComplete field is set + */ + public boolean hasFirstComplete() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bool FirstComplete = 3; + * @return this + */ + public ActivityThrowGiftLevel clearFirstComplete() { + bitField0_ &= ~0x00000004; + firstComplete = false; + return this; + } + + /** + * optional bool FirstComplete = 3; + * @return the firstComplete + */ + public boolean getFirstComplete() { + return firstComplete; + } + + /** + * optional bool FirstComplete = 3; + * @param value the firstComplete to set + * @return this + */ + public ActivityThrowGiftLevel setFirstComplete(final boolean value) { + bitField0_ |= 0x00000004; + firstComplete = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public ActivityThrowGiftLevel clearNextPackage() { + bitField0_ &= ~0x00000008; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * This 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 #getMutableNextPackage()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedByte getNextPackage() { + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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 RepeatedByte getMutableNextPackage() { + bitField0_ |= 0x00000008; + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public ActivityThrowGiftLevel addNextPackage(final byte value) { + bitField0_ |= 0x00000008; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public ActivityThrowGiftLevel addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public ActivityThrowGiftLevel setNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.copyFrom(values); + return this; + } + + @Override + public ActivityThrowGiftLevel copyFrom(final ActivityThrowGiftLevel other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + levelId = other.levelId; + maxScore = other.maxScore; + firstComplete = other.firstComplete; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public ActivityThrowGiftLevel mergeFrom(final ActivityThrowGiftLevel other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasLevelId()) { + setLevelId(other.levelId); + } + if (other.hasMaxScore()) { + setMaxScore(other.maxScore); + } + if (other.hasFirstComplete()) { + setFirstComplete(other.firstComplete); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public ActivityThrowGiftLevel clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + levelId = 0; + maxScore = 0; + firstComplete = false; + nextPackage.clear(); + return this; + } + + @Override + public ActivityThrowGiftLevel clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ActivityThrowGiftLevel)) { + return false; + } + ActivityThrowGiftLevel other = (ActivityThrowGiftLevel) o; + return bitField0_ == other.bitField0_ + && (!hasLevelId() || levelId == other.levelId) + && (!hasMaxScore() || maxScore == other.maxScore) + && (!hasFirstComplete() || firstComplete == other.firstComplete) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(levelId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(maxScore); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 24); + output.writeBoolNoTag(firstComplete); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(levelId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(maxScore); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ActivityThrowGiftLevel mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // levelId + levelId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // maxScore + maxScore = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // firstComplete + firstComplete = input.readBool(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + 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.levelId, levelId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.maxScore, maxScore); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBool(FieldNames.firstComplete, firstComplete); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public ActivityThrowGiftLevel mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1734437791: { + if (input.isAtField(FieldNames.levelId)) { + if (!input.trySkipNullValue()) { + levelId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 461163438: { + if (input.isAtField(FieldNames.maxScore)) { + if (!input.trySkipNullValue()) { + maxScore = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2041047017: { + if (input.isAtField(FieldNames.firstComplete)) { + if (!input.trySkipNullValue()) { + firstComplete = input.readBool(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ActivityThrowGiftLevel clone() { + return new ActivityThrowGiftLevel().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ActivityThrowGiftLevel parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ActivityThrowGiftLevel(), data).checkInitialized(); + } + + public static ActivityThrowGiftLevel parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ActivityThrowGiftLevel(), input).checkInitialized(); + } + + public static ActivityThrowGiftLevel parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ActivityThrowGiftLevel(), input).checkInitialized(); + } + + /** + * @return factory for creating ActivityThrowGiftLevel messages + */ + public static MessageFactory getFactory() { + return ActivityThrowGiftLevelFactory.INSTANCE; + } + + private enum ActivityThrowGiftLevelFactory implements MessageFactory { + INSTANCE; + + @Override + public ActivityThrowGiftLevel create() { + return ActivityThrowGiftLevel.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName levelId = FieldName.forField("LevelId"); + + static final FieldName maxScore = FieldName.forField("MaxScore"); + + static final FieldName firstComplete = FieldName.forField("FirstComplete"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code ActivityThrowGiftItem} + */ + public static final class ActivityThrowGiftItem extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 ItemId = 1; + */ + private int itemId; + + /** + * optional uint32 Count = 2; + */ + private int count; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private ActivityThrowGiftItem() { + } + + /** + * @return a new empty instance of {@code ActivityThrowGiftItem} + */ + public static ActivityThrowGiftItem newInstance() { + return new ActivityThrowGiftItem(); + } + + /** + * optional uint32 ItemId = 1; + * @return whether the itemId field is set + */ + public boolean hasItemId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 ItemId = 1; + * @return this + */ + public ActivityThrowGiftItem clearItemId() { + bitField0_ &= ~0x00000001; + itemId = 0; + return this; + } + + /** + * optional uint32 ItemId = 1; + * @return the itemId + */ + public int getItemId() { + return itemId; + } + + /** + * optional uint32 ItemId = 1; + * @param value the itemId to set + * @return this + */ + public ActivityThrowGiftItem setItemId(final int value) { + bitField0_ |= 0x00000001; + itemId = value; + return this; + } + + /** + * optional uint32 Count = 2; + * @return whether the count field is set + */ + public boolean hasCount() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 Count = 2; + * @return this + */ + public ActivityThrowGiftItem clearCount() { + bitField0_ &= ~0x00000002; + count = 0; + return this; + } + + /** + * optional uint32 Count = 2; + * @return the count + */ + public int getCount() { + return count; + } + + /** + * optional uint32 Count = 2; + * @param value the count to set + * @return this + */ + public ActivityThrowGiftItem setCount(final int value) { + bitField0_ |= 0x00000002; + count = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public ActivityThrowGiftItem clearNextPackage() { + bitField0_ &= ~0x00000004; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * This 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 #getMutableNextPackage()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedByte getNextPackage() { + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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 RepeatedByte getMutableNextPackage() { + bitField0_ |= 0x00000004; + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public ActivityThrowGiftItem addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public ActivityThrowGiftItem addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public ActivityThrowGiftItem setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + @Override + public ActivityThrowGiftItem copyFrom(final ActivityThrowGiftItem other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + itemId = other.itemId; + count = other.count; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public ActivityThrowGiftItem mergeFrom(final ActivityThrowGiftItem other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasItemId()) { + setItemId(other.itemId); + } + if (other.hasCount()) { + setCount(other.count); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public ActivityThrowGiftItem clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + itemId = 0; + count = 0; + nextPackage.clear(); + return this; + } + + @Override + public ActivityThrowGiftItem clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ActivityThrowGiftItem)) { + return false; + } + ActivityThrowGiftItem other = (ActivityThrowGiftItem) o; + return bitField0_ == other.bitField0_ + && (!hasItemId() || itemId == other.itemId) + && (!hasCount() || count == other.count) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(itemId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(count); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(itemId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(count); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ActivityThrowGiftItem mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // itemId + itemId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // count + count = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + 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.itemId, itemId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.count, count); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public ActivityThrowGiftItem mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -2094794834: { + if (input.isAtField(FieldNames.itemId)) { + if (!input.trySkipNullValue()) { + itemId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 65298671: { + if (input.isAtField(FieldNames.count)) { + if (!input.trySkipNullValue()) { + count = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ActivityThrowGiftItem clone() { + return new ActivityThrowGiftItem().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ActivityThrowGiftItem parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ActivityThrowGiftItem(), data).checkInitialized(); + } + + public static ActivityThrowGiftItem parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ActivityThrowGiftItem(), input).checkInitialized(); + } + + public static ActivityThrowGiftItem parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ActivityThrowGiftItem(), input).checkInitialized(); + } + + /** + * @return factory for creating ActivityThrowGiftItem messages + */ + public static MessageFactory getFactory() { + return ActivityThrowGiftItemFactory.INSTANCE; + } + + private enum ActivityThrowGiftItemFactory implements MessageFactory { + INSTANCE; + + @Override + public ActivityThrowGiftItem create() { + return ActivityThrowGiftItem.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName itemId = FieldName.forField("ItemId"); + + static final FieldName count = FieldName.forField("Count"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code ActivityThrowGift} + */ + public static final class ActivityThrowGift extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .ActivityThrowGiftLevel Levels = 1; + */ + private final RepeatedMessage levels = RepeatedMessage.newEmptyInstance(ActivityThrowGiftLevel.getFactory()); + + /** + * repeated .ActivityThrowGiftItem Items = 2; + */ + private final RepeatedMessage items = RepeatedMessage.newEmptyInstance(ActivityThrowGiftItem.getFactory()); + + private ActivityThrowGift() { + } + + /** + * @return a new empty instance of {@code ActivityThrowGift} + */ + public static ActivityThrowGift newInstance() { + return new ActivityThrowGift(); + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public ActivityThrowGift clearNextPackage() { + bitField0_ &= ~0x00000001; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * This 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 #getMutableNextPackage()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedByte getNextPackage() { + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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 RepeatedByte getMutableNextPackage() { + bitField0_ |= 0x00000001; + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public ActivityThrowGift addNextPackage(final byte value) { + bitField0_ |= 0x00000001; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public ActivityThrowGift addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public ActivityThrowGift setNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .ActivityThrowGiftLevel Levels = 1; + * @return whether the levels field is set + */ + public boolean hasLevels() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated .ActivityThrowGiftLevel Levels = 1; + * @return this + */ + public ActivityThrowGift clearLevels() { + bitField0_ &= ~0x00000002; + levels.clear(); + return this; + } + + /** + * repeated .ActivityThrowGiftLevel Levels = 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 #getMutableLevels()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getLevels() { + return levels; + } + + /** + * repeated .ActivityThrowGiftLevel Levels = 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 getMutableLevels() { + bitField0_ |= 0x00000002; + return levels; + } + + /** + * repeated .ActivityThrowGiftLevel Levels = 1; + * @param value the levels to add + * @return this + */ + public ActivityThrowGift addLevels(final ActivityThrowGiftLevel value) { + bitField0_ |= 0x00000002; + levels.add(value); + return this; + } + + /** + * repeated .ActivityThrowGiftLevel Levels = 1; + * @param values the levels to add + * @return this + */ + public ActivityThrowGift addAllLevels(final ActivityThrowGiftLevel... values) { + bitField0_ |= 0x00000002; + levels.addAll(values); + return this; + } + + /** + * repeated .ActivityThrowGiftItem Items = 2; + * @return whether the items field is set + */ + public boolean hasItems() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated .ActivityThrowGiftItem Items = 2; + * @return this + */ + public ActivityThrowGift clearItems() { + bitField0_ &= ~0x00000004; + items.clear(); + return this; + } + + /** + * repeated .ActivityThrowGiftItem Items = 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 #getMutableItems()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getItems() { + return items; + } + + /** + * repeated .ActivityThrowGiftItem Items = 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 getMutableItems() { + bitField0_ |= 0x00000004; + return items; + } + + /** + * repeated .ActivityThrowGiftItem Items = 2; + * @param value the items to add + * @return this + */ + public ActivityThrowGift addItems(final ActivityThrowGiftItem value) { + bitField0_ |= 0x00000004; + items.add(value); + return this; + } + + /** + * repeated .ActivityThrowGiftItem Items = 2; + * @param values the items to add + * @return this + */ + public ActivityThrowGift addAllItems(final ActivityThrowGiftItem... values) { + bitField0_ |= 0x00000004; + items.addAll(values); + return this; + } + + @Override + public ActivityThrowGift copyFrom(final ActivityThrowGift other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + nextPackage.copyFrom(other.nextPackage); + levels.copyFrom(other.levels); + items.copyFrom(other.items); + } + return this; + } + + @Override + public ActivityThrowGift mergeFrom(final ActivityThrowGift other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasLevels()) { + getMutableLevels().addAll(other.levels); + } + if (other.hasItems()) { + getMutableItems().addAll(other.items); + } + return this; + } + + @Override + public ActivityThrowGift clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + levels.clear(); + items.clear(); + return this; + } + + @Override + public ActivityThrowGift clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + levels.clearQuick(); + items.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ActivityThrowGift)) { + return false; + } + ActivityThrowGift other = (ActivityThrowGift) o; + return bitField0_ == other.bitField0_ + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasLevels() || levels.equals(other.levels)) + && (!hasItems() || items.equals(other.items)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000002) != 0) { + for (int i = 0; i < levels.length(); i++) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(levels.get(i)); + } + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < items.length(); i++) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(items.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * levels.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(levels); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * items.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(items); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ActivityThrowGift mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // levels + tag = input.readRepeatedMessage(levels, tag); + bitField0_ |= 0x00000002; + if (tag != 18) { + break; + } + } + case 18: { + // items + tag = input.readRepeatedMessage(items, tag); + bitField0_ |= 0x00000004; + 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.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedMessage(FieldNames.levels, levels); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedMessage(FieldNames.items, items); + } + output.endObject(); + } + + @Override + public ActivityThrowGift mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2022260337: { + if (input.isAtField(FieldNames.levels)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(levels); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 70973344: { + if (input.isAtField(FieldNames.items)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(items); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ActivityThrowGift clone() { + return new ActivityThrowGift().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ActivityThrowGift parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ActivityThrowGift(), data).checkInitialized(); + } + + public static ActivityThrowGift parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ActivityThrowGift(), input).checkInitialized(); + } + + public static ActivityThrowGift parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ActivityThrowGift(), input).checkInitialized(); + } + + /** + * @return factory for creating ActivityThrowGift messages + */ + public static MessageFactory getFactory() { + return ActivityThrowGiftFactory.INSTANCE; + } + + private enum ActivityThrowGiftFactory implements MessageFactory { + INSTANCE; + + @Override + public ActivityThrowGift create() { + return ActivityThrowGift.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName levels = FieldName.forField("Levels"); + + static final FieldName items = FieldName.forField("Items"); + } + } } diff --git a/src/generated/main/emu/nebula/proto/PublicJointDrill.java b/src/generated/main/emu/nebula/proto/PublicJointDrill.java index da2e05d..1cbd00d 100644 --- a/src/generated/main/emu/nebula/proto/PublicJointDrill.java +++ b/src/generated/main/emu/nebula/proto/PublicJointDrill.java @@ -26,6 +26,16 @@ public final class PublicJointDrill { */ private final JointDrillMeta meta = JointDrillMeta.newInstance(); + /** + * optional .Mode1Meta Mode1 = 9; + */ + private final Mode1Meta mode1 = Mode1Meta.newInstance(); + + /** + * optional .Mode2Meta Mode2 = 10; + */ + private final Mode2Meta mode2 = Mode2Meta.newInstance(); + /** * optional bytes NextPackage = 2047; */ @@ -108,12 +118,126 @@ public final class PublicJointDrill { return this; } + /** + * optional .Mode1Meta Mode1 = 9; + * @return whether the mode1 field is set + */ + public boolean hasMode1() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .Mode1Meta Mode1 = 9; + * @return this + */ + public ActivityJointDrill clearMode1() { + bitField0_ &= ~0x00000002; + mode1.clear(); + return this; + } + + /** + * optional .Mode1Meta Mode1 = 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 #getMutableMode1()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Mode1Meta getMode1() { + return mode1; + } + + /** + * optional .Mode1Meta Mode1 = 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 Mode1Meta getMutableMode1() { + bitField0_ |= 0x00000002; + return mode1; + } + + /** + * optional .Mode1Meta Mode1 = 9; + * @param value the mode1 to set + * @return this + */ + public ActivityJointDrill setMode1(final Mode1Meta value) { + bitField0_ |= 0x00000002; + mode1.copyFrom(value); + return this; + } + + /** + * optional .Mode2Meta Mode2 = 10; + * @return whether the mode2 field is set + */ + public boolean hasMode2() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .Mode2Meta Mode2 = 10; + * @return this + */ + public ActivityJointDrill clearMode2() { + bitField0_ &= ~0x00000004; + mode2.clear(); + return this; + } + + /** + * optional .Mode2Meta Mode2 = 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 #getMutableMode2()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Mode2Meta getMode2() { + return mode2; + } + + /** + * optional .Mode2Meta Mode2 = 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 Mode2Meta getMutableMode2() { + bitField0_ |= 0x00000004; + return mode2; + } + + /** + * optional .Mode2Meta Mode2 = 10; + * @param value the mode2 to set + * @return this + */ + public ActivityJointDrill setMode2(final Mode2Meta value) { + bitField0_ |= 0x00000004; + mode2.copyFrom(value); + return this; + } + /** * optional bytes NextPackage = 2047; * @return whether the nextPackage field is set */ public boolean hasNextPackage() { - return (bitField0_ & 0x00000002) != 0; + return (bitField0_ & 0x00000008) != 0; } /** @@ -121,7 +245,7 @@ public final class PublicJointDrill { * @return this */ public ActivityJointDrill clearNextPackage() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000008; nextPackage.clear(); return this; } @@ -150,7 +274,7 @@ public final class PublicJointDrill { * @return internal storage object for modifications */ public RepeatedByte getMutableNextPackage() { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; return nextPackage; } @@ -160,7 +284,7 @@ public final class PublicJointDrill { * @return this */ public ActivityJointDrill addNextPackage(final byte value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; nextPackage.add(value); return this; } @@ -171,7 +295,7 @@ public final class PublicJointDrill { * @return this */ public ActivityJointDrill addAllNextPackage(final byte... values) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; nextPackage.addAll(values); return this; } @@ -182,7 +306,7 @@ public final class PublicJointDrill { * @return this */ public ActivityJointDrill setNextPackage(final byte... values) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; nextPackage.copyFrom(values); return this; } @@ -192,7 +316,7 @@ public final class PublicJointDrill { * @return whether the passedLevels field is set */ public boolean hasPassedLevels() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000010) != 0; } /** @@ -200,7 +324,7 @@ public final class PublicJointDrill { * @return this */ public ActivityJointDrill clearPassedLevels() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000010; passedLevels.clear(); return this; } @@ -229,7 +353,7 @@ public final class PublicJointDrill { * @return internal storage object for modifications */ public RepeatedMessage getMutablePassedLevels() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; return passedLevels; } @@ -239,7 +363,7 @@ public final class PublicJointDrill { * @return this */ public ActivityJointDrill addPassedLevels(final JointDrillLevel value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; passedLevels.add(value); return this; } @@ -250,7 +374,7 @@ public final class PublicJointDrill { * @return this */ public ActivityJointDrill addAllPassedLevels(final JointDrillLevel... values) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; passedLevels.addAll(values); return this; } @@ -260,7 +384,7 @@ public final class PublicJointDrill { * @return whether the quests field is set */ public boolean hasQuests() { - return (bitField0_ & 0x00000008) != 0; + return (bitField0_ & 0x00000020) != 0; } /** @@ -268,7 +392,7 @@ public final class PublicJointDrill { * @return this */ public ActivityJointDrill clearQuests() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000020; quests.clear(); return this; } @@ -297,7 +421,7 @@ public final class PublicJointDrill { * @return internal storage object for modifications */ public RepeatedMessage getMutableQuests() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; return quests; } @@ -307,7 +431,7 @@ public final class PublicJointDrill { * @return this */ public ActivityJointDrill addQuests(final Public.ActivityQuest value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; quests.add(value); return this; } @@ -318,7 +442,7 @@ public final class PublicJointDrill { * @return this */ public ActivityJointDrill addAllQuests(final Public.ActivityQuest... values) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; quests.addAll(values); return this; } @@ -329,6 +453,8 @@ public final class PublicJointDrill { if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; meta.copyFrom(other.meta); + mode1.copyFrom(other.mode1); + mode2.copyFrom(other.mode2); nextPackage.copyFrom(other.nextPackage); passedLevels.copyFrom(other.passedLevels); quests.copyFrom(other.quests); @@ -345,6 +471,12 @@ public final class PublicJointDrill { if (other.hasMeta()) { getMutableMeta().mergeFrom(other.meta); } + if (other.hasMode1()) { + getMutableMode1().mergeFrom(other.mode1); + } + if (other.hasMode2()) { + getMutableMode2().mergeFrom(other.mode2); + } if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); } @@ -365,6 +497,8 @@ public final class PublicJointDrill { cachedSize = -1; bitField0_ = 0; meta.clear(); + mode1.clear(); + mode2.clear(); nextPackage.clear(); passedLevels.clear(); quests.clear(); @@ -379,6 +513,8 @@ public final class PublicJointDrill { cachedSize = -1; bitField0_ = 0; meta.clearQuick(); + mode1.clearQuick(); + mode2.clearQuick(); nextPackage.clear(); passedLevels.clearQuick(); quests.clearQuick(); @@ -396,6 +532,8 @@ public final class PublicJointDrill { ActivityJointDrill other = (ActivityJointDrill) o; return bitField0_ == other.bitField0_ && (!hasMeta() || meta.equals(other.meta)) + && (!hasMode1() || mode1.equals(other.mode1)) + && (!hasMode2() || mode2.equals(other.mode2)) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) && (!hasPassedLevels() || passedLevels.equals(other.passedLevels)) && (!hasQuests() || quests.equals(other.quests)); @@ -408,16 +546,24 @@ public final class PublicJointDrill { output.writeMessageNoTag(meta); } if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 74); + output.writeMessageNoTag(mode1); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 82); + output.writeMessageNoTag(mode2); + } + if ((bitField0_ & 0x00000008) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000010) != 0) { for (int i = 0; i < passedLevels.length(); i++) { output.writeRawByte((byte) 18); output.writeMessageNoTag(passedLevels.get(i)); } } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000020) != 0) { for (int i = 0; i < quests.length(); i++) { output.writeRawByte((byte) 26); output.writeMessageNoTag(quests.get(i)); @@ -432,12 +578,18 @@ public final class PublicJointDrill { size += 1 + ProtoSink.computeMessageSizeNoTag(meta); } if ((bitField0_ & 0x00000002) != 0) { - size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + size += 1 + ProtoSink.computeMessageSizeNoTag(mode1); } if ((bitField0_ & 0x00000004) != 0) { - size += (1 * passedLevels.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(passedLevels); + size += 1 + ProtoSink.computeMessageSizeNoTag(mode2); } if ((bitField0_ & 0x00000008) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000010) != 0) { + size += (1 * passedLevels.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(passedLevels); + } + if ((bitField0_ & 0x00000020) != 0) { size += (1 * quests.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(quests); } return size; @@ -455,6 +607,24 @@ public final class PublicJointDrill { input.readMessage(meta); bitField0_ |= 0x00000001; tag = input.readTag(); + if (tag != 74) { + break; + } + } + case 74: { + // mode1 + input.readMessage(mode1); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 82) { + break; + } + } + case 82: { + // mode2 + input.readMessage(mode2); + bitField0_ |= 0x00000004; + tag = input.readTag(); if (tag != 16378) { break; } @@ -462,7 +632,7 @@ public final class PublicJointDrill { case 16378: { // nextPackage input.readBytes(nextPackage); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 18) { break; @@ -471,7 +641,7 @@ public final class PublicJointDrill { case 18: { // passedLevels tag = input.readRepeatedMessage(passedLevels, tag); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; if (tag != 26) { break; } @@ -479,7 +649,7 @@ public final class PublicJointDrill { case 26: { // quests tag = input.readRepeatedMessage(quests, tag); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; if (tag != 0) { break; } @@ -505,12 +675,18 @@ public final class PublicJointDrill { output.writeMessage(FieldNames.meta, meta); } if ((bitField0_ & 0x00000002) != 0) { - output.writeBytes(FieldNames.nextPackage, nextPackage); + output.writeMessage(FieldNames.mode1, mode1); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRepeatedMessage(FieldNames.passedLevels, passedLevels); + output.writeMessage(FieldNames.mode2, mode2); } if ((bitField0_ & 0x00000008) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRepeatedMessage(FieldNames.passedLevels, passedLevels); + } + if ((bitField0_ & 0x00000020) != 0) { output.writeRepeatedMessage(FieldNames.quests, quests); } output.endObject(); @@ -534,11 +710,33 @@ public final class PublicJointDrill { } break; } + case 74517198: { + if (input.isAtField(FieldNames.mode1)) { + if (!input.trySkipNullValue()) { + input.readMessage(mode1); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 74517199: { + if (input.isAtField(FieldNames.mode2)) { + if (!input.trySkipNullValue()) { + input.readMessage(mode2); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } case -2082324045: { if (input.isAtField(FieldNames.nextPackage)) { if (!input.trySkipNullValue()) { input.readBytes(nextPackage); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; } } else { input.skipUnknownField(); @@ -549,7 +747,7 @@ public final class PublicJointDrill { if (input.isAtField(FieldNames.passedLevels)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(passedLevels); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; } } else { input.skipUnknownField(); @@ -560,7 +758,7 @@ public final class PublicJointDrill { if (input.isAtField(FieldNames.quests)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(quests); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; } } else { input.skipUnknownField(); @@ -622,6 +820,10 @@ public final class PublicJointDrill { static class FieldNames { static final FieldName meta = FieldName.forField("Meta"); + static final FieldName mode1 = FieldName.forField("Mode1"); + + static final FieldName mode2 = FieldName.forField("Mode2"); + static final FieldName nextPackage = FieldName.forField("NextPackage"); static final FieldName passedLevels = FieldName.forField("PassedLevels"); @@ -652,37 +854,22 @@ public final class PublicJointDrill { private int floor; /** - * optional uint32 BossHP = 4; - */ - private int bossHP; - - /** - * optional uint32 BossHPMax = 5; - */ - private int bossHPMax; - - /** - * optional uint32 TotalScore = 9; + * optional uint32 TotalScore = 7; */ private int totalScore; /** - * optional bool Simulate = 8; + * optional bool Simulate = 6; */ private boolean simulate; - /** - * optional bytes Record = 6; - */ - private final RepeatedByte record = RepeatedByte.newEmptyInstance(); - /** * optional bytes NextPackage = 2047; */ private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); /** - * repeated .JointDrillTeam Teams = 7; + * repeated .JointDrillTeam Teams = 5; */ private final RepeatedMessage teams = RepeatedMessage.newEmptyInstance(JointDrillTeam.getFactory()); @@ -808,99 +995,25 @@ public final class PublicJointDrill { } /** - * optional uint32 BossHP = 4; - * @return whether the bossHP field is set + * optional uint32 TotalScore = 7; + * @return whether the totalScore field is set */ - public boolean hasBossHP() { + public boolean hasTotalScore() { return (bitField0_ & 0x00000008) != 0; } /** - * optional uint32 BossHP = 4; - * @return this - */ - public JointDrillMeta clearBossHP() { - bitField0_ &= ~0x00000008; - bossHP = 0; - return this; - } - - /** - * optional uint32 BossHP = 4; - * @return the bossHP - */ - public int getBossHP() { - return bossHP; - } - - /** - * optional uint32 BossHP = 4; - * @param value the bossHP to set - * @return this - */ - public JointDrillMeta setBossHP(final int value) { - bitField0_ |= 0x00000008; - bossHP = value; - return this; - } - - /** - * optional uint32 BossHPMax = 5; - * @return whether the bossHPMax field is set - */ - public boolean hasBossHPMax() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - * optional uint32 BossHPMax = 5; - * @return this - */ - public JointDrillMeta clearBossHPMax() { - bitField0_ &= ~0x00000010; - bossHPMax = 0; - return this; - } - - /** - * optional uint32 BossHPMax = 5; - * @return the bossHPMax - */ - public int getBossHPMax() { - return bossHPMax; - } - - /** - * optional uint32 BossHPMax = 5; - * @param value the bossHPMax to set - * @return this - */ - public JointDrillMeta setBossHPMax(final int value) { - bitField0_ |= 0x00000010; - bossHPMax = value; - return this; - } - - /** - * optional uint32 TotalScore = 9; - * @return whether the totalScore field is set - */ - public boolean hasTotalScore() { - return (bitField0_ & 0x00000020) != 0; - } - - /** - * optional uint32 TotalScore = 9; + * optional uint32 TotalScore = 7; * @return this */ public JointDrillMeta clearTotalScore() { - bitField0_ &= ~0x00000020; + bitField0_ &= ~0x00000008; totalScore = 0; return this; } /** - * optional uint32 TotalScore = 9; + * optional uint32 TotalScore = 7; * @return the totalScore */ public int getTotalScore() { @@ -908,36 +1021,36 @@ public final class PublicJointDrill { } /** - * optional uint32 TotalScore = 9; + * optional uint32 TotalScore = 7; * @param value the totalScore to set * @return this */ public JointDrillMeta setTotalScore(final int value) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000008; totalScore = value; return this; } /** - * optional bool Simulate = 8; + * optional bool Simulate = 6; * @return whether the simulate field is set */ public boolean hasSimulate() { - return (bitField0_ & 0x00000040) != 0; + return (bitField0_ & 0x00000010) != 0; } /** - * optional bool Simulate = 8; + * optional bool Simulate = 6; * @return this */ public JointDrillMeta clearSimulate() { - bitField0_ &= ~0x00000040; + bitField0_ &= ~0x00000010; simulate = false; return this; } /** - * optional bool Simulate = 8; + * optional bool Simulate = 6; * @return the simulate */ public boolean getSimulate() { @@ -945,101 +1058,22 @@ public final class PublicJointDrill { } /** - * optional bool Simulate = 8; + * optional bool Simulate = 6; * @param value the simulate to set * @return this */ public JointDrillMeta setSimulate(final boolean value) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000010; simulate = value; return this; } - /** - * optional bytes Record = 6; - * @return whether the record field is set - */ - public boolean hasRecord() { - return (bitField0_ & 0x00000080) != 0; - } - - /** - * optional bytes Record = 6; - * @return this - */ - public JointDrillMeta clearRecord() { - bitField0_ &= ~0x00000080; - record.clear(); - return this; - } - - /** - * optional bytes Record = 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 #getMutableRecord()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedByte getRecord() { - return record; - } - - /** - * optional bytes Record = 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 RepeatedByte getMutableRecord() { - bitField0_ |= 0x00000080; - return record; - } - - /** - * optional bytes Record = 6; - * @param value the record to add - * @return this - */ - public JointDrillMeta addRecord(final byte value) { - bitField0_ |= 0x00000080; - record.add(value); - return this; - } - - /** - * optional bytes Record = 6; - * @param values the record to add - * @return this - */ - public JointDrillMeta addAllRecord(final byte... values) { - bitField0_ |= 0x00000080; - record.addAll(values); - return this; - } - - /** - * optional bytes Record = 6; - * @param values the record to set - * @return this - */ - public JointDrillMeta setRecord(final byte... values) { - bitField0_ |= 0x00000080; - record.copyFrom(values); - return this; - } - /** * optional bytes NextPackage = 2047; * @return whether the nextPackage field is set */ public boolean hasNextPackage() { - return (bitField0_ & 0x00000100) != 0; + return (bitField0_ & 0x00000020) != 0; } /** @@ -1047,7 +1081,7 @@ public final class PublicJointDrill { * @return this */ public JointDrillMeta clearNextPackage() { - bitField0_ &= ~0x00000100; + bitField0_ &= ~0x00000020; nextPackage.clear(); return this; } @@ -1076,7 +1110,7 @@ public final class PublicJointDrill { * @return internal storage object for modifications */ public RepeatedByte getMutableNextPackage() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000020; return nextPackage; } @@ -1086,7 +1120,7 @@ public final class PublicJointDrill { * @return this */ public JointDrillMeta addNextPackage(final byte value) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000020; nextPackage.add(value); return this; } @@ -1097,7 +1131,7 @@ public final class PublicJointDrill { * @return this */ public JointDrillMeta addAllNextPackage(final byte... values) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000020; nextPackage.addAll(values); return this; } @@ -1108,31 +1142,31 @@ public final class PublicJointDrill { * @return this */ public JointDrillMeta setNextPackage(final byte... values) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000020; nextPackage.copyFrom(values); return this; } /** - * repeated .JointDrillTeam Teams = 7; + * repeated .JointDrillTeam Teams = 5; * @return whether the teams field is set */ public boolean hasTeams() { - return (bitField0_ & 0x00000200) != 0; + return (bitField0_ & 0x00000040) != 0; } /** - * repeated .JointDrillTeam Teams = 7; + * repeated .JointDrillTeam Teams = 5; * @return this */ public JointDrillMeta clearTeams() { - bitField0_ &= ~0x00000200; + bitField0_ &= ~0x00000040; teams.clear(); return this; } /** - * repeated .JointDrillTeam Teams = 7; + * repeated .JointDrillTeam Teams = 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. @@ -1146,7 +1180,7 @@ public final class PublicJointDrill { } /** - * repeated .JointDrillTeam Teams = 7; + * repeated .JointDrillTeam Teams = 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 @@ -1155,28 +1189,28 @@ public final class PublicJointDrill { * @return internal storage object for modifications */ public RepeatedMessage getMutableTeams() { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000040; return teams; } /** - * repeated .JointDrillTeam Teams = 7; + * repeated .JointDrillTeam Teams = 5; * @param value the teams to add * @return this */ public JointDrillMeta addTeams(final JointDrillTeam value) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000040; teams.add(value); return this; } /** - * repeated .JointDrillTeam Teams = 7; + * repeated .JointDrillTeam Teams = 5; * @param values the teams to add * @return this */ public JointDrillMeta addAllTeams(final JointDrillTeam... values) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000040; teams.addAll(values); return this; } @@ -1189,11 +1223,8 @@ public final class PublicJointDrill { startTime = other.startTime; levelId = other.levelId; floor = other.floor; - bossHP = other.bossHP; - bossHPMax = other.bossHPMax; totalScore = other.totalScore; simulate = other.simulate; - record.copyFrom(other.record); nextPackage.copyFrom(other.nextPackage); teams.copyFrom(other.teams); } @@ -1215,21 +1246,12 @@ public final class PublicJointDrill { if (other.hasFloor()) { setFloor(other.floor); } - if (other.hasBossHP()) { - setBossHP(other.bossHP); - } - if (other.hasBossHPMax()) { - setBossHPMax(other.bossHPMax); - } if (other.hasTotalScore()) { setTotalScore(other.totalScore); } if (other.hasSimulate()) { setSimulate(other.simulate); } - if (other.hasRecord()) { - getMutableRecord().copyFrom(other.record); - } if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); } @@ -1249,11 +1271,8 @@ public final class PublicJointDrill { startTime = 0L; levelId = 0; floor = 0; - bossHP = 0; - bossHPMax = 0; totalScore = 0; simulate = false; - record.clear(); nextPackage.clear(); teams.clear(); return this; @@ -1266,7 +1285,6 @@ public final class PublicJointDrill { } cachedSize = -1; bitField0_ = 0; - record.clear(); nextPackage.clear(); teams.clearQuick(); return this; @@ -1285,11 +1303,8 @@ public final class PublicJointDrill { && (!hasStartTime() || startTime == other.startTime) && (!hasLevelId() || levelId == other.levelId) && (!hasFloor() || floor == other.floor) - && (!hasBossHP() || bossHP == other.bossHP) - && (!hasBossHPMax() || bossHPMax == other.bossHPMax) && (!hasTotalScore() || totalScore == other.totalScore) && (!hasSimulate() || simulate == other.simulate) - && (!hasRecord() || record.equals(other.record)) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) && (!hasTeams() || teams.equals(other.teams)); } @@ -1309,32 +1324,20 @@ public final class PublicJointDrill { output.writeUInt32NoTag(floor); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 32); - output.writeUInt32NoTag(bossHP); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 40); - output.writeUInt32NoTag(bossHPMax); - } - if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 72); + output.writeRawByte((byte) 56); output.writeUInt32NoTag(totalScore); } - if ((bitField0_ & 0x00000040) != 0) { - output.writeRawByte((byte) 64); + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 48); output.writeBoolNoTag(simulate); } - if ((bitField0_ & 0x00000080) != 0) { - output.writeRawByte((byte) 50); - output.writeBytesNoTag(record); - } - if ((bitField0_ & 0x00000100) != 0) { + if ((bitField0_ & 0x00000020) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); } - if ((bitField0_ & 0x00000200) != 0) { + if ((bitField0_ & 0x00000040) != 0) { for (int i = 0; i < teams.length(); i++) { - output.writeRawByte((byte) 58); + output.writeRawByte((byte) 42); output.writeMessageNoTag(teams.get(i)); } } @@ -1353,24 +1356,15 @@ public final class PublicJointDrill { size += 1 + ProtoSink.computeUInt32SizeNoTag(floor); } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(bossHP); - } - if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(bossHPMax); - } - if ((bitField0_ & 0x00000020) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(totalScore); } - if ((bitField0_ & 0x00000040) != 0) { + if ((bitField0_ & 0x00000010) != 0) { size += 2; } - if ((bitField0_ & 0x00000080) != 0) { - size += 1 + ProtoSink.computeBytesSizeNoTag(record); - } - if ((bitField0_ & 0x00000100) != 0) { + if ((bitField0_ & 0x00000020) != 0) { size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); } - if ((bitField0_ & 0x00000200) != 0) { + if ((bitField0_ & 0x00000040) != 0) { size += (1 * teams.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(teams); } return size; @@ -1406,50 +1400,23 @@ public final class PublicJointDrill { floor = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 32) { + if (tag != 56) { break; } } - case 32: { - // bossHP - bossHP = input.readUInt32(); - bitField0_ |= 0x00000008; - tag = input.readTag(); - if (tag != 40) { - break; - } - } - case 40: { - // bossHPMax - bossHPMax = input.readUInt32(); - bitField0_ |= 0x00000010; - tag = input.readTag(); - if (tag != 72) { - break; - } - } - case 72: { + case 56: { // totalScore totalScore = input.readUInt32(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 64) { + if (tag != 48) { break; } } - case 64: { + case 48: { // simulate simulate = input.readBool(); - bitField0_ |= 0x00000040; - tag = input.readTag(); - if (tag != 50) { - break; - } - } - case 50: { - // record - input.readBytes(record); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000010; tag = input.readTag(); if (tag != 16378) { break; @@ -1458,16 +1425,16 @@ public final class PublicJointDrill { case 16378: { // nextPackage input.readBytes(nextPackage); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000020; tag = input.readTag(); - if (tag != 58) { + if (tag != 42) { break; } } - case 58: { + case 42: { // teams tag = input.readRepeatedMessage(teams, tag); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000040; if (tag != 0) { break; } @@ -1499,24 +1466,15 @@ public final class PublicJointDrill { output.writeUInt32(FieldNames.floor, floor); } if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.bossHP, bossHP); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeUInt32(FieldNames.bossHPMax, bossHPMax); - } - if ((bitField0_ & 0x00000020) != 0) { output.writeUInt32(FieldNames.totalScore, totalScore); } - if ((bitField0_ & 0x00000040) != 0) { + if ((bitField0_ & 0x00000010) != 0) { output.writeBool(FieldNames.simulate, simulate); } - if ((bitField0_ & 0x00000080) != 0) { - output.writeBytes(FieldNames.record, record); - } - if ((bitField0_ & 0x00000100) != 0) { + if ((bitField0_ & 0x00000020) != 0) { output.writeBytes(FieldNames.nextPackage, nextPackage); } - if ((bitField0_ & 0x00000200) != 0) { + if ((bitField0_ & 0x00000040) != 0) { output.writeRepeatedMessage(FieldNames.teams, teams); } output.endObject(); @@ -1562,33 +1520,11 @@ public final class PublicJointDrill { } break; } - case 1995573589: { - if (input.isAtField(FieldNames.bossHP)) { - if (!input.trySkipNullValue()) { - bossHP = input.readUInt32(); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } - case -804444209: { - if (input.isAtField(FieldNames.bossHPMax)) { - if (!input.trySkipNullValue()) { - bossHPMax = input.readUInt32(); - bitField0_ |= 0x00000010; - } - } else { - input.skipUnknownField(); - } - break; - } case 1276492238: { if (input.isAtField(FieldNames.totalScore)) { if (!input.trySkipNullValue()) { totalScore = input.readUInt32(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000008; } } else { input.skipUnknownField(); @@ -1599,18 +1535,7 @@ public final class PublicJointDrill { if (input.isAtField(FieldNames.simulate)) { if (!input.trySkipNullValue()) { simulate = input.readBool(); - bitField0_ |= 0x00000040; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1851041679: { - if (input.isAtField(FieldNames.record)) { - if (!input.trySkipNullValue()) { - input.readBytes(record); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000010; } } else { input.skipUnknownField(); @@ -1621,7 +1546,7 @@ public final class PublicJointDrill { if (input.isAtField(FieldNames.nextPackage)) { if (!input.trySkipNullValue()) { input.readBytes(nextPackage); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000020; } } else { input.skipUnknownField(); @@ -1632,7 +1557,7 @@ public final class PublicJointDrill { if (input.isAtField(FieldNames.teams)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(teams); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000040; } } else { input.skipUnknownField(); @@ -1698,19 +1623,1667 @@ public final class PublicJointDrill { static final FieldName floor = FieldName.forField("Floor"); - static final FieldName bossHP = FieldName.forField("BossHP"); - - static final FieldName bossHPMax = FieldName.forField("BossHPMax"); - static final FieldName totalScore = FieldName.forField("TotalScore"); static final FieldName simulate = FieldName.forField("Simulate"); + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName teams = FieldName.forField("Teams"); + } + } + + /** + * Protobuf type {@code Mode1Meta} + */ + public static final class Mode1Meta extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 BossHp = 1; + */ + private int bossHp; + + /** + * optional uint32 BossHpMax = 2; + */ + private int bossHpMax; + + /** + * optional bytes Record = 3; + */ + private final RepeatedByte record = RepeatedByte.newEmptyInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private Mode1Meta() { + } + + /** + * @return a new empty instance of {@code Mode1Meta} + */ + public static Mode1Meta newInstance() { + return new Mode1Meta(); + } + + /** + * optional uint32 BossHp = 1; + * @return whether the bossHp field is set + */ + public boolean hasBossHp() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 BossHp = 1; + * @return this + */ + public Mode1Meta clearBossHp() { + bitField0_ &= ~0x00000001; + bossHp = 0; + return this; + } + + /** + * optional uint32 BossHp = 1; + * @return the bossHp + */ + public int getBossHp() { + return bossHp; + } + + /** + * optional uint32 BossHp = 1; + * @param value the bossHp to set + * @return this + */ + public Mode1Meta setBossHp(final int value) { + bitField0_ |= 0x00000001; + bossHp = value; + return this; + } + + /** + * optional uint32 BossHpMax = 2; + * @return whether the bossHpMax field is set + */ + public boolean hasBossHpMax() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 BossHpMax = 2; + * @return this + */ + public Mode1Meta clearBossHpMax() { + bitField0_ &= ~0x00000002; + bossHpMax = 0; + return this; + } + + /** + * optional uint32 BossHpMax = 2; + * @return the bossHpMax + */ + public int getBossHpMax() { + return bossHpMax; + } + + /** + * optional uint32 BossHpMax = 2; + * @param value the bossHpMax to set + * @return this + */ + public Mode1Meta setBossHpMax(final int value) { + bitField0_ |= 0x00000002; + bossHpMax = value; + return this; + } + + /** + * optional bytes Record = 3; + * @return whether the record field is set + */ + public boolean hasRecord() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bytes Record = 3; + * @return this + */ + public Mode1Meta clearRecord() { + bitField0_ &= ~0x00000004; + record.clear(); + return this; + } + + /** + * optional bytes Record = 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 #getMutableRecord()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedByte getRecord() { + return record; + } + + /** + * optional bytes Record = 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 RepeatedByte getMutableRecord() { + bitField0_ |= 0x00000004; + return record; + } + + /** + * optional bytes Record = 3; + * @param value the record to add + * @return this + */ + public Mode1Meta addRecord(final byte value) { + bitField0_ |= 0x00000004; + record.add(value); + return this; + } + + /** + * optional bytes Record = 3; + * @param values the record to add + * @return this + */ + public Mode1Meta addAllRecord(final byte... values) { + bitField0_ |= 0x00000004; + record.addAll(values); + return this; + } + + /** + * optional bytes Record = 3; + * @param values the record to set + * @return this + */ + public Mode1Meta setRecord(final byte... values) { + bitField0_ |= 0x00000004; + record.copyFrom(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public Mode1Meta clearNextPackage() { + bitField0_ &= ~0x00000008; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * This 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 #getMutableNextPackage()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedByte getNextPackage() { + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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 RepeatedByte getMutableNextPackage() { + bitField0_ |= 0x00000008; + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public Mode1Meta addNextPackage(final byte value) { + bitField0_ |= 0x00000008; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public Mode1Meta addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public Mode1Meta setNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.copyFrom(values); + return this; + } + + @Override + public Mode1Meta copyFrom(final Mode1Meta other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + bossHp = other.bossHp; + bossHpMax = other.bossHpMax; + record.copyFrom(other.record); + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public Mode1Meta mergeFrom(final Mode1Meta other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasBossHp()) { + setBossHp(other.bossHp); + } + if (other.hasBossHpMax()) { + setBossHpMax(other.bossHpMax); + } + if (other.hasRecord()) { + getMutableRecord().copyFrom(other.record); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public Mode1Meta clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + bossHp = 0; + bossHpMax = 0; + record.clear(); + nextPackage.clear(); + return this; + } + + @Override + public Mode1Meta clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + record.clear(); + nextPackage.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof Mode1Meta)) { + return false; + } + Mode1Meta other = (Mode1Meta) o; + return bitField0_ == other.bitField0_ + && (!hasBossHp() || bossHp == other.bossHp) + && (!hasBossHpMax() || bossHpMax == other.bossHpMax) + && (!hasRecord() || record.equals(other.record)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(bossHp); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(bossHpMax); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 26); + output.writeBytesNoTag(record); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(bossHp); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(bossHpMax); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeBytesSizeNoTag(record); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public Mode1Meta mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // bossHp + bossHp = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // bossHpMax + bossHpMax = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // record + input.readBytes(record); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + 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.bossHp, bossHp); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.bossHpMax, bossHpMax); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.record, record); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public Mode1Meta mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1995573621: { + if (input.isAtField(FieldNames.bossHp)) { + if (!input.trySkipNullValue()) { + bossHp = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -803490897: { + if (input.isAtField(FieldNames.bossHpMax)) { + if (!input.trySkipNullValue()) { + bossHpMax = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1851041679: { + if (input.isAtField(FieldNames.record)) { + if (!input.trySkipNullValue()) { + input.readBytes(record); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public Mode1Meta clone() { + return new Mode1Meta().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static Mode1Meta parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new Mode1Meta(), data).checkInitialized(); + } + + public static Mode1Meta parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new Mode1Meta(), input).checkInitialized(); + } + + public static Mode1Meta parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new Mode1Meta(), input).checkInitialized(); + } + + /** + * @return factory for creating Mode1Meta messages + */ + public static MessageFactory getFactory() { + return Mode1MetaFactory.INSTANCE; + } + + private enum Mode1MetaFactory implements MessageFactory { + INSTANCE; + + @Override + public Mode1Meta create() { + return Mode1Meta.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName bossHp = FieldName.forField("BossHp"); + + static final FieldName bossHpMax = FieldName.forField("BossHpMax"); + + static final FieldName record = FieldName.forField("Record"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code Mode2Meta} + */ + public static final class Mode2Meta extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional bytes Record = 3; + */ + private final RepeatedByte record = RepeatedByte.newEmptyInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .JointDrillBossHp BossHps = 1; + */ + private final RepeatedMessage bossHps = RepeatedMessage.newEmptyInstance(JointDrillBossHp.getFactory()); + + /** + * repeated .JointDrillBossHp BossHpMaxes = 2; + */ + private final RepeatedMessage bossHpMaxes = RepeatedMessage.newEmptyInstance(JointDrillBossHp.getFactory()); + + private Mode2Meta() { + } + + /** + * @return a new empty instance of {@code Mode2Meta} + */ + public static Mode2Meta newInstance() { + return new Mode2Meta(); + } + + /** + * optional bytes Record = 3; + * @return whether the record field is set + */ + public boolean hasRecord() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional bytes Record = 3; + * @return this + */ + public Mode2Meta clearRecord() { + bitField0_ &= ~0x00000001; + record.clear(); + return this; + } + + /** + * optional bytes Record = 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 #getMutableRecord()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedByte getRecord() { + return record; + } + + /** + * optional bytes Record = 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 RepeatedByte getMutableRecord() { + bitField0_ |= 0x00000001; + return record; + } + + /** + * optional bytes Record = 3; + * @param value the record to add + * @return this + */ + public Mode2Meta addRecord(final byte value) { + bitField0_ |= 0x00000001; + record.add(value); + return this; + } + + /** + * optional bytes Record = 3; + * @param values the record to add + * @return this + */ + public Mode2Meta addAllRecord(final byte... values) { + bitField0_ |= 0x00000001; + record.addAll(values); + return this; + } + + /** + * optional bytes Record = 3; + * @param values the record to set + * @return this + */ + public Mode2Meta setRecord(final byte... values) { + bitField0_ |= 0x00000001; + record.copyFrom(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public Mode2Meta clearNextPackage() { + bitField0_ &= ~0x00000002; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * This 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 #getMutableNextPackage()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedByte getNextPackage() { + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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 RepeatedByte getMutableNextPackage() { + bitField0_ |= 0x00000002; + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public Mode2Meta addNextPackage(final byte value) { + bitField0_ |= 0x00000002; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public Mode2Meta addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public Mode2Meta setNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .JointDrillBossHp BossHps = 1; + * @return whether the bossHps field is set + */ + public boolean hasBossHps() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated .JointDrillBossHp BossHps = 1; + * @return this + */ + public Mode2Meta clearBossHps() { + bitField0_ &= ~0x00000004; + bossHps.clear(); + return this; + } + + /** + * repeated .JointDrillBossHp BossHps = 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 #getMutableBossHps()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getBossHps() { + return bossHps; + } + + /** + * repeated .JointDrillBossHp BossHps = 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 getMutableBossHps() { + bitField0_ |= 0x00000004; + return bossHps; + } + + /** + * repeated .JointDrillBossHp BossHps = 1; + * @param value the bossHps to add + * @return this + */ + public Mode2Meta addBossHps(final JointDrillBossHp value) { + bitField0_ |= 0x00000004; + bossHps.add(value); + return this; + } + + /** + * repeated .JointDrillBossHp BossHps = 1; + * @param values the bossHps to add + * @return this + */ + public Mode2Meta addAllBossHps(final JointDrillBossHp... values) { + bitField0_ |= 0x00000004; + bossHps.addAll(values); + return this; + } + + /** + * repeated .JointDrillBossHp BossHpMaxes = 2; + * @return whether the bossHpMaxes field is set + */ + public boolean hasBossHpMaxes() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated .JointDrillBossHp BossHpMaxes = 2; + * @return this + */ + public Mode2Meta clearBossHpMaxes() { + bitField0_ &= ~0x00000008; + bossHpMaxes.clear(); + return this; + } + + /** + * repeated .JointDrillBossHp BossHpMaxes = 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 #getMutableBossHpMaxes()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getBossHpMaxes() { + return bossHpMaxes; + } + + /** + * repeated .JointDrillBossHp BossHpMaxes = 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 getMutableBossHpMaxes() { + bitField0_ |= 0x00000008; + return bossHpMaxes; + } + + /** + * repeated .JointDrillBossHp BossHpMaxes = 2; + * @param value the bossHpMaxes to add + * @return this + */ + public Mode2Meta addBossHpMaxes(final JointDrillBossHp value) { + bitField0_ |= 0x00000008; + bossHpMaxes.add(value); + return this; + } + + /** + * repeated .JointDrillBossHp BossHpMaxes = 2; + * @param values the bossHpMaxes to add + * @return this + */ + public Mode2Meta addAllBossHpMaxes(final JointDrillBossHp... values) { + bitField0_ |= 0x00000008; + bossHpMaxes.addAll(values); + return this; + } + + @Override + public Mode2Meta copyFrom(final Mode2Meta other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + record.copyFrom(other.record); + nextPackage.copyFrom(other.nextPackage); + bossHps.copyFrom(other.bossHps); + bossHpMaxes.copyFrom(other.bossHpMaxes); + } + return this; + } + + @Override + public Mode2Meta mergeFrom(final Mode2Meta other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRecord()) { + getMutableRecord().copyFrom(other.record); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasBossHps()) { + getMutableBossHps().addAll(other.bossHps); + } + if (other.hasBossHpMaxes()) { + getMutableBossHpMaxes().addAll(other.bossHpMaxes); + } + return this; + } + + @Override + public Mode2Meta clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + record.clear(); + nextPackage.clear(); + bossHps.clear(); + bossHpMaxes.clear(); + return this; + } + + @Override + public Mode2Meta clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + record.clear(); + nextPackage.clear(); + bossHps.clearQuick(); + bossHpMaxes.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof Mode2Meta)) { + return false; + } + Mode2Meta other = (Mode2Meta) o; + return bitField0_ == other.bitField0_ + && (!hasRecord() || record.equals(other.record)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasBossHps() || bossHps.equals(other.bossHps)) + && (!hasBossHpMaxes() || bossHpMaxes.equals(other.bossHpMaxes)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 26); + output.writeBytesNoTag(record); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < bossHps.length(); i++) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(bossHps.get(i)); + } + } + if ((bitField0_ & 0x00000008) != 0) { + for (int i = 0; i < bossHpMaxes.length(); i++) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(bossHpMaxes.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeBytesSizeNoTag(record); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * bossHps.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(bossHps); + } + if ((bitField0_ & 0x00000008) != 0) { + size += (1 * bossHpMaxes.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(bossHpMaxes); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public Mode2Meta mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 26: { + // record + input.readBytes(record); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // bossHps + tag = input.readRepeatedMessage(bossHps, tag); + bitField0_ |= 0x00000004; + if (tag != 18) { + break; + } + } + case 18: { + // bossHpMaxes + tag = input.readRepeatedMessage(bossHpMaxes, tag); + bitField0_ |= 0x00000008; + 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.writeBytes(FieldNames.record, record); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedMessage(FieldNames.bossHps, bossHps); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedMessage(FieldNames.bossHpMaxes, bossHpMaxes); + } + output.endObject(); + } + + @Override + public Mode2Meta mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1851041679: { + if (input.isAtField(FieldNames.record)) { + if (!input.trySkipNullValue()) { + input.readBytes(record); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1733240222: { + if (input.isAtField(FieldNames.bossHps)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(bossHps); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 939364509: { + if (input.isAtField(FieldNames.bossHpMaxes)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(bossHpMaxes); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public Mode2Meta clone() { + return new Mode2Meta().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static Mode2Meta parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new Mode2Meta(), data).checkInitialized(); + } + + public static Mode2Meta parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new Mode2Meta(), input).checkInitialized(); + } + + public static Mode2Meta parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new Mode2Meta(), input).checkInitialized(); + } + + /** + * @return factory for creating Mode2Meta messages + */ + public static MessageFactory getFactory() { + return Mode2MetaFactory.INSTANCE; + } + + private enum Mode2MetaFactory implements MessageFactory { + INSTANCE; + + @Override + public Mode2Meta create() { + return Mode2Meta.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { static final FieldName record = FieldName.forField("Record"); static final FieldName nextPackage = FieldName.forField("NextPackage"); - static final FieldName teams = FieldName.forField("Teams"); + static final FieldName bossHps = FieldName.forField("BossHps"); + + static final FieldName bossHpMaxes = FieldName.forField("BossHpMaxes"); + } + } + + /** + * Protobuf type {@code JointDrillBossHp} + */ + public static final class JointDrillBossHp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Id = 1; + */ + private int id; + + /** + * optional uint32 Hp = 2; + */ + private int hp; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private JointDrillBossHp() { + } + + /** + * @return a new empty instance of {@code JointDrillBossHp} + */ + public static JointDrillBossHp newInstance() { + return new JointDrillBossHp(); + } + + /** + * optional uint32 Id = 1; + * @return whether the id field is set + */ + public boolean hasId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 Id = 1; + * @return this + */ + public JointDrillBossHp clearId() { + bitField0_ &= ~0x00000001; + id = 0; + return this; + } + + /** + * optional uint32 Id = 1; + * @return the id + */ + public int getId() { + return id; + } + + /** + * optional uint32 Id = 1; + * @param value the id to set + * @return this + */ + public JointDrillBossHp setId(final int value) { + bitField0_ |= 0x00000001; + id = value; + return this; + } + + /** + * optional uint32 Hp = 2; + * @return whether the hp field is set + */ + public boolean hasHp() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 Hp = 2; + * @return this + */ + public JointDrillBossHp clearHp() { + bitField0_ &= ~0x00000002; + hp = 0; + return this; + } + + /** + * optional uint32 Hp = 2; + * @return the hp + */ + public int getHp() { + return hp; + } + + /** + * optional uint32 Hp = 2; + * @param value the hp to set + * @return this + */ + public JointDrillBossHp setHp(final int value) { + bitField0_ |= 0x00000002; + hp = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public JointDrillBossHp clearNextPackage() { + bitField0_ &= ~0x00000004; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * This 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 #getMutableNextPackage()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedByte getNextPackage() { + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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 RepeatedByte getMutableNextPackage() { + bitField0_ |= 0x00000004; + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public JointDrillBossHp addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public JointDrillBossHp addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public JointDrillBossHp setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + @Override + public JointDrillBossHp copyFrom(final JointDrillBossHp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + id = other.id; + hp = other.hp; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public JointDrillBossHp mergeFrom(final JointDrillBossHp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasId()) { + setId(other.id); + } + if (other.hasHp()) { + setHp(other.hp); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public JointDrillBossHp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + id = 0; + hp = 0; + nextPackage.clear(); + return this; + } + + @Override + public JointDrillBossHp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof JointDrillBossHp)) { + return false; + } + JointDrillBossHp other = (JointDrillBossHp) o; + return bitField0_ == other.bitField0_ + && (!hasId() || id == other.id) + && (!hasHp() || hp == other.hp) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(id); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(hp); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(id); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(hp); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public JointDrillBossHp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // id + id = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // hp + hp = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + 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.id, id); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.hp, hp); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public JointDrillBossHp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 2363: { + if (input.isAtField(FieldNames.id)) { + if (!input.trySkipNullValue()) { + id = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2344: { + if (input.isAtField(FieldNames.hp)) { + if (!input.trySkipNullValue()) { + hp = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public JointDrillBossHp clone() { + return new JointDrillBossHp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static JointDrillBossHp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new JointDrillBossHp(), data).checkInitialized(); + } + + public static JointDrillBossHp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new JointDrillBossHp(), input).checkInitialized(); + } + + public static JointDrillBossHp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new JointDrillBossHp(), input).checkInitialized(); + } + + /** + * @return factory for creating JointDrillBossHp messages + */ + public static MessageFactory getFactory() { + return JointDrillBossHpFactory.INSTANCE; + } + + private enum JointDrillBossHpFactory implements MessageFactory { + INSTANCE; + + @Override + public JointDrillBossHp create() { + return JointDrillBossHp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName id = FieldName.forField("Id"); + + static final FieldName hp = FieldName.forField("Hp"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); } } diff --git a/src/generated/main/emu/nebula/proto/TravelerDuelRankUpload.java b/src/generated/main/emu/nebula/proto/TravelerDuelRankUpload.java index c5caff1..5869935 100644 --- a/src/generated/main/emu/nebula/proto/TravelerDuelRankUpload.java +++ b/src/generated/main/emu/nebula/proto/TravelerDuelRankUpload.java @@ -513,6 +513,11 @@ public final class TravelerDuelRankUpload { */ private final TravelerDuelBattleSamples samples = TravelerDuelBattleSamples.newInstance(); + /** + * optional bytes Extra = 3; + */ + private final RepeatedByte extra = RepeatedByte.newEmptyInstance(); + /** * optional bytes NextPackage = 2047; */ @@ -642,12 +647,91 @@ public final class TravelerDuelRankUpload { return this; } + /** + * optional bytes Extra = 3; + * @return whether the extra field is set + */ + public boolean hasExtra() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bytes Extra = 3; + * @return this + */ + public TravelerDuelBattleData clearExtra() { + bitField0_ &= ~0x00000004; + extra.clear(); + return this; + } + + /** + * optional bytes Extra = 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 #getMutableExtra()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedByte getExtra() { + return extra; + } + + /** + * optional bytes Extra = 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 RepeatedByte getMutableExtra() { + bitField0_ |= 0x00000004; + return extra; + } + + /** + * optional bytes Extra = 3; + * @param value the extra to add + * @return this + */ + public TravelerDuelBattleData addExtra(final byte value) { + bitField0_ |= 0x00000004; + extra.add(value); + return this; + } + + /** + * optional bytes Extra = 3; + * @param values the extra to add + * @return this + */ + public TravelerDuelBattleData addAllExtra(final byte... values) { + bitField0_ |= 0x00000004; + extra.addAll(values); + return this; + } + + /** + * optional bytes Extra = 3; + * @param values the extra to set + * @return this + */ + public TravelerDuelBattleData setExtra(final byte... values) { + bitField0_ |= 0x00000004; + extra.copyFrom(values); + return this; + } + /** * optional bytes NextPackage = 2047; * @return whether the nextPackage field is set */ public boolean hasNextPackage() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000008) != 0; } /** @@ -655,7 +739,7 @@ public final class TravelerDuelRankUpload { * @return this */ public TravelerDuelBattleData clearNextPackage() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000008; nextPackage.clear(); return this; } @@ -684,7 +768,7 @@ public final class TravelerDuelRankUpload { * @return internal storage object for modifications */ public RepeatedByte getMutableNextPackage() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; return nextPackage; } @@ -694,7 +778,7 @@ public final class TravelerDuelRankUpload { * @return this */ public TravelerDuelBattleData addNextPackage(final byte value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; nextPackage.add(value); return this; } @@ -705,7 +789,7 @@ public final class TravelerDuelRankUpload { * @return this */ public TravelerDuelBattleData addAllNextPackage(final byte... values) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; nextPackage.addAll(values); return this; } @@ -716,7 +800,7 @@ public final class TravelerDuelRankUpload { * @return this */ public TravelerDuelBattleData setNextPackage(final byte... values) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; nextPackage.copyFrom(values); return this; } @@ -728,6 +812,7 @@ public final class TravelerDuelRankUpload { bitField0_ = other.bitField0_; meta.copyFrom(other.meta); samples.copyFrom(other.samples); + extra.copyFrom(other.extra); nextPackage.copyFrom(other.nextPackage); } return this; @@ -745,6 +830,9 @@ public final class TravelerDuelRankUpload { if (other.hasSamples()) { getMutableSamples().mergeFrom(other.samples); } + if (other.hasExtra()) { + getMutableExtra().copyFrom(other.extra); + } if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); } @@ -760,6 +848,7 @@ public final class TravelerDuelRankUpload { bitField0_ = 0; meta.clear(); samples.clear(); + extra.clear(); nextPackage.clear(); return this; } @@ -773,6 +862,7 @@ public final class TravelerDuelRankUpload { bitField0_ = 0; meta.clearQuick(); samples.clearQuick(); + extra.clear(); nextPackage.clear(); return this; } @@ -789,6 +879,7 @@ public final class TravelerDuelRankUpload { return bitField0_ == other.bitField0_ && (!hasMeta() || meta.equals(other.meta)) && (!hasSamples() || samples.equals(other.samples)) + && (!hasExtra() || extra.equals(other.extra)) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); } @@ -803,6 +894,10 @@ public final class TravelerDuelRankUpload { output.writeMessageNoTag(samples); } if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 26); + output.writeBytesNoTag(extra); + } + if ((bitField0_ & 0x00000008) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); } @@ -818,6 +913,9 @@ public final class TravelerDuelRankUpload { size += 1 + ProtoSink.computeMessageSizeNoTag(samples); } if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeBytesSizeNoTag(extra); + } + if ((bitField0_ & 0x00000008) != 0) { size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); } return size; @@ -844,6 +942,15 @@ public final class TravelerDuelRankUpload { input.readMessage(samples); bitField0_ |= 0x00000002; tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // extra + input.readBytes(extra); + bitField0_ |= 0x00000004; + tag = input.readTag(); if (tag != 16378) { break; } @@ -851,7 +958,7 @@ public final class TravelerDuelRankUpload { case 16378: { // nextPackage input.readBytes(nextPackage); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 0) { break; @@ -881,6 +988,9 @@ public final class TravelerDuelRankUpload { output.writeMessage(FieldNames.samples, samples); } if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.extra, extra); + } + if ((bitField0_ & 0x00000008) != 0) { output.writeBytes(FieldNames.nextPackage, nextPackage); } output.endObject(); @@ -915,11 +1025,22 @@ public final class TravelerDuelRankUpload { } break; } + case 67412976: { + if (input.isAtField(FieldNames.extra)) { + if (!input.trySkipNullValue()) { + input.readBytes(extra); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } case -2082324045: { if (input.isAtField(FieldNames.nextPackage)) { if (!input.trySkipNullValue()) { input.readBytes(nextPackage); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; } } else { input.skipUnknownField(); @@ -983,6 +1104,8 @@ public final class TravelerDuelRankUpload { static final FieldName samples = FieldName.forField("Samples"); + static final FieldName extra = FieldName.forField("Extra"); + static final FieldName nextPackage = FieldName.forField("NextPackage"); } } @@ -2219,6 +2342,16 @@ public final class TravelerDuelRankUpload { public static final class TravelerDuelBattleSample extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; + /** + * optional int64 Dmg = 16; + */ + private long dmg; + + /** + * optional int64 Hp = 18; + */ + private long hp; + /** * optional float FromPerkIntensityRatio = 2; */ @@ -2299,16 +2432,6 @@ public final class TravelerDuelRankUpload { */ private int fromFinalDmgPlus; - /** - * optional int32 Dmg = 16; - */ - private int dmg; - - /** - * optional int32 Hp = 18; - */ - private int hp; - /** * optional bytes NextPackage = 2047; */ @@ -2324,12 +2447,86 @@ public final class TravelerDuelRankUpload { return new TravelerDuelBattleSample(); } + /** + * optional int64 Dmg = 16; + * @return whether the dmg field is set + */ + public boolean hasDmg() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional int64 Dmg = 16; + * @return this + */ + public TravelerDuelBattleSample clearDmg() { + bitField0_ &= ~0x00000001; + dmg = 0L; + return this; + } + + /** + * optional int64 Dmg = 16; + * @return the dmg + */ + public long getDmg() { + return dmg; + } + + /** + * optional int64 Dmg = 16; + * @param value the dmg to set + * @return this + */ + public TravelerDuelBattleSample setDmg(final long value) { + bitField0_ |= 0x00000001; + dmg = value; + return this; + } + + /** + * optional int64 Hp = 18; + * @return whether the hp field is set + */ + public boolean hasHp() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional int64 Hp = 18; + * @return this + */ + public TravelerDuelBattleSample clearHp() { + bitField0_ &= ~0x00000002; + hp = 0L; + return this; + } + + /** + * optional int64 Hp = 18; + * @return the hp + */ + public long getHp() { + return hp; + } + + /** + * optional int64 Hp = 18; + * @param value the hp to set + * @return this + */ + public TravelerDuelBattleSample setHp(final long value) { + bitField0_ |= 0x00000002; + hp = value; + return this; + } + /** * optional float FromPerkIntensityRatio = 2; * @return whether the fromPerkIntensityRatio field is set */ public boolean hasFromPerkIntensityRatio() { - return (bitField0_ & 0x00000001) != 0; + return (bitField0_ & 0x00000004) != 0; } /** @@ -2337,7 +2534,7 @@ public final class TravelerDuelRankUpload { * @return this */ public TravelerDuelBattleSample clearFromPerkIntensityRatio() { - bitField0_ &= ~0x00000001; + bitField0_ &= ~0x00000004; fromPerkIntensityRatio = 0F; return this; } @@ -2356,7 +2553,7 @@ public final class TravelerDuelRankUpload { * @return this */ public TravelerDuelBattleSample setFromPerkIntensityRatio(final float value) { - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; fromPerkIntensityRatio = value; return this; } @@ -2366,7 +2563,7 @@ public final class TravelerDuelRankUpload { * @return whether the fromSlotDmgRatio field is set */ public boolean hasFromSlotDmgRatio() { - return (bitField0_ & 0x00000002) != 0; + return (bitField0_ & 0x00000008) != 0; } /** @@ -2374,7 +2571,7 @@ public final class TravelerDuelRankUpload { * @return this */ public TravelerDuelBattleSample clearFromSlotDmgRatio() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000008; fromSlotDmgRatio = 0F; return this; } @@ -2393,7 +2590,7 @@ public final class TravelerDuelRankUpload { * @return this */ public TravelerDuelBattleSample setFromSlotDmgRatio(final float value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; fromSlotDmgRatio = value; return this; } @@ -2403,7 +2600,7 @@ public final class TravelerDuelRankUpload { * @return whether the fromEE field is set */ public boolean hasFromEE() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000010) != 0; } /** @@ -2411,7 +2608,7 @@ public final class TravelerDuelRankUpload { * @return this */ public TravelerDuelBattleSample clearFromEE() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000010; fromEE = 0F; return this; } @@ -2430,7 +2627,7 @@ public final class TravelerDuelRankUpload { * @return this */ public TravelerDuelBattleSample setFromEE(final float value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; fromEE = value; return this; } @@ -2440,7 +2637,7 @@ public final class TravelerDuelRankUpload { * @return whether the fromGenDmgRatio field is set */ public boolean hasFromGenDmgRatio() { - return (bitField0_ & 0x00000008) != 0; + return (bitField0_ & 0x00000020) != 0; } /** @@ -2448,7 +2645,7 @@ public final class TravelerDuelRankUpload { * @return this */ public TravelerDuelBattleSample clearFromGenDmgRatio() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000020; fromGenDmgRatio = 0F; return this; } @@ -2467,7 +2664,7 @@ public final class TravelerDuelRankUpload { * @return this */ public TravelerDuelBattleSample setFromGenDmgRatio(final float value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; fromGenDmgRatio = value; return this; } @@ -2477,7 +2674,7 @@ public final class TravelerDuelRankUpload { * @return whether the fromCritRatio field is set */ public boolean hasFromCritRatio() { - return (bitField0_ & 0x00000010) != 0; + return (bitField0_ & 0x00000040) != 0; } /** @@ -2485,7 +2682,7 @@ public final class TravelerDuelRankUpload { * @return this */ public TravelerDuelBattleSample clearFromCritRatio() { - bitField0_ &= ~0x00000010; + bitField0_ &= ~0x00000040; fromCritRatio = 0F; return this; } @@ -2504,7 +2701,7 @@ public final class TravelerDuelRankUpload { * @return this */ public TravelerDuelBattleSample setFromCritRatio(final float value) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; fromCritRatio = value; return this; } @@ -2514,7 +2711,7 @@ public final class TravelerDuelRankUpload { * @return whether the fromFinalDmgRatio field is set */ public boolean hasFromFinalDmgRatio() { - return (bitField0_ & 0x00000020) != 0; + return (bitField0_ & 0x00000080) != 0; } /** @@ -2522,7 +2719,7 @@ public final class TravelerDuelRankUpload { * @return this */ public TravelerDuelBattleSample clearFromFinalDmgRatio() { - bitField0_ &= ~0x00000020; + bitField0_ &= ~0x00000080; fromFinalDmgRatio = 0F; return this; } @@ -2541,7 +2738,7 @@ public final class TravelerDuelRankUpload { * @return this */ public TravelerDuelBattleSample setFromFinalDmgRatio(final float value) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000080; fromFinalDmgRatio = value; return this; } @@ -2551,7 +2748,7 @@ public final class TravelerDuelRankUpload { * @return whether the toErAmend field is set */ public boolean hasToErAmend() { - return (bitField0_ & 0x00000040) != 0; + return (bitField0_ & 0x00000100) != 0; } /** @@ -2559,7 +2756,7 @@ public final class TravelerDuelRankUpload { * @return this */ public TravelerDuelBattleSample clearToErAmend() { - bitField0_ &= ~0x00000040; + bitField0_ &= ~0x00000100; toErAmend = 0F; return this; } @@ -2578,7 +2775,7 @@ public final class TravelerDuelRankUpload { * @return this */ public TravelerDuelBattleSample setToErAmend(final float value) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000100; toErAmend = value; return this; } @@ -2588,7 +2785,7 @@ public final class TravelerDuelRankUpload { * @return whether the toDefAmend field is set */ public boolean hasToDefAmend() { - return (bitField0_ & 0x00000080) != 0; + return (bitField0_ & 0x00000200) != 0; } /** @@ -2596,7 +2793,7 @@ public final class TravelerDuelRankUpload { * @return this */ public TravelerDuelBattleSample clearToDefAmend() { - bitField0_ &= ~0x00000080; + bitField0_ &= ~0x00000200; toDefAmend = 0F; return this; } @@ -2615,7 +2812,7 @@ public final class TravelerDuelRankUpload { * @return this */ public TravelerDuelBattleSample setToDefAmend(final float value) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000200; toDefAmend = value; return this; } @@ -2625,7 +2822,7 @@ public final class TravelerDuelRankUpload { * @return whether the toRcdSlotDmgRatio field is set */ public boolean hasToRcdSlotDmgRatio() { - return (bitField0_ & 0x00000100) != 0; + return (bitField0_ & 0x00000400) != 0; } /** @@ -2633,7 +2830,7 @@ public final class TravelerDuelRankUpload { * @return this */ public TravelerDuelBattleSample clearToRcdSlotDmgRatio() { - bitField0_ &= ~0x00000100; + bitField0_ &= ~0x00000400; toRcdSlotDmgRatio = 0F; return this; } @@ -2652,7 +2849,7 @@ public final class TravelerDuelRankUpload { * @return this */ public TravelerDuelBattleSample setToRcdSlotDmgRatio(final float value) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; toRcdSlotDmgRatio = value; return this; } @@ -2662,7 +2859,7 @@ public final class TravelerDuelRankUpload { * @return whether the toEERCD field is set */ public boolean hasToEERCD() { - return (bitField0_ & 0x00000200) != 0; + return (bitField0_ & 0x00000800) != 0; } /** @@ -2670,7 +2867,7 @@ public final class TravelerDuelRankUpload { * @return this */ public TravelerDuelBattleSample clearToEERCD() { - bitField0_ &= ~0x00000200; + bitField0_ &= ~0x00000800; toEERCD = 0F; return this; } @@ -2689,7 +2886,7 @@ public final class TravelerDuelRankUpload { * @return this */ public TravelerDuelBattleSample setToEERCD(final float value) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; toEERCD = value; return this; } @@ -2699,7 +2896,7 @@ public final class TravelerDuelRankUpload { * @return whether the toGenDmgRcdRatio field is set */ public boolean hasToGenDmgRcdRatio() { - return (bitField0_ & 0x00000400) != 0; + return (bitField0_ & 0x00001000) != 0; } /** @@ -2707,7 +2904,7 @@ public final class TravelerDuelRankUpload { * @return this */ public TravelerDuelBattleSample clearToGenDmgRcdRatio() { - bitField0_ &= ~0x00000400; + bitField0_ &= ~0x00001000; toGenDmgRcdRatio = 0F; return this; } @@ -2726,7 +2923,7 @@ public final class TravelerDuelRankUpload { * @return this */ public TravelerDuelBattleSample setToGenDmgRcdRatio(final float value) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; toGenDmgRcdRatio = value; return this; } @@ -2736,7 +2933,7 @@ public final class TravelerDuelRankUpload { * @return whether the toDmgPlusRcd field is set */ public boolean hasToDmgPlusRcd() { - return (bitField0_ & 0x00000800) != 0; + return (bitField0_ & 0x00002000) != 0; } /** @@ -2744,7 +2941,7 @@ public final class TravelerDuelRankUpload { * @return this */ public TravelerDuelBattleSample clearToDmgPlusRcd() { - bitField0_ &= ~0x00000800; + bitField0_ &= ~0x00002000; toDmgPlusRcd = 0F; return this; } @@ -2763,7 +2960,7 @@ public final class TravelerDuelRankUpload { * @return this */ public TravelerDuelBattleSample setToDmgPlusRcd(final float value) { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00002000; toDmgPlusRcd = value; return this; } @@ -2773,7 +2970,7 @@ public final class TravelerDuelRankUpload { * @return whether the critRate field is set */ public boolean hasCritRate() { - return (bitField0_ & 0x00001000) != 0; + return (bitField0_ & 0x00004000) != 0; } /** @@ -2781,7 +2978,7 @@ public final class TravelerDuelRankUpload { * @return this */ public TravelerDuelBattleSample clearCritRate() { - bitField0_ &= ~0x00001000; + bitField0_ &= ~0x00004000; critRate = 0F; return this; } @@ -2800,7 +2997,7 @@ public final class TravelerDuelRankUpload { * @return this */ public TravelerDuelBattleSample setCritRate(final float value) { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00004000; critRate = value; return this; } @@ -2810,7 +3007,7 @@ public final class TravelerDuelRankUpload { * @return whether the fromSrcAtk field is set */ public boolean hasFromSrcAtk() { - return (bitField0_ & 0x00002000) != 0; + return (bitField0_ & 0x00008000) != 0; } /** @@ -2818,7 +3015,7 @@ public final class TravelerDuelRankUpload { * @return this */ public TravelerDuelBattleSample clearFromSrcAtk() { - bitField0_ &= ~0x00002000; + bitField0_ &= ~0x00008000; fromSrcAtk = 0; return this; } @@ -2837,7 +3034,7 @@ public final class TravelerDuelRankUpload { * @return this */ public TravelerDuelBattleSample setFromSrcAtk(final int value) { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00008000; fromSrcAtk = value; return this; } @@ -2847,7 +3044,7 @@ public final class TravelerDuelRankUpload { * @return whether the fromDmgPlus field is set */ public boolean hasFromDmgPlus() { - return (bitField0_ & 0x00004000) != 0; + return (bitField0_ & 0x00010000) != 0; } /** @@ -2855,7 +3052,7 @@ public final class TravelerDuelRankUpload { * @return this */ public TravelerDuelBattleSample clearFromDmgPlus() { - bitField0_ &= ~0x00004000; + bitField0_ &= ~0x00010000; fromDmgPlus = 0; return this; } @@ -2874,7 +3071,7 @@ public final class TravelerDuelRankUpload { * @return this */ public TravelerDuelBattleSample setFromDmgPlus(final int value) { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00010000; fromDmgPlus = value; return this; } @@ -2884,7 +3081,7 @@ public final class TravelerDuelRankUpload { * @return whether the fromFinalDmgPlus field is set */ public boolean hasFromFinalDmgPlus() { - return (bitField0_ & 0x00008000) != 0; + return (bitField0_ & 0x00020000) != 0; } /** @@ -2892,7 +3089,7 @@ public final class TravelerDuelRankUpload { * @return this */ public TravelerDuelBattleSample clearFromFinalDmgPlus() { - bitField0_ &= ~0x00008000; + bitField0_ &= ~0x00020000; fromFinalDmgPlus = 0; return this; } @@ -2911,82 +3108,8 @@ public final class TravelerDuelRankUpload { * @return this */ public TravelerDuelBattleSample setFromFinalDmgPlus(final int value) { - bitField0_ |= 0x00008000; - fromFinalDmgPlus = value; - return this; - } - - /** - * optional int32 Dmg = 16; - * @return whether the dmg field is set - */ - public boolean hasDmg() { - return (bitField0_ & 0x00010000) != 0; - } - - /** - * optional int32 Dmg = 16; - * @return this - */ - public TravelerDuelBattleSample clearDmg() { - bitField0_ &= ~0x00010000; - dmg = 0; - return this; - } - - /** - * optional int32 Dmg = 16; - * @return the dmg - */ - public int getDmg() { - return dmg; - } - - /** - * optional int32 Dmg = 16; - * @param value the dmg to set - * @return this - */ - public TravelerDuelBattleSample setDmg(final int value) { - bitField0_ |= 0x00010000; - dmg = value; - return this; - } - - /** - * optional int32 Hp = 18; - * @return whether the hp field is set - */ - public boolean hasHp() { - return (bitField0_ & 0x00020000) != 0; - } - - /** - * optional int32 Hp = 18; - * @return this - */ - public TravelerDuelBattleSample clearHp() { - bitField0_ &= ~0x00020000; - hp = 0; - return this; - } - - /** - * optional int32 Hp = 18; - * @return the hp - */ - public int getHp() { - return hp; - } - - /** - * optional int32 Hp = 18; - * @param value the hp to set - * @return this - */ - public TravelerDuelBattleSample setHp(final int value) { bitField0_ |= 0x00020000; - hp = value; + fromFinalDmgPlus = value; return this; } @@ -3074,6 +3197,8 @@ public final class TravelerDuelRankUpload { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; + dmg = other.dmg; + hp = other.hp; fromPerkIntensityRatio = other.fromPerkIntensityRatio; fromSlotDmgRatio = other.fromSlotDmgRatio; fromEE = other.fromEE; @@ -3090,8 +3215,6 @@ public final class TravelerDuelRankUpload { fromSrcAtk = other.fromSrcAtk; fromDmgPlus = other.fromDmgPlus; fromFinalDmgPlus = other.fromFinalDmgPlus; - dmg = other.dmg; - hp = other.hp; nextPackage.copyFrom(other.nextPackage); } return this; @@ -3103,6 +3226,12 @@ public final class TravelerDuelRankUpload { return this; } cachedSize = -1; + if (other.hasDmg()) { + setDmg(other.dmg); + } + if (other.hasHp()) { + setHp(other.hp); + } if (other.hasFromPerkIntensityRatio()) { setFromPerkIntensityRatio(other.fromPerkIntensityRatio); } @@ -3151,12 +3280,6 @@ public final class TravelerDuelRankUpload { if (other.hasFromFinalDmgPlus()) { setFromFinalDmgPlus(other.fromFinalDmgPlus); } - if (other.hasDmg()) { - setDmg(other.dmg); - } - if (other.hasHp()) { - setHp(other.hp); - } if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); } @@ -3170,6 +3293,8 @@ public final class TravelerDuelRankUpload { } cachedSize = -1; bitField0_ = 0; + dmg = 0L; + hp = 0L; fromPerkIntensityRatio = 0F; fromSlotDmgRatio = 0F; fromEE = 0F; @@ -3186,8 +3311,6 @@ public final class TravelerDuelRankUpload { fromSrcAtk = 0; fromDmgPlus = 0; fromFinalDmgPlus = 0; - dmg = 0; - hp = 0; nextPackage.clear(); return this; } @@ -3213,6 +3336,8 @@ public final class TravelerDuelRankUpload { } TravelerDuelBattleSample other = (TravelerDuelBattleSample) o; return bitField0_ == other.bitField0_ + && (!hasDmg() || dmg == other.dmg) + && (!hasHp() || hp == other.hp) && (!hasFromPerkIntensityRatio() || ProtoUtil.isEqual(fromPerkIntensityRatio, other.fromPerkIntensityRatio)) && (!hasFromSlotDmgRatio() || ProtoUtil.isEqual(fromSlotDmgRatio, other.fromSlotDmgRatio)) && (!hasFromEE() || ProtoUtil.isEqual(fromEE, other.fromEE)) @@ -3229,85 +3354,83 @@ public final class TravelerDuelRankUpload { && (!hasFromSrcAtk() || fromSrcAtk == other.fromSrcAtk) && (!hasFromDmgPlus() || fromDmgPlus == other.fromDmgPlus) && (!hasFromFinalDmgPlus() || fromFinalDmgPlus == other.fromFinalDmgPlus) - && (!hasDmg() || dmg == other.dmg) - && (!hasHp() || hp == other.hp) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { + output.writeRawLittleEndian16((short) 384); + output.writeInt64NoTag(dmg); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawLittleEndian16((short) 400); + output.writeInt64NoTag(hp); + } + if ((bitField0_ & 0x00000004) != 0) { output.writeRawByte((byte) 21); output.writeFloatNoTag(fromPerkIntensityRatio); } - if ((bitField0_ & 0x00000002) != 0) { + if ((bitField0_ & 0x00000008) != 0) { output.writeRawByte((byte) 29); output.writeFloatNoTag(fromSlotDmgRatio); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000010) != 0) { output.writeRawByte((byte) 37); output.writeFloatNoTag(fromEE); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000020) != 0) { output.writeRawByte((byte) 45); output.writeFloatNoTag(fromGenDmgRatio); } - if ((bitField0_ & 0x00000010) != 0) { + if ((bitField0_ & 0x00000040) != 0) { output.writeRawByte((byte) 61); output.writeFloatNoTag(fromCritRatio); } - if ((bitField0_ & 0x00000020) != 0) { + if ((bitField0_ & 0x00000080) != 0) { output.writeRawByte((byte) 69); output.writeFloatNoTag(fromFinalDmgRatio); } - if ((bitField0_ & 0x00000040) != 0) { + if ((bitField0_ & 0x00000100) != 0) { output.writeRawByte((byte) 85); output.writeFloatNoTag(toErAmend); } - if ((bitField0_ & 0x00000080) != 0) { + if ((bitField0_ & 0x00000200) != 0) { output.writeRawByte((byte) 93); output.writeFloatNoTag(toDefAmend); } - if ((bitField0_ & 0x00000100) != 0) { + if ((bitField0_ & 0x00000400) != 0) { output.writeRawByte((byte) 101); output.writeFloatNoTag(toRcdSlotDmgRatio); } - if ((bitField0_ & 0x00000200) != 0) { + if ((bitField0_ & 0x00000800) != 0) { output.writeRawByte((byte) 109); output.writeFloatNoTag(toEERCD); } - if ((bitField0_ & 0x00000400) != 0) { + if ((bitField0_ & 0x00001000) != 0) { output.writeRawByte((byte) 117); output.writeFloatNoTag(toGenDmgRcdRatio); } - if ((bitField0_ & 0x00000800) != 0) { + if ((bitField0_ & 0x00002000) != 0) { output.writeRawByte((byte) 125); output.writeFloatNoTag(toDmgPlusRcd); } - if ((bitField0_ & 0x00001000) != 0) { + if ((bitField0_ & 0x00004000) != 0) { output.writeRawLittleEndian16((short) 397); output.writeFloatNoTag(critRate); } - if ((bitField0_ & 0x00002000) != 0) { + if ((bitField0_ & 0x00008000) != 0) { output.writeRawByte((byte) 8); output.writeInt32NoTag(fromSrcAtk); } - if ((bitField0_ & 0x00004000) != 0) { + if ((bitField0_ & 0x00010000) != 0) { output.writeRawByte((byte) 48); output.writeInt32NoTag(fromDmgPlus); } - if ((bitField0_ & 0x00008000) != 0) { + if ((bitField0_ & 0x00020000) != 0) { output.writeRawByte((byte) 72); output.writeInt32NoTag(fromFinalDmgPlus); } - if ((bitField0_ & 0x00010000) != 0) { - output.writeRawLittleEndian16((short) 384); - output.writeInt32NoTag(dmg); - } - if ((bitField0_ & 0x00020000) != 0) { - output.writeRawLittleEndian16((short) 400); - output.writeInt32NoTag(hp); - } if ((bitField0_ & 0x00040000) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); @@ -3318,10 +3441,10 @@ public final class TravelerDuelRankUpload { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 5; + size += 2 + ProtoSink.computeInt64SizeNoTag(dmg); } if ((bitField0_ & 0x00000002) != 0) { - size += 5; + size += 2 + ProtoSink.computeInt64SizeNoTag(hp); } if ((bitField0_ & 0x00000004) != 0) { size += 5; @@ -3354,22 +3477,22 @@ public final class TravelerDuelRankUpload { size += 5; } if ((bitField0_ & 0x00001000) != 0) { - size += 6; + size += 5; } if ((bitField0_ & 0x00002000) != 0) { - size += 1 + ProtoSink.computeInt32SizeNoTag(fromSrcAtk); + size += 5; } if ((bitField0_ & 0x00004000) != 0) { - size += 1 + ProtoSink.computeInt32SizeNoTag(fromDmgPlus); + size += 6; } if ((bitField0_ & 0x00008000) != 0) { - size += 1 + ProtoSink.computeInt32SizeNoTag(fromFinalDmgPlus); + size += 1 + ProtoSink.computeInt32SizeNoTag(fromSrcAtk); } if ((bitField0_ & 0x00010000) != 0) { - size += 2 + ProtoSink.computeInt32SizeNoTag(dmg); + size += 1 + ProtoSink.computeInt32SizeNoTag(fromDmgPlus); } if ((bitField0_ & 0x00020000) != 0) { - size += 2 + ProtoSink.computeInt32SizeNoTag(hp); + size += 1 + ProtoSink.computeInt32SizeNoTag(fromFinalDmgPlus); } if ((bitField0_ & 0x00040000) != 0) { size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); @@ -3384,10 +3507,28 @@ public final class TravelerDuelRankUpload { int tag = input.readTag(); while (true) { switch (tag) { + case 128: { + // dmg + dmg = input.readInt64(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 144) { + break; + } + } + case 144: { + // hp + hp = input.readInt64(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 21) { + break; + } + } case 21: { // fromPerkIntensityRatio fromPerkIntensityRatio = input.readFloat(); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 29) { break; @@ -3396,7 +3537,7 @@ public final class TravelerDuelRankUpload { case 29: { // fromSlotDmgRatio fromSlotDmgRatio = input.readFloat(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 37) { break; @@ -3405,7 +3546,7 @@ public final class TravelerDuelRankUpload { case 37: { // fromEE fromEE = input.readFloat(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; tag = input.readTag(); if (tag != 45) { break; @@ -3414,7 +3555,7 @@ public final class TravelerDuelRankUpload { case 45: { // fromGenDmgRatio fromGenDmgRatio = input.readFloat(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; tag = input.readTag(); if (tag != 61) { break; @@ -3423,7 +3564,7 @@ public final class TravelerDuelRankUpload { case 61: { // fromCritRatio fromCritRatio = input.readFloat(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; tag = input.readTag(); if (tag != 69) { break; @@ -3432,7 +3573,7 @@ public final class TravelerDuelRankUpload { case 69: { // fromFinalDmgRatio fromFinalDmgRatio = input.readFloat(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000080; tag = input.readTag(); if (tag != 85) { break; @@ -3441,7 +3582,7 @@ public final class TravelerDuelRankUpload { case 85: { // toErAmend toErAmend = input.readFloat(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000100; tag = input.readTag(); if (tag != 93) { break; @@ -3450,7 +3591,7 @@ public final class TravelerDuelRankUpload { case 93: { // toDefAmend toDefAmend = input.readFloat(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000200; tag = input.readTag(); if (tag != 101) { break; @@ -3459,7 +3600,7 @@ public final class TravelerDuelRankUpload { case 101: { // toRcdSlotDmgRatio toRcdSlotDmgRatio = input.readFloat(); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; tag = input.readTag(); if (tag != 109) { break; @@ -3468,7 +3609,7 @@ public final class TravelerDuelRankUpload { case 109: { // toEERCD toEERCD = input.readFloat(); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; tag = input.readTag(); if (tag != 117) { break; @@ -3477,7 +3618,7 @@ public final class TravelerDuelRankUpload { case 117: { // toGenDmgRcdRatio toGenDmgRcdRatio = input.readFloat(); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; tag = input.readTag(); if (tag != 125) { break; @@ -3486,7 +3627,7 @@ public final class TravelerDuelRankUpload { case 125: { // toDmgPlusRcd toDmgPlusRcd = input.readFloat(); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00002000; tag = input.readTag(); if (tag != 141) { break; @@ -3495,7 +3636,7 @@ public final class TravelerDuelRankUpload { case 141: { // critRate critRate = input.readFloat(); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00004000; tag = input.readTag(); if (tag != 8) { break; @@ -3504,7 +3645,7 @@ public final class TravelerDuelRankUpload { case 8: { // fromSrcAtk fromSrcAtk = input.readInt32(); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00008000; tag = input.readTag(); if (tag != 48) { break; @@ -3513,7 +3654,7 @@ public final class TravelerDuelRankUpload { case 48: { // fromDmgPlus fromDmgPlus = input.readInt32(); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00010000; tag = input.readTag(); if (tag != 72) { break; @@ -3522,24 +3663,6 @@ public final class TravelerDuelRankUpload { case 72: { // fromFinalDmgPlus fromFinalDmgPlus = input.readInt32(); - bitField0_ |= 0x00008000; - tag = input.readTag(); - if (tag != 128) { - break; - } - } - case 128: { - // dmg - dmg = input.readInt32(); - bitField0_ |= 0x00010000; - tag = input.readTag(); - if (tag != 144) { - break; - } - } - case 144: { - // hp - hp = input.readInt32(); bitField0_ |= 0x00020000; tag = input.readTag(); if (tag != 16378) { @@ -3573,58 +3696,58 @@ public final class TravelerDuelRankUpload { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeFloat(FieldNames.fromPerkIntensityRatio, fromPerkIntensityRatio); + output.writeInt64(FieldNames.dmg, dmg); } if ((bitField0_ & 0x00000002) != 0) { - output.writeFloat(FieldNames.fromSlotDmgRatio, fromSlotDmgRatio); + output.writeInt64(FieldNames.hp, hp); } if ((bitField0_ & 0x00000004) != 0) { - output.writeFloat(FieldNames.fromEE, fromEE); + output.writeFloat(FieldNames.fromPerkIntensityRatio, fromPerkIntensityRatio); } if ((bitField0_ & 0x00000008) != 0) { - output.writeFloat(FieldNames.fromGenDmgRatio, fromGenDmgRatio); + output.writeFloat(FieldNames.fromSlotDmgRatio, fromSlotDmgRatio); } if ((bitField0_ & 0x00000010) != 0) { - output.writeFloat(FieldNames.fromCritRatio, fromCritRatio); + output.writeFloat(FieldNames.fromEE, fromEE); } if ((bitField0_ & 0x00000020) != 0) { - output.writeFloat(FieldNames.fromFinalDmgRatio, fromFinalDmgRatio); + output.writeFloat(FieldNames.fromGenDmgRatio, fromGenDmgRatio); } if ((bitField0_ & 0x00000040) != 0) { - output.writeFloat(FieldNames.toErAmend, toErAmend); + output.writeFloat(FieldNames.fromCritRatio, fromCritRatio); } if ((bitField0_ & 0x00000080) != 0) { - output.writeFloat(FieldNames.toDefAmend, toDefAmend); + output.writeFloat(FieldNames.fromFinalDmgRatio, fromFinalDmgRatio); } if ((bitField0_ & 0x00000100) != 0) { - output.writeFloat(FieldNames.toRcdSlotDmgRatio, toRcdSlotDmgRatio); + output.writeFloat(FieldNames.toErAmend, toErAmend); } if ((bitField0_ & 0x00000200) != 0) { - output.writeFloat(FieldNames.toEERCD, toEERCD); + output.writeFloat(FieldNames.toDefAmend, toDefAmend); } if ((bitField0_ & 0x00000400) != 0) { - output.writeFloat(FieldNames.toGenDmgRcdRatio, toGenDmgRcdRatio); + output.writeFloat(FieldNames.toRcdSlotDmgRatio, toRcdSlotDmgRatio); } if ((bitField0_ & 0x00000800) != 0) { - output.writeFloat(FieldNames.toDmgPlusRcd, toDmgPlusRcd); + output.writeFloat(FieldNames.toEERCD, toEERCD); } if ((bitField0_ & 0x00001000) != 0) { - output.writeFloat(FieldNames.critRate, critRate); + output.writeFloat(FieldNames.toGenDmgRcdRatio, toGenDmgRcdRatio); } if ((bitField0_ & 0x00002000) != 0) { - output.writeInt32(FieldNames.fromSrcAtk, fromSrcAtk); + output.writeFloat(FieldNames.toDmgPlusRcd, toDmgPlusRcd); } if ((bitField0_ & 0x00004000) != 0) { - output.writeInt32(FieldNames.fromDmgPlus, fromDmgPlus); + output.writeFloat(FieldNames.critRate, critRate); } if ((bitField0_ & 0x00008000) != 0) { - output.writeInt32(FieldNames.fromFinalDmgPlus, fromFinalDmgPlus); + output.writeInt32(FieldNames.fromSrcAtk, fromSrcAtk); } if ((bitField0_ & 0x00010000) != 0) { - output.writeInt32(FieldNames.dmg, dmg); + output.writeInt32(FieldNames.fromDmgPlus, fromDmgPlus); } if ((bitField0_ & 0x00020000) != 0) { - output.writeInt32(FieldNames.hp, hp); + output.writeInt32(FieldNames.fromFinalDmgPlus, fromFinalDmgPlus); } if ((bitField0_ & 0x00040000) != 0) { output.writeBytes(FieldNames.nextPackage, nextPackage); @@ -3639,11 +3762,33 @@ public final class TravelerDuelRankUpload { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { + case 68830: { + if (input.isAtField(FieldNames.dmg)) { + if (!input.trySkipNullValue()) { + dmg = input.readInt64(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2344: { + if (input.isAtField(FieldNames.hp)) { + if (!input.trySkipNullValue()) { + hp = input.readInt64(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } case -1072259184: { if (input.isAtField(FieldNames.fromPerkIntensityRatio)) { if (!input.trySkipNullValue()) { fromPerkIntensityRatio = input.readFloat(); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; } } else { input.skipUnknownField(); @@ -3654,7 +3799,7 @@ public final class TravelerDuelRankUpload { if (input.isAtField(FieldNames.fromSlotDmgRatio)) { if (!input.trySkipNullValue()) { fromSlotDmgRatio = input.readFloat(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; } } else { input.skipUnknownField(); @@ -3665,7 +3810,7 @@ public final class TravelerDuelRankUpload { if (input.isAtField(FieldNames.fromEE)) { if (!input.trySkipNullValue()) { fromEE = input.readFloat(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; } } else { input.skipUnknownField(); @@ -3676,7 +3821,7 @@ public final class TravelerDuelRankUpload { if (input.isAtField(FieldNames.fromGenDmgRatio)) { if (!input.trySkipNullValue()) { fromGenDmgRatio = input.readFloat(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; } } else { input.skipUnknownField(); @@ -3687,7 +3832,7 @@ public final class TravelerDuelRankUpload { if (input.isAtField(FieldNames.fromCritRatio)) { if (!input.trySkipNullValue()) { fromCritRatio = input.readFloat(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; } } else { input.skipUnknownField(); @@ -3698,7 +3843,7 @@ public final class TravelerDuelRankUpload { if (input.isAtField(FieldNames.fromFinalDmgRatio)) { if (!input.trySkipNullValue()) { fromFinalDmgRatio = input.readFloat(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000080; } } else { input.skipUnknownField(); @@ -3709,7 +3854,7 @@ public final class TravelerDuelRankUpload { if (input.isAtField(FieldNames.toErAmend)) { if (!input.trySkipNullValue()) { toErAmend = input.readFloat(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000100; } } else { input.skipUnknownField(); @@ -3720,7 +3865,7 @@ public final class TravelerDuelRankUpload { if (input.isAtField(FieldNames.toDefAmend)) { if (!input.trySkipNullValue()) { toDefAmend = input.readFloat(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000200; } } else { input.skipUnknownField(); @@ -3731,7 +3876,7 @@ public final class TravelerDuelRankUpload { if (input.isAtField(FieldNames.toRcdSlotDmgRatio)) { if (!input.trySkipNullValue()) { toRcdSlotDmgRatio = input.readFloat(); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; } } else { input.skipUnknownField(); @@ -3742,7 +3887,7 @@ public final class TravelerDuelRankUpload { if (input.isAtField(FieldNames.toEERCD)) { if (!input.trySkipNullValue()) { toEERCD = input.readFloat(); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; } } else { input.skipUnknownField(); @@ -3753,7 +3898,7 @@ public final class TravelerDuelRankUpload { if (input.isAtField(FieldNames.toGenDmgRcdRatio)) { if (!input.trySkipNullValue()) { toGenDmgRcdRatio = input.readFloat(); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; } } else { input.skipUnknownField(); @@ -3764,7 +3909,7 @@ public final class TravelerDuelRankUpload { if (input.isAtField(FieldNames.toDmgPlusRcd)) { if (!input.trySkipNullValue()) { toDmgPlusRcd = input.readFloat(); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00002000; } } else { input.skipUnknownField(); @@ -3775,7 +3920,7 @@ public final class TravelerDuelRankUpload { if (input.isAtField(FieldNames.critRate)) { if (!input.trySkipNullValue()) { critRate = input.readFloat(); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00004000; } } else { input.skipUnknownField(); @@ -3786,7 +3931,7 @@ public final class TravelerDuelRankUpload { if (input.isAtField(FieldNames.fromSrcAtk)) { if (!input.trySkipNullValue()) { fromSrcAtk = input.readInt32(); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00008000; } } else { input.skipUnknownField(); @@ -3797,7 +3942,7 @@ public final class TravelerDuelRankUpload { if (input.isAtField(FieldNames.fromDmgPlus)) { if (!input.trySkipNullValue()) { fromDmgPlus = input.readInt32(); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00010000; } } else { input.skipUnknownField(); @@ -3808,28 +3953,6 @@ public final class TravelerDuelRankUpload { if (input.isAtField(FieldNames.fromFinalDmgPlus)) { if (!input.trySkipNullValue()) { fromFinalDmgPlus = input.readInt32(); - bitField0_ |= 0x00008000; - } - } else { - input.skipUnknownField(); - } - break; - } - case 68830: { - if (input.isAtField(FieldNames.dmg)) { - if (!input.trySkipNullValue()) { - dmg = input.readInt32(); - bitField0_ |= 0x00010000; - } - } else { - input.skipUnknownField(); - } - break; - } - case 2344: { - if (input.isAtField(FieldNames.hp)) { - if (!input.trySkipNullValue()) { - hp = input.readInt32(); bitField0_ |= 0x00020000; } } else { @@ -3901,6 +4024,10 @@ public final class TravelerDuelRankUpload { * Contains name constants used for serializing JSON */ static class FieldNames { + static final FieldName dmg = FieldName.forField("Dmg"); + + static final FieldName hp = FieldName.forField("Hp"); + static final FieldName fromPerkIntensityRatio = FieldName.forField("FromPerkIntensityRatio"); static final FieldName fromSlotDmgRatio = FieldName.forField("FromSlotDmgRatio"); @@ -3933,10 +4060,6 @@ public final class TravelerDuelRankUpload { static final FieldName fromFinalDmgPlus = FieldName.forField("FromFinalDmgPlus"); - static final FieldName dmg = FieldName.forField("Dmg"); - - static final FieldName hp = FieldName.forField("Hp"); - static final FieldName nextPackage = FieldName.forField("NextPackage"); } } diff --git a/src/main/java/emu/nebula/GameConstants.java b/src/main/java/emu/nebula/GameConstants.java index 4cdf5f3..d418036 100644 --- a/src/main/java/emu/nebula/GameConstants.java +++ b/src/main/java/emu/nebula/GameConstants.java @@ -6,7 +6,7 @@ import emu.nebula.game.inventory.ItemParam; import emu.nebula.util.WeightedList; public class GameConstants { - public static final String VERSION = "1.5.0"; + public static final String VERSION = "1.6.0"; public static int DATA_VERSION = 0; public static final ZoneId UTC_ZONE = ZoneId.of("UTC"); diff --git a/src/main/java/emu/nebula/game/activity/ActivityModule.java b/src/main/java/emu/nebula/game/activity/ActivityModule.java index 42205d6..2a12e0c 100644 --- a/src/main/java/emu/nebula/game/activity/ActivityModule.java +++ b/src/main/java/emu/nebula/game/activity/ActivityModule.java @@ -30,15 +30,20 @@ public class ActivityModule extends GameContextModule { //this.activities.add(2010104); // Miracle of a Flicker - this.activities.add(1010301); - this.activities.add(1010303); - this.activities.add(1010304); + //this.activities.add(1010301); + //this.activities.add(1010303); + //this.activities.add(1010304); + + // Springseek Festival + this.activities.add(1010401); + this.activities.add(1010403); + this.activities.add(1010404); // ===== Etc Events ===== // Trial activities - this.activities.add(700109); - this.activities.add(700110); + this.activities.add(700111); + this.activities.add(700112); // Tower defense activity this.activities.add(102002); diff --git a/src/main/java/emu/nebula/game/activity/ActivityType.java b/src/main/java/emu/nebula/game/activity/ActivityType.java index 4e914e8..0ba6533 100644 --- a/src/main/java/emu/nebula/game/activity/ActivityType.java +++ b/src/main/java/emu/nebula/game/activity/ActivityType.java @@ -22,7 +22,9 @@ public enum ActivityType { BDConvert (14), Breakout (15), TrekkerVersus (16), - Story (17); + Story (17), + PenguinCard (18), + ThrowGift (19); @Getter private final int value; diff --git a/src/main/java/emu/nebula/net/NetMsgId.java b/src/main/java/emu/nebula/net/NetMsgId.java index 0ac7cfb..356a448 100644 --- a/src/main/java/emu/nebula/net/NetMsgId.java +++ b/src/main/java/emu/nebula/net/NetMsgId.java @@ -3,6 +3,9 @@ package emu.nebula.net; public class NetMsgId { public static final int none = 0; + public static final int clear_all_activity_breakout_levels_notify = -10050; + public static final int clear_story_set_notify = -10049; + public static final int unlock_activity_story_notify = -10048; public static final int assist_add_build_notify = -10047; public static final int clear_all_activity_levels_notify = -10046; public static final int clear_all_activity_avg_notify = -10045; @@ -134,6 +137,9 @@ public class NetMsgId { public static final int item_quick_growth_req = 1116; public static final int item_quick_growth_succeed_ack = 1117; public static final int item_quick_growth_failed_ack = 1118; + public static final int daily_mall_reward_receive_req = 1119; + public static final int daily_mall_reward_receive_succeed_ack = 1120; + public static final int daily_mall_reward_receive_failed_ack = 1121; public static final int friend_list_get_req = 1201; public static final int friend_list_get_succeed_ack = 1202; public static final int friend_list_get_failed_ack = 1203; @@ -179,6 +185,9 @@ public class NetMsgId { public static final int tower_growth_group_node_unlock_req = 1307; public static final int tower_growth_group_node_unlock_succeed_ack = 1308; public static final int tower_growth_group_node_unlock_failed_ack = 1309; + public static final int milkout_settle_req = 1401; + public static final int milkout_settle_succeed_ack = 1402; + public static final int milkout_settle_failed_ack = 1403; public static final int player_formation_req = 2001; public static final int player_formation_succeed_ack = 2002; public static final int player_formation_failed_ack = 2003; @@ -483,6 +492,27 @@ public class NetMsgId { public static final int joint_drill_quest_reward_receive_req = 6228; public static final int joint_drill_quest_reward_receive_succeed_ack = 6229; public static final int joint_drill_quest_reward_receive_failed_ack = 6230; + public static final int joint_drill_2_apply_req = 6301; + public static final int joint_drill_2_apply_succeed_ack = 6302; + public static final int joint_drill_2_apply_failed_ack = 6303; + public static final int joint_drill_2_continue_req = 6304; + public static final int joint_drill_2_continue_succeed_ack = 6305; + public static final int joint_drill_2_continue_failed_ack = 6306; + public static final int joint_drill_2_sync_req = 6307; + public static final int joint_drill_2_sync_succeed_ack = 6308; + public static final int joint_drill_2_sync_failed_ack = 6309; + public static final int joint_drill_2_give_up_req = 6310; + public static final int joint_drill_2_give_up_succeed_ack = 6311; + public static final int joint_drill_2_give_up_failed_ack = 6312; + public static final int joint_drill_2_retreat_req = 6313; + public static final int joint_drill_2_retreat_succeed_ack = 6314; + public static final int joint_drill_2_retreat_failed_ack = 6315; + public static final int joint_drill_2_settle_req = 6316; + public static final int joint_drill_2_settle_succeed_ack = 6317; + public static final int joint_drill_2_settle_failed_ack = 6318; + public static final int joint_drill_2_game_over_req = 6319; + public static final int joint_drill_2_game_over_succeed_ack = 6320; + public static final int joint_drill_2_game_over_failed_ack = 6321; public static final int plot_reward_receive_req = 7013; public static final int plot_reward_receive_succeed_ack = 7014; public static final int plot_reward_receive_failed_ack = 7015; @@ -570,6 +600,9 @@ public class NetMsgId { public static final int energy_extract_req = 8004; public static final int energy_extract_succeed_ack = 8005; public static final int energy_extract_failed_ack = 8006; + public static final int energy_info_req = 8007; + public static final int energy_info_succeed_ack = 8008; + public static final int energy_info_failed_ack = 8009; public static final int client_event_report_req = 8101; public static final int client_event_report_succeed_ack = 8102; public static final int client_event_report_failed_ack = 8103; @@ -618,6 +651,18 @@ public class NetMsgId { public static final int activity_story_settle_req = 8319; public static final int activity_story_settle_succeed_ack = 8320; public static final int activity_story_settle_failed_ack = 8321; + public static final int activity_throw_gift_settle_req = 8322; + public static final int activity_throw_gift_settle_succeed_ack = 8323; + public static final int activity_throw_gift_settle_failed_ack = 8324; + public static final int player_last_read_update_req = 8325; + public static final int player_last_read_update_succeed_ack = 8326; + public static final int player_last_read_update_failed_ack = 8327; + public static final int activity_penguin_card_level_settle_req = 8401; + public static final int activity_penguin_card_level_settle_succeed_ack = 8402; + public static final int activity_penguin_card_level_settle_failed_ack = 8403; + public static final int activity_penguin_card_quest_reward_receive_req = 8404; + public static final int activity_penguin_card_quest_reward_receive_succeed_ack = 8405; + public static final int activity_penguin_card_quest_reward_receive_failed_ack = 8406; public static final int mail_list_req = 9001; public static final int mail_list_succeed_ack = 9002; public static final int mail_list_failed_ack = 9003; @@ -787,6 +832,7 @@ public class NetMsgId { public static final int order_collected_notify = 10052; public static final int activity_end_item_change_notify = 10053; public static final int item_expired_change_notify = 10054; + public static final int milkout_character_unlock_notify = 10055; public static final int activity_mining_apply_req = 11001; public static final int activity_mining_apply_succeed_ack = 11002; public static final int activity_mining_apply_failed_ack = 11003; diff --git a/src/main/java/emu/nebula/server/handlers/HandlerEnergyInfoReq.java b/src/main/java/emu/nebula/server/handlers/HandlerEnergyInfoReq.java new file mode 100644 index 0000000..41b61fa --- /dev/null +++ b/src/main/java/emu/nebula/server/handlers/HandlerEnergyInfoReq.java @@ -0,0 +1,17 @@ +package emu.nebula.server.handlers; + +import emu.nebula.net.NetHandler; +import emu.nebula.net.NetMsgId; +import emu.nebula.net.HandlerId; +import emu.nebula.net.GameSession; + +@HandlerId(NetMsgId.energy_info_req) +public class HandlerEnergyInfoReq extends NetHandler { + + @Override + public byte[] handle(GameSession session, byte[] message) throws Exception { + // Encode and send player energy info + return session.encodeMsg(NetMsgId.energy_info_succeed_ack, session.getPlayer().getEnergyProto()); + } + +} diff --git a/src/main/resources/versions.json b/src/main/resources/versions.json index b29f4df..2e06fff 100644 --- a/src/main/resources/versions.json +++ b/src/main/resources/versions.json @@ -1,7 +1,7 @@ { - "global": 81, - "kr": 88, - "jp": 85, - "tw": 89, - "cn": 83 + "global": 84, + "kr": 91, + "jp": 88, + "tw": 92, + "cn": 86 } \ No newline at end of file