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