diff --git a/src/generated/main/emu/nebula/proto/ActivityDetail.java b/src/generated/main/emu/nebula/proto/ActivityDetail.java index ffd5723..b5686bb 100644 --- a/src/generated/main/emu/nebula/proto/ActivityDetail.java +++ b/src/generated/main/emu/nebula/proto/ActivityDetail.java @@ -130,6 +130,21 @@ public final class ActivityDetail { */ private final Public.ActivityHistoryStoryChapter historyStoryChapter = Public.ActivityHistoryStoryChapter.newInstance(); + /** + * optional .ActivityShare Share = 23; + */ + private final Public.ActivityShare share = Public.ActivityShare.newInstance(); + + /** + * optional .ActivityIceCream IceCream = 24; + */ + private final Public.ActivityIceCream iceCream = Public.ActivityIceCream.newInstance(); + + /** + * optional .ActivitySoldier Soldier = 25; + */ + private final Public.ActivitySoldier soldier = Public.ActivitySoldier.newInstance(); + /** * optional bytes NextPackage = 2047; */ @@ -1379,12 +1394,183 @@ public final class ActivityDetail { return this; } + /** + * optional .ActivityShare Share = 23; + * @return whether the share field is set + */ + public boolean hasShare() { + return (bitField0_ & 0x00400000) != 0; + } + + /** + * optional .ActivityShare Share = 23; + * @return this + */ + public ActivityMsg clearShare() { + bitField0_ &= ~0x00400000; + share.clear(); + return this; + } + + /** + * optional .ActivityShare Share = 23; + * + * This 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 #getMutableShare()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.ActivityShare getShare() { + return share; + } + + /** + * optional .ActivityShare Share = 23; + * + * 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.ActivityShare getMutableShare() { + bitField0_ |= 0x00400000; + return share; + } + + /** + * optional .ActivityShare Share = 23; + * @param value the share to set + * @return this + */ + public ActivityMsg setShare(final Public.ActivityShare value) { + bitField0_ |= 0x00400000; + share.copyFrom(value); + return this; + } + + /** + * optional .ActivityIceCream IceCream = 24; + * @return whether the iceCream field is set + */ + public boolean hasIceCream() { + return (bitField0_ & 0x00800000) != 0; + } + + /** + * optional .ActivityIceCream IceCream = 24; + * @return this + */ + public ActivityMsg clearIceCream() { + bitField0_ &= ~0x00800000; + iceCream.clear(); + return this; + } + + /** + * optional .ActivityIceCream IceCream = 24; + * + * This 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 #getMutableIceCream()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.ActivityIceCream getIceCream() { + return iceCream; + } + + /** + * optional .ActivityIceCream IceCream = 24; + * + * 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.ActivityIceCream getMutableIceCream() { + bitField0_ |= 0x00800000; + return iceCream; + } + + /** + * optional .ActivityIceCream IceCream = 24; + * @param value the iceCream to set + * @return this + */ + public ActivityMsg setIceCream(final Public.ActivityIceCream value) { + bitField0_ |= 0x00800000; + iceCream.copyFrom(value); + return this; + } + + /** + * optional .ActivitySoldier Soldier = 25; + * @return whether the soldier field is set + */ + public boolean hasSoldier() { + return (bitField0_ & 0x01000000) != 0; + } + + /** + * optional .ActivitySoldier Soldier = 25; + * @return this + */ + public ActivityMsg clearSoldier() { + bitField0_ &= ~0x01000000; + soldier.clear(); + return this; + } + + /** + * optional .ActivitySoldier Soldier = 25; + * + * This 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 #getMutableSoldier()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.ActivitySoldier getSoldier() { + return soldier; + } + + /** + * optional .ActivitySoldier Soldier = 25; + * + * 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.ActivitySoldier getMutableSoldier() { + bitField0_ |= 0x01000000; + return soldier; + } + + /** + * optional .ActivitySoldier Soldier = 25; + * @param value the soldier to set + * @return this + */ + public ActivityMsg setSoldier(final Public.ActivitySoldier value) { + bitField0_ |= 0x01000000; + soldier.copyFrom(value); + return this; + } + /** * optional bytes NextPackage = 2047; * @return whether the nextPackage field is set */ public boolean hasNextPackage() { - return (bitField0_ & 0x00400000) != 0; + return (bitField0_ & 0x02000000) != 0; } /** @@ -1392,7 +1578,7 @@ public final class ActivityDetail { * @return this */ public ActivityMsg clearNextPackage() { - bitField0_ &= ~0x00400000; + bitField0_ &= ~0x02000000; nextPackage.clear(); return this; } @@ -1421,7 +1607,7 @@ public final class ActivityDetail { * @return internal storage object for modifications */ public RepeatedByte getMutableNextPackage() { - bitField0_ |= 0x00400000; + bitField0_ |= 0x02000000; return nextPackage; } @@ -1431,7 +1617,7 @@ public final class ActivityDetail { * @return this */ public ActivityMsg addNextPackage(final byte value) { - bitField0_ |= 0x00400000; + bitField0_ |= 0x02000000; nextPackage.add(value); return this; } @@ -1442,7 +1628,7 @@ public final class ActivityDetail { * @return this */ public ActivityMsg addAllNextPackage(final byte... values) { - bitField0_ |= 0x00400000; + bitField0_ |= 0x02000000; nextPackage.addAll(values); return this; } @@ -1453,7 +1639,7 @@ public final class ActivityDetail { * @return this */ public ActivityMsg setNextPackage(final byte... values) { - bitField0_ |= 0x00400000; + bitField0_ |= 0x02000000; nextPackage.copyFrom(values); return this; } @@ -1485,6 +1671,9 @@ public final class ActivityDetail { gDS.copyFrom(other.gDS); double_.copyFrom(other.double_); historyStoryChapter.copyFrom(other.historyStoryChapter); + share.copyFrom(other.share); + iceCream.copyFrom(other.iceCream); + soldier.copyFrom(other.soldier); nextPackage.copyFrom(other.nextPackage); } return this; @@ -1562,6 +1751,15 @@ public final class ActivityDetail { if (other.hasHistoryStoryChapter()) { getMutableHistoryStoryChapter().mergeFrom(other.historyStoryChapter); } + if (other.hasShare()) { + getMutableShare().mergeFrom(other.share); + } + if (other.hasIceCream()) { + getMutableIceCream().mergeFrom(other.iceCream); + } + if (other.hasSoldier()) { + getMutableSoldier().mergeFrom(other.soldier); + } if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); } @@ -1597,6 +1795,9 @@ public final class ActivityDetail { gDS.clear(); double_.clear(); historyStoryChapter.clear(); + share.clear(); + iceCream.clear(); + soldier.clear(); nextPackage.clear(); return this; } @@ -1629,6 +1830,9 @@ public final class ActivityDetail { gDS.clearQuick(); double_.clearQuick(); historyStoryChapter.clearQuick(); + share.clearQuick(); + iceCream.clearQuick(); + soldier.clearQuick(); nextPackage.clear(); return this; } @@ -1665,6 +1869,9 @@ public final class ActivityDetail { && (!hasGDS() || gDS.equals(other.gDS)) && (!hasDouble() || double_.equals(other.double_)) && (!hasHistoryStoryChapter() || historyStoryChapter.equals(other.historyStoryChapter)) + && (!hasShare() || share.equals(other.share)) + && (!hasIceCream() || iceCream.equals(other.iceCream)) + && (!hasSoldier() || soldier.equals(other.soldier)) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); } @@ -1759,6 +1966,18 @@ public final class ActivityDetail { output.writeMessageNoTag(historyStoryChapter); } if ((bitField0_ & 0x00400000) != 0) { + output.writeRawLittleEndian16((short) 442); + output.writeMessageNoTag(share); + } + if ((bitField0_ & 0x00800000) != 0) { + output.writeRawLittleEndian16((short) 450); + output.writeMessageNoTag(iceCream); + } + if ((bitField0_ & 0x01000000) != 0) { + output.writeRawLittleEndian16((short) 458); + output.writeMessageNoTag(soldier); + } + if ((bitField0_ & 0x02000000) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); } @@ -1834,6 +2053,15 @@ public final class ActivityDetail { size += 2 + ProtoSink.computeMessageSizeNoTag(historyStoryChapter); } if ((bitField0_ & 0x00400000) != 0) { + size += 2 + ProtoSink.computeMessageSizeNoTag(share); + } + if ((bitField0_ & 0x00800000) != 0) { + size += 2 + ProtoSink.computeMessageSizeNoTag(iceCream); + } + if ((bitField0_ & 0x01000000) != 0) { + size += 2 + ProtoSink.computeMessageSizeNoTag(soldier); + } + if ((bitField0_ & 0x02000000) != 0) { size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); } return size; @@ -2040,6 +2268,33 @@ public final class ActivityDetail { input.readMessage(historyStoryChapter); bitField0_ |= 0x00200000; tag = input.readTag(); + if (tag != 186) { + break; + } + } + case 186: { + // share + input.readMessage(share); + bitField0_ |= 0x00400000; + tag = input.readTag(); + if (tag != 194) { + break; + } + } + case 194: { + // iceCream + input.readMessage(iceCream); + bitField0_ |= 0x00800000; + tag = input.readTag(); + if (tag != 202) { + break; + } + } + case 202: { + // soldier + input.readMessage(soldier); + bitField0_ |= 0x01000000; + tag = input.readTag(); if (tag != 16378) { break; } @@ -2047,7 +2302,7 @@ public final class ActivityDetail { case 16378: { // nextPackage input.readBytes(nextPackage); - bitField0_ |= 0x00400000; + bitField0_ |= 0x02000000; tag = input.readTag(); if (tag != 0) { break; @@ -2137,6 +2392,15 @@ public final class ActivityDetail { output.writeMessage(FieldNames.historyStoryChapter, historyStoryChapter); } if ((bitField0_ & 0x00400000) != 0) { + output.writeMessage(FieldNames.share, share); + } + if ((bitField0_ & 0x00800000) != 0) { + output.writeMessage(FieldNames.iceCream, iceCream); + } + if ((bitField0_ & 0x01000000) != 0) { + output.writeMessage(FieldNames.soldier, soldier); + } + if ((bitField0_ & 0x02000000) != 0) { output.writeBytes(FieldNames.nextPackage, nextPackage); } output.endObject(); @@ -2391,11 +2655,44 @@ public final class ActivityDetail { } break; } + case 79847359: { + if (input.isAtField(FieldNames.share)) { + if (!input.trySkipNullValue()) { + input.readMessage(share); + bitField0_ |= 0x00400000; + } + } else { + input.skipUnknownField(); + } + break; + } + case -998396713: { + if (input.isAtField(FieldNames.iceCream)) { + if (!input.trySkipNullValue()) { + input.readMessage(iceCream); + bitField0_ |= 0x00800000; + } + } else { + input.skipUnknownField(); + } + break; + } + case -365946526: { + if (input.isAtField(FieldNames.soldier)) { + if (!input.trySkipNullValue()) { + input.readMessage(soldier); + bitField0_ |= 0x01000000; + } + } else { + input.skipUnknownField(); + } + break; + } case -2082324045: { if (input.isAtField(FieldNames.nextPackage)) { if (!input.trySkipNullValue()) { input.readBytes(nextPackage); - bitField0_ |= 0x00400000; + bitField0_ |= 0x02000000; } } else { input.skipUnknownField(); @@ -2498,6 +2795,12 @@ public final class ActivityDetail { static final FieldName historyStoryChapter = FieldName.forField("HistoryStoryChapter"); + static final FieldName share = FieldName.forField("Share"); + + static final FieldName iceCream = FieldName.forField("IceCream"); + + static final FieldName soldier = FieldName.forField("Soldier"); + static final FieldName nextPackage = FieldName.forField("NextPackage"); } } diff --git a/src/generated/main/emu/nebula/proto/ActivityIceCreamLevelSettle.java b/src/generated/main/emu/nebula/proto/ActivityIceCreamLevelSettle.java new file mode 100644 index 0000000..36b237e --- /dev/null +++ b/src/generated/main/emu/nebula/proto/ActivityIceCreamLevelSettle.java @@ -0,0 +1,865 @@ +// 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 ActivityIceCreamLevelSettle { + /** + * Protobuf type {@code ActivityIceCreamLevelSettleReq} + */ + public static final class ActivityIceCreamLevelSettleReq 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 LevelType = 3; + */ + private int levelType; + + /** + * optional uint32 OrderCount = 4; + */ + private int orderCount; + + /** + * optional uint32 TotalScore = 5; + */ + private int totalScore; + + /** + * optional uint32 StreakCount = 6; + */ + private int streakCount; + + /** + * optional uint32 PropCount = 7; + */ + private int propCount; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private ActivityIceCreamLevelSettleReq() { + } + + /** + * @return a new empty instance of {@code ActivityIceCreamLevelSettleReq} + */ + public static ActivityIceCreamLevelSettleReq newInstance() { + return new ActivityIceCreamLevelSettleReq(); + } + + /** + * 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 ActivityIceCreamLevelSettleReq 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 ActivityIceCreamLevelSettleReq 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 ActivityIceCreamLevelSettleReq 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 ActivityIceCreamLevelSettleReq setLevelId(final int value) { + bitField0_ |= 0x00000002; + levelId = value; + return this; + } + + /** + * optional uint32 LevelType = 3; + * @return whether the levelType field is set + */ + public boolean hasLevelType() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 LevelType = 3; + * @return this + */ + public ActivityIceCreamLevelSettleReq clearLevelType() { + bitField0_ &= ~0x00000004; + levelType = 0; + return this; + } + + /** + * optional uint32 LevelType = 3; + * @return the levelType + */ + public int getLevelType() { + return levelType; + } + + /** + * optional uint32 LevelType = 3; + * @param value the levelType to set + * @return this + */ + public ActivityIceCreamLevelSettleReq setLevelType(final int value) { + bitField0_ |= 0x00000004; + levelType = value; + return this; + } + + /** + * optional uint32 OrderCount = 4; + * @return whether the orderCount field is set + */ + public boolean hasOrderCount() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 OrderCount = 4; + * @return this + */ + public ActivityIceCreamLevelSettleReq clearOrderCount() { + bitField0_ &= ~0x00000008; + orderCount = 0; + return this; + } + + /** + * optional uint32 OrderCount = 4; + * @return the orderCount + */ + public int getOrderCount() { + return orderCount; + } + + /** + * optional uint32 OrderCount = 4; + * @param value the orderCount to set + * @return this + */ + public ActivityIceCreamLevelSettleReq setOrderCount(final int value) { + bitField0_ |= 0x00000008; + orderCount = value; + return this; + } + + /** + * optional uint32 TotalScore = 5; + * @return whether the totalScore field is set + */ + public boolean hasTotalScore() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 TotalScore = 5; + * @return this + */ + public ActivityIceCreamLevelSettleReq clearTotalScore() { + bitField0_ &= ~0x00000010; + totalScore = 0; + return this; + } + + /** + * optional uint32 TotalScore = 5; + * @return the totalScore + */ + public int getTotalScore() { + return totalScore; + } + + /** + * optional uint32 TotalScore = 5; + * @param value the totalScore to set + * @return this + */ + public ActivityIceCreamLevelSettleReq setTotalScore(final int value) { + bitField0_ |= 0x00000010; + totalScore = value; + return this; + } + + /** + * optional uint32 StreakCount = 6; + * @return whether the streakCount field is set + */ + public boolean hasStreakCount() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional uint32 StreakCount = 6; + * @return this + */ + public ActivityIceCreamLevelSettleReq clearStreakCount() { + bitField0_ &= ~0x00000020; + streakCount = 0; + return this; + } + + /** + * optional uint32 StreakCount = 6; + * @return the streakCount + */ + public int getStreakCount() { + return streakCount; + } + + /** + * optional uint32 StreakCount = 6; + * @param value the streakCount to set + * @return this + */ + public ActivityIceCreamLevelSettleReq setStreakCount(final int value) { + bitField0_ |= 0x00000020; + streakCount = value; + return this; + } + + /** + * optional uint32 PropCount = 7; + * @return whether the propCount field is set + */ + public boolean hasPropCount() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional uint32 PropCount = 7; + * @return this + */ + public ActivityIceCreamLevelSettleReq clearPropCount() { + bitField0_ &= ~0x00000040; + propCount = 0; + return this; + } + + /** + * optional uint32 PropCount = 7; + * @return the propCount + */ + public int getPropCount() { + return propCount; + } + + /** + * optional uint32 PropCount = 7; + * @param value the propCount to set + * @return this + */ + public ActivityIceCreamLevelSettleReq setPropCount(final int value) { + bitField0_ |= 0x00000040; + propCount = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public ActivityIceCreamLevelSettleReq clearNextPackage() { + bitField0_ &= ~0x00000080; + 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_ |= 0x00000080; + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public ActivityIceCreamLevelSettleReq addNextPackage(final byte value) { + bitField0_ |= 0x00000080; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public ActivityIceCreamLevelSettleReq addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000080; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public ActivityIceCreamLevelSettleReq setNextPackage(final byte... values) { + bitField0_ |= 0x00000080; + nextPackage.copyFrom(values); + return this; + } + + @Override + public ActivityIceCreamLevelSettleReq copyFrom(final ActivityIceCreamLevelSettleReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + activityId = other.activityId; + levelId = other.levelId; + levelType = other.levelType; + orderCount = other.orderCount; + totalScore = other.totalScore; + streakCount = other.streakCount; + propCount = other.propCount; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public ActivityIceCreamLevelSettleReq mergeFrom(final ActivityIceCreamLevelSettleReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasActivityId()) { + setActivityId(other.activityId); + } + if (other.hasLevelId()) { + setLevelId(other.levelId); + } + if (other.hasLevelType()) { + setLevelType(other.levelType); + } + if (other.hasOrderCount()) { + setOrderCount(other.orderCount); + } + if (other.hasTotalScore()) { + setTotalScore(other.totalScore); + } + if (other.hasStreakCount()) { + setStreakCount(other.streakCount); + } + if (other.hasPropCount()) { + setPropCount(other.propCount); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public ActivityIceCreamLevelSettleReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + activityId = 0; + levelId = 0; + levelType = 0; + orderCount = 0; + totalScore = 0; + streakCount = 0; + propCount = 0; + nextPackage.clear(); + return this; + } + + @Override + public ActivityIceCreamLevelSettleReq 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 ActivityIceCreamLevelSettleReq)) { + return false; + } + ActivityIceCreamLevelSettleReq other = (ActivityIceCreamLevelSettleReq) o; + return bitField0_ == other.bitField0_ + && (!hasActivityId() || activityId == other.activityId) + && (!hasLevelId() || levelId == other.levelId) + && (!hasLevelType() || levelType == other.levelType) + && (!hasOrderCount() || orderCount == other.orderCount) + && (!hasTotalScore() || totalScore == other.totalScore) + && (!hasStreakCount() || streakCount == other.streakCount) + && (!hasPropCount() || propCount == other.propCount) + && (!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(levelId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(levelType); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(orderCount); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(totalScore); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(streakCount); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(propCount); + } + if ((bitField0_ & 0x00000080) != 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(levelId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(levelType); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(orderCount); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(totalScore); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(streakCount); + } + if ((bitField0_ & 0x00000040) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(propCount); + } + if ((bitField0_ & 0x00000080) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ActivityIceCreamLevelSettleReq 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: { + // levelType + levelType = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // orderCount + orderCount = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // totalScore + totalScore = input.readUInt32(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // streakCount + streakCount = input.readUInt32(); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // propCount + propCount = input.readUInt32(); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000080; + 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.levelId, levelId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.levelType, levelType); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.orderCount, orderCount); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.totalScore, totalScore); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeUInt32(FieldNames.streakCount, streakCount); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeUInt32(FieldNames.propCount, propCount); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public ActivityIceCreamLevelSettleReq 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 347757758: { + if (input.isAtField(FieldNames.levelType)) { + if (!input.trySkipNullValue()) { + levelType = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1571088767: { + if (input.isAtField(FieldNames.orderCount)) { + if (!input.trySkipNullValue()) { + orderCount = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1276492238: { + if (input.isAtField(FieldNames.totalScore)) { + if (!input.trySkipNullValue()) { + totalScore = input.readUInt32(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1082869743: { + if (input.isAtField(FieldNames.streakCount)) { + if (!input.trySkipNullValue()) { + streakCount = input.readUInt32(); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1249870668: { + if (input.isAtField(FieldNames.propCount)) { + if (!input.trySkipNullValue()) { + propCount = input.readUInt32(); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ActivityIceCreamLevelSettleReq clone() { + return new ActivityIceCreamLevelSettleReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ActivityIceCreamLevelSettleReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ActivityIceCreamLevelSettleReq(), data).checkInitialized(); + } + + public static ActivityIceCreamLevelSettleReq parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ActivityIceCreamLevelSettleReq(), input).checkInitialized(); + } + + public static ActivityIceCreamLevelSettleReq parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ActivityIceCreamLevelSettleReq(), input).checkInitialized(); + } + + /** + * @return factory for creating ActivityIceCreamLevelSettleReq messages + */ + public static MessageFactory getFactory() { + return ActivityIceCreamLevelSettleReqFactory.INSTANCE; + } + + private enum ActivityIceCreamLevelSettleReqFactory implements MessageFactory { + INSTANCE; + + @Override + public ActivityIceCreamLevelSettleReq create() { + return ActivityIceCreamLevelSettleReq.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 levelType = FieldName.forField("LevelType"); + + static final FieldName orderCount = FieldName.forField("OrderCount"); + + static final FieldName totalScore = FieldName.forField("TotalScore"); + + static final FieldName streakCount = FieldName.forField("StreakCount"); + + static final FieldName propCount = FieldName.forField("PropCount"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/ActivityMiningQuestRewardReceive.java b/src/generated/main/emu/nebula/proto/ActivityMiningQuestRewardReceive.java index 92c00a3..050b046 100644 --- a/src/generated/main/emu/nebula/proto/ActivityMiningQuestRewardReceive.java +++ b/src/generated/main/emu/nebula/proto/ActivityMiningQuestRewardReceive.java @@ -30,6 +30,11 @@ public final class ActivityMiningQuestRewardReceive { */ private int questId; + /** + * optional uint32 GroupId = 3; + */ + private int groupId; + /** * optional bytes NextPackage = 2047; */ @@ -119,12 +124,49 @@ public final class ActivityMiningQuestRewardReceive { 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 ActivityMiningQuestRewardReceiveReq 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 ActivityMiningQuestRewardReceiveReq 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_ & 0x00000004) != 0; + return (bitField0_ & 0x00000008) != 0; } /** @@ -132,7 +174,7 @@ public final class ActivityMiningQuestRewardReceive { * @return this */ public ActivityMiningQuestRewardReceiveReq clearNextPackage() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000008; nextPackage.clear(); return this; } @@ -161,7 +203,7 @@ public final class ActivityMiningQuestRewardReceive { * @return internal storage object for modifications */ public RepeatedByte getMutableNextPackage() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; return nextPackage; } @@ -171,7 +213,7 @@ public final class ActivityMiningQuestRewardReceive { * @return this */ public ActivityMiningQuestRewardReceiveReq addNextPackage(final byte value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; nextPackage.add(value); return this; } @@ -182,7 +224,7 @@ public final class ActivityMiningQuestRewardReceive { * @return this */ public ActivityMiningQuestRewardReceiveReq addAllNextPackage(final byte... values) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; nextPackage.addAll(values); return this; } @@ -193,7 +235,7 @@ public final class ActivityMiningQuestRewardReceive { * @return this */ public ActivityMiningQuestRewardReceiveReq setNextPackage(final byte... values) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; nextPackage.copyFrom(values); return this; } @@ -206,6 +248,7 @@ public final class ActivityMiningQuestRewardReceive { bitField0_ = other.bitField0_; activityId = other.activityId; questId = other.questId; + groupId = other.groupId; nextPackage.copyFrom(other.nextPackage); } return this; @@ -224,6 +267,9 @@ public final class ActivityMiningQuestRewardReceive { if (other.hasQuestId()) { setQuestId(other.questId); } + if (other.hasGroupId()) { + setGroupId(other.groupId); + } if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); } @@ -239,6 +285,7 @@ public final class ActivityMiningQuestRewardReceive { bitField0_ = 0; activityId = 0; questId = 0; + groupId = 0; nextPackage.clear(); return this; } @@ -266,6 +313,7 @@ public final class ActivityMiningQuestRewardReceive { return bitField0_ == other.bitField0_ && (!hasActivityId() || activityId == other.activityId) && (!hasQuestId() || questId == other.questId) + && (!hasGroupId() || groupId == other.groupId) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); } @@ -280,6 +328,10 @@ public final class ActivityMiningQuestRewardReceive { 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); } @@ -295,6 +347,9 @@ public final class ActivityMiningQuestRewardReceive { 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; @@ -322,6 +377,15 @@ public final class ActivityMiningQuestRewardReceive { 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; } @@ -329,7 +393,7 @@ public final class ActivityMiningQuestRewardReceive { case 16378: { // nextPackage input.readBytes(nextPackage); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 0) { break; @@ -359,6 +423,9 @@ public final class ActivityMiningQuestRewardReceive { 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(); @@ -394,11 +461,22 @@ public final class ActivityMiningQuestRewardReceive { } 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_ |= 0x00000004; + bitField0_ |= 0x00000008; } } else { input.skipUnknownField(); @@ -464,6 +542,8 @@ public final class ActivityMiningQuestRewardReceive { 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/ActivityShareRewardReceive.java b/src/generated/main/emu/nebula/proto/ActivityShareRewardReceive.java new file mode 100644 index 0000000..b7604a6 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/ActivityShareRewardReceive.java @@ -0,0 +1,463 @@ +// 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 ActivityShareRewardReceive { + /** + * Protobuf type {@code ActivityShareRewardReq} + */ + public static final class ActivityShareRewardReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 ActivityId = 1; + */ + private int activityId; + + /** + * optional uint32 ChannelId = 2; + */ + private int channelId; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private ActivityShareRewardReq() { + } + + /** + * @return a new empty instance of {@code ActivityShareRewardReq} + */ + public static ActivityShareRewardReq newInstance() { + return new ActivityShareRewardReq(); + } + + /** + * 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 ActivityShareRewardReq 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 ActivityShareRewardReq setActivityId(final int value) { + bitField0_ |= 0x00000001; + activityId = value; + return this; + } + + /** + * optional uint32 ChannelId = 2; + * @return whether the channelId field is set + */ + public boolean hasChannelId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 ChannelId = 2; + * @return this + */ + public ActivityShareRewardReq clearChannelId() { + bitField0_ &= ~0x00000002; + channelId = 0; + return this; + } + + /** + * optional uint32 ChannelId = 2; + * @return the channelId + */ + public int getChannelId() { + return channelId; + } + + /** + * optional uint32 ChannelId = 2; + * @param value the channelId to set + * @return this + */ + public ActivityShareRewardReq setChannelId(final int value) { + bitField0_ |= 0x00000002; + channelId = 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 ActivityShareRewardReq 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 ActivityShareRewardReq addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public ActivityShareRewardReq addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public ActivityShareRewardReq setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + @Override + public ActivityShareRewardReq copyFrom(final ActivityShareRewardReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + activityId = other.activityId; + channelId = other.channelId; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public ActivityShareRewardReq mergeFrom(final ActivityShareRewardReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasActivityId()) { + setActivityId(other.activityId); + } + if (other.hasChannelId()) { + setChannelId(other.channelId); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public ActivityShareRewardReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + activityId = 0; + channelId = 0; + nextPackage.clear(); + return this; + } + + @Override + public ActivityShareRewardReq 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 ActivityShareRewardReq)) { + return false; + } + ActivityShareRewardReq other = (ActivityShareRewardReq) o; + return bitField0_ == other.bitField0_ + && (!hasActivityId() || activityId == other.activityId) + && (!hasChannelId() || channelId == other.channelId) + && (!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(channelId); + } + 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(channelId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ActivityShareRewardReq 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: { + // channelId + channelId = 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.channelId, channelId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public ActivityShareRewardReq 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 -829263522: { + if (input.isAtField(FieldNames.channelId)) { + if (!input.trySkipNullValue()) { + channelId = 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 ActivityShareRewardReq clone() { + return new ActivityShareRewardReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ActivityShareRewardReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ActivityShareRewardReq(), data).checkInitialized(); + } + + public static ActivityShareRewardReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ActivityShareRewardReq(), input).checkInitialized(); + } + + public static ActivityShareRewardReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ActivityShareRewardReq(), input).checkInitialized(); + } + + /** + * @return factory for creating ActivityShareRewardReq messages + */ + public static MessageFactory getFactory() { + return ActivityShareRewardReqFactory.INSTANCE; + } + + private enum ActivityShareRewardReqFactory implements MessageFactory { + INSTANCE; + + @Override + public ActivityShareRewardReq create() { + return ActivityShareRewardReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName activityId = FieldName.forField("ActivityId"); + + static final FieldName channelId = FieldName.forField("ChannelId"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/ActivitySoldierQuestRewardReceive.java b/src/generated/main/emu/nebula/proto/ActivitySoldierQuestRewardReceive.java new file mode 100644 index 0000000..3fd5b37 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/ActivitySoldierQuestRewardReceive.java @@ -0,0 +1,549 @@ +// 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 ActivitySoldierQuestRewardReceive { + /** + * Protobuf type {@code ActivitySoldierQuestRewardReceiveReq} + */ + public static final class ActivitySoldierQuestRewardReceiveReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 ActivityId = 1; + */ + private int activityId; + + /** + * optional uint32 GroupId = 2; + */ + private int groupId; + + /** + * optional uint32 QuestId = 3; + */ + private int questId; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private ActivitySoldierQuestRewardReceiveReq() { + } + + /** + * @return a new empty instance of {@code ActivitySoldierQuestRewardReceiveReq} + */ + public static ActivitySoldierQuestRewardReceiveReq newInstance() { + return new ActivitySoldierQuestRewardReceiveReq(); + } + + /** + * 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 ActivitySoldierQuestRewardReceiveReq 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 ActivitySoldierQuestRewardReceiveReq setActivityId(final int value) { + bitField0_ |= 0x00000001; + activityId = value; + return this; + } + + /** + * optional uint32 GroupId = 2; + * @return whether the groupId field is set + */ + public boolean hasGroupId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 GroupId = 2; + * @return this + */ + public ActivitySoldierQuestRewardReceiveReq clearGroupId() { + bitField0_ &= ~0x00000002; + groupId = 0; + return this; + } + + /** + * optional uint32 GroupId = 2; + * @return the groupId + */ + public int getGroupId() { + return groupId; + } + + /** + * optional uint32 GroupId = 2; + * @param value the groupId to set + * @return this + */ + public ActivitySoldierQuestRewardReceiveReq setGroupId(final int value) { + bitField0_ |= 0x00000002; + groupId = value; + return this; + } + + /** + * optional uint32 QuestId = 3; + * @return whether the questId field is set + */ + public boolean hasQuestId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 QuestId = 3; + * @return this + */ + public ActivitySoldierQuestRewardReceiveReq clearQuestId() { + bitField0_ &= ~0x00000004; + questId = 0; + return this; + } + + /** + * optional uint32 QuestId = 3; + * @return the questId + */ + public int getQuestId() { + return questId; + } + + /** + * optional uint32 QuestId = 3; + * @param value the questId to set + * @return this + */ + public ActivitySoldierQuestRewardReceiveReq setQuestId(final int value) { + bitField0_ |= 0x00000004; + questId = 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 ActivitySoldierQuestRewardReceiveReq 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 ActivitySoldierQuestRewardReceiveReq addNextPackage(final byte value) { + bitField0_ |= 0x00000008; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public ActivitySoldierQuestRewardReceiveReq addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public ActivitySoldierQuestRewardReceiveReq setNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.copyFrom(values); + return this; + } + + @Override + public ActivitySoldierQuestRewardReceiveReq copyFrom( + final ActivitySoldierQuestRewardReceiveReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + activityId = other.activityId; + groupId = other.groupId; + questId = other.questId; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public ActivitySoldierQuestRewardReceiveReq mergeFrom( + final ActivitySoldierQuestRewardReceiveReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasActivityId()) { + setActivityId(other.activityId); + } + if (other.hasGroupId()) { + setGroupId(other.groupId); + } + if (other.hasQuestId()) { + setQuestId(other.questId); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public ActivitySoldierQuestRewardReceiveReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + activityId = 0; + groupId = 0; + questId = 0; + nextPackage.clear(); + return this; + } + + @Override + public ActivitySoldierQuestRewardReceiveReq 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 ActivitySoldierQuestRewardReceiveReq)) { + return false; + } + ActivitySoldierQuestRewardReceiveReq other = (ActivitySoldierQuestRewardReceiveReq) o; + return bitField0_ == other.bitField0_ + && (!hasActivityId() || activityId == other.activityId) + && (!hasGroupId() || groupId == other.groupId) + && (!hasQuestId() || questId == other.questId) + && (!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(groupId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(questId); + } + 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(groupId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(questId); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ActivitySoldierQuestRewardReceiveReq 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: { + // groupId + groupId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // questId + questId = 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.groupId, groupId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.questId, questId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public ActivitySoldierQuestRewardReceiveReq 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 1958081498: { + if (input.isAtField(FieldNames.groupId)) { + if (!input.trySkipNullValue()) { + groupId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1975187075: { + if (input.isAtField(FieldNames.questId)) { + if (!input.trySkipNullValue()) { + questId = 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 ActivitySoldierQuestRewardReceiveReq clone() { + return new ActivitySoldierQuestRewardReceiveReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ActivitySoldierQuestRewardReceiveReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ActivitySoldierQuestRewardReceiveReq(), data).checkInitialized(); + } + + public static ActivitySoldierQuestRewardReceiveReq parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ActivitySoldierQuestRewardReceiveReq(), input).checkInitialized(); + } + + public static ActivitySoldierQuestRewardReceiveReq parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ActivitySoldierQuestRewardReceiveReq(), input).checkInitialized(); + } + + /** + * @return factory for creating ActivitySoldierQuestRewardReceiveReq messages + */ + public static MessageFactory getFactory() { + return ActivitySoldierQuestRewardReceiveReqFactory.INSTANCE; + } + + private enum ActivitySoldierQuestRewardReceiveReqFactory implements MessageFactory { + INSTANCE; + + @Override + public ActivitySoldierQuestRewardReceiveReq create() { + return ActivitySoldierQuestRewardReceiveReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName activityId = FieldName.forField("ActivityId"); + + static final FieldName groupId = FieldName.forField("GroupId"); + + static final FieldName questId = FieldName.forField("QuestId"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/NotifyGm.java b/src/generated/main/emu/nebula/proto/NotifyGm.java index 649b9ba..d826ba0 100644 --- a/src/generated/main/emu/nebula/proto/NotifyGm.java +++ b/src/generated/main/emu/nebula/proto/NotifyGm.java @@ -11551,4 +11551,814 @@ public final class NotifyGm { static final FieldName buildRewards = FieldName.forField("BuildRewards"); } } + + /** + * Protobuf type {@code SoldierEffectNtf} + */ + public static final class SoldierEffectNtf extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .SoldierEffect Effects = 1; + */ + private final RepeatedMessage effects = RepeatedMessage.newEmptyInstance(PublicSoldier.SoldierEffect.getFactory()); + + private SoldierEffectNtf() { + } + + /** + * @return a new empty instance of {@code SoldierEffectNtf} + */ + public static SoldierEffectNtf newInstance() { + return new SoldierEffectNtf(); + } + + /** + * 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 SoldierEffectNtf 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 SoldierEffectNtf addNextPackage(final byte value) { + bitField0_ |= 0x00000001; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierEffectNtf addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierEffectNtf setNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .SoldierEffect Effects = 1; + * @return whether the effects field is set + */ + public boolean hasEffects() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated .SoldierEffect Effects = 1; + * @return this + */ + public SoldierEffectNtf clearEffects() { + bitField0_ &= ~0x00000002; + effects.clear(); + return this; + } + + /** + * repeated .SoldierEffect Effects = 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 #getMutableEffects()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getEffects() { + return effects; + } + + /** + * repeated .SoldierEffect Effects = 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 getMutableEffects() { + bitField0_ |= 0x00000002; + return effects; + } + + /** + * repeated .SoldierEffect Effects = 1; + * @param value the effects to add + * @return this + */ + public SoldierEffectNtf addEffects(final PublicSoldier.SoldierEffect value) { + bitField0_ |= 0x00000002; + effects.add(value); + return this; + } + + /** + * repeated .SoldierEffect Effects = 1; + * @param values the effects to add + * @return this + */ + public SoldierEffectNtf addAllEffects(final PublicSoldier.SoldierEffect... values) { + bitField0_ |= 0x00000002; + effects.addAll(values); + return this; + } + + @Override + public SoldierEffectNtf copyFrom(final SoldierEffectNtf other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + nextPackage.copyFrom(other.nextPackage); + effects.copyFrom(other.effects); + } + return this; + } + + @Override + public SoldierEffectNtf mergeFrom(final SoldierEffectNtf other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasEffects()) { + getMutableEffects().addAll(other.effects); + } + return this; + } + + @Override + public SoldierEffectNtf clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + effects.clear(); + return this; + } + + @Override + public SoldierEffectNtf clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + effects.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SoldierEffectNtf)) { + return false; + } + SoldierEffectNtf other = (SoldierEffectNtf) o; + return bitField0_ == other.bitField0_ + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasEffects() || effects.equals(other.effects)); + } + + @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 < effects.length(); i++) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(effects.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * effects.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(effects); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierEffectNtf 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: { + // effects + tag = input.readRepeatedMessage(effects, tag); + bitField0_ |= 0x00000002; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedMessage(FieldNames.effects, effects); + } + output.endObject(); + } + + @Override + public SoldierEffectNtf 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 -169275166: { + if (input.isAtField(FieldNames.effects)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(effects); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SoldierEffectNtf clone() { + return new SoldierEffectNtf().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierEffectNtf parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierEffectNtf(), data).checkInitialized(); + } + + public static SoldierEffectNtf parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierEffectNtf(), input).checkInitialized(); + } + + public static SoldierEffectNtf parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierEffectNtf(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierEffectNtf messages + */ + public static MessageFactory getFactory() { + return SoldierEffectNtfFactory.INSTANCE; + } + + private enum SoldierEffectNtfFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierEffectNtf create() { + return SoldierEffectNtf.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName effects = FieldName.forField("Effects"); + } + } + + /** + * Protobuf type {@code GmClearAllActivityIceCreamLevelsNotify} + */ + public static final class GmClearAllActivityIceCreamLevelsNotify extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .ActivityIceCreamLevel levels = 1; + */ + private final RepeatedMessage levels = RepeatedMessage.newEmptyInstance(Public.ActivityIceCreamLevel.getFactory()); + + private GmClearAllActivityIceCreamLevelsNotify() { + } + + /** + * @return a new empty instance of {@code GmClearAllActivityIceCreamLevelsNotify} + */ + public static GmClearAllActivityIceCreamLevelsNotify newInstance() { + return new GmClearAllActivityIceCreamLevelsNotify(); + } + + /** + * 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 GmClearAllActivityIceCreamLevelsNotify 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 GmClearAllActivityIceCreamLevelsNotify addNextPackage(final byte value) { + bitField0_ |= 0x00000001; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public GmClearAllActivityIceCreamLevelsNotify addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public GmClearAllActivityIceCreamLevelsNotify setNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .ActivityIceCreamLevel levels = 1; + * @return whether the levels field is set + */ + public boolean hasLevels() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated .ActivityIceCreamLevel levels = 1; + * @return this + */ + public GmClearAllActivityIceCreamLevelsNotify clearLevels() { + bitField0_ &= ~0x00000002; + levels.clear(); + return this; + } + + /** + * repeated .ActivityIceCreamLevel 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 .ActivityIceCreamLevel 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 .ActivityIceCreamLevel levels = 1; + * @param value the levels to add + * @return this + */ + public GmClearAllActivityIceCreamLevelsNotify addLevels( + final Public.ActivityIceCreamLevel value) { + bitField0_ |= 0x00000002; + levels.add(value); + return this; + } + + /** + * repeated .ActivityIceCreamLevel levels = 1; + * @param values the levels to add + * @return this + */ + public GmClearAllActivityIceCreamLevelsNotify addAllLevels( + final Public.ActivityIceCreamLevel... values) { + bitField0_ |= 0x00000002; + levels.addAll(values); + return this; + } + + @Override + public GmClearAllActivityIceCreamLevelsNotify copyFrom( + final GmClearAllActivityIceCreamLevelsNotify other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + nextPackage.copyFrom(other.nextPackage); + levels.copyFrom(other.levels); + } + return this; + } + + @Override + public GmClearAllActivityIceCreamLevelsNotify mergeFrom( + final GmClearAllActivityIceCreamLevelsNotify other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasLevels()) { + getMutableLevels().addAll(other.levels); + } + return this; + } + + @Override + public GmClearAllActivityIceCreamLevelsNotify clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + levels.clear(); + return this; + } + + @Override + public GmClearAllActivityIceCreamLevelsNotify clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + levels.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof GmClearAllActivityIceCreamLevelsNotify)) { + return false; + } + GmClearAllActivityIceCreamLevelsNotify other = (GmClearAllActivityIceCreamLevelsNotify) o; + return bitField0_ == other.bitField0_ + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasLevels() || levels.equals(other.levels)); + } + + @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)); + } + } + } + + @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); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GmClearAllActivityIceCreamLevelsNotify 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 != 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); + } + output.endObject(); + } + + @Override + public GmClearAllActivityIceCreamLevelsNotify 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 -1106127505: { + if (input.isAtField(FieldNames.levels)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(levels); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GmClearAllActivityIceCreamLevelsNotify clone() { + return new GmClearAllActivityIceCreamLevelsNotify().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GmClearAllActivityIceCreamLevelsNotify parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GmClearAllActivityIceCreamLevelsNotify(), data).checkInitialized(); + } + + public static GmClearAllActivityIceCreamLevelsNotify parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new GmClearAllActivityIceCreamLevelsNotify(), input).checkInitialized(); + } + + public static GmClearAllActivityIceCreamLevelsNotify parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new GmClearAllActivityIceCreamLevelsNotify(), input).checkInitialized(); + } + + /** + * @return factory for creating GmClearAllActivityIceCreamLevelsNotify messages + */ + public static MessageFactory getFactory() { + return GmClearAllActivityIceCreamLevelsNotifyFactory.INSTANCE; + } + + private enum GmClearAllActivityIceCreamLevelsNotifyFactory implements MessageFactory { + INSTANCE; + + @Override + public GmClearAllActivityIceCreamLevelsNotify create() { + return GmClearAllActivityIceCreamLevelsNotify.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"); + } + } } diff --git a/src/generated/main/emu/nebula/proto/PlayerData.java b/src/generated/main/emu/nebula/proto/PlayerData.java index cd83f58..5d7467d 100644 --- a/src/generated/main/emu/nebula/proto/PlayerData.java +++ b/src/generated/main/emu/nebula/proto/PlayerData.java @@ -128,6 +128,16 @@ public final class PlayerData { */ private final Public.VampireSurvivorRecordInfo vampireSurvivorRecord = Public.VampireSurvivorRecordInfo.newInstance(); + /** + * optional .TraceHuntItemInfo HuntPermit = 118; + */ + private final Public.TraceHuntItemInfo huntPermit = Public.TraceHuntItemInfo.newInstance(); + + /** + * optional .TraceHuntItemInfo TraceRequest = 119; + */ + private final Public.TraceHuntItemInfo traceRequest = Public.TraceHuntItemInfo.newInstance(); + /** * optional .LastRead LastRead = 128; */ @@ -1260,12 +1270,126 @@ public final class PlayerData { return this; } + /** + * optional .TraceHuntItemInfo HuntPermit = 118; + * @return whether the huntPermit field is set + */ + public boolean hasHuntPermit() { + return (bitField0_ & 0x00200000) != 0; + } + + /** + * optional .TraceHuntItemInfo HuntPermit = 118; + * @return this + */ + public PlayerInfo clearHuntPermit() { + bitField0_ &= ~0x00200000; + huntPermit.clear(); + return this; + } + + /** + * optional .TraceHuntItemInfo HuntPermit = 118; + * + * This 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 #getMutableHuntPermit()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.TraceHuntItemInfo getHuntPermit() { + return huntPermit; + } + + /** + * optional .TraceHuntItemInfo HuntPermit = 118; + * + * 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.TraceHuntItemInfo getMutableHuntPermit() { + bitField0_ |= 0x00200000; + return huntPermit; + } + + /** + * optional .TraceHuntItemInfo HuntPermit = 118; + * @param value the huntPermit to set + * @return this + */ + public PlayerInfo setHuntPermit(final Public.TraceHuntItemInfo value) { + bitField0_ |= 0x00200000; + huntPermit.copyFrom(value); + return this; + } + + /** + * optional .TraceHuntItemInfo TraceRequest = 119; + * @return whether the traceRequest field is set + */ + public boolean hasTraceRequest() { + return (bitField0_ & 0x00400000) != 0; + } + + /** + * optional .TraceHuntItemInfo TraceRequest = 119; + * @return this + */ + public PlayerInfo clearTraceRequest() { + bitField0_ &= ~0x00400000; + traceRequest.clear(); + return this; + } + + /** + * optional .TraceHuntItemInfo TraceRequest = 119; + * + * This 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 #getMutableTraceRequest()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.TraceHuntItemInfo getTraceRequest() { + return traceRequest; + } + + /** + * optional .TraceHuntItemInfo TraceRequest = 119; + * + * 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.TraceHuntItemInfo getMutableTraceRequest() { + bitField0_ |= 0x00400000; + return traceRequest; + } + + /** + * optional .TraceHuntItemInfo TraceRequest = 119; + * @param value the traceRequest to set + * @return this + */ + public PlayerInfo setTraceRequest(final Public.TraceHuntItemInfo value) { + bitField0_ |= 0x00400000; + traceRequest.copyFrom(value); + return this; + } + /** * optional .LastRead LastRead = 128; * @return whether the lastRead field is set */ public boolean hasLastRead() { - return (bitField0_ & 0x00200000) != 0; + return (bitField0_ & 0x00800000) != 0; } /** @@ -1273,7 +1397,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearLastRead() { - bitField0_ &= ~0x00200000; + bitField0_ &= ~0x00800000; lastRead.clear(); return this; } @@ -1302,7 +1426,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public Public.LastRead getMutableLastRead() { - bitField0_ |= 0x00200000; + bitField0_ |= 0x00800000; return lastRead; } @@ -1312,7 +1436,7 @@ public final class PlayerData { * @return this */ public PlayerInfo setLastRead(final Public.LastRead value) { - bitField0_ |= 0x00200000; + bitField0_ |= 0x00800000; lastRead.copyFrom(value); return this; } @@ -1322,7 +1446,7 @@ public final class PlayerData { * @return whether the achievements field is set */ public boolean hasAchievements() { - return (bitField0_ & 0x00400000) != 0; + return (bitField0_ & 0x01000000) != 0; } /** @@ -1330,7 +1454,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearAchievements() { - bitField0_ &= ~0x00400000; + bitField0_ &= ~0x01000000; achievements.clear(); return this; } @@ -1359,7 +1483,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedByte getMutableAchievements() { - bitField0_ |= 0x00400000; + bitField0_ |= 0x01000000; return achievements; } @@ -1369,7 +1493,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAchievements(final byte value) { - bitField0_ |= 0x00400000; + bitField0_ |= 0x01000000; achievements.add(value); return this; } @@ -1380,7 +1504,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllAchievements(final byte... values) { - bitField0_ |= 0x00400000; + bitField0_ |= 0x01000000; achievements.addAll(values); return this; } @@ -1391,7 +1515,7 @@ public final class PlayerData { * @return this */ public PlayerInfo setAchievements(final byte... values) { - bitField0_ |= 0x00400000; + bitField0_ |= 0x01000000; achievements.copyFrom(values); return this; } @@ -1401,7 +1525,7 @@ public final class PlayerData { * @return whether the nextPackage field is set */ public boolean hasNextPackage() { - return (bitField0_ & 0x00800000) != 0; + return (bitField0_ & 0x02000000) != 0; } /** @@ -1409,7 +1533,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearNextPackage() { - bitField0_ &= ~0x00800000; + bitField0_ &= ~0x02000000; nextPackage.clear(); return this; } @@ -1438,7 +1562,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedByte getMutableNextPackage() { - bitField0_ |= 0x00800000; + bitField0_ |= 0x02000000; return nextPackage; } @@ -1448,7 +1572,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addNextPackage(final byte value) { - bitField0_ |= 0x00800000; + bitField0_ |= 0x02000000; nextPackage.add(value); return this; } @@ -1459,7 +1583,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllNextPackage(final byte... values) { - bitField0_ |= 0x00800000; + bitField0_ |= 0x02000000; nextPackage.addAll(values); return this; } @@ -1470,7 +1594,7 @@ public final class PlayerData { * @return this */ public PlayerInfo setNextPackage(final byte... values) { - bitField0_ |= 0x00800000; + bitField0_ |= 0x02000000; nextPackage.copyFrom(values); return this; } @@ -1480,7 +1604,7 @@ public final class PlayerData { * @return whether the rglPassedIds field is set */ public boolean hasRglPassedIds() { - return (bitField0_ & 0x01000000) != 0; + return (bitField0_ & 0x04000000) != 0; } /** @@ -1488,7 +1612,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearRglPassedIds() { - bitField0_ &= ~0x01000000; + bitField0_ &= ~0x04000000; rglPassedIds.clear(); return this; } @@ -1517,7 +1641,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedInt getMutableRglPassedIds() { - bitField0_ |= 0x01000000; + bitField0_ |= 0x04000000; return rglPassedIds; } @@ -1527,7 +1651,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addRglPassedIds(final int value) { - bitField0_ |= 0x01000000; + bitField0_ |= 0x04000000; rglPassedIds.add(value); return this; } @@ -1538,7 +1662,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllRglPassedIds(final int... values) { - bitField0_ |= 0x01000000; + bitField0_ |= 0x04000000; rglPassedIds.addAll(values); return this; } @@ -1548,7 +1672,7 @@ public final class PlayerData { * @return whether the board field is set */ public boolean hasBoard() { - return (bitField0_ & 0x02000000) != 0; + return (bitField0_ & 0x08000000) != 0; } /** @@ -1556,7 +1680,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearBoard() { - bitField0_ &= ~0x02000000; + bitField0_ &= ~0x08000000; board.clear(); return this; } @@ -1585,7 +1709,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedInt getMutableBoard() { - bitField0_ |= 0x02000000; + bitField0_ |= 0x08000000; return board; } @@ -1595,7 +1719,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addBoard(final int value) { - bitField0_ |= 0x02000000; + bitField0_ |= 0x08000000; board.add(value); return this; } @@ -1606,7 +1730,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllBoard(final int... values) { - bitField0_ |= 0x02000000; + bitField0_ |= 0x08000000; board.addAll(values); return this; } @@ -1616,7 +1740,7 @@ public final class PlayerData { * @return whether the datingCharIds field is set */ public boolean hasDatingCharIds() { - return (bitField0_ & 0x04000000) != 0; + return (bitField0_ & 0x10000000) != 0; } /** @@ -1624,7 +1748,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearDatingCharIds() { - bitField0_ &= ~0x04000000; + bitField0_ &= ~0x10000000; datingCharIds.clear(); return this; } @@ -1653,7 +1777,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedInt getMutableDatingCharIds() { - bitField0_ |= 0x04000000; + bitField0_ |= 0x10000000; return datingCharIds; } @@ -1663,7 +1787,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addDatingCharIds(final int value) { - bitField0_ |= 0x04000000; + bitField0_ |= 0x10000000; datingCharIds.add(value); return this; } @@ -1674,7 +1798,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllDatingCharIds(final int... values) { - bitField0_ |= 0x04000000; + bitField0_ |= 0x10000000; datingCharIds.addAll(values); return this; } @@ -1684,7 +1808,7 @@ public final class PlayerData { * @return whether the dailyActiveIds field is set */ public boolean hasDailyActiveIds() { - return (bitField0_ & 0x08000000) != 0; + return (bitField0_ & 0x20000000) != 0; } /** @@ -1692,7 +1816,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearDailyActiveIds() { - bitField0_ &= ~0x08000000; + bitField0_ &= ~0x20000000; dailyActiveIds.clear(); return this; } @@ -1721,7 +1845,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedInt getMutableDailyActiveIds() { - bitField0_ |= 0x08000000; + bitField0_ |= 0x20000000; return dailyActiveIds; } @@ -1731,7 +1855,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addDailyActiveIds(final int value) { - bitField0_ |= 0x08000000; + bitField0_ |= 0x20000000; dailyActiveIds.add(value); return this; } @@ -1742,7 +1866,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllDailyActiveIds(final int... values) { - bitField0_ |= 0x08000000; + bitField0_ |= 0x20000000; dailyActiveIds.addAll(values); return this; } @@ -1752,7 +1876,7 @@ public final class PlayerData { * @return whether the weeklyActiveIds field is set */ public boolean hasWeeklyActiveIds() { - return (bitField0_ & 0x10000000) != 0; + return (bitField0_ & 0x40000000) != 0; } /** @@ -1760,7 +1884,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearWeeklyActiveIds() { - bitField0_ &= ~0x10000000; + bitField0_ &= ~0x40000000; weeklyActiveIds.clear(); return this; } @@ -1789,7 +1913,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedInt getMutableWeeklyActiveIds() { - bitField0_ |= 0x10000000; + bitField0_ |= 0x40000000; return weeklyActiveIds; } @@ -1799,7 +1923,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addWeeklyActiveIds(final int value) { - bitField0_ |= 0x10000000; + bitField0_ |= 0x40000000; weeklyActiveIds.add(value); return this; } @@ -1810,7 +1934,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllWeeklyActiveIds(final int... values) { - bitField0_ |= 0x10000000; + bitField0_ |= 0x40000000; weeklyActiveIds.addAll(values); return this; } @@ -1820,7 +1944,7 @@ public final class PlayerData { * @return whether the honorList field is set */ public boolean hasHonorList() { - return (bitField0_ & 0x20000000) != 0; + return (bitField0_ & 0x80000000) != 0; } /** @@ -1828,7 +1952,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearHonorList() { - bitField0_ &= ~0x20000000; + bitField0_ &= ~0x80000000; honorList.clear(); return this; } @@ -1857,7 +1981,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedInt getMutableHonorList() { - bitField0_ |= 0x20000000; + bitField0_ |= 0x80000000; return honorList; } @@ -1867,7 +1991,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addHonorList(final int value) { - bitField0_ |= 0x20000000; + bitField0_ |= 0x80000000; honorList.add(value); return this; } @@ -1878,7 +2002,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllHonorList(final int... values) { - bitField0_ |= 0x20000000; + bitField0_ |= 0x80000000; honorList.addAll(values); return this; } @@ -1888,7 +2012,7 @@ public final class PlayerData { * @return whether the res field is set */ public boolean hasRes() { - return (bitField0_ & 0x40000000) != 0; + return (bitField1_ & 0x00000001) != 0; } /** @@ -1896,7 +2020,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearRes() { - bitField0_ &= ~0x40000000; + bitField1_ &= ~0x00000001; res.clear(); return this; } @@ -1925,7 +2049,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableRes() { - bitField0_ |= 0x40000000; + bitField1_ |= 0x00000001; return res; } @@ -1935,7 +2059,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addRes(final Public.Res value) { - bitField0_ |= 0x40000000; + bitField1_ |= 0x00000001; res.add(value); return this; } @@ -1946,7 +2070,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllRes(final Public.Res... values) { - bitField0_ |= 0x40000000; + bitField1_ |= 0x00000001; res.addAll(values); return this; } @@ -1956,7 +2080,7 @@ public final class PlayerData { * @return whether the items field is set */ public boolean hasItems() { - return (bitField0_ & 0x80000000) != 0; + return (bitField1_ & 0x00000002) != 0; } /** @@ -1964,7 +2088,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearItems() { - bitField0_ &= ~0x80000000; + bitField1_ &= ~0x00000002; items.clear(); return this; } @@ -1993,7 +2117,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableItems() { - bitField0_ |= 0x80000000; + bitField1_ |= 0x00000002; return items; } @@ -2003,7 +2127,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addItems(final Public.Item value) { - bitField0_ |= 0x80000000; + bitField1_ |= 0x00000002; items.add(value); return this; } @@ -2014,7 +2138,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllItems(final Public.Item... values) { - bitField0_ |= 0x80000000; + bitField1_ |= 0x00000002; items.addAll(values); return this; } @@ -2024,7 +2148,7 @@ public final class PlayerData { * @return whether the chars field is set */ public boolean hasChars() { - return (bitField1_ & 0x00000001) != 0; + return (bitField1_ & 0x00000004) != 0; } /** @@ -2032,7 +2156,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearChars() { - bitField1_ &= ~0x00000001; + bitField1_ &= ~0x00000004; chars.clear(); return this; } @@ -2061,7 +2185,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableChars() { - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000004; return chars; } @@ -2071,7 +2195,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addChars(final Public.Char value) { - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000004; chars.add(value); return this; } @@ -2082,7 +2206,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllChars(final Public.Char... values) { - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000004; chars.addAll(values); return this; } @@ -2092,7 +2216,7 @@ public final class PlayerData { * @return whether the equipments field is set */ public boolean hasEquipments() { - return (bitField1_ & 0x00000002) != 0; + return (bitField1_ & 0x00000008) != 0; } /** @@ -2100,7 +2224,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearEquipments() { - bitField1_ &= ~0x00000002; + bitField1_ &= ~0x00000008; equipments.clear(); return this; } @@ -2129,7 +2253,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableEquipments() { - bitField1_ |= 0x00000002; + bitField1_ |= 0x00000008; return equipments; } @@ -2139,7 +2263,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addEquipments(final Public.EquipmentInfo value) { - bitField1_ |= 0x00000002; + bitField1_ |= 0x00000008; equipments.add(value); return this; } @@ -2150,7 +2274,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllEquipments(final Public.EquipmentInfo... values) { - bitField1_ |= 0x00000002; + bitField1_ |= 0x00000008; equipments.addAll(values); return this; } @@ -2160,7 +2284,7 @@ public final class PlayerData { * @return whether the regionBossLevels field is set */ public boolean hasRegionBossLevels() { - return (bitField1_ & 0x00000004) != 0; + return (bitField1_ & 0x00000010) != 0; } /** @@ -2168,7 +2292,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearRegionBossLevels() { - bitField1_ &= ~0x00000004; + bitField1_ &= ~0x00000010; regionBossLevels.clear(); return this; } @@ -2197,7 +2321,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableRegionBossLevels() { - bitField1_ |= 0x00000004; + bitField1_ |= 0x00000010; return regionBossLevels; } @@ -2207,7 +2331,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addRegionBossLevels(final Public.RegionBossLevel value) { - bitField1_ |= 0x00000004; + bitField1_ |= 0x00000010; regionBossLevels.add(value); return this; } @@ -2218,7 +2342,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllRegionBossLevels(final Public.RegionBossLevel... values) { - bitField1_ |= 0x00000004; + bitField1_ |= 0x00000010; regionBossLevels.addAll(values); return this; } @@ -2228,7 +2352,7 @@ public final class PlayerData { * @return whether the handbook field is set */ public boolean hasHandbook() { - return (bitField1_ & 0x00000008) != 0; + return (bitField1_ & 0x00000020) != 0; } /** @@ -2236,7 +2360,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearHandbook() { - bitField1_ &= ~0x00000008; + bitField1_ &= ~0x00000020; handbook.clear(); return this; } @@ -2265,7 +2389,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableHandbook() { - bitField1_ |= 0x00000008; + bitField1_ |= 0x00000020; return handbook; } @@ -2275,7 +2399,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addHandbook(final Public.HandbookInfo value) { - bitField1_ |= 0x00000008; + bitField1_ |= 0x00000020; handbook.add(value); return this; } @@ -2286,7 +2410,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllHandbook(final Public.HandbookInfo... values) { - bitField1_ |= 0x00000008; + bitField1_ |= 0x00000020; handbook.addAll(values); return this; } @@ -2296,7 +2420,7 @@ public final class PlayerData { * @return whether the titles field is set */ public boolean hasTitles() { - return (bitField1_ & 0x00000010) != 0; + return (bitField1_ & 0x00000040) != 0; } /** @@ -2304,7 +2428,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearTitles() { - bitField1_ &= ~0x00000010; + bitField1_ &= ~0x00000040; titles.clear(); return this; } @@ -2333,7 +2457,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableTitles() { - bitField1_ |= 0x00000010; + bitField1_ |= 0x00000040; return titles; } @@ -2343,7 +2467,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addTitles(final Public.Title value) { - bitField1_ |= 0x00000010; + bitField1_ |= 0x00000040; titles.add(value); return this; } @@ -2354,7 +2478,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllTitles(final Public.Title... values) { - bitField1_ |= 0x00000010; + bitField1_ |= 0x00000040; titles.addAll(values); return this; } @@ -2364,7 +2488,7 @@ public final class PlayerData { * @return whether the dailyInstances field is set */ public boolean hasDailyInstances() { - return (bitField1_ & 0x00000020) != 0; + return (bitField1_ & 0x00000080) != 0; } /** @@ -2372,7 +2496,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearDailyInstances() { - bitField1_ &= ~0x00000020; + bitField1_ &= ~0x00000080; dailyInstances.clear(); return this; } @@ -2401,7 +2525,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableDailyInstances() { - bitField1_ |= 0x00000020; + bitField1_ |= 0x00000080; return dailyInstances; } @@ -2411,7 +2535,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addDailyInstances(final Public.DailyInstance value) { - bitField1_ |= 0x00000020; + bitField1_ |= 0x00000080; dailyInstances.add(value); return this; } @@ -2422,7 +2546,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllDailyInstances(final Public.DailyInstance... values) { - bitField1_ |= 0x00000020; + bitField1_ |= 0x00000080; dailyInstances.addAll(values); return this; } @@ -2432,7 +2556,7 @@ public final class PlayerData { * @return whether the dictionaries field is set */ public boolean hasDictionaries() { - return (bitField1_ & 0x00000040) != 0; + return (bitField1_ & 0x00000100) != 0; } /** @@ -2440,7 +2564,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearDictionaries() { - bitField1_ &= ~0x00000040; + bitField1_ &= ~0x00000100; dictionaries.clear(); return this; } @@ -2469,7 +2593,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableDictionaries() { - bitField1_ |= 0x00000040; + bitField1_ |= 0x00000100; return dictionaries; } @@ -2479,7 +2603,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addDictionaries(final DictionaryTab value) { - bitField1_ |= 0x00000040; + bitField1_ |= 0x00000100; dictionaries.add(value); return this; } @@ -2490,7 +2614,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllDictionaries(final DictionaryTab... values) { - bitField1_ |= 0x00000040; + bitField1_ |= 0x00000100; dictionaries.addAll(values); return this; } @@ -2500,7 +2624,7 @@ public final class PlayerData { * @return whether the activities field is set */ public boolean hasActivities() { - return (bitField1_ & 0x00000080) != 0; + return (bitField1_ & 0x00000200) != 0; } /** @@ -2508,7 +2632,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearActivities() { - bitField1_ &= ~0x00000080; + bitField1_ &= ~0x00000200; activities.clear(); return this; } @@ -2537,7 +2661,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableActivities() { - bitField1_ |= 0x00000080; + bitField1_ |= 0x00000200; return activities; } @@ -2547,7 +2671,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addActivities(final Public.Activity value) { - bitField1_ |= 0x00000080; + bitField1_ |= 0x00000200; activities.add(value); return this; } @@ -2558,7 +2682,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllActivities(final Public.Activity... values) { - bitField1_ |= 0x00000080; + bitField1_ |= 0x00000200; activities.addAll(values); return this; } @@ -2568,7 +2692,7 @@ public final class PlayerData { * @return whether the discs field is set */ public boolean hasDiscs() { - return (bitField1_ & 0x00000100) != 0; + return (bitField1_ & 0x00000400) != 0; } /** @@ -2576,7 +2700,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearDiscs() { - bitField1_ &= ~0x00000100; + bitField1_ &= ~0x00000400; discs.clear(); return this; } @@ -2605,7 +2729,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableDiscs() { - bitField1_ |= 0x00000100; + bitField1_ |= 0x00000400; return discs; } @@ -2615,7 +2739,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addDiscs(final Public.Disc value) { - bitField1_ |= 0x00000100; + bitField1_ |= 0x00000400; discs.add(value); return this; } @@ -2626,7 +2750,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllDiscs(final Public.Disc... values) { - bitField1_ |= 0x00000100; + bitField1_ |= 0x00000400; discs.addAll(values); return this; } @@ -2636,7 +2760,7 @@ public final class PlayerData { * @return whether the equipmentInstances field is set */ public boolean hasEquipmentInstances() { - return (bitField1_ & 0x00000200) != 0; + return (bitField1_ & 0x00000800) != 0; } /** @@ -2644,7 +2768,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearEquipmentInstances() { - bitField1_ &= ~0x00000200; + bitField1_ &= ~0x00000800; equipmentInstances.clear(); return this; } @@ -2673,7 +2797,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableEquipmentInstances() { - bitField1_ |= 0x00000200; + bitField1_ |= 0x00000800; return equipmentInstances; } @@ -2683,7 +2807,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addEquipmentInstances(final Public.EquipmentInstance value) { - bitField1_ |= 0x00000200; + bitField1_ |= 0x00000800; equipmentInstances.add(value); return this; } @@ -2694,7 +2818,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllEquipmentInstances(final Public.EquipmentInstance... values) { - bitField1_ |= 0x00000200; + bitField1_ |= 0x00000800; equipmentInstances.addAll(values); return this; } @@ -2704,7 +2828,7 @@ public final class PlayerData { * @return whether the skillInstances field is set */ public boolean hasSkillInstances() { - return (bitField1_ & 0x00000400) != 0; + return (bitField1_ & 0x00001000) != 0; } /** @@ -2712,7 +2836,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearSkillInstances() { - bitField1_ &= ~0x00000400; + bitField1_ &= ~0x00001000; skillInstances.clear(); return this; } @@ -2741,7 +2865,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableSkillInstances() { - bitField1_ |= 0x00000400; + bitField1_ |= 0x00001000; return skillInstances; } @@ -2751,7 +2875,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addSkillInstances(final Public.SkillInstance value) { - bitField1_ |= 0x00000400; + bitField1_ |= 0x00001000; skillInstances.add(value); return this; } @@ -2762,7 +2886,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllSkillInstances(final Public.SkillInstance... values) { - bitField1_ |= 0x00000400; + bitField1_ |= 0x00001000; skillInstances.addAll(values); return this; } @@ -2772,7 +2896,7 @@ public final class PlayerData { * @return whether the weekBossLevels field is set */ public boolean hasWeekBossLevels() { - return (bitField1_ & 0x00000800) != 0; + return (bitField1_ & 0x00002000) != 0; } /** @@ -2780,7 +2904,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearWeekBossLevels() { - bitField1_ &= ~0x00000800; + bitField1_ &= ~0x00002000; weekBossLevels.clear(); return this; } @@ -2809,7 +2933,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableWeekBossLevels() { - bitField1_ |= 0x00000800; + bitField1_ |= 0x00002000; return weekBossLevels; } @@ -2819,7 +2943,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addWeekBossLevels(final Public.WeekBossLevel value) { - bitField1_ |= 0x00000800; + bitField1_ |= 0x00002000; weekBossLevels.add(value); return this; } @@ -2830,7 +2954,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllWeekBossLevels(final Public.WeekBossLevel... values) { - bitField1_ |= 0x00000800; + bitField1_ |= 0x00002000; weekBossLevels.addAll(values); return this; } @@ -2840,7 +2964,7 @@ public final class PlayerData { * @return whether the charGemInstances field is set */ public boolean hasCharGemInstances() { - return (bitField1_ & 0x00001000) != 0; + return (bitField1_ & 0x00004000) != 0; } /** @@ -2848,7 +2972,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearCharGemInstances() { - bitField1_ &= ~0x00001000; + bitField1_ &= ~0x00004000; charGemInstances.clear(); return this; } @@ -2877,7 +3001,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableCharGemInstances() { - bitField1_ |= 0x00001000; + bitField1_ |= 0x00004000; return charGemInstances; } @@ -2887,7 +3011,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addCharGemInstances(final Public.CharGemInstance value) { - bitField1_ |= 0x00001000; + bitField1_ |= 0x00004000; charGemInstances.add(value); return this; } @@ -2898,7 +3022,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllCharGemInstances(final Public.CharGemInstance... values) { - bitField1_ |= 0x00001000; + bitField1_ |= 0x00004000; charGemInstances.addAll(values); return this; } @@ -2908,7 +3032,7 @@ public final class PlayerData { * @return whether the tutorialLevels field is set */ public boolean hasTutorialLevels() { - return (bitField1_ & 0x00002000) != 0; + return (bitField1_ & 0x00008000) != 0; } /** @@ -2916,7 +3040,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearTutorialLevels() { - bitField1_ &= ~0x00002000; + bitField1_ &= ~0x00008000; tutorialLevels.clear(); return this; } @@ -2945,7 +3069,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableTutorialLevels() { - bitField1_ |= 0x00002000; + bitField1_ |= 0x00008000; return tutorialLevels; } @@ -2955,7 +3079,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addTutorialLevels(final Public.TutorialLevel value) { - bitField1_ |= 0x00002000; + bitField1_ |= 0x00008000; tutorialLevels.add(value); return this; } @@ -2966,7 +3090,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllTutorialLevels(final Public.TutorialLevel... values) { - bitField1_ |= 0x00002000; + bitField1_ |= 0x00008000; tutorialLevels.addAll(values); return this; } @@ -2976,7 +3100,7 @@ public final class PlayerData { * @return whether the assists field is set */ public boolean hasAssists() { - return (bitField1_ & 0x00004000) != 0; + return (bitField1_ & 0x00010000) != 0; } /** @@ -2984,7 +3108,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearAssists() { - bitField1_ &= ~0x00004000; + bitField1_ &= ~0x00010000; assists.clear(); return this; } @@ -3013,7 +3137,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableAssists() { - bitField1_ |= 0x00004000; + bitField1_ |= 0x00010000; return assists; } @@ -3023,7 +3147,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAssists(final AssistInfo value) { - bitField1_ |= 0x00004000; + bitField1_ |= 0x00010000; assists.add(value); return this; } @@ -3034,7 +3158,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllAssists(final AssistInfo... values) { - bitField1_ |= 0x00004000; + bitField1_ |= 0x00010000; assists.addAll(values); return this; } @@ -3044,7 +3168,7 @@ public final class PlayerData { * @return whether the activityHonors field is set */ public boolean hasActivityHonors() { - return (bitField1_ & 0x00008000) != 0; + return (bitField1_ & 0x00020000) != 0; } /** @@ -3052,7 +3176,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearActivityHonors() { - bitField1_ &= ~0x00008000; + bitField1_ &= ~0x00020000; activityHonors.clear(); return this; } @@ -3081,7 +3205,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableActivityHonors() { - bitField1_ |= 0x00008000; + bitField1_ |= 0x00020000; return activityHonors; } @@ -3091,7 +3215,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addActivityHonors(final Public.ActivityHonor value) { - bitField1_ |= 0x00008000; + bitField1_ |= 0x00020000; activityHonors.add(value); return this; } @@ -3102,7 +3226,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllActivityHonors(final Public.ActivityHonor... values) { - bitField1_ |= 0x00008000; + bitField1_ |= 0x00020000; activityHonors.addAll(values); return this; } @@ -3112,7 +3236,7 @@ public final class PlayerData { * @return whether the personalityModels field is set */ public boolean hasPersonalityModels() { - return (bitField1_ & 0x00010000) != 0; + return (bitField1_ & 0x00040000) != 0; } /** @@ -3120,7 +3244,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearPersonalityModels() { - bitField1_ &= ~0x00010000; + bitField1_ &= ~0x00040000; personalityModels.clear(); return this; } @@ -3149,7 +3273,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutablePersonalityModels() { - bitField1_ |= 0x00010000; + bitField1_ |= 0x00040000; return personalityModels; } @@ -3159,7 +3283,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addPersonalityModels(final Public.ActivityPersonalityModel value) { - bitField1_ |= 0x00010000; + bitField1_ |= 0x00040000; personalityModels.add(value); return this; } @@ -3170,7 +3294,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllPersonalityModels(final Public.ActivityPersonalityModel... values) { - bitField1_ |= 0x00010000; + bitField1_ |= 0x00040000; personalityModels.addAll(values); return this; } @@ -3180,7 +3304,7 @@ public final class PlayerData { * @return whether the honors field is set */ public boolean hasHonors() { - return (bitField1_ & 0x00020000) != 0; + return (bitField1_ & 0x00080000) != 0; } /** @@ -3188,7 +3312,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearHonors() { - bitField1_ &= ~0x00020000; + bitField1_ &= ~0x00080000; honors.clear(); return this; } @@ -3217,7 +3341,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableHonors() { - bitField1_ |= 0x00020000; + bitField1_ |= 0x00080000; return honors; } @@ -3227,7 +3351,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addHonors(final Public.HonorInfo value) { - bitField1_ |= 0x00020000; + bitField1_ |= 0x00080000; honors.add(value); return this; } @@ -3238,7 +3362,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllHonors(final Public.HonorInfo... values) { - bitField1_ |= 0x00020000; + bitField1_ |= 0x00080000; honors.addAll(values); return this; } @@ -3269,6 +3393,8 @@ public final class PlayerData { phone.copyFrom(other.phone); story.copyFrom(other.story); vampireSurvivorRecord.copyFrom(other.vampireSurvivorRecord); + huntPermit.copyFrom(other.huntPermit); + traceRequest.copyFrom(other.traceRequest); lastRead.copyFrom(other.lastRead); achievements.copyFrom(other.achievements); nextPackage.copyFrom(other.nextPackage); @@ -3278,11 +3404,11 @@ public final class PlayerData { dailyActiveIds.copyFrom(other.dailyActiveIds); weeklyActiveIds.copyFrom(other.weeklyActiveIds); honorList.copyFrom(other.honorList); - res.copyFrom(other.res); - items.copyFrom(other.items); } if ((bitField1_ | other.bitField1_) != 0) { bitField1_ = other.bitField1_; + res.copyFrom(other.res); + items.copyFrom(other.items); chars.copyFrom(other.chars); equipments.copyFrom(other.equipments); regionBossLevels.copyFrom(other.regionBossLevels); @@ -3374,6 +3500,12 @@ public final class PlayerData { if (other.hasVampireSurvivorRecord()) { getMutableVampireSurvivorRecord().mergeFrom(other.vampireSurvivorRecord); } + if (other.hasHuntPermit()) { + getMutableHuntPermit().mergeFrom(other.huntPermit); + } + if (other.hasTraceRequest()) { + getMutableTraceRequest().mergeFrom(other.traceRequest); + } if (other.hasLastRead()) { getMutableLastRead().mergeFrom(other.lastRead); } @@ -3493,6 +3625,8 @@ public final class PlayerData { phone.clear(); story.clear(); vampireSurvivorRecord.clear(); + huntPermit.clear(); + traceRequest.clear(); lastRead.clear(); achievements.clear(); nextPackage.clear(); @@ -3543,6 +3677,8 @@ public final class PlayerData { phone.clearQuick(); story.clearQuick(); vampireSurvivorRecord.clearQuick(); + huntPermit.clearQuick(); + traceRequest.clearQuick(); lastRead.clearQuick(); achievements.clear(); nextPackage.clear(); @@ -3607,6 +3743,8 @@ public final class PlayerData { && (!hasPhone() || phone.equals(other.phone)) && (!hasStory() || story.equals(other.story)) && (!hasVampireSurvivorRecord() || vampireSurvivorRecord.equals(other.vampireSurvivorRecord)) + && (!hasHuntPermit() || huntPermit.equals(other.huntPermit)) + && (!hasTraceRequest() || traceRequest.equals(other.traceRequest)) && (!hasLastRead() || lastRead.equals(other.lastRead)) && (!hasAchievements() || achievements.equals(other.achievements)) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) @@ -3725,168 +3863,176 @@ public final class PlayerData { output.writeMessageNoTag(vampireSurvivorRecord); } if ((bitField0_ & 0x00200000) != 0) { + output.writeRawLittleEndian16((short) 1970); + output.writeMessageNoTag(huntPermit); + } + if ((bitField0_ & 0x00400000) != 0) { + output.writeRawLittleEndian16((short) 1978); + output.writeMessageNoTag(traceRequest); + } + if ((bitField0_ & 0x00800000) != 0) { output.writeRawLittleEndian16((short) 2178); output.writeMessageNoTag(lastRead); } - if ((bitField0_ & 0x00400000) != 0) { + if ((bitField0_ & 0x01000000) != 0) { output.writeRawLittleEndian16((short) 402); output.writeBytesNoTag(achievements); } - if ((bitField0_ & 0x00800000) != 0) { + if ((bitField0_ & 0x02000000) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); } - if ((bitField0_ & 0x01000000) != 0) { + if ((bitField0_ & 0x04000000) != 0) { for (int i = 0; i < rglPassedIds.length(); i++) { output.writeRawByte((byte) 80); output.writeUInt32NoTag(rglPassedIds.array()[i]); } } - if ((bitField0_ & 0x02000000) != 0) { + if ((bitField0_ & 0x08000000) != 0) { for (int i = 0; i < board.length(); i++) { output.writeRawLittleEndian16((short) 384); output.writeUInt32NoTag(board.array()[i]); } } - if ((bitField0_ & 0x04000000) != 0) { + if ((bitField0_ & 0x10000000) != 0) { for (int i = 0; i < datingCharIds.length(); i++) { output.writeRawLittleEndian16((short) 392); output.writeUInt32NoTag(datingCharIds.array()[i]); } } - if ((bitField0_ & 0x08000000) != 0) { + if ((bitField0_ & 0x20000000) != 0) { for (int i = 0; i < dailyActiveIds.length(); i++) { output.writeRawLittleEndian16((short) 640); output.writeUInt32NoTag(dailyActiveIds.array()[i]); } } - if ((bitField0_ & 0x10000000) != 0) { + if ((bitField0_ & 0x40000000) != 0) { for (int i = 0; i < weeklyActiveIds.length(); i++) { output.writeRawLittleEndian16((short) 688); output.writeUInt32NoTag(weeklyActiveIds.array()[i]); } } - if ((bitField0_ & 0x20000000) != 0) { + if ((bitField0_ & 0x80000000) != 0) { for (int i = 0; i < honorList.length(); i++) { output.writeRawLittleEndian16((short) 2008); output.writeUInt32NoTag(honorList.array()[i]); } } - if ((bitField0_ & 0x40000000) != 0) { + if ((bitField1_ & 0x00000001) != 0) { for (int i = 0; i < res.length(); i++) { output.writeRawByte((byte) 18); output.writeMessageNoTag(res.get(i)); } } - if ((bitField0_ & 0x80000000) != 0) { + if ((bitField1_ & 0x00000002) != 0) { for (int i = 0; i < items.length(); i++) { output.writeRawByte((byte) 26); output.writeMessageNoTag(items.get(i)); } } - if ((bitField1_ & 0x00000001) != 0) { + if ((bitField1_ & 0x00000004) != 0) { for (int i = 0; i < chars.length(); i++) { output.writeRawByte((byte) 34); output.writeMessageNoTag(chars.get(i)); } } - if ((bitField1_ & 0x00000002) != 0) { + if ((bitField1_ & 0x00000008) != 0) { for (int i = 0; i < equipments.length(); i++) { output.writeRawByte((byte) 90); output.writeMessageNoTag(equipments.get(i)); } } - if ((bitField1_ & 0x00000004) != 0) { + if ((bitField1_ & 0x00000010) != 0) { for (int i = 0; i < regionBossLevels.length(); i++) { output.writeRawByte((byte) 98); output.writeMessageNoTag(regionBossLevels.get(i)); } } - if ((bitField1_ & 0x00000008) != 0) { + if ((bitField1_ & 0x00000020) != 0) { for (int i = 0; i < handbook.length(); i++) { output.writeRawLittleEndian16((short) 410); output.writeMessageNoTag(handbook.get(i)); } } - if ((bitField1_ & 0x00000010) != 0) { + if ((bitField1_ & 0x00000040) != 0) { for (int i = 0; i < titles.length(); i++) { output.writeRawLittleEndian16((short) 426); output.writeMessageNoTag(titles.get(i)); } } - if ((bitField1_ & 0x00000020) != 0) { + if ((bitField1_ & 0x00000080) != 0) { for (int i = 0; i < dailyInstances.length(); i++) { output.writeRawLittleEndian16((short) 434); output.writeMessageNoTag(dailyInstances.get(i)); } } - if ((bitField1_ & 0x00000040) != 0) { + if ((bitField1_ & 0x00000100) != 0) { for (int i = 0; i < dictionaries.length(); i++) { output.writeRawLittleEndian16((short) 442); output.writeMessageNoTag(dictionaries.get(i)); } } - if ((bitField1_ & 0x00000080) != 0) { + if ((bitField1_ & 0x00000200) != 0) { for (int i = 0; i < activities.length(); i++) { output.writeRawLittleEndian16((short) 450); output.writeMessageNoTag(activities.get(i)); } } - if ((bitField1_ & 0x00000100) != 0) { + if ((bitField1_ & 0x00000400) != 0) { for (int i = 0; i < discs.length(); i++) { output.writeRawLittleEndian16((short) 482); output.writeMessageNoTag(discs.get(i)); } } - if ((bitField1_ & 0x00000200) != 0) { + if ((bitField1_ & 0x00000800) != 0) { for (int i = 0; i < equipmentInstances.length(); i++) { output.writeRawLittleEndian16((short) 490); output.writeMessageNoTag(equipmentInstances.get(i)); } } - if ((bitField1_ & 0x00000400) != 0) { + if ((bitField1_ & 0x00001000) != 0) { for (int i = 0; i < skillInstances.length(); i++) { output.writeRawLittleEndian16((short) 658); output.writeMessageNoTag(skillInstances.get(i)); } } - if ((bitField1_ & 0x00000800) != 0) { + if ((bitField1_ & 0x00002000) != 0) { for (int i = 0; i < weekBossLevels.length(); i++) { output.writeRawLittleEndian16((short) 666); output.writeMessageNoTag(weekBossLevels.get(i)); } } - if ((bitField1_ & 0x00001000) != 0) { + if ((bitField1_ & 0x00004000) != 0) { for (int i = 0; i < charGemInstances.length(); i++) { output.writeRawLittleEndian16((short) 674); output.writeMessageNoTag(charGemInstances.get(i)); } } - if ((bitField1_ & 0x00002000) != 0) { + if ((bitField1_ & 0x00008000) != 0) { for (int i = 0; i < tutorialLevels.length(); i++) { output.writeRawLittleEndian16((short) 682); output.writeMessageNoTag(tutorialLevels.get(i)); } } - if ((bitField1_ & 0x00004000) != 0) { + if ((bitField1_ & 0x00010000) != 0) { for (int i = 0; i < assists.length(); i++) { output.writeRawLittleEndian16((short) 698); output.writeMessageNoTag(assists.get(i)); } } - if ((bitField1_ & 0x00008000) != 0) { + if ((bitField1_ & 0x00020000) != 0) { for (int i = 0; i < activityHonors.length(); i++) { output.writeRawLittleEndian16((short) 714); output.writeMessageNoTag(activityHonors.get(i)); } } - if ((bitField1_ & 0x00010000) != 0) { + if ((bitField1_ & 0x00040000) != 0) { for (int i = 0; i < personalityModels.length(); i++) { output.writeRawLittleEndian16((short) 1986); output.writeMessageNoTag(personalityModels.get(i)); } } - if ((bitField1_ & 0x00020000) != 0) { + if ((bitField1_ & 0x00080000) != 0) { for (int i = 0; i < honors.length(); i++) { output.writeRawLittleEndian16((short) 2018); output.writeMessageNoTag(honors.get(i)); @@ -3961,90 +4107,96 @@ public final class PlayerData { size += 2 + ProtoSink.computeMessageSizeNoTag(vampireSurvivorRecord); } if ((bitField0_ & 0x00200000) != 0) { - size += 2 + ProtoSink.computeMessageSizeNoTag(lastRead); + size += 2 + ProtoSink.computeMessageSizeNoTag(huntPermit); } if ((bitField0_ & 0x00400000) != 0) { - size += 2 + ProtoSink.computeBytesSizeNoTag(achievements); + size += 2 + ProtoSink.computeMessageSizeNoTag(traceRequest); } if ((bitField0_ & 0x00800000) != 0) { - size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + size += 2 + ProtoSink.computeMessageSizeNoTag(lastRead); } if ((bitField0_ & 0x01000000) != 0) { - size += (1 * rglPassedIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(rglPassedIds); + size += 2 + ProtoSink.computeBytesSizeNoTag(achievements); } if ((bitField0_ & 0x02000000) != 0) { - size += (2 * board.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(board); + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); } if ((bitField0_ & 0x04000000) != 0) { - size += (2 * datingCharIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(datingCharIds); + size += (1 * rglPassedIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(rglPassedIds); } if ((bitField0_ & 0x08000000) != 0) { - size += (2 * dailyActiveIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(dailyActiveIds); + size += (2 * board.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(board); } if ((bitField0_ & 0x10000000) != 0) { - size += (2 * weeklyActiveIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(weeklyActiveIds); + size += (2 * datingCharIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(datingCharIds); } if ((bitField0_ & 0x20000000) != 0) { - size += (2 * honorList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(honorList); + size += (2 * dailyActiveIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(dailyActiveIds); } if ((bitField0_ & 0x40000000) != 0) { - size += (1 * res.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(res); + size += (2 * weeklyActiveIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(weeklyActiveIds); } if ((bitField0_ & 0x80000000) != 0) { - size += (1 * items.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(items); + size += (2 * honorList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(honorList); } if ((bitField1_ & 0x00000001) != 0) { - size += (1 * chars.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(chars); + size += (1 * res.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(res); } if ((bitField1_ & 0x00000002) != 0) { - size += (1 * equipments.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(equipments); + size += (1 * items.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(items); } if ((bitField1_ & 0x00000004) != 0) { - size += (1 * regionBossLevels.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(regionBossLevels); + size += (1 * chars.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(chars); } if ((bitField1_ & 0x00000008) != 0) { - size += (2 * handbook.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(handbook); + size += (1 * equipments.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(equipments); } if ((bitField1_ & 0x00000010) != 0) { - size += (2 * titles.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(titles); + size += (1 * regionBossLevels.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(regionBossLevels); } if ((bitField1_ & 0x00000020) != 0) { - size += (2 * dailyInstances.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(dailyInstances); + size += (2 * handbook.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(handbook); } if ((bitField1_ & 0x00000040) != 0) { - size += (2 * dictionaries.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(dictionaries); + size += (2 * titles.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(titles); } if ((bitField1_ & 0x00000080) != 0) { - size += (2 * activities.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(activities); + size += (2 * dailyInstances.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(dailyInstances); } if ((bitField1_ & 0x00000100) != 0) { - size += (2 * discs.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(discs); + size += (2 * dictionaries.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(dictionaries); } if ((bitField1_ & 0x00000200) != 0) { - size += (2 * equipmentInstances.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(equipmentInstances); + size += (2 * activities.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(activities); } if ((bitField1_ & 0x00000400) != 0) { - size += (2 * skillInstances.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(skillInstances); + size += (2 * discs.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(discs); } if ((bitField1_ & 0x00000800) != 0) { - size += (2 * weekBossLevels.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(weekBossLevels); + size += (2 * equipmentInstances.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(equipmentInstances); } if ((bitField1_ & 0x00001000) != 0) { - size += (2 * charGemInstances.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(charGemInstances); + size += (2 * skillInstances.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(skillInstances); } if ((bitField1_ & 0x00002000) != 0) { - size += (2 * tutorialLevels.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(tutorialLevels); + size += (2 * weekBossLevels.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(weekBossLevels); } if ((bitField1_ & 0x00004000) != 0) { - size += (2 * assists.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(assists); + size += (2 * charGemInstances.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(charGemInstances); } if ((bitField1_ & 0x00008000) != 0) { - size += (2 * activityHonors.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(activityHonors); + size += (2 * tutorialLevels.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(tutorialLevels); } if ((bitField1_ & 0x00010000) != 0) { - size += (2 * personalityModels.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(personalityModels); + size += (2 * assists.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(assists); } if ((bitField1_ & 0x00020000) != 0) { + size += (2 * activityHonors.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(activityHonors); + } + if ((bitField1_ & 0x00040000) != 0) { + size += (2 * personalityModels.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(personalityModels); + } + if ((bitField1_ & 0x00080000) != 0) { size += (2 * honors.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(honors); } return size; @@ -4242,6 +4394,24 @@ public final class PlayerData { input.readMessage(vampireSurvivorRecord); bitField0_ |= 0x00100000; tag = input.readTag(); + if (tag != 946) { + break; + } + } + case 946: { + // huntPermit + input.readMessage(huntPermit); + bitField0_ |= 0x00200000; + tag = input.readTag(); + if (tag != 954) { + break; + } + } + case 954: { + // traceRequest + input.readMessage(traceRequest); + bitField0_ |= 0x00400000; + tag = input.readTag(); if (tag != 1026) { break; } @@ -4249,7 +4419,7 @@ public final class PlayerData { case 1026: { // lastRead input.readMessage(lastRead); - bitField0_ |= 0x00200000; + bitField0_ |= 0x00800000; tag = input.readTag(); if (tag != 146) { break; @@ -4258,7 +4428,7 @@ public final class PlayerData { case 146: { // achievements input.readBytes(achievements); - bitField0_ |= 0x00400000; + bitField0_ |= 0x01000000; tag = input.readTag(); if (tag != 16378) { break; @@ -4267,7 +4437,7 @@ public final class PlayerData { case 16378: { // nextPackage input.readBytes(nextPackage); - bitField0_ |= 0x00800000; + bitField0_ |= 0x02000000; tag = input.readTag(); if (tag != 82) { break; @@ -4276,7 +4446,7 @@ public final class PlayerData { case 82: { // rglPassedIds [packed=true] input.readPackedUInt32(rglPassedIds, tag); - bitField0_ |= 0x01000000; + bitField0_ |= 0x04000000; tag = input.readTag(); if (tag != 130) { break; @@ -4285,7 +4455,7 @@ public final class PlayerData { case 130: { // board [packed=true] input.readPackedUInt32(board, tag); - bitField0_ |= 0x02000000; + bitField0_ |= 0x08000000; tag = input.readTag(); if (tag != 138) { break; @@ -4294,7 +4464,7 @@ public final class PlayerData { case 138: { // datingCharIds [packed=true] input.readPackedUInt32(datingCharIds, tag); - bitField0_ |= 0x04000000; + bitField0_ |= 0x10000000; tag = input.readTag(); if (tag != 258) { break; @@ -4303,7 +4473,7 @@ public final class PlayerData { case 258: { // dailyActiveIds [packed=true] input.readPackedUInt32(dailyActiveIds, tag); - bitField0_ |= 0x08000000; + bitField0_ |= 0x20000000; tag = input.readTag(); if (tag != 306) { break; @@ -4312,7 +4482,7 @@ public final class PlayerData { case 306: { // weeklyActiveIds [packed=true] input.readPackedUInt32(weeklyActiveIds, tag); - bitField0_ |= 0x10000000; + bitField0_ |= 0x40000000; tag = input.readTag(); if (tag != 986) { break; @@ -4321,7 +4491,7 @@ public final class PlayerData { case 986: { // honorList [packed=true] input.readPackedUInt32(honorList, tag); - bitField0_ |= 0x20000000; + bitField0_ |= 0x80000000; tag = input.readTag(); if (tag != 18) { break; @@ -4330,7 +4500,7 @@ public final class PlayerData { case 18: { // res tag = input.readRepeatedMessage(res, tag); - bitField0_ |= 0x40000000; + bitField1_ |= 0x00000001; if (tag != 26) { break; } @@ -4338,7 +4508,7 @@ public final class PlayerData { case 26: { // items tag = input.readRepeatedMessage(items, tag); - bitField0_ |= 0x80000000; + bitField1_ |= 0x00000002; if (tag != 34) { break; } @@ -4346,7 +4516,7 @@ public final class PlayerData { case 34: { // chars tag = input.readRepeatedMessage(chars, tag); - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000004; if (tag != 90) { break; } @@ -4354,7 +4524,7 @@ public final class PlayerData { case 90: { // equipments tag = input.readRepeatedMessage(equipments, tag); - bitField1_ |= 0x00000002; + bitField1_ |= 0x00000008; if (tag != 98) { break; } @@ -4362,7 +4532,7 @@ public final class PlayerData { case 98: { // regionBossLevels tag = input.readRepeatedMessage(regionBossLevels, tag); - bitField1_ |= 0x00000004; + bitField1_ |= 0x00000010; if (tag != 154) { break; } @@ -4370,7 +4540,7 @@ public final class PlayerData { case 154: { // handbook tag = input.readRepeatedMessage(handbook, tag); - bitField1_ |= 0x00000008; + bitField1_ |= 0x00000020; if (tag != 170) { break; } @@ -4378,7 +4548,7 @@ public final class PlayerData { case 170: { // titles tag = input.readRepeatedMessage(titles, tag); - bitField1_ |= 0x00000010; + bitField1_ |= 0x00000040; if (tag != 178) { break; } @@ -4386,7 +4556,7 @@ public final class PlayerData { case 178: { // dailyInstances tag = input.readRepeatedMessage(dailyInstances, tag); - bitField1_ |= 0x00000020; + bitField1_ |= 0x00000080; if (tag != 186) { break; } @@ -4394,7 +4564,7 @@ public final class PlayerData { case 186: { // dictionaries tag = input.readRepeatedMessage(dictionaries, tag); - bitField1_ |= 0x00000040; + bitField1_ |= 0x00000100; if (tag != 194) { break; } @@ -4402,7 +4572,7 @@ public final class PlayerData { case 194: { // activities tag = input.readRepeatedMessage(activities, tag); - bitField1_ |= 0x00000080; + bitField1_ |= 0x00000200; if (tag != 226) { break; } @@ -4410,7 +4580,7 @@ public final class PlayerData { case 226: { // discs tag = input.readRepeatedMessage(discs, tag); - bitField1_ |= 0x00000100; + bitField1_ |= 0x00000400; if (tag != 234) { break; } @@ -4418,7 +4588,7 @@ public final class PlayerData { case 234: { // equipmentInstances tag = input.readRepeatedMessage(equipmentInstances, tag); - bitField1_ |= 0x00000200; + bitField1_ |= 0x00000800; if (tag != 274) { break; } @@ -4426,7 +4596,7 @@ public final class PlayerData { case 274: { // skillInstances tag = input.readRepeatedMessage(skillInstances, tag); - bitField1_ |= 0x00000400; + bitField1_ |= 0x00001000; if (tag != 282) { break; } @@ -4434,7 +4604,7 @@ public final class PlayerData { case 282: { // weekBossLevels tag = input.readRepeatedMessage(weekBossLevels, tag); - bitField1_ |= 0x00000800; + bitField1_ |= 0x00002000; if (tag != 290) { break; } @@ -4442,7 +4612,7 @@ public final class PlayerData { case 290: { // charGemInstances tag = input.readRepeatedMessage(charGemInstances, tag); - bitField1_ |= 0x00001000; + bitField1_ |= 0x00004000; if (tag != 298) { break; } @@ -4450,7 +4620,7 @@ public final class PlayerData { case 298: { // tutorialLevels tag = input.readRepeatedMessage(tutorialLevels, tag); - bitField1_ |= 0x00002000; + bitField1_ |= 0x00008000; if (tag != 314) { break; } @@ -4458,7 +4628,7 @@ public final class PlayerData { case 314: { // assists tag = input.readRepeatedMessage(assists, tag); - bitField1_ |= 0x00004000; + bitField1_ |= 0x00010000; if (tag != 330) { break; } @@ -4466,7 +4636,7 @@ public final class PlayerData { case 330: { // activityHonors tag = input.readRepeatedMessage(activityHonors, tag); - bitField1_ |= 0x00008000; + bitField1_ |= 0x00020000; if (tag != 962) { break; } @@ -4474,7 +4644,7 @@ public final class PlayerData { case 962: { // personalityModels tag = input.readRepeatedMessage(personalityModels, tag); - bitField1_ |= 0x00010000; + bitField1_ |= 0x00040000; if (tag != 994) { break; } @@ -4482,7 +4652,7 @@ public final class PlayerData { case 994: { // honors tag = input.readRepeatedMessage(honors, tag); - bitField1_ |= 0x00020000; + bitField1_ |= 0x00080000; if (tag != 0) { break; } @@ -4500,37 +4670,37 @@ public final class PlayerData { case 80: { // rglPassedIds [packed=false] tag = input.readRepeatedUInt32(rglPassedIds, tag); - bitField0_ |= 0x01000000; + bitField0_ |= 0x04000000; break; } case 128: { // board [packed=false] tag = input.readRepeatedUInt32(board, tag); - bitField0_ |= 0x02000000; + bitField0_ |= 0x08000000; break; } case 136: { // datingCharIds [packed=false] tag = input.readRepeatedUInt32(datingCharIds, tag); - bitField0_ |= 0x04000000; + bitField0_ |= 0x10000000; break; } case 256: { // dailyActiveIds [packed=false] tag = input.readRepeatedUInt32(dailyActiveIds, tag); - bitField0_ |= 0x08000000; + bitField0_ |= 0x20000000; break; } case 304: { // weeklyActiveIds [packed=false] tag = input.readRepeatedUInt32(weeklyActiveIds, tag); - bitField0_ |= 0x10000000; + bitField0_ |= 0x40000000; break; } case 984: { // honorList [packed=false] tag = input.readRepeatedUInt32(honorList, tag); - bitField0_ |= 0x20000000; + bitField0_ |= 0x80000000; break; } } @@ -4604,90 +4774,96 @@ public final class PlayerData { output.writeMessage(FieldNames.vampireSurvivorRecord, vampireSurvivorRecord); } if ((bitField0_ & 0x00200000) != 0) { - output.writeMessage(FieldNames.lastRead, lastRead); + output.writeMessage(FieldNames.huntPermit, huntPermit); } if ((bitField0_ & 0x00400000) != 0) { - output.writeBytes(FieldNames.achievements, achievements); + output.writeMessage(FieldNames.traceRequest, traceRequest); } if ((bitField0_ & 0x00800000) != 0) { - output.writeBytes(FieldNames.nextPackage, nextPackage); + output.writeMessage(FieldNames.lastRead, lastRead); } if ((bitField0_ & 0x01000000) != 0) { - output.writeRepeatedUInt32(FieldNames.rglPassedIds, rglPassedIds); + output.writeBytes(FieldNames.achievements, achievements); } if ((bitField0_ & 0x02000000) != 0) { - output.writeRepeatedUInt32(FieldNames.board, board); + output.writeBytes(FieldNames.nextPackage, nextPackage); } if ((bitField0_ & 0x04000000) != 0) { - output.writeRepeatedUInt32(FieldNames.datingCharIds, datingCharIds); + output.writeRepeatedUInt32(FieldNames.rglPassedIds, rglPassedIds); } if ((bitField0_ & 0x08000000) != 0) { - output.writeRepeatedUInt32(FieldNames.dailyActiveIds, dailyActiveIds); + output.writeRepeatedUInt32(FieldNames.board, board); } if ((bitField0_ & 0x10000000) != 0) { - output.writeRepeatedUInt32(FieldNames.weeklyActiveIds, weeklyActiveIds); + output.writeRepeatedUInt32(FieldNames.datingCharIds, datingCharIds); } if ((bitField0_ & 0x20000000) != 0) { - output.writeRepeatedUInt32(FieldNames.honorList, honorList); + output.writeRepeatedUInt32(FieldNames.dailyActiveIds, dailyActiveIds); } if ((bitField0_ & 0x40000000) != 0) { - output.writeRepeatedMessage(FieldNames.res, res); + output.writeRepeatedUInt32(FieldNames.weeklyActiveIds, weeklyActiveIds); } if ((bitField0_ & 0x80000000) != 0) { - output.writeRepeatedMessage(FieldNames.items, items); + output.writeRepeatedUInt32(FieldNames.honorList, honorList); } if ((bitField1_ & 0x00000001) != 0) { - output.writeRepeatedMessage(FieldNames.chars, chars); + output.writeRepeatedMessage(FieldNames.res, res); } if ((bitField1_ & 0x00000002) != 0) { - output.writeRepeatedMessage(FieldNames.equipments, equipments); + output.writeRepeatedMessage(FieldNames.items, items); } if ((bitField1_ & 0x00000004) != 0) { - output.writeRepeatedMessage(FieldNames.regionBossLevels, regionBossLevels); + output.writeRepeatedMessage(FieldNames.chars, chars); } if ((bitField1_ & 0x00000008) != 0) { - output.writeRepeatedMessage(FieldNames.handbook, handbook); + output.writeRepeatedMessage(FieldNames.equipments, equipments); } if ((bitField1_ & 0x00000010) != 0) { - output.writeRepeatedMessage(FieldNames.titles, titles); + output.writeRepeatedMessage(FieldNames.regionBossLevels, regionBossLevels); } if ((bitField1_ & 0x00000020) != 0) { - output.writeRepeatedMessage(FieldNames.dailyInstances, dailyInstances); + output.writeRepeatedMessage(FieldNames.handbook, handbook); } if ((bitField1_ & 0x00000040) != 0) { - output.writeRepeatedMessage(FieldNames.dictionaries, dictionaries); + output.writeRepeatedMessage(FieldNames.titles, titles); } if ((bitField1_ & 0x00000080) != 0) { - output.writeRepeatedMessage(FieldNames.activities, activities); + output.writeRepeatedMessage(FieldNames.dailyInstances, dailyInstances); } if ((bitField1_ & 0x00000100) != 0) { - output.writeRepeatedMessage(FieldNames.discs, discs); + output.writeRepeatedMessage(FieldNames.dictionaries, dictionaries); } if ((bitField1_ & 0x00000200) != 0) { - output.writeRepeatedMessage(FieldNames.equipmentInstances, equipmentInstances); + output.writeRepeatedMessage(FieldNames.activities, activities); } if ((bitField1_ & 0x00000400) != 0) { - output.writeRepeatedMessage(FieldNames.skillInstances, skillInstances); + output.writeRepeatedMessage(FieldNames.discs, discs); } if ((bitField1_ & 0x00000800) != 0) { - output.writeRepeatedMessage(FieldNames.weekBossLevels, weekBossLevels); + output.writeRepeatedMessage(FieldNames.equipmentInstances, equipmentInstances); } if ((bitField1_ & 0x00001000) != 0) { - output.writeRepeatedMessage(FieldNames.charGemInstances, charGemInstances); + output.writeRepeatedMessage(FieldNames.skillInstances, skillInstances); } if ((bitField1_ & 0x00002000) != 0) { - output.writeRepeatedMessage(FieldNames.tutorialLevels, tutorialLevels); + output.writeRepeatedMessage(FieldNames.weekBossLevels, weekBossLevels); } if ((bitField1_ & 0x00004000) != 0) { - output.writeRepeatedMessage(FieldNames.assists, assists); + output.writeRepeatedMessage(FieldNames.charGemInstances, charGemInstances); } if ((bitField1_ & 0x00008000) != 0) { - output.writeRepeatedMessage(FieldNames.activityHonors, activityHonors); + output.writeRepeatedMessage(FieldNames.tutorialLevels, tutorialLevels); } if ((bitField1_ & 0x00010000) != 0) { - output.writeRepeatedMessage(FieldNames.personalityModels, personalityModels); + output.writeRepeatedMessage(FieldNames.assists, assists); } if ((bitField1_ & 0x00020000) != 0) { + output.writeRepeatedMessage(FieldNames.activityHonors, activityHonors); + } + if ((bitField1_ & 0x00040000) != 0) { + output.writeRepeatedMessage(FieldNames.personalityModels, personalityModels); + } + if ((bitField1_ & 0x00080000) != 0) { output.writeRepeatedMessage(FieldNames.honors, honors); } output.endObject(); @@ -4931,11 +5107,33 @@ public final class PlayerData { } break; } + case -1588912722: { + if (input.isAtField(FieldNames.huntPermit)) { + if (!input.trySkipNullValue()) { + input.readMessage(huntPermit); + bitField0_ |= 0x00200000; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1523246506: { + if (input.isAtField(FieldNames.traceRequest)) { + if (!input.trySkipNullValue()) { + input.readMessage(traceRequest); + bitField0_ |= 0x00400000; + } + } else { + input.skipUnknownField(); + } + break; + } case -1394833044: { if (input.isAtField(FieldNames.lastRead)) { if (!input.trySkipNullValue()) { input.readMessage(lastRead); - bitField0_ |= 0x00200000; + bitField0_ |= 0x00800000; } } else { input.skipUnknownField(); @@ -4946,7 +5144,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.achievements)) { if (!input.trySkipNullValue()) { input.readBytes(achievements); - bitField0_ |= 0x00400000; + bitField0_ |= 0x01000000; } } else { input.skipUnknownField(); @@ -4957,7 +5155,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.nextPackage)) { if (!input.trySkipNullValue()) { input.readBytes(nextPackage); - bitField0_ |= 0x00800000; + bitField0_ |= 0x02000000; } } else { input.skipUnknownField(); @@ -4968,7 +5166,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.rglPassedIds)) { if (!input.trySkipNullValue()) { input.readRepeatedUInt32(rglPassedIds); - bitField0_ |= 0x01000000; + bitField0_ |= 0x04000000; } } else { input.skipUnknownField(); @@ -4979,7 +5177,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.board)) { if (!input.trySkipNullValue()) { input.readRepeatedUInt32(board); - bitField0_ |= 0x02000000; + bitField0_ |= 0x08000000; } } else { input.skipUnknownField(); @@ -4990,7 +5188,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.datingCharIds)) { if (!input.trySkipNullValue()) { input.readRepeatedUInt32(datingCharIds); - bitField0_ |= 0x04000000; + bitField0_ |= 0x10000000; } } else { input.skipUnknownField(); @@ -5001,7 +5199,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.dailyActiveIds)) { if (!input.trySkipNullValue()) { input.readRepeatedUInt32(dailyActiveIds); - bitField0_ |= 0x08000000; + bitField0_ |= 0x20000000; } } else { input.skipUnknownField(); @@ -5012,7 +5210,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.weeklyActiveIds)) { if (!input.trySkipNullValue()) { input.readRepeatedUInt32(weeklyActiveIds); - bitField0_ |= 0x10000000; + bitField0_ |= 0x40000000; } } else { input.skipUnknownField(); @@ -5023,7 +5221,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.honorList)) { if (!input.trySkipNullValue()) { input.readRepeatedUInt32(honorList); - bitField0_ |= 0x20000000; + bitField0_ |= 0x80000000; } } else { input.skipUnknownField(); @@ -5034,7 +5232,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.res)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(res); - bitField0_ |= 0x40000000; + bitField1_ |= 0x00000001; } } else { input.skipUnknownField(); @@ -5045,7 +5243,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.items)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(items); - bitField0_ |= 0x80000000; + bitField1_ |= 0x00000002; } } else { input.skipUnknownField(); @@ -5056,7 +5254,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.chars)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(chars); - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000004; } } else { input.skipUnknownField(); @@ -5067,7 +5265,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.equipments)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(equipments); - bitField1_ |= 0x00000002; + bitField1_ |= 0x00000008; } } else { input.skipUnknownField(); @@ -5078,7 +5276,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.regionBossLevels)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(regionBossLevels); - bitField1_ |= 0x00000004; + bitField1_ |= 0x00000010; } } else { input.skipUnknownField(); @@ -5089,7 +5287,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.handbook)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(handbook); - bitField1_ |= 0x00000008; + bitField1_ |= 0x00000020; } } else { input.skipUnknownField(); @@ -5100,7 +5298,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.titles)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(titles); - bitField1_ |= 0x00000010; + bitField1_ |= 0x00000040; } } else { input.skipUnknownField(); @@ -5111,7 +5309,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.dailyInstances)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(dailyInstances); - bitField1_ |= 0x00000020; + bitField1_ |= 0x00000080; } } else { input.skipUnknownField(); @@ -5122,7 +5320,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.dictionaries)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(dictionaries); - bitField1_ |= 0x00000040; + bitField1_ |= 0x00000100; } } else { input.skipUnknownField(); @@ -5133,7 +5331,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.activities)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(activities); - bitField1_ |= 0x00000080; + bitField1_ |= 0x00000200; } } else { input.skipUnknownField(); @@ -5144,7 +5342,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.discs)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(discs); - bitField1_ |= 0x00000100; + bitField1_ |= 0x00000400; } } else { input.skipUnknownField(); @@ -5155,7 +5353,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.equipmentInstances)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(equipmentInstances); - bitField1_ |= 0x00000200; + bitField1_ |= 0x00000800; } } else { input.skipUnknownField(); @@ -5166,7 +5364,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.skillInstances)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(skillInstances); - bitField1_ |= 0x00000400; + bitField1_ |= 0x00001000; } } else { input.skipUnknownField(); @@ -5177,7 +5375,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.weekBossLevels)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(weekBossLevels); - bitField1_ |= 0x00000800; + bitField1_ |= 0x00002000; } } else { input.skipUnknownField(); @@ -5188,7 +5386,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.charGemInstances)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(charGemInstances); - bitField1_ |= 0x00001000; + bitField1_ |= 0x00004000; } } else { input.skipUnknownField(); @@ -5199,7 +5397,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.tutorialLevels)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(tutorialLevels); - bitField1_ |= 0x00002000; + bitField1_ |= 0x00008000; } } else { input.skipUnknownField(); @@ -5210,7 +5408,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.assists)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(assists); - bitField1_ |= 0x00004000; + bitField1_ |= 0x00010000; } } else { input.skipUnknownField(); @@ -5221,7 +5419,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.activityHonors)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(activityHonors); - bitField1_ |= 0x00008000; + bitField1_ |= 0x00020000; } } else { input.skipUnknownField(); @@ -5232,7 +5430,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.personalityModels)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(personalityModels); - bitField1_ |= 0x00010000; + bitField1_ |= 0x00040000; } } else { input.skipUnknownField(); @@ -5243,7 +5441,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.honors)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(honors); - bitField1_ |= 0x00020000; + bitField1_ |= 0x00080000; } } else { input.skipUnknownField(); @@ -5344,6 +5542,10 @@ public final class PlayerData { static final FieldName vampireSurvivorRecord = FieldName.forField("VampireSurvivorRecord"); + static final FieldName huntPermit = FieldName.forField("HuntPermit"); + + static final FieldName traceRequest = FieldName.forField("TraceRequest"); + static final FieldName lastRead = FieldName.forField("LastRead"); static final FieldName achievements = FieldName.forField("Achievements"); diff --git a/src/generated/main/emu/nebula/proto/Public.java b/src/generated/main/emu/nebula/proto/Public.java index 4279be3..23ce4ff 100644 --- a/src/generated/main/emu/nebula/proto/Public.java +++ b/src/generated/main/emu/nebula/proto/Public.java @@ -19933,6 +19933,11 @@ public final class Public { */ private final ScoreBossState scoreBoss = ScoreBossState.newInstance(); + /** + * optional .TraceHuntState TraceHunt = 23; + */ + private final TraceHuntState traceHunt = TraceHuntState.newInstance(); + /** * optional bytes NextPackage = 2047; */ @@ -20755,12 +20760,69 @@ public final class Public { return this; } + /** + * optional .TraceHuntState TraceHunt = 23; + * @return whether the traceHunt field is set + */ + public boolean hasTraceHunt() { + return (bitField0_ & 0x00010000) != 0; + } + + /** + * optional .TraceHuntState TraceHunt = 23; + * @return this + */ + public StateInfo clearTraceHunt() { + bitField0_ &= ~0x00010000; + traceHunt.clear(); + return this; + } + + /** + * optional .TraceHuntState TraceHunt = 23; + * + * This 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 #getMutableTraceHunt()} if you want to modify it. + * + * @return internal storage object for reading + */ + public TraceHuntState getTraceHunt() { + return traceHunt; + } + + /** + * optional .TraceHuntState TraceHunt = 23; + * + * 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 TraceHuntState getMutableTraceHunt() { + bitField0_ |= 0x00010000; + return traceHunt; + } + + /** + * optional .TraceHuntState TraceHunt = 23; + * @param value the traceHunt to set + * @return this + */ + public StateInfo setTraceHunt(final TraceHuntState value) { + bitField0_ |= 0x00010000; + traceHunt.copyFrom(value); + return this; + } + /** * optional bytes NextPackage = 2047; * @return whether the nextPackage field is set */ public boolean hasNextPackage() { - return (bitField0_ & 0x00010000) != 0; + return (bitField0_ & 0x00020000) != 0; } /** @@ -20768,7 +20830,7 @@ public final class Public { * @return this */ public StateInfo clearNextPackage() { - bitField0_ &= ~0x00010000; + bitField0_ &= ~0x00020000; nextPackage.clear(); return this; } @@ -20797,7 +20859,7 @@ public final class Public { * @return internal storage object for modifications */ public RepeatedByte getMutableNextPackage() { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; return nextPackage; } @@ -20807,7 +20869,7 @@ public final class Public { * @return this */ public StateInfo addNextPackage(final byte value) { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; nextPackage.add(value); return this; } @@ -20818,7 +20880,7 @@ public final class Public { * @return this */ public StateInfo addAllNextPackage(final byte... values) { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; nextPackage.addAll(values); return this; } @@ -20829,7 +20891,7 @@ public final class Public { * @return this */ public StateInfo setNextPackage(final byte... values) { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; nextPackage.copyFrom(values); return this; } @@ -20839,7 +20901,7 @@ public final class Public { * @return whether the charAdvanceRewards field is set */ public boolean hasCharAdvanceRewards() { - return (bitField0_ & 0x00020000) != 0; + return (bitField0_ & 0x00040000) != 0; } /** @@ -20847,7 +20909,7 @@ public final class Public { * @return this */ public StateInfo clearCharAdvanceRewards() { - bitField0_ &= ~0x00020000; + bitField0_ &= ~0x00040000; charAdvanceRewards.clear(); return this; } @@ -20876,7 +20938,7 @@ public final class Public { * @return internal storage object for modifications */ public RepeatedMessage getMutableCharAdvanceRewards() { - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; return charAdvanceRewards; } @@ -20886,7 +20948,7 @@ public final class Public { * @return this */ public StateInfo addCharAdvanceRewards(final CharAdvanceRewardState value) { - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; charAdvanceRewards.add(value); return this; } @@ -20897,7 +20959,7 @@ public final class Public { * @return this */ public StateInfo addAllCharAdvanceRewards(final CharAdvanceRewardState... values) { - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; charAdvanceRewards.addAll(values); return this; } @@ -20907,7 +20969,7 @@ public final class Public { * @return whether the charAffinityRewards field is set */ public boolean hasCharAffinityRewards() { - return (bitField0_ & 0x00040000) != 0; + return (bitField0_ & 0x00080000) != 0; } /** @@ -20915,7 +20977,7 @@ public final class Public { * @return this */ public StateInfo clearCharAffinityRewards() { - bitField0_ &= ~0x00040000; + bitField0_ &= ~0x00080000; charAffinityRewards.clear(); return this; } @@ -20944,7 +21006,7 @@ public final class Public { * @return internal storage object for modifications */ public RepeatedMessage getMutableCharAffinityRewards() { - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; return charAffinityRewards; } @@ -20954,7 +21016,7 @@ public final class Public { * @return this */ public StateInfo addCharAffinityRewards(final CharAffinityRewardState value) { - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; charAffinityRewards.add(value); return this; } @@ -20965,7 +21027,7 @@ public final class Public { * @return this */ public StateInfo addAllCharAffinityRewards(final CharAffinityRewardState... values) { - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; charAffinityRewards.addAll(values); return this; } @@ -20975,7 +21037,7 @@ public final class Public { * @return whether the activities field is set */ public boolean hasActivities() { - return (bitField0_ & 0x00080000) != 0; + return (bitField0_ & 0x00100000) != 0; } /** @@ -20983,7 +21045,7 @@ public final class Public { * @return this */ public StateInfo clearActivities() { - bitField0_ &= ~0x00080000; + bitField0_ &= ~0x00100000; activities.clear(); return this; } @@ -21012,7 +21074,7 @@ public final class Public { * @return internal storage object for modifications */ public RepeatedMessage getMutableActivities() { - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; return activities; } @@ -21022,7 +21084,7 @@ public final class Public { * @return this */ public StateInfo addActivities(final ActivityState value) { - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; activities.add(value); return this; } @@ -21033,7 +21095,7 @@ public final class Public { * @return this */ public StateInfo addAllActivities(final ActivityState... values) { - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; activities.addAll(values); return this; } @@ -21059,6 +21121,7 @@ public final class Public { starTower.copyFrom(other.starTower); starTowerBook.copyFrom(other.starTowerBook); scoreBoss.copyFrom(other.scoreBoss); + traceHunt.copyFrom(other.traceHunt); nextPackage.copyFrom(other.nextPackage); charAdvanceRewards.copyFrom(other.charAdvanceRewards); charAffinityRewards.copyFrom(other.charAffinityRewards); @@ -21121,6 +21184,9 @@ public final class Public { if (other.hasScoreBoss()) { getMutableScoreBoss().mergeFrom(other.scoreBoss); } + if (other.hasTraceHunt()) { + getMutableTraceHunt().mergeFrom(other.traceHunt); + } if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); } @@ -21159,6 +21225,7 @@ public final class Public { starTower.clear(); starTowerBook.clear(); scoreBoss.clear(); + traceHunt.clear(); nextPackage.clear(); charAdvanceRewards.clear(); charAffinityRewards.clear(); @@ -21183,6 +21250,7 @@ public final class Public { starTower.clearQuick(); starTowerBook.clearQuick(); scoreBoss.clearQuick(); + traceHunt.clearQuick(); nextPackage.clear(); charAdvanceRewards.clearQuick(); charAffinityRewards.clearQuick(); @@ -21216,6 +21284,7 @@ public final class Public { && (!hasStarTower() || starTower.equals(other.starTower)) && (!hasStarTowerBook() || starTowerBook.equals(other.starTowerBook)) && (!hasScoreBoss() || scoreBoss.equals(other.scoreBoss)) + && (!hasTraceHunt() || traceHunt.equals(other.traceHunt)) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) && (!hasCharAdvanceRewards() || charAdvanceRewards.equals(other.charAdvanceRewards)) && (!hasCharAffinityRewards() || charAffinityRewards.equals(other.charAffinityRewards)) @@ -21289,22 +21358,26 @@ public final class Public { output.writeMessageNoTag(scoreBoss); } if ((bitField0_ & 0x00010000) != 0) { + output.writeRawLittleEndian16((short) 442); + output.writeMessageNoTag(traceHunt); + } + if ((bitField0_ & 0x00020000) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); } - if ((bitField0_ & 0x00020000) != 0) { + if ((bitField0_ & 0x00040000) != 0) { for (int i = 0; i < charAdvanceRewards.length(); i++) { output.writeRawByte((byte) 50); output.writeMessageNoTag(charAdvanceRewards.get(i)); } } - if ((bitField0_ & 0x00040000) != 0) { + if ((bitField0_ & 0x00080000) != 0) { for (int i = 0; i < charAffinityRewards.length(); i++) { output.writeRawByte((byte) 66); output.writeMessageNoTag(charAffinityRewards.get(i)); } } - if ((bitField0_ & 0x00080000) != 0) { + if ((bitField0_ & 0x00100000) != 0) { for (int i = 0; i < activities.length(); i++) { output.writeRawLittleEndian16((short) 426); output.writeMessageNoTag(activities.get(i)); @@ -21364,15 +21437,18 @@ public final class Public { size += 2 + ProtoSink.computeMessageSizeNoTag(scoreBoss); } if ((bitField0_ & 0x00010000) != 0) { - size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + size += 2 + ProtoSink.computeMessageSizeNoTag(traceHunt); } if ((bitField0_ & 0x00020000) != 0) { - size += (1 * charAdvanceRewards.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(charAdvanceRewards); + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); } if ((bitField0_ & 0x00040000) != 0) { - size += (1 * charAffinityRewards.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(charAffinityRewards); + size += (1 * charAdvanceRewards.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(charAdvanceRewards); } if ((bitField0_ & 0x00080000) != 0) { + size += (1 * charAffinityRewards.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(charAffinityRewards); + } + if ((bitField0_ & 0x00100000) != 0) { size += (2 * activities.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(activities); } return size; @@ -21525,6 +21601,15 @@ public final class Public { input.readMessage(scoreBoss); bitField0_ |= 0x00008000; tag = input.readTag(); + if (tag != 186) { + break; + } + } + case 186: { + // traceHunt + input.readMessage(traceHunt); + bitField0_ |= 0x00010000; + tag = input.readTag(); if (tag != 16378) { break; } @@ -21532,7 +21617,7 @@ public final class Public { case 16378: { // nextPackage input.readBytes(nextPackage); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; tag = input.readTag(); if (tag != 50) { break; @@ -21541,7 +21626,7 @@ public final class Public { case 50: { // charAdvanceRewards tag = input.readRepeatedMessage(charAdvanceRewards, tag); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; if (tag != 66) { break; } @@ -21549,7 +21634,7 @@ public final class Public { case 66: { // charAffinityRewards tag = input.readRepeatedMessage(charAffinityRewards, tag); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; if (tag != 170) { break; } @@ -21557,7 +21642,7 @@ public final class Public { case 170: { // activities tag = input.readRepeatedMessage(activities, tag); - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; if (tag != 0) { break; } @@ -21628,15 +21713,18 @@ public final class Public { output.writeMessage(FieldNames.scoreBoss, scoreBoss); } if ((bitField0_ & 0x00010000) != 0) { - output.writeBytes(FieldNames.nextPackage, nextPackage); + output.writeMessage(FieldNames.traceHunt, traceHunt); } if ((bitField0_ & 0x00020000) != 0) { - output.writeRepeatedMessage(FieldNames.charAdvanceRewards, charAdvanceRewards); + output.writeBytes(FieldNames.nextPackage, nextPackage); } if ((bitField0_ & 0x00040000) != 0) { - output.writeRepeatedMessage(FieldNames.charAffinityRewards, charAffinityRewards); + output.writeRepeatedMessage(FieldNames.charAdvanceRewards, charAdvanceRewards); } if ((bitField0_ & 0x00080000) != 0) { + output.writeRepeatedMessage(FieldNames.charAffinityRewards, charAffinityRewards); + } + if ((bitField0_ & 0x00100000) != 0) { output.writeRepeatedMessage(FieldNames.activities, activities); } output.endObject(); @@ -21825,11 +21913,22 @@ public final class Public { } break; } + case -1567070632: { + if (input.isAtField(FieldNames.traceHunt)) { + if (!input.trySkipNullValue()) { + input.readMessage(traceHunt); + bitField0_ |= 0x00010000; + } + } else { + input.skipUnknownField(); + } + break; + } case -2082324045: { if (input.isAtField(FieldNames.nextPackage)) { if (!input.trySkipNullValue()) { input.readBytes(nextPackage); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; } } else { input.skipUnknownField(); @@ -21840,7 +21939,7 @@ public final class Public { if (input.isAtField(FieldNames.charAdvanceRewards)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(charAdvanceRewards); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; } } else { input.skipUnknownField(); @@ -21851,7 +21950,7 @@ public final class Public { if (input.isAtField(FieldNames.charAffinityRewards)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(charAffinityRewards); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; } } else { input.skipUnknownField(); @@ -21862,7 +21961,7 @@ public final class Public { if (input.isAtField(FieldNames.activities)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(activities); - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; } } else { input.skipUnknownField(); @@ -21953,6 +22052,8 @@ public final class Public { static final FieldName scoreBoss = FieldName.forField("ScoreBoss"); + static final FieldName traceHunt = FieldName.forField("TraceHunt"); + static final FieldName nextPackage = FieldName.forField("NextPackage"); static final FieldName charAdvanceRewards = FieldName.forField("CharAdvanceRewards"); @@ -86826,4 +86927,5563 @@ public final class Public { static final FieldName stories = FieldName.forField("Stories"); } } + + /** + * Protobuf type {@code ActivityShare} + */ + public static final class ActivityShare extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional bytes State = 1; + */ + private final RepeatedByte state = RepeatedByte.newEmptyInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private ActivityShare() { + } + + /** + * @return a new empty instance of {@code ActivityShare} + */ + public static ActivityShare newInstance() { + return new ActivityShare(); + } + + /** + * optional bytes State = 1; + * @return whether the state field is set + */ + public boolean hasState() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional bytes State = 1; + * @return this + */ + public ActivityShare clearState() { + bitField0_ &= ~0x00000001; + state.clear(); + return this; + } + + /** + * optional bytes State = 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 #getMutableState()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedByte getState() { + return state; + } + + /** + * optional bytes State = 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 RepeatedByte getMutableState() { + bitField0_ |= 0x00000001; + return state; + } + + /** + * optional bytes State = 1; + * @param value the state to add + * @return this + */ + public ActivityShare addState(final byte value) { + bitField0_ |= 0x00000001; + state.add(value); + return this; + } + + /** + * optional bytes State = 1; + * @param values the state to add + * @return this + */ + public ActivityShare addAllState(final byte... values) { + bitField0_ |= 0x00000001; + state.addAll(values); + return this; + } + + /** + * optional bytes State = 1; + * @param values the state to set + * @return this + */ + public ActivityShare setState(final byte... values) { + bitField0_ |= 0x00000001; + state.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 ActivityShare 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 ActivityShare addNextPackage(final byte value) { + bitField0_ |= 0x00000002; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public ActivityShare addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public ActivityShare setNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.copyFrom(values); + return this; + } + + @Override + public ActivityShare copyFrom(final ActivityShare other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + state.copyFrom(other.state); + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public ActivityShare mergeFrom(final ActivityShare other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasState()) { + getMutableState().copyFrom(other.state); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public ActivityShare clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + state.clear(); + nextPackage.clear(); + return this; + } + + @Override + public ActivityShare clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + state.clear(); + nextPackage.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ActivityShare)) { + return false; + } + ActivityShare other = (ActivityShare) o; + return bitField0_ == other.bitField0_ + && (!hasState() || state.equals(other.state)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 10); + output.writeBytesNoTag(state); + } + 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.computeBytesSizeNoTag(state); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ActivityShare mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 10: { + // state + input.readBytes(state); + 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.writeBytes(FieldNames.state, state); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public ActivityShare mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 80204913: { + if (input.isAtField(FieldNames.state)) { + if (!input.trySkipNullValue()) { + input.readBytes(state); + 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 ActivityShare clone() { + return new ActivityShare().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ActivityShare parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ActivityShare(), data).checkInitialized(); + } + + public static ActivityShare parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ActivityShare(), input).checkInitialized(); + } + + public static ActivityShare parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ActivityShare(), input).checkInitialized(); + } + + /** + * @return factory for creating ActivityShare messages + */ + public static MessageFactory getFactory() { + return ActivityShareFactory.INSTANCE; + } + + private enum ActivityShareFactory implements MessageFactory { + INSTANCE; + + @Override + public ActivityShare create() { + return ActivityShare.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName state = FieldName.forField("State"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code TraceHuntBossCollection} + */ + public static final class TraceHuntBossCollection extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Id = 1; + */ + private int id; + + /** + * optional uint32 HuntCount = 2; + */ + private int huntCount; + + /** + * optional uint32 AssistHuntCount = 3; + */ + private int assistHuntCount; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private TraceHuntBossCollection() { + } + + /** + * @return a new empty instance of {@code TraceHuntBossCollection} + */ + public static TraceHuntBossCollection newInstance() { + return new TraceHuntBossCollection(); + } + + /** + * 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 TraceHuntBossCollection 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 TraceHuntBossCollection setId(final int value) { + bitField0_ |= 0x00000001; + id = value; + return this; + } + + /** + * optional uint32 HuntCount = 2; + * @return whether the huntCount field is set + */ + public boolean hasHuntCount() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 HuntCount = 2; + * @return this + */ + public TraceHuntBossCollection clearHuntCount() { + bitField0_ &= ~0x00000002; + huntCount = 0; + return this; + } + + /** + * optional uint32 HuntCount = 2; + * @return the huntCount + */ + public int getHuntCount() { + return huntCount; + } + + /** + * optional uint32 HuntCount = 2; + * @param value the huntCount to set + * @return this + */ + public TraceHuntBossCollection setHuntCount(final int value) { + bitField0_ |= 0x00000002; + huntCount = value; + return this; + } + + /** + * optional uint32 AssistHuntCount = 3; + * @return whether the assistHuntCount field is set + */ + public boolean hasAssistHuntCount() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 AssistHuntCount = 3; + * @return this + */ + public TraceHuntBossCollection clearAssistHuntCount() { + bitField0_ &= ~0x00000004; + assistHuntCount = 0; + return this; + } + + /** + * optional uint32 AssistHuntCount = 3; + * @return the assistHuntCount + */ + public int getAssistHuntCount() { + return assistHuntCount; + } + + /** + * optional uint32 AssistHuntCount = 3; + * @param value the assistHuntCount to set + * @return this + */ + public TraceHuntBossCollection setAssistHuntCount(final int value) { + bitField0_ |= 0x00000004; + assistHuntCount = 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 TraceHuntBossCollection 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 TraceHuntBossCollection addNextPackage(final byte value) { + bitField0_ |= 0x00000008; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public TraceHuntBossCollection addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public TraceHuntBossCollection setNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.copyFrom(values); + return this; + } + + @Override + public TraceHuntBossCollection copyFrom(final TraceHuntBossCollection other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + id = other.id; + huntCount = other.huntCount; + assistHuntCount = other.assistHuntCount; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public TraceHuntBossCollection mergeFrom(final TraceHuntBossCollection other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasId()) { + setId(other.id); + } + if (other.hasHuntCount()) { + setHuntCount(other.huntCount); + } + if (other.hasAssistHuntCount()) { + setAssistHuntCount(other.assistHuntCount); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public TraceHuntBossCollection clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + id = 0; + huntCount = 0; + assistHuntCount = 0; + nextPackage.clear(); + return this; + } + + @Override + public TraceHuntBossCollection 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 TraceHuntBossCollection)) { + return false; + } + TraceHuntBossCollection other = (TraceHuntBossCollection) o; + return bitField0_ == other.bitField0_ + && (!hasId() || id == other.id) + && (!hasHuntCount() || huntCount == other.huntCount) + && (!hasAssistHuntCount() || assistHuntCount == other.assistHuntCount) + && (!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(huntCount); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(assistHuntCount); + } + 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(huntCount); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(assistHuntCount); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public TraceHuntBossCollection 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: { + // huntCount + huntCount = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // assistHuntCount + assistHuntCount = 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.huntCount, huntCount); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.assistHuntCount, assistHuntCount); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public TraceHuntBossCollection 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 -1309886180: { + if (input.isAtField(FieldNames.huntCount)) { + if (!input.trySkipNullValue()) { + huntCount = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -637496141: { + if (input.isAtField(FieldNames.assistHuntCount)) { + if (!input.trySkipNullValue()) { + assistHuntCount = 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 TraceHuntBossCollection clone() { + return new TraceHuntBossCollection().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static TraceHuntBossCollection parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new TraceHuntBossCollection(), data).checkInitialized(); + } + + public static TraceHuntBossCollection parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new TraceHuntBossCollection(), input).checkInitialized(); + } + + public static TraceHuntBossCollection parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new TraceHuntBossCollection(), input).checkInitialized(); + } + + /** + * @return factory for creating TraceHuntBossCollection messages + */ + public static MessageFactory getFactory() { + return TraceHuntBossCollectionFactory.INSTANCE; + } + + private enum TraceHuntBossCollectionFactory implements MessageFactory { + INSTANCE; + + @Override + public TraceHuntBossCollection create() { + return TraceHuntBossCollection.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName id = FieldName.forField("Id"); + + static final FieldName huntCount = FieldName.forField("HuntCount"); + + static final FieldName assistHuntCount = FieldName.forField("AssistHuntCount"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code TraceHuntLogEntry} + */ + public static final class TraceHuntLogEntry extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Tid = 1; + */ + private int tid; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated string args = 2; + */ + private final RepeatedString args = RepeatedString.newEmptyInstance(); + + private TraceHuntLogEntry() { + } + + /** + * @return a new empty instance of {@code TraceHuntLogEntry} + */ + public static TraceHuntLogEntry newInstance() { + return new TraceHuntLogEntry(); + } + + /** + * optional uint32 Tid = 1; + * @return whether the tid field is set + */ + public boolean hasTid() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 Tid = 1; + * @return this + */ + public TraceHuntLogEntry clearTid() { + bitField0_ &= ~0x00000001; + tid = 0; + return this; + } + + /** + * optional uint32 Tid = 1; + * @return the tid + */ + public int getTid() { + return tid; + } + + /** + * optional uint32 Tid = 1; + * @param value the tid to set + * @return this + */ + public TraceHuntLogEntry setTid(final int value) { + bitField0_ |= 0x00000001; + tid = 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 TraceHuntLogEntry 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 TraceHuntLogEntry addNextPackage(final byte value) { + bitField0_ |= 0x00000002; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public TraceHuntLogEntry addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public TraceHuntLogEntry setNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated string args = 2; + * @return whether the args field is set + */ + public boolean hasArgs() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated string args = 2; + * @return this + */ + public TraceHuntLogEntry clearArgs() { + bitField0_ &= ~0x00000004; + args.clear(); + return this; + } + + /** + * repeated string args = 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 #getMutableArgs()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedString getArgs() { + return args; + } + + /** + * repeated string args = 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 RepeatedString getMutableArgs() { + bitField0_ |= 0x00000004; + return args; + } + + /** + * repeated string args = 2; + * @param value the args to add + * @return this + */ + public TraceHuntLogEntry addArgs(final CharSequence value) { + bitField0_ |= 0x00000004; + args.add(value); + return this; + } + + /** + * repeated string args = 2; + * @param values the args to add + * @return this + */ + public TraceHuntLogEntry addAllArgs(final CharSequence... values) { + bitField0_ |= 0x00000004; + args.addAll(values); + return this; + } + + @Override + public TraceHuntLogEntry copyFrom(final TraceHuntLogEntry other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + tid = other.tid; + nextPackage.copyFrom(other.nextPackage); + args.copyFrom(other.args); + } + return this; + } + + @Override + public TraceHuntLogEntry mergeFrom(final TraceHuntLogEntry other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasTid()) { + setTid(other.tid); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasArgs()) { + getMutableArgs().addAll(other.args); + } + return this; + } + + @Override + public TraceHuntLogEntry clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + tid = 0; + nextPackage.clear(); + args.clear(); + return this; + } + + @Override + public TraceHuntLogEntry clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + args.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof TraceHuntLogEntry)) { + return false; + } + TraceHuntLogEntry other = (TraceHuntLogEntry) o; + return bitField0_ == other.bitField0_ + && (!hasTid() || tid == other.tid) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasArgs() || args.equals(other.args)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(tid); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < args.length(); i++) { + output.writeRawByte((byte) 18); + output.writeStringNoTag(args.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(tid); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * args.length()) + ProtoSink.computeRepeatedStringSizeNoTag(args); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public TraceHuntLogEntry mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // tid + tid = 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: { + // args + tag = input.readRepeatedString(args, 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.writeUInt32(FieldNames.tid, tid); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedString(FieldNames.args, args); + } + output.endObject(); + } + + @Override + public TraceHuntLogEntry mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 84079: { + if (input.isAtField(FieldNames.tid)) { + if (!input.trySkipNullValue()) { + tid = 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 3002589: { + if (input.isAtField(FieldNames.args)) { + if (!input.trySkipNullValue()) { + input.readRepeatedString(args); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public TraceHuntLogEntry clone() { + return new TraceHuntLogEntry().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static TraceHuntLogEntry parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new TraceHuntLogEntry(), data).checkInitialized(); + } + + public static TraceHuntLogEntry parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new TraceHuntLogEntry(), input).checkInitialized(); + } + + public static TraceHuntLogEntry parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new TraceHuntLogEntry(), input).checkInitialized(); + } + + /** + * @return factory for creating TraceHuntLogEntry messages + */ + public static MessageFactory getFactory() { + return TraceHuntLogEntryFactory.INSTANCE; + } + + private enum TraceHuntLogEntryFactory implements MessageFactory { + INSTANCE; + + @Override + public TraceHuntLogEntry create() { + return TraceHuntLogEntry.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName tid = FieldName.forField("Tid"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName args = FieldName.forField("args"); + } + } + + /** + * Protobuf type {@code TraceHuntItemInfo} + */ + public static final class TraceHuntItemInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Tid = 1; + */ + private int tid; + + /** + * optional uint32 EnergyOverflow = 2; + */ + private int energyOverflow; + + /** + * optional uint32 ConvertedCount = 3; + */ + private int convertedCount; + + /** + * optional uint32 GrantedCount = 4; + */ + private int grantedCount; + + /** + * optional uint32 DailyCount = 5; + */ + private int dailyCount; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private TraceHuntItemInfo() { + } + + /** + * @return a new empty instance of {@code TraceHuntItemInfo} + */ + public static TraceHuntItemInfo newInstance() { + return new TraceHuntItemInfo(); + } + + /** + * optional uint32 Tid = 1; + * @return whether the tid field is set + */ + public boolean hasTid() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 Tid = 1; + * @return this + */ + public TraceHuntItemInfo clearTid() { + bitField0_ &= ~0x00000001; + tid = 0; + return this; + } + + /** + * optional uint32 Tid = 1; + * @return the tid + */ + public int getTid() { + return tid; + } + + /** + * optional uint32 Tid = 1; + * @param value the tid to set + * @return this + */ + public TraceHuntItemInfo setTid(final int value) { + bitField0_ |= 0x00000001; + tid = value; + return this; + } + + /** + * optional uint32 EnergyOverflow = 2; + * @return whether the energyOverflow field is set + */ + public boolean hasEnergyOverflow() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 EnergyOverflow = 2; + * @return this + */ + public TraceHuntItemInfo clearEnergyOverflow() { + bitField0_ &= ~0x00000002; + energyOverflow = 0; + return this; + } + + /** + * optional uint32 EnergyOverflow = 2; + * @return the energyOverflow + */ + public int getEnergyOverflow() { + return energyOverflow; + } + + /** + * optional uint32 EnergyOverflow = 2; + * @param value the energyOverflow to set + * @return this + */ + public TraceHuntItemInfo setEnergyOverflow(final int value) { + bitField0_ |= 0x00000002; + energyOverflow = value; + return this; + } + + /** + * optional uint32 ConvertedCount = 3; + * @return whether the convertedCount field is set + */ + public boolean hasConvertedCount() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 ConvertedCount = 3; + * @return this + */ + public TraceHuntItemInfo clearConvertedCount() { + bitField0_ &= ~0x00000004; + convertedCount = 0; + return this; + } + + /** + * optional uint32 ConvertedCount = 3; + * @return the convertedCount + */ + public int getConvertedCount() { + return convertedCount; + } + + /** + * optional uint32 ConvertedCount = 3; + * @param value the convertedCount to set + * @return this + */ + public TraceHuntItemInfo setConvertedCount(final int value) { + bitField0_ |= 0x00000004; + convertedCount = value; + return this; + } + + /** + * optional uint32 GrantedCount = 4; + * @return whether the grantedCount field is set + */ + public boolean hasGrantedCount() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 GrantedCount = 4; + * @return this + */ + public TraceHuntItemInfo clearGrantedCount() { + bitField0_ &= ~0x00000008; + grantedCount = 0; + return this; + } + + /** + * optional uint32 GrantedCount = 4; + * @return the grantedCount + */ + public int getGrantedCount() { + return grantedCount; + } + + /** + * optional uint32 GrantedCount = 4; + * @param value the grantedCount to set + * @return this + */ + public TraceHuntItemInfo setGrantedCount(final int value) { + bitField0_ |= 0x00000008; + grantedCount = value; + return this; + } + + /** + * optional uint32 DailyCount = 5; + * @return whether the dailyCount field is set + */ + public boolean hasDailyCount() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 DailyCount = 5; + * @return this + */ + public TraceHuntItemInfo clearDailyCount() { + bitField0_ &= ~0x00000010; + dailyCount = 0; + return this; + } + + /** + * optional uint32 DailyCount = 5; + * @return the dailyCount + */ + public int getDailyCount() { + return dailyCount; + } + + /** + * optional uint32 DailyCount = 5; + * @param value the dailyCount to set + * @return this + */ + public TraceHuntItemInfo setDailyCount(final int value) { + bitField0_ |= 0x00000010; + dailyCount = 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 TraceHuntItemInfo 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 TraceHuntItemInfo addNextPackage(final byte value) { + bitField0_ |= 0x00000020; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public TraceHuntItemInfo addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000020; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public TraceHuntItemInfo setNextPackage(final byte... values) { + bitField0_ |= 0x00000020; + nextPackage.copyFrom(values); + return this; + } + + @Override + public TraceHuntItemInfo copyFrom(final TraceHuntItemInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + tid = other.tid; + energyOverflow = other.energyOverflow; + convertedCount = other.convertedCount; + grantedCount = other.grantedCount; + dailyCount = other.dailyCount; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public TraceHuntItemInfo mergeFrom(final TraceHuntItemInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasTid()) { + setTid(other.tid); + } + if (other.hasEnergyOverflow()) { + setEnergyOverflow(other.energyOverflow); + } + if (other.hasConvertedCount()) { + setConvertedCount(other.convertedCount); + } + if (other.hasGrantedCount()) { + setGrantedCount(other.grantedCount); + } + if (other.hasDailyCount()) { + setDailyCount(other.dailyCount); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public TraceHuntItemInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + tid = 0; + energyOverflow = 0; + convertedCount = 0; + grantedCount = 0; + dailyCount = 0; + nextPackage.clear(); + return this; + } + + @Override + public TraceHuntItemInfo 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 TraceHuntItemInfo)) { + return false; + } + TraceHuntItemInfo other = (TraceHuntItemInfo) o; + return bitField0_ == other.bitField0_ + && (!hasTid() || tid == other.tid) + && (!hasEnergyOverflow() || energyOverflow == other.energyOverflow) + && (!hasConvertedCount() || convertedCount == other.convertedCount) + && (!hasGrantedCount() || grantedCount == other.grantedCount) + && (!hasDailyCount() || dailyCount == other.dailyCount) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(tid); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(energyOverflow); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(convertedCount); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(grantedCount); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(dailyCount); + } + 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.computeUInt32SizeNoTag(tid); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(energyOverflow); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(convertedCount); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(grantedCount); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(dailyCount); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public TraceHuntItemInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // tid + tid = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // energyOverflow + energyOverflow = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // convertedCount + convertedCount = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // grantedCount + grantedCount = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // dailyCount + dailyCount = input.readUInt32(); + 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.writeUInt32(FieldNames.tid, tid); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.energyOverflow, energyOverflow); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.convertedCount, convertedCount); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.grantedCount, grantedCount); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.dailyCount, dailyCount); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public TraceHuntItemInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 84079: { + if (input.isAtField(FieldNames.tid)) { + if (!input.trySkipNullValue()) { + tid = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 894635722: { + if (input.isAtField(FieldNames.energyOverflow)) { + if (!input.trySkipNullValue()) { + energyOverflow = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2121584317: { + if (input.isAtField(FieldNames.convertedCount)) { + if (!input.trySkipNullValue()) { + convertedCount = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1421785908: { + if (input.isAtField(FieldNames.grantedCount)) { + if (!input.trySkipNullValue()) { + grantedCount = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -800373098: { + if (input.isAtField(FieldNames.dailyCount)) { + if (!input.trySkipNullValue()) { + dailyCount = input.readUInt32(); + 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 TraceHuntItemInfo clone() { + return new TraceHuntItemInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static TraceHuntItemInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new TraceHuntItemInfo(), data).checkInitialized(); + } + + public static TraceHuntItemInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new TraceHuntItemInfo(), input).checkInitialized(); + } + + public static TraceHuntItemInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new TraceHuntItemInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating TraceHuntItemInfo messages + */ + public static MessageFactory getFactory() { + return TraceHuntItemInfoFactory.INSTANCE; + } + + private enum TraceHuntItemInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public TraceHuntItemInfo create() { + return TraceHuntItemInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName tid = FieldName.forField("Tid"); + + static final FieldName energyOverflow = FieldName.forField("EnergyOverflow"); + + static final FieldName convertedCount = FieldName.forField("ConvertedCount"); + + static final FieldName grantedCount = FieldName.forField("GrantedCount"); + + static final FieldName dailyCount = FieldName.forField("DailyCount"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code TraceHuntItem} + */ + public static final class TraceHuntItem extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional int32 PointQty = 2; + */ + private int pointQty; + + /** + * optional int32 ConvertQty = 3; + */ + private int convertQty; + + /** + * optional int32 GrantQty = 4; + */ + private int grantQty; + + /** + * optional uint32 Tid = 1; + */ + private int tid; + + /** + * optional uint32 DailyCount = 5; + */ + private int dailyCount; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private TraceHuntItem() { + } + + /** + * @return a new empty instance of {@code TraceHuntItem} + */ + public static TraceHuntItem newInstance() { + return new TraceHuntItem(); + } + + /** + * optional int32 PointQty = 2; + * @return whether the pointQty field is set + */ + public boolean hasPointQty() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional int32 PointQty = 2; + * @return this + */ + public TraceHuntItem clearPointQty() { + bitField0_ &= ~0x00000001; + pointQty = 0; + return this; + } + + /** + * optional int32 PointQty = 2; + * @return the pointQty + */ + public int getPointQty() { + return pointQty; + } + + /** + * optional int32 PointQty = 2; + * @param value the pointQty to set + * @return this + */ + public TraceHuntItem setPointQty(final int value) { + bitField0_ |= 0x00000001; + pointQty = value; + return this; + } + + /** + * optional int32 ConvertQty = 3; + * @return whether the convertQty field is set + */ + public boolean hasConvertQty() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional int32 ConvertQty = 3; + * @return this + */ + public TraceHuntItem clearConvertQty() { + bitField0_ &= ~0x00000002; + convertQty = 0; + return this; + } + + /** + * optional int32 ConvertQty = 3; + * @return the convertQty + */ + public int getConvertQty() { + return convertQty; + } + + /** + * optional int32 ConvertQty = 3; + * @param value the convertQty to set + * @return this + */ + public TraceHuntItem setConvertQty(final int value) { + bitField0_ |= 0x00000002; + convertQty = value; + return this; + } + + /** + * optional int32 GrantQty = 4; + * @return whether the grantQty field is set + */ + public boolean hasGrantQty() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional int32 GrantQty = 4; + * @return this + */ + public TraceHuntItem clearGrantQty() { + bitField0_ &= ~0x00000004; + grantQty = 0; + return this; + } + + /** + * optional int32 GrantQty = 4; + * @return the grantQty + */ + public int getGrantQty() { + return grantQty; + } + + /** + * optional int32 GrantQty = 4; + * @param value the grantQty to set + * @return this + */ + public TraceHuntItem setGrantQty(final int value) { + bitField0_ |= 0x00000004; + grantQty = value; + return this; + } + + /** + * optional uint32 Tid = 1; + * @return whether the tid field is set + */ + public boolean hasTid() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 Tid = 1; + * @return this + */ + public TraceHuntItem clearTid() { + bitField0_ &= ~0x00000008; + tid = 0; + return this; + } + + /** + * optional uint32 Tid = 1; + * @return the tid + */ + public int getTid() { + return tid; + } + + /** + * optional uint32 Tid = 1; + * @param value the tid to set + * @return this + */ + public TraceHuntItem setTid(final int value) { + bitField0_ |= 0x00000008; + tid = value; + return this; + } + + /** + * optional uint32 DailyCount = 5; + * @return whether the dailyCount field is set + */ + public boolean hasDailyCount() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 DailyCount = 5; + * @return this + */ + public TraceHuntItem clearDailyCount() { + bitField0_ &= ~0x00000010; + dailyCount = 0; + return this; + } + + /** + * optional uint32 DailyCount = 5; + * @return the dailyCount + */ + public int getDailyCount() { + return dailyCount; + } + + /** + * optional uint32 DailyCount = 5; + * @param value the dailyCount to set + * @return this + */ + public TraceHuntItem setDailyCount(final int value) { + bitField0_ |= 0x00000010; + dailyCount = 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 TraceHuntItem 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 TraceHuntItem addNextPackage(final byte value) { + bitField0_ |= 0x00000020; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public TraceHuntItem addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000020; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public TraceHuntItem setNextPackage(final byte... values) { + bitField0_ |= 0x00000020; + nextPackage.copyFrom(values); + return this; + } + + @Override + public TraceHuntItem copyFrom(final TraceHuntItem other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + pointQty = other.pointQty; + convertQty = other.convertQty; + grantQty = other.grantQty; + tid = other.tid; + dailyCount = other.dailyCount; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public TraceHuntItem mergeFrom(final TraceHuntItem other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasPointQty()) { + setPointQty(other.pointQty); + } + if (other.hasConvertQty()) { + setConvertQty(other.convertQty); + } + if (other.hasGrantQty()) { + setGrantQty(other.grantQty); + } + if (other.hasTid()) { + setTid(other.tid); + } + if (other.hasDailyCount()) { + setDailyCount(other.dailyCount); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public TraceHuntItem clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + pointQty = 0; + convertQty = 0; + grantQty = 0; + tid = 0; + dailyCount = 0; + nextPackage.clear(); + return this; + } + + @Override + public TraceHuntItem 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 TraceHuntItem)) { + return false; + } + TraceHuntItem other = (TraceHuntItem) o; + return bitField0_ == other.bitField0_ + && (!hasPointQty() || pointQty == other.pointQty) + && (!hasConvertQty() || convertQty == other.convertQty) + && (!hasGrantQty() || grantQty == other.grantQty) + && (!hasTid() || tid == other.tid) + && (!hasDailyCount() || dailyCount == other.dailyCount) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeInt32NoTag(pointQty); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 24); + output.writeInt32NoTag(convertQty); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 32); + output.writeInt32NoTag(grantQty); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(tid); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(dailyCount); + } + 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.computeInt32SizeNoTag(pointQty); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeInt32SizeNoTag(convertQty); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeInt32SizeNoTag(grantQty); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(tid); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(dailyCount); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public TraceHuntItem mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // pointQty + pointQty = input.readInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // convertQty + convertQty = input.readInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // grantQty + grantQty = input.readInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 8) { + break; + } + } + case 8: { + // tid + tid = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // dailyCount + dailyCount = input.readUInt32(); + 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.writeInt32(FieldNames.pointQty, pointQty); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeInt32(FieldNames.convertQty, convertQty); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeInt32(FieldNames.grantQty, grantQty); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.tid, tid); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.dailyCount, dailyCount); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public TraceHuntItem mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 530752294: { + if (input.isAtField(FieldNames.pointQty)) { + if (!input.trySkipNullValue()) { + pointQty = input.readInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -258261981: { + if (input.isAtField(FieldNames.convertQty)) { + if (!input.trySkipNullValue()) { + convertQty = input.readInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 163839002: { + if (input.isAtField(FieldNames.grantQty)) { + if (!input.trySkipNullValue()) { + grantQty = input.readInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 84079: { + if (input.isAtField(FieldNames.tid)) { + if (!input.trySkipNullValue()) { + tid = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -800373098: { + if (input.isAtField(FieldNames.dailyCount)) { + if (!input.trySkipNullValue()) { + dailyCount = input.readUInt32(); + 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 TraceHuntItem clone() { + return new TraceHuntItem().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static TraceHuntItem parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new TraceHuntItem(), data).checkInitialized(); + } + + public static TraceHuntItem parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new TraceHuntItem(), input).checkInitialized(); + } + + public static TraceHuntItem parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new TraceHuntItem(), input).checkInitialized(); + } + + /** + * @return factory for creating TraceHuntItem messages + */ + public static MessageFactory getFactory() { + return TraceHuntItemFactory.INSTANCE; + } + + private enum TraceHuntItemFactory implements MessageFactory { + INSTANCE; + + @Override + public TraceHuntItem create() { + return TraceHuntItem.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName pointQty = FieldName.forField("PointQty"); + + static final FieldName convertQty = FieldName.forField("ConvertQty"); + + static final FieldName grantQty = FieldName.forField("GrantQty"); + + static final FieldName tid = FieldName.forField("Tid"); + + static final FieldName dailyCount = FieldName.forField("DailyCount"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code TraceHuntState} + */ + public static final class TraceHuntState extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional bool BossRewardCanReceive = 1; + */ + private boolean bossRewardCanReceive; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private TraceHuntState() { + } + + /** + * @return a new empty instance of {@code TraceHuntState} + */ + public static TraceHuntState newInstance() { + return new TraceHuntState(); + } + + /** + * optional bool BossRewardCanReceive = 1; + * @return whether the bossRewardCanReceive field is set + */ + public boolean hasBossRewardCanReceive() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional bool BossRewardCanReceive = 1; + * @return this + */ + public TraceHuntState clearBossRewardCanReceive() { + bitField0_ &= ~0x00000001; + bossRewardCanReceive = false; + return this; + } + + /** + * optional bool BossRewardCanReceive = 1; + * @return the bossRewardCanReceive + */ + public boolean getBossRewardCanReceive() { + return bossRewardCanReceive; + } + + /** + * optional bool BossRewardCanReceive = 1; + * @param value the bossRewardCanReceive to set + * @return this + */ + public TraceHuntState setBossRewardCanReceive(final boolean value) { + bitField0_ |= 0x00000001; + bossRewardCanReceive = 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 TraceHuntState 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 TraceHuntState addNextPackage(final byte value) { + bitField0_ |= 0x00000002; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public TraceHuntState addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public TraceHuntState setNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.copyFrom(values); + return this; + } + + @Override + public TraceHuntState copyFrom(final TraceHuntState other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + bossRewardCanReceive = other.bossRewardCanReceive; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public TraceHuntState mergeFrom(final TraceHuntState other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasBossRewardCanReceive()) { + setBossRewardCanReceive(other.bossRewardCanReceive); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public TraceHuntState clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + bossRewardCanReceive = false; + nextPackage.clear(); + return this; + } + + @Override + public TraceHuntState 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 TraceHuntState)) { + return false; + } + TraceHuntState other = (TraceHuntState) o; + return bitField0_ == other.bitField0_ + && (!hasBossRewardCanReceive() || bossRewardCanReceive == other.bossRewardCanReceive) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeBoolNoTag(bossRewardCanReceive); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public TraceHuntState mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // bossRewardCanReceive + bossRewardCanReceive = input.readBool(); + 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.writeBool(FieldNames.bossRewardCanReceive, bossRewardCanReceive); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public TraceHuntState mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 2056099631: { + if (input.isAtField(FieldNames.bossRewardCanReceive)) { + if (!input.trySkipNullValue()) { + bossRewardCanReceive = input.readBool(); + 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 TraceHuntState clone() { + return new TraceHuntState().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static TraceHuntState parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new TraceHuntState(), data).checkInitialized(); + } + + public static TraceHuntState parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new TraceHuntState(), input).checkInitialized(); + } + + public static TraceHuntState parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new TraceHuntState(), input).checkInitialized(); + } + + /** + * @return factory for creating TraceHuntState messages + */ + public static MessageFactory getFactory() { + return TraceHuntStateFactory.INSTANCE; + } + + private enum TraceHuntStateFactory implements MessageFactory { + INSTANCE; + + @Override + public TraceHuntState create() { + return TraceHuntState.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName bossRewardCanReceive = FieldName.forField("BossRewardCanReceive"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code ActivityIceCreamLevel} + */ + public static final class ActivityIceCreamLevel extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 LevelId = 1; + */ + private int levelId; + + /** + * optional uint32 Score = 2; + */ + private int score; + + /** + * optional bool FirstComplete = 3; + */ + private boolean firstComplete; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private ActivityIceCreamLevel() { + } + + /** + * @return a new empty instance of {@code ActivityIceCreamLevel} + */ + public static ActivityIceCreamLevel newInstance() { + return new ActivityIceCreamLevel(); + } + + /** + * 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 ActivityIceCreamLevel 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 ActivityIceCreamLevel setLevelId(final int value) { + bitField0_ |= 0x00000001; + levelId = value; + return this; + } + + /** + * optional uint32 Score = 2; + * @return whether the score field is set + */ + public boolean hasScore() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 Score = 2; + * @return this + */ + public ActivityIceCreamLevel clearScore() { + bitField0_ &= ~0x00000002; + score = 0; + return this; + } + + /** + * optional uint32 Score = 2; + * @return the score + */ + public int getScore() { + return score; + } + + /** + * optional uint32 Score = 2; + * @param value the score to set + * @return this + */ + public ActivityIceCreamLevel setScore(final int value) { + bitField0_ |= 0x00000002; + score = 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 ActivityIceCreamLevel 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 ActivityIceCreamLevel 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 ActivityIceCreamLevel 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 ActivityIceCreamLevel addNextPackage(final byte value) { + bitField0_ |= 0x00000008; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public ActivityIceCreamLevel addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public ActivityIceCreamLevel setNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.copyFrom(values); + return this; + } + + @Override + public ActivityIceCreamLevel copyFrom(final ActivityIceCreamLevel other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + levelId = other.levelId; + score = other.score; + firstComplete = other.firstComplete; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public ActivityIceCreamLevel mergeFrom(final ActivityIceCreamLevel other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasLevelId()) { + setLevelId(other.levelId); + } + if (other.hasScore()) { + setScore(other.score); + } + if (other.hasFirstComplete()) { + setFirstComplete(other.firstComplete); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public ActivityIceCreamLevel clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + levelId = 0; + score = 0; + firstComplete = false; + nextPackage.clear(); + return this; + } + + @Override + public ActivityIceCreamLevel 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 ActivityIceCreamLevel)) { + return false; + } + ActivityIceCreamLevel other = (ActivityIceCreamLevel) o; + return bitField0_ == other.bitField0_ + && (!hasLevelId() || levelId == other.levelId) + && (!hasScore() || score == other.score) + && (!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(score); + } + 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(score); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ActivityIceCreamLevel 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: { + // score + score = 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.score, score); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBool(FieldNames.firstComplete, firstComplete); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public ActivityIceCreamLevel 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 79711858: { + if (input.isAtField(FieldNames.score)) { + if (!input.trySkipNullValue()) { + score = 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 ActivityIceCreamLevel clone() { + return new ActivityIceCreamLevel().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ActivityIceCreamLevel parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ActivityIceCreamLevel(), data).checkInitialized(); + } + + public static ActivityIceCreamLevel parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ActivityIceCreamLevel(), input).checkInitialized(); + } + + public static ActivityIceCreamLevel parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ActivityIceCreamLevel(), input).checkInitialized(); + } + + /** + * @return factory for creating ActivityIceCreamLevel messages + */ + public static MessageFactory getFactory() { + return ActivityIceCreamLevelFactory.INSTANCE; + } + + private enum ActivityIceCreamLevelFactory implements MessageFactory { + INSTANCE; + + @Override + public ActivityIceCreamLevel create() { + return ActivityIceCreamLevel.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName levelId = FieldName.forField("LevelId"); + + static final FieldName score = FieldName.forField("Score"); + + static final FieldName firstComplete = FieldName.forField("FirstComplete"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code ActivityIceCream} + */ + public static final class ActivityIceCream 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 .ActivityIceCreamLevel Levels = 2; + */ + private final RepeatedMessage levels = RepeatedMessage.newEmptyInstance(ActivityIceCreamLevel.getFactory()); + + /** + * repeated .ActivityQuest Quests = 3; + */ + private final RepeatedMessage quests = RepeatedMessage.newEmptyInstance(ActivityQuest.getFactory()); + + private ActivityIceCream() { + } + + /** + * @return a new empty instance of {@code ActivityIceCream} + */ + public static ActivityIceCream newInstance() { + return new ActivityIceCream(); + } + + /** + * 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 ActivityIceCream 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 ActivityIceCream 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 ActivityIceCream 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 ActivityIceCream addNextPackage(final byte value) { + bitField0_ |= 0x00000002; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public ActivityIceCream addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public ActivityIceCream setNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .ActivityIceCreamLevel Levels = 2; + * @return whether the levels field is set + */ + public boolean hasLevels() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated .ActivityIceCreamLevel Levels = 2; + * @return this + */ + public ActivityIceCream clearLevels() { + bitField0_ &= ~0x00000004; + levels.clear(); + return this; + } + + /** + * repeated .ActivityIceCreamLevel 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 .ActivityIceCreamLevel 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 .ActivityIceCreamLevel Levels = 2; + * @param value the levels to add + * @return this + */ + public ActivityIceCream addLevels(final ActivityIceCreamLevel value) { + bitField0_ |= 0x00000004; + levels.add(value); + return this; + } + + /** + * repeated .ActivityIceCreamLevel Levels = 2; + * @param values the levels to add + * @return this + */ + public ActivityIceCream addAllLevels(final ActivityIceCreamLevel... 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 ActivityIceCream 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 ActivityIceCream addQuests(final ActivityQuest value) { + bitField0_ |= 0x00000008; + quests.add(value); + return this; + } + + /** + * repeated .ActivityQuest Quests = 3; + * @param values the quests to add + * @return this + */ + public ActivityIceCream addAllQuests(final ActivityQuest... values) { + bitField0_ |= 0x00000008; + quests.addAll(values); + return this; + } + + @Override + public ActivityIceCream copyFrom(final ActivityIceCream 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 ActivityIceCream mergeFrom(final ActivityIceCream 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 ActivityIceCream clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + activityId = 0; + nextPackage.clear(); + levels.clear(); + quests.clear(); + return this; + } + + @Override + public ActivityIceCream 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 ActivityIceCream)) { + return false; + } + ActivityIceCream other = (ActivityIceCream) 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 ActivityIceCream 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 ActivityIceCream 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 ActivityIceCream clone() { + return new ActivityIceCream().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ActivityIceCream parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ActivityIceCream(), data).checkInitialized(); + } + + public static ActivityIceCream parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ActivityIceCream(), input).checkInitialized(); + } + + public static ActivityIceCream parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ActivityIceCream(), input).checkInitialized(); + } + + /** + * @return factory for creating ActivityIceCream messages + */ + public static MessageFactory getFactory() { + return ActivityIceCreamFactory.INSTANCE; + } + + private enum ActivityIceCreamFactory implements MessageFactory { + INSTANCE; + + @Override + public ActivityIceCream create() { + return ActivityIceCream.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 ActivityIceCreamLevelSettleSucceed} + */ + public static final class ActivityIceCreamLevelSettleSucceed extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional bool Passed = 2; + */ + private boolean passed; + + /** + * optional .ChangeInfo Change = 1; + */ + private final ChangeInfo change = ChangeInfo.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private ActivityIceCreamLevelSettleSucceed() { + } + + /** + * @return a new empty instance of {@code ActivityIceCreamLevelSettleSucceed} + */ + public static ActivityIceCreamLevelSettleSucceed newInstance() { + return new ActivityIceCreamLevelSettleSucceed(); + } + + /** + * optional bool Passed = 2; + * @return whether the passed field is set + */ + public boolean hasPassed() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional bool Passed = 2; + * @return this + */ + public ActivityIceCreamLevelSettleSucceed clearPassed() { + bitField0_ &= ~0x00000001; + passed = false; + return this; + } + + /** + * optional bool Passed = 2; + * @return the passed + */ + public boolean getPassed() { + return passed; + } + + /** + * optional bool Passed = 2; + * @param value the passed to set + * @return this + */ + public ActivityIceCreamLevelSettleSucceed setPassed(final boolean value) { + bitField0_ |= 0x00000001; + passed = 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 ActivityIceCreamLevelSettleSucceed 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 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 ChangeInfo getMutableChange() { + bitField0_ |= 0x00000002; + return change; + } + + /** + * optional .ChangeInfo Change = 1; + * @param value the change to set + * @return this + */ + public ActivityIceCreamLevelSettleSucceed setChange(final 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 ActivityIceCreamLevelSettleSucceed 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 ActivityIceCreamLevelSettleSucceed addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public ActivityIceCreamLevelSettleSucceed addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public ActivityIceCreamLevelSettleSucceed setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + @Override + public ActivityIceCreamLevelSettleSucceed copyFrom( + final ActivityIceCreamLevelSettleSucceed other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + passed = other.passed; + change.copyFrom(other.change); + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public ActivityIceCreamLevelSettleSucceed mergeFrom( + final ActivityIceCreamLevelSettleSucceed other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasPassed()) { + setPassed(other.passed); + } + if (other.hasChange()) { + getMutableChange().mergeFrom(other.change); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public ActivityIceCreamLevelSettleSucceed clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + passed = false; + change.clear(); + nextPackage.clear(); + return this; + } + + @Override + public ActivityIceCreamLevelSettleSucceed 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 ActivityIceCreamLevelSettleSucceed)) { + return false; + } + ActivityIceCreamLevelSettleSucceed other = (ActivityIceCreamLevelSettleSucceed) o; + return bitField0_ == other.bitField0_ + && (!hasPassed() || passed == other.passed) + && (!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.writeBoolNoTag(passed); + } + 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 += 2; + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(change); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ActivityIceCreamLevelSettleSucceed mergeFrom(final ProtoSource input) throws + IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // passed + passed = input.readBool(); + 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.writeBool(FieldNames.passed, passed); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.change, change); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public ActivityIceCreamLevelSettleSucceed mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1911513968: { + if (input.isAtField(FieldNames.passed)) { + if (!input.trySkipNullValue()) { + passed = input.readBool(); + 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 ActivityIceCreamLevelSettleSucceed clone() { + return new ActivityIceCreamLevelSettleSucceed().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ActivityIceCreamLevelSettleSucceed parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ActivityIceCreamLevelSettleSucceed(), data).checkInitialized(); + } + + public static ActivityIceCreamLevelSettleSucceed parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ActivityIceCreamLevelSettleSucceed(), input).checkInitialized(); + } + + public static ActivityIceCreamLevelSettleSucceed parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ActivityIceCreamLevelSettleSucceed(), input).checkInitialized(); + } + + /** + * @return factory for creating ActivityIceCreamLevelSettleSucceed messages + */ + public static MessageFactory getFactory() { + return ActivityIceCreamLevelSettleSucceedFactory.INSTANCE; + } + + private enum ActivityIceCreamLevelSettleSucceedFactory implements MessageFactory { + INSTANCE; + + @Override + public ActivityIceCreamLevelSettleSucceed create() { + return ActivityIceCreamLevelSettleSucceed.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName passed = FieldName.forField("Passed"); + + static final FieldName change = FieldName.forField("Change"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code ActivitySoldier} + */ + public static final class ActivitySoldier extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 CurGradeChallengeId = 1; + */ + private int curGradeChallengeId; + + /** + * optional uint32 Score = 2; + */ + private int score; + + /** + * optional uint32 GradeChallengeId = 3; + */ + private int gradeChallengeId; + + /** + * optional uint32 Stage = 4; + */ + private int stage; + + /** + * optional uint32 NodeIndex = 5; + */ + private int nodeIndex; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .ActivityQuest Quests = 6; + */ + private final RepeatedMessage quests = RepeatedMessage.newEmptyInstance(ActivityQuest.getFactory()); + + private ActivitySoldier() { + } + + /** + * @return a new empty instance of {@code ActivitySoldier} + */ + public static ActivitySoldier newInstance() { + return new ActivitySoldier(); + } + + /** + * optional uint32 CurGradeChallengeId = 1; + * @return whether the curGradeChallengeId field is set + */ + public boolean hasCurGradeChallengeId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 CurGradeChallengeId = 1; + * @return this + */ + public ActivitySoldier clearCurGradeChallengeId() { + bitField0_ &= ~0x00000001; + curGradeChallengeId = 0; + return this; + } + + /** + * optional uint32 CurGradeChallengeId = 1; + * @return the curGradeChallengeId + */ + public int getCurGradeChallengeId() { + return curGradeChallengeId; + } + + /** + * optional uint32 CurGradeChallengeId = 1; + * @param value the curGradeChallengeId to set + * @return this + */ + public ActivitySoldier setCurGradeChallengeId(final int value) { + bitField0_ |= 0x00000001; + curGradeChallengeId = value; + return this; + } + + /** + * optional uint32 Score = 2; + * @return whether the score field is set + */ + public boolean hasScore() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 Score = 2; + * @return this + */ + public ActivitySoldier clearScore() { + bitField0_ &= ~0x00000002; + score = 0; + return this; + } + + /** + * optional uint32 Score = 2; + * @return the score + */ + public int getScore() { + return score; + } + + /** + * optional uint32 Score = 2; + * @param value the score to set + * @return this + */ + public ActivitySoldier setScore(final int value) { + bitField0_ |= 0x00000002; + score = value; + return this; + } + + /** + * optional uint32 GradeChallengeId = 3; + * @return whether the gradeChallengeId field is set + */ + public boolean hasGradeChallengeId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 GradeChallengeId = 3; + * @return this + */ + public ActivitySoldier clearGradeChallengeId() { + bitField0_ &= ~0x00000004; + gradeChallengeId = 0; + return this; + } + + /** + * optional uint32 GradeChallengeId = 3; + * @return the gradeChallengeId + */ + public int getGradeChallengeId() { + return gradeChallengeId; + } + + /** + * optional uint32 GradeChallengeId = 3; + * @param value the gradeChallengeId to set + * @return this + */ + public ActivitySoldier setGradeChallengeId(final int value) { + bitField0_ |= 0x00000004; + gradeChallengeId = value; + return this; + } + + /** + * optional uint32 Stage = 4; + * @return whether the stage field is set + */ + public boolean hasStage() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 Stage = 4; + * @return this + */ + public ActivitySoldier clearStage() { + bitField0_ &= ~0x00000008; + stage = 0; + return this; + } + + /** + * optional uint32 Stage = 4; + * @return the stage + */ + public int getStage() { + return stage; + } + + /** + * optional uint32 Stage = 4; + * @param value the stage to set + * @return this + */ + public ActivitySoldier setStage(final int value) { + bitField0_ |= 0x00000008; + stage = value; + return this; + } + + /** + * optional uint32 NodeIndex = 5; + * @return whether the nodeIndex field is set + */ + public boolean hasNodeIndex() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 NodeIndex = 5; + * @return this + */ + public ActivitySoldier clearNodeIndex() { + bitField0_ &= ~0x00000010; + nodeIndex = 0; + return this; + } + + /** + * optional uint32 NodeIndex = 5; + * @return the nodeIndex + */ + public int getNodeIndex() { + return nodeIndex; + } + + /** + * optional uint32 NodeIndex = 5; + * @param value the nodeIndex to set + * @return this + */ + public ActivitySoldier setNodeIndex(final int value) { + bitField0_ |= 0x00000010; + nodeIndex = 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 ActivitySoldier 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 ActivitySoldier addNextPackage(final byte value) { + bitField0_ |= 0x00000020; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public ActivitySoldier addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000020; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public ActivitySoldier setNextPackage(final byte... values) { + bitField0_ |= 0x00000020; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .ActivityQuest Quests = 6; + * @return whether the quests field is set + */ + public boolean hasQuests() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * repeated .ActivityQuest Quests = 6; + * @return this + */ + public ActivitySoldier clearQuests() { + bitField0_ &= ~0x00000040; + quests.clear(); + return this; + } + + /** + * repeated .ActivityQuest Quests = 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 #getMutableQuests()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getQuests() { + return quests; + } + + /** + * repeated .ActivityQuest Quests = 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 getMutableQuests() { + bitField0_ |= 0x00000040; + return quests; + } + + /** + * repeated .ActivityQuest Quests = 6; + * @param value the quests to add + * @return this + */ + public ActivitySoldier addQuests(final ActivityQuest value) { + bitField0_ |= 0x00000040; + quests.add(value); + return this; + } + + /** + * repeated .ActivityQuest Quests = 6; + * @param values the quests to add + * @return this + */ + public ActivitySoldier addAllQuests(final ActivityQuest... values) { + bitField0_ |= 0x00000040; + quests.addAll(values); + return this; + } + + @Override + public ActivitySoldier copyFrom(final ActivitySoldier other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + curGradeChallengeId = other.curGradeChallengeId; + score = other.score; + gradeChallengeId = other.gradeChallengeId; + stage = other.stage; + nodeIndex = other.nodeIndex; + nextPackage.copyFrom(other.nextPackage); + quests.copyFrom(other.quests); + } + return this; + } + + @Override + public ActivitySoldier mergeFrom(final ActivitySoldier other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasCurGradeChallengeId()) { + setCurGradeChallengeId(other.curGradeChallengeId); + } + if (other.hasScore()) { + setScore(other.score); + } + if (other.hasGradeChallengeId()) { + setGradeChallengeId(other.gradeChallengeId); + } + if (other.hasStage()) { + setStage(other.stage); + } + if (other.hasNodeIndex()) { + setNodeIndex(other.nodeIndex); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasQuests()) { + getMutableQuests().addAll(other.quests); + } + return this; + } + + @Override + public ActivitySoldier clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + curGradeChallengeId = 0; + score = 0; + gradeChallengeId = 0; + stage = 0; + nodeIndex = 0; + nextPackage.clear(); + quests.clear(); + return this; + } + + @Override + public ActivitySoldier clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + quests.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ActivitySoldier)) { + return false; + } + ActivitySoldier other = (ActivitySoldier) o; + return bitField0_ == other.bitField0_ + && (!hasCurGradeChallengeId() || curGradeChallengeId == other.curGradeChallengeId) + && (!hasScore() || score == other.score) + && (!hasGradeChallengeId() || gradeChallengeId == other.gradeChallengeId) + && (!hasStage() || stage == other.stage) + && (!hasNodeIndex() || nodeIndex == other.nodeIndex) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasQuests() || quests.equals(other.quests)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(curGradeChallengeId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(score); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(gradeChallengeId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(stage); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(nodeIndex); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000040) != 0) { + for (int i = 0; i < quests.length(); i++) { + output.writeRawByte((byte) 50); + output.writeMessageNoTag(quests.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(curGradeChallengeId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(score); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(gradeChallengeId); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(stage); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(nodeIndex); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000040) != 0) { + size += (1 * quests.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(quests); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ActivitySoldier mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // curGradeChallengeId + curGradeChallengeId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // score + score = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // gradeChallengeId + gradeChallengeId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // stage + stage = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // nodeIndex + nodeIndex = input.readUInt32(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 50) { + break; + } + } + case 50: { + // quests + tag = input.readRepeatedMessage(quests, 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.curGradeChallengeId, curGradeChallengeId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.score, score); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.gradeChallengeId, gradeChallengeId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.stage, stage); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.nodeIndex, nodeIndex); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRepeatedMessage(FieldNames.quests, quests); + } + output.endObject(); + } + + @Override + public ActivitySoldier mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 750219975: { + if (input.isAtField(FieldNames.curGradeChallengeId)) { + if (!input.trySkipNullValue()) { + curGradeChallengeId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 79711858: { + if (input.isAtField(FieldNames.score)) { + if (!input.trySkipNullValue()) { + score = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1764841305: { + if (input.isAtField(FieldNames.gradeChallengeId)) { + if (!input.trySkipNullValue()) { + gradeChallengeId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 80204510: { + if (input.isAtField(FieldNames.stage)) { + if (!input.trySkipNullValue()) { + stage = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1845683248: { + if (input.isAtField(FieldNames.nodeIndex)) { + if (!input.trySkipNullValue()) { + nodeIndex = input.readUInt32(); + 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; + } + case -1864830991: { + if (input.isAtField(FieldNames.quests)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(quests); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ActivitySoldier clone() { + return new ActivitySoldier().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ActivitySoldier parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ActivitySoldier(), data).checkInitialized(); + } + + public static ActivitySoldier parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ActivitySoldier(), input).checkInitialized(); + } + + public static ActivitySoldier parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ActivitySoldier(), input).checkInitialized(); + } + + /** + * @return factory for creating ActivitySoldier messages + */ + public static MessageFactory getFactory() { + return ActivitySoldierFactory.INSTANCE; + } + + private enum ActivitySoldierFactory implements MessageFactory { + INSTANCE; + + @Override + public ActivitySoldier create() { + return ActivitySoldier.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName curGradeChallengeId = FieldName.forField("CurGradeChallengeId"); + + static final FieldName score = FieldName.forField("Score"); + + static final FieldName gradeChallengeId = FieldName.forField("GradeChallengeId"); + + static final FieldName stage = FieldName.forField("Stage"); + + static final FieldName nodeIndex = FieldName.forField("NodeIndex"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName quests = FieldName.forField("Quests"); + } + } } diff --git a/src/generated/main/emu/nebula/proto/PublicSoldier.java b/src/generated/main/emu/nebula/proto/PublicSoldier.java new file mode 100644 index 0000000..5fee933 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/PublicSoldier.java @@ -0,0 +1,32709 @@ +// 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.ProtoEnum; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.ProtoUtil; +import us.hebi.quickbuf.RepeatedByte; +import us.hebi.quickbuf.RepeatedInt; +import us.hebi.quickbuf.RepeatedMessage; +import us.hebi.quickbuf.Utf8String; + +public final class PublicSoldier { + /** + * Protobuf enum {@code SoldierCardType} + */ + public enum SoldierCardType implements ProtoEnum { + /** + * Undefined = 0; + */ + Undefined("Undefined", 0), + + /** + * Starter = 1; + */ + Starter("Starter", 1), + + /** + * Strategy = 2; + */ + Strategy("Strategy", 2); + + /** + * Undefined = 0; + */ + public static final int Undefined_VALUE = 0; + + /** + * Starter = 1; + */ + public static final int Starter_VALUE = 1; + + /** + * Strategy = 2; + */ + public static final int Strategy_VALUE = 2; + + private final String name; + + private final int number; + + private SoldierCardType(String name, int number) { + this.name = name; + this.number = number; + } + + /** + * @return the string representation of enum entry + */ + @Override + public String getName() { + return name; + } + + /** + * @return the numeric wire value of this enum entry + */ + @Override + public int getNumber() { + return number; + } + + /** + * @return a converter that maps between this enum's numeric and text representations + */ + public static ProtoEnum.EnumConverter converter() { + return SoldierCardTypeConverter.INSTANCE; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value, or null if unknown. + */ + public static SoldierCardType forNumber(int value) { + return SoldierCardTypeConverter.INSTANCE.forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @param other Fallback value in case the value is not known. + * @return The enum associated with the given numeric wire value, or the fallback value if unknown. + */ + public static SoldierCardType forNumberOr(int number, SoldierCardType other) { + SoldierCardType value = forNumber(number); + return value == null ? other : value; + } + + enum SoldierCardTypeConverter implements ProtoEnum.EnumConverter { + INSTANCE; + + private static final SoldierCardType[] lookup = new SoldierCardType[3]; + + static { + lookup[0] = Undefined; + lookup[1] = Starter; + lookup[2] = Strategy; + } + + @Override + public final SoldierCardType forNumber(final int value) { + if (value >= 0 && value < lookup.length) { + return lookup[value]; + } + return null; + } + + @Override + public final SoldierCardType forName(final CharSequence value) { + if (value.length() == 7) { + if (ProtoUtil.isEqual("Starter", value)) { + return Starter; + } + } + if (value.length() == 8) { + if (ProtoUtil.isEqual("Strategy", value)) { + return Strategy; + } + } + if (value.length() == 9) { + if (ProtoUtil.isEqual("Undefined", value)) { + return Undefined; + } + } + return null; + } + } + } + + /** + * Protobuf enum {@code SoldierPartnerAction} + */ + public enum SoldierPartnerAction implements ProtoEnum { + /** + * Sync = 0; + */ + Sync("Sync", 0), + + /** + * Add = 1; + */ + Add("Add", 1), + + /** + * Remove = 2; + */ + Remove("Remove", 2); + + /** + * Sync = 0; + */ + public static final int Sync_VALUE = 0; + + /** + * Add = 1; + */ + public static final int Add_VALUE = 1; + + /** + * Remove = 2; + */ + public static final int Remove_VALUE = 2; + + private final String name; + + private final int number; + + private SoldierPartnerAction(String name, int number) { + this.name = name; + this.number = number; + } + + /** + * @return the string representation of enum entry + */ + @Override + public String getName() { + return name; + } + + /** + * @return the numeric wire value of this enum entry + */ + @Override + public int getNumber() { + return number; + } + + /** + * @return a converter that maps between this enum's numeric and text representations + */ + public static ProtoEnum.EnumConverter converter() { + return SoldierPartnerActionConverter.INSTANCE; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value, or null if unknown. + */ + public static SoldierPartnerAction forNumber(int value) { + return SoldierPartnerActionConverter.INSTANCE.forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @param other Fallback value in case the value is not known. + * @return The enum associated with the given numeric wire value, or the fallback value if unknown. + */ + public static SoldierPartnerAction forNumberOr(int number, SoldierPartnerAction other) { + SoldierPartnerAction value = forNumber(number); + return value == null ? other : value; + } + + enum SoldierPartnerActionConverter implements ProtoEnum.EnumConverter { + INSTANCE; + + private static final SoldierPartnerAction[] lookup = new SoldierPartnerAction[3]; + + static { + lookup[0] = Sync; + lookup[1] = Add; + lookup[2] = Remove; + } + + @Override + public final SoldierPartnerAction forNumber(final int value) { + if (value >= 0 && value < lookup.length) { + return lookup[value]; + } + return null; + } + + @Override + public final SoldierPartnerAction forName(final CharSequence value) { + if (value.length() == 3) { + if (ProtoUtil.isEqual("Add", value)) { + return Add; + } + } + if (value.length() == 4) { + if (ProtoUtil.isEqual("Sync", value)) { + return Sync; + } + } + if (value.length() == 6) { + if (ProtoUtil.isEqual("Remove", value)) { + return Remove; + } + } + return null; + } + } + } + + /** + * Protobuf enum {@code SoldierEffectStatus} + */ + public enum SoldierEffectStatus implements ProtoEnum { + /** + * InActive = 0; + */ + InActive("InActive", 0), + + /** + * Active = 1; + */ + Active("Active", 1); + + /** + * InActive = 0; + */ + public static final int InActive_VALUE = 0; + + /** + * Active = 1; + */ + public static final int Active_VALUE = 1; + + private final String name; + + private final int number; + + private SoldierEffectStatus(String name, int number) { + this.name = name; + this.number = number; + } + + /** + * @return the string representation of enum entry + */ + @Override + public String getName() { + return name; + } + + /** + * @return the numeric wire value of this enum entry + */ + @Override + public int getNumber() { + return number; + } + + /** + * @return a converter that maps between this enum's numeric and text representations + */ + public static ProtoEnum.EnumConverter converter() { + return SoldierEffectStatusConverter.INSTANCE; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value, or null if unknown. + */ + public static SoldierEffectStatus forNumber(int value) { + return SoldierEffectStatusConverter.INSTANCE.forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @param other Fallback value in case the value is not known. + * @return The enum associated with the given numeric wire value, or the fallback value if unknown. + */ + public static SoldierEffectStatus forNumberOr(int number, SoldierEffectStatus other) { + SoldierEffectStatus value = forNumber(number); + return value == null ? other : value; + } + + enum SoldierEffectStatusConverter implements ProtoEnum.EnumConverter { + INSTANCE; + + private static final SoldierEffectStatus[] lookup = new SoldierEffectStatus[2]; + + static { + lookup[0] = InActive; + lookup[1] = Active; + } + + @Override + public final SoldierEffectStatus forNumber(final int value) { + if (value >= 0 && value < lookup.length) { + return lookup[value]; + } + return null; + } + + @Override + public final SoldierEffectStatus forName(final CharSequence value) { + if (value.length() == 6) { + if (ProtoUtil.isEqual("Active", value)) { + return Active; + } + } + if (value.length() == 8) { + if (ProtoUtil.isEqual("InActive", value)) { + return InActive; + } + } + return null; + } + } + } + + /** + * Protobuf type {@code SoldierInfo} + */ + public static final class SoldierInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .SoldierMeta Meta = 1; + */ + private final SoldierMeta meta = SoldierMeta.newInstance(); + + /** + * optional .SoldierNode Node = 2; + */ + private final SoldierNode node = SoldierNode.newInstance(); + + /** + * optional .SoldierBag Bag = 3; + */ + private final SoldierBag bag = SoldierBag.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .SoldierEffectInfo ActivatedEffects = 4; + */ + private final RepeatedMessage activatedEffects = RepeatedMessage.newEmptyInstance(SoldierEffectInfo.getFactory()); + + private SoldierInfo() { + } + + /** + * @return a new empty instance of {@code SoldierInfo} + */ + public static SoldierInfo newInstance() { + return new SoldierInfo(); + } + + /** + * optional .SoldierMeta Meta = 1; + * @return whether the meta field is set + */ + public boolean hasMeta() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .SoldierMeta Meta = 1; + * @return this + */ + public SoldierInfo clearMeta() { + bitField0_ &= ~0x00000001; + meta.clear(); + return this; + } + + /** + * optional .SoldierMeta Meta = 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 #getMutableMeta()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SoldierMeta getMeta() { + return meta; + } + + /** + * optional .SoldierMeta Meta = 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 SoldierMeta getMutableMeta() { + bitField0_ |= 0x00000001; + return meta; + } + + /** + * optional .SoldierMeta Meta = 1; + * @param value the meta to set + * @return this + */ + public SoldierInfo setMeta(final SoldierMeta value) { + bitField0_ |= 0x00000001; + meta.copyFrom(value); + return this; + } + + /** + * optional .SoldierNode Node = 2; + * @return whether the node field is set + */ + public boolean hasNode() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .SoldierNode Node = 2; + * @return this + */ + public SoldierInfo clearNode() { + bitField0_ &= ~0x00000002; + node.clear(); + return this; + } + + /** + * optional .SoldierNode Node = 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 #getMutableNode()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SoldierNode getNode() { + return node; + } + + /** + * optional .SoldierNode Node = 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 SoldierNode getMutableNode() { + bitField0_ |= 0x00000002; + return node; + } + + /** + * optional .SoldierNode Node = 2; + * @param value the node to set + * @return this + */ + public SoldierInfo setNode(final SoldierNode value) { + bitField0_ |= 0x00000002; + node.copyFrom(value); + return this; + } + + /** + * optional .SoldierBag Bag = 3; + * @return whether the bag field is set + */ + public boolean hasBag() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .SoldierBag Bag = 3; + * @return this + */ + public SoldierInfo clearBag() { + bitField0_ &= ~0x00000004; + bag.clear(); + return this; + } + + /** + * optional .SoldierBag Bag = 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 #getMutableBag()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SoldierBag getBag() { + return bag; + } + + /** + * optional .SoldierBag Bag = 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 SoldierBag getMutableBag() { + bitField0_ |= 0x00000004; + return bag; + } + + /** + * optional .SoldierBag Bag = 3; + * @param value the bag to set + * @return this + */ + public SoldierInfo setBag(final SoldierBag value) { + bitField0_ |= 0x00000004; + bag.copyFrom(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 SoldierInfo 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 SoldierInfo addNextPackage(final byte value) { + bitField0_ |= 0x00000008; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierInfo addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierInfo setNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .SoldierEffectInfo ActivatedEffects = 4; + * @return whether the activatedEffects field is set + */ + public boolean hasActivatedEffects() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * repeated .SoldierEffectInfo ActivatedEffects = 4; + * @return this + */ + public SoldierInfo clearActivatedEffects() { + bitField0_ &= ~0x00000010; + activatedEffects.clear(); + return this; + } + + /** + * repeated .SoldierEffectInfo ActivatedEffects = 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 #getMutableActivatedEffects()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getActivatedEffects() { + return activatedEffects; + } + + /** + * repeated .SoldierEffectInfo ActivatedEffects = 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 getMutableActivatedEffects() { + bitField0_ |= 0x00000010; + return activatedEffects; + } + + /** + * repeated .SoldierEffectInfo ActivatedEffects = 4; + * @param value the activatedEffects to add + * @return this + */ + public SoldierInfo addActivatedEffects(final SoldierEffectInfo value) { + bitField0_ |= 0x00000010; + activatedEffects.add(value); + return this; + } + + /** + * repeated .SoldierEffectInfo ActivatedEffects = 4; + * @param values the activatedEffects to add + * @return this + */ + public SoldierInfo addAllActivatedEffects(final SoldierEffectInfo... values) { + bitField0_ |= 0x00000010; + activatedEffects.addAll(values); + return this; + } + + @Override + public SoldierInfo copyFrom(final SoldierInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + meta.copyFrom(other.meta); + node.copyFrom(other.node); + bag.copyFrom(other.bag); + nextPackage.copyFrom(other.nextPackage); + activatedEffects.copyFrom(other.activatedEffects); + } + return this; + } + + @Override + public SoldierInfo mergeFrom(final SoldierInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasMeta()) { + getMutableMeta().mergeFrom(other.meta); + } + if (other.hasNode()) { + getMutableNode().mergeFrom(other.node); + } + if (other.hasBag()) { + getMutableBag().mergeFrom(other.bag); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasActivatedEffects()) { + getMutableActivatedEffects().addAll(other.activatedEffects); + } + return this; + } + + @Override + public SoldierInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + meta.clear(); + node.clear(); + bag.clear(); + nextPackage.clear(); + activatedEffects.clear(); + return this; + } + + @Override + public SoldierInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + meta.clearQuick(); + node.clearQuick(); + bag.clearQuick(); + nextPackage.clear(); + activatedEffects.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SoldierInfo)) { + return false; + } + SoldierInfo other = (SoldierInfo) o; + return bitField0_ == other.bitField0_ + && (!hasMeta() || meta.equals(other.meta)) + && (!hasNode() || node.equals(other.node)) + && (!hasBag() || bag.equals(other.bag)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasActivatedEffects() || activatedEffects.equals(other.activatedEffects)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(meta); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(node); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(bag); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000010) != 0) { + for (int i = 0; i < activatedEffects.length(); i++) { + output.writeRawByte((byte) 34); + output.writeMessageNoTag(activatedEffects.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(meta); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(node); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(bag); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000010) != 0) { + size += (1 * activatedEffects.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(activatedEffects); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 10: { + // meta + input.readMessage(meta); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // node + input.readMessage(node); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // bag + input.readMessage(bag); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // activatedEffects + tag = input.readRepeatedMessage(activatedEffects, tag); + bitField0_ |= 0x00000010; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeMessage(FieldNames.meta, meta); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.node, node); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.bag, bag); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRepeatedMessage(FieldNames.activatedEffects, activatedEffects); + } + output.endObject(); + } + + @Override + public SoldierInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 2394661: { + if (input.isAtField(FieldNames.meta)) { + if (!input.trySkipNullValue()) { + input.readMessage(meta); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2433570: { + if (input.isAtField(FieldNames.node)) { + if (!input.trySkipNullValue()) { + input.readMessage(node); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 66536: { + if (input.isAtField(FieldNames.bag)) { + if (!input.trySkipNullValue()) { + input.readMessage(bag); + 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 -489681391: { + if (input.isAtField(FieldNames.activatedEffects)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(activatedEffects); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SoldierInfo clone() { + return new SoldierInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierInfo parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierInfo(), data).checkInitialized(); + } + + public static SoldierInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierInfo(), input).checkInitialized(); + } + + public static SoldierInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierInfo messages + */ + public static MessageFactory getFactory() { + return SoldierInfoFactory.INSTANCE; + } + + private enum SoldierInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierInfo create() { + return SoldierInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName meta = FieldName.forField("Meta"); + + static final FieldName node = FieldName.forField("Node"); + + static final FieldName bag = FieldName.forField("Bag"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName activatedEffects = FieldName.forField("ActivatedEffects"); + } + } + + /** + * Protobuf type {@code SoldierMeta} + */ + public static final class SoldierMeta 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 uint32 DataLen = 3; + */ + private int dataLen; + + /** + * optional uint32 DataVersion = 5; + */ + private int dataVersion; + + /** + * optional uint32 WinningStreak = 6; + */ + private int winningStreak; + + /** + * optional uint32 LosingStreak = 7; + */ + private int losingStreak; + + /** + * optional uint32 ShopLevel = 8; + */ + private int shopLevel; + + /** + * optional uint32 ShopExp = 9; + */ + private int shopExp; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * optional string ClientData = 4; + */ + private final Utf8String clientData = Utf8String.newEmptyInstance(); + + /** + * repeated uint32 TracePartnerTypes = 10; + */ + private final RepeatedInt tracePartnerTypes = RepeatedInt.newEmptyInstance(); + + private SoldierMeta() { + } + + /** + * @return a new empty instance of {@code SoldierMeta} + */ + public static SoldierMeta newInstance() { + return new SoldierMeta(); + } + + /** + * 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 SoldierMeta 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 SoldierMeta 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 SoldierMeta 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 SoldierMeta setHp(final int value) { + bitField0_ |= 0x00000002; + hp = value; + return this; + } + + /** + * optional uint32 DataLen = 3; + * @return whether the dataLen field is set + */ + public boolean hasDataLen() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 DataLen = 3; + * @return this + */ + public SoldierMeta clearDataLen() { + bitField0_ &= ~0x00000004; + dataLen = 0; + return this; + } + + /** + * optional uint32 DataLen = 3; + * @return the dataLen + */ + public int getDataLen() { + return dataLen; + } + + /** + * optional uint32 DataLen = 3; + * @param value the dataLen to set + * @return this + */ + public SoldierMeta setDataLen(final int value) { + bitField0_ |= 0x00000004; + dataLen = value; + return this; + } + + /** + * optional uint32 DataVersion = 5; + * @return whether the dataVersion field is set + */ + public boolean hasDataVersion() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 DataVersion = 5; + * @return this + */ + public SoldierMeta clearDataVersion() { + bitField0_ &= ~0x00000008; + dataVersion = 0; + return this; + } + + /** + * optional uint32 DataVersion = 5; + * @return the dataVersion + */ + public int getDataVersion() { + return dataVersion; + } + + /** + * optional uint32 DataVersion = 5; + * @param value the dataVersion to set + * @return this + */ + public SoldierMeta setDataVersion(final int value) { + bitField0_ |= 0x00000008; + dataVersion = value; + return this; + } + + /** + * optional uint32 WinningStreak = 6; + * @return whether the winningStreak field is set + */ + public boolean hasWinningStreak() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 WinningStreak = 6; + * @return this + */ + public SoldierMeta clearWinningStreak() { + bitField0_ &= ~0x00000010; + winningStreak = 0; + return this; + } + + /** + * optional uint32 WinningStreak = 6; + * @return the winningStreak + */ + public int getWinningStreak() { + return winningStreak; + } + + /** + * optional uint32 WinningStreak = 6; + * @param value the winningStreak to set + * @return this + */ + public SoldierMeta setWinningStreak(final int value) { + bitField0_ |= 0x00000010; + winningStreak = value; + return this; + } + + /** + * optional uint32 LosingStreak = 7; + * @return whether the losingStreak field is set + */ + public boolean hasLosingStreak() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional uint32 LosingStreak = 7; + * @return this + */ + public SoldierMeta clearLosingStreak() { + bitField0_ &= ~0x00000020; + losingStreak = 0; + return this; + } + + /** + * optional uint32 LosingStreak = 7; + * @return the losingStreak + */ + public int getLosingStreak() { + return losingStreak; + } + + /** + * optional uint32 LosingStreak = 7; + * @param value the losingStreak to set + * @return this + */ + public SoldierMeta setLosingStreak(final int value) { + bitField0_ |= 0x00000020; + losingStreak = value; + return this; + } + + /** + * optional uint32 ShopLevel = 8; + * @return whether the shopLevel field is set + */ + public boolean hasShopLevel() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional uint32 ShopLevel = 8; + * @return this + */ + public SoldierMeta clearShopLevel() { + bitField0_ &= ~0x00000040; + shopLevel = 0; + return this; + } + + /** + * optional uint32 ShopLevel = 8; + * @return the shopLevel + */ + public int getShopLevel() { + return shopLevel; + } + + /** + * optional uint32 ShopLevel = 8; + * @param value the shopLevel to set + * @return this + */ + public SoldierMeta setShopLevel(final int value) { + bitField0_ |= 0x00000040; + shopLevel = value; + return this; + } + + /** + * optional uint32 ShopExp = 9; + * @return whether the shopExp field is set + */ + public boolean hasShopExp() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * optional uint32 ShopExp = 9; + * @return this + */ + public SoldierMeta clearShopExp() { + bitField0_ &= ~0x00000080; + shopExp = 0; + return this; + } + + /** + * optional uint32 ShopExp = 9; + * @return the shopExp + */ + public int getShopExp() { + return shopExp; + } + + /** + * optional uint32 ShopExp = 9; + * @param value the shopExp to set + * @return this + */ + public SoldierMeta setShopExp(final int value) { + bitField0_ |= 0x00000080; + shopExp = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000100) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public SoldierMeta clearNextPackage() { + bitField0_ &= ~0x00000100; + 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_ |= 0x00000100; + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public SoldierMeta addNextPackage(final byte value) { + bitField0_ |= 0x00000100; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierMeta addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000100; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierMeta setNextPackage(final byte... values) { + bitField0_ |= 0x00000100; + nextPackage.copyFrom(values); + return this; + } + + /** + * optional string ClientData = 4; + * @return whether the clientData field is set + */ + public boolean hasClientData() { + return (bitField0_ & 0x00000200) != 0; + } + + /** + * optional string ClientData = 4; + * @return this + */ + public SoldierMeta clearClientData() { + bitField0_ &= ~0x00000200; + clientData.clear(); + return this; + } + + /** + * optional string ClientData = 4; + * @return the clientData + */ + public String getClientData() { + return clientData.getString(); + } + + /** + * optional string ClientData = 4; + * @return internal {@code Utf8String} representation of clientData for reading + */ + public Utf8String getClientDataBytes() { + return this.clientData; + } + + /** + * optional string ClientData = 4; + * @return internal {@code Utf8String} representation of clientData for modifications + */ + public Utf8String getMutableClientDataBytes() { + bitField0_ |= 0x00000200; + return this.clientData; + } + + /** + * optional string ClientData = 4; + * @param value the clientData to set + * @return this + */ + public SoldierMeta setClientData(final CharSequence value) { + bitField0_ |= 0x00000200; + clientData.copyFrom(value); + return this; + } + + /** + * optional string ClientData = 4; + * @param value the clientData to set + * @return this + */ + public SoldierMeta setClientData(final Utf8String value) { + bitField0_ |= 0x00000200; + clientData.copyFrom(value); + return this; + } + + /** + * repeated uint32 TracePartnerTypes = 10; + * @return whether the tracePartnerTypes field is set + */ + public boolean hasTracePartnerTypes() { + return (bitField0_ & 0x00000400) != 0; + } + + /** + * repeated uint32 TracePartnerTypes = 10; + * @return this + */ + public SoldierMeta clearTracePartnerTypes() { + bitField0_ &= ~0x00000400; + tracePartnerTypes.clear(); + return this; + } + + /** + * repeated uint32 TracePartnerTypes = 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 #getMutableTracePartnerTypes()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getTracePartnerTypes() { + return tracePartnerTypes; + } + + /** + * repeated uint32 TracePartnerTypes = 10; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedInt getMutableTracePartnerTypes() { + bitField0_ |= 0x00000400; + return tracePartnerTypes; + } + + /** + * repeated uint32 TracePartnerTypes = 10; + * @param value the tracePartnerTypes to add + * @return this + */ + public SoldierMeta addTracePartnerTypes(final int value) { + bitField0_ |= 0x00000400; + tracePartnerTypes.add(value); + return this; + } + + /** + * repeated uint32 TracePartnerTypes = 10; + * @param values the tracePartnerTypes to add + * @return this + */ + public SoldierMeta addAllTracePartnerTypes(final int... values) { + bitField0_ |= 0x00000400; + tracePartnerTypes.addAll(values); + return this; + } + + @Override + public SoldierMeta copyFrom(final SoldierMeta other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + id = other.id; + hp = other.hp; + dataLen = other.dataLen; + dataVersion = other.dataVersion; + winningStreak = other.winningStreak; + losingStreak = other.losingStreak; + shopLevel = other.shopLevel; + shopExp = other.shopExp; + nextPackage.copyFrom(other.nextPackage); + clientData.copyFrom(other.clientData); + tracePartnerTypes.copyFrom(other.tracePartnerTypes); + } + return this; + } + + @Override + public SoldierMeta mergeFrom(final SoldierMeta other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasId()) { + setId(other.id); + } + if (other.hasHp()) { + setHp(other.hp); + } + if (other.hasDataLen()) { + setDataLen(other.dataLen); + } + if (other.hasDataVersion()) { + setDataVersion(other.dataVersion); + } + if (other.hasWinningStreak()) { + setWinningStreak(other.winningStreak); + } + if (other.hasLosingStreak()) { + setLosingStreak(other.losingStreak); + } + if (other.hasShopLevel()) { + setShopLevel(other.shopLevel); + } + if (other.hasShopExp()) { + setShopExp(other.shopExp); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasClientData()) { + getMutableClientDataBytes().copyFrom(other.clientData); + } + if (other.hasTracePartnerTypes()) { + getMutableTracePartnerTypes().addAll(other.tracePartnerTypes); + } + return this; + } + + @Override + public SoldierMeta clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + id = 0; + hp = 0; + dataLen = 0; + dataVersion = 0; + winningStreak = 0; + losingStreak = 0; + shopLevel = 0; + shopExp = 0; + nextPackage.clear(); + clientData.clear(); + tracePartnerTypes.clear(); + return this; + } + + @Override + public SoldierMeta clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + clientData.clear(); + tracePartnerTypes.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SoldierMeta)) { + return false; + } + SoldierMeta other = (SoldierMeta) o; + return bitField0_ == other.bitField0_ + && (!hasId() || id == other.id) + && (!hasHp() || hp == other.hp) + && (!hasDataLen() || dataLen == other.dataLen) + && (!hasDataVersion() || dataVersion == other.dataVersion) + && (!hasWinningStreak() || winningStreak == other.winningStreak) + && (!hasLosingStreak() || losingStreak == other.losingStreak) + && (!hasShopLevel() || shopLevel == other.shopLevel) + && (!hasShopExp() || shopExp == other.shopExp) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasClientData() || clientData.equals(other.clientData)) + && (!hasTracePartnerTypes() || tracePartnerTypes.equals(other.tracePartnerTypes)); + } + + @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.writeRawByte((byte) 24); + output.writeUInt32NoTag(dataLen); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(dataVersion); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(winningStreak); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(losingStreak); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(shopLevel); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(shopExp); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000200) != 0) { + output.writeRawByte((byte) 34); + output.writeStringNoTag(clientData); + } + if ((bitField0_ & 0x00000400) != 0) { + for (int i = 0; i < tracePartnerTypes.length(); i++) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(tracePartnerTypes.array()[i]); + } + } + } + + @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 += 1 + ProtoSink.computeUInt32SizeNoTag(dataLen); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(dataVersion); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(winningStreak); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(losingStreak); + } + if ((bitField0_ & 0x00000040) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(shopLevel); + } + if ((bitField0_ & 0x00000080) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(shopExp); + } + if ((bitField0_ & 0x00000100) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000200) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(clientData); + } + if ((bitField0_ & 0x00000400) != 0) { + size += (1 * tracePartnerTypes.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(tracePartnerTypes); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierMeta 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 != 24) { + break; + } + } + case 24: { + // dataLen + dataLen = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // dataVersion + dataVersion = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // winningStreak + winningStreak = input.readUInt32(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // losingStreak + losingStreak = input.readUInt32(); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 64) { + break; + } + } + case 64: { + // shopLevel + shopLevel = input.readUInt32(); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // shopExp + shopExp = input.readUInt32(); + bitField0_ |= 0x00000080; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000100; + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // clientData + input.readString(clientData); + bitField0_ |= 0x00000200; + tag = input.readTag(); + if (tag != 82) { + break; + } + } + case 82: { + // tracePartnerTypes [packed=true] + input.readPackedUInt32(tracePartnerTypes, tag); + bitField0_ |= 0x00000400; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 80: { + // tracePartnerTypes [packed=false] + tag = input.readRepeatedUInt32(tracePartnerTypes, tag); + bitField0_ |= 0x00000400; + 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.writeUInt32(FieldNames.dataLen, dataLen); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.dataVersion, dataVersion); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.winningStreak, winningStreak); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeUInt32(FieldNames.losingStreak, losingStreak); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeUInt32(FieldNames.shopLevel, shopLevel); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeUInt32(FieldNames.shopExp, shopExp); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000200) != 0) { + output.writeString(FieldNames.clientData, clientData); + } + if ((bitField0_ & 0x00000400) != 0) { + output.writeRepeatedUInt32(FieldNames.tracePartnerTypes, tracePartnerTypes); + } + output.endObject(); + } + + @Override + public SoldierMeta 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 -1187137045: { + if (input.isAtField(FieldNames.dataLen)) { + if (!input.trySkipNullValue()) { + dataLen = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 538270126: { + if (input.isAtField(FieldNames.dataVersion)) { + if (!input.trySkipNullValue()) { + dataVersion = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2011584014: { + if (input.isAtField(FieldNames.winningStreak)) { + if (!input.trySkipNullValue()) { + winningStreak = input.readUInt32(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case -460108592: { + if (input.isAtField(FieldNames.losingStreak)) { + if (!input.trySkipNullValue()) { + losingStreak = input.readUInt32(); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case -117745138: { + if (input.isAtField(FieldNames.shopLevel)) { + if (!input.trySkipNullValue()) { + shopLevel = input.readUInt32(); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + case -563256537: { + if (input.isAtField(FieldNames.shopExp)) { + if (!input.trySkipNullValue()) { + shopExp = input.readUInt32(); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000100; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1199548875: { + if (input.isAtField(FieldNames.clientData)) { + if (!input.trySkipNullValue()) { + input.readString(clientData); + bitField0_ |= 0x00000200; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2082803286: { + if (input.isAtField(FieldNames.tracePartnerTypes)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(tracePartnerTypes); + bitField0_ |= 0x00000400; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SoldierMeta clone() { + return new SoldierMeta().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierMeta parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierMeta(), data).checkInitialized(); + } + + public static SoldierMeta parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierMeta(), input).checkInitialized(); + } + + public static SoldierMeta parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierMeta(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierMeta messages + */ + public static MessageFactory getFactory() { + return SoldierMetaFactory.INSTANCE; + } + + private enum SoldierMetaFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierMeta create() { + return SoldierMeta.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 dataLen = FieldName.forField("DataLen"); + + static final FieldName dataVersion = FieldName.forField("DataVersion"); + + static final FieldName winningStreak = FieldName.forField("WinningStreak"); + + static final FieldName losingStreak = FieldName.forField("LosingStreak"); + + static final FieldName shopLevel = FieldName.forField("ShopLevel"); + + static final FieldName shopExp = FieldName.forField("ShopExp"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName clientData = FieldName.forField("ClientData"); + + static final FieldName tracePartnerTypes = FieldName.forField("TracePartnerTypes"); + } + } + + /** + * Protobuf type {@code SoldierNode} + */ + public static final class SoldierNode extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .SoldierNodeData Data = 1; + */ + private final SoldierNodeData data = SoldierNodeData.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .SoldierCase Cases = 2; + */ + private final RepeatedMessage cases = RepeatedMessage.newEmptyInstance(SoldierCase.getFactory()); + + private SoldierNode() { + } + + /** + * @return a new empty instance of {@code SoldierNode} + */ + public static SoldierNode newInstance() { + return new SoldierNode(); + } + + /** + * optional .SoldierNodeData Data = 1; + * @return whether the data field is set + */ + public boolean hasData() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .SoldierNodeData Data = 1; + * @return this + */ + public SoldierNode clearData() { + bitField0_ &= ~0x00000001; + data.clear(); + return this; + } + + /** + * optional .SoldierNodeData Data = 1; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableData()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SoldierNodeData getData() { + return data; + } + + /** + * optional .SoldierNodeData Data = 1; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public SoldierNodeData getMutableData() { + bitField0_ |= 0x00000001; + return data; + } + + /** + * optional .SoldierNodeData Data = 1; + * @param value the data to set + * @return this + */ + public SoldierNode setData(final SoldierNodeData value) { + bitField0_ |= 0x00000001; + data.copyFrom(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 SoldierNode 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 SoldierNode addNextPackage(final byte value) { + bitField0_ |= 0x00000002; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierNode addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierNode setNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .SoldierCase Cases = 2; + * @return whether the cases field is set + */ + public boolean hasCases() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated .SoldierCase Cases = 2; + * @return this + */ + public SoldierNode clearCases() { + bitField0_ &= ~0x00000004; + cases.clear(); + return this; + } + + /** + * repeated .SoldierCase Cases = 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 #getMutableCases()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getCases() { + return cases; + } + + /** + * repeated .SoldierCase Cases = 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 getMutableCases() { + bitField0_ |= 0x00000004; + return cases; + } + + /** + * repeated .SoldierCase Cases = 2; + * @param value the cases to add + * @return this + */ + public SoldierNode addCases(final SoldierCase value) { + bitField0_ |= 0x00000004; + cases.add(value); + return this; + } + + /** + * repeated .SoldierCase Cases = 2; + * @param values the cases to add + * @return this + */ + public SoldierNode addAllCases(final SoldierCase... values) { + bitField0_ |= 0x00000004; + cases.addAll(values); + return this; + } + + @Override + public SoldierNode copyFrom(final SoldierNode other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + data.copyFrom(other.data); + nextPackage.copyFrom(other.nextPackage); + cases.copyFrom(other.cases); + } + return this; + } + + @Override + public SoldierNode mergeFrom(final SoldierNode other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasData()) { + getMutableData().mergeFrom(other.data); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasCases()) { + getMutableCases().addAll(other.cases); + } + return this; + } + + @Override + public SoldierNode clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + data.clear(); + nextPackage.clear(); + cases.clear(); + return this; + } + + @Override + public SoldierNode clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + data.clearQuick(); + nextPackage.clear(); + cases.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SoldierNode)) { + return false; + } + SoldierNode other = (SoldierNode) o; + return bitField0_ == other.bitField0_ + && (!hasData() || data.equals(other.data)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasCases() || cases.equals(other.cases)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(data); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < cases.length(); i++) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(cases.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(data); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * cases.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(cases); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierNode mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 10: { + // data + input.readMessage(data); + 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: { + // cases + tag = input.readRepeatedMessage(cases, 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.writeMessage(FieldNames.data, data); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedMessage(FieldNames.cases, cases); + } + output.endObject(); + } + + @Override + public SoldierNode mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 2122698: { + if (input.isAtField(FieldNames.data)) { + if (!input.trySkipNullValue()) { + input.readMessage(data); + 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 64879395: { + if (input.isAtField(FieldNames.cases)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(cases); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SoldierNode clone() { + return new SoldierNode().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierNode parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierNode(), data).checkInitialized(); + } + + public static SoldierNode parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierNode(), input).checkInitialized(); + } + + public static SoldierNode parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierNode(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierNode messages + */ + public static MessageFactory getFactory() { + return SoldierNodeFactory.INSTANCE; + } + + private enum SoldierNodeFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierNode create() { + return SoldierNode.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName data = FieldName.forField("Data"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName cases = FieldName.forField("Cases"); + } + } + + /** + * Protobuf type {@code SoldierNodeData} + */ + public static final class SoldierNodeData extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 StageId = 1; + */ + private int stageId; + + /** + * optional uint32 NodeId = 2; + */ + private int nodeId; + + /** + * optional uint32 Type = 3; + */ + private int type; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private SoldierNodeData() { + } + + /** + * @return a new empty instance of {@code SoldierNodeData} + */ + public static SoldierNodeData newInstance() { + return new SoldierNodeData(); + } + + /** + * optional uint32 StageId = 1; + * @return whether the stageId field is set + */ + public boolean hasStageId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 StageId = 1; + * @return this + */ + public SoldierNodeData clearStageId() { + bitField0_ &= ~0x00000001; + stageId = 0; + return this; + } + + /** + * optional uint32 StageId = 1; + * @return the stageId + */ + public int getStageId() { + return stageId; + } + + /** + * optional uint32 StageId = 1; + * @param value the stageId to set + * @return this + */ + public SoldierNodeData setStageId(final int value) { + bitField0_ |= 0x00000001; + stageId = value; + return this; + } + + /** + * optional uint32 NodeId = 2; + * @return whether the nodeId field is set + */ + public boolean hasNodeId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 NodeId = 2; + * @return this + */ + public SoldierNodeData clearNodeId() { + bitField0_ &= ~0x00000002; + nodeId = 0; + return this; + } + + /** + * optional uint32 NodeId = 2; + * @return the nodeId + */ + public int getNodeId() { + return nodeId; + } + + /** + * optional uint32 NodeId = 2; + * @param value the nodeId to set + * @return this + */ + public SoldierNodeData setNodeId(final int value) { + bitField0_ |= 0x00000002; + nodeId = value; + return this; + } + + /** + * optional uint32 Type = 3; + * @return whether the type field is set + */ + public boolean hasType() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 Type = 3; + * @return this + */ + public SoldierNodeData clearType() { + bitField0_ &= ~0x00000004; + type = 0; + return this; + } + + /** + * optional uint32 Type = 3; + * @return the type + */ + public int getType() { + return type; + } + + /** + * optional uint32 Type = 3; + * @param value the type to set + * @return this + */ + public SoldierNodeData setType(final int value) { + bitField0_ |= 0x00000004; + type = 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 SoldierNodeData 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 SoldierNodeData addNextPackage(final byte value) { + bitField0_ |= 0x00000008; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierNodeData addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierNodeData setNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.copyFrom(values); + return this; + } + + @Override + public SoldierNodeData copyFrom(final SoldierNodeData other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + stageId = other.stageId; + nodeId = other.nodeId; + type = other.type; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierNodeData mergeFrom(final SoldierNodeData other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasStageId()) { + setStageId(other.stageId); + } + if (other.hasNodeId()) { + setNodeId(other.nodeId); + } + if (other.hasType()) { + setType(other.type); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierNodeData clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + stageId = 0; + nodeId = 0; + type = 0; + nextPackage.clear(); + return this; + } + + @Override + public SoldierNodeData 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 SoldierNodeData)) { + return false; + } + SoldierNodeData other = (SoldierNodeData) o; + return bitField0_ == other.bitField0_ + && (!hasStageId() || stageId == other.stageId) + && (!hasNodeId() || nodeId == other.nodeId) + && (!hasType() || type == other.type) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(stageId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(nodeId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(type); + } + 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(stageId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(nodeId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(type); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierNodeData mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // stageId + stageId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // nodeId + nodeId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // type + type = 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.stageId, stageId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.nodeId, nodeId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.type, type); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public SoldierNodeData mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -232874855: { + if (input.isAtField(FieldNames.stageId)) { + if (!input.trySkipNullValue()) { + stageId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1956304163: { + if (input.isAtField(FieldNames.nodeId)) { + if (!input.trySkipNullValue()) { + nodeId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2622298: { + if (input.isAtField(FieldNames.type)) { + if (!input.trySkipNullValue()) { + type = 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 SoldierNodeData clone() { + return new SoldierNodeData().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierNodeData parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierNodeData(), data).checkInitialized(); + } + + public static SoldierNodeData parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierNodeData(), input).checkInitialized(); + } + + public static SoldierNodeData parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierNodeData(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierNodeData messages + */ + public static MessageFactory getFactory() { + return SoldierNodeDataFactory.INSTANCE; + } + + private enum SoldierNodeDataFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierNodeData create() { + return SoldierNodeData.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName stageId = FieldName.forField("StageId"); + + static final FieldName nodeId = FieldName.forField("NodeId"); + + static final FieldName type = FieldName.forField("Type"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code SoldierBag} + */ + public static final class SoldierBag extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .SoldierDeploy Deploy = 1; + */ + private final SoldierDeploy deploy = SoldierDeploy.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .SoldierRes Res = 2; + */ + private final RepeatedMessage res = RepeatedMessage.newEmptyInstance(SoldierRes.getFactory()); + + /** + * repeated .SoldierChess Chess = 3; + */ + private final RepeatedMessage chess = RepeatedMessage.newEmptyInstance(SoldierChess.getFactory()); + + /** + * repeated .SoldierCard Cards = 4; + */ + private final RepeatedMessage cards = RepeatedMessage.newEmptyInstance(SoldierCard.getFactory()); + + /** + * repeated .SoldierPartner Partners = 5; + */ + private final RepeatedMessage partners = RepeatedMessage.newEmptyInstance(SoldierPartner.getFactory()); + + private SoldierBag() { + } + + /** + * @return a new empty instance of {@code SoldierBag} + */ + public static SoldierBag newInstance() { + return new SoldierBag(); + } + + /** + * optional .SoldierDeploy Deploy = 1; + * @return whether the deploy field is set + */ + public boolean hasDeploy() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .SoldierDeploy Deploy = 1; + * @return this + */ + public SoldierBag clearDeploy() { + bitField0_ &= ~0x00000001; + deploy.clear(); + return this; + } + + /** + * optional .SoldierDeploy Deploy = 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 #getMutableDeploy()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SoldierDeploy getDeploy() { + return deploy; + } + + /** + * optional .SoldierDeploy Deploy = 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 SoldierDeploy getMutableDeploy() { + bitField0_ |= 0x00000001; + return deploy; + } + + /** + * optional .SoldierDeploy Deploy = 1; + * @param value the deploy to set + * @return this + */ + public SoldierBag setDeploy(final SoldierDeploy value) { + bitField0_ |= 0x00000001; + deploy.copyFrom(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 SoldierBag 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 SoldierBag addNextPackage(final byte value) { + bitField0_ |= 0x00000002; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierBag addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierBag setNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .SoldierRes Res = 2; + * @return whether the res field is set + */ + public boolean hasRes() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated .SoldierRes Res = 2; + * @return this + */ + public SoldierBag clearRes() { + bitField0_ &= ~0x00000004; + res.clear(); + return this; + } + + /** + * repeated .SoldierRes Res = 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 #getMutableRes()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getRes() { + return res; + } + + /** + * repeated .SoldierRes Res = 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 getMutableRes() { + bitField0_ |= 0x00000004; + return res; + } + + /** + * repeated .SoldierRes Res = 2; + * @param value the res to add + * @return this + */ + public SoldierBag addRes(final SoldierRes value) { + bitField0_ |= 0x00000004; + res.add(value); + return this; + } + + /** + * repeated .SoldierRes Res = 2; + * @param values the res to add + * @return this + */ + public SoldierBag addAllRes(final SoldierRes... values) { + bitField0_ |= 0x00000004; + res.addAll(values); + return this; + } + + /** + * repeated .SoldierChess Chess = 3; + * @return whether the chess field is set + */ + public boolean hasChess() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated .SoldierChess Chess = 3; + * @return this + */ + public SoldierBag clearChess() { + bitField0_ &= ~0x00000008; + chess.clear(); + return this; + } + + /** + * repeated .SoldierChess Chess = 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 #getMutableChess()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getChess() { + return chess; + } + + /** + * repeated .SoldierChess Chess = 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 getMutableChess() { + bitField0_ |= 0x00000008; + return chess; + } + + /** + * repeated .SoldierChess Chess = 3; + * @param value the chess to add + * @return this + */ + public SoldierBag addChess(final SoldierChess value) { + bitField0_ |= 0x00000008; + chess.add(value); + return this; + } + + /** + * repeated .SoldierChess Chess = 3; + * @param values the chess to add + * @return this + */ + public SoldierBag addAllChess(final SoldierChess... values) { + bitField0_ |= 0x00000008; + chess.addAll(values); + return this; + } + + /** + * repeated .SoldierCard Cards = 4; + * @return whether the cards field is set + */ + public boolean hasCards() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * repeated .SoldierCard Cards = 4; + * @return this + */ + public SoldierBag clearCards() { + bitField0_ &= ~0x00000010; + cards.clear(); + return this; + } + + /** + * repeated .SoldierCard Cards = 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 #getMutableCards()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getCards() { + return cards; + } + + /** + * repeated .SoldierCard Cards = 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 getMutableCards() { + bitField0_ |= 0x00000010; + return cards; + } + + /** + * repeated .SoldierCard Cards = 4; + * @param value the cards to add + * @return this + */ + public SoldierBag addCards(final SoldierCard value) { + bitField0_ |= 0x00000010; + cards.add(value); + return this; + } + + /** + * repeated .SoldierCard Cards = 4; + * @param values the cards to add + * @return this + */ + public SoldierBag addAllCards(final SoldierCard... values) { + bitField0_ |= 0x00000010; + cards.addAll(values); + return this; + } + + /** + * repeated .SoldierPartner Partners = 5; + * @return whether the partners field is set + */ + public boolean hasPartners() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * repeated .SoldierPartner Partners = 5; + * @return this + */ + public SoldierBag clearPartners() { + bitField0_ &= ~0x00000020; + partners.clear(); + return this; + } + + /** + * repeated .SoldierPartner Partners = 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 #getMutablePartners()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getPartners() { + return partners; + } + + /** + * repeated .SoldierPartner Partners = 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 getMutablePartners() { + bitField0_ |= 0x00000020; + return partners; + } + + /** + * repeated .SoldierPartner Partners = 5; + * @param value the partners to add + * @return this + */ + public SoldierBag addPartners(final SoldierPartner value) { + bitField0_ |= 0x00000020; + partners.add(value); + return this; + } + + /** + * repeated .SoldierPartner Partners = 5; + * @param values the partners to add + * @return this + */ + public SoldierBag addAllPartners(final SoldierPartner... values) { + bitField0_ |= 0x00000020; + partners.addAll(values); + return this; + } + + @Override + public SoldierBag copyFrom(final SoldierBag other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + deploy.copyFrom(other.deploy); + nextPackage.copyFrom(other.nextPackage); + res.copyFrom(other.res); + chess.copyFrom(other.chess); + cards.copyFrom(other.cards); + partners.copyFrom(other.partners); + } + return this; + } + + @Override + public SoldierBag mergeFrom(final SoldierBag other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasDeploy()) { + getMutableDeploy().mergeFrom(other.deploy); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasRes()) { + getMutableRes().addAll(other.res); + } + if (other.hasChess()) { + getMutableChess().addAll(other.chess); + } + if (other.hasCards()) { + getMutableCards().addAll(other.cards); + } + if (other.hasPartners()) { + getMutablePartners().addAll(other.partners); + } + return this; + } + + @Override + public SoldierBag clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + deploy.clear(); + nextPackage.clear(); + res.clear(); + chess.clear(); + cards.clear(); + partners.clear(); + return this; + } + + @Override + public SoldierBag clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + deploy.clearQuick(); + nextPackage.clear(); + res.clearQuick(); + chess.clearQuick(); + cards.clearQuick(); + partners.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SoldierBag)) { + return false; + } + SoldierBag other = (SoldierBag) o; + return bitField0_ == other.bitField0_ + && (!hasDeploy() || deploy.equals(other.deploy)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasRes() || res.equals(other.res)) + && (!hasChess() || chess.equals(other.chess)) + && (!hasCards() || cards.equals(other.cards)) + && (!hasPartners() || partners.equals(other.partners)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(deploy); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < res.length(); i++) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(res.get(i)); + } + } + if ((bitField0_ & 0x00000008) != 0) { + for (int i = 0; i < chess.length(); i++) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(chess.get(i)); + } + } + if ((bitField0_ & 0x00000010) != 0) { + for (int i = 0; i < cards.length(); i++) { + output.writeRawByte((byte) 34); + output.writeMessageNoTag(cards.get(i)); + } + } + if ((bitField0_ & 0x00000020) != 0) { + for (int i = 0; i < partners.length(); i++) { + output.writeRawByte((byte) 42); + output.writeMessageNoTag(partners.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(deploy); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * res.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(res); + } + if ((bitField0_ & 0x00000008) != 0) { + size += (1 * chess.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(chess); + } + if ((bitField0_ & 0x00000010) != 0) { + size += (1 * cards.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(cards); + } + if ((bitField0_ & 0x00000020) != 0) { + size += (1 * partners.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(partners); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierBag mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 10: { + // deploy + input.readMessage(deploy); + 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: { + // res + tag = input.readRepeatedMessage(res, tag); + bitField0_ |= 0x00000004; + if (tag != 26) { + break; + } + } + case 26: { + // chess + tag = input.readRepeatedMessage(chess, tag); + bitField0_ |= 0x00000008; + if (tag != 34) { + break; + } + } + case 34: { + // cards + tag = input.readRepeatedMessage(cards, tag); + bitField0_ |= 0x00000010; + if (tag != 42) { + break; + } + } + case 42: { + // partners + tag = input.readRepeatedMessage(partners, 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.writeMessage(FieldNames.deploy, deploy); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedMessage(FieldNames.res, res); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedMessage(FieldNames.chess, chess); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRepeatedMessage(FieldNames.cards, cards); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRepeatedMessage(FieldNames.partners, partners); + } + output.endObject(); + } + + @Override + public SoldierBag mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 2043501831: { + if (input.isAtField(FieldNames.deploy)) { + if (!input.trySkipNullValue()) { + input.readMessage(deploy); + 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 82048: { + if (input.isAtField(FieldNames.res)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(res); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 65074912: { + if (input.isAtField(FieldNames.chess)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(chess); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 64878403: { + if (input.isAtField(FieldNames.cards)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(cards); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1253646539: { + if (input.isAtField(FieldNames.partners)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(partners); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SoldierBag clone() { + return new SoldierBag().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierBag parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierBag(), data).checkInitialized(); + } + + public static SoldierBag parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierBag(), input).checkInitialized(); + } + + public static SoldierBag parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierBag(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierBag messages + */ + public static MessageFactory getFactory() { + return SoldierBagFactory.INSTANCE; + } + + private enum SoldierBagFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierBag create() { + return SoldierBag.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName deploy = FieldName.forField("Deploy"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName res = FieldName.forField("Res"); + + static final FieldName chess = FieldName.forField("Chess"); + + static final FieldName cards = FieldName.forField("Cards"); + + static final FieldName partners = FieldName.forField("Partners"); + } + } + + /** + * Protobuf type {@code SoldierRes} + */ + public static final class SoldierRes extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional int32 Qty = 2; + */ + private int qty; + + /** + * optional uint32 Tid = 1; + */ + private int tid; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private SoldierRes() { + } + + /** + * @return a new empty instance of {@code SoldierRes} + */ + public static SoldierRes newInstance() { + return new SoldierRes(); + } + + /** + * optional int32 Qty = 2; + * @return whether the qty field is set + */ + public boolean hasQty() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional int32 Qty = 2; + * @return this + */ + public SoldierRes clearQty() { + bitField0_ &= ~0x00000001; + qty = 0; + return this; + } + + /** + * optional int32 Qty = 2; + * @return the qty + */ + public int getQty() { + return qty; + } + + /** + * optional int32 Qty = 2; + * @param value the qty to set + * @return this + */ + public SoldierRes setQty(final int value) { + bitField0_ |= 0x00000001; + qty = value; + return this; + } + + /** + * optional uint32 Tid = 1; + * @return whether the tid field is set + */ + public boolean hasTid() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 Tid = 1; + * @return this + */ + public SoldierRes clearTid() { + bitField0_ &= ~0x00000002; + tid = 0; + return this; + } + + /** + * optional uint32 Tid = 1; + * @return the tid + */ + public int getTid() { + return tid; + } + + /** + * optional uint32 Tid = 1; + * @param value the tid to set + * @return this + */ + public SoldierRes setTid(final int value) { + bitField0_ |= 0x00000002; + tid = 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 SoldierRes 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 SoldierRes addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierRes addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierRes setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + @Override + public SoldierRes copyFrom(final SoldierRes other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + qty = other.qty; + tid = other.tid; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierRes mergeFrom(final SoldierRes other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasQty()) { + setQty(other.qty); + } + if (other.hasTid()) { + setTid(other.tid); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierRes clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + qty = 0; + tid = 0; + nextPackage.clear(); + return this; + } + + @Override + public SoldierRes 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 SoldierRes)) { + return false; + } + SoldierRes other = (SoldierRes) o; + return bitField0_ == other.bitField0_ + && (!hasQty() || qty == other.qty) + && (!hasTid() || tid == other.tid) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeInt32NoTag(qty); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(tid); + } + 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.computeInt32SizeNoTag(qty); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(tid); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierRes mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // qty + qty = input.readInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 8) { + break; + } + } + case 8: { + // tid + tid = 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.writeInt32(FieldNames.qty, qty); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.tid, tid); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public SoldierRes mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 81558: { + if (input.isAtField(FieldNames.qty)) { + if (!input.trySkipNullValue()) { + qty = input.readInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 84079: { + if (input.isAtField(FieldNames.tid)) { + if (!input.trySkipNullValue()) { + tid = 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 SoldierRes clone() { + return new SoldierRes().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierRes parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierRes(), data).checkInitialized(); + } + + public static SoldierRes parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierRes(), input).checkInitialized(); + } + + public static SoldierRes parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierRes(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierRes messages + */ + public static MessageFactory getFactory() { + return SoldierResFactory.INSTANCE; + } + + private enum SoldierResFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierRes create() { + return SoldierRes.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName qty = FieldName.forField("Qty"); + + static final FieldName tid = FieldName.forField("Tid"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code SoldierDeploy} + */ + public static final class SoldierDeploy extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .SoldierChess Master = 1; + */ + private final RepeatedMessage master = RepeatedMessage.newEmptyInstance(SoldierChess.getFactory()); + + /** + * repeated .SoldierChess Assist = 2; + */ + private final RepeatedMessage assist = RepeatedMessage.newEmptyInstance(SoldierChess.getFactory()); + + /** + * repeated .SoldierChess Waiting = 3; + */ + private final RepeatedMessage waiting = RepeatedMessage.newEmptyInstance(SoldierChess.getFactory()); + + private SoldierDeploy() { + } + + /** + * @return a new empty instance of {@code SoldierDeploy} + */ + public static SoldierDeploy newInstance() { + return new SoldierDeploy(); + } + + /** + * 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 SoldierDeploy 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 SoldierDeploy addNextPackage(final byte value) { + bitField0_ |= 0x00000001; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierDeploy addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierDeploy setNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .SoldierChess Master = 1; + * @return whether the master field is set + */ + public boolean hasMaster() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated .SoldierChess Master = 1; + * @return this + */ + public SoldierDeploy clearMaster() { + bitField0_ &= ~0x00000002; + master.clear(); + return this; + } + + /** + * repeated .SoldierChess Master = 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 #getMutableMaster()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getMaster() { + return master; + } + + /** + * repeated .SoldierChess Master = 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 getMutableMaster() { + bitField0_ |= 0x00000002; + return master; + } + + /** + * repeated .SoldierChess Master = 1; + * @param value the master to add + * @return this + */ + public SoldierDeploy addMaster(final SoldierChess value) { + bitField0_ |= 0x00000002; + master.add(value); + return this; + } + + /** + * repeated .SoldierChess Master = 1; + * @param values the master to add + * @return this + */ + public SoldierDeploy addAllMaster(final SoldierChess... values) { + bitField0_ |= 0x00000002; + master.addAll(values); + return this; + } + + /** + * repeated .SoldierChess Assist = 2; + * @return whether the assist field is set + */ + public boolean hasAssist() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated .SoldierChess Assist = 2; + * @return this + */ + public SoldierDeploy clearAssist() { + bitField0_ &= ~0x00000004; + assist.clear(); + return this; + } + + /** + * repeated .SoldierChess Assist = 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 #getMutableAssist()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getAssist() { + return assist; + } + + /** + * repeated .SoldierChess Assist = 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 getMutableAssist() { + bitField0_ |= 0x00000004; + return assist; + } + + /** + * repeated .SoldierChess Assist = 2; + * @param value the assist to add + * @return this + */ + public SoldierDeploy addAssist(final SoldierChess value) { + bitField0_ |= 0x00000004; + assist.add(value); + return this; + } + + /** + * repeated .SoldierChess Assist = 2; + * @param values the assist to add + * @return this + */ + public SoldierDeploy addAllAssist(final SoldierChess... values) { + bitField0_ |= 0x00000004; + assist.addAll(values); + return this; + } + + /** + * repeated .SoldierChess Waiting = 3; + * @return whether the waiting field is set + */ + public boolean hasWaiting() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated .SoldierChess Waiting = 3; + * @return this + */ + public SoldierDeploy clearWaiting() { + bitField0_ &= ~0x00000008; + waiting.clear(); + return this; + } + + /** + * repeated .SoldierChess Waiting = 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 #getMutableWaiting()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getWaiting() { + return waiting; + } + + /** + * repeated .SoldierChess Waiting = 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 getMutableWaiting() { + bitField0_ |= 0x00000008; + return waiting; + } + + /** + * repeated .SoldierChess Waiting = 3; + * @param value the waiting to add + * @return this + */ + public SoldierDeploy addWaiting(final SoldierChess value) { + bitField0_ |= 0x00000008; + waiting.add(value); + return this; + } + + /** + * repeated .SoldierChess Waiting = 3; + * @param values the waiting to add + * @return this + */ + public SoldierDeploy addAllWaiting(final SoldierChess... values) { + bitField0_ |= 0x00000008; + waiting.addAll(values); + return this; + } + + @Override + public SoldierDeploy copyFrom(final SoldierDeploy other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + nextPackage.copyFrom(other.nextPackage); + master.copyFrom(other.master); + assist.copyFrom(other.assist); + waiting.copyFrom(other.waiting); + } + return this; + } + + @Override + public SoldierDeploy mergeFrom(final SoldierDeploy other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasMaster()) { + getMutableMaster().addAll(other.master); + } + if (other.hasAssist()) { + getMutableAssist().addAll(other.assist); + } + if (other.hasWaiting()) { + getMutableWaiting().addAll(other.waiting); + } + return this; + } + + @Override + public SoldierDeploy clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + master.clear(); + assist.clear(); + waiting.clear(); + return this; + } + + @Override + public SoldierDeploy clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + master.clearQuick(); + assist.clearQuick(); + waiting.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SoldierDeploy)) { + return false; + } + SoldierDeploy other = (SoldierDeploy) o; + return bitField0_ == other.bitField0_ + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasMaster() || master.equals(other.master)) + && (!hasAssist() || assist.equals(other.assist)) + && (!hasWaiting() || waiting.equals(other.waiting)); + } + + @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 < master.length(); i++) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(master.get(i)); + } + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < assist.length(); i++) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(assist.get(i)); + } + } + if ((bitField0_ & 0x00000008) != 0) { + for (int i = 0; i < waiting.length(); i++) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(waiting.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * master.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(master); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * assist.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(assist); + } + if ((bitField0_ & 0x00000008) != 0) { + size += (1 * waiting.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(waiting); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierDeploy 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: { + // master + tag = input.readRepeatedMessage(master, tag); + bitField0_ |= 0x00000002; + if (tag != 18) { + break; + } + } + case 18: { + // assist + tag = input.readRepeatedMessage(assist, tag); + bitField0_ |= 0x00000004; + if (tag != 26) { + break; + } + } + case 26: { + // waiting + tag = input.readRepeatedMessage(waiting, 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.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedMessage(FieldNames.master, master); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedMessage(FieldNames.assist, assist); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedMessage(FieldNames.waiting, waiting); + } + output.endObject(); + } + + @Override + public SoldierDeploy 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 -1997400446: { + if (input.isAtField(FieldNames.master)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(master); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1970630281: { + if (input.isAtField(FieldNames.assist)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(assist); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1514000851: { + if (input.isAtField(FieldNames.waiting)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(waiting); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SoldierDeploy clone() { + return new SoldierDeploy().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierDeploy parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierDeploy(), data).checkInitialized(); + } + + public static SoldierDeploy parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierDeploy(), input).checkInitialized(); + } + + public static SoldierDeploy parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierDeploy(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierDeploy messages + */ + public static MessageFactory getFactory() { + return SoldierDeployFactory.INSTANCE; + } + + private enum SoldierDeployFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierDeploy create() { + return SoldierDeploy.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName master = FieldName.forField("Master"); + + static final FieldName assist = FieldName.forField("Assist"); + + static final FieldName waiting = FieldName.forField("Waiting"); + } + } + + /** + * Protobuf type {@code SoldierCase} + */ + public static final class SoldierCase extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Id = 1; + */ + private int id; + + /** + * optional .SelectCardData SelectCard = 2; + */ + private final SelectCardData selectCard = SelectCardData.newInstance(); + + /** + * optional .ShopCaseData ShopCase = 3; + */ + private final ShopCaseData shopCase = ShopCaseData.newInstance(); + + /** + * optional .FightCaseData FightCase = 4; + */ + private final FightCaseData fightCase = FightCaseData.newInstance(); + + /** + * optional .SoldierBattleCaseData BattleCase = 5; + */ + private final SoldierBattleCaseData battleCase = SoldierBattleCaseData.newInstance(); + + /** + * optional .EventSettlementOfDisputeCaseData EventSettlementOfDispute = 6; + */ + private final EventSettlementOfDisputeCaseData eventSettlementOfDispute = EventSettlementOfDisputeCaseData.newInstance(); + + /** + * optional .EventSettlementOfDisputeBattleCaseData EventSettlementOfDisputeBattle = 7; + */ + private final EventSettlementOfDisputeBattleCaseData eventSettlementOfDisputeBattle = EventSettlementOfDisputeBattleCaseData.newInstance(); + + /** + * optional .DeploySyncCaseData DeploySyncCase = 14; + */ + private final DeploySyncCaseData deploySyncCase = DeploySyncCaseData.newInstance(); + + /** + * optional .ClientEventCaseData ClientEventCase = 15; + */ + private final ClientEventCaseData clientEventCase = ClientEventCaseData.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private SoldierCase() { + } + + /** + * @return a new empty instance of {@code SoldierCase} + */ + public static SoldierCase newInstance() { + return new SoldierCase(); + } + + /** + * 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 SoldierCase 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 SoldierCase setId(final int value) { + bitField0_ |= 0x00000001; + id = value; + return this; + } + + /** + * optional .SelectCardData SelectCard = 2; + * @return whether the selectCard field is set + */ + public boolean hasSelectCard() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .SelectCardData SelectCard = 2; + * @return this + */ + public SoldierCase clearSelectCard() { + bitField0_ &= ~0x00000002; + selectCard.clear(); + return this; + } + + /** + * optional .SelectCardData SelectCard = 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 #getMutableSelectCard()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SelectCardData getSelectCard() { + return selectCard; + } + + /** + * optional .SelectCardData SelectCard = 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 SelectCardData getMutableSelectCard() { + bitField0_ |= 0x00000002; + return selectCard; + } + + /** + * optional .SelectCardData SelectCard = 2; + * @param value the selectCard to set + * @return this + */ + public SoldierCase setSelectCard(final SelectCardData value) { + bitField0_ |= 0x00000002; + selectCard.copyFrom(value); + return this; + } + + /** + * optional .ShopCaseData ShopCase = 3; + * @return whether the shopCase field is set + */ + public boolean hasShopCase() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .ShopCaseData ShopCase = 3; + * @return this + */ + public SoldierCase clearShopCase() { + bitField0_ &= ~0x00000004; + shopCase.clear(); + return this; + } + + /** + * optional .ShopCaseData ShopCase = 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 #getMutableShopCase()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ShopCaseData getShopCase() { + return shopCase; + } + + /** + * optional .ShopCaseData ShopCase = 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 ShopCaseData getMutableShopCase() { + bitField0_ |= 0x00000004; + return shopCase; + } + + /** + * optional .ShopCaseData ShopCase = 3; + * @param value the shopCase to set + * @return this + */ + public SoldierCase setShopCase(final ShopCaseData value) { + bitField0_ |= 0x00000004; + shopCase.copyFrom(value); + return this; + } + + /** + * optional .FightCaseData FightCase = 4; + * @return whether the fightCase field is set + */ + public boolean hasFightCase() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .FightCaseData FightCase = 4; + * @return this + */ + public SoldierCase clearFightCase() { + bitField0_ &= ~0x00000008; + fightCase.clear(); + return this; + } + + /** + * optional .FightCaseData FightCase = 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 #getMutableFightCase()} if you want to modify it. + * + * @return internal storage object for reading + */ + public FightCaseData getFightCase() { + return fightCase; + } + + /** + * optional .FightCaseData FightCase = 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 FightCaseData getMutableFightCase() { + bitField0_ |= 0x00000008; + return fightCase; + } + + /** + * optional .FightCaseData FightCase = 4; + * @param value the fightCase to set + * @return this + */ + public SoldierCase setFightCase(final FightCaseData value) { + bitField0_ |= 0x00000008; + fightCase.copyFrom(value); + return this; + } + + /** + * optional .SoldierBattleCaseData BattleCase = 5; + * @return whether the battleCase field is set + */ + public boolean hasBattleCase() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional .SoldierBattleCaseData BattleCase = 5; + * @return this + */ + public SoldierCase clearBattleCase() { + bitField0_ &= ~0x00000010; + battleCase.clear(); + return this; + } + + /** + * optional .SoldierBattleCaseData BattleCase = 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 #getMutableBattleCase()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SoldierBattleCaseData getBattleCase() { + return battleCase; + } + + /** + * optional .SoldierBattleCaseData BattleCase = 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 SoldierBattleCaseData getMutableBattleCase() { + bitField0_ |= 0x00000010; + return battleCase; + } + + /** + * optional .SoldierBattleCaseData BattleCase = 5; + * @param value the battleCase to set + * @return this + */ + public SoldierCase setBattleCase(final SoldierBattleCaseData value) { + bitField0_ |= 0x00000010; + battleCase.copyFrom(value); + return this; + } + + /** + * optional .EventSettlementOfDisputeCaseData EventSettlementOfDispute = 6; + * @return whether the eventSettlementOfDispute field is set + */ + public boolean hasEventSettlementOfDispute() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional .EventSettlementOfDisputeCaseData EventSettlementOfDispute = 6; + * @return this + */ + public SoldierCase clearEventSettlementOfDispute() { + bitField0_ &= ~0x00000020; + eventSettlementOfDispute.clear(); + return this; + } + + /** + * optional .EventSettlementOfDisputeCaseData EventSettlementOfDispute = 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 #getMutableEventSettlementOfDispute()} if you want to modify it. + * + * @return internal storage object for reading + */ + public EventSettlementOfDisputeCaseData getEventSettlementOfDispute() { + return eventSettlementOfDispute; + } + + /** + * optional .EventSettlementOfDisputeCaseData EventSettlementOfDispute = 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 EventSettlementOfDisputeCaseData getMutableEventSettlementOfDispute() { + bitField0_ |= 0x00000020; + return eventSettlementOfDispute; + } + + /** + * optional .EventSettlementOfDisputeCaseData EventSettlementOfDispute = 6; + * @param value the eventSettlementOfDispute to set + * @return this + */ + public SoldierCase setEventSettlementOfDispute(final EventSettlementOfDisputeCaseData value) { + bitField0_ |= 0x00000020; + eventSettlementOfDispute.copyFrom(value); + return this; + } + + /** + * optional .EventSettlementOfDisputeBattleCaseData EventSettlementOfDisputeBattle = 7; + * @return whether the eventSettlementOfDisputeBattle field is set + */ + public boolean hasEventSettlementOfDisputeBattle() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional .EventSettlementOfDisputeBattleCaseData EventSettlementOfDisputeBattle = 7; + * @return this + */ + public SoldierCase clearEventSettlementOfDisputeBattle() { + bitField0_ &= ~0x00000040; + eventSettlementOfDisputeBattle.clear(); + return this; + } + + /** + * optional .EventSettlementOfDisputeBattleCaseData EventSettlementOfDisputeBattle = 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 #getMutableEventSettlementOfDisputeBattle()} if you want to modify it. + * + * @return internal storage object for reading + */ + public EventSettlementOfDisputeBattleCaseData getEventSettlementOfDisputeBattle() { + return eventSettlementOfDisputeBattle; + } + + /** + * optional .EventSettlementOfDisputeBattleCaseData EventSettlementOfDisputeBattle = 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 EventSettlementOfDisputeBattleCaseData getMutableEventSettlementOfDisputeBattle() { + bitField0_ |= 0x00000040; + return eventSettlementOfDisputeBattle; + } + + /** + * optional .EventSettlementOfDisputeBattleCaseData EventSettlementOfDisputeBattle = 7; + * @param value the eventSettlementOfDisputeBattle to set + * @return this + */ + public SoldierCase setEventSettlementOfDisputeBattle( + final EventSettlementOfDisputeBattleCaseData value) { + bitField0_ |= 0x00000040; + eventSettlementOfDisputeBattle.copyFrom(value); + return this; + } + + /** + * optional .DeploySyncCaseData DeploySyncCase = 14; + * @return whether the deploySyncCase field is set + */ + public boolean hasDeploySyncCase() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * optional .DeploySyncCaseData DeploySyncCase = 14; + * @return this + */ + public SoldierCase clearDeploySyncCase() { + bitField0_ &= ~0x00000080; + deploySyncCase.clear(); + return this; + } + + /** + * optional .DeploySyncCaseData DeploySyncCase = 14; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableDeploySyncCase()} if you want to modify it. + * + * @return internal storage object for reading + */ + public DeploySyncCaseData getDeploySyncCase() { + return deploySyncCase; + } + + /** + * optional .DeploySyncCaseData DeploySyncCase = 14; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public DeploySyncCaseData getMutableDeploySyncCase() { + bitField0_ |= 0x00000080; + return deploySyncCase; + } + + /** + * optional .DeploySyncCaseData DeploySyncCase = 14; + * @param value the deploySyncCase to set + * @return this + */ + public SoldierCase setDeploySyncCase(final DeploySyncCaseData value) { + bitField0_ |= 0x00000080; + deploySyncCase.copyFrom(value); + return this; + } + + /** + * optional .ClientEventCaseData ClientEventCase = 15; + * @return whether the clientEventCase field is set + */ + public boolean hasClientEventCase() { + return (bitField0_ & 0x00000100) != 0; + } + + /** + * optional .ClientEventCaseData ClientEventCase = 15; + * @return this + */ + public SoldierCase clearClientEventCase() { + bitField0_ &= ~0x00000100; + clientEventCase.clear(); + return this; + } + + /** + * optional .ClientEventCaseData ClientEventCase = 15; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableClientEventCase()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ClientEventCaseData getClientEventCase() { + return clientEventCase; + } + + /** + * optional .ClientEventCaseData ClientEventCase = 15; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public ClientEventCaseData getMutableClientEventCase() { + bitField0_ |= 0x00000100; + return clientEventCase; + } + + /** + * optional .ClientEventCaseData ClientEventCase = 15; + * @param value the clientEventCase to set + * @return this + */ + public SoldierCase setClientEventCase(final ClientEventCaseData value) { + bitField0_ |= 0x00000100; + clientEventCase.copyFrom(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 SoldierCase 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 SoldierCase addNextPackage(final byte value) { + bitField0_ |= 0x00000200; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierCase addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000200; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierCase setNextPackage(final byte... values) { + bitField0_ |= 0x00000200; + nextPackage.copyFrom(values); + return this; + } + + @Override + public SoldierCase copyFrom(final SoldierCase other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + id = other.id; + selectCard.copyFrom(other.selectCard); + shopCase.copyFrom(other.shopCase); + fightCase.copyFrom(other.fightCase); + battleCase.copyFrom(other.battleCase); + eventSettlementOfDispute.copyFrom(other.eventSettlementOfDispute); + eventSettlementOfDisputeBattle.copyFrom(other.eventSettlementOfDisputeBattle); + deploySyncCase.copyFrom(other.deploySyncCase); + clientEventCase.copyFrom(other.clientEventCase); + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierCase mergeFrom(final SoldierCase other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasId()) { + setId(other.id); + } + if (other.hasSelectCard()) { + getMutableSelectCard().mergeFrom(other.selectCard); + } + if (other.hasShopCase()) { + getMutableShopCase().mergeFrom(other.shopCase); + } + if (other.hasFightCase()) { + getMutableFightCase().mergeFrom(other.fightCase); + } + if (other.hasBattleCase()) { + getMutableBattleCase().mergeFrom(other.battleCase); + } + if (other.hasEventSettlementOfDispute()) { + getMutableEventSettlementOfDispute().mergeFrom(other.eventSettlementOfDispute); + } + if (other.hasEventSettlementOfDisputeBattle()) { + getMutableEventSettlementOfDisputeBattle().mergeFrom(other.eventSettlementOfDisputeBattle); + } + if (other.hasDeploySyncCase()) { + getMutableDeploySyncCase().mergeFrom(other.deploySyncCase); + } + if (other.hasClientEventCase()) { + getMutableClientEventCase().mergeFrom(other.clientEventCase); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierCase clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + id = 0; + selectCard.clear(); + shopCase.clear(); + fightCase.clear(); + battleCase.clear(); + eventSettlementOfDispute.clear(); + eventSettlementOfDisputeBattle.clear(); + deploySyncCase.clear(); + clientEventCase.clear(); + nextPackage.clear(); + return this; + } + + @Override + public SoldierCase clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + selectCard.clearQuick(); + shopCase.clearQuick(); + fightCase.clearQuick(); + battleCase.clearQuick(); + eventSettlementOfDispute.clearQuick(); + eventSettlementOfDisputeBattle.clearQuick(); + deploySyncCase.clearQuick(); + clientEventCase.clearQuick(); + nextPackage.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SoldierCase)) { + return false; + } + SoldierCase other = (SoldierCase) o; + return bitField0_ == other.bitField0_ + && (!hasId() || id == other.id) + && (!hasSelectCard() || selectCard.equals(other.selectCard)) + && (!hasShopCase() || shopCase.equals(other.shopCase)) + && (!hasFightCase() || fightCase.equals(other.fightCase)) + && (!hasBattleCase() || battleCase.equals(other.battleCase)) + && (!hasEventSettlementOfDispute() || eventSettlementOfDispute.equals(other.eventSettlementOfDispute)) + && (!hasEventSettlementOfDisputeBattle() || eventSettlementOfDisputeBattle.equals(other.eventSettlementOfDisputeBattle)) + && (!hasDeploySyncCase() || deploySyncCase.equals(other.deploySyncCase)) + && (!hasClientEventCase() || clientEventCase.equals(other.clientEventCase)) + && (!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) 18); + output.writeMessageNoTag(selectCard); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(shopCase); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 34); + output.writeMessageNoTag(fightCase); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 42); + output.writeMessageNoTag(battleCase); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 50); + output.writeMessageNoTag(eventSettlementOfDispute); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawByte((byte) 58); + output.writeMessageNoTag(eventSettlementOfDisputeBattle); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRawByte((byte) 114); + output.writeMessageNoTag(deploySyncCase); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeRawByte((byte) 122); + output.writeMessageNoTag(clientEventCase); + } + if ((bitField0_ & 0x00000200) != 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.computeMessageSizeNoTag(selectCard); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(shopCase); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(fightCase); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(battleCase); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(eventSettlementOfDispute); + } + if ((bitField0_ & 0x00000040) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(eventSettlementOfDisputeBattle); + } + if ((bitField0_ & 0x00000080) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(deploySyncCase); + } + if ((bitField0_ & 0x00000100) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(clientEventCase); + } + if ((bitField0_ & 0x00000200) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierCase 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 != 18) { + break; + } + } + case 18: { + // selectCard + input.readMessage(selectCard); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // shopCase + input.readMessage(shopCase); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // fightCase + input.readMessage(fightCase); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 42) { + break; + } + } + case 42: { + // battleCase + input.readMessage(battleCase); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 50) { + break; + } + } + case 50: { + // eventSettlementOfDispute + input.readMessage(eventSettlementOfDispute); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 58) { + break; + } + } + case 58: { + // eventSettlementOfDisputeBattle + input.readMessage(eventSettlementOfDisputeBattle); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 114) { + break; + } + } + case 114: { + // deploySyncCase + input.readMessage(deploySyncCase); + bitField0_ |= 0x00000080; + tag = input.readTag(); + if (tag != 122) { + break; + } + } + case 122: { + // clientEventCase + input.readMessage(clientEventCase); + bitField0_ |= 0x00000100; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000200; + 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.writeMessage(FieldNames.selectCard, selectCard); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.shopCase, shopCase); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeMessage(FieldNames.fightCase, fightCase); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeMessage(FieldNames.battleCase, battleCase); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeMessage(FieldNames.eventSettlementOfDispute, eventSettlementOfDispute); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeMessage(FieldNames.eventSettlementOfDisputeBattle, eventSettlementOfDisputeBattle); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeMessage(FieldNames.deploySyncCase, deploySyncCase); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeMessage(FieldNames.clientEventCase, clientEventCase); + } + if ((bitField0_ & 0x00000200) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public SoldierCase 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 336994892: { + if (input.isAtField(FieldNames.selectCard)) { + if (!input.trySkipNullValue()) { + input.readMessage(selectCard); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -281164954: { + if (input.isAtField(FieldNames.shopCase)) { + if (!input.trySkipNullValue()) { + input.readMessage(shopCase); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 648949568: { + if (input.isAtField(FieldNames.fightCase)) { + if (!input.trySkipNullValue()) { + input.readMessage(fightCase); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -248315864: { + if (input.isAtField(FieldNames.battleCase)) { + if (!input.trySkipNullValue()) { + input.readMessage(battleCase); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1020798230: { + if (input.isAtField(FieldNames.eventSettlementOfDispute)) { + if (!input.trySkipNullValue()) { + input.readMessage(eventSettlementOfDispute); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1761329218: { + if (input.isAtField(FieldNames.eventSettlementOfDisputeBattle)) { + if (!input.trySkipNullValue()) { + input.readMessage(eventSettlementOfDisputeBattle); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1222963566: { + if (input.isAtField(FieldNames.deploySyncCase)) { + if (!input.trySkipNullValue()) { + input.readMessage(deploySyncCase); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + case -811107009: { + if (input.isAtField(FieldNames.clientEventCase)) { + if (!input.trySkipNullValue()) { + input.readMessage(clientEventCase); + 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; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SoldierCase clone() { + return new SoldierCase().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierCase parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierCase(), data).checkInitialized(); + } + + public static SoldierCase parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierCase(), input).checkInitialized(); + } + + public static SoldierCase parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierCase(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierCase messages + */ + public static MessageFactory getFactory() { + return SoldierCaseFactory.INSTANCE; + } + + private enum SoldierCaseFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierCase create() { + return SoldierCase.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName id = FieldName.forField("Id"); + + static final FieldName selectCard = FieldName.forField("SelectCard"); + + static final FieldName shopCase = FieldName.forField("ShopCase"); + + static final FieldName fightCase = FieldName.forField("FightCase"); + + static final FieldName battleCase = FieldName.forField("BattleCase"); + + static final FieldName eventSettlementOfDispute = FieldName.forField("EventSettlementOfDispute"); + + static final FieldName eventSettlementOfDisputeBattle = FieldName.forField("EventSettlementOfDisputeBattle"); + + static final FieldName deploySyncCase = FieldName.forField("DeploySyncCase"); + + static final FieldName clientEventCase = FieldName.forField("ClientEventCase"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code SoldierChess} + */ + public static final class SoldierChess extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional int32 Qty = 2; + */ + private int qty; + + /** + * optional uint32 Id = 1; + */ + private int id; + + /** + * optional uint32 Star = 3; + */ + private int star; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private SoldierChess() { + } + + /** + * @return a new empty instance of {@code SoldierChess} + */ + public static SoldierChess newInstance() { + return new SoldierChess(); + } + + /** + * optional int32 Qty = 2; + * @return whether the qty field is set + */ + public boolean hasQty() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional int32 Qty = 2; + * @return this + */ + public SoldierChess clearQty() { + bitField0_ &= ~0x00000001; + qty = 0; + return this; + } + + /** + * optional int32 Qty = 2; + * @return the qty + */ + public int getQty() { + return qty; + } + + /** + * optional int32 Qty = 2; + * @param value the qty to set + * @return this + */ + public SoldierChess setQty(final int value) { + bitField0_ |= 0x00000001; + qty = value; + return this; + } + + /** + * optional uint32 Id = 1; + * @return whether the id field is set + */ + public boolean hasId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 Id = 1; + * @return this + */ + public SoldierChess clearId() { + bitField0_ &= ~0x00000002; + 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 SoldierChess setId(final int value) { + bitField0_ |= 0x00000002; + id = value; + return this; + } + + /** + * optional uint32 Star = 3; + * @return whether the star field is set + */ + public boolean hasStar() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 Star = 3; + * @return this + */ + public SoldierChess clearStar() { + bitField0_ &= ~0x00000004; + star = 0; + return this; + } + + /** + * optional uint32 Star = 3; + * @return the star + */ + public int getStar() { + return star; + } + + /** + * optional uint32 Star = 3; + * @param value the star to set + * @return this + */ + public SoldierChess setStar(final int value) { + bitField0_ |= 0x00000004; + star = 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 SoldierChess 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 SoldierChess addNextPackage(final byte value) { + bitField0_ |= 0x00000008; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierChess addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierChess setNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.copyFrom(values); + return this; + } + + @Override + public SoldierChess copyFrom(final SoldierChess other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + qty = other.qty; + id = other.id; + star = other.star; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierChess mergeFrom(final SoldierChess other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasQty()) { + setQty(other.qty); + } + if (other.hasId()) { + setId(other.id); + } + if (other.hasStar()) { + setStar(other.star); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierChess clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + qty = 0; + id = 0; + star = 0; + nextPackage.clear(); + return this; + } + + @Override + public SoldierChess 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 SoldierChess)) { + return false; + } + SoldierChess other = (SoldierChess) o; + return bitField0_ == other.bitField0_ + && (!hasQty() || qty == other.qty) + && (!hasId() || id == other.id) + && (!hasStar() || star == other.star) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeInt32NoTag(qty); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(id); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(star); + } + 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.computeInt32SizeNoTag(qty); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(id); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(star); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierChess mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // qty + qty = input.readInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 8) { + break; + } + } + case 8: { + // id + id = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // star + star = 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.writeInt32(FieldNames.qty, qty); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.id, id); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.star, star); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public SoldierChess mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 81558: { + if (input.isAtField(FieldNames.qty)) { + if (!input.trySkipNullValue()) { + qty = input.readInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2363: { + if (input.isAtField(FieldNames.id)) { + if (!input.trySkipNullValue()) { + id = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2587250: { + if (input.isAtField(FieldNames.star)) { + if (!input.trySkipNullValue()) { + star = 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 SoldierChess clone() { + return new SoldierChess().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierChess parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierChess(), data).checkInitialized(); + } + + public static SoldierChess parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierChess(), input).checkInitialized(); + } + + public static SoldierChess parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierChess(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierChess messages + */ + public static MessageFactory getFactory() { + return SoldierChessFactory.INSTANCE; + } + + private enum SoldierChessFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierChess create() { + return SoldierChess.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName qty = FieldName.forField("Qty"); + + static final FieldName id = FieldName.forField("Id"); + + static final FieldName star = FieldName.forField("Star"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code SoldierTransform} + */ + public static final class SoldierTransform extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .SoldierChess Consume = 1; + */ + private final RepeatedMessage consume = RepeatedMessage.newEmptyInstance(SoldierChess.getFactory()); + + /** + * repeated .SoldierChess Obtain = 2; + */ + private final RepeatedMessage obtain = RepeatedMessage.newEmptyInstance(SoldierChess.getFactory()); + + private SoldierTransform() { + } + + /** + * @return a new empty instance of {@code SoldierTransform} + */ + public static SoldierTransform newInstance() { + return new SoldierTransform(); + } + + /** + * 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 SoldierTransform 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 SoldierTransform addNextPackage(final byte value) { + bitField0_ |= 0x00000001; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierTransform addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierTransform setNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .SoldierChess Consume = 1; + * @return whether the consume field is set + */ + public boolean hasConsume() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated .SoldierChess Consume = 1; + * @return this + */ + public SoldierTransform clearConsume() { + bitField0_ &= ~0x00000002; + consume.clear(); + return this; + } + + /** + * repeated .SoldierChess Consume = 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 #getMutableConsume()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getConsume() { + return consume; + } + + /** + * repeated .SoldierChess Consume = 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 getMutableConsume() { + bitField0_ |= 0x00000002; + return consume; + } + + /** + * repeated .SoldierChess Consume = 1; + * @param value the consume to add + * @return this + */ + public SoldierTransform addConsume(final SoldierChess value) { + bitField0_ |= 0x00000002; + consume.add(value); + return this; + } + + /** + * repeated .SoldierChess Consume = 1; + * @param values the consume to add + * @return this + */ + public SoldierTransform addAllConsume(final SoldierChess... values) { + bitField0_ |= 0x00000002; + consume.addAll(values); + return this; + } + + /** + * repeated .SoldierChess Obtain = 2; + * @return whether the obtain field is set + */ + public boolean hasObtain() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated .SoldierChess Obtain = 2; + * @return this + */ + public SoldierTransform clearObtain() { + bitField0_ &= ~0x00000004; + obtain.clear(); + return this; + } + + /** + * repeated .SoldierChess Obtain = 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 #getMutableObtain()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getObtain() { + return obtain; + } + + /** + * repeated .SoldierChess Obtain = 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 getMutableObtain() { + bitField0_ |= 0x00000004; + return obtain; + } + + /** + * repeated .SoldierChess Obtain = 2; + * @param value the obtain to add + * @return this + */ + public SoldierTransform addObtain(final SoldierChess value) { + bitField0_ |= 0x00000004; + obtain.add(value); + return this; + } + + /** + * repeated .SoldierChess Obtain = 2; + * @param values the obtain to add + * @return this + */ + public SoldierTransform addAllObtain(final SoldierChess... values) { + bitField0_ |= 0x00000004; + obtain.addAll(values); + return this; + } + + @Override + public SoldierTransform copyFrom(final SoldierTransform other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + nextPackage.copyFrom(other.nextPackage); + consume.copyFrom(other.consume); + obtain.copyFrom(other.obtain); + } + return this; + } + + @Override + public SoldierTransform mergeFrom(final SoldierTransform other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasConsume()) { + getMutableConsume().addAll(other.consume); + } + if (other.hasObtain()) { + getMutableObtain().addAll(other.obtain); + } + return this; + } + + @Override + public SoldierTransform clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + consume.clear(); + obtain.clear(); + return this; + } + + @Override + public SoldierTransform clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + consume.clearQuick(); + obtain.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SoldierTransform)) { + return false; + } + SoldierTransform other = (SoldierTransform) o; + return bitField0_ == other.bitField0_ + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasConsume() || consume.equals(other.consume)) + && (!hasObtain() || obtain.equals(other.obtain)); + } + + @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 < consume.length(); i++) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(consume.get(i)); + } + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < obtain.length(); i++) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(obtain.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * consume.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(consume); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * obtain.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(obtain); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierTransform 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: { + // consume + tag = input.readRepeatedMessage(consume, tag); + bitField0_ |= 0x00000002; + if (tag != 18) { + break; + } + } + case 18: { + // obtain + tag = input.readRepeatedMessage(obtain, 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.consume, consume); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedMessage(FieldNames.obtain, obtain); + } + output.endObject(); + } + + @Override + public SoldierTransform 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 -1678797860: { + if (input.isAtField(FieldNames.consume)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(consume); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1939206971: { + if (input.isAtField(FieldNames.obtain)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(obtain); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SoldierTransform clone() { + return new SoldierTransform().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierTransform parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierTransform(), data).checkInitialized(); + } + + public static SoldierTransform parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierTransform(), input).checkInitialized(); + } + + public static SoldierTransform parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierTransform(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierTransform messages + */ + public static MessageFactory getFactory() { + return SoldierTransformFactory.INSTANCE; + } + + private enum SoldierTransformFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierTransform create() { + return SoldierTransform.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName consume = FieldName.forField("Consume"); + + static final FieldName obtain = FieldName.forField("Obtain"); + } + } + + /** + * Protobuf type {@code SoldierCard} + */ + public static final class SoldierCard extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Id = 1; + */ + private int id; + + /** + * optional .SoldierCardType Type = 2; + */ + private int type; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .SoldierIdx BuffIdx = 3; + */ + private final RepeatedMessage buffIdx = RepeatedMessage.newEmptyInstance(SoldierIdx.getFactory()); + + private SoldierCard() { + } + + /** + * @return a new empty instance of {@code SoldierCard} + */ + public static SoldierCard newInstance() { + return new SoldierCard(); + } + + /** + * 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 SoldierCard 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 SoldierCard setId(final int value) { + bitField0_ |= 0x00000001; + id = value; + return this; + } + + /** + * optional .SoldierCardType Type = 2; + * @return whether the type field is set + */ + public boolean hasType() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .SoldierCardType Type = 2; + * @return this + */ + public SoldierCard clearType() { + bitField0_ &= ~0x00000002; + type = 0; + return this; + } + + /** + * optional .SoldierCardType Type = 2; + * @return the type + */ + public SoldierCardType getType() { + return SoldierCardType.forNumber(type); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link SoldierCard#getType()}.getNumber(). + * + * @return numeric wire representation + */ + public int getTypeValue() { + return type; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link SoldierCardType}. Setting an invalid value + * can cause {@link SoldierCard#getType()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public SoldierCard setTypeValue(final int value) { + bitField0_ |= 0x00000002; + type = value; + return this; + } + + /** + * optional .SoldierCardType Type = 2; + * @param value the type to set + * @return this + */ + public SoldierCard setType(final SoldierCardType value) { + bitField0_ |= 0x00000002; + type = value.getNumber(); + 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 SoldierCard 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 SoldierCard addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierCard addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierCard setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .SoldierIdx BuffIdx = 3; + * @return whether the buffIdx field is set + */ + public boolean hasBuffIdx() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated .SoldierIdx BuffIdx = 3; + * @return this + */ + public SoldierCard clearBuffIdx() { + bitField0_ &= ~0x00000008; + buffIdx.clear(); + return this; + } + + /** + * repeated .SoldierIdx BuffIdx = 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 #getMutableBuffIdx()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getBuffIdx() { + return buffIdx; + } + + /** + * repeated .SoldierIdx BuffIdx = 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 getMutableBuffIdx() { + bitField0_ |= 0x00000008; + return buffIdx; + } + + /** + * repeated .SoldierIdx BuffIdx = 3; + * @param value the buffIdx to add + * @return this + */ + public SoldierCard addBuffIdx(final SoldierIdx value) { + bitField0_ |= 0x00000008; + buffIdx.add(value); + return this; + } + + /** + * repeated .SoldierIdx BuffIdx = 3; + * @param values the buffIdx to add + * @return this + */ + public SoldierCard addAllBuffIdx(final SoldierIdx... values) { + bitField0_ |= 0x00000008; + buffIdx.addAll(values); + return this; + } + + @Override + public SoldierCard copyFrom(final SoldierCard other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + id = other.id; + type = other.type; + nextPackage.copyFrom(other.nextPackage); + buffIdx.copyFrom(other.buffIdx); + } + return this; + } + + @Override + public SoldierCard mergeFrom(final SoldierCard other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasId()) { + setId(other.id); + } + if (other.hasType()) { + setTypeValue(other.type); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasBuffIdx()) { + getMutableBuffIdx().addAll(other.buffIdx); + } + return this; + } + + @Override + public SoldierCard clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + id = 0; + type = 0; + nextPackage.clear(); + buffIdx.clear(); + return this; + } + + @Override + public SoldierCard clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + buffIdx.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SoldierCard)) { + return false; + } + SoldierCard other = (SoldierCard) o; + return bitField0_ == other.bitField0_ + && (!hasId() || id == other.id) + && (!hasType() || type == other.type) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasBuffIdx() || buffIdx.equals(other.buffIdx)); + } + + @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.writeEnumNoTag(type); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000008) != 0) { + for (int i = 0; i < buffIdx.length(); i++) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(buffIdx.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(id); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(type); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000008) != 0) { + size += (1 * buffIdx.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(buffIdx); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierCard 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: { + // type + final int value = input.readInt32(); + if (SoldierCardType.forNumber(value) != null) { + type = value; + bitField0_ |= 0x00000002; + } + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // buffIdx + tag = input.readRepeatedMessage(buffIdx, 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.id, id); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeEnum(FieldNames.type, type, SoldierCardType.converter()); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedMessage(FieldNames.buffIdx, buffIdx); + } + output.endObject(); + } + + @Override + public SoldierCard 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 2622298: { + if (input.isAtField(FieldNames.type)) { + if (!input.trySkipNullValue()) { + final SoldierCardType value = input.readEnum(SoldierCardType.converter()); + if (value != null) { + type = value.getNumber(); + bitField0_ |= 0x00000002; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1892622666: { + if (input.isAtField(FieldNames.buffIdx)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(buffIdx); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SoldierCard clone() { + return new SoldierCard().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierCard parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierCard(), data).checkInitialized(); + } + + public static SoldierCard parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierCard(), input).checkInitialized(); + } + + public static SoldierCard parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierCard(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierCard messages + */ + public static MessageFactory getFactory() { + return SoldierCardFactory.INSTANCE; + } + + private enum SoldierCardFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierCard create() { + return SoldierCard.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName id = FieldName.forField("Id"); + + static final FieldName type = FieldName.forField("Type"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName buffIdx = FieldName.forField("BuffIdx"); + } + } + + /** + * Protobuf type {@code SoldierPartner} + */ + public static final class SoldierPartner extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Id = 1; + */ + private int id; + + /** + * optional .SoldierPartnerAction Action = 2; + */ + private int action; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .SoldierIdx BuffIdx = 3; + */ + private final RepeatedMessage buffIdx = RepeatedMessage.newEmptyInstance(SoldierIdx.getFactory()); + + private SoldierPartner() { + } + + /** + * @return a new empty instance of {@code SoldierPartner} + */ + public static SoldierPartner newInstance() { + return new SoldierPartner(); + } + + /** + * 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 SoldierPartner 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 SoldierPartner setId(final int value) { + bitField0_ |= 0x00000001; + id = value; + return this; + } + + /** + * optional .SoldierPartnerAction Action = 2; + * @return whether the action field is set + */ + public boolean hasAction() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .SoldierPartnerAction Action = 2; + * @return this + */ + public SoldierPartner clearAction() { + bitField0_ &= ~0x00000002; + action = 0; + return this; + } + + /** + * optional .SoldierPartnerAction Action = 2; + * @return the action + */ + public SoldierPartnerAction getAction() { + return SoldierPartnerAction.forNumber(action); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link SoldierPartner#getAction()}.getNumber(). + * + * @return numeric wire representation + */ + public int getActionValue() { + return action; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link SoldierPartnerAction}. Setting an invalid value + * can cause {@link SoldierPartner#getAction()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public SoldierPartner setActionValue(final int value) { + bitField0_ |= 0x00000002; + action = value; + return this; + } + + /** + * optional .SoldierPartnerAction Action = 2; + * @param value the action to set + * @return this + */ + public SoldierPartner setAction(final SoldierPartnerAction value) { + bitField0_ |= 0x00000002; + action = value.getNumber(); + 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 SoldierPartner 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 SoldierPartner addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierPartner addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierPartner setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .SoldierIdx BuffIdx = 3; + * @return whether the buffIdx field is set + */ + public boolean hasBuffIdx() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated .SoldierIdx BuffIdx = 3; + * @return this + */ + public SoldierPartner clearBuffIdx() { + bitField0_ &= ~0x00000008; + buffIdx.clear(); + return this; + } + + /** + * repeated .SoldierIdx BuffIdx = 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 #getMutableBuffIdx()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getBuffIdx() { + return buffIdx; + } + + /** + * repeated .SoldierIdx BuffIdx = 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 getMutableBuffIdx() { + bitField0_ |= 0x00000008; + return buffIdx; + } + + /** + * repeated .SoldierIdx BuffIdx = 3; + * @param value the buffIdx to add + * @return this + */ + public SoldierPartner addBuffIdx(final SoldierIdx value) { + bitField0_ |= 0x00000008; + buffIdx.add(value); + return this; + } + + /** + * repeated .SoldierIdx BuffIdx = 3; + * @param values the buffIdx to add + * @return this + */ + public SoldierPartner addAllBuffIdx(final SoldierIdx... values) { + bitField0_ |= 0x00000008; + buffIdx.addAll(values); + return this; + } + + @Override + public SoldierPartner copyFrom(final SoldierPartner other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + id = other.id; + action = other.action; + nextPackage.copyFrom(other.nextPackage); + buffIdx.copyFrom(other.buffIdx); + } + return this; + } + + @Override + public SoldierPartner mergeFrom(final SoldierPartner other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasId()) { + setId(other.id); + } + if (other.hasAction()) { + setActionValue(other.action); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasBuffIdx()) { + getMutableBuffIdx().addAll(other.buffIdx); + } + return this; + } + + @Override + public SoldierPartner clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + id = 0; + action = 0; + nextPackage.clear(); + buffIdx.clear(); + return this; + } + + @Override + public SoldierPartner clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + buffIdx.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SoldierPartner)) { + return false; + } + SoldierPartner other = (SoldierPartner) o; + return bitField0_ == other.bitField0_ + && (!hasId() || id == other.id) + && (!hasAction() || action == other.action) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasBuffIdx() || buffIdx.equals(other.buffIdx)); + } + + @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.writeEnumNoTag(action); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000008) != 0) { + for (int i = 0; i < buffIdx.length(); i++) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(buffIdx.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(id); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(action); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000008) != 0) { + size += (1 * buffIdx.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(buffIdx); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierPartner 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: { + // action + final int value = input.readInt32(); + if (SoldierPartnerAction.forNumber(value) != null) { + action = value; + bitField0_ |= 0x00000002; + } + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // buffIdx + tag = input.readRepeatedMessage(buffIdx, 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.id, id); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeEnum(FieldNames.action, action, SoldierPartnerAction.converter()); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedMessage(FieldNames.buffIdx, buffIdx); + } + output.endObject(); + } + + @Override + public SoldierPartner 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 1955883606: { + if (input.isAtField(FieldNames.action)) { + if (!input.trySkipNullValue()) { + final SoldierPartnerAction value = input.readEnum(SoldierPartnerAction.converter()); + if (value != null) { + action = value.getNumber(); + bitField0_ |= 0x00000002; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1892622666: { + if (input.isAtField(FieldNames.buffIdx)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(buffIdx); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SoldierPartner clone() { + return new SoldierPartner().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierPartner parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierPartner(), data).checkInitialized(); + } + + public static SoldierPartner parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierPartner(), input).checkInitialized(); + } + + public static SoldierPartner parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierPartner(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierPartner messages + */ + public static MessageFactory getFactory() { + return SoldierPartnerFactory.INSTANCE; + } + + private enum SoldierPartnerFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierPartner create() { + return SoldierPartner.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName id = FieldName.forField("Id"); + + static final FieldName action = FieldName.forField("Action"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName buffIdx = FieldName.forField("BuffIdx"); + } + } + + /** + * Protobuf type {@code SoldierIdx} + */ + public static final class SoldierIdx extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Buff = 1; + */ + private int buff; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated uint32 Effects = 2; + */ + private final RepeatedInt effects = RepeatedInt.newEmptyInstance(); + + private SoldierIdx() { + } + + /** + * @return a new empty instance of {@code SoldierIdx} + */ + public static SoldierIdx newInstance() { + return new SoldierIdx(); + } + + /** + * optional uint32 Buff = 1; + * @return whether the buff field is set + */ + public boolean hasBuff() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 Buff = 1; + * @return this + */ + public SoldierIdx clearBuff() { + bitField0_ &= ~0x00000001; + buff = 0; + return this; + } + + /** + * optional uint32 Buff = 1; + * @return the buff + */ + public int getBuff() { + return buff; + } + + /** + * optional uint32 Buff = 1; + * @param value the buff to set + * @return this + */ + public SoldierIdx setBuff(final int value) { + bitField0_ |= 0x00000001; + buff = 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 SoldierIdx 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 SoldierIdx addNextPackage(final byte value) { + bitField0_ |= 0x00000002; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierIdx addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierIdx setNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated uint32 Effects = 2; + * @return whether the effects field is set + */ + public boolean hasEffects() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated uint32 Effects = 2; + * @return this + */ + public SoldierIdx clearEffects() { + bitField0_ &= ~0x00000004; + effects.clear(); + return this; + } + + /** + * repeated uint32 Effects = 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 #getMutableEffects()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getEffects() { + return effects; + } + + /** + * repeated uint32 Effects = 2; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedInt getMutableEffects() { + bitField0_ |= 0x00000004; + return effects; + } + + /** + * repeated uint32 Effects = 2; + * @param value the effects to add + * @return this + */ + public SoldierIdx addEffects(final int value) { + bitField0_ |= 0x00000004; + effects.add(value); + return this; + } + + /** + * repeated uint32 Effects = 2; + * @param values the effects to add + * @return this + */ + public SoldierIdx addAllEffects(final int... values) { + bitField0_ |= 0x00000004; + effects.addAll(values); + return this; + } + + @Override + public SoldierIdx copyFrom(final SoldierIdx other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + buff = other.buff; + nextPackage.copyFrom(other.nextPackage); + effects.copyFrom(other.effects); + } + return this; + } + + @Override + public SoldierIdx mergeFrom(final SoldierIdx other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasBuff()) { + setBuff(other.buff); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasEffects()) { + getMutableEffects().addAll(other.effects); + } + return this; + } + + @Override + public SoldierIdx clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + buff = 0; + nextPackage.clear(); + effects.clear(); + return this; + } + + @Override + public SoldierIdx clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + effects.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SoldierIdx)) { + return false; + } + SoldierIdx other = (SoldierIdx) o; + return bitField0_ == other.bitField0_ + && (!hasBuff() || buff == other.buff) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasEffects() || effects.equals(other.effects)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(buff); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < effects.length(); i++) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(effects.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(buff); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * effects.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(effects); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierIdx mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // buff + buff = 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: { + // effects [packed=true] + input.readPackedUInt32(effects, tag); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 16: { + // effects [packed=false] + tag = input.readRepeatedUInt32(effects, tag); + bitField0_ |= 0x00000004; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.buff, buff); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedUInt32(FieldNames.effects, effects); + } + output.endObject(); + } + + @Override + public SoldierIdx mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 2081907: { + if (input.isAtField(FieldNames.buff)) { + if (!input.trySkipNullValue()) { + buff = 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 -169275166: { + if (input.isAtField(FieldNames.effects)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(effects); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SoldierIdx clone() { + return new SoldierIdx().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierIdx parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierIdx(), data).checkInitialized(); + } + + public static SoldierIdx parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierIdx(), input).checkInitialized(); + } + + public static SoldierIdx parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierIdx(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierIdx messages + */ + public static MessageFactory getFactory() { + return SoldierIdxFactory.INSTANCE; + } + + private enum SoldierIdxFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierIdx create() { + return SoldierIdx.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName buff = FieldName.forField("Buff"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName effects = FieldName.forField("Effects"); + } + } + + /** + * Protobuf type {@code SoldierSyncData} + */ + public static final class SoldierSyncData extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Hp = 1; + */ + private int hp; + + /** + * optional uint32 Level = 2; + */ + private int level; + + /** + * optional uint32 Exp = 3; + */ + private int exp; + + /** + * optional uint32 WinningStreak = 4; + */ + private int winningStreak; + + /** + * optional uint32 LosingStreak = 5; + */ + private int losingStreak; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private SoldierSyncData() { + } + + /** + * @return a new empty instance of {@code SoldierSyncData} + */ + public static SoldierSyncData newInstance() { + return new SoldierSyncData(); + } + + /** + * optional uint32 Hp = 1; + * @return whether the hp field is set + */ + public boolean hasHp() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 Hp = 1; + * @return this + */ + public SoldierSyncData clearHp() { + bitField0_ &= ~0x00000001; + hp = 0; + return this; + } + + /** + * optional uint32 Hp = 1; + * @return the hp + */ + public int getHp() { + return hp; + } + + /** + * optional uint32 Hp = 1; + * @param value the hp to set + * @return this + */ + public SoldierSyncData setHp(final int value) { + bitField0_ |= 0x00000001; + hp = value; + return this; + } + + /** + * optional uint32 Level = 2; + * @return whether the level field is set + */ + public boolean hasLevel() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 Level = 2; + * @return this + */ + public SoldierSyncData clearLevel() { + bitField0_ &= ~0x00000002; + level = 0; + return this; + } + + /** + * optional uint32 Level = 2; + * @return the level + */ + public int getLevel() { + return level; + } + + /** + * optional uint32 Level = 2; + * @param value the level to set + * @return this + */ + public SoldierSyncData setLevel(final int value) { + bitField0_ |= 0x00000002; + level = value; + return this; + } + + /** + * optional uint32 Exp = 3; + * @return whether the exp field is set + */ + public boolean hasExp() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 Exp = 3; + * @return this + */ + public SoldierSyncData clearExp() { + bitField0_ &= ~0x00000004; + exp = 0; + return this; + } + + /** + * optional uint32 Exp = 3; + * @return the exp + */ + public int getExp() { + return exp; + } + + /** + * optional uint32 Exp = 3; + * @param value the exp to set + * @return this + */ + public SoldierSyncData setExp(final int value) { + bitField0_ |= 0x00000004; + exp = value; + return this; + } + + /** + * optional uint32 WinningStreak = 4; + * @return whether the winningStreak field is set + */ + public boolean hasWinningStreak() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 WinningStreak = 4; + * @return this + */ + public SoldierSyncData clearWinningStreak() { + bitField0_ &= ~0x00000008; + winningStreak = 0; + return this; + } + + /** + * optional uint32 WinningStreak = 4; + * @return the winningStreak + */ + public int getWinningStreak() { + return winningStreak; + } + + /** + * optional uint32 WinningStreak = 4; + * @param value the winningStreak to set + * @return this + */ + public SoldierSyncData setWinningStreak(final int value) { + bitField0_ |= 0x00000008; + winningStreak = value; + return this; + } + + /** + * optional uint32 LosingStreak = 5; + * @return whether the losingStreak field is set + */ + public boolean hasLosingStreak() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 LosingStreak = 5; + * @return this + */ + public SoldierSyncData clearLosingStreak() { + bitField0_ &= ~0x00000010; + losingStreak = 0; + return this; + } + + /** + * optional uint32 LosingStreak = 5; + * @return the losingStreak + */ + public int getLosingStreak() { + return losingStreak; + } + + /** + * optional uint32 LosingStreak = 5; + * @param value the losingStreak to set + * @return this + */ + public SoldierSyncData setLosingStreak(final int value) { + bitField0_ |= 0x00000010; + losingStreak = 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 SoldierSyncData 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 SoldierSyncData addNextPackage(final byte value) { + bitField0_ |= 0x00000020; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierSyncData addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000020; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierSyncData setNextPackage(final byte... values) { + bitField0_ |= 0x00000020; + nextPackage.copyFrom(values); + return this; + } + + @Override + public SoldierSyncData copyFrom(final SoldierSyncData other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + hp = other.hp; + level = other.level; + exp = other.exp; + winningStreak = other.winningStreak; + losingStreak = other.losingStreak; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierSyncData mergeFrom(final SoldierSyncData other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasHp()) { + setHp(other.hp); + } + if (other.hasLevel()) { + setLevel(other.level); + } + if (other.hasExp()) { + setExp(other.exp); + } + if (other.hasWinningStreak()) { + setWinningStreak(other.winningStreak); + } + if (other.hasLosingStreak()) { + setLosingStreak(other.losingStreak); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierSyncData clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + hp = 0; + level = 0; + exp = 0; + winningStreak = 0; + losingStreak = 0; + nextPackage.clear(); + return this; + } + + @Override + public SoldierSyncData 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 SoldierSyncData)) { + return false; + } + SoldierSyncData other = (SoldierSyncData) o; + return bitField0_ == other.bitField0_ + && (!hasHp() || hp == other.hp) + && (!hasLevel() || level == other.level) + && (!hasExp() || exp == other.exp) + && (!hasWinningStreak() || winningStreak == other.winningStreak) + && (!hasLosingStreak() || losingStreak == other.losingStreak) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(hp); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(level); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(exp); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(winningStreak); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(losingStreak); + } + 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.computeUInt32SizeNoTag(hp); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(level); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(exp); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(winningStreak); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(losingStreak); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierSyncData mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // hp + hp = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // level + level = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // exp + exp = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // winningStreak + winningStreak = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // losingStreak + losingStreak = input.readUInt32(); + 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.writeUInt32(FieldNames.hp, hp); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.level, level); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.exp, exp); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.winningStreak, winningStreak); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.losingStreak, losingStreak); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public SoldierSyncData mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 2344: { + if (input.isAtField(FieldNames.hp)) { + if (!input.trySkipNullValue()) { + hp = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 73313124: { + if (input.isAtField(FieldNames.level)) { + if (!input.trySkipNullValue()) { + level = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 70141: { + if (input.isAtField(FieldNames.exp)) { + if (!input.trySkipNullValue()) { + exp = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2011584014: { + if (input.isAtField(FieldNames.winningStreak)) { + if (!input.trySkipNullValue()) { + winningStreak = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -460108592: { + if (input.isAtField(FieldNames.losingStreak)) { + if (!input.trySkipNullValue()) { + losingStreak = input.readUInt32(); + 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 SoldierSyncData clone() { + return new SoldierSyncData().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierSyncData parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierSyncData(), data).checkInitialized(); + } + + public static SoldierSyncData parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierSyncData(), input).checkInitialized(); + } + + public static SoldierSyncData parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierSyncData(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierSyncData messages + */ + public static MessageFactory getFactory() { + return SoldierSyncDataFactory.INSTANCE; + } + + private enum SoldierSyncDataFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierSyncData create() { + return SoldierSyncData.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName hp = FieldName.forField("Hp"); + + static final FieldName level = FieldName.forField("Level"); + + static final FieldName exp = FieldName.forField("Exp"); + + static final FieldName winningStreak = FieldName.forField("WinningStreak"); + + static final FieldName losingStreak = FieldName.forField("LosingStreak"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code SoldierGoods} + */ + public static final class SoldierGoods 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 Price = 3; + */ + private int price; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private SoldierGoods() { + } + + /** + * @return a new empty instance of {@code SoldierGoods} + */ + public static SoldierGoods newInstance() { + return new SoldierGoods(); + } + + /** + * 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 SoldierGoods 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 SoldierGoods 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 SoldierGoods 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 SoldierGoods setStar(final int value) { + bitField0_ |= 0x00000002; + star = value; + return this; + } + + /** + * optional uint32 Price = 3; + * @return whether the price field is set + */ + public boolean hasPrice() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 Price = 3; + * @return this + */ + public SoldierGoods clearPrice() { + bitField0_ &= ~0x00000004; + price = 0; + return this; + } + + /** + * optional uint32 Price = 3; + * @return the price + */ + public int getPrice() { + return price; + } + + /** + * optional uint32 Price = 3; + * @param value the price to set + * @return this + */ + public SoldierGoods setPrice(final int value) { + bitField0_ |= 0x00000004; + price = 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 SoldierGoods 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 SoldierGoods addNextPackage(final byte value) { + bitField0_ |= 0x00000008; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierGoods addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierGoods setNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.copyFrom(values); + return this; + } + + @Override + public SoldierGoods copyFrom(final SoldierGoods other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + id = other.id; + star = other.star; + price = other.price; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierGoods mergeFrom(final SoldierGoods other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasId()) { + setId(other.id); + } + if (other.hasStar()) { + setStar(other.star); + } + if (other.hasPrice()) { + setPrice(other.price); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierGoods clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + id = 0; + star = 0; + price = 0; + nextPackage.clear(); + return this; + } + + @Override + public SoldierGoods 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 SoldierGoods)) { + return false; + } + SoldierGoods other = (SoldierGoods) o; + return bitField0_ == other.bitField0_ + && (!hasId() || id == other.id) + && (!hasStar() || star == other.star) + && (!hasPrice() || price == other.price) + && (!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(price); + } + 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(price); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierGoods 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: { + // price + price = 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.price, price); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public SoldierGoods 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 77381929: { + if (input.isAtField(FieldNames.price)) { + if (!input.trySkipNullValue()) { + price = 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 SoldierGoods clone() { + return new SoldierGoods().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierGoods parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierGoods(), data).checkInitialized(); + } + + public static SoldierGoods parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierGoods(), input).checkInitialized(); + } + + public static SoldierGoods parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierGoods(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierGoods messages + */ + public static MessageFactory getFactory() { + return SoldierGoodsFactory.INSTANCE; + } + + private enum SoldierGoodsFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierGoods create() { + return SoldierGoods.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 price = FieldName.forField("Price"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code ShopCaseData} + */ + public static final class ShopCaseData extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Level = 1; + */ + private int level; + + /** + * optional uint32 Exp = 2; + */ + private int exp; + + /** + * optional uint32 Free = 6; + */ + private int free; + + /** + * optional uint32 ReRollPrice = 7; + */ + private int reRollPrice; + + /** + * optional uint32 PurchaseExpPrice = 10; + */ + private int purchaseExpPrice; + + /** + * optional bool Lock = 5; + */ + private boolean lock; + + /** + * optional bool DisableRefresh = 8; + */ + private boolean disableRefresh; + + /** + * optional bool DisablePurchase = 9; + */ + private boolean disablePurchase; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated uint32 RarityUp = 4; + */ + private final RepeatedInt rarityUp = RepeatedInt.newEmptyInstance(); + + /** + * repeated .SoldierGoods Goods = 3; + */ + private final RepeatedMessage goods = RepeatedMessage.newEmptyInstance(SoldierGoods.getFactory()); + + private ShopCaseData() { + } + + /** + * @return a new empty instance of {@code ShopCaseData} + */ + public static ShopCaseData newInstance() { + return new ShopCaseData(); + } + + /** + * optional uint32 Level = 1; + * @return whether the level field is set + */ + public boolean hasLevel() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 Level = 1; + * @return this + */ + public ShopCaseData clearLevel() { + bitField0_ &= ~0x00000001; + level = 0; + return this; + } + + /** + * optional uint32 Level = 1; + * @return the level + */ + public int getLevel() { + return level; + } + + /** + * optional uint32 Level = 1; + * @param value the level to set + * @return this + */ + public ShopCaseData setLevel(final int value) { + bitField0_ |= 0x00000001; + level = value; + return this; + } + + /** + * optional uint32 Exp = 2; + * @return whether the exp field is set + */ + public boolean hasExp() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 Exp = 2; + * @return this + */ + public ShopCaseData clearExp() { + bitField0_ &= ~0x00000002; + exp = 0; + return this; + } + + /** + * optional uint32 Exp = 2; + * @return the exp + */ + public int getExp() { + return exp; + } + + /** + * optional uint32 Exp = 2; + * @param value the exp to set + * @return this + */ + public ShopCaseData setExp(final int value) { + bitField0_ |= 0x00000002; + exp = value; + return this; + } + + /** + * optional uint32 Free = 6; + * @return whether the free field is set + */ + public boolean hasFree() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 Free = 6; + * @return this + */ + public ShopCaseData clearFree() { + bitField0_ &= ~0x00000004; + free = 0; + return this; + } + + /** + * optional uint32 Free = 6; + * @return the free + */ + public int getFree() { + return free; + } + + /** + * optional uint32 Free = 6; + * @param value the free to set + * @return this + */ + public ShopCaseData setFree(final int value) { + bitField0_ |= 0x00000004; + free = value; + return this; + } + + /** + * optional uint32 ReRollPrice = 7; + * @return whether the reRollPrice field is set + */ + public boolean hasReRollPrice() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 ReRollPrice = 7; + * @return this + */ + public ShopCaseData clearReRollPrice() { + bitField0_ &= ~0x00000008; + reRollPrice = 0; + return this; + } + + /** + * optional uint32 ReRollPrice = 7; + * @return the reRollPrice + */ + public int getReRollPrice() { + return reRollPrice; + } + + /** + * optional uint32 ReRollPrice = 7; + * @param value the reRollPrice to set + * @return this + */ + public ShopCaseData setReRollPrice(final int value) { + bitField0_ |= 0x00000008; + reRollPrice = value; + return this; + } + + /** + * optional uint32 PurchaseExpPrice = 10; + * @return whether the purchaseExpPrice field is set + */ + public boolean hasPurchaseExpPrice() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 PurchaseExpPrice = 10; + * @return this + */ + public ShopCaseData clearPurchaseExpPrice() { + bitField0_ &= ~0x00000010; + purchaseExpPrice = 0; + return this; + } + + /** + * optional uint32 PurchaseExpPrice = 10; + * @return the purchaseExpPrice + */ + public int getPurchaseExpPrice() { + return purchaseExpPrice; + } + + /** + * optional uint32 PurchaseExpPrice = 10; + * @param value the purchaseExpPrice to set + * @return this + */ + public ShopCaseData setPurchaseExpPrice(final int value) { + bitField0_ |= 0x00000010; + purchaseExpPrice = value; + return this; + } + + /** + * optional bool Lock = 5; + * @return whether the lock field is set + */ + public boolean hasLock() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional bool Lock = 5; + * @return this + */ + public ShopCaseData clearLock() { + bitField0_ &= ~0x00000020; + lock = false; + return this; + } + + /** + * optional bool Lock = 5; + * @return the lock + */ + public boolean getLock() { + return lock; + } + + /** + * optional bool Lock = 5; + * @param value the lock to set + * @return this + */ + public ShopCaseData setLock(final boolean value) { + bitField0_ |= 0x00000020; + lock = value; + return this; + } + + /** + * optional bool DisableRefresh = 8; + * @return whether the disableRefresh field is set + */ + public boolean hasDisableRefresh() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional bool DisableRefresh = 8; + * @return this + */ + public ShopCaseData clearDisableRefresh() { + bitField0_ &= ~0x00000040; + disableRefresh = false; + return this; + } + + /** + * optional bool DisableRefresh = 8; + * @return the disableRefresh + */ + public boolean getDisableRefresh() { + return disableRefresh; + } + + /** + * optional bool DisableRefresh = 8; + * @param value the disableRefresh to set + * @return this + */ + public ShopCaseData setDisableRefresh(final boolean value) { + bitField0_ |= 0x00000040; + disableRefresh = value; + return this; + } + + /** + * optional bool DisablePurchase = 9; + * @return whether the disablePurchase field is set + */ + public boolean hasDisablePurchase() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * optional bool DisablePurchase = 9; + * @return this + */ + public ShopCaseData clearDisablePurchase() { + bitField0_ &= ~0x00000080; + disablePurchase = false; + return this; + } + + /** + * optional bool DisablePurchase = 9; + * @return the disablePurchase + */ + public boolean getDisablePurchase() { + return disablePurchase; + } + + /** + * optional bool DisablePurchase = 9; + * @param value the disablePurchase to set + * @return this + */ + public ShopCaseData setDisablePurchase(final boolean value) { + bitField0_ |= 0x00000080; + disablePurchase = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000100) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public ShopCaseData clearNextPackage() { + bitField0_ &= ~0x00000100; + 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_ |= 0x00000100; + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public ShopCaseData addNextPackage(final byte value) { + bitField0_ |= 0x00000100; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public ShopCaseData addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000100; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public ShopCaseData setNextPackage(final byte... values) { + bitField0_ |= 0x00000100; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated uint32 RarityUp = 4; + * @return whether the rarityUp field is set + */ + public boolean hasRarityUp() { + return (bitField0_ & 0x00000200) != 0; + } + + /** + * repeated uint32 RarityUp = 4; + * @return this + */ + public ShopCaseData clearRarityUp() { + bitField0_ &= ~0x00000200; + rarityUp.clear(); + return this; + } + + /** + * repeated uint32 RarityUp = 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 #getMutableRarityUp()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getRarityUp() { + return rarityUp; + } + + /** + * repeated uint32 RarityUp = 4; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedInt getMutableRarityUp() { + bitField0_ |= 0x00000200; + return rarityUp; + } + + /** + * repeated uint32 RarityUp = 4; + * @param value the rarityUp to add + * @return this + */ + public ShopCaseData addRarityUp(final int value) { + bitField0_ |= 0x00000200; + rarityUp.add(value); + return this; + } + + /** + * repeated uint32 RarityUp = 4; + * @param values the rarityUp to add + * @return this + */ + public ShopCaseData addAllRarityUp(final int... values) { + bitField0_ |= 0x00000200; + rarityUp.addAll(values); + return this; + } + + /** + * repeated .SoldierGoods Goods = 3; + * @return whether the goods field is set + */ + public boolean hasGoods() { + return (bitField0_ & 0x00000400) != 0; + } + + /** + * repeated .SoldierGoods Goods = 3; + * @return this + */ + public ShopCaseData clearGoods() { + bitField0_ &= ~0x00000400; + goods.clear(); + return this; + } + + /** + * repeated .SoldierGoods Goods = 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 #getMutableGoods()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getGoods() { + return goods; + } + + /** + * repeated .SoldierGoods Goods = 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 getMutableGoods() { + bitField0_ |= 0x00000400; + return goods; + } + + /** + * repeated .SoldierGoods Goods = 3; + * @param value the goods to add + * @return this + */ + public ShopCaseData addGoods(final SoldierGoods value) { + bitField0_ |= 0x00000400; + goods.add(value); + return this; + } + + /** + * repeated .SoldierGoods Goods = 3; + * @param values the goods to add + * @return this + */ + public ShopCaseData addAllGoods(final SoldierGoods... values) { + bitField0_ |= 0x00000400; + goods.addAll(values); + return this; + } + + @Override + public ShopCaseData copyFrom(final ShopCaseData other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + level = other.level; + exp = other.exp; + free = other.free; + reRollPrice = other.reRollPrice; + purchaseExpPrice = other.purchaseExpPrice; + lock = other.lock; + disableRefresh = other.disableRefresh; + disablePurchase = other.disablePurchase; + nextPackage.copyFrom(other.nextPackage); + rarityUp.copyFrom(other.rarityUp); + goods.copyFrom(other.goods); + } + return this; + } + + @Override + public ShopCaseData mergeFrom(final ShopCaseData other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasLevel()) { + setLevel(other.level); + } + if (other.hasExp()) { + setExp(other.exp); + } + if (other.hasFree()) { + setFree(other.free); + } + if (other.hasReRollPrice()) { + setReRollPrice(other.reRollPrice); + } + if (other.hasPurchaseExpPrice()) { + setPurchaseExpPrice(other.purchaseExpPrice); + } + if (other.hasLock()) { + setLock(other.lock); + } + if (other.hasDisableRefresh()) { + setDisableRefresh(other.disableRefresh); + } + if (other.hasDisablePurchase()) { + setDisablePurchase(other.disablePurchase); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasRarityUp()) { + getMutableRarityUp().addAll(other.rarityUp); + } + if (other.hasGoods()) { + getMutableGoods().addAll(other.goods); + } + return this; + } + + @Override + public ShopCaseData clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + level = 0; + exp = 0; + free = 0; + reRollPrice = 0; + purchaseExpPrice = 0; + lock = false; + disableRefresh = false; + disablePurchase = false; + nextPackage.clear(); + rarityUp.clear(); + goods.clear(); + return this; + } + + @Override + public ShopCaseData clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + rarityUp.clear(); + goods.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ShopCaseData)) { + return false; + } + ShopCaseData other = (ShopCaseData) o; + return bitField0_ == other.bitField0_ + && (!hasLevel() || level == other.level) + && (!hasExp() || exp == other.exp) + && (!hasFree() || free == other.free) + && (!hasReRollPrice() || reRollPrice == other.reRollPrice) + && (!hasPurchaseExpPrice() || purchaseExpPrice == other.purchaseExpPrice) + && (!hasLock() || lock == other.lock) + && (!hasDisableRefresh() || disableRefresh == other.disableRefresh) + && (!hasDisablePurchase() || disablePurchase == other.disablePurchase) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasRarityUp() || rarityUp.equals(other.rarityUp)) + && (!hasGoods() || goods.equals(other.goods)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(level); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(exp); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(free); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(reRollPrice); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(purchaseExpPrice); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 40); + output.writeBoolNoTag(lock); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawByte((byte) 64); + output.writeBoolNoTag(disableRefresh); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRawByte((byte) 72); + output.writeBoolNoTag(disablePurchase); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000200) != 0) { + for (int i = 0; i < rarityUp.length(); i++) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(rarityUp.array()[i]); + } + } + if ((bitField0_ & 0x00000400) != 0) { + for (int i = 0; i < goods.length(); i++) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(goods.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(level); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(exp); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(free); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(reRollPrice); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(purchaseExpPrice); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000040) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000080) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000100) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000200) != 0) { + size += (1 * rarityUp.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(rarityUp); + } + if ((bitField0_ & 0x00000400) != 0) { + size += (1 * goods.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(goods); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ShopCaseData mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // level + level = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // exp + exp = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // free + free = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // reRollPrice + reRollPrice = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { + // purchaseExpPrice + purchaseExpPrice = input.readUInt32(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // lock + lock = input.readBool(); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 64) { + break; + } + } + case 64: { + // disableRefresh + disableRefresh = input.readBool(); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // disablePurchase + disablePurchase = input.readBool(); + bitField0_ |= 0x00000080; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000100; + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // rarityUp [packed=true] + input.readPackedUInt32(rarityUp, tag); + bitField0_ |= 0x00000200; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // goods + tag = input.readRepeatedMessage(goods, tag); + bitField0_ |= 0x00000400; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 32: { + // rarityUp [packed=false] + tag = input.readRepeatedUInt32(rarityUp, tag); + bitField0_ |= 0x00000200; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.level, level); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.exp, exp); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.free, free); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.reRollPrice, reRollPrice); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.purchaseExpPrice, purchaseExpPrice); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeBool(FieldNames.lock, lock); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeBool(FieldNames.disableRefresh, disableRefresh); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeBool(FieldNames.disablePurchase, disablePurchase); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000200) != 0) { + output.writeRepeatedUInt32(FieldNames.rarityUp, rarityUp); + } + if ((bitField0_ & 0x00000400) != 0) { + output.writeRepeatedMessage(FieldNames.goods, goods); + } + output.endObject(); + } + + @Override + public ShopCaseData mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 73313124: { + if (input.isAtField(FieldNames.level)) { + if (!input.trySkipNullValue()) { + level = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 70141: { + if (input.isAtField(FieldNames.exp)) { + if (!input.trySkipNullValue()) { + exp = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2198156: { + if (input.isAtField(FieldNames.free)) { + if (!input.trySkipNullValue()) { + free = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1462629959: { + if (input.isAtField(FieldNames.reRollPrice)) { + if (!input.trySkipNullValue()) { + reRollPrice = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1233838739: { + if (input.isAtField(FieldNames.purchaseExpPrice)) { + if (!input.trySkipNullValue()) { + purchaseExpPrice = input.readUInt32(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2373963: { + if (input.isAtField(FieldNames.lock)) { + if (!input.trySkipNullValue()) { + lock = input.readBool(); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1658470131: { + if (input.isAtField(FieldNames.disableRefresh)) { + if (!input.trySkipNullValue()) { + disableRefresh = input.readBool(); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1967727639: { + if (input.isAtField(FieldNames.disablePurchase)) { + if (!input.trySkipNullValue()) { + disablePurchase = input.readBool(); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000100; + } + } else { + input.skipUnknownField(); + } + break; + } + case 434338246: { + if (input.isAtField(FieldNames.rarityUp)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(rarityUp); + bitField0_ |= 0x00000200; + } + } else { + input.skipUnknownField(); + } + break; + } + case 68986678: { + if (input.isAtField(FieldNames.goods)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(goods); + bitField0_ |= 0x00000400; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ShopCaseData clone() { + return new ShopCaseData().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ShopCaseData parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ShopCaseData(), data).checkInitialized(); + } + + public static ShopCaseData parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ShopCaseData(), input).checkInitialized(); + } + + public static ShopCaseData parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ShopCaseData(), input).checkInitialized(); + } + + /** + * @return factory for creating ShopCaseData messages + */ + public static MessageFactory getFactory() { + return ShopCaseDataFactory.INSTANCE; + } + + private enum ShopCaseDataFactory implements MessageFactory { + INSTANCE; + + @Override + public ShopCaseData create() { + return ShopCaseData.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName level = FieldName.forField("Level"); + + static final FieldName exp = FieldName.forField("Exp"); + + static final FieldName free = FieldName.forField("Free"); + + static final FieldName reRollPrice = FieldName.forField("ReRollPrice"); + + static final FieldName purchaseExpPrice = FieldName.forField("PurchaseExpPrice"); + + static final FieldName lock = FieldName.forField("Lock"); + + static final FieldName disableRefresh = FieldName.forField("DisableRefresh"); + + static final FieldName disablePurchase = FieldName.forField("DisablePurchase"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName rarityUp = FieldName.forField("RarityUp"); + + static final FieldName goods = FieldName.forField("Goods"); + } + } + + /** + * Protobuf type {@code SelectCardData} + */ + public static final class SelectCardData extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 ReRoll = 3; + */ + private int reRoll; + + /** + * optional .SoldierCardType Type = 1; + */ + private int type; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated uint32 Ids = 2; + */ + private final RepeatedInt ids = RepeatedInt.newEmptyInstance(); + + private SelectCardData() { + } + + /** + * @return a new empty instance of {@code SelectCardData} + */ + public static SelectCardData newInstance() { + return new SelectCardData(); + } + + /** + * optional uint32 ReRoll = 3; + * @return whether the reRoll field is set + */ + public boolean hasReRoll() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 ReRoll = 3; + * @return this + */ + public SelectCardData clearReRoll() { + bitField0_ &= ~0x00000001; + reRoll = 0; + return this; + } + + /** + * optional uint32 ReRoll = 3; + * @return the reRoll + */ + public int getReRoll() { + return reRoll; + } + + /** + * optional uint32 ReRoll = 3; + * @param value the reRoll to set + * @return this + */ + public SelectCardData setReRoll(final int value) { + bitField0_ |= 0x00000001; + reRoll = value; + return this; + } + + /** + * optional .SoldierCardType Type = 1; + * @return whether the type field is set + */ + public boolean hasType() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .SoldierCardType Type = 1; + * @return this + */ + public SelectCardData clearType() { + bitField0_ &= ~0x00000002; + type = 0; + return this; + } + + /** + * optional .SoldierCardType Type = 1; + * @return the type + */ + public SoldierCardType getType() { + return SoldierCardType.forNumber(type); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link SelectCardData#getType()}.getNumber(). + * + * @return numeric wire representation + */ + public int getTypeValue() { + return type; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link SoldierCardType}. Setting an invalid value + * can cause {@link SelectCardData#getType()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public SelectCardData setTypeValue(final int value) { + bitField0_ |= 0x00000002; + type = value; + return this; + } + + /** + * optional .SoldierCardType Type = 1; + * @param value the type to set + * @return this + */ + public SelectCardData setType(final SoldierCardType value) { + bitField0_ |= 0x00000002; + type = value.getNumber(); + 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 SelectCardData 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 SelectCardData addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SelectCardData addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SelectCardData setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated uint32 Ids = 2; + * @return whether the ids field is set + */ + public boolean hasIds() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated uint32 Ids = 2; + * @return this + */ + public SelectCardData clearIds() { + bitField0_ &= ~0x00000008; + ids.clear(); + return this; + } + + /** + * repeated uint32 Ids = 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 #getMutableIds()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getIds() { + return ids; + } + + /** + * repeated uint32 Ids = 2; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedInt getMutableIds() { + bitField0_ |= 0x00000008; + return ids; + } + + /** + * repeated uint32 Ids = 2; + * @param value the ids to add + * @return this + */ + public SelectCardData addIds(final int value) { + bitField0_ |= 0x00000008; + ids.add(value); + return this; + } + + /** + * repeated uint32 Ids = 2; + * @param values the ids to add + * @return this + */ + public SelectCardData addAllIds(final int... values) { + bitField0_ |= 0x00000008; + ids.addAll(values); + return this; + } + + @Override + public SelectCardData copyFrom(final SelectCardData other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + reRoll = other.reRoll; + type = other.type; + nextPackage.copyFrom(other.nextPackage); + ids.copyFrom(other.ids); + } + return this; + } + + @Override + public SelectCardData mergeFrom(final SelectCardData other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasReRoll()) { + setReRoll(other.reRoll); + } + if (other.hasType()) { + setTypeValue(other.type); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasIds()) { + getMutableIds().addAll(other.ids); + } + return this; + } + + @Override + public SelectCardData clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + reRoll = 0; + type = 0; + nextPackage.clear(); + ids.clear(); + return this; + } + + @Override + public SelectCardData clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + ids.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SelectCardData)) { + return false; + } + SelectCardData other = (SelectCardData) o; + return bitField0_ == other.bitField0_ + && (!hasReRoll() || reRoll == other.reRoll) + && (!hasType() || type == other.type) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasIds() || ids.equals(other.ids)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(reRoll); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 8); + output.writeEnumNoTag(type); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000008) != 0) { + for (int i = 0; i < ids.length(); i++) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(ids.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(reRoll); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(type); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000008) != 0) { + size += (1 * ids.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(ids); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SelectCardData mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 24: { + // reRoll + reRoll = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 8) { + break; + } + } + case 8: { + // type + final int value = input.readInt32(); + if (SoldierCardType.forNumber(value) != null) { + type = value; + bitField0_ |= 0x00000002; + } + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // ids [packed=true] + input.readPackedUInt32(ids, tag); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 16: { + // ids [packed=false] + tag = input.readRepeatedUInt32(ids, tag); + bitField0_ |= 0x00000008; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.reRoll, reRoll); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeEnum(FieldNames.type, type, SoldierCardType.converter()); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedUInt32(FieldNames.ids, ids); + } + output.endObject(); + } + + @Override + public SelectCardData mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1851548304: { + if (input.isAtField(FieldNames.reRoll)) { + if (!input.trySkipNullValue()) { + reRoll = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2622298: { + if (input.isAtField(FieldNames.type)) { + if (!input.trySkipNullValue()) { + final SoldierCardType value = input.readEnum(SoldierCardType.converter()); + if (value != null) { + type = value.getNumber(); + bitField0_ |= 0x00000002; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 73368: { + if (input.isAtField(FieldNames.ids)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(ids); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SelectCardData clone() { + return new SelectCardData().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SelectCardData parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SelectCardData(), data).checkInitialized(); + } + + public static SelectCardData parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SelectCardData(), input).checkInitialized(); + } + + public static SelectCardData parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SelectCardData(), input).checkInitialized(); + } + + /** + * @return factory for creating SelectCardData messages + */ + public static MessageFactory getFactory() { + return SelectCardDataFactory.INSTANCE; + } + + private enum SelectCardDataFactory implements MessageFactory { + INSTANCE; + + @Override + public SelectCardData create() { + return SelectCardData.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName reRoll = FieldName.forField("ReRoll"); + + static final FieldName type = FieldName.forField("Type"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName ids = FieldName.forField("Ids"); + } + } + + /** + * Protobuf type {@code FightCaseData} + */ + public static final class FightCaseData extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private FightCaseData() { + } + + /** + * @return a new empty instance of {@code FightCaseData} + */ + public static FightCaseData newInstance() { + return new FightCaseData(); + } + + /** + * 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 FightCaseData 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 FightCaseData addNextPackage(final byte value) { + bitField0_ |= 0x00000001; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public FightCaseData addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public FightCaseData setNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.copyFrom(values); + return this; + } + + @Override + public FightCaseData copyFrom(final FightCaseData other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public FightCaseData mergeFrom(final FightCaseData other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public FightCaseData clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + return this; + } + + @Override + public FightCaseData 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 FightCaseData)) { + return false; + } + FightCaseData other = (FightCaseData) o; + return bitField0_ == other.bitField0_ + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public FightCaseData 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 != 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); + } + output.endObject(); + } + + @Override + public FightCaseData 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; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public FightCaseData clone() { + return new FightCaseData().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static FightCaseData parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new FightCaseData(), data).checkInitialized(); + } + + public static FightCaseData parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new FightCaseData(), input).checkInitialized(); + } + + public static FightCaseData parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new FightCaseData(), input).checkInitialized(); + } + + /** + * @return factory for creating FightCaseData messages + */ + public static MessageFactory getFactory() { + return FightCaseDataFactory.INSTANCE; + } + + private enum FightCaseDataFactory implements MessageFactory { + INSTANCE; + + @Override + public FightCaseData create() { + return FightCaseData.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code SoldierBattleCaseData} + */ + public static final class SoldierBattleCaseData extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 FloorId = 1; + */ + private int floorId; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private SoldierBattleCaseData() { + } + + /** + * @return a new empty instance of {@code SoldierBattleCaseData} + */ + public static SoldierBattleCaseData newInstance() { + return new SoldierBattleCaseData(); + } + + /** + * optional uint32 FloorId = 1; + * @return whether the floorId field is set + */ + public boolean hasFloorId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 FloorId = 1; + * @return this + */ + public SoldierBattleCaseData clearFloorId() { + bitField0_ &= ~0x00000001; + floorId = 0; + return this; + } + + /** + * optional uint32 FloorId = 1; + * @return the floorId + */ + public int getFloorId() { + return floorId; + } + + /** + * optional uint32 FloorId = 1; + * @param value the floorId to set + * @return this + */ + public SoldierBattleCaseData setFloorId(final int value) { + bitField0_ |= 0x00000001; + floorId = 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 SoldierBattleCaseData 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 SoldierBattleCaseData addNextPackage(final byte value) { + bitField0_ |= 0x00000002; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierBattleCaseData addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierBattleCaseData setNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.copyFrom(values); + return this; + } + + @Override + public SoldierBattleCaseData copyFrom(final SoldierBattleCaseData other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + floorId = other.floorId; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierBattleCaseData mergeFrom(final SoldierBattleCaseData other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasFloorId()) { + setFloorId(other.floorId); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierBattleCaseData clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + floorId = 0; + nextPackage.clear(); + return this; + } + + @Override + public SoldierBattleCaseData 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 SoldierBattleCaseData)) { + return false; + } + SoldierBattleCaseData other = (SoldierBattleCaseData) o; + return bitField0_ == other.bitField0_ + && (!hasFloorId() || floorId == other.floorId) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(floorId); + } + 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(floorId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierBattleCaseData mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // floorId + floorId = 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.floorId, floorId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public SoldierBattleCaseData mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 898626087: { + if (input.isAtField(FieldNames.floorId)) { + if (!input.trySkipNullValue()) { + floorId = 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 SoldierBattleCaseData clone() { + return new SoldierBattleCaseData().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierBattleCaseData parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierBattleCaseData(), data).checkInitialized(); + } + + public static SoldierBattleCaseData parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierBattleCaseData(), input).checkInitialized(); + } + + public static SoldierBattleCaseData parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierBattleCaseData(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierBattleCaseData messages + */ + public static MessageFactory getFactory() { + return SoldierBattleCaseDataFactory.INSTANCE; + } + + private enum SoldierBattleCaseDataFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierBattleCaseData create() { + return SoldierBattleCaseData.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName floorId = FieldName.forField("FloorId"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code EventSettlementOfDisputeCaseData} + */ + public static final class EventSettlementOfDisputeCaseData extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 DicePoint = 2; + */ + private int dicePoint; + + /** + * optional bool TwoDice = 3; + */ + private boolean twoDice; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated uint32 Ids = 1; + */ + private final RepeatedInt ids = RepeatedInt.newEmptyInstance(); + + private EventSettlementOfDisputeCaseData() { + } + + /** + * @return a new empty instance of {@code EventSettlementOfDisputeCaseData} + */ + public static EventSettlementOfDisputeCaseData newInstance() { + return new EventSettlementOfDisputeCaseData(); + } + + /** + * optional uint32 DicePoint = 2; + * @return whether the dicePoint field is set + */ + public boolean hasDicePoint() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 DicePoint = 2; + * @return this + */ + public EventSettlementOfDisputeCaseData clearDicePoint() { + bitField0_ &= ~0x00000001; + dicePoint = 0; + return this; + } + + /** + * optional uint32 DicePoint = 2; + * @return the dicePoint + */ + public int getDicePoint() { + return dicePoint; + } + + /** + * optional uint32 DicePoint = 2; + * @param value the dicePoint to set + * @return this + */ + public EventSettlementOfDisputeCaseData setDicePoint(final int value) { + bitField0_ |= 0x00000001; + dicePoint = value; + return this; + } + + /** + * optional bool TwoDice = 3; + * @return whether the twoDice field is set + */ + public boolean hasTwoDice() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bool TwoDice = 3; + * @return this + */ + public EventSettlementOfDisputeCaseData clearTwoDice() { + bitField0_ &= ~0x00000002; + twoDice = false; + return this; + } + + /** + * optional bool TwoDice = 3; + * @return the twoDice + */ + public boolean getTwoDice() { + return twoDice; + } + + /** + * optional bool TwoDice = 3; + * @param value the twoDice to set + * @return this + */ + public EventSettlementOfDisputeCaseData setTwoDice(final boolean value) { + bitField0_ |= 0x00000002; + twoDice = 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 EventSettlementOfDisputeCaseData 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 EventSettlementOfDisputeCaseData addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public EventSettlementOfDisputeCaseData addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public EventSettlementOfDisputeCaseData setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated uint32 Ids = 1; + * @return whether the ids field is set + */ + public boolean hasIds() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated uint32 Ids = 1; + * @return this + */ + public EventSettlementOfDisputeCaseData clearIds() { + bitField0_ &= ~0x00000008; + ids.clear(); + return this; + } + + /** + * repeated uint32 Ids = 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 #getMutableIds()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getIds() { + return ids; + } + + /** + * repeated uint32 Ids = 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 RepeatedInt getMutableIds() { + bitField0_ |= 0x00000008; + return ids; + } + + /** + * repeated uint32 Ids = 1; + * @param value the ids to add + * @return this + */ + public EventSettlementOfDisputeCaseData addIds(final int value) { + bitField0_ |= 0x00000008; + ids.add(value); + return this; + } + + /** + * repeated uint32 Ids = 1; + * @param values the ids to add + * @return this + */ + public EventSettlementOfDisputeCaseData addAllIds(final int... values) { + bitField0_ |= 0x00000008; + ids.addAll(values); + return this; + } + + @Override + public EventSettlementOfDisputeCaseData copyFrom(final EventSettlementOfDisputeCaseData other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + dicePoint = other.dicePoint; + twoDice = other.twoDice; + nextPackage.copyFrom(other.nextPackage); + ids.copyFrom(other.ids); + } + return this; + } + + @Override + public EventSettlementOfDisputeCaseData mergeFrom( + final EventSettlementOfDisputeCaseData other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasDicePoint()) { + setDicePoint(other.dicePoint); + } + if (other.hasTwoDice()) { + setTwoDice(other.twoDice); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasIds()) { + getMutableIds().addAll(other.ids); + } + return this; + } + + @Override + public EventSettlementOfDisputeCaseData clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + dicePoint = 0; + twoDice = false; + nextPackage.clear(); + ids.clear(); + return this; + } + + @Override + public EventSettlementOfDisputeCaseData clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + ids.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof EventSettlementOfDisputeCaseData)) { + return false; + } + EventSettlementOfDisputeCaseData other = (EventSettlementOfDisputeCaseData) o; + return bitField0_ == other.bitField0_ + && (!hasDicePoint() || dicePoint == other.dicePoint) + && (!hasTwoDice() || twoDice == other.twoDice) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasIds() || ids.equals(other.ids)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(dicePoint); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 24); + output.writeBoolNoTag(twoDice); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000008) != 0) { + for (int i = 0; i < ids.length(); i++) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(ids.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(dicePoint); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000008) != 0) { + size += (1 * ids.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(ids); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public EventSettlementOfDisputeCaseData mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // dicePoint + dicePoint = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // twoDice + twoDice = input.readBool(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // ids [packed=true] + input.readPackedUInt32(ids, tag); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 8: { + // ids [packed=false] + tag = input.readRepeatedUInt32(ids, tag); + bitField0_ |= 0x00000008; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.dicePoint, dicePoint); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBool(FieldNames.twoDice, twoDice); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedUInt32(FieldNames.ids, ids); + } + output.endObject(); + } + + @Override + public EventSettlementOfDisputeCaseData mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 596027913: { + if (input.isAtField(FieldNames.dicePoint)) { + if (!input.trySkipNullValue()) { + dicePoint = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 752407539: { + if (input.isAtField(FieldNames.twoDice)) { + if (!input.trySkipNullValue()) { + twoDice = 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; + } + case 73368: { + if (input.isAtField(FieldNames.ids)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(ids); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public EventSettlementOfDisputeCaseData clone() { + return new EventSettlementOfDisputeCaseData().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static EventSettlementOfDisputeCaseData parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new EventSettlementOfDisputeCaseData(), data).checkInitialized(); + } + + public static EventSettlementOfDisputeCaseData parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new EventSettlementOfDisputeCaseData(), input).checkInitialized(); + } + + public static EventSettlementOfDisputeCaseData parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new EventSettlementOfDisputeCaseData(), input).checkInitialized(); + } + + /** + * @return factory for creating EventSettlementOfDisputeCaseData messages + */ + public static MessageFactory getFactory() { + return EventSettlementOfDisputeCaseDataFactory.INSTANCE; + } + + private enum EventSettlementOfDisputeCaseDataFactory implements MessageFactory { + INSTANCE; + + @Override + public EventSettlementOfDisputeCaseData create() { + return EventSettlementOfDisputeCaseData.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName dicePoint = FieldName.forField("DicePoint"); + + static final FieldName twoDice = FieldName.forField("TwoDice"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName ids = FieldName.forField("Ids"); + } + } + + /** + * Protobuf type {@code EventSettlementOfDisputeBattleCaseData} + */ + public static final class EventSettlementOfDisputeBattleCaseData extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 BattleId = 1; + */ + private int battleId; + + /** + * optional uint32 FloorId = 2; + */ + private int floorId; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private EventSettlementOfDisputeBattleCaseData() { + } + + /** + * @return a new empty instance of {@code EventSettlementOfDisputeBattleCaseData} + */ + public static EventSettlementOfDisputeBattleCaseData newInstance() { + return new EventSettlementOfDisputeBattleCaseData(); + } + + /** + * optional uint32 BattleId = 1; + * @return whether the battleId field is set + */ + public boolean hasBattleId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 BattleId = 1; + * @return this + */ + public EventSettlementOfDisputeBattleCaseData clearBattleId() { + bitField0_ &= ~0x00000001; + battleId = 0; + return this; + } + + /** + * optional uint32 BattleId = 1; + * @return the battleId + */ + public int getBattleId() { + return battleId; + } + + /** + * optional uint32 BattleId = 1; + * @param value the battleId to set + * @return this + */ + public EventSettlementOfDisputeBattleCaseData setBattleId(final int value) { + bitField0_ |= 0x00000001; + battleId = value; + return this; + } + + /** + * optional uint32 FloorId = 2; + * @return whether the floorId field is set + */ + public boolean hasFloorId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 FloorId = 2; + * @return this + */ + public EventSettlementOfDisputeBattleCaseData clearFloorId() { + bitField0_ &= ~0x00000002; + floorId = 0; + return this; + } + + /** + * optional uint32 FloorId = 2; + * @return the floorId + */ + public int getFloorId() { + return floorId; + } + + /** + * optional uint32 FloorId = 2; + * @param value the floorId to set + * @return this + */ + public EventSettlementOfDisputeBattleCaseData setFloorId(final int value) { + bitField0_ |= 0x00000002; + floorId = 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 EventSettlementOfDisputeBattleCaseData 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 EventSettlementOfDisputeBattleCaseData addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public EventSettlementOfDisputeBattleCaseData addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public EventSettlementOfDisputeBattleCaseData setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + @Override + public EventSettlementOfDisputeBattleCaseData copyFrom( + final EventSettlementOfDisputeBattleCaseData other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + battleId = other.battleId; + floorId = other.floorId; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public EventSettlementOfDisputeBattleCaseData mergeFrom( + final EventSettlementOfDisputeBattleCaseData other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasBattleId()) { + setBattleId(other.battleId); + } + if (other.hasFloorId()) { + setFloorId(other.floorId); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public EventSettlementOfDisputeBattleCaseData clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + battleId = 0; + floorId = 0; + nextPackage.clear(); + return this; + } + + @Override + public EventSettlementOfDisputeBattleCaseData 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 EventSettlementOfDisputeBattleCaseData)) { + return false; + } + EventSettlementOfDisputeBattleCaseData other = (EventSettlementOfDisputeBattleCaseData) o; + return bitField0_ == other.bitField0_ + && (!hasBattleId() || battleId == other.battleId) + && (!hasFloorId() || floorId == other.floorId) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(battleId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(floorId); + } + 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(battleId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(floorId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public EventSettlementOfDisputeBattleCaseData mergeFrom(final ProtoSource input) throws + IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // battleId + battleId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // floorId + floorId = 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.battleId, battleId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.floorId, floorId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public EventSettlementOfDisputeBattleCaseData mergeFrom(final JsonSource input) throws + IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1613664237: { + if (input.isAtField(FieldNames.battleId)) { + if (!input.trySkipNullValue()) { + battleId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 898626087: { + if (input.isAtField(FieldNames.floorId)) { + if (!input.trySkipNullValue()) { + floorId = 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 EventSettlementOfDisputeBattleCaseData clone() { + return new EventSettlementOfDisputeBattleCaseData().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static EventSettlementOfDisputeBattleCaseData parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new EventSettlementOfDisputeBattleCaseData(), data).checkInitialized(); + } + + public static EventSettlementOfDisputeBattleCaseData parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new EventSettlementOfDisputeBattleCaseData(), input).checkInitialized(); + } + + public static EventSettlementOfDisputeBattleCaseData parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new EventSettlementOfDisputeBattleCaseData(), input).checkInitialized(); + } + + /** + * @return factory for creating EventSettlementOfDisputeBattleCaseData messages + */ + public static MessageFactory getFactory() { + return EventSettlementOfDisputeBattleCaseDataFactory.INSTANCE; + } + + private enum EventSettlementOfDisputeBattleCaseDataFactory implements MessageFactory { + INSTANCE; + + @Override + public EventSettlementOfDisputeBattleCaseData create() { + return EventSettlementOfDisputeBattleCaseData.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName battleId = FieldName.forField("BattleId"); + + static final FieldName floorId = FieldName.forField("FloorId"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code ClientEventCaseData} + */ + public static final class ClientEventCaseData extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private ClientEventCaseData() { + } + + /** + * @return a new empty instance of {@code ClientEventCaseData} + */ + public static ClientEventCaseData newInstance() { + return new ClientEventCaseData(); + } + + /** + * 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 ClientEventCaseData 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 ClientEventCaseData addNextPackage(final byte value) { + bitField0_ |= 0x00000001; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public ClientEventCaseData addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public ClientEventCaseData setNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.copyFrom(values); + return this; + } + + @Override + public ClientEventCaseData copyFrom(final ClientEventCaseData other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public ClientEventCaseData mergeFrom(final ClientEventCaseData other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public ClientEventCaseData clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + return this; + } + + @Override + public ClientEventCaseData 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 ClientEventCaseData)) { + return false; + } + ClientEventCaseData other = (ClientEventCaseData) o; + return bitField0_ == other.bitField0_ + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ClientEventCaseData 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 != 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); + } + output.endObject(); + } + + @Override + public ClientEventCaseData 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; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ClientEventCaseData clone() { + return new ClientEventCaseData().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ClientEventCaseData parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ClientEventCaseData(), data).checkInitialized(); + } + + public static ClientEventCaseData parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ClientEventCaseData(), input).checkInitialized(); + } + + public static ClientEventCaseData parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ClientEventCaseData(), input).checkInitialized(); + } + + /** + * @return factory for creating ClientEventCaseData messages + */ + public static MessageFactory getFactory() { + return ClientEventCaseDataFactory.INSTANCE; + } + + private enum ClientEventCaseDataFactory implements MessageFactory { + INSTANCE; + + @Override + public ClientEventCaseData create() { + return ClientEventCaseData.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code DeploySyncCaseData} + */ + public static final class DeploySyncCaseData extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private DeploySyncCaseData() { + } + + /** + * @return a new empty instance of {@code DeploySyncCaseData} + */ + public static DeploySyncCaseData newInstance() { + return new DeploySyncCaseData(); + } + + /** + * 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 DeploySyncCaseData 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 DeploySyncCaseData addNextPackage(final byte value) { + bitField0_ |= 0x00000001; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public DeploySyncCaseData addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public DeploySyncCaseData setNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.copyFrom(values); + return this; + } + + @Override + public DeploySyncCaseData copyFrom(final DeploySyncCaseData other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public DeploySyncCaseData mergeFrom(final DeploySyncCaseData other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public DeploySyncCaseData clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + return this; + } + + @Override + public DeploySyncCaseData 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 DeploySyncCaseData)) { + return false; + } + DeploySyncCaseData other = (DeploySyncCaseData) o; + return bitField0_ == other.bitField0_ + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public DeploySyncCaseData 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 != 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); + } + output.endObject(); + } + + @Override + public DeploySyncCaseData 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; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public DeploySyncCaseData clone() { + return new DeploySyncCaseData().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static DeploySyncCaseData parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new DeploySyncCaseData(), data).checkInitialized(); + } + + public static DeploySyncCaseData parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new DeploySyncCaseData(), input).checkInitialized(); + } + + public static DeploySyncCaseData parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new DeploySyncCaseData(), input).checkInitialized(); + } + + /** + * @return factory for creating DeploySyncCaseData messages + */ + public static MessageFactory getFactory() { + return DeploySyncCaseDataFactory.INSTANCE; + } + + private enum DeploySyncCaseDataFactory implements MessageFactory { + INSTANCE; + + @Override + public DeploySyncCaseData create() { + return DeploySyncCaseData.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code InteractShopReq} + */ + public static final class InteractShopReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Purchase = 1; + */ + private int purchase; + + /** + * optional bool Refresh = 3; + */ + private boolean refresh; + + /** + * optional bool Upgrade = 4; + */ + private boolean upgrade; + + /** + * optional bool Lock = 5; + */ + private boolean lock; + + /** + * optional .SoldierChess Sell = 2; + */ + private final SoldierChess sell = SoldierChess.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private InteractShopReq() { + } + + /** + * @return a new empty instance of {@code InteractShopReq} + */ + public static InteractShopReq newInstance() { + return new InteractShopReq(); + } + + /** + * optional uint32 Purchase = 1; + * @return whether the purchase field is set + */ + public boolean hasPurchase() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 Purchase = 1; + * @return this + */ + public InteractShopReq clearPurchase() { + bitField0_ &= ~0x00000001; + purchase = 0; + return this; + } + + /** + * optional uint32 Purchase = 1; + * @return the purchase + */ + public int getPurchase() { + return purchase; + } + + /** + * optional uint32 Purchase = 1; + * @param value the purchase to set + * @return this + */ + public InteractShopReq setPurchase(final int value) { + bitField0_ |= 0x00000001; + purchase = value; + return this; + } + + /** + * optional bool Refresh = 3; + * @return whether the refresh field is set + */ + public boolean hasRefresh() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bool Refresh = 3; + * @return this + */ + public InteractShopReq clearRefresh() { + bitField0_ &= ~0x00000002; + refresh = false; + return this; + } + + /** + * optional bool Refresh = 3; + * @return the refresh + */ + public boolean getRefresh() { + return refresh; + } + + /** + * optional bool Refresh = 3; + * @param value the refresh to set + * @return this + */ + public InteractShopReq setRefresh(final boolean value) { + bitField0_ |= 0x00000002; + refresh = value; + return this; + } + + /** + * optional bool Upgrade = 4; + * @return whether the upgrade field is set + */ + public boolean hasUpgrade() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bool Upgrade = 4; + * @return this + */ + public InteractShopReq clearUpgrade() { + bitField0_ &= ~0x00000004; + upgrade = false; + return this; + } + + /** + * optional bool Upgrade = 4; + * @return the upgrade + */ + public boolean getUpgrade() { + return upgrade; + } + + /** + * optional bool Upgrade = 4; + * @param value the upgrade to set + * @return this + */ + public InteractShopReq setUpgrade(final boolean value) { + bitField0_ |= 0x00000004; + upgrade = value; + return this; + } + + /** + * optional bool Lock = 5; + * @return whether the lock field is set + */ + public boolean hasLock() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional bool Lock = 5; + * @return this + */ + public InteractShopReq clearLock() { + bitField0_ &= ~0x00000008; + lock = false; + return this; + } + + /** + * optional bool Lock = 5; + * @return the lock + */ + public boolean getLock() { + return lock; + } + + /** + * optional bool Lock = 5; + * @param value the lock to set + * @return this + */ + public InteractShopReq setLock(final boolean value) { + bitField0_ |= 0x00000008; + lock = value; + return this; + } + + /** + * optional .SoldierChess Sell = 2; + * @return whether the sell field is set + */ + public boolean hasSell() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional .SoldierChess Sell = 2; + * @return this + */ + public InteractShopReq clearSell() { + bitField0_ &= ~0x00000010; + sell.clear(); + return this; + } + + /** + * optional .SoldierChess Sell = 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 #getMutableSell()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SoldierChess getSell() { + return sell; + } + + /** + * optional .SoldierChess Sell = 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 SoldierChess getMutableSell() { + bitField0_ |= 0x00000010; + return sell; + } + + /** + * optional .SoldierChess Sell = 2; + * @param value the sell to set + * @return this + */ + public InteractShopReq setSell(final SoldierChess value) { + bitField0_ |= 0x00000010; + sell.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 InteractShopReq 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 InteractShopReq addNextPackage(final byte value) { + bitField0_ |= 0x00000020; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public InteractShopReq addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000020; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public InteractShopReq setNextPackage(final byte... values) { + bitField0_ |= 0x00000020; + nextPackage.copyFrom(values); + return this; + } + + @Override + public InteractShopReq copyFrom(final InteractShopReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + purchase = other.purchase; + refresh = other.refresh; + upgrade = other.upgrade; + lock = other.lock; + sell.copyFrom(other.sell); + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public InteractShopReq mergeFrom(final InteractShopReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasPurchase()) { + setPurchase(other.purchase); + } + if (other.hasRefresh()) { + setRefresh(other.refresh); + } + if (other.hasUpgrade()) { + setUpgrade(other.upgrade); + } + if (other.hasLock()) { + setLock(other.lock); + } + if (other.hasSell()) { + getMutableSell().mergeFrom(other.sell); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public InteractShopReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + purchase = 0; + refresh = false; + upgrade = false; + lock = false; + sell.clear(); + nextPackage.clear(); + return this; + } + + @Override + public InteractShopReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + sell.clearQuick(); + nextPackage.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof InteractShopReq)) { + return false; + } + InteractShopReq other = (InteractShopReq) o; + return bitField0_ == other.bitField0_ + && (!hasPurchase() || purchase == other.purchase) + && (!hasRefresh() || refresh == other.refresh) + && (!hasUpgrade() || upgrade == other.upgrade) + && (!hasLock() || lock == other.lock) + && (!hasSell() || sell.equals(other.sell)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(purchase); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 24); + output.writeBoolNoTag(refresh); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 32); + output.writeBoolNoTag(upgrade); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 40); + output.writeBoolNoTag(lock); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(sell); + } + 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.computeUInt32SizeNoTag(purchase); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(sell); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public InteractShopReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // purchase + purchase = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // refresh + refresh = input.readBool(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // upgrade + upgrade = input.readBool(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // lock + lock = input.readBool(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // sell + input.readMessage(sell); + 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.writeUInt32(FieldNames.purchase, purchase); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBool(FieldNames.refresh, refresh); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBool(FieldNames.upgrade, upgrade); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeBool(FieldNames.lock, lock); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeMessage(FieldNames.sell, sell); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public InteractShopReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1807968545: { + if (input.isAtField(FieldNames.purchase)) { + if (!input.trySkipNullValue()) { + purchase = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1544869189: { + if (input.isAtField(FieldNames.refresh)) { + if (!input.trySkipNullValue()) { + refresh = input.readBool(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1433481724: { + if (input.isAtField(FieldNames.upgrade)) { + if (!input.trySkipNullValue()) { + upgrade = input.readBool(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2373963: { + if (input.isAtField(FieldNames.lock)) { + if (!input.trySkipNullValue()) { + lock = input.readBool(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2573170: { + if (input.isAtField(FieldNames.sell)) { + if (!input.trySkipNullValue()) { + input.readMessage(sell); + 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 InteractShopReq clone() { + return new InteractShopReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static InteractShopReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new InteractShopReq(), data).checkInitialized(); + } + + public static InteractShopReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new InteractShopReq(), input).checkInitialized(); + } + + public static InteractShopReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new InteractShopReq(), input).checkInitialized(); + } + + /** + * @return factory for creating InteractShopReq messages + */ + public static MessageFactory getFactory() { + return InteractShopReqFactory.INSTANCE; + } + + private enum InteractShopReqFactory implements MessageFactory { + INSTANCE; + + @Override + public InteractShopReq create() { + return InteractShopReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName purchase = FieldName.forField("Purchase"); + + static final FieldName refresh = FieldName.forField("Refresh"); + + static final FieldName upgrade = FieldName.forField("Upgrade"); + + static final FieldName lock = FieldName.forField("Lock"); + + static final FieldName sell = FieldName.forField("Sell"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code InteractShopResp} + */ + public static final class InteractShopResp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional bool Succeed = 5; + */ + private boolean succeed; + + /** + * optional .SoldierChess Goods = 1; + */ + private final SoldierChess goods = SoldierChess.newInstance(); + + /** + * optional .ShopCaseData ShopData = 2; + */ + private final ShopCaseData shopData = ShopCaseData.newInstance(); + + /** + * optional .InteractShopResp.UpgradeResult Upgrade = 3; + */ + private final UpgradeResult upgrade = UpgradeResult.newInstance(); + + /** + * optional .SoldierRes Res = 4; + */ + private final SoldierRes res = SoldierRes.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private InteractShopResp() { + } + + /** + * @return a new empty instance of {@code InteractShopResp} + */ + public static InteractShopResp newInstance() { + return new InteractShopResp(); + } + + /** + * optional bool Succeed = 5; + * @return whether the succeed field is set + */ + public boolean hasSucceed() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional bool Succeed = 5; + * @return this + */ + public InteractShopResp clearSucceed() { + bitField0_ &= ~0x00000001; + succeed = false; + return this; + } + + /** + * optional bool Succeed = 5; + * @return the succeed + */ + public boolean getSucceed() { + return succeed; + } + + /** + * optional bool Succeed = 5; + * @param value the succeed to set + * @return this + */ + public InteractShopResp setSucceed(final boolean value) { + bitField0_ |= 0x00000001; + succeed = value; + return this; + } + + /** + * optional .SoldierChess Goods = 1; + * @return whether the goods field is set + */ + public boolean hasGoods() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .SoldierChess Goods = 1; + * @return this + */ + public InteractShopResp clearGoods() { + bitField0_ &= ~0x00000002; + goods.clear(); + return this; + } + + /** + * optional .SoldierChess Goods = 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 #getMutableGoods()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SoldierChess getGoods() { + return goods; + } + + /** + * optional .SoldierChess Goods = 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 SoldierChess getMutableGoods() { + bitField0_ |= 0x00000002; + return goods; + } + + /** + * optional .SoldierChess Goods = 1; + * @param value the goods to set + * @return this + */ + public InteractShopResp setGoods(final SoldierChess value) { + bitField0_ |= 0x00000002; + goods.copyFrom(value); + return this; + } + + /** + * optional .ShopCaseData ShopData = 2; + * @return whether the shopData field is set + */ + public boolean hasShopData() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .ShopCaseData ShopData = 2; + * @return this + */ + public InteractShopResp clearShopData() { + bitField0_ &= ~0x00000004; + shopData.clear(); + return this; + } + + /** + * optional .ShopCaseData ShopData = 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 #getMutableShopData()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ShopCaseData getShopData() { + return shopData; + } + + /** + * optional .ShopCaseData ShopData = 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 ShopCaseData getMutableShopData() { + bitField0_ |= 0x00000004; + return shopData; + } + + /** + * optional .ShopCaseData ShopData = 2; + * @param value the shopData to set + * @return this + */ + public InteractShopResp setShopData(final ShopCaseData value) { + bitField0_ |= 0x00000004; + shopData.copyFrom(value); + return this; + } + + /** + * optional .InteractShopResp.UpgradeResult Upgrade = 3; + * @return whether the upgrade field is set + */ + public boolean hasUpgrade() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .InteractShopResp.UpgradeResult Upgrade = 3; + * @return this + */ + public InteractShopResp clearUpgrade() { + bitField0_ &= ~0x00000008; + upgrade.clear(); + return this; + } + + /** + * optional .InteractShopResp.UpgradeResult Upgrade = 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 #getMutableUpgrade()} if you want to modify it. + * + * @return internal storage object for reading + */ + public UpgradeResult getUpgrade() { + return upgrade; + } + + /** + * optional .InteractShopResp.UpgradeResult Upgrade = 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 UpgradeResult getMutableUpgrade() { + bitField0_ |= 0x00000008; + return upgrade; + } + + /** + * optional .InteractShopResp.UpgradeResult Upgrade = 3; + * @param value the upgrade to set + * @return this + */ + public InteractShopResp setUpgrade(final UpgradeResult value) { + bitField0_ |= 0x00000008; + upgrade.copyFrom(value); + return this; + } + + /** + * optional .SoldierRes Res = 4; + * @return whether the res field is set + */ + public boolean hasRes() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional .SoldierRes Res = 4; + * @return this + */ + public InteractShopResp clearRes() { + bitField0_ &= ~0x00000010; + res.clear(); + return this; + } + + /** + * optional .SoldierRes Res = 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 #getMutableRes()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SoldierRes getRes() { + return res; + } + + /** + * optional .SoldierRes Res = 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 SoldierRes getMutableRes() { + bitField0_ |= 0x00000010; + return res; + } + + /** + * optional .SoldierRes Res = 4; + * @param value the res to set + * @return this + */ + public InteractShopResp setRes(final SoldierRes value) { + bitField0_ |= 0x00000010; + res.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 InteractShopResp 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 InteractShopResp addNextPackage(final byte value) { + bitField0_ |= 0x00000020; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public InteractShopResp addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000020; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public InteractShopResp setNextPackage(final byte... values) { + bitField0_ |= 0x00000020; + nextPackage.copyFrom(values); + return this; + } + + @Override + public InteractShopResp copyFrom(final InteractShopResp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + succeed = other.succeed; + goods.copyFrom(other.goods); + shopData.copyFrom(other.shopData); + upgrade.copyFrom(other.upgrade); + res.copyFrom(other.res); + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public InteractShopResp mergeFrom(final InteractShopResp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasSucceed()) { + setSucceed(other.succeed); + } + if (other.hasGoods()) { + getMutableGoods().mergeFrom(other.goods); + } + if (other.hasShopData()) { + getMutableShopData().mergeFrom(other.shopData); + } + if (other.hasUpgrade()) { + getMutableUpgrade().mergeFrom(other.upgrade); + } + if (other.hasRes()) { + getMutableRes().mergeFrom(other.res); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public InteractShopResp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + succeed = false; + goods.clear(); + shopData.clear(); + upgrade.clear(); + res.clear(); + nextPackage.clear(); + return this; + } + + @Override + public InteractShopResp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + goods.clearQuick(); + shopData.clearQuick(); + upgrade.clearQuick(); + res.clearQuick(); + nextPackage.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof InteractShopResp)) { + return false; + } + InteractShopResp other = (InteractShopResp) o; + return bitField0_ == other.bitField0_ + && (!hasSucceed() || succeed == other.succeed) + && (!hasGoods() || goods.equals(other.goods)) + && (!hasShopData() || shopData.equals(other.shopData)) + && (!hasUpgrade() || upgrade.equals(other.upgrade)) + && (!hasRes() || res.equals(other.res)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 40); + output.writeBoolNoTag(succeed); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(goods); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(shopData); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(upgrade); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 34); + output.writeMessageNoTag(res); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(goods); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(shopData); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(upgrade); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(res); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public InteractShopResp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 40: { + // succeed + succeed = input.readBool(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // goods + input.readMessage(goods); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // shopData + input.readMessage(shopData); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // upgrade + input.readMessage(upgrade); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // res + input.readMessage(res); + 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.writeBool(FieldNames.succeed, succeed); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.goods, goods); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.shopData, shopData); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeMessage(FieldNames.upgrade, upgrade); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeMessage(FieldNames.res, res); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public InteractShopResp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -202516958: { + if (input.isAtField(FieldNames.succeed)) { + if (!input.trySkipNullValue()) { + succeed = input.readBool(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 68986678: { + if (input.isAtField(FieldNames.goods)) { + if (!input.trySkipNullValue()) { + input.readMessage(goods); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -281135136: { + if (input.isAtField(FieldNames.shopData)) { + if (!input.trySkipNullValue()) { + input.readMessage(shopData); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1433481724: { + if (input.isAtField(FieldNames.upgrade)) { + if (!input.trySkipNullValue()) { + input.readMessage(upgrade); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 82048: { + if (input.isAtField(FieldNames.res)) { + if (!input.trySkipNullValue()) { + input.readMessage(res); + 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 InteractShopResp clone() { + return new InteractShopResp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static InteractShopResp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new InteractShopResp(), data).checkInitialized(); + } + + public static InteractShopResp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new InteractShopResp(), input).checkInitialized(); + } + + public static InteractShopResp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new InteractShopResp(), input).checkInitialized(); + } + + /** + * @return factory for creating InteractShopResp messages + */ + public static MessageFactory getFactory() { + return InteractShopRespFactory.INSTANCE; + } + + /** + * Protobuf type {@code UpgradeResult} + */ + public static final class UpgradeResult extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Level = 1; + */ + private int level; + + /** + * optional uint32 Exp = 2; + */ + private int exp; + + /** + * repeated uint32 RarityUp = 3; + */ + private final RepeatedInt rarityUp = RepeatedInt.newEmptyInstance(); + + private UpgradeResult() { + } + + /** + * @return a new empty instance of {@code UpgradeResult} + */ + public static UpgradeResult newInstance() { + return new UpgradeResult(); + } + + /** + * optional uint32 Level = 1; + * @return whether the level field is set + */ + public boolean hasLevel() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 Level = 1; + * @return this + */ + public UpgradeResult clearLevel() { + bitField0_ &= ~0x00000001; + level = 0; + return this; + } + + /** + * optional uint32 Level = 1; + * @return the level + */ + public int getLevel() { + return level; + } + + /** + * optional uint32 Level = 1; + * @param value the level to set + * @return this + */ + public UpgradeResult setLevel(final int value) { + bitField0_ |= 0x00000001; + level = value; + return this; + } + + /** + * optional uint32 Exp = 2; + * @return whether the exp field is set + */ + public boolean hasExp() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 Exp = 2; + * @return this + */ + public UpgradeResult clearExp() { + bitField0_ &= ~0x00000002; + exp = 0; + return this; + } + + /** + * optional uint32 Exp = 2; + * @return the exp + */ + public int getExp() { + return exp; + } + + /** + * optional uint32 Exp = 2; + * @param value the exp to set + * @return this + */ + public UpgradeResult setExp(final int value) { + bitField0_ |= 0x00000002; + exp = value; + return this; + } + + /** + * repeated uint32 RarityUp = 3; + * @return whether the rarityUp field is set + */ + public boolean hasRarityUp() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated uint32 RarityUp = 3; + * @return this + */ + public UpgradeResult clearRarityUp() { + bitField0_ &= ~0x00000004; + rarityUp.clear(); + return this; + } + + /** + * repeated uint32 RarityUp = 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 #getMutableRarityUp()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getRarityUp() { + return rarityUp; + } + + /** + * repeated uint32 RarityUp = 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 RepeatedInt getMutableRarityUp() { + bitField0_ |= 0x00000004; + return rarityUp; + } + + /** + * repeated uint32 RarityUp = 3; + * @param value the rarityUp to add + * @return this + */ + public UpgradeResult addRarityUp(final int value) { + bitField0_ |= 0x00000004; + rarityUp.add(value); + return this; + } + + /** + * repeated uint32 RarityUp = 3; + * @param values the rarityUp to add + * @return this + */ + public UpgradeResult addAllRarityUp(final int... values) { + bitField0_ |= 0x00000004; + rarityUp.addAll(values); + return this; + } + + @Override + public UpgradeResult copyFrom(final UpgradeResult other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + level = other.level; + exp = other.exp; + rarityUp.copyFrom(other.rarityUp); + } + return this; + } + + @Override + public UpgradeResult mergeFrom(final UpgradeResult other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasLevel()) { + setLevel(other.level); + } + if (other.hasExp()) { + setExp(other.exp); + } + if (other.hasRarityUp()) { + getMutableRarityUp().addAll(other.rarityUp); + } + return this; + } + + @Override + public UpgradeResult clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + level = 0; + exp = 0; + rarityUp.clear(); + return this; + } + + @Override + public UpgradeResult clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + rarityUp.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof UpgradeResult)) { + return false; + } + UpgradeResult other = (UpgradeResult) o; + return bitField0_ == other.bitField0_ + && (!hasLevel() || level == other.level) + && (!hasExp() || exp == other.exp) + && (!hasRarityUp() || rarityUp.equals(other.rarityUp)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(level); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(exp); + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < rarityUp.length(); i++) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(rarityUp.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(level); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(exp); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * rarityUp.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(rarityUp); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public UpgradeResult mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // level + level = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // exp + exp = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // rarityUp [packed=true] + input.readPackedUInt32(rarityUp, tag); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 24: { + // rarityUp [packed=false] + tag = input.readRepeatedUInt32(rarityUp, tag); + bitField0_ |= 0x00000004; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.level, level); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.exp, exp); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedUInt32(FieldNames.rarityUp, rarityUp); + } + output.endObject(); + } + + @Override + public UpgradeResult mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 73313124: { + if (input.isAtField(FieldNames.level)) { + if (!input.trySkipNullValue()) { + level = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 70141: { + if (input.isAtField(FieldNames.exp)) { + if (!input.trySkipNullValue()) { + exp = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 434338246: { + if (input.isAtField(FieldNames.rarityUp)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(rarityUp); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public UpgradeResult clone() { + return new UpgradeResult().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static UpgradeResult parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new UpgradeResult(), data).checkInitialized(); + } + + public static UpgradeResult parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new UpgradeResult(), input).checkInitialized(); + } + + public static UpgradeResult parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new UpgradeResult(), input).checkInitialized(); + } + + /** + * @return factory for creating UpgradeResult messages + */ + public static MessageFactory getFactory() { + return UpgradeResultFactory.INSTANCE; + } + + private enum UpgradeResultFactory implements MessageFactory { + INSTANCE; + + @Override + public UpgradeResult create() { + return UpgradeResult.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName level = FieldName.forField("Level"); + + static final FieldName exp = FieldName.forField("Exp"); + + static final FieldName rarityUp = FieldName.forField("RarityUp"); + } + } + + private enum InteractShopRespFactory implements MessageFactory { + INSTANCE; + + @Override + public InteractShopResp create() { + return InteractShopResp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName succeed = FieldName.forField("Succeed"); + + static final FieldName goods = FieldName.forField("Goods"); + + static final FieldName shopData = FieldName.forField("ShopData"); + + static final FieldName upgrade = FieldName.forField("Upgrade"); + + static final FieldName res = FieldName.forField("Res"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code InteractFightReq} + */ + public static final class InteractFightReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .SoldierDeploy Deploy = 1; + */ + private final SoldierDeploy deploy = SoldierDeploy.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private InteractFightReq() { + } + + /** + * @return a new empty instance of {@code InteractFightReq} + */ + public static InteractFightReq newInstance() { + return new InteractFightReq(); + } + + /** + * optional .SoldierDeploy Deploy = 1; + * @return whether the deploy field is set + */ + public boolean hasDeploy() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .SoldierDeploy Deploy = 1; + * @return this + */ + public InteractFightReq clearDeploy() { + bitField0_ &= ~0x00000001; + deploy.clear(); + return this; + } + + /** + * optional .SoldierDeploy Deploy = 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 #getMutableDeploy()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SoldierDeploy getDeploy() { + return deploy; + } + + /** + * optional .SoldierDeploy Deploy = 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 SoldierDeploy getMutableDeploy() { + bitField0_ |= 0x00000001; + return deploy; + } + + /** + * optional .SoldierDeploy Deploy = 1; + * @param value the deploy to set + * @return this + */ + public InteractFightReq setDeploy(final SoldierDeploy value) { + bitField0_ |= 0x00000001; + deploy.copyFrom(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 InteractFightReq 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 InteractFightReq addNextPackage(final byte value) { + bitField0_ |= 0x00000002; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public InteractFightReq addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public InteractFightReq setNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.copyFrom(values); + return this; + } + + @Override + public InteractFightReq copyFrom(final InteractFightReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + deploy.copyFrom(other.deploy); + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public InteractFightReq mergeFrom(final InteractFightReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasDeploy()) { + getMutableDeploy().mergeFrom(other.deploy); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public InteractFightReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + deploy.clear(); + nextPackage.clear(); + return this; + } + + @Override + public InteractFightReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + deploy.clearQuick(); + nextPackage.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof InteractFightReq)) { + return false; + } + InteractFightReq other = (InteractFightReq) o; + return bitField0_ == other.bitField0_ + && (!hasDeploy() || deploy.equals(other.deploy)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(deploy); + } + 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.computeMessageSizeNoTag(deploy); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public InteractFightReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 10: { + // deploy + input.readMessage(deploy); + 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.writeMessage(FieldNames.deploy, deploy); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public InteractFightReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 2043501831: { + if (input.isAtField(FieldNames.deploy)) { + if (!input.trySkipNullValue()) { + input.readMessage(deploy); + 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 InteractFightReq clone() { + return new InteractFightReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static InteractFightReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new InteractFightReq(), data).checkInitialized(); + } + + public static InteractFightReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new InteractFightReq(), input).checkInitialized(); + } + + public static InteractFightReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new InteractFightReq(), input).checkInitialized(); + } + + /** + * @return factory for creating InteractFightReq messages + */ + public static MessageFactory getFactory() { + return InteractFightReqFactory.INSTANCE; + } + + private enum InteractFightReqFactory implements MessageFactory { + INSTANCE; + + @Override + public InteractFightReq create() { + return InteractFightReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName deploy = FieldName.forField("Deploy"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code InteractSoldierBattleReq} + */ + public static final class InteractSoldierBattleReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 DataLen = 1; + */ + private int dataLen; + + /** + * optional uint32 DataVersion = 3; + */ + private int dataVersion; + + /** + * optional uint32 ChessSkillAddGold = 4; + */ + private int chessSkillAddGold; + + /** + * optional bool Defeat = 14; + */ + private boolean defeat; + + /** + * optional .InteractSoldierBattleReq.VictoryData Victory = 13; + */ + private final VictoryData victory = VictoryData.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * optional string ClientData = 2; + */ + private final Utf8String clientData = Utf8String.newEmptyInstance(); + + private InteractSoldierBattleReq() { + } + + /** + * @return a new empty instance of {@code InteractSoldierBattleReq} + */ + public static InteractSoldierBattleReq newInstance() { + return new InteractSoldierBattleReq(); + } + + /** + * optional uint32 DataLen = 1; + * @return whether the dataLen field is set + */ + public boolean hasDataLen() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 DataLen = 1; + * @return this + */ + public InteractSoldierBattleReq clearDataLen() { + bitField0_ &= ~0x00000001; + dataLen = 0; + return this; + } + + /** + * optional uint32 DataLen = 1; + * @return the dataLen + */ + public int getDataLen() { + return dataLen; + } + + /** + * optional uint32 DataLen = 1; + * @param value the dataLen to set + * @return this + */ + public InteractSoldierBattleReq setDataLen(final int value) { + bitField0_ |= 0x00000001; + dataLen = value; + return this; + } + + /** + * optional uint32 DataVersion = 3; + * @return whether the dataVersion field is set + */ + public boolean hasDataVersion() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 DataVersion = 3; + * @return this + */ + public InteractSoldierBattleReq clearDataVersion() { + bitField0_ &= ~0x00000002; + dataVersion = 0; + return this; + } + + /** + * optional uint32 DataVersion = 3; + * @return the dataVersion + */ + public int getDataVersion() { + return dataVersion; + } + + /** + * optional uint32 DataVersion = 3; + * @param value the dataVersion to set + * @return this + */ + public InteractSoldierBattleReq setDataVersion(final int value) { + bitField0_ |= 0x00000002; + dataVersion = value; + return this; + } + + /** + * optional uint32 ChessSkillAddGold = 4; + * @return whether the chessSkillAddGold field is set + */ + public boolean hasChessSkillAddGold() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 ChessSkillAddGold = 4; + * @return this + */ + public InteractSoldierBattleReq clearChessSkillAddGold() { + bitField0_ &= ~0x00000004; + chessSkillAddGold = 0; + return this; + } + + /** + * optional uint32 ChessSkillAddGold = 4; + * @return the chessSkillAddGold + */ + public int getChessSkillAddGold() { + return chessSkillAddGold; + } + + /** + * optional uint32 ChessSkillAddGold = 4; + * @param value the chessSkillAddGold to set + * @return this + */ + public InteractSoldierBattleReq setChessSkillAddGold(final int value) { + bitField0_ |= 0x00000004; + chessSkillAddGold = value; + return this; + } + + /** + * optional bool Defeat = 14; + * @return whether the defeat field is set + */ + public boolean hasDefeat() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional bool Defeat = 14; + * @return this + */ + public InteractSoldierBattleReq clearDefeat() { + bitField0_ &= ~0x00000008; + defeat = false; + return this; + } + + /** + * optional bool Defeat = 14; + * @return the defeat + */ + public boolean getDefeat() { + return defeat; + } + + /** + * optional bool Defeat = 14; + * @param value the defeat to set + * @return this + */ + public InteractSoldierBattleReq setDefeat(final boolean value) { + bitField0_ |= 0x00000008; + defeat = value; + return this; + } + + /** + * optional .InteractSoldierBattleReq.VictoryData Victory = 13; + * @return whether the victory field is set + */ + public boolean hasVictory() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional .InteractSoldierBattleReq.VictoryData Victory = 13; + * @return this + */ + public InteractSoldierBattleReq clearVictory() { + bitField0_ &= ~0x00000010; + victory.clear(); + return this; + } + + /** + * optional .InteractSoldierBattleReq.VictoryData Victory = 13; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableVictory()} if you want to modify it. + * + * @return internal storage object for reading + */ + public VictoryData getVictory() { + return victory; + } + + /** + * optional .InteractSoldierBattleReq.VictoryData Victory = 13; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public VictoryData getMutableVictory() { + bitField0_ |= 0x00000010; + return victory; + } + + /** + * optional .InteractSoldierBattleReq.VictoryData Victory = 13; + * @param value the victory to set + * @return this + */ + public InteractSoldierBattleReq setVictory(final VictoryData value) { + bitField0_ |= 0x00000010; + victory.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 InteractSoldierBattleReq 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 InteractSoldierBattleReq addNextPackage(final byte value) { + bitField0_ |= 0x00000020; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public InteractSoldierBattleReq addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000020; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public InteractSoldierBattleReq setNextPackage(final byte... values) { + bitField0_ |= 0x00000020; + nextPackage.copyFrom(values); + return this; + } + + /** + * optional string ClientData = 2; + * @return whether the clientData field is set + */ + public boolean hasClientData() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional string ClientData = 2; + * @return this + */ + public InteractSoldierBattleReq clearClientData() { + bitField0_ &= ~0x00000040; + clientData.clear(); + return this; + } + + /** + * optional string ClientData = 2; + * @return the clientData + */ + public String getClientData() { + return clientData.getString(); + } + + /** + * optional string ClientData = 2; + * @return internal {@code Utf8String} representation of clientData for reading + */ + public Utf8String getClientDataBytes() { + return this.clientData; + } + + /** + * optional string ClientData = 2; + * @return internal {@code Utf8String} representation of clientData for modifications + */ + public Utf8String getMutableClientDataBytes() { + bitField0_ |= 0x00000040; + return this.clientData; + } + + /** + * optional string ClientData = 2; + * @param value the clientData to set + * @return this + */ + public InteractSoldierBattleReq setClientData(final CharSequence value) { + bitField0_ |= 0x00000040; + clientData.copyFrom(value); + return this; + } + + /** + * optional string ClientData = 2; + * @param value the clientData to set + * @return this + */ + public InteractSoldierBattleReq setClientData(final Utf8String value) { + bitField0_ |= 0x00000040; + clientData.copyFrom(value); + return this; + } + + @Override + public InteractSoldierBattleReq copyFrom(final InteractSoldierBattleReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + dataLen = other.dataLen; + dataVersion = other.dataVersion; + chessSkillAddGold = other.chessSkillAddGold; + defeat = other.defeat; + victory.copyFrom(other.victory); + nextPackage.copyFrom(other.nextPackage); + clientData.copyFrom(other.clientData); + } + return this; + } + + @Override + public InteractSoldierBattleReq mergeFrom(final InteractSoldierBattleReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasDataLen()) { + setDataLen(other.dataLen); + } + if (other.hasDataVersion()) { + setDataVersion(other.dataVersion); + } + if (other.hasChessSkillAddGold()) { + setChessSkillAddGold(other.chessSkillAddGold); + } + if (other.hasDefeat()) { + setDefeat(other.defeat); + } + if (other.hasVictory()) { + getMutableVictory().mergeFrom(other.victory); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasClientData()) { + getMutableClientDataBytes().copyFrom(other.clientData); + } + return this; + } + + @Override + public InteractSoldierBattleReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + dataLen = 0; + dataVersion = 0; + chessSkillAddGold = 0; + defeat = false; + victory.clear(); + nextPackage.clear(); + clientData.clear(); + return this; + } + + @Override + public InteractSoldierBattleReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + victory.clearQuick(); + nextPackage.clear(); + clientData.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof InteractSoldierBattleReq)) { + return false; + } + InteractSoldierBattleReq other = (InteractSoldierBattleReq) o; + return bitField0_ == other.bitField0_ + && (!hasDataLen() || dataLen == other.dataLen) + && (!hasDataVersion() || dataVersion == other.dataVersion) + && (!hasChessSkillAddGold() || chessSkillAddGold == other.chessSkillAddGold) + && (!hasDefeat() || defeat == other.defeat) + && (!hasVictory() || victory.equals(other.victory)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasClientData() || clientData.equals(other.clientData)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(dataLen); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(dataVersion); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(chessSkillAddGold); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 112); + output.writeBoolNoTag(defeat); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 106); + output.writeMessageNoTag(victory); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawByte((byte) 18); + output.writeStringNoTag(clientData); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(dataLen); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(dataVersion); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(chessSkillAddGold); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(victory); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000040) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(clientData); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public InteractSoldierBattleReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // dataLen + dataLen = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // dataVersion + dataVersion = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // chessSkillAddGold + chessSkillAddGold = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // defeat + defeat = input.readBool(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 106) { + break; + } + } + case 106: { + // victory + input.readMessage(victory); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // clientData + input.readString(clientData); + bitField0_ |= 0x00000040; + 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.dataLen, dataLen); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.dataVersion, dataVersion); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.chessSkillAddGold, chessSkillAddGold); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeBool(FieldNames.defeat, defeat); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeMessage(FieldNames.victory, victory); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeString(FieldNames.clientData, clientData); + } + output.endObject(); + } + + @Override + public InteractSoldierBattleReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1187137045: { + if (input.isAtField(FieldNames.dataLen)) { + if (!input.trySkipNullValue()) { + dataLen = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 538270126: { + if (input.isAtField(FieldNames.dataVersion)) { + if (!input.trySkipNullValue()) { + dataVersion = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 967766032: { + if (input.isAtField(FieldNames.chessSkillAddGold)) { + if (!input.trySkipNullValue()) { + chessSkillAddGold = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2043196755: { + if (input.isAtField(FieldNames.defeat)) { + if (!input.trySkipNullValue()) { + defeat = input.readBool(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2116960754: { + if (input.isAtField(FieldNames.victory)) { + if (!input.trySkipNullValue()) { + input.readMessage(victory); + 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; + } + case -1199548875: { + if (input.isAtField(FieldNames.clientData)) { + if (!input.trySkipNullValue()) { + input.readString(clientData); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public InteractSoldierBattleReq clone() { + return new InteractSoldierBattleReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static InteractSoldierBattleReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new InteractSoldierBattleReq(), data).checkInitialized(); + } + + public static InteractSoldierBattleReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new InteractSoldierBattleReq(), input).checkInitialized(); + } + + public static InteractSoldierBattleReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new InteractSoldierBattleReq(), input).checkInitialized(); + } + + /** + * @return factory for creating InteractSoldierBattleReq messages + */ + public static MessageFactory getFactory() { + return InteractSoldierBattleReqFactory.INSTANCE; + } + + /** + * Protobuf type {@code VictoryData} + */ + public static final class VictoryData extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Time = 1; + */ + private int time; + + private VictoryData() { + } + + /** + * @return a new empty instance of {@code VictoryData} + */ + public static VictoryData newInstance() { + return new VictoryData(); + } + + /** + * optional uint32 Time = 1; + * @return whether the time field is set + */ + public boolean hasTime() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 Time = 1; + * @return this + */ + public VictoryData clearTime() { + bitField0_ &= ~0x00000001; + 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 VictoryData setTime(final int value) { + bitField0_ |= 0x00000001; + time = value; + return this; + } + + @Override + public VictoryData copyFrom(final VictoryData other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + time = other.time; + } + return this; + } + + @Override + public VictoryData mergeFrom(final VictoryData other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasTime()) { + setTime(other.time); + } + return this; + } + + @Override + public VictoryData clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + time = 0; + return this; + } + + @Override + public VictoryData clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof VictoryData)) { + return false; + } + VictoryData other = (VictoryData) o; + return bitField0_ == other.bitField0_ + && (!hasTime() || time == other.time); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(time); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(time); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public VictoryData mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // time + time = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.time, time); + } + output.endObject(); + } + + @Override + public VictoryData mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 2606829: { + if (input.isAtField(FieldNames.time)) { + if (!input.trySkipNullValue()) { + time = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public VictoryData clone() { + return new VictoryData().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static VictoryData parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new VictoryData(), data).checkInitialized(); + } + + public static VictoryData parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new VictoryData(), input).checkInitialized(); + } + + public static VictoryData parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new VictoryData(), input).checkInitialized(); + } + + /** + * @return factory for creating VictoryData messages + */ + public static MessageFactory getFactory() { + return VictoryDataFactory.INSTANCE; + } + + private enum VictoryDataFactory implements MessageFactory { + INSTANCE; + + @Override + public VictoryData create() { + return VictoryData.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName time = FieldName.forField("Time"); + } + } + + private enum InteractSoldierBattleReqFactory implements MessageFactory { + INSTANCE; + + @Override + public InteractSoldierBattleReq create() { + return InteractSoldierBattleReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName dataLen = FieldName.forField("DataLen"); + + static final FieldName dataVersion = FieldName.forField("DataVersion"); + + static final FieldName chessSkillAddGold = FieldName.forField("ChessSkillAddGold"); + + static final FieldName defeat = FieldName.forField("Defeat"); + + static final FieldName victory = FieldName.forField("Victory"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName clientData = FieldName.forField("ClientData"); + } + } + + /** + * Protobuf type {@code InteractSoldierBattleResp} + */ + public static final class InteractSoldierBattleResp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 BaseReward = 1; + */ + private int baseReward; + + /** + * optional uint32 WinningStreak = 2; + */ + private int winningStreak; + + /** + * optional uint32 LosingStreak = 3; + */ + private int losingStreak; + + /** + * optional uint32 Interest = 4; + */ + private int interest; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private InteractSoldierBattleResp() { + } + + /** + * @return a new empty instance of {@code InteractSoldierBattleResp} + */ + public static InteractSoldierBattleResp newInstance() { + return new InteractSoldierBattleResp(); + } + + /** + * optional uint32 BaseReward = 1; + * @return whether the baseReward field is set + */ + public boolean hasBaseReward() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 BaseReward = 1; + * @return this + */ + public InteractSoldierBattleResp clearBaseReward() { + bitField0_ &= ~0x00000001; + baseReward = 0; + return this; + } + + /** + * optional uint32 BaseReward = 1; + * @return the baseReward + */ + public int getBaseReward() { + return baseReward; + } + + /** + * optional uint32 BaseReward = 1; + * @param value the baseReward to set + * @return this + */ + public InteractSoldierBattleResp setBaseReward(final int value) { + bitField0_ |= 0x00000001; + baseReward = value; + return this; + } + + /** + * optional uint32 WinningStreak = 2; + * @return whether the winningStreak field is set + */ + public boolean hasWinningStreak() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 WinningStreak = 2; + * @return this + */ + public InteractSoldierBattleResp clearWinningStreak() { + bitField0_ &= ~0x00000002; + winningStreak = 0; + return this; + } + + /** + * optional uint32 WinningStreak = 2; + * @return the winningStreak + */ + public int getWinningStreak() { + return winningStreak; + } + + /** + * optional uint32 WinningStreak = 2; + * @param value the winningStreak to set + * @return this + */ + public InteractSoldierBattleResp setWinningStreak(final int value) { + bitField0_ |= 0x00000002; + winningStreak = value; + return this; + } + + /** + * optional uint32 LosingStreak = 3; + * @return whether the losingStreak field is set + */ + public boolean hasLosingStreak() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 LosingStreak = 3; + * @return this + */ + public InteractSoldierBattleResp clearLosingStreak() { + bitField0_ &= ~0x00000004; + losingStreak = 0; + return this; + } + + /** + * optional uint32 LosingStreak = 3; + * @return the losingStreak + */ + public int getLosingStreak() { + return losingStreak; + } + + /** + * optional uint32 LosingStreak = 3; + * @param value the losingStreak to set + * @return this + */ + public InteractSoldierBattleResp setLosingStreak(final int value) { + bitField0_ |= 0x00000004; + losingStreak = value; + return this; + } + + /** + * optional uint32 Interest = 4; + * @return whether the interest field is set + */ + public boolean hasInterest() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 Interest = 4; + * @return this + */ + public InteractSoldierBattleResp clearInterest() { + bitField0_ &= ~0x00000008; + interest = 0; + return this; + } + + /** + * optional uint32 Interest = 4; + * @return the interest + */ + public int getInterest() { + return interest; + } + + /** + * optional uint32 Interest = 4; + * @param value the interest to set + * @return this + */ + public InteractSoldierBattleResp setInterest(final int value) { + bitField0_ |= 0x00000008; + interest = 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 InteractSoldierBattleResp 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 InteractSoldierBattleResp addNextPackage(final byte value) { + bitField0_ |= 0x00000010; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public InteractSoldierBattleResp addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000010; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public InteractSoldierBattleResp setNextPackage(final byte... values) { + bitField0_ |= 0x00000010; + nextPackage.copyFrom(values); + return this; + } + + @Override + public InteractSoldierBattleResp copyFrom(final InteractSoldierBattleResp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + baseReward = other.baseReward; + winningStreak = other.winningStreak; + losingStreak = other.losingStreak; + interest = other.interest; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public InteractSoldierBattleResp mergeFrom(final InteractSoldierBattleResp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasBaseReward()) { + setBaseReward(other.baseReward); + } + if (other.hasWinningStreak()) { + setWinningStreak(other.winningStreak); + } + if (other.hasLosingStreak()) { + setLosingStreak(other.losingStreak); + } + if (other.hasInterest()) { + setInterest(other.interest); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public InteractSoldierBattleResp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + baseReward = 0; + winningStreak = 0; + losingStreak = 0; + interest = 0; + nextPackage.clear(); + return this; + } + + @Override + public InteractSoldierBattleResp 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 InteractSoldierBattleResp)) { + return false; + } + InteractSoldierBattleResp other = (InteractSoldierBattleResp) o; + return bitField0_ == other.bitField0_ + && (!hasBaseReward() || baseReward == other.baseReward) + && (!hasWinningStreak() || winningStreak == other.winningStreak) + && (!hasLosingStreak() || losingStreak == other.losingStreak) + && (!hasInterest() || interest == other.interest) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(baseReward); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(winningStreak); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(losingStreak); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(interest); + } + 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(baseReward); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(winningStreak); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(losingStreak); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(interest); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public InteractSoldierBattleResp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // baseReward + baseReward = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // winningStreak + winningStreak = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // losingStreak + losingStreak = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // interest + interest = input.readUInt32(); + 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.baseReward, baseReward); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.winningStreak, winningStreak); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.losingStreak, losingStreak); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.interest, interest); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public InteractSoldierBattleResp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1133378944: { + if (input.isAtField(FieldNames.baseReward)) { + if (!input.trySkipNullValue()) { + baseReward = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2011584014: { + if (input.isAtField(FieldNames.winningStreak)) { + if (!input.trySkipNullValue()) { + winningStreak = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -460108592: { + if (input.isAtField(FieldNames.losingStreak)) { + if (!input.trySkipNullValue()) { + losingStreak = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 635046730: { + if (input.isAtField(FieldNames.interest)) { + if (!input.trySkipNullValue()) { + interest = input.readUInt32(); + 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 InteractSoldierBattleResp clone() { + return new InteractSoldierBattleResp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static InteractSoldierBattleResp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new InteractSoldierBattleResp(), data).checkInitialized(); + } + + public static InteractSoldierBattleResp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new InteractSoldierBattleResp(), input).checkInitialized(); + } + + public static InteractSoldierBattleResp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new InteractSoldierBattleResp(), input).checkInitialized(); + } + + /** + * @return factory for creating InteractSoldierBattleResp messages + */ + public static MessageFactory getFactory() { + return InteractSoldierBattleRespFactory.INSTANCE; + } + + private enum InteractSoldierBattleRespFactory implements MessageFactory { + INSTANCE; + + @Override + public InteractSoldierBattleResp create() { + return InteractSoldierBattleResp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName baseReward = FieldName.forField("BaseReward"); + + static final FieldName winningStreak = FieldName.forField("WinningStreak"); + + static final FieldName losingStreak = FieldName.forField("LosingStreak"); + + static final FieldName interest = FieldName.forField("Interest"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code InteractEventSettlementOfDisputeReq} + */ + public static final class InteractEventSettlementOfDisputeReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Index = 2; + */ + private int index; + + /** + * optional bool ThrowDice = 1; + */ + private boolean throwDice; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private InteractEventSettlementOfDisputeReq() { + } + + /** + * @return a new empty instance of {@code InteractEventSettlementOfDisputeReq} + */ + public static InteractEventSettlementOfDisputeReq newInstance() { + return new InteractEventSettlementOfDisputeReq(); + } + + /** + * optional uint32 Index = 2; + * @return whether the index field is set + */ + public boolean hasIndex() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 Index = 2; + * @return this + */ + public InteractEventSettlementOfDisputeReq clearIndex() { + bitField0_ &= ~0x00000001; + index = 0; + return this; + } + + /** + * optional uint32 Index = 2; + * @return the index + */ + public int getIndex() { + return index; + } + + /** + * optional uint32 Index = 2; + * @param value the index to set + * @return this + */ + public InteractEventSettlementOfDisputeReq setIndex(final int value) { + bitField0_ |= 0x00000001; + index = value; + return this; + } + + /** + * optional bool ThrowDice = 1; + * @return whether the throwDice field is set + */ + public boolean hasThrowDice() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bool ThrowDice = 1; + * @return this + */ + public InteractEventSettlementOfDisputeReq clearThrowDice() { + bitField0_ &= ~0x00000002; + throwDice = false; + return this; + } + + /** + * optional bool ThrowDice = 1; + * @return the throwDice + */ + public boolean getThrowDice() { + return throwDice; + } + + /** + * optional bool ThrowDice = 1; + * @param value the throwDice to set + * @return this + */ + public InteractEventSettlementOfDisputeReq setThrowDice(final boolean value) { + bitField0_ |= 0x00000002; + throwDice = 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 InteractEventSettlementOfDisputeReq 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 InteractEventSettlementOfDisputeReq addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public InteractEventSettlementOfDisputeReq addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public InteractEventSettlementOfDisputeReq setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + @Override + public InteractEventSettlementOfDisputeReq copyFrom( + final InteractEventSettlementOfDisputeReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + index = other.index; + throwDice = other.throwDice; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public InteractEventSettlementOfDisputeReq mergeFrom( + final InteractEventSettlementOfDisputeReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasIndex()) { + setIndex(other.index); + } + if (other.hasThrowDice()) { + setThrowDice(other.throwDice); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public InteractEventSettlementOfDisputeReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + index = 0; + throwDice = false; + nextPackage.clear(); + return this; + } + + @Override + public InteractEventSettlementOfDisputeReq 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 InteractEventSettlementOfDisputeReq)) { + return false; + } + InteractEventSettlementOfDisputeReq other = (InteractEventSettlementOfDisputeReq) o; + return bitField0_ == other.bitField0_ + && (!hasIndex() || index == other.index) + && (!hasThrowDice() || throwDice == other.throwDice) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(index); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 8); + output.writeBoolNoTag(throwDice); + } + 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(index); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public InteractEventSettlementOfDisputeReq mergeFrom(final ProtoSource input) throws + IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // index + index = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 8) { + break; + } + } + case 8: { + // throwDice + throwDice = 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.index, index); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBool(FieldNames.throwDice, throwDice); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public InteractEventSettlementOfDisputeReq mergeFrom(final JsonSource input) throws + IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 70793394: { + if (input.isAtField(FieldNames.index)) { + if (!input.trySkipNullValue()) { + index = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 747398029: { + if (input.isAtField(FieldNames.throwDice)) { + if (!input.trySkipNullValue()) { + throwDice = 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 InteractEventSettlementOfDisputeReq clone() { + return new InteractEventSettlementOfDisputeReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static InteractEventSettlementOfDisputeReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new InteractEventSettlementOfDisputeReq(), data).checkInitialized(); + } + + public static InteractEventSettlementOfDisputeReq parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new InteractEventSettlementOfDisputeReq(), input).checkInitialized(); + } + + public static InteractEventSettlementOfDisputeReq parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new InteractEventSettlementOfDisputeReq(), input).checkInitialized(); + } + + /** + * @return factory for creating InteractEventSettlementOfDisputeReq messages + */ + public static MessageFactory getFactory() { + return InteractEventSettlementOfDisputeReqFactory.INSTANCE; + } + + private enum InteractEventSettlementOfDisputeReqFactory implements MessageFactory { + INSTANCE; + + @Override + public InteractEventSettlementOfDisputeReq create() { + return InteractEventSettlementOfDisputeReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName index = FieldName.forField("Index"); + + static final FieldName throwDice = FieldName.forField("ThrowDice"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code InteractEventSettlementOfDisputeResp} + */ + public static final class InteractEventSettlementOfDisputeResp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .InteractEventSettlementOfDisputeResp.ThrowResult Result = 1; + */ + private final ThrowResult result = ThrowResult.newInstance(); + + /** + * optional .InteractEventSettlementOfDisputeResp.ChooseReward Reward = 2; + */ + private final ChooseReward reward = ChooseReward.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private InteractEventSettlementOfDisputeResp() { + } + + /** + * @return a new empty instance of {@code InteractEventSettlementOfDisputeResp} + */ + public static InteractEventSettlementOfDisputeResp newInstance() { + return new InteractEventSettlementOfDisputeResp(); + } + + /** + * optional .InteractEventSettlementOfDisputeResp.ThrowResult Result = 1; + * @return whether the result field is set + */ + public boolean hasResult() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .InteractEventSettlementOfDisputeResp.ThrowResult Result = 1; + * @return this + */ + public InteractEventSettlementOfDisputeResp clearResult() { + bitField0_ &= ~0x00000001; + result.clear(); + return this; + } + + /** + * optional .InteractEventSettlementOfDisputeResp.ThrowResult Result = 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 #getMutableResult()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ThrowResult getResult() { + return result; + } + + /** + * optional .InteractEventSettlementOfDisputeResp.ThrowResult Result = 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 ThrowResult getMutableResult() { + bitField0_ |= 0x00000001; + return result; + } + + /** + * optional .InteractEventSettlementOfDisputeResp.ThrowResult Result = 1; + * @param value the result to set + * @return this + */ + public InteractEventSettlementOfDisputeResp setResult(final ThrowResult value) { + bitField0_ |= 0x00000001; + result.copyFrom(value); + return this; + } + + /** + * optional .InteractEventSettlementOfDisputeResp.ChooseReward Reward = 2; + * @return whether the reward field is set + */ + public boolean hasReward() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .InteractEventSettlementOfDisputeResp.ChooseReward Reward = 2; + * @return this + */ + public InteractEventSettlementOfDisputeResp clearReward() { + bitField0_ &= ~0x00000002; + reward.clear(); + return this; + } + + /** + * optional .InteractEventSettlementOfDisputeResp.ChooseReward Reward = 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 #getMutableReward()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChooseReward getReward() { + return reward; + } + + /** + * optional .InteractEventSettlementOfDisputeResp.ChooseReward Reward = 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 ChooseReward getMutableReward() { + bitField0_ |= 0x00000002; + return reward; + } + + /** + * optional .InteractEventSettlementOfDisputeResp.ChooseReward Reward = 2; + * @param value the reward to set + * @return this + */ + public InteractEventSettlementOfDisputeResp setReward(final ChooseReward value) { + bitField0_ |= 0x00000002; + reward.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 InteractEventSettlementOfDisputeResp 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 InteractEventSettlementOfDisputeResp addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public InteractEventSettlementOfDisputeResp addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public InteractEventSettlementOfDisputeResp setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + @Override + public InteractEventSettlementOfDisputeResp copyFrom( + final InteractEventSettlementOfDisputeResp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + result.copyFrom(other.result); + reward.copyFrom(other.reward); + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public InteractEventSettlementOfDisputeResp mergeFrom( + final InteractEventSettlementOfDisputeResp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasResult()) { + getMutableResult().mergeFrom(other.result); + } + if (other.hasReward()) { + getMutableReward().mergeFrom(other.reward); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public InteractEventSettlementOfDisputeResp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + result.clear(); + reward.clear(); + nextPackage.clear(); + return this; + } + + @Override + public InteractEventSettlementOfDisputeResp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + result.clearQuick(); + reward.clearQuick(); + nextPackage.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof InteractEventSettlementOfDisputeResp)) { + return false; + } + InteractEventSettlementOfDisputeResp other = (InteractEventSettlementOfDisputeResp) o; + return bitField0_ == other.bitField0_ + && (!hasResult() || result.equals(other.result)) + && (!hasReward() || reward.equals(other.reward)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(result); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(reward); + } + 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.computeMessageSizeNoTag(result); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(reward); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public InteractEventSettlementOfDisputeResp mergeFrom(final ProtoSource input) throws + IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 10: { + // result + input.readMessage(result); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // reward + input.readMessage(reward); + 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.writeMessage(FieldNames.result, result); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.reward, reward); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public InteractEventSettlementOfDisputeResp mergeFrom(final JsonSource input) throws + IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1850559427: { + if (input.isAtField(FieldNames.result)) { + if (!input.trySkipNullValue()) { + input.readMessage(result); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1850459313: { + if (input.isAtField(FieldNames.reward)) { + if (!input.trySkipNullValue()) { + input.readMessage(reward); + 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 InteractEventSettlementOfDisputeResp clone() { + return new InteractEventSettlementOfDisputeResp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static InteractEventSettlementOfDisputeResp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new InteractEventSettlementOfDisputeResp(), data).checkInitialized(); + } + + public static InteractEventSettlementOfDisputeResp parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new InteractEventSettlementOfDisputeResp(), input).checkInitialized(); + } + + public static InteractEventSettlementOfDisputeResp parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new InteractEventSettlementOfDisputeResp(), input).checkInitialized(); + } + + /** + * @return factory for creating InteractEventSettlementOfDisputeResp messages + */ + public static MessageFactory getFactory() { + return InteractEventSettlementOfDisputeRespFactory.INSTANCE; + } + + /** + * Protobuf type {@code ThrowResult} + */ + public static final class ThrowResult extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Point = 1; + */ + private int point; + + /** + * repeated uint32 TwoDicePoint = 2; + */ + private final RepeatedInt twoDicePoint = RepeatedInt.newEmptyInstance(); + + private ThrowResult() { + } + + /** + * @return a new empty instance of {@code ThrowResult} + */ + public static ThrowResult newInstance() { + return new ThrowResult(); + } + + /** + * optional uint32 Point = 1; + * @return whether the point field is set + */ + public boolean hasPoint() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 Point = 1; + * @return this + */ + public ThrowResult clearPoint() { + bitField0_ &= ~0x00000001; + point = 0; + return this; + } + + /** + * optional uint32 Point = 1; + * @return the point + */ + public int getPoint() { + return point; + } + + /** + * optional uint32 Point = 1; + * @param value the point to set + * @return this + */ + public ThrowResult setPoint(final int value) { + bitField0_ |= 0x00000001; + point = value; + return this; + } + + /** + * repeated uint32 TwoDicePoint = 2; + * @return whether the twoDicePoint field is set + */ + public boolean hasTwoDicePoint() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated uint32 TwoDicePoint = 2; + * @return this + */ + public ThrowResult clearTwoDicePoint() { + bitField0_ &= ~0x00000002; + twoDicePoint.clear(); + return this; + } + + /** + * repeated uint32 TwoDicePoint = 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 #getMutableTwoDicePoint()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getTwoDicePoint() { + return twoDicePoint; + } + + /** + * repeated uint32 TwoDicePoint = 2; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedInt getMutableTwoDicePoint() { + bitField0_ |= 0x00000002; + return twoDicePoint; + } + + /** + * repeated uint32 TwoDicePoint = 2; + * @param value the twoDicePoint to add + * @return this + */ + public ThrowResult addTwoDicePoint(final int value) { + bitField0_ |= 0x00000002; + twoDicePoint.add(value); + return this; + } + + /** + * repeated uint32 TwoDicePoint = 2; + * @param values the twoDicePoint to add + * @return this + */ + public ThrowResult addAllTwoDicePoint(final int... values) { + bitField0_ |= 0x00000002; + twoDicePoint.addAll(values); + return this; + } + + @Override + public ThrowResult copyFrom(final ThrowResult other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + point = other.point; + twoDicePoint.copyFrom(other.twoDicePoint); + } + return this; + } + + @Override + public ThrowResult mergeFrom(final ThrowResult other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasPoint()) { + setPoint(other.point); + } + if (other.hasTwoDicePoint()) { + getMutableTwoDicePoint().addAll(other.twoDicePoint); + } + return this; + } + + @Override + public ThrowResult clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + point = 0; + twoDicePoint.clear(); + return this; + } + + @Override + public ThrowResult clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + twoDicePoint.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ThrowResult)) { + return false; + } + ThrowResult other = (ThrowResult) o; + return bitField0_ == other.bitField0_ + && (!hasPoint() || point == other.point) + && (!hasTwoDicePoint() || twoDicePoint.equals(other.twoDicePoint)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(point); + } + if ((bitField0_ & 0x00000002) != 0) { + for (int i = 0; i < twoDicePoint.length(); i++) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(twoDicePoint.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(point); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * twoDicePoint.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(twoDicePoint); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ThrowResult mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // point + point = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // twoDicePoint [packed=true] + input.readPackedUInt32(twoDicePoint, tag); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 16: { + // twoDicePoint [packed=false] + tag = input.readRepeatedUInt32(twoDicePoint, tag); + bitField0_ |= 0x00000002; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.point, point); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedUInt32(FieldNames.twoDicePoint, twoDicePoint); + } + output.endObject(); + } + + @Override + public ThrowResult mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 77292912: { + if (input.isAtField(FieldNames.point)) { + if (!input.trySkipNullValue()) { + point = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -872935075: { + if (input.isAtField(FieldNames.twoDicePoint)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(twoDicePoint); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ThrowResult clone() { + return new ThrowResult().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ThrowResult parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ThrowResult(), data).checkInitialized(); + } + + public static ThrowResult parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ThrowResult(), input).checkInitialized(); + } + + public static ThrowResult parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ThrowResult(), input).checkInitialized(); + } + + /** + * @return factory for creating ThrowResult messages + */ + public static MessageFactory getFactory() { + return ThrowResultFactory.INSTANCE; + } + + private enum ThrowResultFactory implements MessageFactory { + INSTANCE; + + @Override + public ThrowResult create() { + return ThrowResult.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName point = FieldName.forField("Point"); + + static final FieldName twoDicePoint = FieldName.forField("TwoDicePoint"); + } + } + + /** + * Protobuf type {@code ChooseReward} + */ + public static final class ChooseReward extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Coin = 1; + */ + private int coin; + + /** + * optional uint32 BaseReward = 3; + */ + private int baseReward; + + /** + * optional uint32 Interest = 4; + */ + private int interest; + + /** + * repeated .SoldierChess Chess = 2; + */ + private final RepeatedMessage chess = RepeatedMessage.newEmptyInstance(SoldierChess.getFactory()); + + private ChooseReward() { + } + + /** + * @return a new empty instance of {@code ChooseReward} + */ + public static ChooseReward newInstance() { + return new ChooseReward(); + } + + /** + * optional uint32 Coin = 1; + * @return whether the coin field is set + */ + public boolean hasCoin() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 Coin = 1; + * @return this + */ + public ChooseReward clearCoin() { + bitField0_ &= ~0x00000001; + coin = 0; + return this; + } + + /** + * optional uint32 Coin = 1; + * @return the coin + */ + public int getCoin() { + return coin; + } + + /** + * optional uint32 Coin = 1; + * @param value the coin to set + * @return this + */ + public ChooseReward setCoin(final int value) { + bitField0_ |= 0x00000001; + coin = value; + return this; + } + + /** + * optional uint32 BaseReward = 3; + * @return whether the baseReward field is set + */ + public boolean hasBaseReward() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 BaseReward = 3; + * @return this + */ + public ChooseReward clearBaseReward() { + bitField0_ &= ~0x00000002; + baseReward = 0; + return this; + } + + /** + * optional uint32 BaseReward = 3; + * @return the baseReward + */ + public int getBaseReward() { + return baseReward; + } + + /** + * optional uint32 BaseReward = 3; + * @param value the baseReward to set + * @return this + */ + public ChooseReward setBaseReward(final int value) { + bitField0_ |= 0x00000002; + baseReward = value; + return this; + } + + /** + * optional uint32 Interest = 4; + * @return whether the interest field is set + */ + public boolean hasInterest() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 Interest = 4; + * @return this + */ + public ChooseReward clearInterest() { + bitField0_ &= ~0x00000004; + interest = 0; + return this; + } + + /** + * optional uint32 Interest = 4; + * @return the interest + */ + public int getInterest() { + return interest; + } + + /** + * optional uint32 Interest = 4; + * @param value the interest to set + * @return this + */ + public ChooseReward setInterest(final int value) { + bitField0_ |= 0x00000004; + interest = value; + return this; + } + + /** + * repeated .SoldierChess Chess = 2; + * @return whether the chess field is set + */ + public boolean hasChess() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated .SoldierChess Chess = 2; + * @return this + */ + public ChooseReward clearChess() { + bitField0_ &= ~0x00000008; + chess.clear(); + return this; + } + + /** + * repeated .SoldierChess Chess = 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 #getMutableChess()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getChess() { + return chess; + } + + /** + * repeated .SoldierChess Chess = 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 getMutableChess() { + bitField0_ |= 0x00000008; + return chess; + } + + /** + * repeated .SoldierChess Chess = 2; + * @param value the chess to add + * @return this + */ + public ChooseReward addChess(final SoldierChess value) { + bitField0_ |= 0x00000008; + chess.add(value); + return this; + } + + /** + * repeated .SoldierChess Chess = 2; + * @param values the chess to add + * @return this + */ + public ChooseReward addAllChess(final SoldierChess... values) { + bitField0_ |= 0x00000008; + chess.addAll(values); + return this; + } + + @Override + public ChooseReward copyFrom(final ChooseReward other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + coin = other.coin; + baseReward = other.baseReward; + interest = other.interest; + chess.copyFrom(other.chess); + } + return this; + } + + @Override + public ChooseReward mergeFrom(final ChooseReward other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasCoin()) { + setCoin(other.coin); + } + if (other.hasBaseReward()) { + setBaseReward(other.baseReward); + } + if (other.hasInterest()) { + setInterest(other.interest); + } + if (other.hasChess()) { + getMutableChess().addAll(other.chess); + } + return this; + } + + @Override + public ChooseReward clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + coin = 0; + baseReward = 0; + interest = 0; + chess.clear(); + return this; + } + + @Override + public ChooseReward clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + chess.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChooseReward)) { + return false; + } + ChooseReward other = (ChooseReward) o; + return bitField0_ == other.bitField0_ + && (!hasCoin() || coin == other.coin) + && (!hasBaseReward() || baseReward == other.baseReward) + && (!hasInterest() || interest == other.interest) + && (!hasChess() || chess.equals(other.chess)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(coin); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(baseReward); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(interest); + } + if ((bitField0_ & 0x00000008) != 0) { + for (int i = 0; i < chess.length(); i++) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(chess.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(coin); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(baseReward); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(interest); + } + if ((bitField0_ & 0x00000008) != 0) { + size += (1 * chess.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(chess); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChooseReward mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // coin + coin = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // baseReward + baseReward = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // interest + interest = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // chess + tag = input.readRepeatedMessage(chess, 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.coin, coin); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.baseReward, baseReward); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.interest, interest); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedMessage(FieldNames.chess, chess); + } + output.endObject(); + } + + @Override + public ChooseReward mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 2106033: { + if (input.isAtField(FieldNames.coin)) { + if (!input.trySkipNullValue()) { + coin = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1133378944: { + if (input.isAtField(FieldNames.baseReward)) { + if (!input.trySkipNullValue()) { + baseReward = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 635046730: { + if (input.isAtField(FieldNames.interest)) { + if (!input.trySkipNullValue()) { + interest = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 65074912: { + if (input.isAtField(FieldNames.chess)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(chess); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChooseReward clone() { + return new ChooseReward().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChooseReward parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChooseReward(), data).checkInitialized(); + } + + public static ChooseReward parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChooseReward(), input).checkInitialized(); + } + + public static ChooseReward parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChooseReward(), input).checkInitialized(); + } + + /** + * @return factory for creating ChooseReward messages + */ + public static MessageFactory getFactory() { + return ChooseRewardFactory.INSTANCE; + } + + private enum ChooseRewardFactory implements MessageFactory { + INSTANCE; + + @Override + public ChooseReward create() { + return ChooseReward.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName coin = FieldName.forField("Coin"); + + static final FieldName baseReward = FieldName.forField("BaseReward"); + + static final FieldName interest = FieldName.forField("Interest"); + + static final FieldName chess = FieldName.forField("Chess"); + } + } + + private enum InteractEventSettlementOfDisputeRespFactory implements MessageFactory { + INSTANCE; + + @Override + public InteractEventSettlementOfDisputeResp create() { + return InteractEventSettlementOfDisputeResp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName result = FieldName.forField("Result"); + + static final FieldName reward = FieldName.forField("Reward"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code InteractEventSettlementOfDisputeBattleReq} + */ + public static final class InteractEventSettlementOfDisputeBattleReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 DataLen = 1; + */ + private int dataLen; + + /** + * optional uint32 DataVersion = 3; + */ + private int dataVersion; + + /** + * optional uint32 ChessSkillAddGold = 4; + */ + private int chessSkillAddGold; + + /** + * optional bool Defeat = 14; + */ + private boolean defeat; + + /** + * optional .InteractEventSettlementOfDisputeBattleReq.VictoryData Victory = 13; + */ + private final VictoryData victory = VictoryData.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * optional string ClientData = 2; + */ + private final Utf8String clientData = Utf8String.newEmptyInstance(); + + private InteractEventSettlementOfDisputeBattleReq() { + } + + /** + * @return a new empty instance of {@code InteractEventSettlementOfDisputeBattleReq} + */ + public static InteractEventSettlementOfDisputeBattleReq newInstance() { + return new InteractEventSettlementOfDisputeBattleReq(); + } + + /** + * optional uint32 DataLen = 1; + * @return whether the dataLen field is set + */ + public boolean hasDataLen() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 DataLen = 1; + * @return this + */ + public InteractEventSettlementOfDisputeBattleReq clearDataLen() { + bitField0_ &= ~0x00000001; + dataLen = 0; + return this; + } + + /** + * optional uint32 DataLen = 1; + * @return the dataLen + */ + public int getDataLen() { + return dataLen; + } + + /** + * optional uint32 DataLen = 1; + * @param value the dataLen to set + * @return this + */ + public InteractEventSettlementOfDisputeBattleReq setDataLen(final int value) { + bitField0_ |= 0x00000001; + dataLen = value; + return this; + } + + /** + * optional uint32 DataVersion = 3; + * @return whether the dataVersion field is set + */ + public boolean hasDataVersion() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 DataVersion = 3; + * @return this + */ + public InteractEventSettlementOfDisputeBattleReq clearDataVersion() { + bitField0_ &= ~0x00000002; + dataVersion = 0; + return this; + } + + /** + * optional uint32 DataVersion = 3; + * @return the dataVersion + */ + public int getDataVersion() { + return dataVersion; + } + + /** + * optional uint32 DataVersion = 3; + * @param value the dataVersion to set + * @return this + */ + public InteractEventSettlementOfDisputeBattleReq setDataVersion(final int value) { + bitField0_ |= 0x00000002; + dataVersion = value; + return this; + } + + /** + * optional uint32 ChessSkillAddGold = 4; + * @return whether the chessSkillAddGold field is set + */ + public boolean hasChessSkillAddGold() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 ChessSkillAddGold = 4; + * @return this + */ + public InteractEventSettlementOfDisputeBattleReq clearChessSkillAddGold() { + bitField0_ &= ~0x00000004; + chessSkillAddGold = 0; + return this; + } + + /** + * optional uint32 ChessSkillAddGold = 4; + * @return the chessSkillAddGold + */ + public int getChessSkillAddGold() { + return chessSkillAddGold; + } + + /** + * optional uint32 ChessSkillAddGold = 4; + * @param value the chessSkillAddGold to set + * @return this + */ + public InteractEventSettlementOfDisputeBattleReq setChessSkillAddGold(final int value) { + bitField0_ |= 0x00000004; + chessSkillAddGold = value; + return this; + } + + /** + * optional bool Defeat = 14; + * @return whether the defeat field is set + */ + public boolean hasDefeat() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional bool Defeat = 14; + * @return this + */ + public InteractEventSettlementOfDisputeBattleReq clearDefeat() { + bitField0_ &= ~0x00000008; + defeat = false; + return this; + } + + /** + * optional bool Defeat = 14; + * @return the defeat + */ + public boolean getDefeat() { + return defeat; + } + + /** + * optional bool Defeat = 14; + * @param value the defeat to set + * @return this + */ + public InteractEventSettlementOfDisputeBattleReq setDefeat(final boolean value) { + bitField0_ |= 0x00000008; + defeat = value; + return this; + } + + /** + * optional .InteractEventSettlementOfDisputeBattleReq.VictoryData Victory = 13; + * @return whether the victory field is set + */ + public boolean hasVictory() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional .InteractEventSettlementOfDisputeBattleReq.VictoryData Victory = 13; + * @return this + */ + public InteractEventSettlementOfDisputeBattleReq clearVictory() { + bitField0_ &= ~0x00000010; + victory.clear(); + return this; + } + + /** + * optional .InteractEventSettlementOfDisputeBattleReq.VictoryData Victory = 13; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableVictory()} if you want to modify it. + * + * @return internal storage object for reading + */ + public VictoryData getVictory() { + return victory; + } + + /** + * optional .InteractEventSettlementOfDisputeBattleReq.VictoryData Victory = 13; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public VictoryData getMutableVictory() { + bitField0_ |= 0x00000010; + return victory; + } + + /** + * optional .InteractEventSettlementOfDisputeBattleReq.VictoryData Victory = 13; + * @param value the victory to set + * @return this + */ + public InteractEventSettlementOfDisputeBattleReq setVictory(final VictoryData value) { + bitField0_ |= 0x00000010; + victory.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 InteractEventSettlementOfDisputeBattleReq 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 InteractEventSettlementOfDisputeBattleReq addNextPackage(final byte value) { + bitField0_ |= 0x00000020; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public InteractEventSettlementOfDisputeBattleReq addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000020; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public InteractEventSettlementOfDisputeBattleReq setNextPackage(final byte... values) { + bitField0_ |= 0x00000020; + nextPackage.copyFrom(values); + return this; + } + + /** + * optional string ClientData = 2; + * @return whether the clientData field is set + */ + public boolean hasClientData() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional string ClientData = 2; + * @return this + */ + public InteractEventSettlementOfDisputeBattleReq clearClientData() { + bitField0_ &= ~0x00000040; + clientData.clear(); + return this; + } + + /** + * optional string ClientData = 2; + * @return the clientData + */ + public String getClientData() { + return clientData.getString(); + } + + /** + * optional string ClientData = 2; + * @return internal {@code Utf8String} representation of clientData for reading + */ + public Utf8String getClientDataBytes() { + return this.clientData; + } + + /** + * optional string ClientData = 2; + * @return internal {@code Utf8String} representation of clientData for modifications + */ + public Utf8String getMutableClientDataBytes() { + bitField0_ |= 0x00000040; + return this.clientData; + } + + /** + * optional string ClientData = 2; + * @param value the clientData to set + * @return this + */ + public InteractEventSettlementOfDisputeBattleReq setClientData(final CharSequence value) { + bitField0_ |= 0x00000040; + clientData.copyFrom(value); + return this; + } + + /** + * optional string ClientData = 2; + * @param value the clientData to set + * @return this + */ + public InteractEventSettlementOfDisputeBattleReq setClientData(final Utf8String value) { + bitField0_ |= 0x00000040; + clientData.copyFrom(value); + return this; + } + + @Override + public InteractEventSettlementOfDisputeBattleReq copyFrom( + final InteractEventSettlementOfDisputeBattleReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + dataLen = other.dataLen; + dataVersion = other.dataVersion; + chessSkillAddGold = other.chessSkillAddGold; + defeat = other.defeat; + victory.copyFrom(other.victory); + nextPackage.copyFrom(other.nextPackage); + clientData.copyFrom(other.clientData); + } + return this; + } + + @Override + public InteractEventSettlementOfDisputeBattleReq mergeFrom( + final InteractEventSettlementOfDisputeBattleReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasDataLen()) { + setDataLen(other.dataLen); + } + if (other.hasDataVersion()) { + setDataVersion(other.dataVersion); + } + if (other.hasChessSkillAddGold()) { + setChessSkillAddGold(other.chessSkillAddGold); + } + if (other.hasDefeat()) { + setDefeat(other.defeat); + } + if (other.hasVictory()) { + getMutableVictory().mergeFrom(other.victory); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasClientData()) { + getMutableClientDataBytes().copyFrom(other.clientData); + } + return this; + } + + @Override + public InteractEventSettlementOfDisputeBattleReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + dataLen = 0; + dataVersion = 0; + chessSkillAddGold = 0; + defeat = false; + victory.clear(); + nextPackage.clear(); + clientData.clear(); + return this; + } + + @Override + public InteractEventSettlementOfDisputeBattleReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + victory.clearQuick(); + nextPackage.clear(); + clientData.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof InteractEventSettlementOfDisputeBattleReq)) { + return false; + } + InteractEventSettlementOfDisputeBattleReq other = (InteractEventSettlementOfDisputeBattleReq) o; + return bitField0_ == other.bitField0_ + && (!hasDataLen() || dataLen == other.dataLen) + && (!hasDataVersion() || dataVersion == other.dataVersion) + && (!hasChessSkillAddGold() || chessSkillAddGold == other.chessSkillAddGold) + && (!hasDefeat() || defeat == other.defeat) + && (!hasVictory() || victory.equals(other.victory)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasClientData() || clientData.equals(other.clientData)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(dataLen); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(dataVersion); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(chessSkillAddGold); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 112); + output.writeBoolNoTag(defeat); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 106); + output.writeMessageNoTag(victory); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawByte((byte) 18); + output.writeStringNoTag(clientData); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(dataLen); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(dataVersion); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(chessSkillAddGold); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(victory); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000040) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(clientData); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public InteractEventSettlementOfDisputeBattleReq mergeFrom(final ProtoSource input) throws + IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // dataLen + dataLen = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // dataVersion + dataVersion = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // chessSkillAddGold + chessSkillAddGold = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // defeat + defeat = input.readBool(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 106) { + break; + } + } + case 106: { + // victory + input.readMessage(victory); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // clientData + input.readString(clientData); + bitField0_ |= 0x00000040; + 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.dataLen, dataLen); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.dataVersion, dataVersion); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.chessSkillAddGold, chessSkillAddGold); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeBool(FieldNames.defeat, defeat); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeMessage(FieldNames.victory, victory); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeString(FieldNames.clientData, clientData); + } + output.endObject(); + } + + @Override + public InteractEventSettlementOfDisputeBattleReq mergeFrom(final JsonSource input) throws + IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1187137045: { + if (input.isAtField(FieldNames.dataLen)) { + if (!input.trySkipNullValue()) { + dataLen = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 538270126: { + if (input.isAtField(FieldNames.dataVersion)) { + if (!input.trySkipNullValue()) { + dataVersion = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 967766032: { + if (input.isAtField(FieldNames.chessSkillAddGold)) { + if (!input.trySkipNullValue()) { + chessSkillAddGold = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2043196755: { + if (input.isAtField(FieldNames.defeat)) { + if (!input.trySkipNullValue()) { + defeat = input.readBool(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2116960754: { + if (input.isAtField(FieldNames.victory)) { + if (!input.trySkipNullValue()) { + input.readMessage(victory); + 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; + } + case -1199548875: { + if (input.isAtField(FieldNames.clientData)) { + if (!input.trySkipNullValue()) { + input.readString(clientData); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public InteractEventSettlementOfDisputeBattleReq clone() { + return new InteractEventSettlementOfDisputeBattleReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static InteractEventSettlementOfDisputeBattleReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new InteractEventSettlementOfDisputeBattleReq(), data).checkInitialized(); + } + + public static InteractEventSettlementOfDisputeBattleReq parseFrom(final ProtoSource input) + throws IOException { + return ProtoMessage.mergeFrom(new InteractEventSettlementOfDisputeBattleReq(), input).checkInitialized(); + } + + public static InteractEventSettlementOfDisputeBattleReq parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new InteractEventSettlementOfDisputeBattleReq(), input).checkInitialized(); + } + + /** + * @return factory for creating InteractEventSettlementOfDisputeBattleReq messages + */ + public static MessageFactory getFactory() { + return InteractEventSettlementOfDisputeBattleReqFactory.INSTANCE; + } + + /** + * Protobuf type {@code VictoryData} + */ + public static final class VictoryData extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Time = 1; + */ + private int time; + + private VictoryData() { + } + + /** + * @return a new empty instance of {@code VictoryData} + */ + public static VictoryData newInstance() { + return new VictoryData(); + } + + /** + * optional uint32 Time = 1; + * @return whether the time field is set + */ + public boolean hasTime() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 Time = 1; + * @return this + */ + public VictoryData clearTime() { + bitField0_ &= ~0x00000001; + 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 VictoryData setTime(final int value) { + bitField0_ |= 0x00000001; + time = value; + return this; + } + + @Override + public VictoryData copyFrom(final VictoryData other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + time = other.time; + } + return this; + } + + @Override + public VictoryData mergeFrom(final VictoryData other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasTime()) { + setTime(other.time); + } + return this; + } + + @Override + public VictoryData clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + time = 0; + return this; + } + + @Override + public VictoryData clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof VictoryData)) { + return false; + } + VictoryData other = (VictoryData) o; + return bitField0_ == other.bitField0_ + && (!hasTime() || time == other.time); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(time); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(time); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public VictoryData mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // time + time = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.time, time); + } + output.endObject(); + } + + @Override + public VictoryData mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 2606829: { + if (input.isAtField(FieldNames.time)) { + if (!input.trySkipNullValue()) { + time = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public VictoryData clone() { + return new VictoryData().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static VictoryData parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new VictoryData(), data).checkInitialized(); + } + + public static VictoryData parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new VictoryData(), input).checkInitialized(); + } + + public static VictoryData parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new VictoryData(), input).checkInitialized(); + } + + /** + * @return factory for creating VictoryData messages + */ + public static MessageFactory getFactory() { + return VictoryDataFactory.INSTANCE; + } + + private enum VictoryDataFactory implements MessageFactory { + INSTANCE; + + @Override + public VictoryData create() { + return VictoryData.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName time = FieldName.forField("Time"); + } + } + + private enum InteractEventSettlementOfDisputeBattleReqFactory implements MessageFactory { + INSTANCE; + + @Override + public InteractEventSettlementOfDisputeBattleReq create() { + return InteractEventSettlementOfDisputeBattleReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName dataLen = FieldName.forField("DataLen"); + + static final FieldName dataVersion = FieldName.forField("DataVersion"); + + static final FieldName chessSkillAddGold = FieldName.forField("ChessSkillAddGold"); + + static final FieldName defeat = FieldName.forField("Defeat"); + + static final FieldName victory = FieldName.forField("Victory"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName clientData = FieldName.forField("ClientData"); + } + } + + /** + * Protobuf type {@code InteractEventSettlementOfDisputeBattleResp} + */ + public static final class InteractEventSettlementOfDisputeBattleResp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Coin = 1; + */ + private int coin; + + /** + * optional uint32 BaseReward = 3; + */ + private int baseReward; + + /** + * optional uint32 Interest = 4; + */ + private int interest; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .SoldierChess Chess = 2; + */ + private final RepeatedMessage chess = RepeatedMessage.newEmptyInstance(SoldierChess.getFactory()); + + private InteractEventSettlementOfDisputeBattleResp() { + } + + /** + * @return a new empty instance of {@code InteractEventSettlementOfDisputeBattleResp} + */ + public static InteractEventSettlementOfDisputeBattleResp newInstance() { + return new InteractEventSettlementOfDisputeBattleResp(); + } + + /** + * optional uint32 Coin = 1; + * @return whether the coin field is set + */ + public boolean hasCoin() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 Coin = 1; + * @return this + */ + public InteractEventSettlementOfDisputeBattleResp clearCoin() { + bitField0_ &= ~0x00000001; + coin = 0; + return this; + } + + /** + * optional uint32 Coin = 1; + * @return the coin + */ + public int getCoin() { + return coin; + } + + /** + * optional uint32 Coin = 1; + * @param value the coin to set + * @return this + */ + public InteractEventSettlementOfDisputeBattleResp setCoin(final int value) { + bitField0_ |= 0x00000001; + coin = value; + return this; + } + + /** + * optional uint32 BaseReward = 3; + * @return whether the baseReward field is set + */ + public boolean hasBaseReward() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 BaseReward = 3; + * @return this + */ + public InteractEventSettlementOfDisputeBattleResp clearBaseReward() { + bitField0_ &= ~0x00000002; + baseReward = 0; + return this; + } + + /** + * optional uint32 BaseReward = 3; + * @return the baseReward + */ + public int getBaseReward() { + return baseReward; + } + + /** + * optional uint32 BaseReward = 3; + * @param value the baseReward to set + * @return this + */ + public InteractEventSettlementOfDisputeBattleResp setBaseReward(final int value) { + bitField0_ |= 0x00000002; + baseReward = value; + return this; + } + + /** + * optional uint32 Interest = 4; + * @return whether the interest field is set + */ + public boolean hasInterest() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 Interest = 4; + * @return this + */ + public InteractEventSettlementOfDisputeBattleResp clearInterest() { + bitField0_ &= ~0x00000004; + interest = 0; + return this; + } + + /** + * optional uint32 Interest = 4; + * @return the interest + */ + public int getInterest() { + return interest; + } + + /** + * optional uint32 Interest = 4; + * @param value the interest to set + * @return this + */ + public InteractEventSettlementOfDisputeBattleResp setInterest(final int value) { + bitField0_ |= 0x00000004; + interest = 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 InteractEventSettlementOfDisputeBattleResp 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 InteractEventSettlementOfDisputeBattleResp addNextPackage(final byte value) { + bitField0_ |= 0x00000008; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public InteractEventSettlementOfDisputeBattleResp addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public InteractEventSettlementOfDisputeBattleResp setNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .SoldierChess Chess = 2; + * @return whether the chess field is set + */ + public boolean hasChess() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * repeated .SoldierChess Chess = 2; + * @return this + */ + public InteractEventSettlementOfDisputeBattleResp clearChess() { + bitField0_ &= ~0x00000010; + chess.clear(); + return this; + } + + /** + * repeated .SoldierChess Chess = 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 #getMutableChess()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getChess() { + return chess; + } + + /** + * repeated .SoldierChess Chess = 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 getMutableChess() { + bitField0_ |= 0x00000010; + return chess; + } + + /** + * repeated .SoldierChess Chess = 2; + * @param value the chess to add + * @return this + */ + public InteractEventSettlementOfDisputeBattleResp addChess(final SoldierChess value) { + bitField0_ |= 0x00000010; + chess.add(value); + return this; + } + + /** + * repeated .SoldierChess Chess = 2; + * @param values the chess to add + * @return this + */ + public InteractEventSettlementOfDisputeBattleResp addAllChess(final SoldierChess... values) { + bitField0_ |= 0x00000010; + chess.addAll(values); + return this; + } + + @Override + public InteractEventSettlementOfDisputeBattleResp copyFrom( + final InteractEventSettlementOfDisputeBattleResp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + coin = other.coin; + baseReward = other.baseReward; + interest = other.interest; + nextPackage.copyFrom(other.nextPackage); + chess.copyFrom(other.chess); + } + return this; + } + + @Override + public InteractEventSettlementOfDisputeBattleResp mergeFrom( + final InteractEventSettlementOfDisputeBattleResp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasCoin()) { + setCoin(other.coin); + } + if (other.hasBaseReward()) { + setBaseReward(other.baseReward); + } + if (other.hasInterest()) { + setInterest(other.interest); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasChess()) { + getMutableChess().addAll(other.chess); + } + return this; + } + + @Override + public InteractEventSettlementOfDisputeBattleResp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + coin = 0; + baseReward = 0; + interest = 0; + nextPackage.clear(); + chess.clear(); + return this; + } + + @Override + public InteractEventSettlementOfDisputeBattleResp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + chess.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof InteractEventSettlementOfDisputeBattleResp)) { + return false; + } + InteractEventSettlementOfDisputeBattleResp other = (InteractEventSettlementOfDisputeBattleResp) o; + return bitField0_ == other.bitField0_ + && (!hasCoin() || coin == other.coin) + && (!hasBaseReward() || baseReward == other.baseReward) + && (!hasInterest() || interest == other.interest) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasChess() || chess.equals(other.chess)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(coin); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(baseReward); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(interest); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000010) != 0) { + for (int i = 0; i < chess.length(); i++) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(chess.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(coin); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(baseReward); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(interest); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000010) != 0) { + size += (1 * chess.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(chess); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public InteractEventSettlementOfDisputeBattleResp mergeFrom(final ProtoSource input) throws + IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // coin + coin = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // baseReward + baseReward = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // interest + interest = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // chess + tag = input.readRepeatedMessage(chess, tag); + bitField0_ |= 0x00000010; + 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.coin, coin); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.baseReward, baseReward); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.interest, interest); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRepeatedMessage(FieldNames.chess, chess); + } + output.endObject(); + } + + @Override + public InteractEventSettlementOfDisputeBattleResp mergeFrom(final JsonSource input) throws + IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 2106033: { + if (input.isAtField(FieldNames.coin)) { + if (!input.trySkipNullValue()) { + coin = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1133378944: { + if (input.isAtField(FieldNames.baseReward)) { + if (!input.trySkipNullValue()) { + baseReward = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 635046730: { + if (input.isAtField(FieldNames.interest)) { + if (!input.trySkipNullValue()) { + interest = 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; + } + case 65074912: { + if (input.isAtField(FieldNames.chess)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(chess); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public InteractEventSettlementOfDisputeBattleResp clone() { + return new InteractEventSettlementOfDisputeBattleResp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static InteractEventSettlementOfDisputeBattleResp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new InteractEventSettlementOfDisputeBattleResp(), data).checkInitialized(); + } + + public static InteractEventSettlementOfDisputeBattleResp parseFrom(final ProtoSource input) + throws IOException { + return ProtoMessage.mergeFrom(new InteractEventSettlementOfDisputeBattleResp(), input).checkInitialized(); + } + + public static InteractEventSettlementOfDisputeBattleResp parseFrom(final JsonSource input) + throws IOException { + return ProtoMessage.mergeFrom(new InteractEventSettlementOfDisputeBattleResp(), input).checkInitialized(); + } + + /** + * @return factory for creating InteractEventSettlementOfDisputeBattleResp messages + */ + public static MessageFactory getFactory() { + return InteractEventSettlementOfDisputeBattleRespFactory.INSTANCE; + } + + private enum InteractEventSettlementOfDisputeBattleRespFactory implements MessageFactory { + INSTANCE; + + @Override + public InteractEventSettlementOfDisputeBattleResp create() { + return InteractEventSettlementOfDisputeBattleResp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName coin = FieldName.forField("Coin"); + + static final FieldName baseReward = FieldName.forField("BaseReward"); + + static final FieldName interest = FieldName.forField("Interest"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName chess = FieldName.forField("Chess"); + } + } + + /** + * Protobuf type {@code InteractSoldierSelectReq} + */ + public static final class InteractSoldierSelectReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Index = 1; + */ + private int index; + + /** + * optional bool ReRoll = 2; + */ + private boolean reRoll; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private InteractSoldierSelectReq() { + } + + /** + * @return a new empty instance of {@code InteractSoldierSelectReq} + */ + public static InteractSoldierSelectReq newInstance() { + return new InteractSoldierSelectReq(); + } + + /** + * optional uint32 Index = 1; + * @return whether the index field is set + */ + public boolean hasIndex() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 Index = 1; + * @return this + */ + public InteractSoldierSelectReq clearIndex() { + bitField0_ &= ~0x00000001; + index = 0; + return this; + } + + /** + * optional uint32 Index = 1; + * @return the index + */ + public int getIndex() { + return index; + } + + /** + * optional uint32 Index = 1; + * @param value the index to set + * @return this + */ + public InteractSoldierSelectReq setIndex(final int value) { + bitField0_ |= 0x00000001; + index = value; + return this; + } + + /** + * optional bool ReRoll = 2; + * @return whether the reRoll field is set + */ + public boolean hasReRoll() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bool ReRoll = 2; + * @return this + */ + public InteractSoldierSelectReq clearReRoll() { + bitField0_ &= ~0x00000002; + reRoll = false; + return this; + } + + /** + * optional bool ReRoll = 2; + * @return the reRoll + */ + public boolean getReRoll() { + return reRoll; + } + + /** + * optional bool ReRoll = 2; + * @param value the reRoll to set + * @return this + */ + public InteractSoldierSelectReq setReRoll(final boolean value) { + bitField0_ |= 0x00000002; + reRoll = 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 InteractSoldierSelectReq 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 InteractSoldierSelectReq addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public InteractSoldierSelectReq addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public InteractSoldierSelectReq setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + @Override + public InteractSoldierSelectReq copyFrom(final InteractSoldierSelectReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + index = other.index; + reRoll = other.reRoll; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public InteractSoldierSelectReq mergeFrom(final InteractSoldierSelectReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasIndex()) { + setIndex(other.index); + } + if (other.hasReRoll()) { + setReRoll(other.reRoll); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public InteractSoldierSelectReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + index = 0; + reRoll = false; + nextPackage.clear(); + return this; + } + + @Override + public InteractSoldierSelectReq 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 InteractSoldierSelectReq)) { + return false; + } + InteractSoldierSelectReq other = (InteractSoldierSelectReq) o; + return bitField0_ == other.bitField0_ + && (!hasIndex() || index == other.index) + && (!hasReRoll() || reRoll == other.reRoll) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(index); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeBoolNoTag(reRoll); + } + 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(index); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public InteractSoldierSelectReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // index + index = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // reRoll + reRoll = 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.index, index); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBool(FieldNames.reRoll, reRoll); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public InteractSoldierSelectReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 70793394: { + if (input.isAtField(FieldNames.index)) { + if (!input.trySkipNullValue()) { + index = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1851548304: { + if (input.isAtField(FieldNames.reRoll)) { + if (!input.trySkipNullValue()) { + reRoll = 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 InteractSoldierSelectReq clone() { + return new InteractSoldierSelectReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static InteractSoldierSelectReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new InteractSoldierSelectReq(), data).checkInitialized(); + } + + public static InteractSoldierSelectReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new InteractSoldierSelectReq(), input).checkInitialized(); + } + + public static InteractSoldierSelectReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new InteractSoldierSelectReq(), input).checkInitialized(); + } + + /** + * @return factory for creating InteractSoldierSelectReq messages + */ + public static MessageFactory getFactory() { + return InteractSoldierSelectReqFactory.INSTANCE; + } + + private enum InteractSoldierSelectReqFactory implements MessageFactory { + INSTANCE; + + @Override + public InteractSoldierSelectReq create() { + return InteractSoldierSelectReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName index = FieldName.forField("Index"); + + static final FieldName reRoll = FieldName.forField("ReRoll"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code InteractSoldierSelectResp} + */ + public static final class InteractSoldierSelectResp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .InteractSoldierSelectResp.Success Resp = 1; + */ + private final Success resp = Success.newInstance(); + + /** + * optional .SelectCardData SelectCard = 2; + */ + private final SelectCardData selectCard = SelectCardData.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private InteractSoldierSelectResp() { + } + + /** + * @return a new empty instance of {@code InteractSoldierSelectResp} + */ + public static InteractSoldierSelectResp newInstance() { + return new InteractSoldierSelectResp(); + } + + /** + * optional .InteractSoldierSelectResp.Success Resp = 1; + * @return whether the resp field is set + */ + public boolean hasResp() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .InteractSoldierSelectResp.Success Resp = 1; + * @return this + */ + public InteractSoldierSelectResp clearResp() { + bitField0_ &= ~0x00000001; + resp.clear(); + return this; + } + + /** + * optional .InteractSoldierSelectResp.Success Resp = 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 #getMutableResp()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Success getResp() { + return resp; + } + + /** + * optional .InteractSoldierSelectResp.Success Resp = 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 Success getMutableResp() { + bitField0_ |= 0x00000001; + return resp; + } + + /** + * optional .InteractSoldierSelectResp.Success Resp = 1; + * @param value the resp to set + * @return this + */ + public InteractSoldierSelectResp setResp(final Success value) { + bitField0_ |= 0x00000001; + resp.copyFrom(value); + return this; + } + + /** + * optional .SelectCardData SelectCard = 2; + * @return whether the selectCard field is set + */ + public boolean hasSelectCard() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .SelectCardData SelectCard = 2; + * @return this + */ + public InteractSoldierSelectResp clearSelectCard() { + bitField0_ &= ~0x00000002; + selectCard.clear(); + return this; + } + + /** + * optional .SelectCardData SelectCard = 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 #getMutableSelectCard()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SelectCardData getSelectCard() { + return selectCard; + } + + /** + * optional .SelectCardData SelectCard = 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 SelectCardData getMutableSelectCard() { + bitField0_ |= 0x00000002; + return selectCard; + } + + /** + * optional .SelectCardData SelectCard = 2; + * @param value the selectCard to set + * @return this + */ + public InteractSoldierSelectResp setSelectCard(final SelectCardData value) { + bitField0_ |= 0x00000002; + selectCard.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 InteractSoldierSelectResp 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 InteractSoldierSelectResp addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public InteractSoldierSelectResp addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public InteractSoldierSelectResp setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + @Override + public InteractSoldierSelectResp copyFrom(final InteractSoldierSelectResp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + resp.copyFrom(other.resp); + selectCard.copyFrom(other.selectCard); + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public InteractSoldierSelectResp mergeFrom(final InteractSoldierSelectResp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasResp()) { + getMutableResp().mergeFrom(other.resp); + } + if (other.hasSelectCard()) { + getMutableSelectCard().mergeFrom(other.selectCard); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public InteractSoldierSelectResp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + resp.clear(); + selectCard.clear(); + nextPackage.clear(); + return this; + } + + @Override + public InteractSoldierSelectResp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + resp.clearQuick(); + selectCard.clearQuick(); + nextPackage.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof InteractSoldierSelectResp)) { + return false; + } + InteractSoldierSelectResp other = (InteractSoldierSelectResp) o; + return bitField0_ == other.bitField0_ + && (!hasResp() || resp.equals(other.resp)) + && (!hasSelectCard() || selectCard.equals(other.selectCard)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(resp); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(selectCard); + } + 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.computeMessageSizeNoTag(resp); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(selectCard); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public InteractSoldierSelectResp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 10: { + // resp + input.readMessage(resp); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // selectCard + input.readMessage(selectCard); + 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.writeMessage(FieldNames.resp, resp); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.selectCard, selectCard); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public InteractSoldierSelectResp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 2543600: { + if (input.isAtField(FieldNames.resp)) { + if (!input.trySkipNullValue()) { + input.readMessage(resp); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 336994892: { + if (input.isAtField(FieldNames.selectCard)) { + if (!input.trySkipNullValue()) { + input.readMessage(selectCard); + 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 InteractSoldierSelectResp clone() { + return new InteractSoldierSelectResp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static InteractSoldierSelectResp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new InteractSoldierSelectResp(), data).checkInitialized(); + } + + public static InteractSoldierSelectResp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new InteractSoldierSelectResp(), input).checkInitialized(); + } + + public static InteractSoldierSelectResp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new InteractSoldierSelectResp(), input).checkInitialized(); + } + + /** + * @return factory for creating InteractSoldierSelectResp messages + */ + public static MessageFactory getFactory() { + return InteractSoldierSelectRespFactory.INSTANCE; + } + + /** + * Protobuf type {@code Success} + */ + public static final class Success extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Typ = 1; + */ + private int typ; + + /** + * optional uint32 Id = 2; + */ + private int id; + + private Success() { + } + + /** + * @return a new empty instance of {@code Success} + */ + public static Success newInstance() { + return new Success(); + } + + /** + * optional uint32 Typ = 1; + * @return whether the typ field is set + */ + public boolean hasTyp() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 Typ = 1; + * @return this + */ + public Success clearTyp() { + bitField0_ &= ~0x00000001; + typ = 0; + return this; + } + + /** + * optional uint32 Typ = 1; + * @return the typ + */ + public int getTyp() { + return typ; + } + + /** + * optional uint32 Typ = 1; + * @param value the typ to set + * @return this + */ + public Success setTyp(final int value) { + bitField0_ |= 0x00000001; + typ = value; + return this; + } + + /** + * optional uint32 Id = 2; + * @return whether the id field is set + */ + public boolean hasId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 Id = 2; + * @return this + */ + public Success clearId() { + bitField0_ &= ~0x00000002; + id = 0; + return this; + } + + /** + * optional uint32 Id = 2; + * @return the id + */ + public int getId() { + return id; + } + + /** + * optional uint32 Id = 2; + * @param value the id to set + * @return this + */ + public Success setId(final int value) { + bitField0_ |= 0x00000002; + id = value; + return this; + } + + @Override + public Success copyFrom(final Success other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + typ = other.typ; + id = other.id; + } + return this; + } + + @Override + public Success mergeFrom(final Success other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasTyp()) { + setTyp(other.typ); + } + if (other.hasId()) { + setId(other.id); + } + return this; + } + + @Override + public Success clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + typ = 0; + id = 0; + return this; + } + + @Override + public Success clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof Success)) { + return false; + } + Success other = (Success) o; + return bitField0_ == other.bitField0_ + && (!hasTyp() || typ == other.typ) + && (!hasId() || id == other.id); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(typ); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(id); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(typ); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(id); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public Success mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // typ + typ = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // id + id = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.typ, typ); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.id, id); + } + output.endObject(); + } + + @Override + public Success mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 84587: { + if (input.isAtField(FieldNames.typ)) { + if (!input.trySkipNullValue()) { + typ = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2363: { + if (input.isAtField(FieldNames.id)) { + if (!input.trySkipNullValue()) { + id = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public Success clone() { + return new Success().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static Success parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new Success(), data).checkInitialized(); + } + + public static Success parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new Success(), input).checkInitialized(); + } + + public static Success parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new Success(), input).checkInitialized(); + } + + /** + * @return factory for creating Success messages + */ + public static MessageFactory getFactory() { + return SuccessFactory.INSTANCE; + } + + private enum SuccessFactory implements MessageFactory { + INSTANCE; + + @Override + public Success create() { + return Success.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName typ = FieldName.forField("Typ"); + + static final FieldName id = FieldName.forField("Id"); + } + } + + private enum InteractSoldierSelectRespFactory implements MessageFactory { + INSTANCE; + + @Override + public InteractSoldierSelectResp create() { + return InteractSoldierSelectResp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName resp = FieldName.forField("Resp"); + + static final FieldName selectCard = FieldName.forField("SelectCard"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code InteractClientEventReq} + */ + public static final class InteractClientEventReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 DataLen = 1; + */ + private int dataLen; + + /** + * optional uint32 DataVersion = 3; + */ + private int dataVersion; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * optional string ClientData = 2; + */ + private final Utf8String clientData = Utf8String.newEmptyInstance(); + + private InteractClientEventReq() { + } + + /** + * @return a new empty instance of {@code InteractClientEventReq} + */ + public static InteractClientEventReq newInstance() { + return new InteractClientEventReq(); + } + + /** + * optional uint32 DataLen = 1; + * @return whether the dataLen field is set + */ + public boolean hasDataLen() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 DataLen = 1; + * @return this + */ + public InteractClientEventReq clearDataLen() { + bitField0_ &= ~0x00000001; + dataLen = 0; + return this; + } + + /** + * optional uint32 DataLen = 1; + * @return the dataLen + */ + public int getDataLen() { + return dataLen; + } + + /** + * optional uint32 DataLen = 1; + * @param value the dataLen to set + * @return this + */ + public InteractClientEventReq setDataLen(final int value) { + bitField0_ |= 0x00000001; + dataLen = value; + return this; + } + + /** + * optional uint32 DataVersion = 3; + * @return whether the dataVersion field is set + */ + public boolean hasDataVersion() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 DataVersion = 3; + * @return this + */ + public InteractClientEventReq clearDataVersion() { + bitField0_ &= ~0x00000002; + dataVersion = 0; + return this; + } + + /** + * optional uint32 DataVersion = 3; + * @return the dataVersion + */ + public int getDataVersion() { + return dataVersion; + } + + /** + * optional uint32 DataVersion = 3; + * @param value the dataVersion to set + * @return this + */ + public InteractClientEventReq setDataVersion(final int value) { + bitField0_ |= 0x00000002; + dataVersion = 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 InteractClientEventReq 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 InteractClientEventReq addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public InteractClientEventReq addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public InteractClientEventReq setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + /** + * optional string ClientData = 2; + * @return whether the clientData field is set + */ + public boolean hasClientData() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional string ClientData = 2; + * @return this + */ + public InteractClientEventReq clearClientData() { + bitField0_ &= ~0x00000008; + clientData.clear(); + return this; + } + + /** + * optional string ClientData = 2; + * @return the clientData + */ + public String getClientData() { + return clientData.getString(); + } + + /** + * optional string ClientData = 2; + * @return internal {@code Utf8String} representation of clientData for reading + */ + public Utf8String getClientDataBytes() { + return this.clientData; + } + + /** + * optional string ClientData = 2; + * @return internal {@code Utf8String} representation of clientData for modifications + */ + public Utf8String getMutableClientDataBytes() { + bitField0_ |= 0x00000008; + return this.clientData; + } + + /** + * optional string ClientData = 2; + * @param value the clientData to set + * @return this + */ + public InteractClientEventReq setClientData(final CharSequence value) { + bitField0_ |= 0x00000008; + clientData.copyFrom(value); + return this; + } + + /** + * optional string ClientData = 2; + * @param value the clientData to set + * @return this + */ + public InteractClientEventReq setClientData(final Utf8String value) { + bitField0_ |= 0x00000008; + clientData.copyFrom(value); + return this; + } + + @Override + public InteractClientEventReq copyFrom(final InteractClientEventReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + dataLen = other.dataLen; + dataVersion = other.dataVersion; + nextPackage.copyFrom(other.nextPackage); + clientData.copyFrom(other.clientData); + } + return this; + } + + @Override + public InteractClientEventReq mergeFrom(final InteractClientEventReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasDataLen()) { + setDataLen(other.dataLen); + } + if (other.hasDataVersion()) { + setDataVersion(other.dataVersion); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasClientData()) { + getMutableClientDataBytes().copyFrom(other.clientData); + } + return this; + } + + @Override + public InteractClientEventReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + dataLen = 0; + dataVersion = 0; + nextPackage.clear(); + clientData.clear(); + return this; + } + + @Override + public InteractClientEventReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + clientData.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof InteractClientEventReq)) { + return false; + } + InteractClientEventReq other = (InteractClientEventReq) o; + return bitField0_ == other.bitField0_ + && (!hasDataLen() || dataLen == other.dataLen) + && (!hasDataVersion() || dataVersion == other.dataVersion) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasClientData() || clientData.equals(other.clientData)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(dataLen); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(dataVersion); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 18); + output.writeStringNoTag(clientData); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(dataLen); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(dataVersion); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(clientData); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public InteractClientEventReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // dataLen + dataLen = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // dataVersion + dataVersion = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // clientData + input.readString(clientData); + 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.dataLen, dataLen); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.dataVersion, dataVersion); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeString(FieldNames.clientData, clientData); + } + output.endObject(); + } + + @Override + public InteractClientEventReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1187137045: { + if (input.isAtField(FieldNames.dataLen)) { + if (!input.trySkipNullValue()) { + dataLen = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 538270126: { + if (input.isAtField(FieldNames.dataVersion)) { + if (!input.trySkipNullValue()) { + dataVersion = 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; + } + case -1199548875: { + if (input.isAtField(FieldNames.clientData)) { + if (!input.trySkipNullValue()) { + input.readString(clientData); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public InteractClientEventReq clone() { + return new InteractClientEventReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static InteractClientEventReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new InteractClientEventReq(), data).checkInitialized(); + } + + public static InteractClientEventReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new InteractClientEventReq(), input).checkInitialized(); + } + + public static InteractClientEventReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new InteractClientEventReq(), input).checkInitialized(); + } + + /** + * @return factory for creating InteractClientEventReq messages + */ + public static MessageFactory getFactory() { + return InteractClientEventReqFactory.INSTANCE; + } + + private enum InteractClientEventReqFactory implements MessageFactory { + INSTANCE; + + @Override + public InteractClientEventReq create() { + return InteractClientEventReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName dataLen = FieldName.forField("DataLen"); + + static final FieldName dataVersion = FieldName.forField("DataVersion"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName clientData = FieldName.forField("ClientData"); + } + } + + /** + * Protobuf type {@code SoldierSettleDataResp} + */ + public static final class SoldierSettleDataResp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 TotalScore = 1; + */ + private int totalScore; + + /** + * optional uint32 RewardScore = 2; + */ + private int rewardScore; + + /** + * optional uint32 Result = 3; + */ + private int result; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private SoldierSettleDataResp() { + } + + /** + * @return a new empty instance of {@code SoldierSettleDataResp} + */ + public static SoldierSettleDataResp newInstance() { + return new SoldierSettleDataResp(); + } + + /** + * optional uint32 TotalScore = 1; + * @return whether the totalScore field is set + */ + public boolean hasTotalScore() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 TotalScore = 1; + * @return this + */ + public SoldierSettleDataResp clearTotalScore() { + bitField0_ &= ~0x00000001; + totalScore = 0; + return this; + } + + /** + * optional uint32 TotalScore = 1; + * @return the totalScore + */ + public int getTotalScore() { + return totalScore; + } + + /** + * optional uint32 TotalScore = 1; + * @param value the totalScore to set + * @return this + */ + public SoldierSettleDataResp setTotalScore(final int value) { + bitField0_ |= 0x00000001; + totalScore = value; + return this; + } + + /** + * optional uint32 RewardScore = 2; + * @return whether the rewardScore field is set + */ + public boolean hasRewardScore() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 RewardScore = 2; + * @return this + */ + public SoldierSettleDataResp clearRewardScore() { + bitField0_ &= ~0x00000002; + rewardScore = 0; + return this; + } + + /** + * optional uint32 RewardScore = 2; + * @return the rewardScore + */ + public int getRewardScore() { + return rewardScore; + } + + /** + * optional uint32 RewardScore = 2; + * @param value the rewardScore to set + * @return this + */ + public SoldierSettleDataResp setRewardScore(final int value) { + bitField0_ |= 0x00000002; + rewardScore = value; + return this; + } + + /** + * optional uint32 Result = 3; + * @return whether the result field is set + */ + public boolean hasResult() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 Result = 3; + * @return this + */ + public SoldierSettleDataResp clearResult() { + bitField0_ &= ~0x00000004; + result = 0; + return this; + } + + /** + * optional uint32 Result = 3; + * @return the result + */ + public int getResult() { + return result; + } + + /** + * optional uint32 Result = 3; + * @param value the result to set + * @return this + */ + public SoldierSettleDataResp setResult(final int value) { + bitField0_ |= 0x00000004; + result = 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 SoldierSettleDataResp 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 SoldierSettleDataResp addNextPackage(final byte value) { + bitField0_ |= 0x00000008; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierSettleDataResp addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierSettleDataResp setNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.copyFrom(values); + return this; + } + + @Override + public SoldierSettleDataResp copyFrom(final SoldierSettleDataResp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + totalScore = other.totalScore; + rewardScore = other.rewardScore; + result = other.result; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierSettleDataResp mergeFrom(final SoldierSettleDataResp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasTotalScore()) { + setTotalScore(other.totalScore); + } + if (other.hasRewardScore()) { + setRewardScore(other.rewardScore); + } + if (other.hasResult()) { + setResult(other.result); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierSettleDataResp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + totalScore = 0; + rewardScore = 0; + result = 0; + nextPackage.clear(); + return this; + } + + @Override + public SoldierSettleDataResp 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 SoldierSettleDataResp)) { + return false; + } + SoldierSettleDataResp other = (SoldierSettleDataResp) o; + return bitField0_ == other.bitField0_ + && (!hasTotalScore() || totalScore == other.totalScore) + && (!hasRewardScore() || rewardScore == other.rewardScore) + && (!hasResult() || result == other.result) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(totalScore); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(rewardScore); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(result); + } + 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(totalScore); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(rewardScore); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(result); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierSettleDataResp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // totalScore + totalScore = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // rewardScore + rewardScore = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // result + result = 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.totalScore, totalScore); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.rewardScore, rewardScore); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.result, result); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public SoldierSettleDataResp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1276492238: { + if (input.isAtField(FieldNames.totalScore)) { + if (!input.trySkipNullValue()) { + totalScore = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1740125053: { + if (input.isAtField(FieldNames.rewardScore)) { + if (!input.trySkipNullValue()) { + rewardScore = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1850559427: { + if (input.isAtField(FieldNames.result)) { + if (!input.trySkipNullValue()) { + result = 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 SoldierSettleDataResp clone() { + return new SoldierSettleDataResp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierSettleDataResp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierSettleDataResp(), data).checkInitialized(); + } + + public static SoldierSettleDataResp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierSettleDataResp(), input).checkInitialized(); + } + + public static SoldierSettleDataResp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierSettleDataResp(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierSettleDataResp messages + */ + public static MessageFactory getFactory() { + return SoldierSettleDataRespFactory.INSTANCE; + } + + private enum SoldierSettleDataRespFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierSettleDataResp create() { + return SoldierSettleDataResp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName totalScore = FieldName.forField("TotalScore"); + + static final FieldName rewardScore = FieldName.forField("RewardScore"); + + static final FieldName result = FieldName.forField("Result"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code InteractDeploySyncReq} + */ + public static final class InteractDeploySyncReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .SoldierDeploy Deploy = 1; + */ + private final SoldierDeploy deploy = SoldierDeploy.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .SoldierChess DeployEx = 2; + */ + private final RepeatedMessage deployEx = RepeatedMessage.newEmptyInstance(SoldierChess.getFactory()); + + private InteractDeploySyncReq() { + } + + /** + * @return a new empty instance of {@code InteractDeploySyncReq} + */ + public static InteractDeploySyncReq newInstance() { + return new InteractDeploySyncReq(); + } + + /** + * optional .SoldierDeploy Deploy = 1; + * @return whether the deploy field is set + */ + public boolean hasDeploy() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .SoldierDeploy Deploy = 1; + * @return this + */ + public InteractDeploySyncReq clearDeploy() { + bitField0_ &= ~0x00000001; + deploy.clear(); + return this; + } + + /** + * optional .SoldierDeploy Deploy = 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 #getMutableDeploy()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SoldierDeploy getDeploy() { + return deploy; + } + + /** + * optional .SoldierDeploy Deploy = 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 SoldierDeploy getMutableDeploy() { + bitField0_ |= 0x00000001; + return deploy; + } + + /** + * optional .SoldierDeploy Deploy = 1; + * @param value the deploy to set + * @return this + */ + public InteractDeploySyncReq setDeploy(final SoldierDeploy value) { + bitField0_ |= 0x00000001; + deploy.copyFrom(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 InteractDeploySyncReq 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 InteractDeploySyncReq addNextPackage(final byte value) { + bitField0_ |= 0x00000002; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public InteractDeploySyncReq addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public InteractDeploySyncReq setNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .SoldierChess DeployEx = 2; + * @return whether the deployEx field is set + */ + public boolean hasDeployEx() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated .SoldierChess DeployEx = 2; + * @return this + */ + public InteractDeploySyncReq clearDeployEx() { + bitField0_ &= ~0x00000004; + deployEx.clear(); + return this; + } + + /** + * repeated .SoldierChess DeployEx = 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 #getMutableDeployEx()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getDeployEx() { + return deployEx; + } + + /** + * repeated .SoldierChess DeployEx = 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 getMutableDeployEx() { + bitField0_ |= 0x00000004; + return deployEx; + } + + /** + * repeated .SoldierChess DeployEx = 2; + * @param value the deployEx to add + * @return this + */ + public InteractDeploySyncReq addDeployEx(final SoldierChess value) { + bitField0_ |= 0x00000004; + deployEx.add(value); + return this; + } + + /** + * repeated .SoldierChess DeployEx = 2; + * @param values the deployEx to add + * @return this + */ + public InteractDeploySyncReq addAllDeployEx(final SoldierChess... values) { + bitField0_ |= 0x00000004; + deployEx.addAll(values); + return this; + } + + @Override + public InteractDeploySyncReq copyFrom(final InteractDeploySyncReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + deploy.copyFrom(other.deploy); + nextPackage.copyFrom(other.nextPackage); + deployEx.copyFrom(other.deployEx); + } + return this; + } + + @Override + public InteractDeploySyncReq mergeFrom(final InteractDeploySyncReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasDeploy()) { + getMutableDeploy().mergeFrom(other.deploy); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasDeployEx()) { + getMutableDeployEx().addAll(other.deployEx); + } + return this; + } + + @Override + public InteractDeploySyncReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + deploy.clear(); + nextPackage.clear(); + deployEx.clear(); + return this; + } + + @Override + public InteractDeploySyncReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + deploy.clearQuick(); + nextPackage.clear(); + deployEx.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof InteractDeploySyncReq)) { + return false; + } + InteractDeploySyncReq other = (InteractDeploySyncReq) o; + return bitField0_ == other.bitField0_ + && (!hasDeploy() || deploy.equals(other.deploy)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasDeployEx() || deployEx.equals(other.deployEx)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(deploy); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < deployEx.length(); i++) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(deployEx.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(deploy); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * deployEx.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(deployEx); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public InteractDeploySyncReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 10: { + // deploy + input.readMessage(deploy); + 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: { + // deployEx + tag = input.readRepeatedMessage(deployEx, 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.writeMessage(FieldNames.deploy, deploy); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedMessage(FieldNames.deployEx, deployEx); + } + output.endObject(); + } + + @Override + public InteractDeploySyncReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 2043501831: { + if (input.isAtField(FieldNames.deploy)) { + if (!input.trySkipNullValue()) { + input.readMessage(deploy); + 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 1005207578: { + if (input.isAtField(FieldNames.deployEx)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(deployEx); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public InteractDeploySyncReq clone() { + return new InteractDeploySyncReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static InteractDeploySyncReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new InteractDeploySyncReq(), data).checkInitialized(); + } + + public static InteractDeploySyncReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new InteractDeploySyncReq(), input).checkInitialized(); + } + + public static InteractDeploySyncReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new InteractDeploySyncReq(), input).checkInitialized(); + } + + /** + * @return factory for creating InteractDeploySyncReq messages + */ + public static MessageFactory getFactory() { + return InteractDeploySyncReqFactory.INSTANCE; + } + + private enum InteractDeploySyncReqFactory implements MessageFactory { + INSTANCE; + + @Override + public InteractDeploySyncReq create() { + return InteractDeploySyncReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName deploy = FieldName.forField("Deploy"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName deployEx = FieldName.forField("DeployEx"); + } + } + + /** + * Protobuf type {@code SoldierEffect} + */ + public static final class SoldierEffect extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Id = 1; + */ + private int id; + + /** + * optional uint32 Tid = 2; + */ + private int tid; + + /** + * optional .SoldierEffectLeftmostWaitingChessChange LeftmostChange = 6; + */ + private final SoldierEffectLeftmostWaitingChessChange leftmostChange = SoldierEffectLeftmostWaitingChessChange.newInstance(); + + /** + * optional .SoldierShopRandomChessBecomeAnotherHigherCost BecomeAnother = 7; + */ + private final SoldierShopRandomChessBecomeAnotherHigherCost becomeAnother = SoldierShopRandomChessBecomeAnotherHigherCost.newInstance(); + + /** + * optional .SoldierEffectPartnerAdditional PartnerAdditional = 8; + */ + private final SoldierEffectPartnerAdditional partnerAdditional = SoldierEffectPartnerAdditional.newInstance(); + + /** + * optional .SoldierEffectPartnerActivateAdditional PartnerActivateAdditional = 9; + */ + private final SoldierEffectPartnerActivateAdditional partnerActivateAdditional = SoldierEffectPartnerActivateAdditional.newInstance(); + + /** + * optional .SoldierNodeTypeModify NodeTypeModify = 10; + */ + private final SoldierNodeTypeModify nodeTypeModify = SoldierNodeTypeModify.newInstance(); + + /** + * optional .SoldierClientEffect ClientEffect = 11; + */ + private final SoldierClientEffect clientEffect = SoldierClientEffect.newInstance(); + + /** + * optional .SoldierShopRefreshState RefreshState = 12; + */ + private final SoldierShopRefreshState refreshState = SoldierShopRefreshState.newInstance(); + + /** + * optional .SoldierShopPurchaseState PurchaseState = 13; + */ + private final SoldierShopPurchaseState purchaseState = SoldierShopPurchaseState.newInstance(); + + /** + * optional .SoldierShopFreeState FreeState = 14; + */ + private final SoldierShopFreeState freeState = SoldierShopFreeState.newInstance(); + + /** + * optional .SoldierShopRarity Rarity = 15; + */ + private final SoldierShopRarity rarity = SoldierShopRarity.newInstance(); + + /** + * optional .SoldierShopPurchaseExpDiscount PurchaseExpDiscount = 16; + */ + private final SoldierShopPurchaseExpDiscount purchaseExpDiscount = SoldierShopPurchaseExpDiscount.newInstance(); + + /** + * optional .SoldierEffectAddChess ShowChess = 17; + */ + private final SoldierEffectAddChess showChess = SoldierEffectAddChess.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private SoldierEffect() { + } + + /** + * @return a new empty instance of {@code SoldierEffect} + */ + public static SoldierEffect newInstance() { + return new SoldierEffect(); + } + + /** + * 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 SoldierEffect 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 SoldierEffect setId(final int value) { + bitField0_ |= 0x00000001; + id = value; + return this; + } + + /** + * optional uint32 Tid = 2; + * @return whether the tid field is set + */ + public boolean hasTid() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 Tid = 2; + * @return this + */ + public SoldierEffect clearTid() { + bitField0_ &= ~0x00000002; + tid = 0; + return this; + } + + /** + * optional uint32 Tid = 2; + * @return the tid + */ + public int getTid() { + return tid; + } + + /** + * optional uint32 Tid = 2; + * @param value the tid to set + * @return this + */ + public SoldierEffect setTid(final int value) { + bitField0_ |= 0x00000002; + tid = value; + return this; + } + + /** + * optional .SoldierEffectLeftmostWaitingChessChange LeftmostChange = 6; + * @return whether the leftmostChange field is set + */ + public boolean hasLeftmostChange() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .SoldierEffectLeftmostWaitingChessChange LeftmostChange = 6; + * @return this + */ + public SoldierEffect clearLeftmostChange() { + bitField0_ &= ~0x00000004; + leftmostChange.clear(); + return this; + } + + /** + * optional .SoldierEffectLeftmostWaitingChessChange LeftmostChange = 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 #getMutableLeftmostChange()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SoldierEffectLeftmostWaitingChessChange getLeftmostChange() { + return leftmostChange; + } + + /** + * optional .SoldierEffectLeftmostWaitingChessChange LeftmostChange = 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 SoldierEffectLeftmostWaitingChessChange getMutableLeftmostChange() { + bitField0_ |= 0x00000004; + return leftmostChange; + } + + /** + * optional .SoldierEffectLeftmostWaitingChessChange LeftmostChange = 6; + * @param value the leftmostChange to set + * @return this + */ + public SoldierEffect setLeftmostChange(final SoldierEffectLeftmostWaitingChessChange value) { + bitField0_ |= 0x00000004; + leftmostChange.copyFrom(value); + return this; + } + + /** + * optional .SoldierShopRandomChessBecomeAnotherHigherCost BecomeAnother = 7; + * @return whether the becomeAnother field is set + */ + public boolean hasBecomeAnother() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .SoldierShopRandomChessBecomeAnotherHigherCost BecomeAnother = 7; + * @return this + */ + public SoldierEffect clearBecomeAnother() { + bitField0_ &= ~0x00000008; + becomeAnother.clear(); + return this; + } + + /** + * optional .SoldierShopRandomChessBecomeAnotherHigherCost BecomeAnother = 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 #getMutableBecomeAnother()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SoldierShopRandomChessBecomeAnotherHigherCost getBecomeAnother() { + return becomeAnother; + } + + /** + * optional .SoldierShopRandomChessBecomeAnotherHigherCost BecomeAnother = 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 SoldierShopRandomChessBecomeAnotherHigherCost getMutableBecomeAnother() { + bitField0_ |= 0x00000008; + return becomeAnother; + } + + /** + * optional .SoldierShopRandomChessBecomeAnotherHigherCost BecomeAnother = 7; + * @param value the becomeAnother to set + * @return this + */ + public SoldierEffect setBecomeAnother( + final SoldierShopRandomChessBecomeAnotherHigherCost value) { + bitField0_ |= 0x00000008; + becomeAnother.copyFrom(value); + return this; + } + + /** + * optional .SoldierEffectPartnerAdditional PartnerAdditional = 8; + * @return whether the partnerAdditional field is set + */ + public boolean hasPartnerAdditional() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional .SoldierEffectPartnerAdditional PartnerAdditional = 8; + * @return this + */ + public SoldierEffect clearPartnerAdditional() { + bitField0_ &= ~0x00000010; + partnerAdditional.clear(); + return this; + } + + /** + * optional .SoldierEffectPartnerAdditional PartnerAdditional = 8; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutablePartnerAdditional()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SoldierEffectPartnerAdditional getPartnerAdditional() { + return partnerAdditional; + } + + /** + * optional .SoldierEffectPartnerAdditional PartnerAdditional = 8; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public SoldierEffectPartnerAdditional getMutablePartnerAdditional() { + bitField0_ |= 0x00000010; + return partnerAdditional; + } + + /** + * optional .SoldierEffectPartnerAdditional PartnerAdditional = 8; + * @param value the partnerAdditional to set + * @return this + */ + public SoldierEffect setPartnerAdditional(final SoldierEffectPartnerAdditional value) { + bitField0_ |= 0x00000010; + partnerAdditional.copyFrom(value); + return this; + } + + /** + * optional .SoldierEffectPartnerActivateAdditional PartnerActivateAdditional = 9; + * @return whether the partnerActivateAdditional field is set + */ + public boolean hasPartnerActivateAdditional() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional .SoldierEffectPartnerActivateAdditional PartnerActivateAdditional = 9; + * @return this + */ + public SoldierEffect clearPartnerActivateAdditional() { + bitField0_ &= ~0x00000020; + partnerActivateAdditional.clear(); + return this; + } + + /** + * optional .SoldierEffectPartnerActivateAdditional PartnerActivateAdditional = 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 #getMutablePartnerActivateAdditional()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SoldierEffectPartnerActivateAdditional getPartnerActivateAdditional() { + return partnerActivateAdditional; + } + + /** + * optional .SoldierEffectPartnerActivateAdditional PartnerActivateAdditional = 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 SoldierEffectPartnerActivateAdditional getMutablePartnerActivateAdditional() { + bitField0_ |= 0x00000020; + return partnerActivateAdditional; + } + + /** + * optional .SoldierEffectPartnerActivateAdditional PartnerActivateAdditional = 9; + * @param value the partnerActivateAdditional to set + * @return this + */ + public SoldierEffect setPartnerActivateAdditional( + final SoldierEffectPartnerActivateAdditional value) { + bitField0_ |= 0x00000020; + partnerActivateAdditional.copyFrom(value); + return this; + } + + /** + * optional .SoldierNodeTypeModify NodeTypeModify = 10; + * @return whether the nodeTypeModify field is set + */ + public boolean hasNodeTypeModify() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional .SoldierNodeTypeModify NodeTypeModify = 10; + * @return this + */ + public SoldierEffect clearNodeTypeModify() { + bitField0_ &= ~0x00000040; + nodeTypeModify.clear(); + return this; + } + + /** + * optional .SoldierNodeTypeModify NodeTypeModify = 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 #getMutableNodeTypeModify()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SoldierNodeTypeModify getNodeTypeModify() { + return nodeTypeModify; + } + + /** + * optional .SoldierNodeTypeModify NodeTypeModify = 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 SoldierNodeTypeModify getMutableNodeTypeModify() { + bitField0_ |= 0x00000040; + return nodeTypeModify; + } + + /** + * optional .SoldierNodeTypeModify NodeTypeModify = 10; + * @param value the nodeTypeModify to set + * @return this + */ + public SoldierEffect setNodeTypeModify(final SoldierNodeTypeModify value) { + bitField0_ |= 0x00000040; + nodeTypeModify.copyFrom(value); + return this; + } + + /** + * optional .SoldierClientEffect ClientEffect = 11; + * @return whether the clientEffect field is set + */ + public boolean hasClientEffect() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * optional .SoldierClientEffect ClientEffect = 11; + * @return this + */ + public SoldierEffect clearClientEffect() { + bitField0_ &= ~0x00000080; + clientEffect.clear(); + return this; + } + + /** + * optional .SoldierClientEffect ClientEffect = 11; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableClientEffect()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SoldierClientEffect getClientEffect() { + return clientEffect; + } + + /** + * optional .SoldierClientEffect ClientEffect = 11; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public SoldierClientEffect getMutableClientEffect() { + bitField0_ |= 0x00000080; + return clientEffect; + } + + /** + * optional .SoldierClientEffect ClientEffect = 11; + * @param value the clientEffect to set + * @return this + */ + public SoldierEffect setClientEffect(final SoldierClientEffect value) { + bitField0_ |= 0x00000080; + clientEffect.copyFrom(value); + return this; + } + + /** + * optional .SoldierShopRefreshState RefreshState = 12; + * @return whether the refreshState field is set + */ + public boolean hasRefreshState() { + return (bitField0_ & 0x00000100) != 0; + } + + /** + * optional .SoldierShopRefreshState RefreshState = 12; + * @return this + */ + public SoldierEffect clearRefreshState() { + bitField0_ &= ~0x00000100; + refreshState.clear(); + return this; + } + + /** + * optional .SoldierShopRefreshState RefreshState = 12; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableRefreshState()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SoldierShopRefreshState getRefreshState() { + return refreshState; + } + + /** + * optional .SoldierShopRefreshState RefreshState = 12; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public SoldierShopRefreshState getMutableRefreshState() { + bitField0_ |= 0x00000100; + return refreshState; + } + + /** + * optional .SoldierShopRefreshState RefreshState = 12; + * @param value the refreshState to set + * @return this + */ + public SoldierEffect setRefreshState(final SoldierShopRefreshState value) { + bitField0_ |= 0x00000100; + refreshState.copyFrom(value); + return this; + } + + /** + * optional .SoldierShopPurchaseState PurchaseState = 13; + * @return whether the purchaseState field is set + */ + public boolean hasPurchaseState() { + return (bitField0_ & 0x00000200) != 0; + } + + /** + * optional .SoldierShopPurchaseState PurchaseState = 13; + * @return this + */ + public SoldierEffect clearPurchaseState() { + bitField0_ &= ~0x00000200; + purchaseState.clear(); + return this; + } + + /** + * optional .SoldierShopPurchaseState PurchaseState = 13; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutablePurchaseState()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SoldierShopPurchaseState getPurchaseState() { + return purchaseState; + } + + /** + * optional .SoldierShopPurchaseState PurchaseState = 13; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public SoldierShopPurchaseState getMutablePurchaseState() { + bitField0_ |= 0x00000200; + return purchaseState; + } + + /** + * optional .SoldierShopPurchaseState PurchaseState = 13; + * @param value the purchaseState to set + * @return this + */ + public SoldierEffect setPurchaseState(final SoldierShopPurchaseState value) { + bitField0_ |= 0x00000200; + purchaseState.copyFrom(value); + return this; + } + + /** + * optional .SoldierShopFreeState FreeState = 14; + * @return whether the freeState field is set + */ + public boolean hasFreeState() { + return (bitField0_ & 0x00000400) != 0; + } + + /** + * optional .SoldierShopFreeState FreeState = 14; + * @return this + */ + public SoldierEffect clearFreeState() { + bitField0_ &= ~0x00000400; + freeState.clear(); + return this; + } + + /** + * optional .SoldierShopFreeState FreeState = 14; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableFreeState()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SoldierShopFreeState getFreeState() { + return freeState; + } + + /** + * optional .SoldierShopFreeState FreeState = 14; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public SoldierShopFreeState getMutableFreeState() { + bitField0_ |= 0x00000400; + return freeState; + } + + /** + * optional .SoldierShopFreeState FreeState = 14; + * @param value the freeState to set + * @return this + */ + public SoldierEffect setFreeState(final SoldierShopFreeState value) { + bitField0_ |= 0x00000400; + freeState.copyFrom(value); + return this; + } + + /** + * optional .SoldierShopRarity Rarity = 15; + * @return whether the rarity field is set + */ + public boolean hasRarity() { + return (bitField0_ & 0x00000800) != 0; + } + + /** + * optional .SoldierShopRarity Rarity = 15; + * @return this + */ + public SoldierEffect clearRarity() { + bitField0_ &= ~0x00000800; + rarity.clear(); + return this; + } + + /** + * optional .SoldierShopRarity Rarity = 15; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableRarity()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SoldierShopRarity getRarity() { + return rarity; + } + + /** + * optional .SoldierShopRarity Rarity = 15; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public SoldierShopRarity getMutableRarity() { + bitField0_ |= 0x00000800; + return rarity; + } + + /** + * optional .SoldierShopRarity Rarity = 15; + * @param value the rarity to set + * @return this + */ + public SoldierEffect setRarity(final SoldierShopRarity value) { + bitField0_ |= 0x00000800; + rarity.copyFrom(value); + return this; + } + + /** + * optional .SoldierShopPurchaseExpDiscount PurchaseExpDiscount = 16; + * @return whether the purchaseExpDiscount field is set + */ + public boolean hasPurchaseExpDiscount() { + return (bitField0_ & 0x00001000) != 0; + } + + /** + * optional .SoldierShopPurchaseExpDiscount PurchaseExpDiscount = 16; + * @return this + */ + public SoldierEffect clearPurchaseExpDiscount() { + bitField0_ &= ~0x00001000; + purchaseExpDiscount.clear(); + return this; + } + + /** + * optional .SoldierShopPurchaseExpDiscount PurchaseExpDiscount = 16; + * + * This 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 #getMutablePurchaseExpDiscount()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SoldierShopPurchaseExpDiscount getPurchaseExpDiscount() { + return purchaseExpDiscount; + } + + /** + * optional .SoldierShopPurchaseExpDiscount PurchaseExpDiscount = 16; + * + * 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 SoldierShopPurchaseExpDiscount getMutablePurchaseExpDiscount() { + bitField0_ |= 0x00001000; + return purchaseExpDiscount; + } + + /** + * optional .SoldierShopPurchaseExpDiscount PurchaseExpDiscount = 16; + * @param value the purchaseExpDiscount to set + * @return this + */ + public SoldierEffect setPurchaseExpDiscount(final SoldierShopPurchaseExpDiscount value) { + bitField0_ |= 0x00001000; + purchaseExpDiscount.copyFrom(value); + return this; + } + + /** + * optional .SoldierEffectAddChess ShowChess = 17; + * @return whether the showChess field is set + */ + public boolean hasShowChess() { + return (bitField0_ & 0x00002000) != 0; + } + + /** + * optional .SoldierEffectAddChess ShowChess = 17; + * @return this + */ + public SoldierEffect clearShowChess() { + bitField0_ &= ~0x00002000; + showChess.clear(); + return this; + } + + /** + * optional .SoldierEffectAddChess ShowChess = 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 #getMutableShowChess()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SoldierEffectAddChess getShowChess() { + return showChess; + } + + /** + * optional .SoldierEffectAddChess ShowChess = 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 SoldierEffectAddChess getMutableShowChess() { + bitField0_ |= 0x00002000; + return showChess; + } + + /** + * optional .SoldierEffectAddChess ShowChess = 17; + * @param value the showChess to set + * @return this + */ + public SoldierEffect setShowChess(final SoldierEffectAddChess value) { + bitField0_ |= 0x00002000; + showChess.copyFrom(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00004000) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public SoldierEffect clearNextPackage() { + bitField0_ &= ~0x00004000; + 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_ |= 0x00004000; + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public SoldierEffect addNextPackage(final byte value) { + bitField0_ |= 0x00004000; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierEffect addAllNextPackage(final byte... values) { + bitField0_ |= 0x00004000; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierEffect setNextPackage(final byte... values) { + bitField0_ |= 0x00004000; + nextPackage.copyFrom(values); + return this; + } + + @Override + public SoldierEffect copyFrom(final SoldierEffect other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + id = other.id; + tid = other.tid; + leftmostChange.copyFrom(other.leftmostChange); + becomeAnother.copyFrom(other.becomeAnother); + partnerAdditional.copyFrom(other.partnerAdditional); + partnerActivateAdditional.copyFrom(other.partnerActivateAdditional); + nodeTypeModify.copyFrom(other.nodeTypeModify); + clientEffect.copyFrom(other.clientEffect); + refreshState.copyFrom(other.refreshState); + purchaseState.copyFrom(other.purchaseState); + freeState.copyFrom(other.freeState); + rarity.copyFrom(other.rarity); + purchaseExpDiscount.copyFrom(other.purchaseExpDiscount); + showChess.copyFrom(other.showChess); + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierEffect mergeFrom(final SoldierEffect other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasId()) { + setId(other.id); + } + if (other.hasTid()) { + setTid(other.tid); + } + if (other.hasLeftmostChange()) { + getMutableLeftmostChange().mergeFrom(other.leftmostChange); + } + if (other.hasBecomeAnother()) { + getMutableBecomeAnother().mergeFrom(other.becomeAnother); + } + if (other.hasPartnerAdditional()) { + getMutablePartnerAdditional().mergeFrom(other.partnerAdditional); + } + if (other.hasPartnerActivateAdditional()) { + getMutablePartnerActivateAdditional().mergeFrom(other.partnerActivateAdditional); + } + if (other.hasNodeTypeModify()) { + getMutableNodeTypeModify().mergeFrom(other.nodeTypeModify); + } + if (other.hasClientEffect()) { + getMutableClientEffect().mergeFrom(other.clientEffect); + } + if (other.hasRefreshState()) { + getMutableRefreshState().mergeFrom(other.refreshState); + } + if (other.hasPurchaseState()) { + getMutablePurchaseState().mergeFrom(other.purchaseState); + } + if (other.hasFreeState()) { + getMutableFreeState().mergeFrom(other.freeState); + } + if (other.hasRarity()) { + getMutableRarity().mergeFrom(other.rarity); + } + if (other.hasPurchaseExpDiscount()) { + getMutablePurchaseExpDiscount().mergeFrom(other.purchaseExpDiscount); + } + if (other.hasShowChess()) { + getMutableShowChess().mergeFrom(other.showChess); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierEffect clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + id = 0; + tid = 0; + leftmostChange.clear(); + becomeAnother.clear(); + partnerAdditional.clear(); + partnerActivateAdditional.clear(); + nodeTypeModify.clear(); + clientEffect.clear(); + refreshState.clear(); + purchaseState.clear(); + freeState.clear(); + rarity.clear(); + purchaseExpDiscount.clear(); + showChess.clear(); + nextPackage.clear(); + return this; + } + + @Override + public SoldierEffect clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + leftmostChange.clearQuick(); + becomeAnother.clearQuick(); + partnerAdditional.clearQuick(); + partnerActivateAdditional.clearQuick(); + nodeTypeModify.clearQuick(); + clientEffect.clearQuick(); + refreshState.clearQuick(); + purchaseState.clearQuick(); + freeState.clearQuick(); + rarity.clearQuick(); + purchaseExpDiscount.clearQuick(); + showChess.clearQuick(); + nextPackage.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SoldierEffect)) { + return false; + } + SoldierEffect other = (SoldierEffect) o; + return bitField0_ == other.bitField0_ + && (!hasId() || id == other.id) + && (!hasTid() || tid == other.tid) + && (!hasLeftmostChange() || leftmostChange.equals(other.leftmostChange)) + && (!hasBecomeAnother() || becomeAnother.equals(other.becomeAnother)) + && (!hasPartnerAdditional() || partnerAdditional.equals(other.partnerAdditional)) + && (!hasPartnerActivateAdditional() || partnerActivateAdditional.equals(other.partnerActivateAdditional)) + && (!hasNodeTypeModify() || nodeTypeModify.equals(other.nodeTypeModify)) + && (!hasClientEffect() || clientEffect.equals(other.clientEffect)) + && (!hasRefreshState() || refreshState.equals(other.refreshState)) + && (!hasPurchaseState() || purchaseState.equals(other.purchaseState)) + && (!hasFreeState() || freeState.equals(other.freeState)) + && (!hasRarity() || rarity.equals(other.rarity)) + && (!hasPurchaseExpDiscount() || purchaseExpDiscount.equals(other.purchaseExpDiscount)) + && (!hasShowChess() || showChess.equals(other.showChess)) + && (!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(tid); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 50); + output.writeMessageNoTag(leftmostChange); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 58); + output.writeMessageNoTag(becomeAnother); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 66); + output.writeMessageNoTag(partnerAdditional); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 74); + output.writeMessageNoTag(partnerActivateAdditional); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawByte((byte) 82); + output.writeMessageNoTag(nodeTypeModify); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRawByte((byte) 90); + output.writeMessageNoTag(clientEffect); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeRawByte((byte) 98); + output.writeMessageNoTag(refreshState); + } + if ((bitField0_ & 0x00000200) != 0) { + output.writeRawByte((byte) 106); + output.writeMessageNoTag(purchaseState); + } + if ((bitField0_ & 0x00000400) != 0) { + output.writeRawByte((byte) 114); + output.writeMessageNoTag(freeState); + } + if ((bitField0_ & 0x00000800) != 0) { + output.writeRawByte((byte) 122); + output.writeMessageNoTag(rarity); + } + if ((bitField0_ & 0x00001000) != 0) { + output.writeRawLittleEndian16((short) 386); + output.writeMessageNoTag(purchaseExpDiscount); + } + if ((bitField0_ & 0x00002000) != 0) { + output.writeRawLittleEndian16((short) 394); + output.writeMessageNoTag(showChess); + } + if ((bitField0_ & 0x00004000) != 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(tid); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(leftmostChange); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(becomeAnother); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(partnerAdditional); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(partnerActivateAdditional); + } + if ((bitField0_ & 0x00000040) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(nodeTypeModify); + } + if ((bitField0_ & 0x00000080) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(clientEffect); + } + if ((bitField0_ & 0x00000100) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(refreshState); + } + if ((bitField0_ & 0x00000200) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(purchaseState); + } + if ((bitField0_ & 0x00000400) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(freeState); + } + if ((bitField0_ & 0x00000800) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(rarity); + } + if ((bitField0_ & 0x00001000) != 0) { + size += 2 + ProtoSink.computeMessageSizeNoTag(purchaseExpDiscount); + } + if ((bitField0_ & 0x00002000) != 0) { + size += 2 + ProtoSink.computeMessageSizeNoTag(showChess); + } + if ((bitField0_ & 0x00004000) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierEffect 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: { + // tid + tid = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 50) { + break; + } + } + case 50: { + // leftmostChange + input.readMessage(leftmostChange); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 58) { + break; + } + } + case 58: { + // becomeAnother + input.readMessage(becomeAnother); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 66) { + break; + } + } + case 66: { + // partnerAdditional + input.readMessage(partnerAdditional); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 74) { + break; + } + } + case 74: { + // partnerActivateAdditional + input.readMessage(partnerActivateAdditional); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 82) { + break; + } + } + case 82: { + // nodeTypeModify + input.readMessage(nodeTypeModify); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 90) { + break; + } + } + case 90: { + // clientEffect + input.readMessage(clientEffect); + bitField0_ |= 0x00000080; + tag = input.readTag(); + if (tag != 98) { + break; + } + } + case 98: { + // refreshState + input.readMessage(refreshState); + bitField0_ |= 0x00000100; + tag = input.readTag(); + if (tag != 106) { + break; + } + } + case 106: { + // purchaseState + input.readMessage(purchaseState); + bitField0_ |= 0x00000200; + tag = input.readTag(); + if (tag != 114) { + break; + } + } + case 114: { + // freeState + input.readMessage(freeState); + bitField0_ |= 0x00000400; + tag = input.readTag(); + if (tag != 122) { + break; + } + } + case 122: { + // rarity + input.readMessage(rarity); + bitField0_ |= 0x00000800; + tag = input.readTag(); + if (tag != 130) { + break; + } + } + case 130: { + // purchaseExpDiscount + input.readMessage(purchaseExpDiscount); + bitField0_ |= 0x00001000; + tag = input.readTag(); + if (tag != 138) { + break; + } + } + case 138: { + // showChess + input.readMessage(showChess); + bitField0_ |= 0x00002000; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00004000; + 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.tid, tid); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.leftmostChange, leftmostChange); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeMessage(FieldNames.becomeAnother, becomeAnother); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeMessage(FieldNames.partnerAdditional, partnerAdditional); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeMessage(FieldNames.partnerActivateAdditional, partnerActivateAdditional); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeMessage(FieldNames.nodeTypeModify, nodeTypeModify); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeMessage(FieldNames.clientEffect, clientEffect); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeMessage(FieldNames.refreshState, refreshState); + } + if ((bitField0_ & 0x00000200) != 0) { + output.writeMessage(FieldNames.purchaseState, purchaseState); + } + if ((bitField0_ & 0x00000400) != 0) { + output.writeMessage(FieldNames.freeState, freeState); + } + if ((bitField0_ & 0x00000800) != 0) { + output.writeMessage(FieldNames.rarity, rarity); + } + if ((bitField0_ & 0x00001000) != 0) { + output.writeMessage(FieldNames.purchaseExpDiscount, purchaseExpDiscount); + } + if ((bitField0_ & 0x00002000) != 0) { + output.writeMessage(FieldNames.showChess, showChess); + } + if ((bitField0_ & 0x00004000) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public SoldierEffect 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 84079: { + if (input.isAtField(FieldNames.tid)) { + if (!input.trySkipNullValue()) { + tid = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 395943034: { + if (input.isAtField(FieldNames.leftmostChange)) { + if (!input.trySkipNullValue()) { + input.readMessage(leftmostChange); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1419620124: { + if (input.isAtField(FieldNames.becomeAnother)) { + if (!input.trySkipNullValue()) { + input.readMessage(becomeAnother); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -528705809: { + if (input.isAtField(FieldNames.partnerAdditional)) { + if (!input.trySkipNullValue()) { + input.readMessage(partnerAdditional); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case 317697090: { + if (input.isAtField(FieldNames.partnerActivateAdditional)) { + if (!input.trySkipNullValue()) { + input.readMessage(partnerActivateAdditional); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case 326982742: { + if (input.isAtField(FieldNames.nodeTypeModify)) { + if (!input.trySkipNullValue()) { + input.readMessage(nodeTypeModify); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1682396836: { + if (input.isAtField(FieldNames.clientEffect)) { + if (!input.trySkipNullValue()) { + input.readMessage(clientEffect); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + case 107030166: { + if (input.isAtField(FieldNames.refreshState)) { + if (!input.trySkipNullValue()) { + input.readMessage(refreshState); + bitField0_ |= 0x00000100; + } + } else { + input.skipUnknownField(); + } + break; + } + case -535955472: { + if (input.isAtField(FieldNames.purchaseState)) { + if (!input.trySkipNullValue()) { + input.readMessage(purchaseState); + bitField0_ |= 0x00000200; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1559429477: { + if (input.isAtField(FieldNames.freeState)) { + if (!input.trySkipNullValue()) { + input.readMessage(freeState); + bitField0_ |= 0x00000400; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1854294581: { + if (input.isAtField(FieldNames.rarity)) { + if (!input.trySkipNullValue()) { + input.readMessage(rarity); + bitField0_ |= 0x00000800; + } + } else { + input.skipUnknownField(); + } + break; + } + case 490464925: { + if (input.isAtField(FieldNames.purchaseExpDiscount)) { + if (!input.trySkipNullValue()) { + input.readMessage(purchaseExpDiscount); + bitField0_ |= 0x00001000; + } + } else { + input.skipUnknownField(); + } + break; + } + case 74420707: { + if (input.isAtField(FieldNames.showChess)) { + if (!input.trySkipNullValue()) { + input.readMessage(showChess); + bitField0_ |= 0x00002000; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00004000; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SoldierEffect clone() { + return new SoldierEffect().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierEffect parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierEffect(), data).checkInitialized(); + } + + public static SoldierEffect parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierEffect(), input).checkInitialized(); + } + + public static SoldierEffect parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierEffect(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierEffect messages + */ + public static MessageFactory getFactory() { + return SoldierEffectFactory.INSTANCE; + } + + private enum SoldierEffectFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierEffect create() { + return SoldierEffect.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName id = FieldName.forField("Id"); + + static final FieldName tid = FieldName.forField("Tid"); + + static final FieldName leftmostChange = FieldName.forField("LeftmostChange"); + + static final FieldName becomeAnother = FieldName.forField("BecomeAnother"); + + static final FieldName partnerAdditional = FieldName.forField("PartnerAdditional"); + + static final FieldName partnerActivateAdditional = FieldName.forField("PartnerActivateAdditional"); + + static final FieldName nodeTypeModify = FieldName.forField("NodeTypeModify"); + + static final FieldName clientEffect = FieldName.forField("ClientEffect"); + + static final FieldName refreshState = FieldName.forField("RefreshState"); + + static final FieldName purchaseState = FieldName.forField("PurchaseState"); + + static final FieldName freeState = FieldName.forField("FreeState"); + + static final FieldName rarity = FieldName.forField("Rarity"); + + static final FieldName purchaseExpDiscount = FieldName.forField("PurchaseExpDiscount"); + + static final FieldName showChess = FieldName.forField("ShowChess"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code SoldierEffectInfo} + */ + public static final class SoldierEffectInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .SoldierEffectPartnerAdditional PartnerAdditional = 1; + */ + private final SoldierEffectPartnerAdditional partnerAdditional = SoldierEffectPartnerAdditional.newInstance(); + + /** + * optional .SoldierEffectPartnerActivateAdditional PartnerActivateAdditional = 2; + */ + private final SoldierEffectPartnerActivateAdditional partnerActivateAdditional = SoldierEffectPartnerActivateAdditional.newInstance(); + + /** + * optional .SoldierNodeTypeModify NodeTypeModify = 10; + */ + private final SoldierNodeTypeModify nodeTypeModify = SoldierNodeTypeModify.newInstance(); + + /** + * optional .SoldierClientEffect ClientEffect = 11; + */ + private final SoldierClientEffect clientEffect = SoldierClientEffect.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private SoldierEffectInfo() { + } + + /** + * @return a new empty instance of {@code SoldierEffectInfo} + */ + public static SoldierEffectInfo newInstance() { + return new SoldierEffectInfo(); + } + + /** + * optional .SoldierEffectPartnerAdditional PartnerAdditional = 1; + * @return whether the partnerAdditional field is set + */ + public boolean hasPartnerAdditional() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .SoldierEffectPartnerAdditional PartnerAdditional = 1; + * @return this + */ + public SoldierEffectInfo clearPartnerAdditional() { + bitField0_ &= ~0x00000001; + partnerAdditional.clear(); + return this; + } + + /** + * optional .SoldierEffectPartnerAdditional PartnerAdditional = 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 #getMutablePartnerAdditional()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SoldierEffectPartnerAdditional getPartnerAdditional() { + return partnerAdditional; + } + + /** + * optional .SoldierEffectPartnerAdditional PartnerAdditional = 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 SoldierEffectPartnerAdditional getMutablePartnerAdditional() { + bitField0_ |= 0x00000001; + return partnerAdditional; + } + + /** + * optional .SoldierEffectPartnerAdditional PartnerAdditional = 1; + * @param value the partnerAdditional to set + * @return this + */ + public SoldierEffectInfo setPartnerAdditional(final SoldierEffectPartnerAdditional value) { + bitField0_ |= 0x00000001; + partnerAdditional.copyFrom(value); + return this; + } + + /** + * optional .SoldierEffectPartnerActivateAdditional PartnerActivateAdditional = 2; + * @return whether the partnerActivateAdditional field is set + */ + public boolean hasPartnerActivateAdditional() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .SoldierEffectPartnerActivateAdditional PartnerActivateAdditional = 2; + * @return this + */ + public SoldierEffectInfo clearPartnerActivateAdditional() { + bitField0_ &= ~0x00000002; + partnerActivateAdditional.clear(); + return this; + } + + /** + * optional .SoldierEffectPartnerActivateAdditional PartnerActivateAdditional = 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 #getMutablePartnerActivateAdditional()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SoldierEffectPartnerActivateAdditional getPartnerActivateAdditional() { + return partnerActivateAdditional; + } + + /** + * optional .SoldierEffectPartnerActivateAdditional PartnerActivateAdditional = 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 SoldierEffectPartnerActivateAdditional getMutablePartnerActivateAdditional() { + bitField0_ |= 0x00000002; + return partnerActivateAdditional; + } + + /** + * optional .SoldierEffectPartnerActivateAdditional PartnerActivateAdditional = 2; + * @param value the partnerActivateAdditional to set + * @return this + */ + public SoldierEffectInfo setPartnerActivateAdditional( + final SoldierEffectPartnerActivateAdditional value) { + bitField0_ |= 0x00000002; + partnerActivateAdditional.copyFrom(value); + return this; + } + + /** + * optional .SoldierNodeTypeModify NodeTypeModify = 10; + * @return whether the nodeTypeModify field is set + */ + public boolean hasNodeTypeModify() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .SoldierNodeTypeModify NodeTypeModify = 10; + * @return this + */ + public SoldierEffectInfo clearNodeTypeModify() { + bitField0_ &= ~0x00000004; + nodeTypeModify.clear(); + return this; + } + + /** + * optional .SoldierNodeTypeModify NodeTypeModify = 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 #getMutableNodeTypeModify()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SoldierNodeTypeModify getNodeTypeModify() { + return nodeTypeModify; + } + + /** + * optional .SoldierNodeTypeModify NodeTypeModify = 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 SoldierNodeTypeModify getMutableNodeTypeModify() { + bitField0_ |= 0x00000004; + return nodeTypeModify; + } + + /** + * optional .SoldierNodeTypeModify NodeTypeModify = 10; + * @param value the nodeTypeModify to set + * @return this + */ + public SoldierEffectInfo setNodeTypeModify(final SoldierNodeTypeModify value) { + bitField0_ |= 0x00000004; + nodeTypeModify.copyFrom(value); + return this; + } + + /** + * optional .SoldierClientEffect ClientEffect = 11; + * @return whether the clientEffect field is set + */ + public boolean hasClientEffect() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .SoldierClientEffect ClientEffect = 11; + * @return this + */ + public SoldierEffectInfo clearClientEffect() { + bitField0_ &= ~0x00000008; + clientEffect.clear(); + return this; + } + + /** + * optional .SoldierClientEffect ClientEffect = 11; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableClientEffect()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SoldierClientEffect getClientEffect() { + return clientEffect; + } + + /** + * optional .SoldierClientEffect ClientEffect = 11; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public SoldierClientEffect getMutableClientEffect() { + bitField0_ |= 0x00000008; + return clientEffect; + } + + /** + * optional .SoldierClientEffect ClientEffect = 11; + * @param value the clientEffect to set + * @return this + */ + public SoldierEffectInfo setClientEffect(final SoldierClientEffect value) { + bitField0_ |= 0x00000008; + clientEffect.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 SoldierEffectInfo 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 SoldierEffectInfo addNextPackage(final byte value) { + bitField0_ |= 0x00000010; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierEffectInfo addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000010; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierEffectInfo setNextPackage(final byte... values) { + bitField0_ |= 0x00000010; + nextPackage.copyFrom(values); + return this; + } + + @Override + public SoldierEffectInfo copyFrom(final SoldierEffectInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + partnerAdditional.copyFrom(other.partnerAdditional); + partnerActivateAdditional.copyFrom(other.partnerActivateAdditional); + nodeTypeModify.copyFrom(other.nodeTypeModify); + clientEffect.copyFrom(other.clientEffect); + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierEffectInfo mergeFrom(final SoldierEffectInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasPartnerAdditional()) { + getMutablePartnerAdditional().mergeFrom(other.partnerAdditional); + } + if (other.hasPartnerActivateAdditional()) { + getMutablePartnerActivateAdditional().mergeFrom(other.partnerActivateAdditional); + } + if (other.hasNodeTypeModify()) { + getMutableNodeTypeModify().mergeFrom(other.nodeTypeModify); + } + if (other.hasClientEffect()) { + getMutableClientEffect().mergeFrom(other.clientEffect); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierEffectInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + partnerAdditional.clear(); + partnerActivateAdditional.clear(); + nodeTypeModify.clear(); + clientEffect.clear(); + nextPackage.clear(); + return this; + } + + @Override + public SoldierEffectInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + partnerAdditional.clearQuick(); + partnerActivateAdditional.clearQuick(); + nodeTypeModify.clearQuick(); + clientEffect.clearQuick(); + nextPackage.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SoldierEffectInfo)) { + return false; + } + SoldierEffectInfo other = (SoldierEffectInfo) o; + return bitField0_ == other.bitField0_ + && (!hasPartnerAdditional() || partnerAdditional.equals(other.partnerAdditional)) + && (!hasPartnerActivateAdditional() || partnerActivateAdditional.equals(other.partnerActivateAdditional)) + && (!hasNodeTypeModify() || nodeTypeModify.equals(other.nodeTypeModify)) + && (!hasClientEffect() || clientEffect.equals(other.clientEffect)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(partnerAdditional); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(partnerActivateAdditional); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 82); + output.writeMessageNoTag(nodeTypeModify); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 90); + output.writeMessageNoTag(clientEffect); + } + 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.computeMessageSizeNoTag(partnerAdditional); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(partnerActivateAdditional); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(nodeTypeModify); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(clientEffect); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierEffectInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 10: { + // partnerAdditional + input.readMessage(partnerAdditional); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // partnerActivateAdditional + input.readMessage(partnerActivateAdditional); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 82) { + break; + } + } + case 82: { + // nodeTypeModify + input.readMessage(nodeTypeModify); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 90) { + break; + } + } + case 90: { + // clientEffect + input.readMessage(clientEffect); + 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.writeMessage(FieldNames.partnerAdditional, partnerAdditional); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.partnerActivateAdditional, partnerActivateAdditional); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.nodeTypeModify, nodeTypeModify); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeMessage(FieldNames.clientEffect, clientEffect); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public SoldierEffectInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -528705809: { + if (input.isAtField(FieldNames.partnerAdditional)) { + if (!input.trySkipNullValue()) { + input.readMessage(partnerAdditional); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 317697090: { + if (input.isAtField(FieldNames.partnerActivateAdditional)) { + if (!input.trySkipNullValue()) { + input.readMessage(partnerActivateAdditional); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 326982742: { + if (input.isAtField(FieldNames.nodeTypeModify)) { + if (!input.trySkipNullValue()) { + input.readMessage(nodeTypeModify); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1682396836: { + if (input.isAtField(FieldNames.clientEffect)) { + if (!input.trySkipNullValue()) { + input.readMessage(clientEffect); + 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 SoldierEffectInfo clone() { + return new SoldierEffectInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierEffectInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierEffectInfo(), data).checkInitialized(); + } + + public static SoldierEffectInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierEffectInfo(), input).checkInitialized(); + } + + public static SoldierEffectInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierEffectInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierEffectInfo messages + */ + public static MessageFactory getFactory() { + return SoldierEffectInfoFactory.INSTANCE; + } + + private enum SoldierEffectInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierEffectInfo create() { + return SoldierEffectInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName partnerAdditional = FieldName.forField("PartnerAdditional"); + + static final FieldName partnerActivateAdditional = FieldName.forField("PartnerActivateAdditional"); + + static final FieldName nodeTypeModify = FieldName.forField("NodeTypeModify"); + + static final FieldName clientEffect = FieldName.forField("ClientEffect"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code SoldierEffectLeftmostWaitingChessChange} + */ + public static final class SoldierEffectLeftmostWaitingChessChange extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 SId = 1; + */ + private int sId; + + /** + * optional .SoldierChess Chess = 2; + */ + private final SoldierChess chess = SoldierChess.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private SoldierEffectLeftmostWaitingChessChange() { + } + + /** + * @return a new empty instance of {@code SoldierEffectLeftmostWaitingChessChange} + */ + public static SoldierEffectLeftmostWaitingChessChange newInstance() { + return new SoldierEffectLeftmostWaitingChessChange(); + } + + /** + * optional uint32 SId = 1; + * @return whether the sId field is set + */ + public boolean hasSId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 SId = 1; + * @return this + */ + public SoldierEffectLeftmostWaitingChessChange clearSId() { + bitField0_ &= ~0x00000001; + sId = 0; + return this; + } + + /** + * optional uint32 SId = 1; + * @return the sId + */ + public int getSId() { + return sId; + } + + /** + * optional uint32 SId = 1; + * @param value the sId to set + * @return this + */ + public SoldierEffectLeftmostWaitingChessChange setSId(final int value) { + bitField0_ |= 0x00000001; + sId = value; + return this; + } + + /** + * optional .SoldierChess Chess = 2; + * @return whether the chess field is set + */ + public boolean hasChess() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .SoldierChess Chess = 2; + * @return this + */ + public SoldierEffectLeftmostWaitingChessChange clearChess() { + bitField0_ &= ~0x00000002; + chess.clear(); + return this; + } + + /** + * optional .SoldierChess Chess = 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 #getMutableChess()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SoldierChess getChess() { + return chess; + } + + /** + * optional .SoldierChess Chess = 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 SoldierChess getMutableChess() { + bitField0_ |= 0x00000002; + return chess; + } + + /** + * optional .SoldierChess Chess = 2; + * @param value the chess to set + * @return this + */ + public SoldierEffectLeftmostWaitingChessChange setChess(final SoldierChess value) { + bitField0_ |= 0x00000002; + chess.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 SoldierEffectLeftmostWaitingChessChange 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 SoldierEffectLeftmostWaitingChessChange addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierEffectLeftmostWaitingChessChange addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierEffectLeftmostWaitingChessChange setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + @Override + public SoldierEffectLeftmostWaitingChessChange copyFrom( + final SoldierEffectLeftmostWaitingChessChange other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + sId = other.sId; + chess.copyFrom(other.chess); + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierEffectLeftmostWaitingChessChange mergeFrom( + final SoldierEffectLeftmostWaitingChessChange other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasSId()) { + setSId(other.sId); + } + if (other.hasChess()) { + getMutableChess().mergeFrom(other.chess); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierEffectLeftmostWaitingChessChange clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + sId = 0; + chess.clear(); + nextPackage.clear(); + return this; + } + + @Override + public SoldierEffectLeftmostWaitingChessChange clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + chess.clearQuick(); + nextPackage.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SoldierEffectLeftmostWaitingChessChange)) { + return false; + } + SoldierEffectLeftmostWaitingChessChange other = (SoldierEffectLeftmostWaitingChessChange) o; + return bitField0_ == other.bitField0_ + && (!hasSId() || sId == other.sId) + && (!hasChess() || chess.equals(other.chess)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(sId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(chess); + } + 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(sId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(chess); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierEffectLeftmostWaitingChessChange mergeFrom(final ProtoSource input) throws + IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // sId + sId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // chess + input.readMessage(chess); + 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.sId, sId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.chess, chess); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public SoldierEffectLeftmostWaitingChessChange mergeFrom(final JsonSource input) throws + IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 82126: { + if (input.isAtField(FieldNames.sId)) { + if (!input.trySkipNullValue()) { + sId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 65074912: { + if (input.isAtField(FieldNames.chess)) { + if (!input.trySkipNullValue()) { + input.readMessage(chess); + 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 SoldierEffectLeftmostWaitingChessChange clone() { + return new SoldierEffectLeftmostWaitingChessChange().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierEffectLeftmostWaitingChessChange parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierEffectLeftmostWaitingChessChange(), data).checkInitialized(); + } + + public static SoldierEffectLeftmostWaitingChessChange parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new SoldierEffectLeftmostWaitingChessChange(), input).checkInitialized(); + } + + public static SoldierEffectLeftmostWaitingChessChange parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new SoldierEffectLeftmostWaitingChessChange(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierEffectLeftmostWaitingChessChange messages + */ + public static MessageFactory getFactory() { + return SoldierEffectLeftmostWaitingChessChangeFactory.INSTANCE; + } + + private enum SoldierEffectLeftmostWaitingChessChangeFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierEffectLeftmostWaitingChessChange create() { + return SoldierEffectLeftmostWaitingChessChange.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName sId = FieldName.forField("SId"); + + static final FieldName chess = FieldName.forField("Chess"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code SoldierShopRandomChessBecomeAnotherHigherCost} + */ + public static final class SoldierShopRandomChessBecomeAnotherHigherCost extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 GoodsIdx = 1; + */ + private int goodsIdx; + + /** + * optional .SoldierGoods Goods = 2; + */ + private final SoldierGoods goods = SoldierGoods.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private SoldierShopRandomChessBecomeAnotherHigherCost() { + } + + /** + * @return a new empty instance of {@code SoldierShopRandomChessBecomeAnotherHigherCost} + */ + public static SoldierShopRandomChessBecomeAnotherHigherCost newInstance() { + return new SoldierShopRandomChessBecomeAnotherHigherCost(); + } + + /** + * optional uint32 GoodsIdx = 1; + * @return whether the goodsIdx field is set + */ + public boolean hasGoodsIdx() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 GoodsIdx = 1; + * @return this + */ + public SoldierShopRandomChessBecomeAnotherHigherCost clearGoodsIdx() { + bitField0_ &= ~0x00000001; + goodsIdx = 0; + return this; + } + + /** + * optional uint32 GoodsIdx = 1; + * @return the goodsIdx + */ + public int getGoodsIdx() { + return goodsIdx; + } + + /** + * optional uint32 GoodsIdx = 1; + * @param value the goodsIdx to set + * @return this + */ + public SoldierShopRandomChessBecomeAnotherHigherCost setGoodsIdx(final int value) { + bitField0_ |= 0x00000001; + goodsIdx = value; + return this; + } + + /** + * optional .SoldierGoods Goods = 2; + * @return whether the goods field is set + */ + public boolean hasGoods() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .SoldierGoods Goods = 2; + * @return this + */ + public SoldierShopRandomChessBecomeAnotherHigherCost clearGoods() { + bitField0_ &= ~0x00000002; + goods.clear(); + return this; + } + + /** + * optional .SoldierGoods Goods = 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 #getMutableGoods()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SoldierGoods getGoods() { + return goods; + } + + /** + * optional .SoldierGoods Goods = 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 SoldierGoods getMutableGoods() { + bitField0_ |= 0x00000002; + return goods; + } + + /** + * optional .SoldierGoods Goods = 2; + * @param value the goods to set + * @return this + */ + public SoldierShopRandomChessBecomeAnotherHigherCost setGoods(final SoldierGoods value) { + bitField0_ |= 0x00000002; + goods.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 SoldierShopRandomChessBecomeAnotherHigherCost 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 SoldierShopRandomChessBecomeAnotherHigherCost addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierShopRandomChessBecomeAnotherHigherCost addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierShopRandomChessBecomeAnotherHigherCost setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + @Override + public SoldierShopRandomChessBecomeAnotherHigherCost copyFrom( + final SoldierShopRandomChessBecomeAnotherHigherCost other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + goodsIdx = other.goodsIdx; + goods.copyFrom(other.goods); + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierShopRandomChessBecomeAnotherHigherCost mergeFrom( + final SoldierShopRandomChessBecomeAnotherHigherCost other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasGoodsIdx()) { + setGoodsIdx(other.goodsIdx); + } + if (other.hasGoods()) { + getMutableGoods().mergeFrom(other.goods); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierShopRandomChessBecomeAnotherHigherCost clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + goodsIdx = 0; + goods.clear(); + nextPackage.clear(); + return this; + } + + @Override + public SoldierShopRandomChessBecomeAnotherHigherCost clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + goods.clearQuick(); + nextPackage.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SoldierShopRandomChessBecomeAnotherHigherCost)) { + return false; + } + SoldierShopRandomChessBecomeAnotherHigherCost other = (SoldierShopRandomChessBecomeAnotherHigherCost) o; + return bitField0_ == other.bitField0_ + && (!hasGoodsIdx() || goodsIdx == other.goodsIdx) + && (!hasGoods() || goods.equals(other.goods)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(goodsIdx); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(goods); + } + 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(goodsIdx); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(goods); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierShopRandomChessBecomeAnotherHigherCost mergeFrom(final ProtoSource input) throws + IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // goodsIdx + goodsIdx = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // goods + input.readMessage(goods); + 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.goodsIdx, goodsIdx); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.goods, goods); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public SoldierShopRandomChessBecomeAnotherHigherCost mergeFrom(final JsonSource input) throws + IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -2107137113: { + if (input.isAtField(FieldNames.goodsIdx)) { + if (!input.trySkipNullValue()) { + goodsIdx = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 68986678: { + if (input.isAtField(FieldNames.goods)) { + if (!input.trySkipNullValue()) { + input.readMessage(goods); + 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 SoldierShopRandomChessBecomeAnotherHigherCost clone() { + return new SoldierShopRandomChessBecomeAnotherHigherCost().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierShopRandomChessBecomeAnotherHigherCost parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierShopRandomChessBecomeAnotherHigherCost(), data).checkInitialized(); + } + + public static SoldierShopRandomChessBecomeAnotherHigherCost parseFrom(final ProtoSource input) + throws IOException { + return ProtoMessage.mergeFrom(new SoldierShopRandomChessBecomeAnotherHigherCost(), input).checkInitialized(); + } + + public static SoldierShopRandomChessBecomeAnotherHigherCost parseFrom(final JsonSource input) + throws IOException { + return ProtoMessage.mergeFrom(new SoldierShopRandomChessBecomeAnotherHigherCost(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierShopRandomChessBecomeAnotherHigherCost messages + */ + public static MessageFactory getFactory() { + return SoldierShopRandomChessBecomeAnotherHigherCostFactory.INSTANCE; + } + + private enum SoldierShopRandomChessBecomeAnotherHigherCostFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierShopRandomChessBecomeAnotherHigherCost create() { + return SoldierShopRandomChessBecomeAnotherHigherCost.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName goodsIdx = FieldName.forField("GoodsIdx"); + + static final FieldName goods = FieldName.forField("Goods"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code SoldierEffectPartnerAdditional} + */ + public static final class SoldierEffectPartnerAdditional extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 PartnerType = 2; + */ + private int partnerType; + + /** + * optional uint32 Additional = 3; + */ + private int additional; + + /** + * optional .SoldierEffectStatus Status = 1; + */ + private int status; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private SoldierEffectPartnerAdditional() { + } + + /** + * @return a new empty instance of {@code SoldierEffectPartnerAdditional} + */ + public static SoldierEffectPartnerAdditional newInstance() { + return new SoldierEffectPartnerAdditional(); + } + + /** + * optional uint32 PartnerType = 2; + * @return whether the partnerType field is set + */ + public boolean hasPartnerType() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 PartnerType = 2; + * @return this + */ + public SoldierEffectPartnerAdditional clearPartnerType() { + bitField0_ &= ~0x00000001; + partnerType = 0; + return this; + } + + /** + * optional uint32 PartnerType = 2; + * @return the partnerType + */ + public int getPartnerType() { + return partnerType; + } + + /** + * optional uint32 PartnerType = 2; + * @param value the partnerType to set + * @return this + */ + public SoldierEffectPartnerAdditional setPartnerType(final int value) { + bitField0_ |= 0x00000001; + partnerType = value; + return this; + } + + /** + * optional uint32 Additional = 3; + * @return whether the additional field is set + */ + public boolean hasAdditional() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 Additional = 3; + * @return this + */ + public SoldierEffectPartnerAdditional clearAdditional() { + bitField0_ &= ~0x00000002; + additional = 0; + return this; + } + + /** + * optional uint32 Additional = 3; + * @return the additional + */ + public int getAdditional() { + return additional; + } + + /** + * optional uint32 Additional = 3; + * @param value the additional to set + * @return this + */ + public SoldierEffectPartnerAdditional setAdditional(final int value) { + bitField0_ |= 0x00000002; + additional = value; + return this; + } + + /** + * optional .SoldierEffectStatus Status = 1; + * @return whether the status field is set + */ + public boolean hasStatus() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .SoldierEffectStatus Status = 1; + * @return this + */ + public SoldierEffectPartnerAdditional clearStatus() { + bitField0_ &= ~0x00000004; + status = 0; + return this; + } + + /** + * optional .SoldierEffectStatus Status = 1; + * @return the status + */ + public SoldierEffectStatus getStatus() { + return SoldierEffectStatus.forNumber(status); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link SoldierEffectPartnerAdditional#getStatus()}.getNumber(). + * + * @return numeric wire representation + */ + public int getStatusValue() { + return status; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link SoldierEffectStatus}. Setting an invalid value + * can cause {@link SoldierEffectPartnerAdditional#getStatus()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public SoldierEffectPartnerAdditional setStatusValue(final int value) { + bitField0_ |= 0x00000004; + status = value; + return this; + } + + /** + * optional .SoldierEffectStatus Status = 1; + * @param value the status to set + * @return this + */ + public SoldierEffectPartnerAdditional setStatus(final SoldierEffectStatus value) { + bitField0_ |= 0x00000004; + status = value.getNumber(); + 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 SoldierEffectPartnerAdditional 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 SoldierEffectPartnerAdditional addNextPackage(final byte value) { + bitField0_ |= 0x00000008; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierEffectPartnerAdditional addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierEffectPartnerAdditional setNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.copyFrom(values); + return this; + } + + @Override + public SoldierEffectPartnerAdditional copyFrom(final SoldierEffectPartnerAdditional other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + partnerType = other.partnerType; + additional = other.additional; + status = other.status; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierEffectPartnerAdditional mergeFrom(final SoldierEffectPartnerAdditional other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasPartnerType()) { + setPartnerType(other.partnerType); + } + if (other.hasAdditional()) { + setAdditional(other.additional); + } + if (other.hasStatus()) { + setStatusValue(other.status); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierEffectPartnerAdditional clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + partnerType = 0; + additional = 0; + status = 0; + nextPackage.clear(); + return this; + } + + @Override + public SoldierEffectPartnerAdditional 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 SoldierEffectPartnerAdditional)) { + return false; + } + SoldierEffectPartnerAdditional other = (SoldierEffectPartnerAdditional) o; + return bitField0_ == other.bitField0_ + && (!hasPartnerType() || partnerType == other.partnerType) + && (!hasAdditional() || additional == other.additional) + && (!hasStatus() || status == other.status) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(partnerType); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(additional); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 8); + output.writeEnumNoTag(status); + } + 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(partnerType); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(additional); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(status); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierEffectPartnerAdditional mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // partnerType + partnerType = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // additional + additional = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 8) { + break; + } + } + case 8: { + // status + final int value = input.readInt32(); + if (SoldierEffectStatus.forNumber(value) != null) { + status = value; + 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.partnerType, partnerType); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.additional, additional); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeEnum(FieldNames.status, status, SoldierEffectStatus.converter()); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public SoldierEffectPartnerAdditional mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1652366334: { + if (input.isAtField(FieldNames.partnerType)) { + if (!input.trySkipNullValue()) { + partnerType = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 62051399: { + if (input.isAtField(FieldNames.additional)) { + if (!input.trySkipNullValue()) { + additional = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1808614382: { + if (input.isAtField(FieldNames.status)) { + if (!input.trySkipNullValue()) { + final SoldierEffectStatus value = input.readEnum(SoldierEffectStatus.converter()); + if (value != null) { + status = value.getNumber(); + bitField0_ |= 0x00000004; + } else { + input.skipUnknownEnumValue(); + } + } + } 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 SoldierEffectPartnerAdditional clone() { + return new SoldierEffectPartnerAdditional().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierEffectPartnerAdditional parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierEffectPartnerAdditional(), data).checkInitialized(); + } + + public static SoldierEffectPartnerAdditional parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new SoldierEffectPartnerAdditional(), input).checkInitialized(); + } + + public static SoldierEffectPartnerAdditional parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new SoldierEffectPartnerAdditional(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierEffectPartnerAdditional messages + */ + public static MessageFactory getFactory() { + return SoldierEffectPartnerAdditionalFactory.INSTANCE; + } + + private enum SoldierEffectPartnerAdditionalFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierEffectPartnerAdditional create() { + return SoldierEffectPartnerAdditional.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName partnerType = FieldName.forField("PartnerType"); + + static final FieldName additional = FieldName.forField("Additional"); + + static final FieldName status = FieldName.forField("Status"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code SoldierEffectPartnerActivateAdditional} + */ + public static final class SoldierEffectPartnerActivateAdditional extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Additional = 2; + */ + private int additional; + + /** + * optional .SoldierEffectStatus Status = 1; + */ + private int status; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private SoldierEffectPartnerActivateAdditional() { + } + + /** + * @return a new empty instance of {@code SoldierEffectPartnerActivateAdditional} + */ + public static SoldierEffectPartnerActivateAdditional newInstance() { + return new SoldierEffectPartnerActivateAdditional(); + } + + /** + * optional uint32 Additional = 2; + * @return whether the additional field is set + */ + public boolean hasAdditional() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 Additional = 2; + * @return this + */ + public SoldierEffectPartnerActivateAdditional clearAdditional() { + bitField0_ &= ~0x00000001; + additional = 0; + return this; + } + + /** + * optional uint32 Additional = 2; + * @return the additional + */ + public int getAdditional() { + return additional; + } + + /** + * optional uint32 Additional = 2; + * @param value the additional to set + * @return this + */ + public SoldierEffectPartnerActivateAdditional setAdditional(final int value) { + bitField0_ |= 0x00000001; + additional = value; + return this; + } + + /** + * optional .SoldierEffectStatus Status = 1; + * @return whether the status field is set + */ + public boolean hasStatus() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .SoldierEffectStatus Status = 1; + * @return this + */ + public SoldierEffectPartnerActivateAdditional clearStatus() { + bitField0_ &= ~0x00000002; + status = 0; + return this; + } + + /** + * optional .SoldierEffectStatus Status = 1; + * @return the status + */ + public SoldierEffectStatus getStatus() { + return SoldierEffectStatus.forNumber(status); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link SoldierEffectPartnerActivateAdditional#getStatus()}.getNumber(). + * + * @return numeric wire representation + */ + public int getStatusValue() { + return status; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link SoldierEffectStatus}. Setting an invalid value + * can cause {@link SoldierEffectPartnerActivateAdditional#getStatus()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public SoldierEffectPartnerActivateAdditional setStatusValue(final int value) { + bitField0_ |= 0x00000002; + status = value; + return this; + } + + /** + * optional .SoldierEffectStatus Status = 1; + * @param value the status to set + * @return this + */ + public SoldierEffectPartnerActivateAdditional setStatus(final SoldierEffectStatus value) { + bitField0_ |= 0x00000002; + status = value.getNumber(); + 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 SoldierEffectPartnerActivateAdditional 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 SoldierEffectPartnerActivateAdditional addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierEffectPartnerActivateAdditional addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierEffectPartnerActivateAdditional setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + @Override + public SoldierEffectPartnerActivateAdditional copyFrom( + final SoldierEffectPartnerActivateAdditional other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + additional = other.additional; + status = other.status; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierEffectPartnerActivateAdditional mergeFrom( + final SoldierEffectPartnerActivateAdditional other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasAdditional()) { + setAdditional(other.additional); + } + if (other.hasStatus()) { + setStatusValue(other.status); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierEffectPartnerActivateAdditional clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + additional = 0; + status = 0; + nextPackage.clear(); + return this; + } + + @Override + public SoldierEffectPartnerActivateAdditional 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 SoldierEffectPartnerActivateAdditional)) { + return false; + } + SoldierEffectPartnerActivateAdditional other = (SoldierEffectPartnerActivateAdditional) o; + return bitField0_ == other.bitField0_ + && (!hasAdditional() || additional == other.additional) + && (!hasStatus() || status == other.status) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(additional); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 8); + output.writeEnumNoTag(status); + } + 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(additional); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(status); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierEffectPartnerActivateAdditional mergeFrom(final ProtoSource input) throws + IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // additional + additional = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 8) { + break; + } + } + case 8: { + // status + final int value = input.readInt32(); + if (SoldierEffectStatus.forNumber(value) != null) { + status = value; + 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.additional, additional); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeEnum(FieldNames.status, status, SoldierEffectStatus.converter()); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public SoldierEffectPartnerActivateAdditional mergeFrom(final JsonSource input) throws + IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 62051399: { + if (input.isAtField(FieldNames.additional)) { + if (!input.trySkipNullValue()) { + additional = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1808614382: { + if (input.isAtField(FieldNames.status)) { + if (!input.trySkipNullValue()) { + final SoldierEffectStatus value = input.readEnum(SoldierEffectStatus.converter()); + if (value != null) { + status = value.getNumber(); + bitField0_ |= 0x00000002; + } else { + input.skipUnknownEnumValue(); + } + } + } 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 SoldierEffectPartnerActivateAdditional clone() { + return new SoldierEffectPartnerActivateAdditional().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierEffectPartnerActivateAdditional parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierEffectPartnerActivateAdditional(), data).checkInitialized(); + } + + public static SoldierEffectPartnerActivateAdditional parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new SoldierEffectPartnerActivateAdditional(), input).checkInitialized(); + } + + public static SoldierEffectPartnerActivateAdditional parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new SoldierEffectPartnerActivateAdditional(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierEffectPartnerActivateAdditional messages + */ + public static MessageFactory getFactory() { + return SoldierEffectPartnerActivateAdditionalFactory.INSTANCE; + } + + private enum SoldierEffectPartnerActivateAdditionalFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierEffectPartnerActivateAdditional create() { + return SoldierEffectPartnerActivateAdditional.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName additional = FieldName.forField("Additional"); + + static final FieldName status = FieldName.forField("Status"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code SoldierNodeTypeModify} + */ + public static final class SoldierNodeTypeModify extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 FromNodeType = 2; + */ + private int fromNodeType; + + /** + * optional uint32 ToNodeType = 3; + */ + private int toNodeType; + + /** + * optional uint32 EventPoolId = 4; + */ + private int eventPoolId; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private SoldierNodeTypeModify() { + } + + /** + * @return a new empty instance of {@code SoldierNodeTypeModify} + */ + public static SoldierNodeTypeModify newInstance() { + return new SoldierNodeTypeModify(); + } + + /** + * optional uint32 FromNodeType = 2; + * @return whether the fromNodeType field is set + */ + public boolean hasFromNodeType() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 FromNodeType = 2; + * @return this + */ + public SoldierNodeTypeModify clearFromNodeType() { + bitField0_ &= ~0x00000001; + fromNodeType = 0; + return this; + } + + /** + * optional uint32 FromNodeType = 2; + * @return the fromNodeType + */ + public int getFromNodeType() { + return fromNodeType; + } + + /** + * optional uint32 FromNodeType = 2; + * @param value the fromNodeType to set + * @return this + */ + public SoldierNodeTypeModify setFromNodeType(final int value) { + bitField0_ |= 0x00000001; + fromNodeType = value; + return this; + } + + /** + * optional uint32 ToNodeType = 3; + * @return whether the toNodeType field is set + */ + public boolean hasToNodeType() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 ToNodeType = 3; + * @return this + */ + public SoldierNodeTypeModify clearToNodeType() { + bitField0_ &= ~0x00000002; + toNodeType = 0; + return this; + } + + /** + * optional uint32 ToNodeType = 3; + * @return the toNodeType + */ + public int getToNodeType() { + return toNodeType; + } + + /** + * optional uint32 ToNodeType = 3; + * @param value the toNodeType to set + * @return this + */ + public SoldierNodeTypeModify setToNodeType(final int value) { + bitField0_ |= 0x00000002; + toNodeType = value; + return this; + } + + /** + * optional uint32 EventPoolId = 4; + * @return whether the eventPoolId field is set + */ + public boolean hasEventPoolId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 EventPoolId = 4; + * @return this + */ + public SoldierNodeTypeModify clearEventPoolId() { + bitField0_ &= ~0x00000004; + eventPoolId = 0; + return this; + } + + /** + * optional uint32 EventPoolId = 4; + * @return the eventPoolId + */ + public int getEventPoolId() { + return eventPoolId; + } + + /** + * optional uint32 EventPoolId = 4; + * @param value the eventPoolId to set + * @return this + */ + public SoldierNodeTypeModify setEventPoolId(final int value) { + bitField0_ |= 0x00000004; + eventPoolId = 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 SoldierNodeTypeModify 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 SoldierNodeTypeModify addNextPackage(final byte value) { + bitField0_ |= 0x00000008; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierNodeTypeModify addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierNodeTypeModify setNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.copyFrom(values); + return this; + } + + @Override + public SoldierNodeTypeModify copyFrom(final SoldierNodeTypeModify other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + fromNodeType = other.fromNodeType; + toNodeType = other.toNodeType; + eventPoolId = other.eventPoolId; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierNodeTypeModify mergeFrom(final SoldierNodeTypeModify other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasFromNodeType()) { + setFromNodeType(other.fromNodeType); + } + if (other.hasToNodeType()) { + setToNodeType(other.toNodeType); + } + if (other.hasEventPoolId()) { + setEventPoolId(other.eventPoolId); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierNodeTypeModify clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + fromNodeType = 0; + toNodeType = 0; + eventPoolId = 0; + nextPackage.clear(); + return this; + } + + @Override + public SoldierNodeTypeModify 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 SoldierNodeTypeModify)) { + return false; + } + SoldierNodeTypeModify other = (SoldierNodeTypeModify) o; + return bitField0_ == other.bitField0_ + && (!hasFromNodeType() || fromNodeType == other.fromNodeType) + && (!hasToNodeType() || toNodeType == other.toNodeType) + && (!hasEventPoolId() || eventPoolId == other.eventPoolId) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(fromNodeType); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(toNodeType); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(eventPoolId); + } + 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(fromNodeType); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(toNodeType); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(eventPoolId); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierNodeTypeModify mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // fromNodeType + fromNodeType = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // toNodeType + toNodeType = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // eventPoolId + eventPoolId = 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.fromNodeType, fromNodeType); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.toNodeType, toNodeType); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.eventPoolId, eventPoolId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public SoldierNodeTypeModify mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1137613242: { + if (input.isAtField(FieldNames.fromNodeType)) { + if (!input.trySkipNullValue()) { + fromNodeType = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1198488553: { + if (input.isAtField(FieldNames.toNodeType)) { + if (!input.trySkipNullValue()) { + toNodeType = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1684419953: { + if (input.isAtField(FieldNames.eventPoolId)) { + if (!input.trySkipNullValue()) { + eventPoolId = 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 SoldierNodeTypeModify clone() { + return new SoldierNodeTypeModify().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierNodeTypeModify parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierNodeTypeModify(), data).checkInitialized(); + } + + public static SoldierNodeTypeModify parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierNodeTypeModify(), input).checkInitialized(); + } + + public static SoldierNodeTypeModify parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierNodeTypeModify(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierNodeTypeModify messages + */ + public static MessageFactory getFactory() { + return SoldierNodeTypeModifyFactory.INSTANCE; + } + + private enum SoldierNodeTypeModifyFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierNodeTypeModify create() { + return SoldierNodeTypeModify.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName fromNodeType = FieldName.forField("FromNodeType"); + + static final FieldName toNodeType = FieldName.forField("ToNodeType"); + + static final FieldName eventPoolId = FieldName.forField("EventPoolId"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code SoldierClientEffect} + */ + public static final class SoldierClientEffect extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional int32 UseCount = 3; + */ + private int useCount; + + /** + * optional uint32 Eid = 2; + */ + private int eid; + + /** + * optional .SoldierEffectStatus Status = 1; + */ + private int status; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private SoldierClientEffect() { + } + + /** + * @return a new empty instance of {@code SoldierClientEffect} + */ + public static SoldierClientEffect newInstance() { + return new SoldierClientEffect(); + } + + /** + * optional int32 UseCount = 3; + * @return whether the useCount field is set + */ + public boolean hasUseCount() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional int32 UseCount = 3; + * @return this + */ + public SoldierClientEffect clearUseCount() { + bitField0_ &= ~0x00000001; + useCount = 0; + return this; + } + + /** + * optional int32 UseCount = 3; + * @return the useCount + */ + public int getUseCount() { + return useCount; + } + + /** + * optional int32 UseCount = 3; + * @param value the useCount to set + * @return this + */ + public SoldierClientEffect setUseCount(final int value) { + bitField0_ |= 0x00000001; + useCount = value; + return this; + } + + /** + * optional uint32 Eid = 2; + * @return whether the eid field is set + */ + public boolean hasEid() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 Eid = 2; + * @return this + */ + public SoldierClientEffect clearEid() { + bitField0_ &= ~0x00000002; + eid = 0; + return this; + } + + /** + * optional uint32 Eid = 2; + * @return the eid + */ + public int getEid() { + return eid; + } + + /** + * optional uint32 Eid = 2; + * @param value the eid to set + * @return this + */ + public SoldierClientEffect setEid(final int value) { + bitField0_ |= 0x00000002; + eid = value; + return this; + } + + /** + * optional .SoldierEffectStatus Status = 1; + * @return whether the status field is set + */ + public boolean hasStatus() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .SoldierEffectStatus Status = 1; + * @return this + */ + public SoldierClientEffect clearStatus() { + bitField0_ &= ~0x00000004; + status = 0; + return this; + } + + /** + * optional .SoldierEffectStatus Status = 1; + * @return the status + */ + public SoldierEffectStatus getStatus() { + return SoldierEffectStatus.forNumber(status); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link SoldierClientEffect#getStatus()}.getNumber(). + * + * @return numeric wire representation + */ + public int getStatusValue() { + return status; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link SoldierEffectStatus}. Setting an invalid value + * can cause {@link SoldierClientEffect#getStatus()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public SoldierClientEffect setStatusValue(final int value) { + bitField0_ |= 0x00000004; + status = value; + return this; + } + + /** + * optional .SoldierEffectStatus Status = 1; + * @param value the status to set + * @return this + */ + public SoldierClientEffect setStatus(final SoldierEffectStatus value) { + bitField0_ |= 0x00000004; + status = value.getNumber(); + 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 SoldierClientEffect 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 SoldierClientEffect addNextPackage(final byte value) { + bitField0_ |= 0x00000008; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierClientEffect addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierClientEffect setNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.copyFrom(values); + return this; + } + + @Override + public SoldierClientEffect copyFrom(final SoldierClientEffect other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + useCount = other.useCount; + eid = other.eid; + status = other.status; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierClientEffect mergeFrom(final SoldierClientEffect other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasUseCount()) { + setUseCount(other.useCount); + } + if (other.hasEid()) { + setEid(other.eid); + } + if (other.hasStatus()) { + setStatusValue(other.status); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierClientEffect clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + useCount = 0; + eid = 0; + status = 0; + nextPackage.clear(); + return this; + } + + @Override + public SoldierClientEffect 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 SoldierClientEffect)) { + return false; + } + SoldierClientEffect other = (SoldierClientEffect) o; + return bitField0_ == other.bitField0_ + && (!hasUseCount() || useCount == other.useCount) + && (!hasEid() || eid == other.eid) + && (!hasStatus() || status == other.status) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 24); + output.writeInt32NoTag(useCount); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(eid); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 8); + output.writeEnumNoTag(status); + } + 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.computeInt32SizeNoTag(useCount); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(eid); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(status); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierClientEffect mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 24: { + // useCount + useCount = input.readInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // eid + eid = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 8) { + break; + } + } + case 8: { + // status + final int value = input.readInt32(); + if (SoldierEffectStatus.forNumber(value) != null) { + status = value; + 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.writeInt32(FieldNames.useCount, useCount); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.eid, eid); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeEnum(FieldNames.status, status, SoldierEffectStatus.converter()); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public SoldierClientEffect mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -244425752: { + if (input.isAtField(FieldNames.useCount)) { + if (!input.trySkipNullValue()) { + useCount = input.readInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 69664: { + if (input.isAtField(FieldNames.eid)) { + if (!input.trySkipNullValue()) { + eid = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1808614382: { + if (input.isAtField(FieldNames.status)) { + if (!input.trySkipNullValue()) { + final SoldierEffectStatus value = input.readEnum(SoldierEffectStatus.converter()); + if (value != null) { + status = value.getNumber(); + bitField0_ |= 0x00000004; + } else { + input.skipUnknownEnumValue(); + } + } + } 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 SoldierClientEffect clone() { + return new SoldierClientEffect().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierClientEffect parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierClientEffect(), data).checkInitialized(); + } + + public static SoldierClientEffect parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierClientEffect(), input).checkInitialized(); + } + + public static SoldierClientEffect parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierClientEffect(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierClientEffect messages + */ + public static MessageFactory getFactory() { + return SoldierClientEffectFactory.INSTANCE; + } + + private enum SoldierClientEffectFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierClientEffect create() { + return SoldierClientEffect.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName useCount = FieldName.forField("UseCount"); + + static final FieldName eid = FieldName.forField("Eid"); + + static final FieldName status = FieldName.forField("Status"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code SoldierShopRefreshState} + */ + public static final class SoldierShopRefreshState extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional bool DisableRefresh = 1; + */ + private boolean disableRefresh; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private SoldierShopRefreshState() { + } + + /** + * @return a new empty instance of {@code SoldierShopRefreshState} + */ + public static SoldierShopRefreshState newInstance() { + return new SoldierShopRefreshState(); + } + + /** + * optional bool DisableRefresh = 1; + * @return whether the disableRefresh field is set + */ + public boolean hasDisableRefresh() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional bool DisableRefresh = 1; + * @return this + */ + public SoldierShopRefreshState clearDisableRefresh() { + bitField0_ &= ~0x00000001; + disableRefresh = false; + return this; + } + + /** + * optional bool DisableRefresh = 1; + * @return the disableRefresh + */ + public boolean getDisableRefresh() { + return disableRefresh; + } + + /** + * optional bool DisableRefresh = 1; + * @param value the disableRefresh to set + * @return this + */ + public SoldierShopRefreshState setDisableRefresh(final boolean value) { + bitField0_ |= 0x00000001; + disableRefresh = 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 SoldierShopRefreshState 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 SoldierShopRefreshState addNextPackage(final byte value) { + bitField0_ |= 0x00000002; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierShopRefreshState addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierShopRefreshState setNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.copyFrom(values); + return this; + } + + @Override + public SoldierShopRefreshState copyFrom(final SoldierShopRefreshState other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + disableRefresh = other.disableRefresh; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierShopRefreshState mergeFrom(final SoldierShopRefreshState other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasDisableRefresh()) { + setDisableRefresh(other.disableRefresh); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierShopRefreshState clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + disableRefresh = false; + nextPackage.clear(); + return this; + } + + @Override + public SoldierShopRefreshState 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 SoldierShopRefreshState)) { + return false; + } + SoldierShopRefreshState other = (SoldierShopRefreshState) o; + return bitField0_ == other.bitField0_ + && (!hasDisableRefresh() || disableRefresh == other.disableRefresh) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeBoolNoTag(disableRefresh); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierShopRefreshState mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // disableRefresh + disableRefresh = input.readBool(); + 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.writeBool(FieldNames.disableRefresh, disableRefresh); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public SoldierShopRefreshState mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1658470131: { + if (input.isAtField(FieldNames.disableRefresh)) { + if (!input.trySkipNullValue()) { + disableRefresh = input.readBool(); + 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 SoldierShopRefreshState clone() { + return new SoldierShopRefreshState().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierShopRefreshState parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierShopRefreshState(), data).checkInitialized(); + } + + public static SoldierShopRefreshState parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierShopRefreshState(), input).checkInitialized(); + } + + public static SoldierShopRefreshState parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierShopRefreshState(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierShopRefreshState messages + */ + public static MessageFactory getFactory() { + return SoldierShopRefreshStateFactory.INSTANCE; + } + + private enum SoldierShopRefreshStateFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierShopRefreshState create() { + return SoldierShopRefreshState.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName disableRefresh = FieldName.forField("DisableRefresh"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code SoldierShopPurchaseState} + */ + public static final class SoldierShopPurchaseState extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional bool DisablePurchase = 1; + */ + private boolean disablePurchase; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private SoldierShopPurchaseState() { + } + + /** + * @return a new empty instance of {@code SoldierShopPurchaseState} + */ + public static SoldierShopPurchaseState newInstance() { + return new SoldierShopPurchaseState(); + } + + /** + * optional bool DisablePurchase = 1; + * @return whether the disablePurchase field is set + */ + public boolean hasDisablePurchase() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional bool DisablePurchase = 1; + * @return this + */ + public SoldierShopPurchaseState clearDisablePurchase() { + bitField0_ &= ~0x00000001; + disablePurchase = false; + return this; + } + + /** + * optional bool DisablePurchase = 1; + * @return the disablePurchase + */ + public boolean getDisablePurchase() { + return disablePurchase; + } + + /** + * optional bool DisablePurchase = 1; + * @param value the disablePurchase to set + * @return this + */ + public SoldierShopPurchaseState setDisablePurchase(final boolean value) { + bitField0_ |= 0x00000001; + disablePurchase = 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 SoldierShopPurchaseState 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 SoldierShopPurchaseState addNextPackage(final byte value) { + bitField0_ |= 0x00000002; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierShopPurchaseState addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierShopPurchaseState setNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.copyFrom(values); + return this; + } + + @Override + public SoldierShopPurchaseState copyFrom(final SoldierShopPurchaseState other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + disablePurchase = other.disablePurchase; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierShopPurchaseState mergeFrom(final SoldierShopPurchaseState other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasDisablePurchase()) { + setDisablePurchase(other.disablePurchase); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierShopPurchaseState clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + disablePurchase = false; + nextPackage.clear(); + return this; + } + + @Override + public SoldierShopPurchaseState 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 SoldierShopPurchaseState)) { + return false; + } + SoldierShopPurchaseState other = (SoldierShopPurchaseState) o; + return bitField0_ == other.bitField0_ + && (!hasDisablePurchase() || disablePurchase == other.disablePurchase) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeBoolNoTag(disablePurchase); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierShopPurchaseState mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // disablePurchase + disablePurchase = input.readBool(); + 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.writeBool(FieldNames.disablePurchase, disablePurchase); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public SoldierShopPurchaseState mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1967727639: { + if (input.isAtField(FieldNames.disablePurchase)) { + if (!input.trySkipNullValue()) { + disablePurchase = input.readBool(); + 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 SoldierShopPurchaseState clone() { + return new SoldierShopPurchaseState().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierShopPurchaseState parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierShopPurchaseState(), data).checkInitialized(); + } + + public static SoldierShopPurchaseState parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierShopPurchaseState(), input).checkInitialized(); + } + + public static SoldierShopPurchaseState parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierShopPurchaseState(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierShopPurchaseState messages + */ + public static MessageFactory getFactory() { + return SoldierShopPurchaseStateFactory.INSTANCE; + } + + private enum SoldierShopPurchaseStateFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierShopPurchaseState create() { + return SoldierShopPurchaseState.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName disablePurchase = FieldName.forField("DisablePurchase"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code SoldierShopFreeState} + */ + public static final class SoldierShopFreeState extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Free = 2; + */ + private int free; + + /** + * optional .SoldierEffectStatus Status = 1; + */ + private int status; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private SoldierShopFreeState() { + } + + /** + * @return a new empty instance of {@code SoldierShopFreeState} + */ + public static SoldierShopFreeState newInstance() { + return new SoldierShopFreeState(); + } + + /** + * optional uint32 Free = 2; + * @return whether the free field is set + */ + public boolean hasFree() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 Free = 2; + * @return this + */ + public SoldierShopFreeState clearFree() { + bitField0_ &= ~0x00000001; + free = 0; + return this; + } + + /** + * optional uint32 Free = 2; + * @return the free + */ + public int getFree() { + return free; + } + + /** + * optional uint32 Free = 2; + * @param value the free to set + * @return this + */ + public SoldierShopFreeState setFree(final int value) { + bitField0_ |= 0x00000001; + free = value; + return this; + } + + /** + * optional .SoldierEffectStatus Status = 1; + * @return whether the status field is set + */ + public boolean hasStatus() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .SoldierEffectStatus Status = 1; + * @return this + */ + public SoldierShopFreeState clearStatus() { + bitField0_ &= ~0x00000002; + status = 0; + return this; + } + + /** + * optional .SoldierEffectStatus Status = 1; + * @return the status + */ + public SoldierEffectStatus getStatus() { + return SoldierEffectStatus.forNumber(status); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link SoldierShopFreeState#getStatus()}.getNumber(). + * + * @return numeric wire representation + */ + public int getStatusValue() { + return status; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link SoldierEffectStatus}. Setting an invalid value + * can cause {@link SoldierShopFreeState#getStatus()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public SoldierShopFreeState setStatusValue(final int value) { + bitField0_ |= 0x00000002; + status = value; + return this; + } + + /** + * optional .SoldierEffectStatus Status = 1; + * @param value the status to set + * @return this + */ + public SoldierShopFreeState setStatus(final SoldierEffectStatus value) { + bitField0_ |= 0x00000002; + status = value.getNumber(); + 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 SoldierShopFreeState 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 SoldierShopFreeState addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierShopFreeState addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierShopFreeState setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + @Override + public SoldierShopFreeState copyFrom(final SoldierShopFreeState other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + free = other.free; + status = other.status; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierShopFreeState mergeFrom(final SoldierShopFreeState other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasFree()) { + setFree(other.free); + } + if (other.hasStatus()) { + setStatusValue(other.status); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierShopFreeState clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + free = 0; + status = 0; + nextPackage.clear(); + return this; + } + + @Override + public SoldierShopFreeState 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 SoldierShopFreeState)) { + return false; + } + SoldierShopFreeState other = (SoldierShopFreeState) o; + return bitField0_ == other.bitField0_ + && (!hasFree() || free == other.free) + && (!hasStatus() || status == other.status) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(free); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 8); + output.writeEnumNoTag(status); + } + 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(free); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(status); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierShopFreeState mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // free + free = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 8) { + break; + } + } + case 8: { + // status + final int value = input.readInt32(); + if (SoldierEffectStatus.forNumber(value) != null) { + status = value; + 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.free, free); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeEnum(FieldNames.status, status, SoldierEffectStatus.converter()); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public SoldierShopFreeState mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 2198156: { + if (input.isAtField(FieldNames.free)) { + if (!input.trySkipNullValue()) { + free = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1808614382: { + if (input.isAtField(FieldNames.status)) { + if (!input.trySkipNullValue()) { + final SoldierEffectStatus value = input.readEnum(SoldierEffectStatus.converter()); + if (value != null) { + status = value.getNumber(); + bitField0_ |= 0x00000002; + } else { + input.skipUnknownEnumValue(); + } + } + } 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 SoldierShopFreeState clone() { + return new SoldierShopFreeState().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierShopFreeState parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierShopFreeState(), data).checkInitialized(); + } + + public static SoldierShopFreeState parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierShopFreeState(), input).checkInitialized(); + } + + public static SoldierShopFreeState parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierShopFreeState(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierShopFreeState messages + */ + public static MessageFactory getFactory() { + return SoldierShopFreeStateFactory.INSTANCE; + } + + private enum SoldierShopFreeStateFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierShopFreeState create() { + return SoldierShopFreeState.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName free = FieldName.forField("Free"); + + static final FieldName status = FieldName.forField("Status"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code SoldierShopRarity} + */ + public static final class SoldierShopRarity extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Rarity = 2; + */ + private int rarity; + + /** + * optional .SoldierEffectStatus Status = 1; + */ + private int status; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private SoldierShopRarity() { + } + + /** + * @return a new empty instance of {@code SoldierShopRarity} + */ + public static SoldierShopRarity newInstance() { + return new SoldierShopRarity(); + } + + /** + * optional uint32 Rarity = 2; + * @return whether the rarity field is set + */ + public boolean hasRarity() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 Rarity = 2; + * @return this + */ + public SoldierShopRarity clearRarity() { + bitField0_ &= ~0x00000001; + rarity = 0; + return this; + } + + /** + * optional uint32 Rarity = 2; + * @return the rarity + */ + public int getRarity() { + return rarity; + } + + /** + * optional uint32 Rarity = 2; + * @param value the rarity to set + * @return this + */ + public SoldierShopRarity setRarity(final int value) { + bitField0_ |= 0x00000001; + rarity = value; + return this; + } + + /** + * optional .SoldierEffectStatus Status = 1; + * @return whether the status field is set + */ + public boolean hasStatus() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .SoldierEffectStatus Status = 1; + * @return this + */ + public SoldierShopRarity clearStatus() { + bitField0_ &= ~0x00000002; + status = 0; + return this; + } + + /** + * optional .SoldierEffectStatus Status = 1; + * @return the status + */ + public SoldierEffectStatus getStatus() { + return SoldierEffectStatus.forNumber(status); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link SoldierShopRarity#getStatus()}.getNumber(). + * + * @return numeric wire representation + */ + public int getStatusValue() { + return status; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link SoldierEffectStatus}. Setting an invalid value + * can cause {@link SoldierShopRarity#getStatus()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public SoldierShopRarity setStatusValue(final int value) { + bitField0_ |= 0x00000002; + status = value; + return this; + } + + /** + * optional .SoldierEffectStatus Status = 1; + * @param value the status to set + * @return this + */ + public SoldierShopRarity setStatus(final SoldierEffectStatus value) { + bitField0_ |= 0x00000002; + status = value.getNumber(); + 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 SoldierShopRarity 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 SoldierShopRarity addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierShopRarity addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierShopRarity setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + @Override + public SoldierShopRarity copyFrom(final SoldierShopRarity other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + rarity = other.rarity; + status = other.status; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierShopRarity mergeFrom(final SoldierShopRarity other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRarity()) { + setRarity(other.rarity); + } + if (other.hasStatus()) { + setStatusValue(other.status); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierShopRarity clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + rarity = 0; + status = 0; + nextPackage.clear(); + return this; + } + + @Override + public SoldierShopRarity 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 SoldierShopRarity)) { + return false; + } + SoldierShopRarity other = (SoldierShopRarity) o; + return bitField0_ == other.bitField0_ + && (!hasRarity() || rarity == other.rarity) + && (!hasStatus() || status == other.status) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(rarity); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 8); + output.writeEnumNoTag(status); + } + 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(rarity); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(status); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierShopRarity mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // rarity + rarity = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 8) { + break; + } + } + case 8: { + // status + final int value = input.readInt32(); + if (SoldierEffectStatus.forNumber(value) != null) { + status = value; + 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.rarity, rarity); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeEnum(FieldNames.status, status, SoldierEffectStatus.converter()); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public SoldierShopRarity mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1854294581: { + if (input.isAtField(FieldNames.rarity)) { + if (!input.trySkipNullValue()) { + rarity = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1808614382: { + if (input.isAtField(FieldNames.status)) { + if (!input.trySkipNullValue()) { + final SoldierEffectStatus value = input.readEnum(SoldierEffectStatus.converter()); + if (value != null) { + status = value.getNumber(); + bitField0_ |= 0x00000002; + } else { + input.skipUnknownEnumValue(); + } + } + } 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 SoldierShopRarity clone() { + return new SoldierShopRarity().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierShopRarity parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierShopRarity(), data).checkInitialized(); + } + + public static SoldierShopRarity parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierShopRarity(), input).checkInitialized(); + } + + public static SoldierShopRarity parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierShopRarity(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierShopRarity messages + */ + public static MessageFactory getFactory() { + return SoldierShopRarityFactory.INSTANCE; + } + + private enum SoldierShopRarityFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierShopRarity create() { + return SoldierShopRarity.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName rarity = FieldName.forField("Rarity"); + + static final FieldName status = FieldName.forField("Status"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code SoldierShopPurchaseExpDiscount} + */ + public static final class SoldierShopPurchaseExpDiscount extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Discount = 2; + */ + private int discount; + + /** + * optional .SoldierEffectStatus Status = 1; + */ + private int status; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private SoldierShopPurchaseExpDiscount() { + } + + /** + * @return a new empty instance of {@code SoldierShopPurchaseExpDiscount} + */ + public static SoldierShopPurchaseExpDiscount newInstance() { + return new SoldierShopPurchaseExpDiscount(); + } + + /** + * optional uint32 Discount = 2; + * @return whether the discount field is set + */ + public boolean hasDiscount() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 Discount = 2; + * @return this + */ + public SoldierShopPurchaseExpDiscount clearDiscount() { + bitField0_ &= ~0x00000001; + discount = 0; + return this; + } + + /** + * optional uint32 Discount = 2; + * @return the discount + */ + public int getDiscount() { + return discount; + } + + /** + * optional uint32 Discount = 2; + * @param value the discount to set + * @return this + */ + public SoldierShopPurchaseExpDiscount setDiscount(final int value) { + bitField0_ |= 0x00000001; + discount = value; + return this; + } + + /** + * optional .SoldierEffectStatus Status = 1; + * @return whether the status field is set + */ + public boolean hasStatus() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .SoldierEffectStatus Status = 1; + * @return this + */ + public SoldierShopPurchaseExpDiscount clearStatus() { + bitField0_ &= ~0x00000002; + status = 0; + return this; + } + + /** + * optional .SoldierEffectStatus Status = 1; + * @return the status + */ + public SoldierEffectStatus getStatus() { + return SoldierEffectStatus.forNumber(status); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link SoldierShopPurchaseExpDiscount#getStatus()}.getNumber(). + * + * @return numeric wire representation + */ + public int getStatusValue() { + return status; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link SoldierEffectStatus}. Setting an invalid value + * can cause {@link SoldierShopPurchaseExpDiscount#getStatus()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public SoldierShopPurchaseExpDiscount setStatusValue(final int value) { + bitField0_ |= 0x00000002; + status = value; + return this; + } + + /** + * optional .SoldierEffectStatus Status = 1; + * @param value the status to set + * @return this + */ + public SoldierShopPurchaseExpDiscount setStatus(final SoldierEffectStatus value) { + bitField0_ |= 0x00000002; + status = value.getNumber(); + 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 SoldierShopPurchaseExpDiscount 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 SoldierShopPurchaseExpDiscount addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierShopPurchaseExpDiscount addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierShopPurchaseExpDiscount setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + @Override + public SoldierShopPurchaseExpDiscount copyFrom(final SoldierShopPurchaseExpDiscount other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + discount = other.discount; + status = other.status; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierShopPurchaseExpDiscount mergeFrom(final SoldierShopPurchaseExpDiscount other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasDiscount()) { + setDiscount(other.discount); + } + if (other.hasStatus()) { + setStatusValue(other.status); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierShopPurchaseExpDiscount clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + discount = 0; + status = 0; + nextPackage.clear(); + return this; + } + + @Override + public SoldierShopPurchaseExpDiscount 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 SoldierShopPurchaseExpDiscount)) { + return false; + } + SoldierShopPurchaseExpDiscount other = (SoldierShopPurchaseExpDiscount) o; + return bitField0_ == other.bitField0_ + && (!hasDiscount() || discount == other.discount) + && (!hasStatus() || status == other.status) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(discount); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 8); + output.writeEnumNoTag(status); + } + 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(discount); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(status); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierShopPurchaseExpDiscount mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // discount + discount = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 8) { + break; + } + } + case 8: { + // status + final int value = input.readInt32(); + if (SoldierEffectStatus.forNumber(value) != null) { + status = value; + 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.discount, discount); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeEnum(FieldNames.status, status, SoldierEffectStatus.converter()); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public SoldierShopPurchaseExpDiscount mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 337828193: { + if (input.isAtField(FieldNames.discount)) { + if (!input.trySkipNullValue()) { + discount = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1808614382: { + if (input.isAtField(FieldNames.status)) { + if (!input.trySkipNullValue()) { + final SoldierEffectStatus value = input.readEnum(SoldierEffectStatus.converter()); + if (value != null) { + status = value.getNumber(); + bitField0_ |= 0x00000002; + } else { + input.skipUnknownEnumValue(); + } + } + } 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 SoldierShopPurchaseExpDiscount clone() { + return new SoldierShopPurchaseExpDiscount().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierShopPurchaseExpDiscount parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierShopPurchaseExpDiscount(), data).checkInitialized(); + } + + public static SoldierShopPurchaseExpDiscount parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new SoldierShopPurchaseExpDiscount(), input).checkInitialized(); + } + + public static SoldierShopPurchaseExpDiscount parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new SoldierShopPurchaseExpDiscount(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierShopPurchaseExpDiscount messages + */ + public static MessageFactory getFactory() { + return SoldierShopPurchaseExpDiscountFactory.INSTANCE; + } + + private enum SoldierShopPurchaseExpDiscountFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierShopPurchaseExpDiscount create() { + return SoldierShopPurchaseExpDiscount.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName discount = FieldName.forField("Discount"); + + static final FieldName status = FieldName.forField("Status"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code SoldierEffectAddChess} + */ + public static final class SoldierEffectAddChess extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .SoldierChess Chess = 1; + */ + private final RepeatedMessage chess = RepeatedMessage.newEmptyInstance(SoldierChess.getFactory()); + + private SoldierEffectAddChess() { + } + + /** + * @return a new empty instance of {@code SoldierEffectAddChess} + */ + public static SoldierEffectAddChess newInstance() { + return new SoldierEffectAddChess(); + } + + /** + * 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 SoldierEffectAddChess 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 SoldierEffectAddChess addNextPackage(final byte value) { + bitField0_ |= 0x00000001; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierEffectAddChess addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierEffectAddChess setNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .SoldierChess Chess = 1; + * @return whether the chess field is set + */ + public boolean hasChess() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated .SoldierChess Chess = 1; + * @return this + */ + public SoldierEffectAddChess clearChess() { + bitField0_ &= ~0x00000002; + chess.clear(); + return this; + } + + /** + * repeated .SoldierChess Chess = 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 #getMutableChess()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getChess() { + return chess; + } + + /** + * repeated .SoldierChess Chess = 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 getMutableChess() { + bitField0_ |= 0x00000002; + return chess; + } + + /** + * repeated .SoldierChess Chess = 1; + * @param value the chess to add + * @return this + */ + public SoldierEffectAddChess addChess(final SoldierChess value) { + bitField0_ |= 0x00000002; + chess.add(value); + return this; + } + + /** + * repeated .SoldierChess Chess = 1; + * @param values the chess to add + * @return this + */ + public SoldierEffectAddChess addAllChess(final SoldierChess... values) { + bitField0_ |= 0x00000002; + chess.addAll(values); + return this; + } + + @Override + public SoldierEffectAddChess copyFrom(final SoldierEffectAddChess other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + nextPackage.copyFrom(other.nextPackage); + chess.copyFrom(other.chess); + } + return this; + } + + @Override + public SoldierEffectAddChess mergeFrom(final SoldierEffectAddChess other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasChess()) { + getMutableChess().addAll(other.chess); + } + return this; + } + + @Override + public SoldierEffectAddChess clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + chess.clear(); + return this; + } + + @Override + public SoldierEffectAddChess clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + chess.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SoldierEffectAddChess)) { + return false; + } + SoldierEffectAddChess other = (SoldierEffectAddChess) o; + return bitField0_ == other.bitField0_ + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasChess() || chess.equals(other.chess)); + } + + @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 < chess.length(); i++) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(chess.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * chess.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(chess); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierEffectAddChess 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: { + // chess + tag = input.readRepeatedMessage(chess, tag); + bitField0_ |= 0x00000002; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedMessage(FieldNames.chess, chess); + } + output.endObject(); + } + + @Override + public SoldierEffectAddChess 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 65074912: { + if (input.isAtField(FieldNames.chess)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(chess); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SoldierEffectAddChess clone() { + return new SoldierEffectAddChess().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierEffectAddChess parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierEffectAddChess(), data).checkInitialized(); + } + + public static SoldierEffectAddChess parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierEffectAddChess(), input).checkInitialized(); + } + + public static SoldierEffectAddChess parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierEffectAddChess(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierEffectAddChess messages + */ + public static MessageFactory getFactory() { + return SoldierEffectAddChessFactory.INSTANCE; + } + + private enum SoldierEffectAddChessFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierEffectAddChess create() { + return SoldierEffectAddChess.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName chess = FieldName.forField("Chess"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/ScoreBossRank.java b/src/generated/main/emu/nebula/proto/ScoreBossRank.java index fd01aa6..bae539f 100644 --- a/src/generated/main/emu/nebula/proto/ScoreBossRank.java +++ b/src/generated/main/emu/nebula/proto/ScoreBossRank.java @@ -1268,6 +1268,11 @@ public final class ScoreBossRank { */ private int levelId; + /** + * optional uint32 SkillScore = 9; + */ + private int skillScore; + /** * optional bytes NextPackage = 2047; */ @@ -1419,12 +1424,49 @@ public final class ScoreBossRank { return this; } + /** + * optional uint32 SkillScore = 9; + * @return whether the skillScore field is set + */ + public boolean hasSkillScore() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 SkillScore = 9; + * @return this + */ + public ScoreBossRankTeam clearSkillScore() { + bitField0_ &= ~0x00000008; + skillScore = 0; + return this; + } + + /** + * optional uint32 SkillScore = 9; + * @return the skillScore + */ + public int getSkillScore() { + return skillScore; + } + + /** + * optional uint32 SkillScore = 9; + * @param value the skillScore to set + * @return this + */ + public ScoreBossRankTeam setSkillScore(final int value) { + bitField0_ |= 0x00000008; + skillScore = value; + return this; + } + /** * optional bytes NextPackage = 2047; * @return whether the nextPackage field is set */ public boolean hasNextPackage() { - return (bitField0_ & 0x00000008) != 0; + return (bitField0_ & 0x00000010) != 0; } /** @@ -1432,7 +1474,7 @@ public final class ScoreBossRank { * @return this */ public ScoreBossRankTeam clearNextPackage() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000010; nextPackage.clear(); return this; } @@ -1461,7 +1503,7 @@ public final class ScoreBossRank { * @return internal storage object for modifications */ public RepeatedByte getMutableNextPackage() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; return nextPackage; } @@ -1471,7 +1513,7 @@ public final class ScoreBossRank { * @return this */ public ScoreBossRankTeam addNextPackage(final byte value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; nextPackage.add(value); return this; } @@ -1482,7 +1524,7 @@ public final class ScoreBossRank { * @return this */ public ScoreBossRankTeam addAllNextPackage(final byte... values) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; nextPackage.addAll(values); return this; } @@ -1493,7 +1535,7 @@ public final class ScoreBossRank { * @return this */ public ScoreBossRankTeam setNextPackage(final byte... values) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; nextPackage.copyFrom(values); return this; } @@ -1503,7 +1545,7 @@ public final class ScoreBossRank { * @return whether the discs field is set */ public boolean hasDiscs() { - return (bitField0_ & 0x00000010) != 0; + return (bitField0_ & 0x00000020) != 0; } /** @@ -1511,7 +1553,7 @@ public final class ScoreBossRank { * @return this */ public ScoreBossRankTeam clearDiscs() { - bitField0_ &= ~0x00000010; + bitField0_ &= ~0x00000020; discs.clear(); return this; } @@ -1540,7 +1582,7 @@ public final class ScoreBossRank { * @return internal storage object for modifications */ public RepeatedInt getMutableDiscs() { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; return discs; } @@ -1550,7 +1592,7 @@ public final class ScoreBossRank { * @return this */ public ScoreBossRankTeam addDiscs(final int value) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; discs.add(value); return this; } @@ -1561,7 +1603,7 @@ public final class ScoreBossRank { * @return this */ public ScoreBossRankTeam addAllDiscs(final int... values) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; discs.addAll(values); return this; } @@ -1571,7 +1613,7 @@ public final class ScoreBossRank { * @return whether the activeSecondaryIds field is set */ public boolean hasActiveSecondaryIds() { - return (bitField0_ & 0x00000020) != 0; + return (bitField0_ & 0x00000040) != 0; } /** @@ -1579,7 +1621,7 @@ public final class ScoreBossRank { * @return this */ public ScoreBossRankTeam clearActiveSecondaryIds() { - bitField0_ &= ~0x00000020; + bitField0_ &= ~0x00000040; activeSecondaryIds.clear(); return this; } @@ -1608,7 +1650,7 @@ public final class ScoreBossRank { * @return internal storage object for modifications */ public RepeatedInt getMutableActiveSecondaryIds() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; return activeSecondaryIds; } @@ -1618,7 +1660,7 @@ public final class ScoreBossRank { * @return this */ public ScoreBossRankTeam addActiveSecondaryIds(final int value) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; activeSecondaryIds.add(value); return this; } @@ -1629,7 +1671,7 @@ public final class ScoreBossRank { * @return this */ public ScoreBossRankTeam addAllActiveSecondaryIds(final int... values) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; activeSecondaryIds.addAll(values); return this; } @@ -1639,7 +1681,7 @@ public final class ScoreBossRank { * @return whether the chars field is set */ public boolean hasChars() { - return (bitField0_ & 0x00000040) != 0; + return (bitField0_ & 0x00000080) != 0; } /** @@ -1647,7 +1689,7 @@ public final class ScoreBossRank { * @return this */ public ScoreBossRankTeam clearChars() { - bitField0_ &= ~0x00000040; + bitField0_ &= ~0x00000080; chars.clear(); return this; } @@ -1676,7 +1718,7 @@ public final class ScoreBossRank { * @return internal storage object for modifications */ public RepeatedMessage getMutableChars() { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; return chars; } @@ -1686,7 +1728,7 @@ public final class ScoreBossRank { * @return this */ public ScoreBossRankTeam addChars(final ScoreBossRankChar value) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; chars.add(value); return this; } @@ -1697,7 +1739,7 @@ public final class ScoreBossRank { * @return this */ public ScoreBossRankTeam addAllChars(final ScoreBossRankChar... values) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; chars.addAll(values); return this; } @@ -1707,7 +1749,7 @@ public final class ScoreBossRank { * @return whether the potentials field is set */ public boolean hasPotentials() { - return (bitField0_ & 0x00000080) != 0; + return (bitField0_ & 0x00000100) != 0; } /** @@ -1715,7 +1757,7 @@ public final class ScoreBossRank { * @return this */ public ScoreBossRankTeam clearPotentials() { - bitField0_ &= ~0x00000080; + bitField0_ &= ~0x00000100; potentials.clear(); return this; } @@ -1744,7 +1786,7 @@ public final class ScoreBossRank { * @return internal storage object for modifications */ public RepeatedMessage getMutablePotentials() { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; return potentials; } @@ -1754,7 +1796,7 @@ public final class ScoreBossRank { * @return this */ public ScoreBossRankTeam addPotentials(final PublicStarTower.BuildPotential value) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; potentials.add(value); return this; } @@ -1765,7 +1807,7 @@ public final class ScoreBossRank { * @return this */ public ScoreBossRankTeam addAllPotentials(final PublicStarTower.BuildPotential... values) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; potentials.addAll(values); return this; } @@ -1775,7 +1817,7 @@ public final class ScoreBossRank { * @return whether the notes field is set */ public boolean hasNotes() { - return (bitField0_ & 0x00000100) != 0; + return (bitField0_ & 0x00000200) != 0; } /** @@ -1783,7 +1825,7 @@ public final class ScoreBossRank { * @return this */ public ScoreBossRankTeam clearNotes() { - bitField0_ &= ~0x00000100; + bitField0_ &= ~0x00000200; notes.clear(); return this; } @@ -1812,7 +1854,7 @@ public final class ScoreBossRank { * @return internal storage object for modifications */ public RepeatedMessage getMutableNotes() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; return notes; } @@ -1822,7 +1864,7 @@ public final class ScoreBossRank { * @return this */ public ScoreBossRankTeam addNotes(final Public.ItemTpl value) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; notes.add(value); return this; } @@ -1833,7 +1875,7 @@ public final class ScoreBossRank { * @return this */ public ScoreBossRankTeam addAllNotes(final Public.ItemTpl... values) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; notes.addAll(values); return this; } @@ -1846,6 +1888,7 @@ public final class ScoreBossRank { buildScore = other.buildScore; levelScore = other.levelScore; levelId = other.levelId; + skillScore = other.skillScore; nextPackage.copyFrom(other.nextPackage); discs.copyFrom(other.discs); activeSecondaryIds.copyFrom(other.activeSecondaryIds); @@ -1871,6 +1914,9 @@ public final class ScoreBossRank { if (other.hasLevelId()) { setLevelId(other.levelId); } + if (other.hasSkillScore()) { + setSkillScore(other.skillScore); + } if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); } @@ -1902,6 +1948,7 @@ public final class ScoreBossRank { buildScore = 0; levelScore = 0; levelId = 0; + skillScore = 0; nextPackage.clear(); discs.clear(); activeSecondaryIds.clear(); @@ -1940,6 +1987,7 @@ public final class ScoreBossRank { && (!hasBuildScore() || buildScore == other.buildScore) && (!hasLevelScore() || levelScore == other.levelScore) && (!hasLevelId() || levelId == other.levelId) + && (!hasSkillScore() || skillScore == other.skillScore) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) && (!hasDiscs() || discs.equals(other.discs)) && (!hasActiveSecondaryIds() || activeSecondaryIds.equals(other.activeSecondaryIds)) @@ -1963,34 +2011,38 @@ public final class ScoreBossRank { output.writeUInt32NoTag(levelId); } if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(skillScore); + } + if ((bitField0_ & 0x00000010) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); } - if ((bitField0_ & 0x00000010) != 0) { + if ((bitField0_ & 0x00000020) != 0) { for (int i = 0; i < discs.length(); i++) { output.writeRawByte((byte) 40); output.writeUInt32NoTag(discs.array()[i]); } } - if ((bitField0_ & 0x00000020) != 0) { + if ((bitField0_ & 0x00000040) != 0) { for (int i = 0; i < activeSecondaryIds.length(); i++) { output.writeRawByte((byte) 64); output.writeUInt32NoTag(activeSecondaryIds.array()[i]); } } - if ((bitField0_ & 0x00000040) != 0) { + if ((bitField0_ & 0x00000080) != 0) { for (int i = 0; i < chars.length(); i++) { output.writeRawByte((byte) 18); output.writeMessageNoTag(chars.get(i)); } } - if ((bitField0_ & 0x00000080) != 0) { + if ((bitField0_ & 0x00000100) != 0) { for (int i = 0; i < potentials.length(); i++) { output.writeRawByte((byte) 50); output.writeMessageNoTag(potentials.get(i)); } } - if ((bitField0_ & 0x00000100) != 0) { + if ((bitField0_ & 0x00000200) != 0) { for (int i = 0; i < notes.length(); i++) { output.writeRawByte((byte) 58); output.writeMessageNoTag(notes.get(i)); @@ -2011,21 +2063,24 @@ public final class ScoreBossRank { size += 1 + ProtoSink.computeUInt32SizeNoTag(levelId); } if ((bitField0_ & 0x00000008) != 0) { - size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + size += 1 + ProtoSink.computeUInt32SizeNoTag(skillScore); } if ((bitField0_ & 0x00000010) != 0) { - size += (1 * discs.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(discs); + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); } if ((bitField0_ & 0x00000020) != 0) { - size += (1 * activeSecondaryIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(activeSecondaryIds); + size += (1 * discs.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(discs); } if ((bitField0_ & 0x00000040) != 0) { - size += (1 * chars.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(chars); + size += (1 * activeSecondaryIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(activeSecondaryIds); } if ((bitField0_ & 0x00000080) != 0) { - size += (1 * potentials.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(potentials); + size += (1 * chars.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(chars); } if ((bitField0_ & 0x00000100) != 0) { + size += (1 * potentials.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(potentials); + } + if ((bitField0_ & 0x00000200) != 0) { size += (1 * notes.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(notes); } return size; @@ -2061,6 +2116,15 @@ public final class ScoreBossRank { levelId = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // skillScore + skillScore = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); if (tag != 16378) { break; } @@ -2068,7 +2132,7 @@ public final class ScoreBossRank { case 16378: { // nextPackage input.readBytes(nextPackage); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; tag = input.readTag(); if (tag != 42) { break; @@ -2077,7 +2141,7 @@ public final class ScoreBossRank { case 42: { // discs [packed=true] input.readPackedUInt32(discs, tag); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; tag = input.readTag(); if (tag != 66) { break; @@ -2086,7 +2150,7 @@ public final class ScoreBossRank { case 66: { // activeSecondaryIds [packed=true] input.readPackedUInt32(activeSecondaryIds, tag); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; tag = input.readTag(); if (tag != 18) { break; @@ -2095,7 +2159,7 @@ public final class ScoreBossRank { case 18: { // chars tag = input.readRepeatedMessage(chars, tag); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; if (tag != 50) { break; } @@ -2103,7 +2167,7 @@ public final class ScoreBossRank { case 50: { // potentials tag = input.readRepeatedMessage(potentials, tag); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; if (tag != 58) { break; } @@ -2111,7 +2175,7 @@ public final class ScoreBossRank { case 58: { // notes tag = input.readRepeatedMessage(notes, tag); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; if (tag != 0) { break; } @@ -2129,13 +2193,13 @@ public final class ScoreBossRank { case 40: { // discs [packed=false] tag = input.readRepeatedUInt32(discs, tag); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } case 64: { // activeSecondaryIds [packed=false] tag = input.readRepeatedUInt32(activeSecondaryIds, tag); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } } @@ -2155,21 +2219,24 @@ public final class ScoreBossRank { output.writeUInt32(FieldNames.levelId, levelId); } if ((bitField0_ & 0x00000008) != 0) { - output.writeBytes(FieldNames.nextPackage, nextPackage); + output.writeUInt32(FieldNames.skillScore, skillScore); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRepeatedUInt32(FieldNames.discs, discs); + output.writeBytes(FieldNames.nextPackage, nextPackage); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRepeatedUInt32(FieldNames.activeSecondaryIds, activeSecondaryIds); + output.writeRepeatedUInt32(FieldNames.discs, discs); } if ((bitField0_ & 0x00000040) != 0) { - output.writeRepeatedMessage(FieldNames.chars, chars); + output.writeRepeatedUInt32(FieldNames.activeSecondaryIds, activeSecondaryIds); } if ((bitField0_ & 0x00000080) != 0) { - output.writeRepeatedMessage(FieldNames.potentials, potentials); + output.writeRepeatedMessage(FieldNames.chars, chars); } if ((bitField0_ & 0x00000100) != 0) { + output.writeRepeatedMessage(FieldNames.potentials, potentials); + } + if ((bitField0_ & 0x00000200) != 0) { output.writeRepeatedMessage(FieldNames.notes, notes); } output.endObject(); @@ -2215,11 +2282,22 @@ public final class ScoreBossRank { } break; } + case -705549599: { + if (input.isAtField(FieldNames.skillScore)) { + if (!input.trySkipNullValue()) { + skillScore = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } case -2082324045: { if (input.isAtField(FieldNames.nextPackage)) { if (!input.trySkipNullValue()) { input.readBytes(nextPackage); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; } } else { input.skipUnknownField(); @@ -2230,7 +2308,7 @@ public final class ScoreBossRank { if (input.isAtField(FieldNames.discs)) { if (!input.trySkipNullValue()) { input.readRepeatedUInt32(discs); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; } } else { input.skipUnknownField(); @@ -2241,7 +2319,7 @@ public final class ScoreBossRank { if (input.isAtField(FieldNames.activeSecondaryIds)) { if (!input.trySkipNullValue()) { input.readRepeatedUInt32(activeSecondaryIds); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; } } else { input.skipUnknownField(); @@ -2252,7 +2330,7 @@ public final class ScoreBossRank { if (input.isAtField(FieldNames.chars)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(chars); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; } } else { input.skipUnknownField(); @@ -2263,7 +2341,7 @@ public final class ScoreBossRank { if (input.isAtField(FieldNames.potentials)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(potentials); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; } } else { input.skipUnknownField(); @@ -2274,7 +2352,7 @@ public final class ScoreBossRank { if (input.isAtField(FieldNames.notes)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(notes); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; } } else { input.skipUnknownField(); @@ -2340,6 +2418,8 @@ public final class ScoreBossRank { static final FieldName levelId = FieldName.forField("LevelId"); + static final FieldName skillScore = FieldName.forField("SkillScore"); + static final FieldName nextPackage = FieldName.forField("NextPackage"); static final FieldName discs = FieldName.forField("Discs"); diff --git a/src/generated/main/emu/nebula/proto/SoldierApply.java b/src/generated/main/emu/nebula/proto/SoldierApply.java new file mode 100644 index 0000000..d5525f0 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/SoldierApply.java @@ -0,0 +1,1046 @@ +// 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 SoldierApply { + /** + * Protobuf type {@code SoldierApplyReq} + */ + public static final class SoldierApplyReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 SeasonId = 1; + */ + private int seasonId; + + /** + * optional uint32 GradeChallengeId = 2; + */ + private int gradeChallengeId; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private SoldierApplyReq() { + } + + /** + * @return a new empty instance of {@code SoldierApplyReq} + */ + public static SoldierApplyReq newInstance() { + return new SoldierApplyReq(); + } + + /** + * optional uint32 SeasonId = 1; + * @return whether the seasonId field is set + */ + public boolean hasSeasonId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 SeasonId = 1; + * @return this + */ + public SoldierApplyReq clearSeasonId() { + bitField0_ &= ~0x00000001; + seasonId = 0; + return this; + } + + /** + * optional uint32 SeasonId = 1; + * @return the seasonId + */ + public int getSeasonId() { + return seasonId; + } + + /** + * optional uint32 SeasonId = 1; + * @param value the seasonId to set + * @return this + */ + public SoldierApplyReq setSeasonId(final int value) { + bitField0_ |= 0x00000001; + seasonId = value; + return this; + } + + /** + * optional uint32 GradeChallengeId = 2; + * @return whether the gradeChallengeId field is set + */ + public boolean hasGradeChallengeId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 GradeChallengeId = 2; + * @return this + */ + public SoldierApplyReq clearGradeChallengeId() { + bitField0_ &= ~0x00000002; + gradeChallengeId = 0; + return this; + } + + /** + * optional uint32 GradeChallengeId = 2; + * @return the gradeChallengeId + */ + public int getGradeChallengeId() { + return gradeChallengeId; + } + + /** + * optional uint32 GradeChallengeId = 2; + * @param value the gradeChallengeId to set + * @return this + */ + public SoldierApplyReq setGradeChallengeId(final int value) { + bitField0_ |= 0x00000002; + gradeChallengeId = 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 SoldierApplyReq 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 SoldierApplyReq addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierApplyReq addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierApplyReq setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + @Override + public SoldierApplyReq copyFrom(final SoldierApplyReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + seasonId = other.seasonId; + gradeChallengeId = other.gradeChallengeId; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierApplyReq mergeFrom(final SoldierApplyReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasSeasonId()) { + setSeasonId(other.seasonId); + } + if (other.hasGradeChallengeId()) { + setGradeChallengeId(other.gradeChallengeId); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierApplyReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + seasonId = 0; + gradeChallengeId = 0; + nextPackage.clear(); + return this; + } + + @Override + public SoldierApplyReq 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 SoldierApplyReq)) { + return false; + } + SoldierApplyReq other = (SoldierApplyReq) o; + return bitField0_ == other.bitField0_ + && (!hasSeasonId() || seasonId == other.seasonId) + && (!hasGradeChallengeId() || gradeChallengeId == other.gradeChallengeId) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(seasonId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(gradeChallengeId); + } + 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(seasonId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(gradeChallengeId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierApplyReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // seasonId + seasonId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // gradeChallengeId + gradeChallengeId = 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.seasonId, seasonId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.gradeChallengeId, gradeChallengeId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public SoldierApplyReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 954575742: { + if (input.isAtField(FieldNames.seasonId)) { + if (!input.trySkipNullValue()) { + seasonId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1764841305: { + if (input.isAtField(FieldNames.gradeChallengeId)) { + if (!input.trySkipNullValue()) { + gradeChallengeId = 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 SoldierApplyReq clone() { + return new SoldierApplyReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierApplyReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierApplyReq(), data).checkInitialized(); + } + + public static SoldierApplyReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierApplyReq(), input).checkInitialized(); + } + + public static SoldierApplyReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierApplyReq(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierApplyReq messages + */ + public static MessageFactory getFactory() { + return SoldierApplyReqFactory.INSTANCE; + } + + private enum SoldierApplyReqFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierApplyReq create() { + return SoldierApplyReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName seasonId = FieldName.forField("SeasonId"); + + static final FieldName gradeChallengeId = FieldName.forField("GradeChallengeId"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code SoldierApplyResp} + */ + public static final class SoldierApplyResp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 CoinQty = 3; + */ + private int coinQty; + + /** + * optional .SoldierInfo Info = 1; + */ + private final PublicSoldier.SoldierInfo info = PublicSoldier.SoldierInfo.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .SoldierChess Chess = 2; + */ + private final RepeatedMessage chess = RepeatedMessage.newEmptyInstance(PublicSoldier.SoldierChess.getFactory()); + + private SoldierApplyResp() { + } + + /** + * @return a new empty instance of {@code SoldierApplyResp} + */ + public static SoldierApplyResp newInstance() { + return new SoldierApplyResp(); + } + + /** + * optional uint32 CoinQty = 3; + * @return whether the coinQty field is set + */ + public boolean hasCoinQty() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 CoinQty = 3; + * @return this + */ + public SoldierApplyResp clearCoinQty() { + bitField0_ &= ~0x00000001; + coinQty = 0; + return this; + } + + /** + * optional uint32 CoinQty = 3; + * @return the coinQty + */ + public int getCoinQty() { + return coinQty; + } + + /** + * optional uint32 CoinQty = 3; + * @param value the coinQty to set + * @return this + */ + public SoldierApplyResp setCoinQty(final int value) { + bitField0_ |= 0x00000001; + coinQty = value; + return this; + } + + /** + * optional .SoldierInfo Info = 1; + * @return whether the info field is set + */ + public boolean hasInfo() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .SoldierInfo Info = 1; + * @return this + */ + public SoldierApplyResp clearInfo() { + bitField0_ &= ~0x00000002; + info.clear(); + return this; + } + + /** + * optional .SoldierInfo Info = 1; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public PublicSoldier.SoldierInfo getInfo() { + return info; + } + + /** + * optional .SoldierInfo Info = 1; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public PublicSoldier.SoldierInfo getMutableInfo() { + bitField0_ |= 0x00000002; + return info; + } + + /** + * optional .SoldierInfo Info = 1; + * @param value the info to set + * @return this + */ + public SoldierApplyResp setInfo(final PublicSoldier.SoldierInfo value) { + bitField0_ |= 0x00000002; + info.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 SoldierApplyResp 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 SoldierApplyResp addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierApplyResp addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierApplyResp setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .SoldierChess Chess = 2; + * @return whether the chess field is set + */ + public boolean hasChess() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated .SoldierChess Chess = 2; + * @return this + */ + public SoldierApplyResp clearChess() { + bitField0_ &= ~0x00000008; + chess.clear(); + return this; + } + + /** + * repeated .SoldierChess Chess = 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 #getMutableChess()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getChess() { + return chess; + } + + /** + * repeated .SoldierChess Chess = 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 getMutableChess() { + bitField0_ |= 0x00000008; + return chess; + } + + /** + * repeated .SoldierChess Chess = 2; + * @param value the chess to add + * @return this + */ + public SoldierApplyResp addChess(final PublicSoldier.SoldierChess value) { + bitField0_ |= 0x00000008; + chess.add(value); + return this; + } + + /** + * repeated .SoldierChess Chess = 2; + * @param values the chess to add + * @return this + */ + public SoldierApplyResp addAllChess(final PublicSoldier.SoldierChess... values) { + bitField0_ |= 0x00000008; + chess.addAll(values); + return this; + } + + @Override + public SoldierApplyResp copyFrom(final SoldierApplyResp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + coinQty = other.coinQty; + info.copyFrom(other.info); + nextPackage.copyFrom(other.nextPackage); + chess.copyFrom(other.chess); + } + return this; + } + + @Override + public SoldierApplyResp mergeFrom(final SoldierApplyResp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasCoinQty()) { + setCoinQty(other.coinQty); + } + if (other.hasInfo()) { + getMutableInfo().mergeFrom(other.info); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasChess()) { + getMutableChess().addAll(other.chess); + } + return this; + } + + @Override + public SoldierApplyResp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + coinQty = 0; + info.clear(); + nextPackage.clear(); + chess.clear(); + return this; + } + + @Override + public SoldierApplyResp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + info.clearQuick(); + nextPackage.clear(); + chess.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SoldierApplyResp)) { + return false; + } + SoldierApplyResp other = (SoldierApplyResp) o; + return bitField0_ == other.bitField0_ + && (!hasCoinQty() || coinQty == other.coinQty) + && (!hasInfo() || info.equals(other.info)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasChess() || chess.equals(other.chess)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(coinQty); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(info); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000008) != 0) { + for (int i = 0; i < chess.length(); i++) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(chess.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(coinQty); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(info); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000008) != 0) { + size += (1 * chess.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(chess); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierApplyResp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 24: { + // coinQty + coinQty = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // info + input.readMessage(info); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // chess + tag = input.readRepeatedMessage(chess, 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.coinQty, coinQty); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.info, info); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedMessage(FieldNames.chess, chess); + } + output.endObject(); + } + + @Override + public SoldierApplyResp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1683598779: { + if (input.isAtField(FieldNames.coinQty)) { + if (!input.trySkipNullValue()) { + coinQty = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2283726: { + if (input.isAtField(FieldNames.info)) { + if (!input.trySkipNullValue()) { + input.readMessage(info); + 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; + } + case 65074912: { + if (input.isAtField(FieldNames.chess)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(chess); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SoldierApplyResp clone() { + return new SoldierApplyResp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierApplyResp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierApplyResp(), data).checkInitialized(); + } + + public static SoldierApplyResp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierApplyResp(), input).checkInitialized(); + } + + public static SoldierApplyResp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierApplyResp(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierApplyResp messages + */ + public static MessageFactory getFactory() { + return SoldierApplyRespFactory.INSTANCE; + } + + private enum SoldierApplyRespFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierApplyResp create() { + return SoldierApplyResp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName coinQty = FieldName.forField("CoinQty"); + + static final FieldName info = FieldName.forField("Info"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName chess = FieldName.forField("Chess"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/SoldierGiveUp.java b/src/generated/main/emu/nebula/proto/SoldierGiveUp.java new file mode 100644 index 0000000..3c2050b --- /dev/null +++ b/src/generated/main/emu/nebula/proto/SoldierGiveUp.java @@ -0,0 +1,463 @@ +// 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 SoldierGiveUp { + /** + * Protobuf type {@code SoldierGiveUpResp} + */ + public static final class SoldierGiveUpResp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 TotalScore = 1; + */ + private int totalScore; + + /** + * optional uint32 RewardScore = 2; + */ + private int rewardScore; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private SoldierGiveUpResp() { + } + + /** + * @return a new empty instance of {@code SoldierGiveUpResp} + */ + public static SoldierGiveUpResp newInstance() { + return new SoldierGiveUpResp(); + } + + /** + * optional uint32 TotalScore = 1; + * @return whether the totalScore field is set + */ + public boolean hasTotalScore() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 TotalScore = 1; + * @return this + */ + public SoldierGiveUpResp clearTotalScore() { + bitField0_ &= ~0x00000001; + totalScore = 0; + return this; + } + + /** + * optional uint32 TotalScore = 1; + * @return the totalScore + */ + public int getTotalScore() { + return totalScore; + } + + /** + * optional uint32 TotalScore = 1; + * @param value the totalScore to set + * @return this + */ + public SoldierGiveUpResp setTotalScore(final int value) { + bitField0_ |= 0x00000001; + totalScore = value; + return this; + } + + /** + * optional uint32 RewardScore = 2; + * @return whether the rewardScore field is set + */ + public boolean hasRewardScore() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 RewardScore = 2; + * @return this + */ + public SoldierGiveUpResp clearRewardScore() { + bitField0_ &= ~0x00000002; + rewardScore = 0; + return this; + } + + /** + * optional uint32 RewardScore = 2; + * @return the rewardScore + */ + public int getRewardScore() { + return rewardScore; + } + + /** + * optional uint32 RewardScore = 2; + * @param value the rewardScore to set + * @return this + */ + public SoldierGiveUpResp setRewardScore(final int value) { + bitField0_ |= 0x00000002; + rewardScore = 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 SoldierGiveUpResp 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 SoldierGiveUpResp addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierGiveUpResp addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierGiveUpResp setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + @Override + public SoldierGiveUpResp copyFrom(final SoldierGiveUpResp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + totalScore = other.totalScore; + rewardScore = other.rewardScore; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierGiveUpResp mergeFrom(final SoldierGiveUpResp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasTotalScore()) { + setTotalScore(other.totalScore); + } + if (other.hasRewardScore()) { + setRewardScore(other.rewardScore); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierGiveUpResp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + totalScore = 0; + rewardScore = 0; + nextPackage.clear(); + return this; + } + + @Override + public SoldierGiveUpResp 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 SoldierGiveUpResp)) { + return false; + } + SoldierGiveUpResp other = (SoldierGiveUpResp) o; + return bitField0_ == other.bitField0_ + && (!hasTotalScore() || totalScore == other.totalScore) + && (!hasRewardScore() || rewardScore == other.rewardScore) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(totalScore); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(rewardScore); + } + 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(totalScore); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(rewardScore); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierGiveUpResp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // totalScore + totalScore = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // rewardScore + rewardScore = 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.totalScore, totalScore); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.rewardScore, rewardScore); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public SoldierGiveUpResp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1276492238: { + if (input.isAtField(FieldNames.totalScore)) { + if (!input.trySkipNullValue()) { + totalScore = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1740125053: { + if (input.isAtField(FieldNames.rewardScore)) { + if (!input.trySkipNullValue()) { + rewardScore = 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 SoldierGiveUpResp clone() { + return new SoldierGiveUpResp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierGiveUpResp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierGiveUpResp(), data).checkInitialized(); + } + + public static SoldierGiveUpResp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierGiveUpResp(), input).checkInitialized(); + } + + public static SoldierGiveUpResp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierGiveUpResp(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierGiveUpResp messages + */ + public static MessageFactory getFactory() { + return SoldierGiveUpRespFactory.INSTANCE; + } + + private enum SoldierGiveUpRespFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierGiveUpResp create() { + return SoldierGiveUpResp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName totalScore = FieldName.forField("TotalScore"); + + static final FieldName rewardScore = FieldName.forField("RewardScore"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/SoldierInfo.java b/src/generated/main/emu/nebula/proto/SoldierInfo.java new file mode 100644 index 0000000..1f27a54 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/SoldierInfo.java @@ -0,0 +1,5 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.nebula.proto; + +public final class SoldierInfo { +} diff --git a/src/generated/main/emu/nebula/proto/SoldierInteract.java b/src/generated/main/emu/nebula/proto/SoldierInteract.java new file mode 100644 index 0000000..ac3a781 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/SoldierInteract.java @@ -0,0 +1,2806 @@ +// 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 SoldierInteract { + /** + * Protobuf type {@code SoldierInteractReq} + */ + public static final class SoldierInteractReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Id = 1; + */ + private int id; + + /** + * optional .InteractShopReq ShopReq = 2; + */ + private final PublicSoldier.InteractShopReq shopReq = PublicSoldier.InteractShopReq.newInstance(); + + /** + * optional .InteractFightReq FightReq = 3; + */ + private final PublicSoldier.InteractFightReq fightReq = PublicSoldier.InteractFightReq.newInstance(); + + /** + * optional .InteractSoldierBattleReq BattleReq = 4; + */ + private final PublicSoldier.InteractSoldierBattleReq battleReq = PublicSoldier.InteractSoldierBattleReq.newInstance(); + + /** + * optional .InteractSoldierSelectReq SelectReq = 5; + */ + private final PublicSoldier.InteractSoldierSelectReq selectReq = PublicSoldier.InteractSoldierSelectReq.newInstance(); + + /** + * optional .InteractEventSettlementOfDisputeReq EventSettlementOfDisputeReq = 6; + */ + private final PublicSoldier.InteractEventSettlementOfDisputeReq eventSettlementOfDisputeReq = PublicSoldier.InteractEventSettlementOfDisputeReq.newInstance(); + + /** + * optional .InteractEventSettlementOfDisputeBattleReq EventSettlementOfDisputeBattleReq = 7; + */ + private final PublicSoldier.InteractEventSettlementOfDisputeBattleReq eventSettlementOfDisputeBattleReq = PublicSoldier.InteractEventSettlementOfDisputeBattleReq.newInstance(); + + /** + * optional .InteractDeploySyncReq DeploySyncReq = 14; + */ + private final PublicSoldier.InteractDeploySyncReq deploySyncReq = PublicSoldier.InteractDeploySyncReq.newInstance(); + + /** + * optional .InteractClientEventReq ClientEventReq = 15; + */ + private final PublicSoldier.InteractClientEventReq clientEventReq = PublicSoldier.InteractClientEventReq.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private SoldierInteractReq() { + } + + /** + * @return a new empty instance of {@code SoldierInteractReq} + */ + public static SoldierInteractReq newInstance() { + return new SoldierInteractReq(); + } + + /** + * 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 SoldierInteractReq 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 SoldierInteractReq setId(final int value) { + bitField0_ |= 0x00000001; + id = value; + return this; + } + + /** + * optional .InteractShopReq ShopReq = 2; + * @return whether the shopReq field is set + */ + public boolean hasShopReq() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .InteractShopReq ShopReq = 2; + * @return this + */ + public SoldierInteractReq clearShopReq() { + bitField0_ &= ~0x00000002; + shopReq.clear(); + return this; + } + + /** + * optional .InteractShopReq ShopReq = 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 #getMutableShopReq()} if you want to modify it. + * + * @return internal storage object for reading + */ + public PublicSoldier.InteractShopReq getShopReq() { + return shopReq; + } + + /** + * optional .InteractShopReq ShopReq = 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 PublicSoldier.InteractShopReq getMutableShopReq() { + bitField0_ |= 0x00000002; + return shopReq; + } + + /** + * optional .InteractShopReq ShopReq = 2; + * @param value the shopReq to set + * @return this + */ + public SoldierInteractReq setShopReq(final PublicSoldier.InteractShopReq value) { + bitField0_ |= 0x00000002; + shopReq.copyFrom(value); + return this; + } + + /** + * optional .InteractFightReq FightReq = 3; + * @return whether the fightReq field is set + */ + public boolean hasFightReq() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .InteractFightReq FightReq = 3; + * @return this + */ + public SoldierInteractReq clearFightReq() { + bitField0_ &= ~0x00000004; + fightReq.clear(); + return this; + } + + /** + * optional .InteractFightReq FightReq = 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 #getMutableFightReq()} if you want to modify it. + * + * @return internal storage object for reading + */ + public PublicSoldier.InteractFightReq getFightReq() { + return fightReq; + } + + /** + * optional .InteractFightReq FightReq = 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 PublicSoldier.InteractFightReq getMutableFightReq() { + bitField0_ |= 0x00000004; + return fightReq; + } + + /** + * optional .InteractFightReq FightReq = 3; + * @param value the fightReq to set + * @return this + */ + public SoldierInteractReq setFightReq(final PublicSoldier.InteractFightReq value) { + bitField0_ |= 0x00000004; + fightReq.copyFrom(value); + return this; + } + + /** + * optional .InteractSoldierBattleReq BattleReq = 4; + * @return whether the battleReq field is set + */ + public boolean hasBattleReq() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .InteractSoldierBattleReq BattleReq = 4; + * @return this + */ + public SoldierInteractReq clearBattleReq() { + bitField0_ &= ~0x00000008; + battleReq.clear(); + return this; + } + + /** + * optional .InteractSoldierBattleReq BattleReq = 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 #getMutableBattleReq()} if you want to modify it. + * + * @return internal storage object for reading + */ + public PublicSoldier.InteractSoldierBattleReq getBattleReq() { + return battleReq; + } + + /** + * optional .InteractSoldierBattleReq BattleReq = 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 PublicSoldier.InteractSoldierBattleReq getMutableBattleReq() { + bitField0_ |= 0x00000008; + return battleReq; + } + + /** + * optional .InteractSoldierBattleReq BattleReq = 4; + * @param value the battleReq to set + * @return this + */ + public SoldierInteractReq setBattleReq(final PublicSoldier.InteractSoldierBattleReq value) { + bitField0_ |= 0x00000008; + battleReq.copyFrom(value); + return this; + } + + /** + * optional .InteractSoldierSelectReq SelectReq = 5; + * @return whether the selectReq field is set + */ + public boolean hasSelectReq() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional .InteractSoldierSelectReq SelectReq = 5; + * @return this + */ + public SoldierInteractReq clearSelectReq() { + bitField0_ &= ~0x00000010; + selectReq.clear(); + return this; + } + + /** + * optional .InteractSoldierSelectReq SelectReq = 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 #getMutableSelectReq()} if you want to modify it. + * + * @return internal storage object for reading + */ + public PublicSoldier.InteractSoldierSelectReq getSelectReq() { + return selectReq; + } + + /** + * optional .InteractSoldierSelectReq SelectReq = 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 PublicSoldier.InteractSoldierSelectReq getMutableSelectReq() { + bitField0_ |= 0x00000010; + return selectReq; + } + + /** + * optional .InteractSoldierSelectReq SelectReq = 5; + * @param value the selectReq to set + * @return this + */ + public SoldierInteractReq setSelectReq(final PublicSoldier.InteractSoldierSelectReq value) { + bitField0_ |= 0x00000010; + selectReq.copyFrom(value); + return this; + } + + /** + * optional .InteractEventSettlementOfDisputeReq EventSettlementOfDisputeReq = 6; + * @return whether the eventSettlementOfDisputeReq field is set + */ + public boolean hasEventSettlementOfDisputeReq() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional .InteractEventSettlementOfDisputeReq EventSettlementOfDisputeReq = 6; + * @return this + */ + public SoldierInteractReq clearEventSettlementOfDisputeReq() { + bitField0_ &= ~0x00000020; + eventSettlementOfDisputeReq.clear(); + return this; + } + + /** + * optional .InteractEventSettlementOfDisputeReq EventSettlementOfDisputeReq = 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 #getMutableEventSettlementOfDisputeReq()} if you want to modify it. + * + * @return internal storage object for reading + */ + public PublicSoldier.InteractEventSettlementOfDisputeReq getEventSettlementOfDisputeReq() { + return eventSettlementOfDisputeReq; + } + + /** + * optional .InteractEventSettlementOfDisputeReq EventSettlementOfDisputeReq = 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 PublicSoldier.InteractEventSettlementOfDisputeReq getMutableEventSettlementOfDisputeReq( + ) { + bitField0_ |= 0x00000020; + return eventSettlementOfDisputeReq; + } + + /** + * optional .InteractEventSettlementOfDisputeReq EventSettlementOfDisputeReq = 6; + * @param value the eventSettlementOfDisputeReq to set + * @return this + */ + public SoldierInteractReq setEventSettlementOfDisputeReq( + final PublicSoldier.InteractEventSettlementOfDisputeReq value) { + bitField0_ |= 0x00000020; + eventSettlementOfDisputeReq.copyFrom(value); + return this; + } + + /** + * optional .InteractEventSettlementOfDisputeBattleReq EventSettlementOfDisputeBattleReq = 7; + * @return whether the eventSettlementOfDisputeBattleReq field is set + */ + public boolean hasEventSettlementOfDisputeBattleReq() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional .InteractEventSettlementOfDisputeBattleReq EventSettlementOfDisputeBattleReq = 7; + * @return this + */ + public SoldierInteractReq clearEventSettlementOfDisputeBattleReq() { + bitField0_ &= ~0x00000040; + eventSettlementOfDisputeBattleReq.clear(); + return this; + } + + /** + * optional .InteractEventSettlementOfDisputeBattleReq EventSettlementOfDisputeBattleReq = 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 #getMutableEventSettlementOfDisputeBattleReq()} if you want to modify it. + * + * @return internal storage object for reading + */ + public PublicSoldier.InteractEventSettlementOfDisputeBattleReq getEventSettlementOfDisputeBattleReq( + ) { + return eventSettlementOfDisputeBattleReq; + } + + /** + * optional .InteractEventSettlementOfDisputeBattleReq EventSettlementOfDisputeBattleReq = 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 PublicSoldier.InteractEventSettlementOfDisputeBattleReq getMutableEventSettlementOfDisputeBattleReq( + ) { + bitField0_ |= 0x00000040; + return eventSettlementOfDisputeBattleReq; + } + + /** + * optional .InteractEventSettlementOfDisputeBattleReq EventSettlementOfDisputeBattleReq = 7; + * @param value the eventSettlementOfDisputeBattleReq to set + * @return this + */ + public SoldierInteractReq setEventSettlementOfDisputeBattleReq( + final PublicSoldier.InteractEventSettlementOfDisputeBattleReq value) { + bitField0_ |= 0x00000040; + eventSettlementOfDisputeBattleReq.copyFrom(value); + return this; + } + + /** + * optional .InteractDeploySyncReq DeploySyncReq = 14; + * @return whether the deploySyncReq field is set + */ + public boolean hasDeploySyncReq() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * optional .InteractDeploySyncReq DeploySyncReq = 14; + * @return this + */ + public SoldierInteractReq clearDeploySyncReq() { + bitField0_ &= ~0x00000080; + deploySyncReq.clear(); + return this; + } + + /** + * optional .InteractDeploySyncReq DeploySyncReq = 14; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableDeploySyncReq()} if you want to modify it. + * + * @return internal storage object for reading + */ + public PublicSoldier.InteractDeploySyncReq getDeploySyncReq() { + return deploySyncReq; + } + + /** + * optional .InteractDeploySyncReq DeploySyncReq = 14; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public PublicSoldier.InteractDeploySyncReq getMutableDeploySyncReq() { + bitField0_ |= 0x00000080; + return deploySyncReq; + } + + /** + * optional .InteractDeploySyncReq DeploySyncReq = 14; + * @param value the deploySyncReq to set + * @return this + */ + public SoldierInteractReq setDeploySyncReq(final PublicSoldier.InteractDeploySyncReq value) { + bitField0_ |= 0x00000080; + deploySyncReq.copyFrom(value); + return this; + } + + /** + * optional .InteractClientEventReq ClientEventReq = 15; + * @return whether the clientEventReq field is set + */ + public boolean hasClientEventReq() { + return (bitField0_ & 0x00000100) != 0; + } + + /** + * optional .InteractClientEventReq ClientEventReq = 15; + * @return this + */ + public SoldierInteractReq clearClientEventReq() { + bitField0_ &= ~0x00000100; + clientEventReq.clear(); + return this; + } + + /** + * optional .InteractClientEventReq ClientEventReq = 15; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableClientEventReq()} if you want to modify it. + * + * @return internal storage object for reading + */ + public PublicSoldier.InteractClientEventReq getClientEventReq() { + return clientEventReq; + } + + /** + * optional .InteractClientEventReq ClientEventReq = 15; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public PublicSoldier.InteractClientEventReq getMutableClientEventReq() { + bitField0_ |= 0x00000100; + return clientEventReq; + } + + /** + * optional .InteractClientEventReq ClientEventReq = 15; + * @param value the clientEventReq to set + * @return this + */ + public SoldierInteractReq setClientEventReq(final PublicSoldier.InteractClientEventReq value) { + bitField0_ |= 0x00000100; + clientEventReq.copyFrom(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 SoldierInteractReq 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 SoldierInteractReq addNextPackage(final byte value) { + bitField0_ |= 0x00000200; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierInteractReq addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000200; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierInteractReq setNextPackage(final byte... values) { + bitField0_ |= 0x00000200; + nextPackage.copyFrom(values); + return this; + } + + @Override + public SoldierInteractReq copyFrom(final SoldierInteractReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + id = other.id; + shopReq.copyFrom(other.shopReq); + fightReq.copyFrom(other.fightReq); + battleReq.copyFrom(other.battleReq); + selectReq.copyFrom(other.selectReq); + eventSettlementOfDisputeReq.copyFrom(other.eventSettlementOfDisputeReq); + eventSettlementOfDisputeBattleReq.copyFrom(other.eventSettlementOfDisputeBattleReq); + deploySyncReq.copyFrom(other.deploySyncReq); + clientEventReq.copyFrom(other.clientEventReq); + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierInteractReq mergeFrom(final SoldierInteractReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasId()) { + setId(other.id); + } + if (other.hasShopReq()) { + getMutableShopReq().mergeFrom(other.shopReq); + } + if (other.hasFightReq()) { + getMutableFightReq().mergeFrom(other.fightReq); + } + if (other.hasBattleReq()) { + getMutableBattleReq().mergeFrom(other.battleReq); + } + if (other.hasSelectReq()) { + getMutableSelectReq().mergeFrom(other.selectReq); + } + if (other.hasEventSettlementOfDisputeReq()) { + getMutableEventSettlementOfDisputeReq().mergeFrom(other.eventSettlementOfDisputeReq); + } + if (other.hasEventSettlementOfDisputeBattleReq()) { + getMutableEventSettlementOfDisputeBattleReq().mergeFrom(other.eventSettlementOfDisputeBattleReq); + } + if (other.hasDeploySyncReq()) { + getMutableDeploySyncReq().mergeFrom(other.deploySyncReq); + } + if (other.hasClientEventReq()) { + getMutableClientEventReq().mergeFrom(other.clientEventReq); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierInteractReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + id = 0; + shopReq.clear(); + fightReq.clear(); + battleReq.clear(); + selectReq.clear(); + eventSettlementOfDisputeReq.clear(); + eventSettlementOfDisputeBattleReq.clear(); + deploySyncReq.clear(); + clientEventReq.clear(); + nextPackage.clear(); + return this; + } + + @Override + public SoldierInteractReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + shopReq.clearQuick(); + fightReq.clearQuick(); + battleReq.clearQuick(); + selectReq.clearQuick(); + eventSettlementOfDisputeReq.clearQuick(); + eventSettlementOfDisputeBattleReq.clearQuick(); + deploySyncReq.clearQuick(); + clientEventReq.clearQuick(); + nextPackage.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SoldierInteractReq)) { + return false; + } + SoldierInteractReq other = (SoldierInteractReq) o; + return bitField0_ == other.bitField0_ + && (!hasId() || id == other.id) + && (!hasShopReq() || shopReq.equals(other.shopReq)) + && (!hasFightReq() || fightReq.equals(other.fightReq)) + && (!hasBattleReq() || battleReq.equals(other.battleReq)) + && (!hasSelectReq() || selectReq.equals(other.selectReq)) + && (!hasEventSettlementOfDisputeReq() || eventSettlementOfDisputeReq.equals(other.eventSettlementOfDisputeReq)) + && (!hasEventSettlementOfDisputeBattleReq() || eventSettlementOfDisputeBattleReq.equals(other.eventSettlementOfDisputeBattleReq)) + && (!hasDeploySyncReq() || deploySyncReq.equals(other.deploySyncReq)) + && (!hasClientEventReq() || clientEventReq.equals(other.clientEventReq)) + && (!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) 18); + output.writeMessageNoTag(shopReq); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(fightReq); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 34); + output.writeMessageNoTag(battleReq); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 42); + output.writeMessageNoTag(selectReq); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 50); + output.writeMessageNoTag(eventSettlementOfDisputeReq); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawByte((byte) 58); + output.writeMessageNoTag(eventSettlementOfDisputeBattleReq); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRawByte((byte) 114); + output.writeMessageNoTag(deploySyncReq); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeRawByte((byte) 122); + output.writeMessageNoTag(clientEventReq); + } + if ((bitField0_ & 0x00000200) != 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.computeMessageSizeNoTag(shopReq); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(fightReq); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(battleReq); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(selectReq); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(eventSettlementOfDisputeReq); + } + if ((bitField0_ & 0x00000040) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(eventSettlementOfDisputeBattleReq); + } + if ((bitField0_ & 0x00000080) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(deploySyncReq); + } + if ((bitField0_ & 0x00000100) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(clientEventReq); + } + if ((bitField0_ & 0x00000200) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierInteractReq 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 != 18) { + break; + } + } + case 18: { + // shopReq + input.readMessage(shopReq); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // fightReq + input.readMessage(fightReq); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // battleReq + input.readMessage(battleReq); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 42) { + break; + } + } + case 42: { + // selectReq + input.readMessage(selectReq); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 50) { + break; + } + } + case 50: { + // eventSettlementOfDisputeReq + input.readMessage(eventSettlementOfDisputeReq); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 58) { + break; + } + } + case 58: { + // eventSettlementOfDisputeBattleReq + input.readMessage(eventSettlementOfDisputeBattleReq); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 114) { + break; + } + } + case 114: { + // deploySyncReq + input.readMessage(deploySyncReq); + bitField0_ |= 0x00000080; + tag = input.readTag(); + if (tag != 122) { + break; + } + } + case 122: { + // clientEventReq + input.readMessage(clientEventReq); + bitField0_ |= 0x00000100; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000200; + 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.writeMessage(FieldNames.shopReq, shopReq); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.fightReq, fightReq); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeMessage(FieldNames.battleReq, battleReq); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeMessage(FieldNames.selectReq, selectReq); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeMessage(FieldNames.eventSettlementOfDisputeReq, eventSettlementOfDisputeReq); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeMessage(FieldNames.eventSettlementOfDisputeBattleReq, eventSettlementOfDisputeBattleReq); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeMessage(FieldNames.deploySyncReq, deploySyncReq); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeMessage(FieldNames.clientEventReq, clientEventReq); + } + if ((bitField0_ & 0x00000200) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public SoldierInteractReq 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 -563244632: { + if (input.isAtField(FieldNames.shopReq)) { + if (!input.trySkipNullValue()) { + input.readMessage(shopReq); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -810335602: { + if (input.isAtField(FieldNames.fightReq)) { + if (!input.trySkipNullValue()) { + input.readMessage(fightReq); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1516024998: { + if (input.isAtField(FieldNames.battleReq)) { + if (!input.trySkipNullValue()) { + input.readMessage(battleReq); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 287980002: { + if (input.isAtField(FieldNames.selectReq)) { + if (!input.trySkipNullValue()) { + input.readMessage(selectReq); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2063435092: { + if (input.isAtField(FieldNames.eventSettlementOfDisputeReq)) { + if (!input.trySkipNullValue()) { + input.readMessage(eventSettlementOfDisputeReq); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case 143360252: { + if (input.isAtField(FieldNames.eventSettlementOfDisputeBattleReq)) { + if (!input.trySkipNullValue()) { + input.readMessage(eventSettlementOfDisputeBattleReq); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + case -177983236: { + if (input.isAtField(FieldNames.deploySyncReq)) { + if (!input.trySkipNullValue()) { + input.readMessage(deploySyncReq); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + case -580339537: { + if (input.isAtField(FieldNames.clientEventReq)) { + if (!input.trySkipNullValue()) { + input.readMessage(clientEventReq); + 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; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SoldierInteractReq clone() { + return new SoldierInteractReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierInteractReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierInteractReq(), data).checkInitialized(); + } + + public static SoldierInteractReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierInteractReq(), input).checkInitialized(); + } + + public static SoldierInteractReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierInteractReq(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierInteractReq messages + */ + public static MessageFactory getFactory() { + return SoldierInteractReqFactory.INSTANCE; + } + + private enum SoldierInteractReqFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierInteractReq create() { + return SoldierInteractReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName id = FieldName.forField("Id"); + + static final FieldName shopReq = FieldName.forField("ShopReq"); + + static final FieldName fightReq = FieldName.forField("FightReq"); + + static final FieldName battleReq = FieldName.forField("BattleReq"); + + static final FieldName selectReq = FieldName.forField("SelectReq"); + + static final FieldName eventSettlementOfDisputeReq = FieldName.forField("EventSettlementOfDisputeReq"); + + static final FieldName eventSettlementOfDisputeBattleReq = FieldName.forField("EventSettlementOfDisputeBattleReq"); + + static final FieldName deploySyncReq = FieldName.forField("DeploySyncReq"); + + static final FieldName clientEventReq = FieldName.forField("ClientEventReq"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code SoldierInteractResp} + */ + public static final class SoldierInteractResp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Id = 1; + */ + private int id; + + /** + * optional .ChangeInfo Change = 3; + */ + private final Public.ChangeInfo change = Public.ChangeInfo.newInstance(); + + /** + * optional .SoldierNodeData Node = 4; + */ + private final PublicSoldier.SoldierNodeData node = PublicSoldier.SoldierNodeData.newInstance(); + + /** + * optional .SoldierSyncData SyncData = 5; + */ + private final PublicSoldier.SoldierSyncData syncData = PublicSoldier.SoldierSyncData.newInstance(); + + /** + * optional .InteractShopResp ShopResp = 8; + */ + private final PublicSoldier.InteractShopResp shopResp = PublicSoldier.InteractShopResp.newInstance(); + + /** + * optional .InteractSoldierBattleResp BattleResp = 9; + */ + private final PublicSoldier.InteractSoldierBattleResp battleResp = PublicSoldier.InteractSoldierBattleResp.newInstance(); + + /** + * optional .InteractSoldierSelectResp SelectResp = 10; + */ + private final PublicSoldier.InteractSoldierSelectResp selectResp = PublicSoldier.InteractSoldierSelectResp.newInstance(); + + /** + * optional .InteractEventSettlementOfDisputeResp EventSettlementOfDisputeResp = 11; + */ + private final PublicSoldier.InteractEventSettlementOfDisputeResp eventSettlementOfDisputeResp = PublicSoldier.InteractEventSettlementOfDisputeResp.newInstance(); + + /** + * optional .InteractEventSettlementOfDisputeBattleResp EventSettlementOfDisputeBattleResp = 12; + */ + private final PublicSoldier.InteractEventSettlementOfDisputeBattleResp eventSettlementOfDisputeBattleResp = PublicSoldier.InteractEventSettlementOfDisputeBattleResp.newInstance(); + + /** + * optional .Nil NilResp = 14; + */ + private final Public.Nil nilResp = Public.Nil.newInstance(); + + /** + * optional .SoldierSettleDataResp Settle = 15; + */ + private final PublicSoldier.SoldierSettleDataResp settle = PublicSoldier.SoldierSettleDataResp.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .SoldierCase Cases = 2; + */ + private final RepeatedMessage cases = RepeatedMessage.newEmptyInstance(PublicSoldier.SoldierCase.getFactory()); + + /** + * repeated .SoldierEffect Effects = 6; + */ + private final RepeatedMessage effects = RepeatedMessage.newEmptyInstance(PublicSoldier.SoldierEffect.getFactory()); + + private SoldierInteractResp() { + } + + /** + * @return a new empty instance of {@code SoldierInteractResp} + */ + public static SoldierInteractResp newInstance() { + return new SoldierInteractResp(); + } + + /** + * 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 SoldierInteractResp 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 SoldierInteractResp setId(final int value) { + bitField0_ |= 0x00000001; + id = value; + return this; + } + + /** + * optional .ChangeInfo Change = 3; + * @return whether the change field is set + */ + public boolean hasChange() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .ChangeInfo Change = 3; + * @return this + */ + public SoldierInteractResp clearChange() { + bitField0_ &= ~0x00000002; + change.clear(); + return this; + } + + /** + * optional .ChangeInfo Change = 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 #getMutableChange()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.ChangeInfo getChange() { + return change; + } + + /** + * optional .ChangeInfo Change = 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 Public.ChangeInfo getMutableChange() { + bitField0_ |= 0x00000002; + return change; + } + + /** + * optional .ChangeInfo Change = 3; + * @param value the change to set + * @return this + */ + public SoldierInteractResp setChange(final Public.ChangeInfo value) { + bitField0_ |= 0x00000002; + change.copyFrom(value); + return this; + } + + /** + * optional .SoldierNodeData Node = 4; + * @return whether the node field is set + */ + public boolean hasNode() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .SoldierNodeData Node = 4; + * @return this + */ + public SoldierInteractResp clearNode() { + bitField0_ &= ~0x00000004; + node.clear(); + return this; + } + + /** + * optional .SoldierNodeData Node = 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 #getMutableNode()} if you want to modify it. + * + * @return internal storage object for reading + */ + public PublicSoldier.SoldierNodeData getNode() { + return node; + } + + /** + * optional .SoldierNodeData Node = 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 PublicSoldier.SoldierNodeData getMutableNode() { + bitField0_ |= 0x00000004; + return node; + } + + /** + * optional .SoldierNodeData Node = 4; + * @param value the node to set + * @return this + */ + public SoldierInteractResp setNode(final PublicSoldier.SoldierNodeData value) { + bitField0_ |= 0x00000004; + node.copyFrom(value); + return this; + } + + /** + * optional .SoldierSyncData SyncData = 5; + * @return whether the syncData field is set + */ + public boolean hasSyncData() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .SoldierSyncData SyncData = 5; + * @return this + */ + public SoldierInteractResp clearSyncData() { + bitField0_ &= ~0x00000008; + syncData.clear(); + return this; + } + + /** + * optional .SoldierSyncData SyncData = 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 #getMutableSyncData()} if you want to modify it. + * + * @return internal storage object for reading + */ + public PublicSoldier.SoldierSyncData getSyncData() { + return syncData; + } + + /** + * optional .SoldierSyncData SyncData = 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 PublicSoldier.SoldierSyncData getMutableSyncData() { + bitField0_ |= 0x00000008; + return syncData; + } + + /** + * optional .SoldierSyncData SyncData = 5; + * @param value the syncData to set + * @return this + */ + public SoldierInteractResp setSyncData(final PublicSoldier.SoldierSyncData value) { + bitField0_ |= 0x00000008; + syncData.copyFrom(value); + return this; + } + + /** + * optional .InteractShopResp ShopResp = 8; + * @return whether the shopResp field is set + */ + public boolean hasShopResp() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional .InteractShopResp ShopResp = 8; + * @return this + */ + public SoldierInteractResp clearShopResp() { + bitField0_ &= ~0x00000010; + shopResp.clear(); + return this; + } + + /** + * optional .InteractShopResp ShopResp = 8; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableShopResp()} if you want to modify it. + * + * @return internal storage object for reading + */ + public PublicSoldier.InteractShopResp getShopResp() { + return shopResp; + } + + /** + * optional .InteractShopResp ShopResp = 8; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public PublicSoldier.InteractShopResp getMutableShopResp() { + bitField0_ |= 0x00000010; + return shopResp; + } + + /** + * optional .InteractShopResp ShopResp = 8; + * @param value the shopResp to set + * @return this + */ + public SoldierInteractResp setShopResp(final PublicSoldier.InteractShopResp value) { + bitField0_ |= 0x00000010; + shopResp.copyFrom(value); + return this; + } + + /** + * optional .InteractSoldierBattleResp BattleResp = 9; + * @return whether the battleResp field is set + */ + public boolean hasBattleResp() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional .InteractSoldierBattleResp BattleResp = 9; + * @return this + */ + public SoldierInteractResp clearBattleResp() { + bitField0_ &= ~0x00000020; + battleResp.clear(); + return this; + } + + /** + * optional .InteractSoldierBattleResp BattleResp = 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 #getMutableBattleResp()} if you want to modify it. + * + * @return internal storage object for reading + */ + public PublicSoldier.InteractSoldierBattleResp getBattleResp() { + return battleResp; + } + + /** + * optional .InteractSoldierBattleResp BattleResp = 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 PublicSoldier.InteractSoldierBattleResp getMutableBattleResp() { + bitField0_ |= 0x00000020; + return battleResp; + } + + /** + * optional .InteractSoldierBattleResp BattleResp = 9; + * @param value the battleResp to set + * @return this + */ + public SoldierInteractResp setBattleResp(final PublicSoldier.InteractSoldierBattleResp value) { + bitField0_ |= 0x00000020; + battleResp.copyFrom(value); + return this; + } + + /** + * optional .InteractSoldierSelectResp SelectResp = 10; + * @return whether the selectResp field is set + */ + public boolean hasSelectResp() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional .InteractSoldierSelectResp SelectResp = 10; + * @return this + */ + public SoldierInteractResp clearSelectResp() { + bitField0_ &= ~0x00000040; + selectResp.clear(); + return this; + } + + /** + * optional .InteractSoldierSelectResp SelectResp = 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 #getMutableSelectResp()} if you want to modify it. + * + * @return internal storage object for reading + */ + public PublicSoldier.InteractSoldierSelectResp getSelectResp() { + return selectResp; + } + + /** + * optional .InteractSoldierSelectResp SelectResp = 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 PublicSoldier.InteractSoldierSelectResp getMutableSelectResp() { + bitField0_ |= 0x00000040; + return selectResp; + } + + /** + * optional .InteractSoldierSelectResp SelectResp = 10; + * @param value the selectResp to set + * @return this + */ + public SoldierInteractResp setSelectResp(final PublicSoldier.InteractSoldierSelectResp value) { + bitField0_ |= 0x00000040; + selectResp.copyFrom(value); + return this; + } + + /** + * optional .InteractEventSettlementOfDisputeResp EventSettlementOfDisputeResp = 11; + * @return whether the eventSettlementOfDisputeResp field is set + */ + public boolean hasEventSettlementOfDisputeResp() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * optional .InteractEventSettlementOfDisputeResp EventSettlementOfDisputeResp = 11; + * @return this + */ + public SoldierInteractResp clearEventSettlementOfDisputeResp() { + bitField0_ &= ~0x00000080; + eventSettlementOfDisputeResp.clear(); + return this; + } + + /** + * optional .InteractEventSettlementOfDisputeResp EventSettlementOfDisputeResp = 11; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableEventSettlementOfDisputeResp()} if you want to modify it. + * + * @return internal storage object for reading + */ + public PublicSoldier.InteractEventSettlementOfDisputeResp getEventSettlementOfDisputeResp() { + return eventSettlementOfDisputeResp; + } + + /** + * optional .InteractEventSettlementOfDisputeResp EventSettlementOfDisputeResp = 11; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public PublicSoldier.InteractEventSettlementOfDisputeResp getMutableEventSettlementOfDisputeResp( + ) { + bitField0_ |= 0x00000080; + return eventSettlementOfDisputeResp; + } + + /** + * optional .InteractEventSettlementOfDisputeResp EventSettlementOfDisputeResp = 11; + * @param value the eventSettlementOfDisputeResp to set + * @return this + */ + public SoldierInteractResp setEventSettlementOfDisputeResp( + final PublicSoldier.InteractEventSettlementOfDisputeResp value) { + bitField0_ |= 0x00000080; + eventSettlementOfDisputeResp.copyFrom(value); + return this; + } + + /** + * optional .InteractEventSettlementOfDisputeBattleResp EventSettlementOfDisputeBattleResp = 12; + * @return whether the eventSettlementOfDisputeBattleResp field is set + */ + public boolean hasEventSettlementOfDisputeBattleResp() { + return (bitField0_ & 0x00000100) != 0; + } + + /** + * optional .InteractEventSettlementOfDisputeBattleResp EventSettlementOfDisputeBattleResp = 12; + * @return this + */ + public SoldierInteractResp clearEventSettlementOfDisputeBattleResp() { + bitField0_ &= ~0x00000100; + eventSettlementOfDisputeBattleResp.clear(); + return this; + } + + /** + * optional .InteractEventSettlementOfDisputeBattleResp EventSettlementOfDisputeBattleResp = 12; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableEventSettlementOfDisputeBattleResp()} if you want to modify it. + * + * @return internal storage object for reading + */ + public PublicSoldier.InteractEventSettlementOfDisputeBattleResp getEventSettlementOfDisputeBattleResp( + ) { + return eventSettlementOfDisputeBattleResp; + } + + /** + * optional .InteractEventSettlementOfDisputeBattleResp EventSettlementOfDisputeBattleResp = 12; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public PublicSoldier.InteractEventSettlementOfDisputeBattleResp getMutableEventSettlementOfDisputeBattleResp( + ) { + bitField0_ |= 0x00000100; + return eventSettlementOfDisputeBattleResp; + } + + /** + * optional .InteractEventSettlementOfDisputeBattleResp EventSettlementOfDisputeBattleResp = 12; + * @param value the eventSettlementOfDisputeBattleResp to set + * @return this + */ + public SoldierInteractResp setEventSettlementOfDisputeBattleResp( + final PublicSoldier.InteractEventSettlementOfDisputeBattleResp value) { + bitField0_ |= 0x00000100; + eventSettlementOfDisputeBattleResp.copyFrom(value); + return this; + } + + /** + * optional .Nil NilResp = 14; + * @return whether the nilResp field is set + */ + public boolean hasNilResp() { + return (bitField0_ & 0x00000200) != 0; + } + + /** + * optional .Nil NilResp = 14; + * @return this + */ + public SoldierInteractResp clearNilResp() { + bitField0_ &= ~0x00000200; + nilResp.clear(); + return this; + } + + /** + * optional .Nil NilResp = 14; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableNilResp()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.Nil getNilResp() { + return nilResp; + } + + /** + * optional .Nil NilResp = 14; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public Public.Nil getMutableNilResp() { + bitField0_ |= 0x00000200; + return nilResp; + } + + /** + * optional .Nil NilResp = 14; + * @param value the nilResp to set + * @return this + */ + public SoldierInteractResp setNilResp(final Public.Nil value) { + bitField0_ |= 0x00000200; + nilResp.copyFrom(value); + return this; + } + + /** + * optional .SoldierSettleDataResp Settle = 15; + * @return whether the settle field is set + */ + public boolean hasSettle() { + return (bitField0_ & 0x00000400) != 0; + } + + /** + * optional .SoldierSettleDataResp Settle = 15; + * @return this + */ + public SoldierInteractResp clearSettle() { + bitField0_ &= ~0x00000400; + settle.clear(); + return this; + } + + /** + * optional .SoldierSettleDataResp Settle = 15; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableSettle()} if you want to modify it. + * + * @return internal storage object for reading + */ + public PublicSoldier.SoldierSettleDataResp getSettle() { + return settle; + } + + /** + * optional .SoldierSettleDataResp Settle = 15; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public PublicSoldier.SoldierSettleDataResp getMutableSettle() { + bitField0_ |= 0x00000400; + return settle; + } + + /** + * optional .SoldierSettleDataResp Settle = 15; + * @param value the settle to set + * @return this + */ + public SoldierInteractResp setSettle(final PublicSoldier.SoldierSettleDataResp value) { + bitField0_ |= 0x00000400; + settle.copyFrom(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000800) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public SoldierInteractResp clearNextPackage() { + bitField0_ &= ~0x00000800; + 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_ |= 0x00000800; + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public SoldierInteractResp addNextPackage(final byte value) { + bitField0_ |= 0x00000800; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierInteractResp addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000800; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierInteractResp setNextPackage(final byte... values) { + bitField0_ |= 0x00000800; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .SoldierCase Cases = 2; + * @return whether the cases field is set + */ + public boolean hasCases() { + return (bitField0_ & 0x00001000) != 0; + } + + /** + * repeated .SoldierCase Cases = 2; + * @return this + */ + public SoldierInteractResp clearCases() { + bitField0_ &= ~0x00001000; + cases.clear(); + return this; + } + + /** + * repeated .SoldierCase Cases = 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 #getMutableCases()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getCases() { + return cases; + } + + /** + * repeated .SoldierCase Cases = 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 getMutableCases() { + bitField0_ |= 0x00001000; + return cases; + } + + /** + * repeated .SoldierCase Cases = 2; + * @param value the cases to add + * @return this + */ + public SoldierInteractResp addCases(final PublicSoldier.SoldierCase value) { + bitField0_ |= 0x00001000; + cases.add(value); + return this; + } + + /** + * repeated .SoldierCase Cases = 2; + * @param values the cases to add + * @return this + */ + public SoldierInteractResp addAllCases(final PublicSoldier.SoldierCase... values) { + bitField0_ |= 0x00001000; + cases.addAll(values); + return this; + } + + /** + * repeated .SoldierEffect Effects = 6; + * @return whether the effects field is set + */ + public boolean hasEffects() { + return (bitField0_ & 0x00002000) != 0; + } + + /** + * repeated .SoldierEffect Effects = 6; + * @return this + */ + public SoldierInteractResp clearEffects() { + bitField0_ &= ~0x00002000; + effects.clear(); + return this; + } + + /** + * repeated .SoldierEffect Effects = 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 #getMutableEffects()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getEffects() { + return effects; + } + + /** + * repeated .SoldierEffect Effects = 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 getMutableEffects() { + bitField0_ |= 0x00002000; + return effects; + } + + /** + * repeated .SoldierEffect Effects = 6; + * @param value the effects to add + * @return this + */ + public SoldierInteractResp addEffects(final PublicSoldier.SoldierEffect value) { + bitField0_ |= 0x00002000; + effects.add(value); + return this; + } + + /** + * repeated .SoldierEffect Effects = 6; + * @param values the effects to add + * @return this + */ + public SoldierInteractResp addAllEffects(final PublicSoldier.SoldierEffect... values) { + bitField0_ |= 0x00002000; + effects.addAll(values); + return this; + } + + @Override + public SoldierInteractResp copyFrom(final SoldierInteractResp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + id = other.id; + change.copyFrom(other.change); + node.copyFrom(other.node); + syncData.copyFrom(other.syncData); + shopResp.copyFrom(other.shopResp); + battleResp.copyFrom(other.battleResp); + selectResp.copyFrom(other.selectResp); + eventSettlementOfDisputeResp.copyFrom(other.eventSettlementOfDisputeResp); + eventSettlementOfDisputeBattleResp.copyFrom(other.eventSettlementOfDisputeBattleResp); + nilResp.copyFrom(other.nilResp); + settle.copyFrom(other.settle); + nextPackage.copyFrom(other.nextPackage); + cases.copyFrom(other.cases); + effects.copyFrom(other.effects); + } + return this; + } + + @Override + public SoldierInteractResp mergeFrom(final SoldierInteractResp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasId()) { + setId(other.id); + } + if (other.hasChange()) { + getMutableChange().mergeFrom(other.change); + } + if (other.hasNode()) { + getMutableNode().mergeFrom(other.node); + } + if (other.hasSyncData()) { + getMutableSyncData().mergeFrom(other.syncData); + } + if (other.hasShopResp()) { + getMutableShopResp().mergeFrom(other.shopResp); + } + if (other.hasBattleResp()) { + getMutableBattleResp().mergeFrom(other.battleResp); + } + if (other.hasSelectResp()) { + getMutableSelectResp().mergeFrom(other.selectResp); + } + if (other.hasEventSettlementOfDisputeResp()) { + getMutableEventSettlementOfDisputeResp().mergeFrom(other.eventSettlementOfDisputeResp); + } + if (other.hasEventSettlementOfDisputeBattleResp()) { + getMutableEventSettlementOfDisputeBattleResp().mergeFrom(other.eventSettlementOfDisputeBattleResp); + } + if (other.hasNilResp()) { + getMutableNilResp().mergeFrom(other.nilResp); + } + if (other.hasSettle()) { + getMutableSettle().mergeFrom(other.settle); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasCases()) { + getMutableCases().addAll(other.cases); + } + if (other.hasEffects()) { + getMutableEffects().addAll(other.effects); + } + return this; + } + + @Override + public SoldierInteractResp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + id = 0; + change.clear(); + node.clear(); + syncData.clear(); + shopResp.clear(); + battleResp.clear(); + selectResp.clear(); + eventSettlementOfDisputeResp.clear(); + eventSettlementOfDisputeBattleResp.clear(); + nilResp.clear(); + settle.clear(); + nextPackage.clear(); + cases.clear(); + effects.clear(); + return this; + } + + @Override + public SoldierInteractResp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + change.clearQuick(); + node.clearQuick(); + syncData.clearQuick(); + shopResp.clearQuick(); + battleResp.clearQuick(); + selectResp.clearQuick(); + eventSettlementOfDisputeResp.clearQuick(); + eventSettlementOfDisputeBattleResp.clearQuick(); + nilResp.clearQuick(); + settle.clearQuick(); + nextPackage.clear(); + cases.clearQuick(); + effects.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SoldierInteractResp)) { + return false; + } + SoldierInteractResp other = (SoldierInteractResp) o; + return bitField0_ == other.bitField0_ + && (!hasId() || id == other.id) + && (!hasChange() || change.equals(other.change)) + && (!hasNode() || node.equals(other.node)) + && (!hasSyncData() || syncData.equals(other.syncData)) + && (!hasShopResp() || shopResp.equals(other.shopResp)) + && (!hasBattleResp() || battleResp.equals(other.battleResp)) + && (!hasSelectResp() || selectResp.equals(other.selectResp)) + && (!hasEventSettlementOfDisputeResp() || eventSettlementOfDisputeResp.equals(other.eventSettlementOfDisputeResp)) + && (!hasEventSettlementOfDisputeBattleResp() || eventSettlementOfDisputeBattleResp.equals(other.eventSettlementOfDisputeBattleResp)) + && (!hasNilResp() || nilResp.equals(other.nilResp)) + && (!hasSettle() || settle.equals(other.settle)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasCases() || cases.equals(other.cases)) + && (!hasEffects() || effects.equals(other.effects)); + } + + @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) 26); + output.writeMessageNoTag(change); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 34); + output.writeMessageNoTag(node); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 42); + output.writeMessageNoTag(syncData); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 66); + output.writeMessageNoTag(shopResp); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 74); + output.writeMessageNoTag(battleResp); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawByte((byte) 82); + output.writeMessageNoTag(selectResp); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRawByte((byte) 90); + output.writeMessageNoTag(eventSettlementOfDisputeResp); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeRawByte((byte) 98); + output.writeMessageNoTag(eventSettlementOfDisputeBattleResp); + } + if ((bitField0_ & 0x00000200) != 0) { + output.writeRawByte((byte) 114); + output.writeMessageNoTag(nilResp); + } + if ((bitField0_ & 0x00000400) != 0) { + output.writeRawByte((byte) 122); + output.writeMessageNoTag(settle); + } + if ((bitField0_ & 0x00000800) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00001000) != 0) { + for (int i = 0; i < cases.length(); i++) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(cases.get(i)); + } + } + if ((bitField0_ & 0x00002000) != 0) { + for (int i = 0; i < effects.length(); i++) { + output.writeRawByte((byte) 50); + output.writeMessageNoTag(effects.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(id); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(change); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(node); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(syncData); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(shopResp); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(battleResp); + } + if ((bitField0_ & 0x00000040) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(selectResp); + } + if ((bitField0_ & 0x00000080) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(eventSettlementOfDisputeResp); + } + if ((bitField0_ & 0x00000100) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(eventSettlementOfDisputeBattleResp); + } + if ((bitField0_ & 0x00000200) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(nilResp); + } + if ((bitField0_ & 0x00000400) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(settle); + } + if ((bitField0_ & 0x00000800) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00001000) != 0) { + size += (1 * cases.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(cases); + } + if ((bitField0_ & 0x00002000) != 0) { + size += (1 * effects.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(effects); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierInteractResp 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 != 26) { + break; + } + } + case 26: { + // change + input.readMessage(change); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // node + input.readMessage(node); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 42) { + break; + } + } + case 42: { + // syncData + input.readMessage(syncData); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 66) { + break; + } + } + case 66: { + // shopResp + input.readMessage(shopResp); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 74) { + break; + } + } + case 74: { + // battleResp + input.readMessage(battleResp); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 82) { + break; + } + } + case 82: { + // selectResp + input.readMessage(selectResp); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 90) { + break; + } + } + case 90: { + // eventSettlementOfDisputeResp + input.readMessage(eventSettlementOfDisputeResp); + bitField0_ |= 0x00000080; + tag = input.readTag(); + if (tag != 98) { + break; + } + } + case 98: { + // eventSettlementOfDisputeBattleResp + input.readMessage(eventSettlementOfDisputeBattleResp); + bitField0_ |= 0x00000100; + tag = input.readTag(); + if (tag != 114) { + break; + } + } + case 114: { + // nilResp + input.readMessage(nilResp); + bitField0_ |= 0x00000200; + tag = input.readTag(); + if (tag != 122) { + break; + } + } + case 122: { + // settle + input.readMessage(settle); + bitField0_ |= 0x00000400; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000800; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // cases + tag = input.readRepeatedMessage(cases, tag); + bitField0_ |= 0x00001000; + if (tag != 50) { + break; + } + } + case 50: { + // effects + tag = input.readRepeatedMessage(effects, tag); + bitField0_ |= 0x00002000; + 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.writeMessage(FieldNames.change, change); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.node, node); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeMessage(FieldNames.syncData, syncData); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeMessage(FieldNames.shopResp, shopResp); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeMessage(FieldNames.battleResp, battleResp); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeMessage(FieldNames.selectResp, selectResp); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeMessage(FieldNames.eventSettlementOfDisputeResp, eventSettlementOfDisputeResp); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeMessage(FieldNames.eventSettlementOfDisputeBattleResp, eventSettlementOfDisputeBattleResp); + } + if ((bitField0_ & 0x00000200) != 0) { + output.writeMessage(FieldNames.nilResp, nilResp); + } + if ((bitField0_ & 0x00000400) != 0) { + output.writeMessage(FieldNames.settle, settle); + } + if ((bitField0_ & 0x00000800) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00001000) != 0) { + output.writeRepeatedMessage(FieldNames.cases, cases); + } + if ((bitField0_ & 0x00002000) != 0) { + output.writeRepeatedMessage(FieldNames.effects, effects); + } + output.endObject(); + } + + @Override + public SoldierInteractResp 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 2017198032: { + if (input.isAtField(FieldNames.change)) { + if (!input.trySkipNullValue()) { + input.readMessage(change); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2433570: { + if (input.isAtField(FieldNames.node)) { + if (!input.trySkipNullValue()) { + input.readMessage(node); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1880890629: { + if (input.isAtField(FieldNames.syncData)) { + if (!input.trySkipNullValue()) { + input.readMessage(syncData); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -280714234: { + if (input.isAtField(FieldNames.shopResp)) { + if (!input.trySkipNullValue()) { + input.readMessage(shopResp); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case -247865144: { + if (input.isAtField(FieldNames.battleResp)) { + if (!input.trySkipNullValue()) { + input.readMessage(battleResp); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case 337445644: { + if (input.isAtField(FieldNames.selectResp)) { + if (!input.trySkipNullValue()) { + input.readMessage(selectResp); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + case -458021414: { + if (input.isAtField(FieldNames.eventSettlementOfDisputeResp)) { + if (!input.trySkipNullValue()) { + input.readMessage(eventSettlementOfDisputeResp); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + case 149200690: { + if (input.isAtField(FieldNames.eventSettlementOfDisputeBattleResp)) { + if (!input.trySkipNullValue()) { + input.readMessage(eventSettlementOfDisputeBattleResp); + bitField0_ |= 0x00000100; + } + } else { + input.skipUnknownField(); + } + break; + } + case -680812191: { + if (input.isAtField(FieldNames.nilResp)) { + if (!input.trySkipNullValue()) { + input.readMessage(nilResp); + bitField0_ |= 0x00000200; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1821901461: { + if (input.isAtField(FieldNames.settle)) { + if (!input.trySkipNullValue()) { + input.readMessage(settle); + bitField0_ |= 0x00000400; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000800; + } + } else { + input.skipUnknownField(); + } + break; + } + case 64879395: { + if (input.isAtField(FieldNames.cases)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(cases); + bitField0_ |= 0x00001000; + } + } else { + input.skipUnknownField(); + } + break; + } + case -169275166: { + if (input.isAtField(FieldNames.effects)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(effects); + bitField0_ |= 0x00002000; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SoldierInteractResp clone() { + return new SoldierInteractResp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierInteractResp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierInteractResp(), data).checkInitialized(); + } + + public static SoldierInteractResp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierInteractResp(), input).checkInitialized(); + } + + public static SoldierInteractResp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierInteractResp(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierInteractResp messages + */ + public static MessageFactory getFactory() { + return SoldierInteractRespFactory.INSTANCE; + } + + private enum SoldierInteractRespFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierInteractResp create() { + return SoldierInteractResp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName id = FieldName.forField("Id"); + + static final FieldName change = FieldName.forField("Change"); + + static final FieldName node = FieldName.forField("Node"); + + static final FieldName syncData = FieldName.forField("SyncData"); + + static final FieldName shopResp = FieldName.forField("ShopResp"); + + static final FieldName battleResp = FieldName.forField("BattleResp"); + + static final FieldName selectResp = FieldName.forField("SelectResp"); + + static final FieldName eventSettlementOfDisputeResp = FieldName.forField("EventSettlementOfDisputeResp"); + + static final FieldName eventSettlementOfDisputeBattleResp = FieldName.forField("EventSettlementOfDisputeBattleResp"); + + static final FieldName nilResp = FieldName.forField("NilResp"); + + static final FieldName settle = FieldName.forField("Settle"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName cases = FieldName.forField("Cases"); + + static final FieldName effects = FieldName.forField("Effects"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/SoldierPartnerTrace.java b/src/generated/main/emu/nebula/proto/SoldierPartnerTrace.java new file mode 100644 index 0000000..fbc8a15 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/SoldierPartnerTrace.java @@ -0,0 +1,463 @@ +// 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 SoldierPartnerTrace { + /** + * Protobuf type {@code SoldierPartnerTraceReq} + */ + public static final class SoldierPartnerTraceReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 PartnerType = 1; + */ + private int partnerType; + + /** + * optional bool Trace = 2; + */ + private boolean trace; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private SoldierPartnerTraceReq() { + } + + /** + * @return a new empty instance of {@code SoldierPartnerTraceReq} + */ + public static SoldierPartnerTraceReq newInstance() { + return new SoldierPartnerTraceReq(); + } + + /** + * optional uint32 PartnerType = 1; + * @return whether the partnerType field is set + */ + public boolean hasPartnerType() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 PartnerType = 1; + * @return this + */ + public SoldierPartnerTraceReq clearPartnerType() { + bitField0_ &= ~0x00000001; + partnerType = 0; + return this; + } + + /** + * optional uint32 PartnerType = 1; + * @return the partnerType + */ + public int getPartnerType() { + return partnerType; + } + + /** + * optional uint32 PartnerType = 1; + * @param value the partnerType to set + * @return this + */ + public SoldierPartnerTraceReq setPartnerType(final int value) { + bitField0_ |= 0x00000001; + partnerType = value; + return this; + } + + /** + * optional bool Trace = 2; + * @return whether the trace field is set + */ + public boolean hasTrace() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bool Trace = 2; + * @return this + */ + public SoldierPartnerTraceReq clearTrace() { + bitField0_ &= ~0x00000002; + trace = false; + return this; + } + + /** + * optional bool Trace = 2; + * @return the trace + */ + public boolean getTrace() { + return trace; + } + + /** + * optional bool Trace = 2; + * @param value the trace to set + * @return this + */ + public SoldierPartnerTraceReq setTrace(final boolean value) { + bitField0_ |= 0x00000002; + trace = 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 SoldierPartnerTraceReq 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 SoldierPartnerTraceReq addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierPartnerTraceReq addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierPartnerTraceReq setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + @Override + public SoldierPartnerTraceReq copyFrom(final SoldierPartnerTraceReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + partnerType = other.partnerType; + trace = other.trace; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierPartnerTraceReq mergeFrom(final SoldierPartnerTraceReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasPartnerType()) { + setPartnerType(other.partnerType); + } + if (other.hasTrace()) { + setTrace(other.trace); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierPartnerTraceReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + partnerType = 0; + trace = false; + nextPackage.clear(); + return this; + } + + @Override + public SoldierPartnerTraceReq 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 SoldierPartnerTraceReq)) { + return false; + } + SoldierPartnerTraceReq other = (SoldierPartnerTraceReq) o; + return bitField0_ == other.bitField0_ + && (!hasPartnerType() || partnerType == other.partnerType) + && (!hasTrace() || trace == other.trace) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(partnerType); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeBoolNoTag(trace); + } + 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(partnerType); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierPartnerTraceReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // partnerType + partnerType = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // trace + trace = 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.partnerType, partnerType); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBool(FieldNames.trace, trace); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public SoldierPartnerTraceReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1652366334: { + if (input.isAtField(FieldNames.partnerType)) { + if (!input.trySkipNullValue()) { + partnerType = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 81068325: { + if (input.isAtField(FieldNames.trace)) { + if (!input.trySkipNullValue()) { + trace = 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 SoldierPartnerTraceReq clone() { + return new SoldierPartnerTraceReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierPartnerTraceReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierPartnerTraceReq(), data).checkInitialized(); + } + + public static SoldierPartnerTraceReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierPartnerTraceReq(), input).checkInitialized(); + } + + public static SoldierPartnerTraceReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierPartnerTraceReq(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierPartnerTraceReq messages + */ + public static MessageFactory getFactory() { + return SoldierPartnerTraceReqFactory.INSTANCE; + } + + private enum SoldierPartnerTraceReqFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierPartnerTraceReq create() { + return SoldierPartnerTraceReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName partnerType = FieldName.forField("PartnerType"); + + static final FieldName trace = FieldName.forField("Trace"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/SoldierStepOut.java b/src/generated/main/emu/nebula/proto/SoldierStepOut.java new file mode 100644 index 0000000..bd14df6 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/SoldierStepOut.java @@ -0,0 +1,404 @@ +// 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 SoldierStepOut { + /** + * Protobuf type {@code SoldierStepOutReq} + */ + public static final class SoldierStepOutReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .SoldierDeploy Deploy = 1; + */ + private final PublicSoldier.SoldierDeploy deploy = PublicSoldier.SoldierDeploy.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private SoldierStepOutReq() { + } + + /** + * @return a new empty instance of {@code SoldierStepOutReq} + */ + public static SoldierStepOutReq newInstance() { + return new SoldierStepOutReq(); + } + + /** + * optional .SoldierDeploy Deploy = 1; + * @return whether the deploy field is set + */ + public boolean hasDeploy() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .SoldierDeploy Deploy = 1; + * @return this + */ + public SoldierStepOutReq clearDeploy() { + bitField0_ &= ~0x00000001; + deploy.clear(); + return this; + } + + /** + * optional .SoldierDeploy Deploy = 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 #getMutableDeploy()} if you want to modify it. + * + * @return internal storage object for reading + */ + public PublicSoldier.SoldierDeploy getDeploy() { + return deploy; + } + + /** + * optional .SoldierDeploy Deploy = 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 PublicSoldier.SoldierDeploy getMutableDeploy() { + bitField0_ |= 0x00000001; + return deploy; + } + + /** + * optional .SoldierDeploy Deploy = 1; + * @param value the deploy to set + * @return this + */ + public SoldierStepOutReq setDeploy(final PublicSoldier.SoldierDeploy value) { + bitField0_ |= 0x00000001; + deploy.copyFrom(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 SoldierStepOutReq 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 SoldierStepOutReq addNextPackage(final byte value) { + bitField0_ |= 0x00000002; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierStepOutReq addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierStepOutReq setNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.copyFrom(values); + return this; + } + + @Override + public SoldierStepOutReq copyFrom(final SoldierStepOutReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + deploy.copyFrom(other.deploy); + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierStepOutReq mergeFrom(final SoldierStepOutReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasDeploy()) { + getMutableDeploy().mergeFrom(other.deploy); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierStepOutReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + deploy.clear(); + nextPackage.clear(); + return this; + } + + @Override + public SoldierStepOutReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + deploy.clearQuick(); + nextPackage.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SoldierStepOutReq)) { + return false; + } + SoldierStepOutReq other = (SoldierStepOutReq) o; + return bitField0_ == other.bitField0_ + && (!hasDeploy() || deploy.equals(other.deploy)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(deploy); + } + 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.computeMessageSizeNoTag(deploy); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierStepOutReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 10: { + // deploy + input.readMessage(deploy); + 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.writeMessage(FieldNames.deploy, deploy); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public SoldierStepOutReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 2043501831: { + if (input.isAtField(FieldNames.deploy)) { + if (!input.trySkipNullValue()) { + input.readMessage(deploy); + 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 SoldierStepOutReq clone() { + return new SoldierStepOutReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierStepOutReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierStepOutReq(), data).checkInitialized(); + } + + public static SoldierStepOutReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierStepOutReq(), input).checkInitialized(); + } + + public static SoldierStepOutReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierStepOutReq(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierStepOutReq messages + */ + public static MessageFactory getFactory() { + return SoldierStepOutReqFactory.INSTANCE; + } + + private enum SoldierStepOutReqFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierStepOutReq create() { + return SoldierStepOutReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName deploy = FieldName.forField("Deploy"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/TraceHuntApply.java b/src/generated/main/emu/nebula/proto/TraceHuntApply.java new file mode 100644 index 0000000..c635ef9 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/TraceHuntApply.java @@ -0,0 +1,623 @@ +// 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 TraceHuntApply { + /** + * Protobuf type {@code TraceHuntApplyReq} + */ + public static final class TraceHuntApplyReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional int64 BossCreateTime = 4; + */ + private long bossCreateTime; + + /** + * optional uint64 OwnerUID = 1; + */ + private long ownerUID; + + /** + * optional uint64 BuildID = 3; + */ + private long buildID; + + /** + * optional uint32 BossID = 2; + */ + private int bossID; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private TraceHuntApplyReq() { + } + + /** + * @return a new empty instance of {@code TraceHuntApplyReq} + */ + public static TraceHuntApplyReq newInstance() { + return new TraceHuntApplyReq(); + } + + /** + * optional int64 BossCreateTime = 4; + * @return whether the bossCreateTime field is set + */ + public boolean hasBossCreateTime() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional int64 BossCreateTime = 4; + * @return this + */ + public TraceHuntApplyReq clearBossCreateTime() { + bitField0_ &= ~0x00000001; + bossCreateTime = 0L; + return this; + } + + /** + * optional int64 BossCreateTime = 4; + * @return the bossCreateTime + */ + public long getBossCreateTime() { + return bossCreateTime; + } + + /** + * optional int64 BossCreateTime = 4; + * @param value the bossCreateTime to set + * @return this + */ + public TraceHuntApplyReq setBossCreateTime(final long value) { + bitField0_ |= 0x00000001; + bossCreateTime = value; + return this; + } + + /** + * optional uint64 OwnerUID = 1; + * @return whether the ownerUID field is set + */ + public boolean hasOwnerUID() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint64 OwnerUID = 1; + * @return this + */ + public TraceHuntApplyReq clearOwnerUID() { + bitField0_ &= ~0x00000002; + ownerUID = 0L; + return this; + } + + /** + * optional uint64 OwnerUID = 1; + * @return the ownerUID + */ + public long getOwnerUID() { + return ownerUID; + } + + /** + * optional uint64 OwnerUID = 1; + * @param value the ownerUID to set + * @return this + */ + public TraceHuntApplyReq setOwnerUID(final long value) { + bitField0_ |= 0x00000002; + ownerUID = value; + return this; + } + + /** + * optional uint64 BuildID = 3; + * @return whether the buildID field is set + */ + public boolean hasBuildID() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint64 BuildID = 3; + * @return this + */ + public TraceHuntApplyReq clearBuildID() { + bitField0_ &= ~0x00000004; + buildID = 0L; + return this; + } + + /** + * optional uint64 BuildID = 3; + * @return the buildID + */ + public long getBuildID() { + return buildID; + } + + /** + * optional uint64 BuildID = 3; + * @param value the buildID to set + * @return this + */ + public TraceHuntApplyReq setBuildID(final long value) { + bitField0_ |= 0x00000004; + buildID = value; + return this; + } + + /** + * optional uint32 BossID = 2; + * @return whether the bossID field is set + */ + public boolean hasBossID() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 BossID = 2; + * @return this + */ + public TraceHuntApplyReq clearBossID() { + bitField0_ &= ~0x00000008; + bossID = 0; + return this; + } + + /** + * optional uint32 BossID = 2; + * @return the bossID + */ + public int getBossID() { + return bossID; + } + + /** + * optional uint32 BossID = 2; + * @param value the bossID to set + * @return this + */ + public TraceHuntApplyReq setBossID(final int value) { + bitField0_ |= 0x00000008; + bossID = 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 TraceHuntApplyReq 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 TraceHuntApplyReq addNextPackage(final byte value) { + bitField0_ |= 0x00000010; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public TraceHuntApplyReq addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000010; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public TraceHuntApplyReq setNextPackage(final byte... values) { + bitField0_ |= 0x00000010; + nextPackage.copyFrom(values); + return this; + } + + @Override + public TraceHuntApplyReq copyFrom(final TraceHuntApplyReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + bossCreateTime = other.bossCreateTime; + ownerUID = other.ownerUID; + buildID = other.buildID; + bossID = other.bossID; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public TraceHuntApplyReq mergeFrom(final TraceHuntApplyReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasBossCreateTime()) { + setBossCreateTime(other.bossCreateTime); + } + if (other.hasOwnerUID()) { + setOwnerUID(other.ownerUID); + } + if (other.hasBuildID()) { + setBuildID(other.buildID); + } + if (other.hasBossID()) { + setBossID(other.bossID); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public TraceHuntApplyReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + bossCreateTime = 0L; + ownerUID = 0L; + buildID = 0L; + bossID = 0; + nextPackage.clear(); + return this; + } + + @Override + public TraceHuntApplyReq 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 TraceHuntApplyReq)) { + return false; + } + TraceHuntApplyReq other = (TraceHuntApplyReq) o; + return bitField0_ == other.bitField0_ + && (!hasBossCreateTime() || bossCreateTime == other.bossCreateTime) + && (!hasOwnerUID() || ownerUID == other.ownerUID) + && (!hasBuildID() || buildID == other.buildID) + && (!hasBossID() || bossID == other.bossID) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 32); + output.writeInt64NoTag(bossCreateTime); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt64NoTag(ownerUID); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt64NoTag(buildID); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(bossID); + } + 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.computeInt64SizeNoTag(bossCreateTime); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt64SizeNoTag(ownerUID); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt64SizeNoTag(buildID); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(bossID); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public TraceHuntApplyReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 32: { + // bossCreateTime + bossCreateTime = input.readInt64(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 8) { + break; + } + } + case 8: { + // ownerUID + ownerUID = input.readUInt64(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // buildID + buildID = input.readUInt64(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // bossID + bossID = input.readUInt32(); + 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.writeInt64(FieldNames.bossCreateTime, bossCreateTime); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt64(FieldNames.ownerUID, ownerUID); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt64(FieldNames.buildID, buildID); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.bossID, bossID); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public TraceHuntApplyReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -973747882: { + if (input.isAtField(FieldNames.bossCreateTime)) { + if (!input.trySkipNullValue()) { + bossCreateTime = input.readInt64(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1727781053: { + if (input.isAtField(FieldNames.ownerUID)) { + if (!input.trySkipNullValue()) { + ownerUID = input.readUInt64(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1895597033: { + if (input.isAtField(FieldNames.buildID)) { + if (!input.trySkipNullValue()) { + buildID = input.readUInt64(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1995573608: { + if (input.isAtField(FieldNames.bossID)) { + if (!input.trySkipNullValue()) { + bossID = input.readUInt32(); + 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 TraceHuntApplyReq clone() { + return new TraceHuntApplyReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static TraceHuntApplyReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new TraceHuntApplyReq(), data).checkInitialized(); + } + + public static TraceHuntApplyReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new TraceHuntApplyReq(), input).checkInitialized(); + } + + public static TraceHuntApplyReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new TraceHuntApplyReq(), input).checkInitialized(); + } + + /** + * @return factory for creating TraceHuntApplyReq messages + */ + public static MessageFactory getFactory() { + return TraceHuntApplyReqFactory.INSTANCE; + } + + private enum TraceHuntApplyReqFactory implements MessageFactory { + INSTANCE; + + @Override + public TraceHuntApplyReq create() { + return TraceHuntApplyReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName bossCreateTime = FieldName.forField("BossCreateTime"); + + static final FieldName ownerUID = FieldName.forField("OwnerUID"); + + static final FieldName buildID = FieldName.forField("BuildID"); + + static final FieldName bossID = FieldName.forField("BossID"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/TraceHuntBossRewardReceive.java b/src/generated/main/emu/nebula/proto/TraceHuntBossRewardReceive.java new file mode 100644 index 0000000..409dd23 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/TraceHuntBossRewardReceive.java @@ -0,0 +1,566 @@ +// 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 TraceHuntBossRewardReceive { + /** + * Protobuf type {@code TraceHuntBossRewardReceiveResp} + */ + public static final class TraceHuntBossRewardReceiveResp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Level = 1; + */ + private int level; + + /** + * optional uint32 Exp = 2; + */ + private int exp; + + /** + * optional .ChangeInfo ChangeInfo = 3; + */ + private final Public.ChangeInfo changeInfo = Public.ChangeInfo.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private TraceHuntBossRewardReceiveResp() { + } + + /** + * @return a new empty instance of {@code TraceHuntBossRewardReceiveResp} + */ + public static TraceHuntBossRewardReceiveResp newInstance() { + return new TraceHuntBossRewardReceiveResp(); + } + + /** + * optional uint32 Level = 1; + * @return whether the level field is set + */ + public boolean hasLevel() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 Level = 1; + * @return this + */ + public TraceHuntBossRewardReceiveResp clearLevel() { + bitField0_ &= ~0x00000001; + level = 0; + return this; + } + + /** + * optional uint32 Level = 1; + * @return the level + */ + public int getLevel() { + return level; + } + + /** + * optional uint32 Level = 1; + * @param value the level to set + * @return this + */ + public TraceHuntBossRewardReceiveResp setLevel(final int value) { + bitField0_ |= 0x00000001; + level = value; + return this; + } + + /** + * optional uint32 Exp = 2; + * @return whether the exp field is set + */ + public boolean hasExp() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 Exp = 2; + * @return this + */ + public TraceHuntBossRewardReceiveResp clearExp() { + bitField0_ &= ~0x00000002; + exp = 0; + return this; + } + + /** + * optional uint32 Exp = 2; + * @return the exp + */ + public int getExp() { + return exp; + } + + /** + * optional uint32 Exp = 2; + * @param value the exp to set + * @return this + */ + public TraceHuntBossRewardReceiveResp setExp(final int value) { + bitField0_ |= 0x00000002; + exp = value; + return this; + } + + /** + * optional .ChangeInfo ChangeInfo = 3; + * @return whether the changeInfo field is set + */ + public boolean hasChangeInfo() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .ChangeInfo ChangeInfo = 3; + * @return this + */ + public TraceHuntBossRewardReceiveResp clearChangeInfo() { + bitField0_ &= ~0x00000004; + changeInfo.clear(); + return this; + } + + /** + * optional .ChangeInfo ChangeInfo = 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 #getMutableChangeInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.ChangeInfo getChangeInfo() { + return changeInfo; + } + + /** + * optional .ChangeInfo ChangeInfo = 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 Public.ChangeInfo getMutableChangeInfo() { + bitField0_ |= 0x00000004; + return changeInfo; + } + + /** + * optional .ChangeInfo ChangeInfo = 3; + * @param value the changeInfo to set + * @return this + */ + public TraceHuntBossRewardReceiveResp setChangeInfo(final Public.ChangeInfo value) { + bitField0_ |= 0x00000004; + changeInfo.copyFrom(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 TraceHuntBossRewardReceiveResp 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 TraceHuntBossRewardReceiveResp addNextPackage(final byte value) { + bitField0_ |= 0x00000008; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public TraceHuntBossRewardReceiveResp addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public TraceHuntBossRewardReceiveResp setNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.copyFrom(values); + return this; + } + + @Override + public TraceHuntBossRewardReceiveResp copyFrom(final TraceHuntBossRewardReceiveResp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + level = other.level; + exp = other.exp; + changeInfo.copyFrom(other.changeInfo); + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public TraceHuntBossRewardReceiveResp mergeFrom(final TraceHuntBossRewardReceiveResp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasLevel()) { + setLevel(other.level); + } + if (other.hasExp()) { + setExp(other.exp); + } + if (other.hasChangeInfo()) { + getMutableChangeInfo().mergeFrom(other.changeInfo); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public TraceHuntBossRewardReceiveResp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + level = 0; + exp = 0; + changeInfo.clear(); + nextPackage.clear(); + return this; + } + + @Override + public TraceHuntBossRewardReceiveResp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + changeInfo.clearQuick(); + nextPackage.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof TraceHuntBossRewardReceiveResp)) { + return false; + } + TraceHuntBossRewardReceiveResp other = (TraceHuntBossRewardReceiveResp) o; + return bitField0_ == other.bitField0_ + && (!hasLevel() || level == other.level) + && (!hasExp() || exp == other.exp) + && (!hasChangeInfo() || changeInfo.equals(other.changeInfo)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(level); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(exp); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(changeInfo); + } + 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(level); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(exp); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(changeInfo); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public TraceHuntBossRewardReceiveResp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // level + level = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // exp + exp = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // changeInfo + input.readMessage(changeInfo); + 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.level, level); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.exp, exp); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.changeInfo, changeInfo); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public TraceHuntBossRewardReceiveResp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 73313124: { + if (input.isAtField(FieldNames.level)) { + if (!input.trySkipNullValue()) { + level = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 70141: { + if (input.isAtField(FieldNames.exp)) { + if (!input.trySkipNullValue()) { + exp = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -138776418: { + if (input.isAtField(FieldNames.changeInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(changeInfo); + 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 TraceHuntBossRewardReceiveResp clone() { + return new TraceHuntBossRewardReceiveResp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static TraceHuntBossRewardReceiveResp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new TraceHuntBossRewardReceiveResp(), data).checkInitialized(); + } + + public static TraceHuntBossRewardReceiveResp parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new TraceHuntBossRewardReceiveResp(), input).checkInitialized(); + } + + public static TraceHuntBossRewardReceiveResp parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new TraceHuntBossRewardReceiveResp(), input).checkInitialized(); + } + + /** + * @return factory for creating TraceHuntBossRewardReceiveResp messages + */ + public static MessageFactory getFactory() { + return TraceHuntBossRewardReceiveRespFactory.INSTANCE; + } + + private enum TraceHuntBossRewardReceiveRespFactory implements MessageFactory { + INSTANCE; + + @Override + public TraceHuntBossRewardReceiveResp create() { + return TraceHuntBossRewardReceiveResp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName level = FieldName.forField("Level"); + + static final FieldName exp = FieldName.forField("Exp"); + + static final FieldName changeInfo = FieldName.forField("ChangeInfo"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/TraceHuntInfoOuterClass.java b/src/generated/main/emu/nebula/proto/TraceHuntInfoOuterClass.java new file mode 100644 index 0000000..3b8e73f --- /dev/null +++ b/src/generated/main/emu/nebula/proto/TraceHuntInfoOuterClass.java @@ -0,0 +1,1362 @@ +// 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 TraceHuntInfoOuterClass { + /** + * Protobuf type {@code TraceHuntInfo} + */ + public static final class TraceHuntInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional int64 BossCreateTime = 7; + */ + private long bossCreateTime; + + /** + * optional uint64 BuildID = 9; + */ + private long buildID; + + /** + * optional uint32 ControlID = 1; + */ + private int controlID; + + /** + * optional uint32 Level = 2; + */ + private int level; + + /** + * optional uint32 Exp = 3; + */ + private int exp; + + /** + * optional uint32 BossID = 4; + */ + private int bossID; + + /** + * optional uint32 TraceProgress = 5; + */ + private int traceProgress; + + /** + * optional uint32 HuntProgress = 6; + */ + private int huntProgress; + + /** + * optional uint32 SelfHuntTimes = 8; + */ + private int selfHuntTimes; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .TraceHuntBossCollection BossCollections = 10; + */ + private final RepeatedMessage bossCollections = RepeatedMessage.newEmptyInstance(Public.TraceHuntBossCollection.getFactory()); + + /** + * repeated .TraceHuntLogEntry TraceLog = 11; + */ + private final RepeatedMessage traceLog = RepeatedMessage.newEmptyInstance(Public.TraceHuntLogEntry.getFactory()); + + /** + * repeated .TraceHuntLogEntry HuntLog = 12; + */ + private final RepeatedMessage huntLog = RepeatedMessage.newEmptyInstance(Public.TraceHuntLogEntry.getFactory()); + + private TraceHuntInfo() { + } + + /** + * @return a new empty instance of {@code TraceHuntInfo} + */ + public static TraceHuntInfo newInstance() { + return new TraceHuntInfo(); + } + + /** + * optional int64 BossCreateTime = 7; + * @return whether the bossCreateTime field is set + */ + public boolean hasBossCreateTime() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional int64 BossCreateTime = 7; + * @return this + */ + public TraceHuntInfo clearBossCreateTime() { + bitField0_ &= ~0x00000001; + bossCreateTime = 0L; + return this; + } + + /** + * optional int64 BossCreateTime = 7; + * @return the bossCreateTime + */ + public long getBossCreateTime() { + return bossCreateTime; + } + + /** + * optional int64 BossCreateTime = 7; + * @param value the bossCreateTime to set + * @return this + */ + public TraceHuntInfo setBossCreateTime(final long value) { + bitField0_ |= 0x00000001; + bossCreateTime = value; + return this; + } + + /** + * optional uint64 BuildID = 9; + * @return whether the buildID field is set + */ + public boolean hasBuildID() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint64 BuildID = 9; + * @return this + */ + public TraceHuntInfo clearBuildID() { + bitField0_ &= ~0x00000002; + buildID = 0L; + return this; + } + + /** + * optional uint64 BuildID = 9; + * @return the buildID + */ + public long getBuildID() { + return buildID; + } + + /** + * optional uint64 BuildID = 9; + * @param value the buildID to set + * @return this + */ + public TraceHuntInfo setBuildID(final long value) { + bitField0_ |= 0x00000002; + buildID = value; + return this; + } + + /** + * optional uint32 ControlID = 1; + * @return whether the controlID field is set + */ + public boolean hasControlID() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 ControlID = 1; + * @return this + */ + public TraceHuntInfo clearControlID() { + bitField0_ &= ~0x00000004; + controlID = 0; + return this; + } + + /** + * optional uint32 ControlID = 1; + * @return the controlID + */ + public int getControlID() { + return controlID; + } + + /** + * optional uint32 ControlID = 1; + * @param value the controlID to set + * @return this + */ + public TraceHuntInfo setControlID(final int value) { + bitField0_ |= 0x00000004; + controlID = value; + return this; + } + + /** + * optional uint32 Level = 2; + * @return whether the level field is set + */ + public boolean hasLevel() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 Level = 2; + * @return this + */ + public TraceHuntInfo clearLevel() { + bitField0_ &= ~0x00000008; + level = 0; + return this; + } + + /** + * optional uint32 Level = 2; + * @return the level + */ + public int getLevel() { + return level; + } + + /** + * optional uint32 Level = 2; + * @param value the level to set + * @return this + */ + public TraceHuntInfo setLevel(final int value) { + bitField0_ |= 0x00000008; + level = value; + return this; + } + + /** + * optional uint32 Exp = 3; + * @return whether the exp field is set + */ + public boolean hasExp() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 Exp = 3; + * @return this + */ + public TraceHuntInfo clearExp() { + bitField0_ &= ~0x00000010; + exp = 0; + return this; + } + + /** + * optional uint32 Exp = 3; + * @return the exp + */ + public int getExp() { + return exp; + } + + /** + * optional uint32 Exp = 3; + * @param value the exp to set + * @return this + */ + public TraceHuntInfo setExp(final int value) { + bitField0_ |= 0x00000010; + exp = value; + return this; + } + + /** + * optional uint32 BossID = 4; + * @return whether the bossID field is set + */ + public boolean hasBossID() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional uint32 BossID = 4; + * @return this + */ + public TraceHuntInfo clearBossID() { + bitField0_ &= ~0x00000020; + bossID = 0; + return this; + } + + /** + * optional uint32 BossID = 4; + * @return the bossID + */ + public int getBossID() { + return bossID; + } + + /** + * optional uint32 BossID = 4; + * @param value the bossID to set + * @return this + */ + public TraceHuntInfo setBossID(final int value) { + bitField0_ |= 0x00000020; + bossID = value; + return this; + } + + /** + * optional uint32 TraceProgress = 5; + * @return whether the traceProgress field is set + */ + public boolean hasTraceProgress() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional uint32 TraceProgress = 5; + * @return this + */ + public TraceHuntInfo clearTraceProgress() { + bitField0_ &= ~0x00000040; + traceProgress = 0; + return this; + } + + /** + * optional uint32 TraceProgress = 5; + * @return the traceProgress + */ + public int getTraceProgress() { + return traceProgress; + } + + /** + * optional uint32 TraceProgress = 5; + * @param value the traceProgress to set + * @return this + */ + public TraceHuntInfo setTraceProgress(final int value) { + bitField0_ |= 0x00000040; + traceProgress = value; + return this; + } + + /** + * optional uint32 HuntProgress = 6; + * @return whether the huntProgress field is set + */ + public boolean hasHuntProgress() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * optional uint32 HuntProgress = 6; + * @return this + */ + public TraceHuntInfo clearHuntProgress() { + bitField0_ &= ~0x00000080; + huntProgress = 0; + return this; + } + + /** + * optional uint32 HuntProgress = 6; + * @return the huntProgress + */ + public int getHuntProgress() { + return huntProgress; + } + + /** + * optional uint32 HuntProgress = 6; + * @param value the huntProgress to set + * @return this + */ + public TraceHuntInfo setHuntProgress(final int value) { + bitField0_ |= 0x00000080; + huntProgress = value; + return this; + } + + /** + * optional uint32 SelfHuntTimes = 8; + * @return whether the selfHuntTimes field is set + */ + public boolean hasSelfHuntTimes() { + return (bitField0_ & 0x00000100) != 0; + } + + /** + * optional uint32 SelfHuntTimes = 8; + * @return this + */ + public TraceHuntInfo clearSelfHuntTimes() { + bitField0_ &= ~0x00000100; + selfHuntTimes = 0; + return this; + } + + /** + * optional uint32 SelfHuntTimes = 8; + * @return the selfHuntTimes + */ + public int getSelfHuntTimes() { + return selfHuntTimes; + } + + /** + * optional uint32 SelfHuntTimes = 8; + * @param value the selfHuntTimes to set + * @return this + */ + public TraceHuntInfo setSelfHuntTimes(final int value) { + bitField0_ |= 0x00000100; + selfHuntTimes = 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 TraceHuntInfo 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 TraceHuntInfo addNextPackage(final byte value) { + bitField0_ |= 0x00000200; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public TraceHuntInfo addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000200; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public TraceHuntInfo setNextPackage(final byte... values) { + bitField0_ |= 0x00000200; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .TraceHuntBossCollection BossCollections = 10; + * @return whether the bossCollections field is set + */ + public boolean hasBossCollections() { + return (bitField0_ & 0x00000400) != 0; + } + + /** + * repeated .TraceHuntBossCollection BossCollections = 10; + * @return this + */ + public TraceHuntInfo clearBossCollections() { + bitField0_ &= ~0x00000400; + bossCollections.clear(); + return this; + } + + /** + * repeated .TraceHuntBossCollection BossCollections = 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 #getMutableBossCollections()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getBossCollections() { + return bossCollections; + } + + /** + * repeated .TraceHuntBossCollection BossCollections = 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 getMutableBossCollections() { + bitField0_ |= 0x00000400; + return bossCollections; + } + + /** + * repeated .TraceHuntBossCollection BossCollections = 10; + * @param value the bossCollections to add + * @return this + */ + public TraceHuntInfo addBossCollections(final Public.TraceHuntBossCollection value) { + bitField0_ |= 0x00000400; + bossCollections.add(value); + return this; + } + + /** + * repeated .TraceHuntBossCollection BossCollections = 10; + * @param values the bossCollections to add + * @return this + */ + public TraceHuntInfo addAllBossCollections(final Public.TraceHuntBossCollection... values) { + bitField0_ |= 0x00000400; + bossCollections.addAll(values); + return this; + } + + /** + * repeated .TraceHuntLogEntry TraceLog = 11; + * @return whether the traceLog field is set + */ + public boolean hasTraceLog() { + return (bitField0_ & 0x00000800) != 0; + } + + /** + * repeated .TraceHuntLogEntry TraceLog = 11; + * @return this + */ + public TraceHuntInfo clearTraceLog() { + bitField0_ &= ~0x00000800; + traceLog.clear(); + return this; + } + + /** + * repeated .TraceHuntLogEntry TraceLog = 11; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableTraceLog()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getTraceLog() { + return traceLog; + } + + /** + * repeated .TraceHuntLogEntry TraceLog = 11; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableTraceLog() { + bitField0_ |= 0x00000800; + return traceLog; + } + + /** + * repeated .TraceHuntLogEntry TraceLog = 11; + * @param value the traceLog to add + * @return this + */ + public TraceHuntInfo addTraceLog(final Public.TraceHuntLogEntry value) { + bitField0_ |= 0x00000800; + traceLog.add(value); + return this; + } + + /** + * repeated .TraceHuntLogEntry TraceLog = 11; + * @param values the traceLog to add + * @return this + */ + public TraceHuntInfo addAllTraceLog(final Public.TraceHuntLogEntry... values) { + bitField0_ |= 0x00000800; + traceLog.addAll(values); + return this; + } + + /** + * repeated .TraceHuntLogEntry HuntLog = 12; + * @return whether the huntLog field is set + */ + public boolean hasHuntLog() { + return (bitField0_ & 0x00001000) != 0; + } + + /** + * repeated .TraceHuntLogEntry HuntLog = 12; + * @return this + */ + public TraceHuntInfo clearHuntLog() { + bitField0_ &= ~0x00001000; + huntLog.clear(); + return this; + } + + /** + * repeated .TraceHuntLogEntry HuntLog = 12; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableHuntLog()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getHuntLog() { + return huntLog; + } + + /** + * repeated .TraceHuntLogEntry HuntLog = 12; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableHuntLog() { + bitField0_ |= 0x00001000; + return huntLog; + } + + /** + * repeated .TraceHuntLogEntry HuntLog = 12; + * @param value the huntLog to add + * @return this + */ + public TraceHuntInfo addHuntLog(final Public.TraceHuntLogEntry value) { + bitField0_ |= 0x00001000; + huntLog.add(value); + return this; + } + + /** + * repeated .TraceHuntLogEntry HuntLog = 12; + * @param values the huntLog to add + * @return this + */ + public TraceHuntInfo addAllHuntLog(final Public.TraceHuntLogEntry... values) { + bitField0_ |= 0x00001000; + huntLog.addAll(values); + return this; + } + + @Override + public TraceHuntInfo copyFrom(final TraceHuntInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + bossCreateTime = other.bossCreateTime; + buildID = other.buildID; + controlID = other.controlID; + level = other.level; + exp = other.exp; + bossID = other.bossID; + traceProgress = other.traceProgress; + huntProgress = other.huntProgress; + selfHuntTimes = other.selfHuntTimes; + nextPackage.copyFrom(other.nextPackage); + bossCollections.copyFrom(other.bossCollections); + traceLog.copyFrom(other.traceLog); + huntLog.copyFrom(other.huntLog); + } + return this; + } + + @Override + public TraceHuntInfo mergeFrom(final TraceHuntInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasBossCreateTime()) { + setBossCreateTime(other.bossCreateTime); + } + if (other.hasBuildID()) { + setBuildID(other.buildID); + } + if (other.hasControlID()) { + setControlID(other.controlID); + } + if (other.hasLevel()) { + setLevel(other.level); + } + if (other.hasExp()) { + setExp(other.exp); + } + if (other.hasBossID()) { + setBossID(other.bossID); + } + if (other.hasTraceProgress()) { + setTraceProgress(other.traceProgress); + } + if (other.hasHuntProgress()) { + setHuntProgress(other.huntProgress); + } + if (other.hasSelfHuntTimes()) { + setSelfHuntTimes(other.selfHuntTimes); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasBossCollections()) { + getMutableBossCollections().addAll(other.bossCollections); + } + if (other.hasTraceLog()) { + getMutableTraceLog().addAll(other.traceLog); + } + if (other.hasHuntLog()) { + getMutableHuntLog().addAll(other.huntLog); + } + return this; + } + + @Override + public TraceHuntInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + bossCreateTime = 0L; + buildID = 0L; + controlID = 0; + level = 0; + exp = 0; + bossID = 0; + traceProgress = 0; + huntProgress = 0; + selfHuntTimes = 0; + nextPackage.clear(); + bossCollections.clear(); + traceLog.clear(); + huntLog.clear(); + return this; + } + + @Override + public TraceHuntInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + bossCollections.clearQuick(); + traceLog.clearQuick(); + huntLog.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof TraceHuntInfo)) { + return false; + } + TraceHuntInfo other = (TraceHuntInfo) o; + return bitField0_ == other.bitField0_ + && (!hasBossCreateTime() || bossCreateTime == other.bossCreateTime) + && (!hasBuildID() || buildID == other.buildID) + && (!hasControlID() || controlID == other.controlID) + && (!hasLevel() || level == other.level) + && (!hasExp() || exp == other.exp) + && (!hasBossID() || bossID == other.bossID) + && (!hasTraceProgress() || traceProgress == other.traceProgress) + && (!hasHuntProgress() || huntProgress == other.huntProgress) + && (!hasSelfHuntTimes() || selfHuntTimes == other.selfHuntTimes) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasBossCollections() || bossCollections.equals(other.bossCollections)) + && (!hasTraceLog() || traceLog.equals(other.traceLog)) + && (!hasHuntLog() || huntLog.equals(other.huntLog)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 56); + output.writeInt64NoTag(bossCreateTime); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt64NoTag(buildID); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(controlID); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(level); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(exp); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(bossID); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(traceProgress); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(huntProgress); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(selfHuntTimes); + } + if ((bitField0_ & 0x00000200) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000400) != 0) { + for (int i = 0; i < bossCollections.length(); i++) { + output.writeRawByte((byte) 82); + output.writeMessageNoTag(bossCollections.get(i)); + } + } + if ((bitField0_ & 0x00000800) != 0) { + for (int i = 0; i < traceLog.length(); i++) { + output.writeRawByte((byte) 90); + output.writeMessageNoTag(traceLog.get(i)); + } + } + if ((bitField0_ & 0x00001000) != 0) { + for (int i = 0; i < huntLog.length(); i++) { + output.writeRawByte((byte) 98); + output.writeMessageNoTag(huntLog.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeInt64SizeNoTag(bossCreateTime); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt64SizeNoTag(buildID); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(controlID); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(level); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(exp); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(bossID); + } + if ((bitField0_ & 0x00000040) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(traceProgress); + } + if ((bitField0_ & 0x00000080) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(huntProgress); + } + if ((bitField0_ & 0x00000100) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(selfHuntTimes); + } + if ((bitField0_ & 0x00000200) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000400) != 0) { + size += (1 * bossCollections.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(bossCollections); + } + if ((bitField0_ & 0x00000800) != 0) { + size += (1 * traceLog.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(traceLog); + } + if ((bitField0_ & 0x00001000) != 0) { + size += (1 * huntLog.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(huntLog); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public TraceHuntInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 56: { + // bossCreateTime + bossCreateTime = input.readInt64(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // buildID + buildID = input.readUInt64(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 8) { + break; + } + } + case 8: { + // controlID + controlID = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // level + level = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // exp + exp = input.readUInt32(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // bossID + bossID = input.readUInt32(); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // traceProgress + traceProgress = input.readUInt32(); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // huntProgress + huntProgress = input.readUInt32(); + bitField0_ |= 0x00000080; + tag = input.readTag(); + if (tag != 64) { + break; + } + } + case 64: { + // selfHuntTimes + selfHuntTimes = input.readUInt32(); + 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: { + // bossCollections + tag = input.readRepeatedMessage(bossCollections, tag); + bitField0_ |= 0x00000400; + if (tag != 90) { + break; + } + } + case 90: { + // traceLog + tag = input.readRepeatedMessage(traceLog, tag); + bitField0_ |= 0x00000800; + if (tag != 98) { + break; + } + } + case 98: { + // huntLog + tag = input.readRepeatedMessage(huntLog, tag); + bitField0_ |= 0x00001000; + 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.bossCreateTime, bossCreateTime); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt64(FieldNames.buildID, buildID); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.controlID, controlID); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.level, level); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.exp, exp); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeUInt32(FieldNames.bossID, bossID); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeUInt32(FieldNames.traceProgress, traceProgress); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeUInt32(FieldNames.huntProgress, huntProgress); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeUInt32(FieldNames.selfHuntTimes, selfHuntTimes); + } + if ((bitField0_ & 0x00000200) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000400) != 0) { + output.writeRepeatedMessage(FieldNames.bossCollections, bossCollections); + } + if ((bitField0_ & 0x00000800) != 0) { + output.writeRepeatedMessage(FieldNames.traceLog, traceLog); + } + if ((bitField0_ & 0x00001000) != 0) { + output.writeRepeatedMessage(FieldNames.huntLog, huntLog); + } + output.endObject(); + } + + @Override + public TraceHuntInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -973747882: { + if (input.isAtField(FieldNames.bossCreateTime)) { + if (!input.trySkipNullValue()) { + bossCreateTime = input.readInt64(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1895597033: { + if (input.isAtField(FieldNames.buildID)) { + if (!input.trySkipNullValue()) { + buildID = input.readUInt64(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1608887064: { + if (input.isAtField(FieldNames.controlID)) { + if (!input.trySkipNullValue()) { + controlID = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 73313124: { + if (input.isAtField(FieldNames.level)) { + if (!input.trySkipNullValue()) { + level = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 70141: { + if (input.isAtField(FieldNames.exp)) { + if (!input.trySkipNullValue()) { + exp = input.readUInt32(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1995573608: { + if (input.isAtField(FieldNames.bossID)) { + if (!input.trySkipNullValue()) { + bossID = input.readUInt32(); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case -631819662: { + if (input.isAtField(FieldNames.traceProgress)) { + if (!input.trySkipNullValue()) { + traceProgress = input.readUInt32(); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + case 624706304: { + if (input.isAtField(FieldNames.huntProgress)) { + if (!input.trySkipNullValue()) { + huntProgress = input.readUInt32(); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + case 908674407: { + if (input.isAtField(FieldNames.selfHuntTimes)) { + if (!input.trySkipNullValue()) { + selfHuntTimes = input.readUInt32(); + 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 -2058431544: { + if (input.isAtField(FieldNames.bossCollections)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(bossCollections); + bitField0_ |= 0x00000400; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1334926303: { + if (input.isAtField(FieldNames.traceLog)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(traceLog); + bitField0_ |= 0x00000800; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1364481391: { + if (input.isAtField(FieldNames.huntLog)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(huntLog); + bitField0_ |= 0x00001000; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public TraceHuntInfo clone() { + return new TraceHuntInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static TraceHuntInfo parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new TraceHuntInfo(), data).checkInitialized(); + } + + public static TraceHuntInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new TraceHuntInfo(), input).checkInitialized(); + } + + public static TraceHuntInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new TraceHuntInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating TraceHuntInfo messages + */ + public static MessageFactory getFactory() { + return TraceHuntInfoFactory.INSTANCE; + } + + private enum TraceHuntInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public TraceHuntInfo create() { + return TraceHuntInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName bossCreateTime = FieldName.forField("BossCreateTime"); + + static final FieldName buildID = FieldName.forField("BuildID"); + + static final FieldName controlID = FieldName.forField("ControlID"); + + static final FieldName level = FieldName.forField("Level"); + + static final FieldName exp = FieldName.forField("Exp"); + + static final FieldName bossID = FieldName.forField("BossID"); + + static final FieldName traceProgress = FieldName.forField("TraceProgress"); + + static final FieldName huntProgress = FieldName.forField("HuntProgress"); + + static final FieldName selfHuntTimes = FieldName.forField("SelfHuntTimes"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName bossCollections = FieldName.forField("BossCollections"); + + static final FieldName traceLog = FieldName.forField("TraceLog"); + + static final FieldName huntLog = FieldName.forField("HuntLog"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/TraceHuntRecommend.java b/src/generated/main/emu/nebula/proto/TraceHuntRecommend.java new file mode 100644 index 0000000..128ae2f --- /dev/null +++ b/src/generated/main/emu/nebula/proto/TraceHuntRecommend.java @@ -0,0 +1,1206 @@ +// 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 TraceHuntRecommend { + /** + * Protobuf type {@code TraceHuntRecommendation} + */ + public static final class TraceHuntRecommendation extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional int64 BossCreateTime = 3; + */ + private long bossCreateTime; + + /** + * optional uint64 OwnerUID = 1; + */ + private long ownerUID; + + /** + * optional uint32 BossID = 2; + */ + private int bossID; + + /** + * optional bool IsFriend = 4; + */ + private boolean isFriend; + + /** + * optional bool IsStar = 5; + */ + private boolean isStar; + + /** + * optional .Friend Info = 6; + */ + private final Public.Friend info = Public.Friend.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private TraceHuntRecommendation() { + } + + /** + * @return a new empty instance of {@code TraceHuntRecommendation} + */ + public static TraceHuntRecommendation newInstance() { + return new TraceHuntRecommendation(); + } + + /** + * optional int64 BossCreateTime = 3; + * @return whether the bossCreateTime field is set + */ + public boolean hasBossCreateTime() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional int64 BossCreateTime = 3; + * @return this + */ + public TraceHuntRecommendation clearBossCreateTime() { + bitField0_ &= ~0x00000001; + bossCreateTime = 0L; + return this; + } + + /** + * optional int64 BossCreateTime = 3; + * @return the bossCreateTime + */ + public long getBossCreateTime() { + return bossCreateTime; + } + + /** + * optional int64 BossCreateTime = 3; + * @param value the bossCreateTime to set + * @return this + */ + public TraceHuntRecommendation setBossCreateTime(final long value) { + bitField0_ |= 0x00000001; + bossCreateTime = value; + return this; + } + + /** + * optional uint64 OwnerUID = 1; + * @return whether the ownerUID field is set + */ + public boolean hasOwnerUID() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint64 OwnerUID = 1; + * @return this + */ + public TraceHuntRecommendation clearOwnerUID() { + bitField0_ &= ~0x00000002; + ownerUID = 0L; + return this; + } + + /** + * optional uint64 OwnerUID = 1; + * @return the ownerUID + */ + public long getOwnerUID() { + return ownerUID; + } + + /** + * optional uint64 OwnerUID = 1; + * @param value the ownerUID to set + * @return this + */ + public TraceHuntRecommendation setOwnerUID(final long value) { + bitField0_ |= 0x00000002; + ownerUID = value; + return this; + } + + /** + * optional uint32 BossID = 2; + * @return whether the bossID field is set + */ + public boolean hasBossID() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 BossID = 2; + * @return this + */ + public TraceHuntRecommendation clearBossID() { + bitField0_ &= ~0x00000004; + bossID = 0; + return this; + } + + /** + * optional uint32 BossID = 2; + * @return the bossID + */ + public int getBossID() { + return bossID; + } + + /** + * optional uint32 BossID = 2; + * @param value the bossID to set + * @return this + */ + public TraceHuntRecommendation setBossID(final int value) { + bitField0_ |= 0x00000004; + bossID = value; + return this; + } + + /** + * optional bool IsFriend = 4; + * @return whether the isFriend field is set + */ + public boolean hasIsFriend() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional bool IsFriend = 4; + * @return this + */ + public TraceHuntRecommendation clearIsFriend() { + bitField0_ &= ~0x00000008; + isFriend = false; + return this; + } + + /** + * optional bool IsFriend = 4; + * @return the isFriend + */ + public boolean getIsFriend() { + return isFriend; + } + + /** + * optional bool IsFriend = 4; + * @param value the isFriend to set + * @return this + */ + public TraceHuntRecommendation setIsFriend(final boolean value) { + bitField0_ |= 0x00000008; + isFriend = value; + return this; + } + + /** + * optional bool IsStar = 5; + * @return whether the isStar field is set + */ + public boolean hasIsStar() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional bool IsStar = 5; + * @return this + */ + public TraceHuntRecommendation clearIsStar() { + bitField0_ &= ~0x00000010; + isStar = false; + return this; + } + + /** + * optional bool IsStar = 5; + * @return the isStar + */ + public boolean getIsStar() { + return isStar; + } + + /** + * optional bool IsStar = 5; + * @param value the isStar to set + * @return this + */ + public TraceHuntRecommendation setIsStar(final boolean value) { + bitField0_ |= 0x00000010; + isStar = value; + return this; + } + + /** + * optional .Friend Info = 6; + * @return whether the info field is set + */ + public boolean hasInfo() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional .Friend Info = 6; + * @return this + */ + public TraceHuntRecommendation clearInfo() { + bitField0_ &= ~0x00000020; + info.clear(); + return this; + } + + /** + * optional .Friend Info = 6; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.Friend getInfo() { + return info; + } + + /** + * optional .Friend Info = 6; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public Public.Friend getMutableInfo() { + bitField0_ |= 0x00000020; + return info; + } + + /** + * optional .Friend Info = 6; + * @param value the info to set + * @return this + */ + public TraceHuntRecommendation setInfo(final Public.Friend value) { + bitField0_ |= 0x00000020; + info.copyFrom(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 TraceHuntRecommendation 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 TraceHuntRecommendation addNextPackage(final byte value) { + bitField0_ |= 0x00000040; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public TraceHuntRecommendation addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000040; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public TraceHuntRecommendation setNextPackage(final byte... values) { + bitField0_ |= 0x00000040; + nextPackage.copyFrom(values); + return this; + } + + @Override + public TraceHuntRecommendation copyFrom(final TraceHuntRecommendation other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + bossCreateTime = other.bossCreateTime; + ownerUID = other.ownerUID; + bossID = other.bossID; + isFriend = other.isFriend; + isStar = other.isStar; + info.copyFrom(other.info); + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public TraceHuntRecommendation mergeFrom(final TraceHuntRecommendation other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasBossCreateTime()) { + setBossCreateTime(other.bossCreateTime); + } + if (other.hasOwnerUID()) { + setOwnerUID(other.ownerUID); + } + if (other.hasBossID()) { + setBossID(other.bossID); + } + if (other.hasIsFriend()) { + setIsFriend(other.isFriend); + } + if (other.hasIsStar()) { + setIsStar(other.isStar); + } + if (other.hasInfo()) { + getMutableInfo().mergeFrom(other.info); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public TraceHuntRecommendation clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + bossCreateTime = 0L; + ownerUID = 0L; + bossID = 0; + isFriend = false; + isStar = false; + info.clear(); + nextPackage.clear(); + return this; + } + + @Override + public TraceHuntRecommendation clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + info.clearQuick(); + nextPackage.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof TraceHuntRecommendation)) { + return false; + } + TraceHuntRecommendation other = (TraceHuntRecommendation) o; + return bitField0_ == other.bitField0_ + && (!hasBossCreateTime() || bossCreateTime == other.bossCreateTime) + && (!hasOwnerUID() || ownerUID == other.ownerUID) + && (!hasBossID() || bossID == other.bossID) + && (!hasIsFriend() || isFriend == other.isFriend) + && (!hasIsStar() || isStar == other.isStar) + && (!hasInfo() || info.equals(other.info)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 24); + output.writeInt64NoTag(bossCreateTime); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt64NoTag(ownerUID); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(bossID); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 32); + output.writeBoolNoTag(isFriend); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 40); + output.writeBoolNoTag(isStar); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 50); + output.writeMessageNoTag(info); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeInt64SizeNoTag(bossCreateTime); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt64SizeNoTag(ownerUID); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(bossID); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000010) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(info); + } + if ((bitField0_ & 0x00000040) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public TraceHuntRecommendation mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 24: { + // bossCreateTime + bossCreateTime = input.readInt64(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 8) { + break; + } + } + case 8: { + // ownerUID + ownerUID = input.readUInt64(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // bossID + bossID = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // isFriend + isFriend = input.readBool(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // isStar + isStar = input.readBool(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 50) { + break; + } + } + case 50: { + // info + input.readMessage(info); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000040; + 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.bossCreateTime, bossCreateTime); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt64(FieldNames.ownerUID, ownerUID); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.bossID, bossID); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeBool(FieldNames.isFriend, isFriend); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeBool(FieldNames.isStar, isStar); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeMessage(FieldNames.info, info); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public TraceHuntRecommendation mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -973747882: { + if (input.isAtField(FieldNames.bossCreateTime)) { + if (!input.trySkipNullValue()) { + bossCreateTime = input.readInt64(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1727781053: { + if (input.isAtField(FieldNames.ownerUID)) { + if (!input.trySkipNullValue()) { + ownerUID = input.readUInt64(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1995573608: { + if (input.isAtField(FieldNames.bossID)) { + if (!input.trySkipNullValue()) { + bossID = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -527605624: { + if (input.isAtField(FieldNames.isFriend)) { + if (!input.trySkipNullValue()) { + isFriend = input.readBool(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2096247108: { + if (input.isAtField(FieldNames.isStar)) { + if (!input.trySkipNullValue()) { + isStar = input.readBool(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2283726: { + if (input.isAtField(FieldNames.info)) { + if (!input.trySkipNullValue()) { + input.readMessage(info); + 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; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public TraceHuntRecommendation clone() { + return new TraceHuntRecommendation().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static TraceHuntRecommendation parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new TraceHuntRecommendation(), data).checkInitialized(); + } + + public static TraceHuntRecommendation parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new TraceHuntRecommendation(), input).checkInitialized(); + } + + public static TraceHuntRecommendation parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new TraceHuntRecommendation(), input).checkInitialized(); + } + + /** + * @return factory for creating TraceHuntRecommendation messages + */ + public static MessageFactory getFactory() { + return TraceHuntRecommendationFactory.INSTANCE; + } + + private enum TraceHuntRecommendationFactory implements MessageFactory { + INSTANCE; + + @Override + public TraceHuntRecommendation create() { + return TraceHuntRecommendation.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName bossCreateTime = FieldName.forField("BossCreateTime"); + + static final FieldName ownerUID = FieldName.forField("OwnerUID"); + + static final FieldName bossID = FieldName.forField("BossID"); + + static final FieldName isFriend = FieldName.forField("IsFriend"); + + static final FieldName isStar = FieldName.forField("IsStar"); + + static final FieldName info = FieldName.forField("Info"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code TraceHuntRecommendResp} + */ + public static final class TraceHuntRecommendResp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .TraceHuntRecommendation Recommendations = 1; + */ + private final RepeatedMessage recommendations = RepeatedMessage.newEmptyInstance(TraceHuntRecommendation.getFactory()); + + private TraceHuntRecommendResp() { + } + + /** + * @return a new empty instance of {@code TraceHuntRecommendResp} + */ + public static TraceHuntRecommendResp newInstance() { + return new TraceHuntRecommendResp(); + } + + /** + * 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 TraceHuntRecommendResp 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 TraceHuntRecommendResp addNextPackage(final byte value) { + bitField0_ |= 0x00000001; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public TraceHuntRecommendResp addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public TraceHuntRecommendResp setNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .TraceHuntRecommendation Recommendations = 1; + * @return whether the recommendations field is set + */ + public boolean hasRecommendations() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated .TraceHuntRecommendation Recommendations = 1; + * @return this + */ + public TraceHuntRecommendResp clearRecommendations() { + bitField0_ &= ~0x00000002; + recommendations.clear(); + return this; + } + + /** + * repeated .TraceHuntRecommendation Recommendations = 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 #getMutableRecommendations()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getRecommendations() { + return recommendations; + } + + /** + * repeated .TraceHuntRecommendation Recommendations = 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 getMutableRecommendations() { + bitField0_ |= 0x00000002; + return recommendations; + } + + /** + * repeated .TraceHuntRecommendation Recommendations = 1; + * @param value the recommendations to add + * @return this + */ + public TraceHuntRecommendResp addRecommendations(final TraceHuntRecommendation value) { + bitField0_ |= 0x00000002; + recommendations.add(value); + return this; + } + + /** + * repeated .TraceHuntRecommendation Recommendations = 1; + * @param values the recommendations to add + * @return this + */ + public TraceHuntRecommendResp addAllRecommendations(final TraceHuntRecommendation... values) { + bitField0_ |= 0x00000002; + recommendations.addAll(values); + return this; + } + + @Override + public TraceHuntRecommendResp copyFrom(final TraceHuntRecommendResp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + nextPackage.copyFrom(other.nextPackage); + recommendations.copyFrom(other.recommendations); + } + return this; + } + + @Override + public TraceHuntRecommendResp mergeFrom(final TraceHuntRecommendResp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasRecommendations()) { + getMutableRecommendations().addAll(other.recommendations); + } + return this; + } + + @Override + public TraceHuntRecommendResp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + recommendations.clear(); + return this; + } + + @Override + public TraceHuntRecommendResp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + recommendations.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof TraceHuntRecommendResp)) { + return false; + } + TraceHuntRecommendResp other = (TraceHuntRecommendResp) o; + return bitField0_ == other.bitField0_ + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasRecommendations() || recommendations.equals(other.recommendations)); + } + + @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 < recommendations.length(); i++) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(recommendations.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * recommendations.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(recommendations); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public TraceHuntRecommendResp 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: { + // recommendations + tag = input.readRepeatedMessage(recommendations, tag); + bitField0_ |= 0x00000002; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedMessage(FieldNames.recommendations, recommendations); + } + output.endObject(); + } + + @Override + public TraceHuntRecommendResp 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 1474981818: { + if (input.isAtField(FieldNames.recommendations)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(recommendations); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public TraceHuntRecommendResp clone() { + return new TraceHuntRecommendResp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static TraceHuntRecommendResp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new TraceHuntRecommendResp(), data).checkInitialized(); + } + + public static TraceHuntRecommendResp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new TraceHuntRecommendResp(), input).checkInitialized(); + } + + public static TraceHuntRecommendResp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new TraceHuntRecommendResp(), input).checkInitialized(); + } + + /** + * @return factory for creating TraceHuntRecommendResp messages + */ + public static MessageFactory getFactory() { + return TraceHuntRecommendRespFactory.INSTANCE; + } + + private enum TraceHuntRecommendRespFactory implements MessageFactory { + INSTANCE; + + @Override + public TraceHuntRecommendResp create() { + return TraceHuntRecommendResp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName recommendations = FieldName.forField("Recommendations"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/TraceHuntSettle.java b/src/generated/main/emu/nebula/proto/TraceHuntSettle.java new file mode 100644 index 0000000..ff465ed --- /dev/null +++ b/src/generated/main/emu/nebula/proto/TraceHuntSettle.java @@ -0,0 +1,1387 @@ +// 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 TraceHuntSettle { + /** + * Protobuf type {@code TraceHuntSettleReq} + */ + public static final class TraceHuntSettleReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Score = 1; + */ + private int score; + + /** + * optional uint32 Star = 2; + */ + private int star; + + /** + * optional .Events Events = 15; + */ + private final Public.Events events = Public.Events.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private TraceHuntSettleReq() { + } + + /** + * @return a new empty instance of {@code TraceHuntSettleReq} + */ + public static TraceHuntSettleReq newInstance() { + return new TraceHuntSettleReq(); + } + + /** + * optional uint32 Score = 1; + * @return whether the score field is set + */ + public boolean hasScore() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 Score = 1; + * @return this + */ + public TraceHuntSettleReq clearScore() { + bitField0_ &= ~0x00000001; + score = 0; + return this; + } + + /** + * optional uint32 Score = 1; + * @return the score + */ + public int getScore() { + return score; + } + + /** + * optional uint32 Score = 1; + * @param value the score to set + * @return this + */ + public TraceHuntSettleReq setScore(final int value) { + bitField0_ |= 0x00000001; + score = 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 TraceHuntSettleReq 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 TraceHuntSettleReq setStar(final int value) { + bitField0_ |= 0x00000002; + star = value; + return this; + } + + /** + * optional .Events Events = 15; + * @return whether the events field is set + */ + public boolean hasEvents() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .Events Events = 15; + * @return this + */ + public TraceHuntSettleReq clearEvents() { + bitField0_ &= ~0x00000004; + events.clear(); + return this; + } + + /** + * optional .Events Events = 15; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableEvents()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.Events getEvents() { + return events; + } + + /** + * optional .Events Events = 15; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public Public.Events getMutableEvents() { + bitField0_ |= 0x00000004; + return events; + } + + /** + * optional .Events Events = 15; + * @param value the events to set + * @return this + */ + public TraceHuntSettleReq setEvents(final Public.Events value) { + bitField0_ |= 0x00000004; + events.copyFrom(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 TraceHuntSettleReq 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 TraceHuntSettleReq addNextPackage(final byte value) { + bitField0_ |= 0x00000008; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public TraceHuntSettleReq addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public TraceHuntSettleReq setNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.copyFrom(values); + return this; + } + + @Override + public TraceHuntSettleReq copyFrom(final TraceHuntSettleReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + score = other.score; + star = other.star; + events.copyFrom(other.events); + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public TraceHuntSettleReq mergeFrom(final TraceHuntSettleReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasScore()) { + setScore(other.score); + } + if (other.hasStar()) { + setStar(other.star); + } + if (other.hasEvents()) { + getMutableEvents().mergeFrom(other.events); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public TraceHuntSettleReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + score = 0; + star = 0; + events.clear(); + nextPackage.clear(); + return this; + } + + @Override + public TraceHuntSettleReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + events.clearQuick(); + nextPackage.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof TraceHuntSettleReq)) { + return false; + } + TraceHuntSettleReq other = (TraceHuntSettleReq) o; + return bitField0_ == other.bitField0_ + && (!hasScore() || score == other.score) + && (!hasStar() || star == other.star) + && (!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) 8); + output.writeUInt32NoTag(score); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(star); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 122); + output.writeMessageNoTag(events); + } + 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(score); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(star); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(events); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public TraceHuntSettleReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // score + score = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // star + star = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 122) { + break; + } + } + case 122: { + // events + input.readMessage(events); + 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.score, score); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.star, star); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.events, events); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public TraceHuntSettleReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 79711858: { + if (input.isAtField(FieldNames.score)) { + if (!input.trySkipNullValue()) { + score = 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 2087505209: { + if (input.isAtField(FieldNames.events)) { + if (!input.trySkipNullValue()) { + input.readMessage(events); + 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 TraceHuntSettleReq clone() { + return new TraceHuntSettleReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static TraceHuntSettleReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new TraceHuntSettleReq(), data).checkInitialized(); + } + + public static TraceHuntSettleReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new TraceHuntSettleReq(), input).checkInitialized(); + } + + public static TraceHuntSettleReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new TraceHuntSettleReq(), input).checkInitialized(); + } + + /** + * @return factory for creating TraceHuntSettleReq messages + */ + public static MessageFactory getFactory() { + return TraceHuntSettleReqFactory.INSTANCE; + } + + private enum TraceHuntSettleReqFactory implements MessageFactory { + INSTANCE; + + @Override + public TraceHuntSettleReq create() { + return TraceHuntSettleReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName score = FieldName.forField("Score"); + + static final FieldName star = FieldName.forField("Star"); + + static final FieldName events = FieldName.forField("Events"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code TraceHuntSettleResp} + */ + public static final class TraceHuntSettleResp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional int64 BossCreateTime = 5; + */ + private long bossCreateTime; + + /** + * optional uint32 Level = 1; + */ + private int level; + + /** + * optional uint32 Exp = 2; + */ + private int exp; + + /** + * optional uint32 SelfHuntTimes = 4; + */ + private int selfHuntTimes; + + /** + * optional .ChangeInfo ChangeInfo = 3; + */ + private final Public.ChangeInfo changeInfo = Public.ChangeInfo.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .TraceHuntLogEntry HuntLog = 6; + */ + private final RepeatedMessage huntLog = RepeatedMessage.newEmptyInstance(Public.TraceHuntLogEntry.getFactory()); + + private TraceHuntSettleResp() { + } + + /** + * @return a new empty instance of {@code TraceHuntSettleResp} + */ + public static TraceHuntSettleResp newInstance() { + return new TraceHuntSettleResp(); + } + + /** + * optional int64 BossCreateTime = 5; + * @return whether the bossCreateTime field is set + */ + public boolean hasBossCreateTime() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional int64 BossCreateTime = 5; + * @return this + */ + public TraceHuntSettleResp clearBossCreateTime() { + bitField0_ &= ~0x00000001; + bossCreateTime = 0L; + return this; + } + + /** + * optional int64 BossCreateTime = 5; + * @return the bossCreateTime + */ + public long getBossCreateTime() { + return bossCreateTime; + } + + /** + * optional int64 BossCreateTime = 5; + * @param value the bossCreateTime to set + * @return this + */ + public TraceHuntSettleResp setBossCreateTime(final long value) { + bitField0_ |= 0x00000001; + bossCreateTime = value; + return this; + } + + /** + * optional uint32 Level = 1; + * @return whether the level field is set + */ + public boolean hasLevel() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 Level = 1; + * @return this + */ + public TraceHuntSettleResp clearLevel() { + bitField0_ &= ~0x00000002; + level = 0; + return this; + } + + /** + * optional uint32 Level = 1; + * @return the level + */ + public int getLevel() { + return level; + } + + /** + * optional uint32 Level = 1; + * @param value the level to set + * @return this + */ + public TraceHuntSettleResp setLevel(final int value) { + bitField0_ |= 0x00000002; + level = value; + return this; + } + + /** + * optional uint32 Exp = 2; + * @return whether the exp field is set + */ + public boolean hasExp() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 Exp = 2; + * @return this + */ + public TraceHuntSettleResp clearExp() { + bitField0_ &= ~0x00000004; + exp = 0; + return this; + } + + /** + * optional uint32 Exp = 2; + * @return the exp + */ + public int getExp() { + return exp; + } + + /** + * optional uint32 Exp = 2; + * @param value the exp to set + * @return this + */ + public TraceHuntSettleResp setExp(final int value) { + bitField0_ |= 0x00000004; + exp = value; + return this; + } + + /** + * optional uint32 SelfHuntTimes = 4; + * @return whether the selfHuntTimes field is set + */ + public boolean hasSelfHuntTimes() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 SelfHuntTimes = 4; + * @return this + */ + public TraceHuntSettleResp clearSelfHuntTimes() { + bitField0_ &= ~0x00000008; + selfHuntTimes = 0; + return this; + } + + /** + * optional uint32 SelfHuntTimes = 4; + * @return the selfHuntTimes + */ + public int getSelfHuntTimes() { + return selfHuntTimes; + } + + /** + * optional uint32 SelfHuntTimes = 4; + * @param value the selfHuntTimes to set + * @return this + */ + public TraceHuntSettleResp setSelfHuntTimes(final int value) { + bitField0_ |= 0x00000008; + selfHuntTimes = value; + return this; + } + + /** + * optional .ChangeInfo ChangeInfo = 3; + * @return whether the changeInfo field is set + */ + public boolean hasChangeInfo() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional .ChangeInfo ChangeInfo = 3; + * @return this + */ + public TraceHuntSettleResp clearChangeInfo() { + bitField0_ &= ~0x00000010; + changeInfo.clear(); + return this; + } + + /** + * optional .ChangeInfo ChangeInfo = 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 #getMutableChangeInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.ChangeInfo getChangeInfo() { + return changeInfo; + } + + /** + * optional .ChangeInfo ChangeInfo = 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 Public.ChangeInfo getMutableChangeInfo() { + bitField0_ |= 0x00000010; + return changeInfo; + } + + /** + * optional .ChangeInfo ChangeInfo = 3; + * @param value the changeInfo to set + * @return this + */ + public TraceHuntSettleResp setChangeInfo(final Public.ChangeInfo value) { + bitField0_ |= 0x00000010; + changeInfo.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 TraceHuntSettleResp 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 TraceHuntSettleResp addNextPackage(final byte value) { + bitField0_ |= 0x00000020; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public TraceHuntSettleResp addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000020; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public TraceHuntSettleResp setNextPackage(final byte... values) { + bitField0_ |= 0x00000020; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .TraceHuntLogEntry HuntLog = 6; + * @return whether the huntLog field is set + */ + public boolean hasHuntLog() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * repeated .TraceHuntLogEntry HuntLog = 6; + * @return this + */ + public TraceHuntSettleResp clearHuntLog() { + bitField0_ &= ~0x00000040; + huntLog.clear(); + return this; + } + + /** + * repeated .TraceHuntLogEntry HuntLog = 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 #getMutableHuntLog()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getHuntLog() { + return huntLog; + } + + /** + * repeated .TraceHuntLogEntry HuntLog = 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 getMutableHuntLog() { + bitField0_ |= 0x00000040; + return huntLog; + } + + /** + * repeated .TraceHuntLogEntry HuntLog = 6; + * @param value the huntLog to add + * @return this + */ + public TraceHuntSettleResp addHuntLog(final Public.TraceHuntLogEntry value) { + bitField0_ |= 0x00000040; + huntLog.add(value); + return this; + } + + /** + * repeated .TraceHuntLogEntry HuntLog = 6; + * @param values the huntLog to add + * @return this + */ + public TraceHuntSettleResp addAllHuntLog(final Public.TraceHuntLogEntry... values) { + bitField0_ |= 0x00000040; + huntLog.addAll(values); + return this; + } + + @Override + public TraceHuntSettleResp copyFrom(final TraceHuntSettleResp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + bossCreateTime = other.bossCreateTime; + level = other.level; + exp = other.exp; + selfHuntTimes = other.selfHuntTimes; + changeInfo.copyFrom(other.changeInfo); + nextPackage.copyFrom(other.nextPackage); + huntLog.copyFrom(other.huntLog); + } + return this; + } + + @Override + public TraceHuntSettleResp mergeFrom(final TraceHuntSettleResp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasBossCreateTime()) { + setBossCreateTime(other.bossCreateTime); + } + if (other.hasLevel()) { + setLevel(other.level); + } + if (other.hasExp()) { + setExp(other.exp); + } + if (other.hasSelfHuntTimes()) { + setSelfHuntTimes(other.selfHuntTimes); + } + if (other.hasChangeInfo()) { + getMutableChangeInfo().mergeFrom(other.changeInfo); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasHuntLog()) { + getMutableHuntLog().addAll(other.huntLog); + } + return this; + } + + @Override + public TraceHuntSettleResp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + bossCreateTime = 0L; + level = 0; + exp = 0; + selfHuntTimes = 0; + changeInfo.clear(); + nextPackage.clear(); + huntLog.clear(); + return this; + } + + @Override + public TraceHuntSettleResp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + changeInfo.clearQuick(); + nextPackage.clear(); + huntLog.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof TraceHuntSettleResp)) { + return false; + } + TraceHuntSettleResp other = (TraceHuntSettleResp) o; + return bitField0_ == other.bitField0_ + && (!hasBossCreateTime() || bossCreateTime == other.bossCreateTime) + && (!hasLevel() || level == other.level) + && (!hasExp() || exp == other.exp) + && (!hasSelfHuntTimes() || selfHuntTimes == other.selfHuntTimes) + && (!hasChangeInfo() || changeInfo.equals(other.changeInfo)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasHuntLog() || huntLog.equals(other.huntLog)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 40); + output.writeInt64NoTag(bossCreateTime); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(level); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(exp); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(selfHuntTimes); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(changeInfo); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000040) != 0) { + for (int i = 0; i < huntLog.length(); i++) { + output.writeRawByte((byte) 50); + output.writeMessageNoTag(huntLog.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeInt64SizeNoTag(bossCreateTime); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(level); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(exp); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(selfHuntTimes); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(changeInfo); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000040) != 0) { + size += (1 * huntLog.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(huntLog); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public TraceHuntSettleResp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 40: { + // bossCreateTime + bossCreateTime = input.readInt64(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 8) { + break; + } + } + case 8: { + // level + level = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // exp + exp = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // selfHuntTimes + selfHuntTimes = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // changeInfo + input.readMessage(changeInfo); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 50) { + break; + } + } + case 50: { + // huntLog + tag = input.readRepeatedMessage(huntLog, 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.writeInt64(FieldNames.bossCreateTime, bossCreateTime); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.level, level); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.exp, exp); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.selfHuntTimes, selfHuntTimes); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeMessage(FieldNames.changeInfo, changeInfo); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRepeatedMessage(FieldNames.huntLog, huntLog); + } + output.endObject(); + } + + @Override + public TraceHuntSettleResp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -973747882: { + if (input.isAtField(FieldNames.bossCreateTime)) { + if (!input.trySkipNullValue()) { + bossCreateTime = input.readInt64(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 73313124: { + if (input.isAtField(FieldNames.level)) { + if (!input.trySkipNullValue()) { + level = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 70141: { + if (input.isAtField(FieldNames.exp)) { + if (!input.trySkipNullValue()) { + exp = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 908674407: { + if (input.isAtField(FieldNames.selfHuntTimes)) { + if (!input.trySkipNullValue()) { + selfHuntTimes = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -138776418: { + if (input.isAtField(FieldNames.changeInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(changeInfo); + 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; + } + case -1364481391: { + if (input.isAtField(FieldNames.huntLog)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(huntLog); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public TraceHuntSettleResp clone() { + return new TraceHuntSettleResp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static TraceHuntSettleResp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new TraceHuntSettleResp(), data).checkInitialized(); + } + + public static TraceHuntSettleResp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new TraceHuntSettleResp(), input).checkInitialized(); + } + + public static TraceHuntSettleResp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new TraceHuntSettleResp(), input).checkInitialized(); + } + + /** + * @return factory for creating TraceHuntSettleResp messages + */ + public static MessageFactory getFactory() { + return TraceHuntSettleRespFactory.INSTANCE; + } + + private enum TraceHuntSettleRespFactory implements MessageFactory { + INSTANCE; + + @Override + public TraceHuntSettleResp create() { + return TraceHuntSettleResp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName bossCreateTime = FieldName.forField("BossCreateTime"); + + static final FieldName level = FieldName.forField("Level"); + + static final FieldName exp = FieldName.forField("Exp"); + + static final FieldName selfHuntTimes = FieldName.forField("SelfHuntTimes"); + + static final FieldName changeInfo = FieldName.forField("ChangeInfo"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName huntLog = FieldName.forField("HuntLog"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/TraceHuntTrace.java b/src/generated/main/emu/nebula/proto/TraceHuntTrace.java new file mode 100644 index 0000000..1dbf230 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/TraceHuntTrace.java @@ -0,0 +1,598 @@ +// 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 TraceHuntTrace { + /** + * Protobuf type {@code TraceHuntTraceResp} + */ + public static final class TraceHuntTraceResp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 BossID = 1; + */ + private int bossID; + + /** + * optional .ChangeInfo ChangeInfo = 2; + */ + private final Public.ChangeInfo changeInfo = Public.ChangeInfo.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .TraceHuntLogEntry TraceLog = 3; + */ + private final RepeatedMessage traceLog = RepeatedMessage.newEmptyInstance(Public.TraceHuntLogEntry.getFactory()); + + private TraceHuntTraceResp() { + } + + /** + * @return a new empty instance of {@code TraceHuntTraceResp} + */ + public static TraceHuntTraceResp newInstance() { + return new TraceHuntTraceResp(); + } + + /** + * optional uint32 BossID = 1; + * @return whether the bossID field is set + */ + public boolean hasBossID() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 BossID = 1; + * @return this + */ + public TraceHuntTraceResp clearBossID() { + bitField0_ &= ~0x00000001; + bossID = 0; + return this; + } + + /** + * optional uint32 BossID = 1; + * @return the bossID + */ + public int getBossID() { + return bossID; + } + + /** + * optional uint32 BossID = 1; + * @param value the bossID to set + * @return this + */ + public TraceHuntTraceResp setBossID(final int value) { + bitField0_ |= 0x00000001; + bossID = value; + return this; + } + + /** + * optional .ChangeInfo ChangeInfo = 2; + * @return whether the changeInfo field is set + */ + public boolean hasChangeInfo() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .ChangeInfo ChangeInfo = 2; + * @return this + */ + public TraceHuntTraceResp clearChangeInfo() { + bitField0_ &= ~0x00000002; + changeInfo.clear(); + return this; + } + + /** + * optional .ChangeInfo ChangeInfo = 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 #getMutableChangeInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.ChangeInfo getChangeInfo() { + return changeInfo; + } + + /** + * optional .ChangeInfo ChangeInfo = 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 Public.ChangeInfo getMutableChangeInfo() { + bitField0_ |= 0x00000002; + return changeInfo; + } + + /** + * optional .ChangeInfo ChangeInfo = 2; + * @param value the changeInfo to set + * @return this + */ + public TraceHuntTraceResp setChangeInfo(final Public.ChangeInfo value) { + bitField0_ |= 0x00000002; + changeInfo.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 TraceHuntTraceResp 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 TraceHuntTraceResp addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public TraceHuntTraceResp addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public TraceHuntTraceResp setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .TraceHuntLogEntry TraceLog = 3; + * @return whether the traceLog field is set + */ + public boolean hasTraceLog() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated .TraceHuntLogEntry TraceLog = 3; + * @return this + */ + public TraceHuntTraceResp clearTraceLog() { + bitField0_ &= ~0x00000008; + traceLog.clear(); + return this; + } + + /** + * repeated .TraceHuntLogEntry TraceLog = 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 #getMutableTraceLog()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getTraceLog() { + return traceLog; + } + + /** + * repeated .TraceHuntLogEntry TraceLog = 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 getMutableTraceLog() { + bitField0_ |= 0x00000008; + return traceLog; + } + + /** + * repeated .TraceHuntLogEntry TraceLog = 3; + * @param value the traceLog to add + * @return this + */ + public TraceHuntTraceResp addTraceLog(final Public.TraceHuntLogEntry value) { + bitField0_ |= 0x00000008; + traceLog.add(value); + return this; + } + + /** + * repeated .TraceHuntLogEntry TraceLog = 3; + * @param values the traceLog to add + * @return this + */ + public TraceHuntTraceResp addAllTraceLog(final Public.TraceHuntLogEntry... values) { + bitField0_ |= 0x00000008; + traceLog.addAll(values); + return this; + } + + @Override + public TraceHuntTraceResp copyFrom(final TraceHuntTraceResp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + bossID = other.bossID; + changeInfo.copyFrom(other.changeInfo); + nextPackage.copyFrom(other.nextPackage); + traceLog.copyFrom(other.traceLog); + } + return this; + } + + @Override + public TraceHuntTraceResp mergeFrom(final TraceHuntTraceResp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasBossID()) { + setBossID(other.bossID); + } + if (other.hasChangeInfo()) { + getMutableChangeInfo().mergeFrom(other.changeInfo); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasTraceLog()) { + getMutableTraceLog().addAll(other.traceLog); + } + return this; + } + + @Override + public TraceHuntTraceResp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + bossID = 0; + changeInfo.clear(); + nextPackage.clear(); + traceLog.clear(); + return this; + } + + @Override + public TraceHuntTraceResp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + changeInfo.clearQuick(); + nextPackage.clear(); + traceLog.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof TraceHuntTraceResp)) { + return false; + } + TraceHuntTraceResp other = (TraceHuntTraceResp) o; + return bitField0_ == other.bitField0_ + && (!hasBossID() || bossID == other.bossID) + && (!hasChangeInfo() || changeInfo.equals(other.changeInfo)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasTraceLog() || traceLog.equals(other.traceLog)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(bossID); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(changeInfo); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000008) != 0) { + for (int i = 0; i < traceLog.length(); i++) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(traceLog.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(bossID); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(changeInfo); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000008) != 0) { + size += (1 * traceLog.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(traceLog); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public TraceHuntTraceResp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // bossID + bossID = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // changeInfo + input.readMessage(changeInfo); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // traceLog + tag = input.readRepeatedMessage(traceLog, 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.bossID, bossID); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.changeInfo, changeInfo); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedMessage(FieldNames.traceLog, traceLog); + } + output.endObject(); + } + + @Override + public TraceHuntTraceResp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1995573608: { + if (input.isAtField(FieldNames.bossID)) { + if (!input.trySkipNullValue()) { + bossID = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -138776418: { + if (input.isAtField(FieldNames.changeInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(changeInfo); + 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; + } + case 1334926303: { + if (input.isAtField(FieldNames.traceLog)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(traceLog); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public TraceHuntTraceResp clone() { + return new TraceHuntTraceResp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static TraceHuntTraceResp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new TraceHuntTraceResp(), data).checkInitialized(); + } + + public static TraceHuntTraceResp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new TraceHuntTraceResp(), input).checkInitialized(); + } + + public static TraceHuntTraceResp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new TraceHuntTraceResp(), input).checkInitialized(); + } + + /** + * @return factory for creating TraceHuntTraceResp messages + */ + public static MessageFactory getFactory() { + return TraceHuntTraceRespFactory.INSTANCE; + } + + private enum TraceHuntTraceRespFactory implements MessageFactory { + INSTANCE; + + @Override + public TraceHuntTraceResp create() { + return TraceHuntTraceResp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName bossID = FieldName.forField("BossID"); + + static final FieldName changeInfo = FieldName.forField("ChangeInfo"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName traceLog = FieldName.forField("TraceLog"); + } + } +} diff --git a/src/main/java/emu/nebula/GameConstants.java b/src/main/java/emu/nebula/GameConstants.java index 2cf56ea..03b78aa 100644 --- a/src/main/java/emu/nebula/GameConstants.java +++ b/src/main/java/emu/nebula/GameConstants.java @@ -7,7 +7,7 @@ import emu.nebula.game.inventory.ItemParamMap; import emu.nebula.util.WeightedList; public class GameConstants { - public static final String VERSION = "1.12.0"; + public static final String VERSION = "1.13.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 9b0d8d4..372f55e 100644 --- a/src/main/java/emu/nebula/game/activity/ActivityModule.java +++ b/src/main/java/emu/nebula/game/activity/ActivityModule.java @@ -65,9 +65,14 @@ public class ActivityModule extends GameContextModule { //this.activities.add(1010804); // A Sandstorm of Gunfire - this.activities.add(1010901); - this.activities.add(1010903); - this.activities.add(1010904); + //this.activities.add(1010901); + //this.activities.add(1010903); + //this.activities.add(1010904); + + // Checking In for A Cozy Summer + this.activities.add(2010301); + this.activities.add(2010303); + this.activities.add(2010304); // ===== Joint Drills (Finale Echoing) ===== //this.activities.add(510003); // Causes soft lock in event screen diff --git a/src/main/java/emu/nebula/game/inventory/ItemSubType.java b/src/main/java/emu/nebula/game/inventory/ItemSubType.java index ee44cfd..544507a 100644 --- a/src/main/java/emu/nebula/game/inventory/ItemSubType.java +++ b/src/main/java/emu/nebula/game/inventory/ItemSubType.java @@ -37,7 +37,8 @@ public enum ItemSubType { PlayHead (45), CharacterSkin (46), SouvenirEnergyItem (47), - Build (48); + Build (48), + Chess (49); @Getter private final int value; diff --git a/src/main/java/emu/nebula/game/inventory/ItemType.java b/src/main/java/emu/nebula/game/inventory/ItemType.java index 66b9426..65485a1 100644 --- a/src/main/java/emu/nebula/game/inventory/ItemType.java +++ b/src/main/java/emu/nebula/game/inventory/ItemType.java @@ -20,7 +20,8 @@ public enum ItemType { HeadItem (14), LevelHonor (15), TraceRequest (16), - HuntPermit (17); + HuntPermit (17), + SoldierItem (18); @Getter private final int value; diff --git a/src/main/java/emu/nebula/game/player/Player.java b/src/main/java/emu/nebula/game/player/Player.java index b523c28..64ebc66 100644 --- a/src/main/java/emu/nebula/game/player/Player.java +++ b/src/main/java/emu/nebula/game/player/Player.java @@ -1234,6 +1234,7 @@ public class Player implements GameDatabaseObject { state.getMutableStarTowerBook(); state.getMutableScoreBoss(); state.getMutableCharAffinityRewards(); + state.getMutableTraceHunt(); // Force complete tutorials for (var guide : GameData.getGuideGroupDataTable()) { @@ -1305,6 +1306,10 @@ public class Player implements GameDatabaseObject { proto.addActivities(activity.toProto()); } + // Trace hunt + proto.getMutableHuntPermit(); + proto.getMutableTraceRequest(); + // Complete return proto; } diff --git a/src/main/java/emu/nebula/game/quest/QuestCondition.java b/src/main/java/emu/nebula/game/quest/QuestCondition.java index fb3f2c1..543b9cd 100644 --- a/src/main/java/emu/nebula/game/quest/QuestCondition.java +++ b/src/main/java/emu/nebula/game/quest/QuestCondition.java @@ -97,6 +97,7 @@ public enum QuestCondition { DiscWithSpecificQuantityPhaseAndAttr (122), WeekBossClearTotal (123), ActivityStoryReadStory (124), + ActivitySoldierScore (158), ClientReport (200), TowerBattleTimes (501), TowerBossChallengeSpecificHighRewardWithTotal (502), diff --git a/src/main/java/emu/nebula/net/NetMsgId.java b/src/main/java/emu/nebula/net/NetMsgId.java index 623c67a..a535031 100644 --- a/src/main/java/emu/nebula/net/NetMsgId.java +++ b/src/main/java/emu/nebula/net/NetMsgId.java @@ -3,6 +3,12 @@ package emu.nebula.net; public class NetMsgId { public static final int none = 0; + public static final int clear_all_activity_iceCream_levels_notify = -10057; + public static final int sd_soldier_effect_notify = -10056; + public static final int sd_soldier_info_notify = -10055; + public static final int sd_shop_data_notify = -10054; + public static final int sd_item_change_notify = -10053; + public static final int sd_buff_card_add_notify = -10052; public static final int clear_all_activity_golden_spy_levels_notify = -10051; public static final int clear_all_activity_breakout_levels_notify = -10050; public static final int clear_story_set_notify = -10049; @@ -192,6 +198,9 @@ public class NetMsgId { public static final int activity_gds_settle_req = 1501; public static final int activity_gds_settle_succeed_ack = 1502; public static final int activity_gds_settle_failed_ack = 1503; + public static final int activity_soldier_quest_reward_receive_req = 1601; + public static final int activity_soldier_quest_reward_receive_succeed_ack = 1602; + public static final int activity_soldier_quest_reward_receive_failed_ack = 1603; 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; @@ -462,6 +471,42 @@ public class NetMsgId { public static final int mall_shop_order_req = 5128; public static final int mall_shop_order_succeed_ack = 5129; public static final int mall_shop_order_failed_ack = 5130; + public static final int trace_hunt_info_req = 5201; + public static final int trace_hunt_info_succeed_ack = 5202; + public static final int trace_hunt_info_failed_ack = 5203; + public static final int trace_hunt_apply_req = 5204; + public static final int trace_hunt_apply_succeed_ack = 5205; + public static final int trace_hunt_apply_failed_ack = 5206; + public static final int trace_hunt_settle_req = 5207; + public static final int trace_hunt_settle_succeed_ack = 5208; + public static final int trace_hunt_settle_failed_ack = 5209; + public static final int trace_hunt_recommend_req = 5210; + public static final int trace_hunt_recommend_succeed_ack = 5211; + public static final int trace_hunt_recommend_failed_ack = 5212; + public static final int trace_hunt_boss_reward_receive_req = 5213; + public static final int trace_hunt_boss_reward_receive_succeed_ack = 5214; + public static final int trace_hunt_boss_reward_receive_failed_ack = 5215; + public static final int trace_hunt_trace_req = 5216; + public static final int trace_hunt_trace_succeed_ack = 5217; + public static final int trace_hunt_trace_failed_ack = 5218; + public static final int soldier_apply_req = 5301; + public static final int soldier_apply_succeed_ack = 5302; + public static final int soldier_apply_failed_ack = 5303; + public static final int soldier_info_req = 5304; + public static final int soldier_info_succeed_ack = 5305; + public static final int soldier_info_failed_ack = 5306; + public static final int soldier_interact_req = 5307; + public static final int soldier_interact_succeed_ack = 5308; + public static final int soldier_interact_failed_ack = 5309; + public static final int soldier_give_up_req = 5310; + public static final int soldier_give_up_succeed_ack = 5311; + public static final int soldier_give_up_failed_ack = 5312; + public static final int soldier_step_out_req = 5313; + public static final int soldier_step_out_succeed_ack = 5314; + public static final int soldier_step_out_failed_ack = 5315; + public static final int soldier_partner_trace_req = 5316; + public static final int soldier_partner_trace_succeed_ack = 5317; + public static final int soldier_partner_trace_failed_ack = 5318; public static final int gacha_spin_req = 6001; public static final int gacha_spin_succeed_ack = 6002; public static final int gacha_spin_failed_ack = 6003; @@ -703,6 +748,9 @@ public class NetMsgId { public static final int activity_double_quest_reward_receive_req = 8407; public static final int activity_double_quest_reward_receive_succeed_ack = 8408; public static final int activity_double_quest_reward_receive_failed_ack = 8409; + public static final int activity_ice_cream_level_settle_req = 8411; + public static final int activity_ice_cream_level_settle_succeed_ack = 8412; + public static final int activity_ice_cream_level_settle_failed_ack = 8413; 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; @@ -772,6 +820,9 @@ public class NetMsgId { public static final int phone_contacts_top_req = 9207; public static final int phone_contacts_top_succeed_ack = 9208; public static final int phone_contacts_top_failed_ack = 9209; + public static final int activity_share_reward_receive_req = 9210; + public static final int activity_share_reward_receive_succeed_ack = 9211; + public static final int activity_share_reward_receive_failed_ack = 9212; public static final int talent_unlock_req = 9301; public static final int talent_unlock_succeed_ack = 9302; public static final int talent_unlock_failed_ack = 9303; @@ -886,6 +937,9 @@ public class NetMsgId { public static final int item_expired_change_notify = 10054; public static final int milkout_character_unlock_notify = 10055; public static final int activity_double_reward_times_notify = 10056; + public static final int trace_hunt_new_control_notify = 10057; + public static final int trace_hunt_state_notify = 10058; + public static final int trace_hunt_item_change_notify = 10060; 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/resources/versions.json b/src/main/resources/versions.json index dfd76ec..c183f1c 100644 --- a/src/main/resources/versions.json +++ b/src/main/resources/versions.json @@ -1,7 +1,7 @@ { - "global": 123, - "kr": 129, - "jp": 127, - "tw": 133, - "cn": 123 + "global": 124, + "kr": 130, + "jp": 128, + "tw": 134, + "cn": 124 } \ No newline at end of file